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
32df546b30981109f660a35bedf6d89f5a13ccd0
24,508
py
Python
tests/test_ticket.py
hebersonaguiar/zabbixotrs
3d966b9eddc352ed532ef10d0b589d02f5cb783e
[ "MIT" ]
null
null
null
tests/test_ticket.py
hebersonaguiar/zabbixotrs
3d966b9eddc352ed532ef10d0b589d02f5cb783e
[ "MIT" ]
3
2020-03-24T16:51:09.000Z
2021-06-01T23:33:23.000Z
tests/test_ticket.py
hebersonaguiar/zabbixotrs
3d966b9eddc352ed532ef10d0b589d02f5cb783e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # support both Python2 and 3 """ test_ticket.py Test for PyOTRS Ticket class """ # make sure (early) that parent dir (main app) is in path import unittest2 as unittest # from mock import MagicMock, patch from datetime import datetime from pyotrs.lib import Ticket # noqa from pyotrs.lib import DynamicField # noqa from pyotrs.lib import Article # noqa from pyotrs.lib import ArgumentMissingError, ArgumentInvalidError # noqa # noinspection PyCompatibility class TicketTests(unittest.TestCase): def test_init(self): tic = Ticket(dct={'Title': 'foo'}) self.assertIsInstance(tic, Ticket) self.assertEqual(tic.__repr__(), '<Ticket>') def test_init_nested_dct(self): tic = Ticket(dct={'Title': 'foo', 'SomeField': 'SomeValue', 'SomeDict': {'NestedDictField1': "Value1", 'NestedDictField2': "Value2"}}) self.assertIsInstance(tic, Ticket) self.assertEqual(tic.__repr__(), '<Ticket>') def test_init_parse_from_dct(self): tic_dct = { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], } tic = Ticket(tic_dct) self.assertIsInstance(tic, Ticket) self.assertEqual(tic.__repr__(), '<Ticket>') self.assertEqual(tic.articles[0].__repr__(), "<ArticleID: 30 (1 Attachment)>") def test_dynamic_field_get_none(self): tic_dct = { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], } tic = Ticket(tic_dct) self.assertIsInstance(tic, Ticket) self.assertIsNone(tic.dynamic_field_get("rgiosregoisrengi")) def test_dynamic_field_get_success(self): tic_dct = { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], } tic = Ticket(tic_dct) self.assertIsInstance(tic, Ticket) self.assertIsInstance(tic.dynamic_field_get("firstname"), DynamicField) self.assertEqual(tic.dynamic_field_get("firstname").value, 'Jane') self.assertEqual(tic.field_get("Title"), 'Baesic Ticket') def test_article_get_none(self): tic_dct = { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], } tic = Ticket(tic_dct) self.assertIsInstance(tic, Ticket) self.assertIsNone(tic.article_get("666")) def test_article_get_str_success(self): tic_dct = { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], } tic = Ticket(tic_dct) self.assertIsInstance(tic, Ticket) self.assertIsInstance(tic.article_get("30"), Article) self.assertEqual(tic.article_get("30").field_get("ArticleType"), 'webrequest') def test_article_get_int_success(self): tic_dct = { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], } tic = Ticket(tic_dct) self.assertIsInstance(tic, Ticket) self.assertIsInstance(tic.article_get(30), Article) self.assertEqual(tic.article_get(30).field_get("ArticleType"), 'webrequest') def test_create_basic_no_title(self): self.assertRaisesRegex(ArgumentMissingError, 'Title is required', Ticket.create_basic) def test_create_basic_title_no_queue(self): self.assertRaisesRegex(ArgumentMissingError, 'Either Queue or QueueID required', Ticket.create_basic, Title='foobar') def test_create_basic_title_queue_no_state1(self): self.assertRaisesRegex(ArgumentMissingError, 'Either State or StateID required', Ticket.create_basic, Title='foobar', Queue='some_queue') def test_create_basic_title_queue_no_state2(self): self.assertRaisesRegex(ArgumentMissingError, 'Either State or StateID required', Ticket.create_basic, Title='foobar', QueueID='1') def test_create_basic_title_queue_state_no_prio1(self): self.assertRaisesRegex(ArgumentMissingError, 'Either Priority or PriorityID required', Ticket.create_basic, Title='foobar', Queue='some_queue', State='open') def test_create_basic_title_queue_state_no_prio2(self): self.assertRaisesRegex(ArgumentMissingError, 'Either Priority or PriorityID required', Ticket.create_basic, Title='foobar', QueueID='1', StateID='2') def test_create_basic_title_queue_state_prio_no_customer1(self): self.assertRaisesRegex(ArgumentMissingError, 'CustomerUser is required', Ticket.create_basic, Title='foobar', Queue='raw', StateID='2', Priority='average') def test_create_basic_title_queue_state_prio_no_customer2(self): self.assertRaisesRegex(ArgumentMissingError, 'CustomerUser is required', Ticket.create_basic, Title='foobar', QueueID='1', State='open', PriorityID='average') def test_create_basic_title_both_type_and_typeid(self): self.assertRaisesRegex(ArgumentInvalidError, 'Either Type or TypeID - not both', Ticket.create_basic, Title='foobar', QueueID='1', State='open', PriorityID='average', CustomerUser='root@localhost', Type='barfoo', TypeID='2') def test_create_basic_title_queue_state_prio_customer_one(self): tic = Ticket.create_basic(Title='foobar', QueueID='1', Type='barfoo', State='open', PriorityID='average', CustomerUser='root@localhost') self.assertIsInstance(tic, Ticket) self.assertEqual(tic.__repr__(), '<Ticket>') def test_create_basic_title_queue_state_prio_customer_two(self): tic = Ticket.create_basic(Title='foobar', Queue='raw', TypeID='2', State='open', PriorityID='5', CustomerUser='root@localhost') self.assertIsInstance(tic, Ticket) self.assertEqual(tic.__repr__(), '<Ticket>') def test_create_basic_title_queue_state_prio_customer_three(self): tic = Ticket.create_basic(Title='foobar', Queue='raw', StateID='4', PriorityID='3', CustomerUser='root@localhost') self.assertIsInstance(tic, Ticket) self.assertEqual(tic.__repr__(), '<Ticket>') def test_create_basic_title_queue_state_prio_customer_four(self): tic = Ticket.create_basic(Title='foobar', Queue='raw', StateID='4', Priority='average', CustomerUser='root@localhost') self.assertIsInstance(tic, Ticket) self.assertEqual(tic.__repr__(), '<Ticket>') def test_create_basic_title_queue_state_prio_customer_five(self): tic = Ticket.create_basic(Title='foobar', Queue='raw', StateID='4', Priority='average', CustomerUser='root@localhost') self.assertIsInstance(tic, Ticket) tic.tid = '5' self.assertEqual(tic.__repr__(), '<Ticket: 5>') def test_create_basic_title_queue_state_prio_customer_to_dct(self): tic = Ticket.create_basic(Title='foobar', QueueID='1', State='open', PriorityID='5', CustomerUser='root@localhost') self.assertIsInstance(tic, Ticket) self.assertDictEqual(tic.to_dct(), {'Ticket': {'Title': 'foobar', 'QueueID': '1', 'State': 'open', 'PriorityID': '5', 'CustomerUser': 'root@localhost'}}) def test_pending_text(self): tic = Ticket.create_basic(Title='foobar', QueueID='1', State='open', PriorityID='5', CustomerUser='root@localhost') self.assertDictEqual(tic.datetime_to_pending_time_text(datetime(1, 2, 3, 4, 5)), {'Day': 3, 'Hour': 4, 'Minute': 5, 'Month': 2, 'Year': 1}) def test_ticket_to_dct_no_articles_dynamic_fields(self): tic = Ticket.create_basic(Title='foobar', QueueID='1', State='open', PriorityID='5', CustomerUser='root@localhost') self.assertIsInstance(tic, Ticket) delattr(tic, 'articles') delattr(tic, 'dynamic_fields') self.assertDictEqual(tic.to_dct(), {'Ticket': {'Title': 'foobar', 'QueueID': '1', 'State': 'open', 'PriorityID': '5', 'CustomerUser': 'root@localhost'}}) def test_to_dct_full(self): self.maxDiff = None tic_dct = { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], } tic = Ticket(tic_dct) self.assertDictEqual(tic.to_dct(), {'Ticket': { 'TypeID': '1', 'Title': 'Baesic Ticket', 'Article': [{ 'Age': 82383, 'AgeTimeUnix': 82383, 'ArticleID': '30', 'ArticleType': 'webrequest', 'ArticleTypeID': '8', 'Attachment': [ { 'Content': 'mFyC', 'ContentAlternative': '', 'ContentID': '', 'ContentType': 'text/plain', 'Disposition': 'attachment', 'Filename': 'foo.txt', 'Filesize': '3 Bytes', 'FilesizeRaw': '3' } ], 'Body': 'Hallo Bjørn,\n[kt]\n\n -- The End', 'Cc': '', 'CustomerID': None, 'CustomerUserID': None, 'EscalationResponseTime': '0', 'EscalationSolutionTime': '0' }], 'DynamicField': [ { 'Name': 'ProcessManagementActivityID', 'Value': None }, { 'Name': 'ProcessManagementProcessID', 'Value': None }, { 'Name': 'firstname', 'Value': 'Jane' }, { 'Name': 'lastname', 'Value': 'Doe' } ], }}) def test_dummy(self): tic = Ticket._dummy() self.assertDictEqual(tic.to_dct(), {'Ticket': {'Queue': u'Raw', 'State': u'open', 'Priority': u'3 normal', 'CustomerUser': 'root@localhost', 'Title': 'Bäsic Ticket'}}) def main(): unittest.main() if __name__ == '__main__': main() # EOF
38.778481
94
0.372939
1,482
24,508
5.995951
0.123482
0.033423
0.054018
0.039613
0.847625
0.81499
0.795183
0.78348
0.772113
0.737452
0
0.017812
0.518933
24,508
631
95
38.839937
0.735878
0.007793
0
0.696398
0
0
0.200668
0.031995
0
0
0
0
0.080618
1
0.048027
false
0
0.012007
0
0.06175
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
32ed5dec6151e1771cced123ea5e29b7d59ed97f
202
py
Python
build/lib/DST/__init__.py
DunZhang/DomainSpecificThesaurus
539dcdbe618ade1864e56423667f28afb800e1e1
[ "MIT" ]
13
2019-02-21T23:16:55.000Z
2022-03-03T16:27:24.000Z
DST/__init__.py
EzioQR/DomainSpecificThesaurus
a7233b039e8e0d1250b9fc1ebe147deb02efb502
[ "MIT" ]
3
2021-04-28T11:49:20.000Z
2022-02-25T17:31:06.000Z
DST/__init__.py
EzioQR/DomainSpecificThesaurus
a7233b039e8e0d1250b9fc1ebe147deb02efb502
[ "MIT" ]
6
2019-02-23T16:01:36.000Z
2021-09-05T10:27:54.000Z
from . import datasets from . import domain_term from . import domain_thesaurus from . import phrase_detection from . import semantic_related_word from . import utils from . import word_discrimination
22.444444
35
0.821782
27
202
5.925926
0.481481
0.4375
0.2
0
0
0
0
0
0
0
0
0
0.143564
202
8
36
25.25
0.924855
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
fd55e17bdc9a7a39cf7862758e824697a4c6e32c
159
py
Python
server.py
zmirzaa/deployFlask
2194becde070174d96972fe24667fafb733a568c
[ "MIT" ]
null
null
null
server.py
zmirzaa/deployFlask
2194becde070174d96972fe24667fafb733a568c
[ "MIT" ]
null
null
null
server.py
zmirzaa/deployFlask
2194becde070174d96972fe24667fafb733a568c
[ "MIT" ]
null
null
null
from flask_app import app from flask_app.controllers import users from flask_app.controllers import recipes if __name__ == "__main__": app.run(debug=True)
26.5
41
0.798742
24
159
4.833333
0.541667
0.232759
0.310345
0.396552
0.5
0
0
0
0
0
0
0
0.132075
159
6
42
26.5
0.84058
0
0
0
0
0
0.05
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
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
b5da8865336a55b479df6a4fe92cee6710c56757
94
py
Python
src/crBootstrapSal/crExceptionSal.py
mhtvsSFrpHdE/chm-rebirth
f1803efe1326c7815c219717caa12cb6be95f6e4
[ "MIT" ]
2
2020-03-27T13:50:47.000Z
2020-07-02T11:34:26.000Z
src/crBootstrapSal/crExceptionSal.py
mhtvsSFrpHdE/chm-rebirth
f1803efe1326c7815c219717caa12cb6be95f6e4
[ "MIT" ]
null
null
null
src/crBootstrapSal/crExceptionSal.py
mhtvsSFrpHdE/chm-rebirth
f1803efe1326c7815c219717caa12cb6be95f6e4
[ "MIT" ]
2
2020-03-24T11:39:48.000Z
2020-03-27T13:50:52.000Z
from crException import * class CrObjectTagNotFoundInCatalogChmError(CrBaseError): pass
15.666667
56
0.819149
7
94
11
1
0
0
0
0
0
0
0
0
0
0
0
0.138298
94
5
57
18.8
0.950617
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
bd54d44905b7cd47b1ae5d66257a2a804a1726ed
37,413
py
Python
fatiando/gravmag/sphere.py
silky/fatiando
5041c6b29758a5e73e9d7b2b906fa5e493fd9aba
[ "BSD-3-Clause" ]
1
2019-06-27T11:32:56.000Z
2019-06-27T11:32:56.000Z
fatiando/gravmag/sphere.py
silky/fatiando
5041c6b29758a5e73e9d7b2b906fa5e493fd9aba
[ "BSD-3-Clause" ]
null
null
null
fatiando/gravmag/sphere.py
silky/fatiando
5041c6b29758a5e73e9d7b2b906fa5e493fd9aba
[ "BSD-3-Clause" ]
null
null
null
r""" Calculate the potential fields of a homogeneous sphere. **Magnetic** Calculates the magnetic effect produced by an sphere. The functions are based on Blakely (1995). * :func:`~fatiando.gravmag.sphere.tf`: calculates the total-field anomaly * :func:`~fatiando.gravmag.sphere.bx`: calculates the x component of the induction * :func:`~fatiando.gravmag.sphere.by`: calculates the y component of the induction * :func:`~fatiando.gravmag.sphere.bz`: calculates the z component of the induction Remember that: The magnetization :math:`\mathbf{M}` and the dipole moment :math:`\mathbf{m}` are related with the volume V: .. math:: \mathbf{M} = \dfrac{\mathbf{m}}{V}. The total-field anomaly is: .. math:: \Delta T = |\mathbf{T}| - |\mathbf{F}|, where :math:`\mathbf{T}` is the measured field and :math:`\mathbf{F}` is a reference (regional) field. The forward modeling functions :func:`~fatiando.gravmag.sphere.bx`, :func:`~fatiando.gravmag.sphere.by`, and :func:`~fatiando.gravmag.sphere.bz` calculate the 3 components of the field perturbation :math:`\Delta\mathbf{F}` .. math:: \Delta\mathbf{F} = \mathbf{T} - \mathbf{F}. Then the total-field anomaly caused by the sphere is .. math:: \Delta T \approx \hat{\mathbf{F}}\cdot\Delta\mathbf{F}. **Gravity** Calculates the gravitational acceleration and gravity gradient tensor components. * :func:`~fatiando.gravmag.sphere.gz` * :func:`~fatiando.gravmag.sphere.gxx` * :func:`~fatiando.gravmag.sphere.gxy` * :func:`~fatiando.gravmag.sphere.gxz` * :func:`~fatiando.gravmag.sphere.gyy` * :func:`~fatiando.gravmag.sphere.gyz` * :func:`~fatiando.gravmag.sphere.gzz` **Auxiliary Functions** Calculates the second derivatives of the function .. math:: \phi(x,y,z) = \frac{4}{3} \pi R^3 \frac{1}{r} with respect to the variables :math:`x`, :math:`y`, and :math:`z`. In this equation, .. math:: r = \sqrt{(x - \nu)^2 + (y - \eta)^2 + (z - \zeta)^2}, and :math:`R` is the radius of a sphere with centre at the Cartesian coordinates :math:`\nu`, :math:`\eta` and :math:`\zeta`. These second derivatives are used to calculate the total field magnetic anomaly and the gravity gradient tensor components. * :func:`~fatiando.gravmag.sphere.kernelxx` * :func:`~fatiando.gravmag.sphere.kernelxy` * :func:`~fatiando.gravmag.sphere.kernelxz` * :func:`~fatiando.gravmag.sphere.kernelyy` * :func:`~fatiando.gravmag.sphere.kernelyz` * :func:`~fatiando.gravmag.sphere.kernelzz` **References** Blakely, R. J. (1995), Potential Theory in Gravity and Magnetic Applications, Cambridge University Press. ---- """ from __future__ import division import numpy from ..constants import SI2MGAL, G, CM, T2NT, SI2EOTVOS from .. import utils try: from . import _sphere except ImportError: _sphere = None def tf(xp, yp, zp, spheres, inc, dec, pmag=None): """ Calculate the total-field anomaly of spheres. .. note:: Input units are SI. Output is in nT Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the physical property ``'magnetization'``. Spheres without ``'magnetization'`` will be ignored. * inc : float The inclination of the regional field (in degrees) * dec : float The declination of the regional field (in degrees) * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of the ``'magnetization'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * tf : array The total-field anomaly Example: >>> from fatiando import mesher, gridder, utils >>> # Set the inclination and declination of the regional field >>> inc, dec = -30, 45 >>> # Create a sphere model >>> model = [ ... # One with induced magnetization ... mesher.Sphere(1000, 1000, 600, 500, {'magnetization':5}), ... # and one with remanent ... mesher.Sphere(-1000, -1000, 600, 500, ... {'magnetization':utils.ang2vec(10, 70, -5)})] >>> # Create a regular grid at 100m height >>> shape = (4, 4) >>> area = (-3000, 3000, -3000, 3000) >>> xp, yp, zp = gridder.regular(area, shape, z=-100) >>> # Calculate the anomaly for a given regional field >>> for t in tf(xp, yp, zp, model, inc, dec): ... print '%15.8e' % t 2.72951375e+01 3.63637351e+01 5.35842876e+00 6.65189557e-02 6.01998831e+01 -1.71920499e+03 3.30025228e+00 -5.13176612e+00 1.47871812e+00 -3.96103758e+01 -1.85654021e+02 2.18002960e+01 -2.82713826e+00 -1.10341542e+01 1.93353982e+01 2.03174254e+01 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") size = len(xp) res = numpy.zeros(size, dtype=numpy.float) # Calculate the 3 components of the unit vector in the direction of the # regional field fx, fy, fz = utils.dircos(inc, dec) if pmag is not None: if isinstance(pmag, float) or isinstance(pmag, int): pmx, pmy, pmz = pmag * fx, pmag * fy, pmag * fz else: pmx, pmy, pmz = pmag for sphere in spheres: if sphere is None or ('magnetization' not in sphere.props and pmag is None): continue # Get the intensity and unit vector from the magnetization if pmag is None: mag = sphere.props['magnetization'] if isinstance(mag, float) or isinstance(mag, int): mx, my, mz = mag * fx, mag * fy, mag * fz else: mx, my, mz = mag else: mx, my, mz = pmx, pmy, pmz _sphere.tf(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, mx, my, mz, fx, fy, fz, res) res *= CM * T2NT return res def bx(xp, yp, zp, spheres): """ Calculates the x component of the magnetic induction produced by spheres. .. note:: Input units are SI. Output is in nT Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the physical property ``'magnetization'``. Spheres without ``'magnetization'`` will be ignored. The ``'magnetization'`` must be a vector. Returns: * bx: array The x component of the magnetic induction Example: >>> from fatiando import mesher, gridder, utils >>> # Create a model formed by two spheres >>> # The magnetization of each sphere is a vector >>> model = [ ... mesher.Sphere(1000, 1000, 600, 500, ... {'magnetization':utils.ang2vec(13, -10, 28)}), ... mesher.Sphere(-1000, -1000, 600, 500, ... {'magnetization':utils.ang2vec(10, 70, -5)})] >>> # Create a regular grid at 100m height >>> shape = (4, 4) >>> area = (-3000, 3000, -3000, 3000) >>> xp, yp, zp = gridder.regular(area, shape, z=-100) >>> # Calculate the bx component >>> for b in bx(xp, yp, zp, model): ... print '%15.8e' % b 1.58002397e+01 -1.76820799e+01 -1.48049248e+01 -5.75238567e+00 9.17572697e+01 -4.94607307e+02 -7.92213872e+01 -4.37781621e+00 2.97032297e+01 7.36803996e+01 -1.73332620e+03 1.15884125e+02 4.55847152e+00 -1.31173236e+01 -6.42912671e+01 2.98847909e+01 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") size = len(xp) res = numpy.zeros(size, dtype=numpy.float) for sphere in spheres: if sphere is None or ('magnetization' not in sphere.props): continue # Get the magnetization vector components mx, my, mz = sphere.props['magnetization'] _sphere.bx(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, mx, my, mz, res) res *= CM * T2NT return res def by(xp, yp, zp, spheres): """ Calculates the y component of the magnetic induction produced by spheres. .. note:: Input units are SI. Output is in nT Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the physical property ``'magnetization'``. Spheres without ``'magnetization'`` will be ignored. The ``'magnetization'`` must be a vector. Returns: * by: array The y component of the magnetic induction Example: >>> from fatiando import mesher, gridder, utils >>> # Create a model formed by two spheres >>> # The magnetization of each sphere is a vector >>> model = [ ... mesher.Sphere(1000, 1000, 600, 500, ... {'magnetization':utils.ang2vec(13, -10, 28)}), ... mesher.Sphere(-1000, -1000, 600, 500, ... {'magnetization':utils.ang2vec(10, 70, -5)})] >>> # Create a regular grid at 100m height >>> shape = (4, 4) >>> area = (-3000, 3000, -3000, 3000) >>> xp, yp, zp = gridder.regular(area, shape, z=-100) >>> # Calculate the by component >>> for b in by(xp, yp, zp, model): ... print '%15.8e' % b 2.51394441e+01 5.71383698e+01 7.46666729e+00 -4.53730551e+00 7.44792258e+00 8.22174414e+01 4.53451310e+01 -3.06885735e+01 -2.49929765e+01 -8.41961087e+01 -9.17412395e+02 -3.18422413e+01 -1.32728556e+01 -3.03825859e+01 6.67990083e+01 4.21366247e+01 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") size = len(xp) res = numpy.zeros(size, dtype=numpy.float) for sphere in spheres: if sphere is None or ('magnetization' not in sphere.props): continue # Get the magnetization vector components mx, my, mz = sphere.props['magnetization'] _sphere.by(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, mx, my, mz, res) res *= CM * T2NT return res def bz(xp, yp, zp, spheres): """ Calculates the z component of the magnetic induction produced by spheres. .. note:: Input units are SI. Output is in nT Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the physical property ``'magnetization'``. Spheres without ``'magnetization'`` will be ignored. The ``'magnetization'`` must be a vector. Returns: * bz: array The z component of the magnetic induction Example: >>> from fatiando import mesher, gridder, utils >>> # Create a model formed by two spheres >>> # The magnetization of each sphere is a vector >>> model = [ ... mesher.Sphere(1000, 1000, 600, 500, ... {'magnetization':utils.ang2vec(13, -10, 28)}), ... mesher.Sphere(-1000, -1000, 600, 500, ... {'magnetization':utils.ang2vec(10, 70, -5)})] >>> # Create a regular grid at 100m height >>> shape = (4, 4) >>> area = (-3000, 3000, -3000, 3000) >>> xp, yp, zp = gridder.regular(area, shape, z=-100) >>> # Calculate the bz component >>> for b in bz(xp, yp, zp, model): ... print '%15.8e' % b -1.13152279e+01 -3.24362266e+01 -1.63235805e+01 -4.48136597e+00 -1.27492012e+01 2.89101261e+03 -1.30263918e+01 -9.64182996e+00 -6.45566985e+00 3.32987598e+01 -7.08905624e+02 -5.55139945e+01 -1.35745203e+00 2.91949888e+00 -2.78345635e+01 -1.69425703e+01 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") size = len(xp) res = numpy.zeros(size, dtype=numpy.float) for sphere in spheres: if sphere is None or ('magnetization' not in sphere.props): continue # Get the magnetization vector components mx, my, mz = sphere.props['magnetization'] _sphere.bz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, mx, my, mz, res) res *= CM * T2NT return res def gz(xp, yp, zp, spheres, dens=None): """ Calculates the :math:`g_z` gravity acceleration component. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input values in SI and output in mGal! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the field will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the property ``'density'``. Those without will be ignored. * dens : float or None If not None, will use this value instead of the ``'density'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * res : array The field calculated on xp, yp, zp """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) for sphere in spheres: if sphere is None or ('density' not in sphere.props and dens is None): continue if dens is None: density = sphere.props['density'] else: density = dens _sphere.gz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, density, res) res *= G * SI2MGAL return res def gxx(xp, yp, zp, spheres, dens=None): """ Calculates the :math:`g_{xx}` gravity gradient component. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input values in SI and output in Eotvos! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the field will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the property ``'density'``. Those without will be ignored. * dens : float or None If not None, will use this value instead of the ``'density'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * res : array The field calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = [mesher.Sphere(0, 0, 5, 1, {'density':1.})] >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> for g in gxx(xp, yp, zp, sphere): ... print '%15.8e' % g 1.71893959e-06 -6.02473678e-06 -6.02473678e-06 1.71893959e-06 1.39192195e-05 2.76067131e-05 2.76067131e-05 1.39192195e-05 1.39192195e-05 2.76067131e-05 2.76067131e-05 1.39192195e-05 1.71893959e-06 -6.02473678e-06 -6.02473678e-06 1.71893959e-06 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) for sphere in spheres: if sphere is None or ('density' not in sphere.props and dens is None): continue if dens is None: density = sphere.props['density'] else: density = dens _sphere.gxx(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, density, res) res *= G * SI2EOTVOS return res def gxy(xp, yp, zp, spheres, dens=None): """ Calculates the :math:`g_{xy}` gravity gradient component. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input values in SI and output in Eotvos! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the field will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the property ``'density'``. Those without will be ignored. * dens : float or None If not None, will use this value instead of the ``'density'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * res : array The field calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = [mesher.Sphere(0, 0, 5, 1, {'density':1.})] >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the gxy component >>> for g in gxy(xp, yp, zp, sphere): ... print '%15.8e' % g 5.30415646e-06 7.47898359e-06 -7.47898359e-06 -5.30415646e-06 7.47898359e-06 1.10426852e-04 -1.10426852e-04 -7.47898359e-06 -7.47898359e-06 -1.10426852e-04 1.10426852e-04 7.47898359e-06 -5.30415646e-06 -7.47898359e-06 7.47898359e-06 5.30415646e-06 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) for sphere in spheres: if sphere is None or ('density' not in sphere.props and dens is None): continue if dens is None: density = sphere.props['density'] else: density = dens _sphere.gxy(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, density, res) res *= G * SI2EOTVOS return res def gxz(xp, yp, zp, spheres, dens=None): """ Calculates the :math:`g_{xz}` gravity gradient component. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input values in SI and output in Eotvos! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the field will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the property ``'density'``. Those without will be ignored. * dens : float or None If not None, will use this value instead of the ``'density'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * res : array The field calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = [mesher.Sphere(0, 0, 5, 1, {'density':1.})] >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the gxz component >>> for g in gxz(xp, yp, zp, sphere): ... print '%15.8e' % g 8.84026077e-07 1.24649726e-06 -1.24649726e-06 -8.84026077e-07 3.73949179e-06 5.52134262e-05 -5.52134262e-05 -3.73949179e-06 3.73949179e-06 5.52134262e-05 -5.52134262e-05 -3.73949179e-06 8.84026077e-07 1.24649726e-06 -1.24649726e-06 -8.84026077e-07 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) for sphere in spheres: if sphere is None or ('density' not in sphere.props and dens is None): continue if dens is None: density = sphere.props['density'] else: density = dens _sphere.gxz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, density, res) res *= G * SI2EOTVOS return res def gyy(xp, yp, zp, spheres, dens=None): """ Calculates the :math:`g_{yy}` gravity gradient component. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input values in SI and output in Eotvos! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the field will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the property ``'density'``. Those without will be ignored. * dens : float or None If not None, will use this value instead of the ``'density'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * res : array The field calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = [mesher.Sphere(0, 0, 5, 1, {'density':1.})] >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the gyy component >>> for g in gyy(xp, yp, zp, sphere): ... print '%15.8e' % g 1.71893959e-06 1.39192195e-05 1.39192195e-05 1.71893959e-06 -6.02473678e-06 2.76067131e-05 2.76067131e-05 -6.02473678e-06 -6.02473678e-06 2.76067131e-05 2.76067131e-05 -6.02473678e-06 1.71893959e-06 1.39192195e-05 1.39192195e-05 1.71893959e-06 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) for sphere in spheres: if sphere is None or ('density' not in sphere.props and dens is None): continue if dens is None: density = sphere.props['density'] else: density = dens _sphere.gyy(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, density, res) res *= G * SI2EOTVOS return res def gyz(xp, yp, zp, spheres, dens=None): """ Calculates the :math:`g_{yz}` gravity gradient component. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input values in SI and output in Eotvos! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the field will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the property ``'density'``. Those without will be ignored. * dens : float or None If not None, will use this value instead of the ``'density'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * res : array The field calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = [mesher.Sphere(0, 0, 5, 1, {'density':1.})] >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the gyz component >>> for g in gyz(xp, yp, zp, sphere): ... print '%15.8e' % g 8.84026077e-07 3.73949179e-06 3.73949179e-06 8.84026077e-07 1.24649726e-06 5.52134262e-05 5.52134262e-05 1.24649726e-06 -1.24649726e-06 -5.52134262e-05 -5.52134262e-05 -1.24649726e-06 -8.84026077e-07 -3.73949179e-06 -3.73949179e-06 -8.84026077e-07 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) for sphere in spheres: if sphere is None or ('density' not in sphere.props and dens is None): continue if dens is None: density = sphere.props['density'] else: density = dens _sphere.gyz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, density, res) res *= G * SI2EOTVOS return res def gzz(xp, yp, zp, spheres, dens=None): """ Calculates the :math:`g_{zz}` gravity gradient component. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input values in SI and output in Eotvos! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the field will be calculated * spheres : list of :class:`fatiando.mesher.Sphere` The spheres. Spheres must have the property ``'density'``. Those without will be ignored. * dens : float or None If not None, will use this value instead of the ``'density'`` property of the spheres. Use this, e.g., for sensitivity matrix building. Returns: * res : array The field calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = [mesher.Sphere(0, 0, 5, 1, {'density':1.})] >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the gzz component >>> for g in gzz(xp, yp, zp, sphere): ... print '%15.8e' % g -3.43787919e-06 -7.89448267e-06 -7.89448267e-06 -3.43787919e-06 -7.89448267e-06 -5.52134262e-05 -5.52134262e-05 -7.89448267e-06 -7.89448267e-06 -5.52134262e-05 -5.52134262e-05 -7.89448267e-06 -3.43787919e-06 -7.89448267e-06 -7.89448267e-06 -3.43787919e-06 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) for sphere in spheres: if sphere is None or ('density' not in sphere.props and dens is None): continue if dens is None: density = sphere.props['density'] else: density = dens _sphere.gzz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, density, res) res *= G * SI2EOTVOS return res def kernelxx(xp, yp, zp, sphere): r""" Calculates the function .. math:: \frac{\partial^2 \phi(x,y,z)}{\partial x^2}, where .. math:: \phi(x,y,z) = \frac{4}{3} \pi R^3 \frac{1}{r} and .. math:: r = \sqrt{(x - \nu)^2 + (y - \eta)^2 + (z - \zeta)^2}. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input and output values in SI! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the function will be calculated * sphere : object of :class:`fatiando.mesher.Sphere` Returns: * res : array The function calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = mesher.Sphere(0, 0, 5, 1) >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the function >>> kxx = kernelxx(xp, yp, zp, sphere) >>> for k in kxx: ... print '%15.8e' % k 2.57596223e-05 -9.02852807e-05 -9.02852807e-05 2.57596223e-05 2.08590131e-04 4.13707675e-04 4.13707675e-04 2.08590131e-04 2.08590131e-04 4.13707675e-04 4.13707675e-04 2.08590131e-04 2.57596223e-05 -9.02852807e-05 -9.02852807e-05 2.57596223e-05 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) _sphere.gxx(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, 1, res) return res def kernelxy(xp, yp, zp, sphere): r""" Calculates the function .. math:: \frac{\partial^2 \phi(x,y,z)}{\partial x \partial y}, where .. math:: \phi(x,y,z) = \frac{4}{3} \pi R^3 \frac{1}{r} and .. math:: r = \sqrt{(x - \nu)^2 + (y - \eta)^2 + (z - \zeta)^2}. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input and output values in SI! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the function will be calculated * sphere : object of :class:`fatiando.mesher.Sphere` Returns: * res : array The function calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = mesher.Sphere(0, 0, 5, 1) >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the function >>> kxy = kernelxy(xp, yp, zp, sphere) >>> for k in kxy: ... print '%15.8e' % k 7.94868344e-05 1.12078279e-04 -1.12078279e-04 -7.94868344e-05 1.12078279e-04 1.65483070e-03 -1.65483070e-03 -1.12078279e-04 -1.12078279e-04 -1.65483070e-03 1.65483070e-03 1.12078279e-04 -7.94868344e-05 -1.12078279e-04 1.12078279e-04 7.94868344e-05 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) _sphere.gxy(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, 1, res) return res def kernelxz(xp, yp, zp, sphere): r""" Calculates the function .. math:: \frac{\partial^2 \phi(x,y,z)}{\partial x \partial z}, where .. math:: \phi(x,y,z) = \frac{4}{3} \pi R^3 \frac{1}{r} and .. math:: r = \sqrt{(x - \nu)^2 + (y - \eta)^2 + (z - \zeta)^2}. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input and output values in SI! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the function will be calculated * sphere : object of :class:`fatiando.mesher.Sphere` Returns: * res : array The function calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = mesher.Sphere(0, 0, 5, 1) >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the function >>> kxz = kernelxz(xp, yp, zp, sphere) >>> for k in kxz: ... print '%15.8e' % k 1.32478057e-05 1.86797132e-05 -1.86797132e-05 -1.32478057e-05 5.60391397e-05 8.27415349e-04 -8.27415349e-04 -5.60391397e-05 5.60391397e-05 8.27415349e-04 -8.27415349e-04 -5.60391397e-05 1.32478057e-05 1.86797132e-05 -1.86797132e-05 -1.32478057e-05 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) _sphere.gxz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, 1, res) return res def kernelyy(xp, yp, zp, sphere): r""" Calculates the function .. math:: \frac{\partial^2 \phi(x,y,z)}{\partial y^2}, where .. math:: \phi(x,y,z) = \frac{4}{3} \pi R^3 \frac{1}{r} and .. math:: r = \sqrt{(x - \nu)^2 + (y - \eta)^2 + (z - \zeta)^2}. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input and output values in SI! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the function will be calculated * sphere : object of :class:`fatiando.mesher.Sphere` Returns: * res : array The function calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = mesher.Sphere(0, 0, 5, 1) >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the function >>> kyy = kernelyy(xp, yp, zp, sphere) >>> for k in kyy: ... print '%15.8e' % k 2.57596223e-05 2.08590131e-04 2.08590131e-04 2.57596223e-05 -9.02852807e-05 4.13707675e-04 4.13707675e-04 -9.02852807e-05 -9.02852807e-05 4.13707675e-04 4.13707675e-04 -9.02852807e-05 2.57596223e-05 2.08590131e-04 2.08590131e-04 2.57596223e-05 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) _sphere.gyy(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, 1, res) return res def kernelyz(xp, yp, zp, sphere): r""" Calculates the function .. math:: \frac{\partial^2 \phi(x,y,z)}{\partial y \partial z}, where .. math:: \phi(x,y,z) = \frac{4}{3} \pi R^3 \frac{1}{r} and .. math:: r = \sqrt{(x - \nu)^2 + (y - \eta)^2 + (z - \zeta)^2}. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input and output values in SI! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the function will be calculated * sphere : object of :class:`fatiando.mesher.Sphere` Returns: * res : array The function calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = mesher.Sphere(0, 0, 5, 1) >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the function >>> kyz = kernelyz(xp, yp, zp, sphere) >>> for k in kyz: ... print '%15.8e' % k 1.32478057e-05 5.60391397e-05 5.60391397e-05 1.32478057e-05 1.86797132e-05 8.27415349e-04 8.27415349e-04 1.86797132e-05 -1.86797132e-05 -8.27415349e-04 -8.27415349e-04 -1.86797132e-05 -1.32478057e-05 -5.60391397e-05 -5.60391397e-05 -1.32478057e-05 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) _sphere.gyz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, 1, res) return res def kernelzz(xp, yp, zp, sphere): r""" Calculates the function .. math:: \frac{\partial^2 \phi(x,y,z)}{\partial z^2}, where .. math:: \phi(x,y,z) = \frac{4}{3} \pi R^3 \frac{1}{r} and .. math:: r = \sqrt{(x - \nu)^2 + (y - \eta)^2 + (z - \zeta)^2}. .. note:: The coordinate system of the input parameters is to be x -> North, y -> East and z -> Down. .. note:: All input and output values in SI! Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the function will be calculated * sphere : object of :class:`fatiando.mesher.Sphere` Returns: * res : array The function calculated on xp, yp, zp Example: >>> from fatiando import mesher, gridder >>> # Create a sphere model >>> sphere = mesher.Sphere(0, 0, 5, 1) >>> # Create a regular grid at 0m height >>> shape = (4, 4) >>> area = (-30, 30, -30, 30) >>> xp, yp, zp = gridder.regular(area, shape, z=0) >>> # Calculate the function >>> kzz = kernelzz(xp, yp, zp, sphere) >>> for k in kzz: ... print '%15.8e' % k -5.15192445e-05 -1.18304851e-04 -1.18304851e-04 -5.15192445e-05 -1.18304851e-04 -8.27415349e-04 -8.27415349e-04 -1.18304851e-04 -1.18304851e-04 -8.27415349e-04 -8.27415349e-04 -1.18304851e-04 -5.15192445e-05 -1.18304851e-04 -1.18304851e-04 -5.15192445e-05 """ if xp.shape != yp.shape != zp.shape: raise ValueError("Input arrays xp, yp, and zp must have same shape!") res = numpy.zeros(len(xp), dtype=numpy.float) _sphere.gzz(xp, yp, zp, sphere.x, sphere.y, sphere.z, sphere.radius, 1, res) return res
27.837054
79
0.582578
5,271
37,413
4.129387
0.071334
0.020766
0.026463
0.019296
0.84825
0.835891
0.825094
0.812322
0.799779
0.797758
0
0.127065
0.28311
37,413
1,343
80
27.857781
0.684464
0.670302
0
0.719298
0
0
0.113375
0
0
0
0
0
0
1
0.074561
false
0
0.026316
0
0.175439
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
1f48dbbecdfc8b1606a5516ed3f1c20a8b4fb22c
8,602
py
Python
tests/test_srsran_configurations/test_enb_rr.py
matan1008/srsran-controller
8389a78976efb7dfe3ef5dc17f5ac14adcae732c
[ "MIT" ]
null
null
null
tests/test_srsran_configurations/test_enb_rr.py
matan1008/srsran-controller
8389a78976efb7dfe3ef5dc17f5ac14adcae732c
[ "MIT" ]
null
null
null
tests/test_srsran_configurations/test_enb_rr.py
matan1008/srsran-controller
8389a78976efb7dfe3ef5dc17f5ac14adcae732c
[ "MIT" ]
null
null
null
from io import StringIO from srsran_controller.srsran_configurations.enb_rr import * def test_sanity(): output = StringIO() SrsEnbRR( mac_cnfg=SrsEnbRRMacConfig( phr_cnfg=SrsEnbRRMacConfigPhr(dl_pathloss_change='dB3', periodic_phr_timer=50, prohibit_phr_timer=0), ulsch_cnfg=SrsEnbRRMacConfigUlsch(max_harq_tx=4, periodic_bsr_timer=20, retx_bsr_timer=320), time_alignment_timer=-1 ), phy_cnfg=SrsEnbRRPhyConfig( phich_cnfg=SrsEnbRRPhyConfigPhich(duration='Normal', resources='1/6'), pusch_cnfg_ded=SrsEnbRRPhyConfigPuschDed(beta_offset_ack_idx=6, beta_offset_ri_idx=6, beta_offset_cqi_idx=6), sched_request_cnfg=SrsEnbRRPhyConfigSchedRequest(dsr_trans_max=64, period=20, nof_prb=2), cqi_report_cnfg=SrsEnbRRPhyConfigCqiReport( mode='periodic', simultaneousAckCQI=True, period=40, nof_prb=2, m_ri=8 ) ), cell_list=(SrsEnbRRCell( cell_id=0x01, tac=0x0007, pci=1, dl_earfcn=3350, ho_active=False, scell_list=(), meas_cell_list=(SrsEnbRRCellListMeasCell(eci=0x19C02, dl_earfcn=2850, pci=2),), meas_report_desc=SrsEnbRRCellListMeasReportDesc( a3_report_type='RSRP', a3_offset=6, a3_hysteresis=0, a3_time_to_trigger=480, rsrq_config=4 ) ),) ).write(output) assert output.getvalue() == ( 'mac_cnfg =\n' '{\n' ' phr_cnfg =\n' ' {\n' ' dl_pathloss_change = "dB3";\n' ' periodic_phr_timer = 50;\n' ' prohibit_phr_timer = 0;\n' ' };\n' ' ulsch_cnfg =\n' ' {\n' ' max_harq_tx = 4;\n' ' periodic_bsr_timer = 20;\n' ' retx_bsr_timer = 320;\n' ' };\n' ' time_alignment_timer = -1;\n' '};\n' 'phy_cnfg =\n' '{\n' ' phich_cnfg =\n' ' {\n' ' duration = "Normal";\n' ' resources = "1/6";\n' ' };\n' ' pusch_cnfg_ded =\n' ' {\n' ' beta_offset_ack_idx = 6;\n' ' beta_offset_ri_idx = 6;\n' ' beta_offset_cqi_idx = 6;\n' ' };\n' ' sched_request_cnfg =\n' ' {\n' ' dsr_trans_max = 64;\n' ' period = 20;\n' ' nof_prb = 2;\n' ' };\n' ' cqi_report_cnfg =\n' ' {\n' ' mode = "periodic";\n' ' simultaneousAckCQI = True;\n' ' period = 40;\n' ' nof_prb = 2;\n' ' m_ri = 8;\n' ' };\n' '};\n' 'cell_list =\n' '(\n' ' {\n' ' cell_id = 1;\n' ' tac = 7;\n' ' pci = 1;\n' ' dl_earfcn = 3350;\n' ' rf_port = 0;\n' ' ho_active = False;\n' ' scell_list =\n' ' (\n' '\n' ' );\n' ' meas_cell_list =\n' ' (\n' ' {\n' ' eci = 105474;\n' ' dl_earfcn = 2850;\n' ' pci = 2;\n' ' }\n' ' );\n' ' meas_report_desc =\n' ' {\n' ' a3_report_type = "RSRP";\n' ' a3_offset = 6;\n' ' a3_hysteresis = 0;\n' ' a3_time_to_trigger = 480;\n' ' rsrq_config = 4;\n' ' };\n' ' }\n' ');\n' ) def test_multi_cell(): output = StringIO() SrsEnbRR( mac_cnfg=SrsEnbRRMacConfig( phr_cnfg=SrsEnbRRMacConfigPhr(dl_pathloss_change='dB3', periodic_phr_timer=50, prohibit_phr_timer=0), ulsch_cnfg=SrsEnbRRMacConfigUlsch(max_harq_tx=4, periodic_bsr_timer=20, retx_bsr_timer=320), time_alignment_timer=-1 ), phy_cnfg=SrsEnbRRPhyConfig( phich_cnfg=SrsEnbRRPhyConfigPhich(duration='Normal', resources='1/6'), pusch_cnfg_ded=SrsEnbRRPhyConfigPuschDed(beta_offset_ack_idx=6, beta_offset_ri_idx=6, beta_offset_cqi_idx=6), sched_request_cnfg=SrsEnbRRPhyConfigSchedRequest(dsr_trans_max=64, period=20, nof_prb=2), cqi_report_cnfg=SrsEnbRRPhyConfigCqiReport( mode='periodic', simultaneousAckCQI=True, period=40, nof_prb=2, m_ri=8 ) ), cell_list=( SrsEnbRRCell( cell_id=0x01, tac=0x0007, pci=1, dl_earfcn=3350, ho_active=False, scell_list=(), meas_cell_list=(SrsEnbRRCellListMeasCell(eci=0x19C02, dl_earfcn=2850, pci=2),), meas_report_desc=SrsEnbRRCellListMeasReportDesc( a3_report_type='RSRP', a3_offset=6, a3_hysteresis=0, a3_time_to_trigger=480, rsrq_config=4 ) ), SrsEnbRRCell( cell_id=0x02, tac=0x0007, pci=2, dl_earfcn=1600, ho_active=False, scell_list=(), rf_port=1, meas_cell_list=(SrsEnbRRCellListMeasCell(eci=0x19C01, dl_earfcn=3350, pci=1),) ), ) ).write(output) assert output.getvalue() == ( 'mac_cnfg =\n' '{\n' ' phr_cnfg =\n' ' {\n' ' dl_pathloss_change = "dB3";\n' ' periodic_phr_timer = 50;\n' ' prohibit_phr_timer = 0;\n' ' };\n' ' ulsch_cnfg =\n' ' {\n' ' max_harq_tx = 4;\n' ' periodic_bsr_timer = 20;\n' ' retx_bsr_timer = 320;\n' ' };\n' ' time_alignment_timer = -1;\n' '};\n' 'phy_cnfg =\n' '{\n' ' phich_cnfg =\n' ' {\n' ' duration = "Normal";\n' ' resources = "1/6";\n' ' };\n' ' pusch_cnfg_ded =\n' ' {\n' ' beta_offset_ack_idx = 6;\n' ' beta_offset_ri_idx = 6;\n' ' beta_offset_cqi_idx = 6;\n' ' };\n' ' sched_request_cnfg =\n' ' {\n' ' dsr_trans_max = 64;\n' ' period = 20;\n' ' nof_prb = 2;\n' ' };\n' ' cqi_report_cnfg =\n' ' {\n' ' mode = "periodic";\n' ' simultaneousAckCQI = True;\n' ' period = 40;\n' ' nof_prb = 2;\n' ' m_ri = 8;\n' ' };\n' '};\n' 'cell_list =\n' '(\n' ' {\n' ' cell_id = 1;\n' ' tac = 7;\n' ' pci = 1;\n' ' dl_earfcn = 3350;\n' ' rf_port = 0;\n' ' ho_active = False;\n' ' scell_list =\n' ' (\n' '\n' ' );\n' ' meas_cell_list =\n' ' (\n' ' {\n' ' eci = 105474;\n' ' dl_earfcn = 2850;\n' ' pci = 2;\n' ' }\n' ' );\n' ' meas_report_desc =\n' ' {\n' ' a3_report_type = "RSRP";\n' ' a3_offset = 6;\n' ' a3_hysteresis = 0;\n' ' a3_time_to_trigger = 480;\n' ' rsrq_config = 4;\n' ' };\n' ' },\n' ' {\n' ' cell_id = 2;\n' ' tac = 7;\n' ' pci = 2;\n' ' dl_earfcn = 1600;\n' ' rf_port = 1;\n' ' ho_active = False;\n' ' scell_list =\n' ' (\n' '\n' ' );\n' ' meas_cell_list =\n' ' (\n' ' {\n' ' eci = 105473;\n' ' dl_earfcn = 3350;\n' ' pci = 1;\n' ' }\n' ' );\n' ' meas_report_desc =\n' ' {\n' ' a3_report_type = "RSRP";\n' ' a3_offset = 6;\n' ' a3_hysteresis = 0;\n' ' a3_time_to_trigger = 480;\n' ' rsrq_config = 4;\n' ' };\n' ' }\n' ');\n' )
34.96748
113
0.41688
864
8,602
3.847222
0.137731
0.041516
0.019856
0.016847
0.936823
0.909747
0.909747
0.909747
0.909747
0.909747
0
0.058439
0.448965
8,602
245
114
35.110204
0.642827
0
0
0.9125
0
0
0.408975
0
0
0
0.005929
0
0.008333
1
0.008333
false
0
0.008333
0
0.016667
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
c0e828c29ee2df4ffb9f6646d5cf62c450718508
4,000
py
Python
src/model.py
paolodidio/flatland-bologna
3a493e686ae5c38f59b9f8230ce541cd0d0f4a9d
[ "MIT" ]
null
null
null
src/model.py
paolodidio/flatland-bologna
3a493e686ae5c38f59b9f8230ce541cd0d0f4a9d
[ "MIT" ]
null
null
null
src/model.py
paolodidio/flatland-bologna
3a493e686ae5c38f59b9f8230ce541cd0d0f4a9d
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F import torch class DuelingQNetwork(nn.Module): """Dueling Q-network (https://arxiv.org/abs/1511.06581)""" def __init__(self, state_size, action_size, hidsize1=128, hidsize2=128): super(DuelingQNetwork, self).__init__() # value network self.fc1_val = nn.Linear(state_size, hidsize1) self.fc2_val = nn.Linear(hidsize1, hidsize2) self.fc4_val = nn.Linear(hidsize2, 1) # advantage network self.fc1_adv = nn.Linear(state_size, hidsize1) self.fc2_adv = nn.Linear(hidsize1, hidsize2) self.fc4_adv = nn.Linear(hidsize2, action_size) def forward(self, x): val = F.relu(self.fc1_val(x)) val = F.relu(self.fc2_val(val)) val = self.fc4_val(val) # advantage calculation adv = F.relu(self.fc1_adv(x)) adv = F.relu(self.fc2_adv(adv)) adv = self.fc4_adv(adv) return val + adv - adv.mean() class DuelingConvSimpleQNetwork(nn.Module): """Dueling Q-network (https://arxiv.org/abs/1511.06581)""" def __init__(self, state_size, action_size, node_size, out_channels=5, hidsize1=128, hidsize2=128): super(DuelingConvSimpleQNetwork, self).__init__() self.conv_out_size = int(out_channels * (state_size / node_size)) # value network self.fc_conv_val = nn.Conv1d(in_channels=1, out_channels=out_channels, kernel_size=node_size, stride=node_size) self.fc1_val = nn.Linear(self.conv_out_size, hidsize1) # self.fc2_val = nn.Linear(hidsize1, hidsize2) self.fc4_val = nn.Linear(hidsize2, 1) # advantage network self.fc_conv_adv = nn.Conv1d(in_channels=1, out_channels=out_channels, kernel_size=node_size, stride=node_size) self.fc1_adv = nn.Linear(self.conv_out_size, hidsize1) # self.fc2_adv = nn.Linear(hidsize1, hidsize2) self.fc4_adv = nn.Linear(hidsize2, action_size) def forward(self, x): x = x.unsqueeze(1) val = F.relu(self.fc_conv_val(x)) val = val.view(-1, self.conv_out_size) val = F.relu(self.fc1_val(val)) # val = F.relu(self.fc2_val(val)) val = self.fc4_val(val) # advantage calculation adv = F.relu(self.fc_conv_adv(x)) adv = adv.view(-1, self.conv_out_size) adv = F.relu(self.fc1_adv(adv)) # adv = F.relu(self.fc2_adv(adv)) adv = self.fc4_adv(adv) return val + adv - adv.mean() class DuelingConvQNetwork(nn.Module): """Dueling Q-network (https://arxiv.org/abs/1511.06581)""" def __init__(self, state_size, action_size, node_size, out_channels=5, hidsize1=128, hidsize2=128): super(DuelingConvQNetwork, self).__init__() self.conv_out_size = int(out_channels * (state_size / node_size)) # value network self.fc_conv_val = nn.Conv1d(in_channels=1, out_channels=out_channels, kernel_size=node_size, stride=node_size) self.fc1_val = nn.Linear(self.conv_out_size, hidsize1) self.fc2_val = nn.Linear(hidsize1, hidsize2) self.fc4_val = nn.Linear(hidsize2, 1) # advantage network self.fc_conv_adv = nn.Conv1d(in_channels=1, out_channels=out_channels, kernel_size=node_size, stride=node_size) self.fc1_adv = nn.Linear(self.conv_out_size, hidsize1) self.fc2_adv = nn.Linear(hidsize1, hidsize2) self.fc4_adv = nn.Linear(hidsize2, action_size) def forward(self, x): x = x.unsqueeze(1) val = F.relu(self.fc_conv_val(x)) val = val.view(-1, self.conv_out_size) val = F.relu(self.fc1_val(val)) val = F.relu(self.fc2_val(val)) val = self.fc4_val(val) # advantage calculation adv = F.relu(self.fc_conv_adv(x)) adv = adv.view(-1, self.conv_out_size) adv = F.relu(self.fc1_adv(adv)) adv = F.relu(self.fc2_adv(adv)) adv = self.fc4_adv(adv) return val + adv - adv.mean()
37.037037
119
0.644
583
4,000
4.176672
0.099485
0.059138
0.059138
0.061602
0.918686
0.900616
0.89076
0.880082
0.880082
0.880082
0
0.042235
0.2305
4,000
108
120
37.037037
0.748863
0.11875
0
0.787879
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.227273
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
f19aa5a07d369e404c3389edd52e4880df58d0b7
13,218
py
Python
populaires/tests/test_tasks.py
douglatornell/randopony
d47b10a23cb426da79284fb7fa8c968825ee8915
[ "BSD-3-Clause" ]
null
null
null
populaires/tests/test_tasks.py
douglatornell/randopony
d47b10a23cb426da79284fb7fa8c968825ee8915
[ "BSD-3-Clause" ]
2
2020-06-18T21:42:02.000Z
2020-06-18T21:42:03.000Z
populaires/tests/test_tasks.py
douglatornell/randopony
d47b10a23cb426da79284fb7fa8c968825ee8915
[ "BSD-3-Clause" ]
null
null
null
"""Asynchronous (celeryd) task tests for RandoPony populaires app. """ # Django: import django.test from django.conf import settings from django.core import mail class TestEmailToRider(django.test.TestCase): """Unit tests for email_to_rider task function. """ fixtures = ['populaires.yaml', 'riders.yaml', 'email_addresses.yaml'] def _get_target_function(self): from ..tasks import email_to_rider return email_to_rider def _send_one(self, *args, **kwargs): self._get_target_function()(*args, **kwargs) def test_email_subject(self): """email to rider has correct subject """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].subject, 'Pre-registration Confirmation for VicPop 27-Mar-2011') def test_email_to(self): """email to rider has correct to address """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].to, ['mjanson@example.com']) def test_email_from(self): """email to rider has correct from address """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].from_email, 'randopony@randonneurs.bc.ca') def test_email_sender(self): """email to rider has correct sender address header """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].extra_headers['Sender'], 'randopony@randonneurs.bc.ca') def test_email_reply_to(self): """email to rider has correct reply-to address header """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].extra_headers['Reply-To'], 'mjansson@example.com') def test_email_reply_to_2_organizers(self): """email to rider has 2 organizers in reply-to header """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='CanadaDay') rider = Rider.objects.get( first_name='Susan', last_name='Barr', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].extra_headers['Reply-To'], 'aliholt@example.com, rogerholt@example.com') def test_email_confirm_populaire_registration_msg(self): """email to rider has correct populaire pre-reg confirmation msg """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( 'pre-registered for the BC Randonneurs ' 'Victoria Populaire on March 27, 2011.', mail.outbox[0].body) def test_email_populaire_url(self): """email to rider has correct populaire page url """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( '<http://testserver/populaires/VicPop/27Mar2011/>', mail.outbox[0].body) def test_email_organizer_contact_msg(self): """email to rider has correct "reply to contact organizer" msg """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( 'auto-generated email, but you can reply to it ' 'to contact the populaire organizer(s).', mail.outbox[0].body) def test_email_event_waiver_msg(self): """email to rider has event waiver message when there is a specific one """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( 'print out the event waiver form from the club web site', mail.outbox[0].body) def test_email_no_event_waiver_msg(self): """email to rider has no event waiver message when no specific one """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='NanPop') rider = Rider.objects.get( first_name='Ryder', last_name='Hesjedal', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertNotIn( 'print out the event waiver form from the club web site', mail.outbox[0].body) def test_email_event_waiver_url(self): """email to rider has correct event waiver url """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( '<http://www.randonneurs.bc.ca/VicPop/VicPop11_registration.pdf>', mail.outbox[0].body) class TestEmailToOrganizer(django.test.TestCase): """Unit tests for email_to_organizer task function. """ fixtures = ['populaires.yaml', 'riders.yaml', 'email_addresses.yaml'] def _get_target_function(self): from ..tasks import email_to_organizer return email_to_organizer def _send_one(self, *args, **kwargs): self._get_target_function()(*args, **kwargs) def test_email_subject(self): """email to organizer has correct subject """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].subject, 'Mikael Janson has Pre-registered for the VicPop 27-Mar-2011') def test_email_to(self): """email to organizer has correct to address """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].to, ['mjansson@example.com']) def test_email_to_2_organizers(self): """email to organizer goes to multiple organizers """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='CanadaDay') rider = Rider.objects.get( first_name='Susan', last_name='Barr', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].to, 'aliholt@example.com rogerholt@example.com'.split()) def test_email_from(self): """email to organizer has correct from address """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertEqual( mail.outbox[0].from_email, 'randopony@randonneurs.bc.ca') def test_email_confirm_organizer_registration_msg(self): """email to organizer has correct pre-registration confirmation msg """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( 'Mikael Janson <mjanson@example.com> has pre-registered for the ' 'VicPop.', mail.outbox[0].body) def test_email_populaire_url(self): """email to organizer has correct populaire page url """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( '<http://testserver/populaires/VicPop/27Mar2011/>', mail.outbox[0].body) def test_email_rider_list_spreadsheet_url(self): """email to organizer has correct rider list spreadsheet url """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( 'https://spreadsheets.google.com/ccc?key=foo', mail.outbox[0].body) def test_email_distance_selected(self): """email to organizer has correct distance selected by rider """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( 'Mikael Janson has indicated that zhe is planning to ride the ' '100 km distance.', mail.outbox[0].body) def test_email_single_distance_populaire(self): """email to organizer lacks distance msg for single distance populaire """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='NewYearsPop') rider = Rider.objects.get( first_name='Mike', last_name='Croy', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertNotIn( 'Mike Croy has indicated that zhe is planning to ride the ' '100 km distance.', mail.outbox[0].body) def test_email_admin_contact_msg(self): """email to organizer has correct admin contact email address msg """ from ..models import Populaire from ..models import Rider populaire = Populaire.objects.get(short_name='VicPop') rider = Rider.objects.get( first_name='Mikael', last_name='Janson', populaire=populaire) self._send_one(populaire.pk, rider.pk, 'testserver') self.assertIn( 'This is an auto-generated email. If you are having problems with ' 'the RandoPony system please send email to ' '<{0}>.'.format(settings.ADMINS[0][1]), mail.outbox[0].body)
41.17757
79
0.635724
1,553
13,218
5.268513
0.108178
0.053777
0.086043
0.070276
0.861159
0.851626
0.821193
0.767539
0.743706
0.737717
0
0.006707
0.255561
13,218
320
80
41.30625
0.824797
0.114768
0
0.786611
0
0
0.161396
0.012442
0
0
0
0
0.09205
1
0.108787
false
0
0.205021
0
0.338912
0.008368
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
f1e0049270387c8fc868988c157810a7c1872791
6,405
py
Python
test/test_mix.py
hirzel/jsonsubschema
411b3b1fa0cbdc6e74e0d7975ef17ee99d79b175
[ "Apache-2.0" ]
16
2020-05-29T09:21:25.000Z
2022-01-12T09:03:29.000Z
test/test_mix.py
hirzel/jsonsubschema
411b3b1fa0cbdc6e74e0d7975ef17ee99d79b175
[ "Apache-2.0" ]
9
2019-11-10T18:32:44.000Z
2022-02-18T00:47:14.000Z
test/test_mix.py
hirzel/jsonsubschema
411b3b1fa0cbdc6e74e0d7975ef17ee99d79b175
[ "Apache-2.0" ]
9
2019-11-02T06:52:57.000Z
2022-01-03T08:35:24.000Z
''' Created on June 3, 2019 @author: Andrew Habib ''' import unittest from jsonsubschema import isSubschema, set_warn_uninhabited class TestMixedTypes(unittest.TestCase): def test_t_t_1(self): s1 = {'type': 'number'} s2 = {'type': 'array'} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_t_t_2(self): s1 = {'type': 'number'} s2 = {'type': ['number']} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_t_t_3(self): s1 = {'type': 'integer'} s2 = {'type': ['number']} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_t_t_4(self): s1 = {'type': 'integer'} s2 = {'type': ['number', 'string']} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_t_t_5(self): s1 = {'type': ['string', 'array']} s2 = {'type': ['number', 'string']} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_str_int(self): s1 = {'type': 'string', 'pattern': 'a+', 'allOf': [{'type': 'string', 'pattern': 'b+'}, {'allOf': [{'type': 'string', 'maxLength': 10}]}] } s2 = {'type': 'integer', 'maxLength': 1} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_str_bool_any(self): s1 = {'type': ['string', 'boolean']} s2 = {'anyOf': [{'type': 'string'}, {'type': 'boolean'}]} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_allany_any(self): s1 = {'allOf': [{'type': ['string', 'boolean']}], 'type': ['string', 'boolean']} s2 = {'anyOf': [{'type': 'string'}, {'type': 'boolean'}]} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_enum1(self): s1 = {'enum': [1, 2, 'test', False]} s2 = {'type': ['integer', 'string'], 'minimum': 10, 'enum': [1, 2]} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_enum2(self): s1 = {'allOf': [{'enum': [1, 2, 3]}, { 'type': 'integer'}], 'enum': [3, 4, 5]} s2 = {'type': 'integer', 'enum': [1, 2, 3]} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_enum3(self): s1 = {'enum': [3, 4, 5]} s2 = {'enum': [1, 2, 3]} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_enum4(self): s1 = {'enum': [3, 4, 5]} s2 = {'enum': [4, 5, 3]} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_enum5(self): s1 = {'enum': [3, 4, 5], 'allOf': [{'enum': [1, 2]}]} s2 = {'enum': [4, 5, 3]} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_enum6(self): s1 = {'enum': [3, 4, 5], 'type': 'string'} s2 = {'enum': [4, 5, 3]} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_top_nottop(self): s1 = {} s2 = {'type': 'string'} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_top_bot(self): s1 = {} s2 = {'type': 'string', 'enum': [1, 2, 3]} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_uninhabited1(self): s1 = {'type': 'string', 'enum': [2]} s2 = {'type': 'boolean'} set_warn_uninhabited(True) with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) set_warn_uninhabited(False) def test_not_number(self): s1 = {'description': 'checking_status', 'enum': [ '<0', '0<=X<200', '>=200', 'no checking']} s2 = {'not': {'type': 'number'}} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) class TestBottomAndTop(unittest.TestCase): def test_bot1(self): s1 = {'not': {}} s2 = {'type': 'string'} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_bot2(self): s1 = {'description': 'bottom', 'not': {}} s2 = {'type': 'string'} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertFalse(isSubschema(s2, s1)) def test_top1(self): s1 = {} s2 = {'type': 'string'} with self.subTest(): self.assertFalse(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1)) def test_top2(self): s1 = {'description': 'top'} s2 = {} with self.subTest(): self.assertTrue(isSubschema(s1, s2)) with self.subTest(): self.assertTrue(isSubschema(s2, s1))
31.707921
110
0.521468
703
6,405
4.685633
0.112376
0.106861
0.200364
0.253795
0.770795
0.762599
0.741348
0.729812
0.712204
0.712204
0
0.046809
0.302888
6,405
201
111
31.865672
0.690929
0.007026
0
0.666667
0
0
0.098237
0
0
0
0
0
0.266667
1
0.133333
false
0
0.012121
0
0.157576
0
0
0
0
null
0
1
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7b2e2d080aed5663cfc34356797291a34373c6a7
77
py
Python
src/onqg/dataset/__init__.py
YuxiXie/Semantic-Graphs-for-Generating-Deep-Questions
6e5ef241c64b5b30a6ff54ddad31e610013b8388
[ "MIT" ]
62
2020-04-23T05:53:49.000Z
2021-11-18T11:25:11.000Z
src/onqg/dataset/__init__.py
YuxiXie/Semantic-Graphs-for-Generating-Deep-Questions
6e5ef241c64b5b30a6ff54ddad31e610013b8388
[ "MIT" ]
14
2020-06-13T02:44:14.000Z
2021-12-21T12:51:25.000Z
src/onqg/dataset/__init__.py
YuxiXie/Semantic-Graphs-for-Generating-Deep-Questions
6e5ef241c64b5b30a6ff54ddad31e610013b8388
[ "MIT" ]
17
2020-04-23T05:52:30.000Z
2021-11-10T06:46:36.000Z
from onqg.dataset.Dataset import Dataset from onqg.dataset.Vocab import Vocab
38.5
40
0.857143
12
77
5.5
0.416667
0.242424
0.454545
0
0
0
0
0
0
0
0
0
0.090909
77
2
41
38.5
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
9e81814847d88400460d7d6d4dd86bd8f8b004f7
250,379
py
Python
pyboto3/mediaconnect.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
91
2016-12-31T11:38:37.000Z
2021-09-16T19:33:23.000Z
pyboto3/mediaconnect.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
7
2017-01-02T18:54:23.000Z
2020-08-11T13:54:02.000Z
pyboto3/mediaconnect.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
26
2016-12-31T13:11:00.000Z
2022-03-03T21:01:12.000Z
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' def add_flow_outputs(FlowArn=None, Outputs=None): """ Adds outputs to an existing flow. You can create up to 50 outputs per flow. See also: AWS API Documentation Exceptions :example: response = client.add_flow_outputs( FlowArn='string', Outputs=[ { 'CidrAllowList': [ 'string', ], 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'MaxLatency': 123, 'Name': 'string', 'Port': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string', 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ] ) :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to add outputs to. :type Outputs: list :param Outputs: [REQUIRED] A list of outputs that you want to add.\n\n(dict) -- The output that you want to add to this flow.\nCidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.\n(string) --\n\n\nDescription (string) -- A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.\nDestination (string) -- The IP address from which video will be sent to output destinations.\nEncryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nAlgorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n\nMaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.\nName (string) -- The name of the output. This value must be unique within the current flow.\nPort (integer) -- The port to use when content is distributed to this output.\nProtocol (string) -- [REQUIRED] The protocol to use for the output.\nRemoteId (string) -- The remote ID for the Zixi-pull output stream.\nSmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.\nStreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.\nVpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output.\nVpcInterfaceName (string) -- The name of the VPC interface to use for this output.\n\n\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ] } Response Structure (dict) -- AWS Elemental MediaConnect added the outputs successfully. FlowArn (string) -- The ARN of the flow that these outputs were added to. Outputs (list) -- The details of the newly added outputs. (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. Exceptions MediaConnect.Client.exceptions.AddFlowOutputs420Exception MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ] } :returns: (dict) -- AWS Elemental MediaConnect added the outputs successfully. FlowArn (string) -- The ARN of the flow that these outputs were added to. Outputs (list) -- The details of the newly added outputs. (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. """ pass def add_flow_sources(FlowArn=None, Sources=None): """ Adds Sources to flow See also: AWS API Documentation Exceptions :example: response = client.add_flow_sources( FlowArn='string', Sources=[ { 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestPort': 123, 'MaxBitrate': 123, 'MaxLatency': 123, 'Name': 'string', 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'StreamId': 'string', 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ] ) :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to mutate. :type Sources: list :param Sources: [REQUIRED] A list of sources that you want to add.\n\n(dict) -- The settings for the source of the flow.\nDecryption (dict) -- The type of encryption that is used on the content ingested from this source.\nAlgorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n\nDescription (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.\nEntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator\'s flow.\nIngestPort (integer) -- The port that the flow will be listening on for incoming content.\nMaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.\nMaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.\nName (string) -- The name of the source.\nProtocol (string) -- The protocol that is used by the source.\nStreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.\nVpcInterfaceName (string) -- The name of the VPC interface to use for this source.\nWhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ] } Response Structure (dict) -- AWS Elemental MediaConnect added sources to the flow successfully. FlowArn (string) -- The ARN of the flow that these sources were added to. Sources (list) -- The details of the newly added sources. (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ] } :returns: (dict) -- AWS Elemental MediaConnect added sources to the flow successfully. FlowArn (string) -- The ARN of the flow that these sources were added to. Sources (list) -- The details of the newly added sources. (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. """ pass def add_flow_vpc_interfaces(FlowArn=None, VpcInterfaces=None): """ Adds VPC interfaces to flow See also: AWS API Documentation Exceptions :example: response = client.add_flow_vpc_interfaces( FlowArn='string', VpcInterfaces=[ { 'Name': 'string', 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] ) :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to mutate. :type VpcInterfaces: list :param VpcInterfaces: [REQUIRED] A list of VPC interfaces that you want to add.\n\n(dict) -- Desired VPC Interface for a Flow\nName (string) -- [REQUIRED] The name of the VPC Interface. This value must be unique within the current flow.\nRoleArn (string) -- [REQUIRED] Role Arn MediaConnect can assumes to create ENIs in customer\'s account\nSecurityGroupIds (list) -- [REQUIRED] Security Group IDs to be used on ENI.\n(string) --\n\n\nSubnetId (string) -- [REQUIRED] Subnet must be in the AZ of the Flow\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] } Response Structure (dict) -- The following VPC interface was added to the Flow configuration. FlowArn (string) -- The ARN of the flow that these VPC interfaces were added to. VpcInterfaces (list) -- The details of the newly added VPC interfaces. (dict) -- The settings for a VPC Source. Name (string) -- Immutable and has to be a unique against other VpcInterfaces in this Flow NetworkInterfaceIds (list) -- IDs of the network interfaces created in customer\'s account by MediaConnect. (string) -- RoleArn (string) -- Role Arn MediaConnect can assumes to create ENIs in customer\'s account SecurityGroupIds (list) -- Security Group IDs to be used on ENI. (string) -- SubnetId (string) -- Subnet must be in the AZ of the Flow Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] } :returns: (dict) -- The following VPC interface was added to the Flow configuration. FlowArn (string) -- The ARN of the flow that these VPC interfaces were added to. VpcInterfaces (list) -- The details of the newly added VPC interfaces. (dict) -- The settings for a VPC Source. Name (string) -- Immutable and has to be a unique against other VpcInterfaces in this Flow NetworkInterfaceIds (list) -- IDs of the network interfaces created in customer\'s account by MediaConnect. (string) -- RoleArn (string) -- Role Arn MediaConnect can assumes to create ENIs in customer\'s account SecurityGroupIds (list) -- Security Group IDs to be used on ENI. (string) -- SubnetId (string) -- Subnet must be in the AZ of the Flow """ pass def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo'). """ pass def create_flow(AvailabilityZone=None, Entitlements=None, Name=None, Outputs=None, Source=None, SourceFailoverConfig=None, Sources=None, VpcInterfaces=None): """ Creates a new flow. The request must include one source. The request optionally can include outputs (up to 50) and entitlements (up to 50). See also: AWS API Documentation Exceptions :example: response = client.create_flow( AvailabilityZone='string', Entitlements=[ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Name': 'string', 'Subscribers': [ 'string', ] }, ], Name='string', Outputs=[ { 'CidrAllowList': [ 'string', ], 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'MaxLatency': 123, 'Name': 'string', 'Port': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string', 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ], Source={ 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestPort': 123, 'MaxBitrate': 123, 'MaxLatency': 123, 'Name': 'string', 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'StreamId': 'string', 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, SourceFailoverConfig={ 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' }, Sources=[ { 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestPort': 123, 'MaxBitrate': 123, 'MaxLatency': 123, 'Name': 'string', 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'StreamId': 'string', 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ], VpcInterfaces=[ { 'Name': 'string', 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] ) :type AvailabilityZone: string :param AvailabilityZone: The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS Region. :type Entitlements: list :param Entitlements: The entitlements that you want to grant on a flow.\n\n(dict) -- The entitlements that you want to grant on a flow.\nDataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber.\nDescription (string) -- A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.\nEncryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.\nAlgorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n\nName (string) -- The name of the entitlement. This value must be unique within the current flow.\nSubscribers (list) -- [REQUIRED] The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.\n(string) --\n\n\n\n\n\n :type Name: string :param Name: [REQUIRED] The name of the flow. :type Outputs: list :param Outputs: The outputs that you want to add to this flow.\n\n(dict) -- The output that you want to add to this flow.\nCidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.\n(string) --\n\n\nDescription (string) -- A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.\nDestination (string) -- The IP address from which video will be sent to output destinations.\nEncryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nAlgorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n\nMaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.\nName (string) -- The name of the output. This value must be unique within the current flow.\nPort (integer) -- The port to use when content is distributed to this output.\nProtocol (string) -- [REQUIRED] The protocol to use for the output.\nRemoteId (string) -- The remote ID for the Zixi-pull output stream.\nSmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.\nStreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.\nVpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output.\nVpcInterfaceName (string) -- The name of the VPC interface to use for this output.\n\n\n\n\n\n :type Source: dict :param Source: The settings for the source of the flow.\n\nDecryption (dict) -- The type of encryption that is used on the content ingested from this source.\nAlgorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n\nDescription (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.\nEntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator\'s flow.\nIngestPort (integer) -- The port that the flow will be listening on for incoming content.\nMaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.\nMaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.\nName (string) -- The name of the source.\nProtocol (string) -- The protocol that is used by the source.\nStreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.\nVpcInterfaceName (string) -- The name of the VPC interface to use for this source.\nWhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.\n\n :type SourceFailoverConfig: dict :param SourceFailoverConfig: The settings for source failover\n\nRecoveryWindow (integer) -- Search window time to look for dash-7 packets\nState (string) --\n\n :type Sources: list :param Sources: \n(dict) -- The settings for the source of the flow.\nDecryption (dict) -- The type of encryption that is used on the content ingested from this source.\nAlgorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n\nDescription (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.\nEntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator\'s flow.\nIngestPort (integer) -- The port that the flow will be listening on for incoming content.\nMaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.\nMaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.\nName (string) -- The name of the source.\nProtocol (string) -- The protocol that is used by the source.\nStreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.\nVpcInterfaceName (string) -- The name of the VPC interface to use for this source.\nWhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.\n\n\n\n :type VpcInterfaces: list :param VpcInterfaces: The VPC interfaces you want on the flow.\n\n(dict) -- Desired VPC Interface for a Flow\nName (string) -- [REQUIRED] The name of the VPC Interface. This value must be unique within the current flow.\nRoleArn (string) -- [REQUIRED] Role Arn MediaConnect can assumes to create ENIs in customer\'s account\nSecurityGroupIds (list) -- [REQUIRED] Security Group IDs to be used on ENI.\n(string) --\n\n\nSubnetId (string) -- [REQUIRED] Subnet must be in the AZ of the Flow\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'Flow': { 'AvailabilityZone': 'string', 'Description': 'string', 'EgressIp': 'string', 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string', 'Name': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ], 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, 'SourceFailoverConfig': { 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' }, 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ], 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] } } Response Structure (dict) -- AWS Elemental MediaConnect created the new flow successfully. Flow (dict) -- The settings for a flow, including its source, outputs, and entitlements. AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS. Description (string) -- A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EgressIp (string) -- The IP address from which video will be sent to output destinations. Entitlements (list) -- The entitlements in this flow. (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow. Name (string) -- The name of the flow. Outputs (list) -- The outputs in this flow. (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. Source (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. SourceFailoverConfig (dict) -- The settings for source failover RecoveryWindow (integer) -- Search window time to look for dash-7 packets State (string) -- Sources (list) -- (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. Status (string) -- The current status of the flow. VpcInterfaces (list) -- The VPC Interfaces for this flow. (dict) -- The settings for a VPC Source. Name (string) -- Immutable and has to be a unique against other VpcInterfaces in this Flow NetworkInterfaceIds (list) -- IDs of the network interfaces created in customer\'s account by MediaConnect. (string) -- RoleArn (string) -- Role Arn MediaConnect can assumes to create ENIs in customer\'s account SecurityGroupIds (list) -- Security Group IDs to be used on ENI. (string) -- SubnetId (string) -- Subnet must be in the AZ of the Flow Exceptions MediaConnect.Client.exceptions.CreateFlow420Exception MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'Flow': { 'AvailabilityZone': 'string', 'Description': 'string', 'EgressIp': 'string', 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string', 'Name': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ], 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, 'SourceFailoverConfig': { 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' }, 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ], 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] } } :returns: (dict) -- AWS Elemental MediaConnect created the new flow successfully. Flow (dict) -- The settings for a flow, including its source, outputs, and entitlements. AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS. Description (string) -- A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EgressIp (string) -- The IP address from which video will be sent to output destinations. Entitlements (list) -- The entitlements in this flow. (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow. Name (string) -- The name of the flow. Outputs (list) -- The outputs in this flow. (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. Source (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. SourceFailoverConfig (dict) -- The settings for source failover RecoveryWindow (integer) -- Search window time to look for dash-7 packets State (string) -- Sources (list) -- (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. Status (string) -- The current status of the flow. VpcInterfaces (list) -- The VPC Interfaces for this flow. (dict) -- The settings for a VPC Source. Name (string) -- Immutable and has to be a unique against other VpcInterfaces in this Flow NetworkInterfaceIds (list) -- IDs of the network interfaces created in customer\'s account by MediaConnect. (string) -- RoleArn (string) -- Role Arn MediaConnect can assumes to create ENIs in customer\'s account SecurityGroupIds (list) -- Security Group IDs to be used on ENI. (string) -- SubnetId (string) -- Subnet must be in the AZ of the Flow """ pass def delete_flow(FlowArn=None): """ Deletes a flow. Before you can delete a flow, you must stop the flow. See also: AWS API Documentation Exceptions :example: response = client.delete_flow( FlowArn='string' ) :type FlowArn: string :param FlowArn: [REQUIRED] The ARN of the flow that you want to delete. :rtype: dict ReturnsResponse Syntax{ 'FlowArn': 'string', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' } Response Structure (dict) -- AWS Elemental MediaConnect is deleting the flow. FlowArn (string) -- The ARN of the flow that was deleted. Status (string) -- The status of the flow when the DeleteFlow process begins. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' } :returns: MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException """ pass def describe_flow(FlowArn=None): """ Displays the details of a flow. The response includes the flow ARN, name, and Availability Zone, as well as details about the source, outputs, and entitlements. See also: AWS API Documentation Exceptions :example: response = client.describe_flow( FlowArn='string' ) :type FlowArn: string :param FlowArn: [REQUIRED] The ARN of the flow that you want to describe. :rtype: dict ReturnsResponse Syntax{ 'Flow': { 'AvailabilityZone': 'string', 'Description': 'string', 'EgressIp': 'string', 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string', 'Name': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ], 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, 'SourceFailoverConfig': { 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' }, 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ], 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] }, 'Messages': { 'Errors': [ 'string', ] } } Response Structure (dict) -- AWS Elemental MediaConnect returned the flow details successfully. Flow (dict) -- The settings for a flow, including its source, outputs, and entitlements. AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS. Description (string) -- A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EgressIp (string) -- The IP address from which video will be sent to output destinations. Entitlements (list) -- The entitlements in this flow. (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow. Name (string) -- The name of the flow. Outputs (list) -- The outputs in this flow. (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. Source (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. SourceFailoverConfig (dict) -- The settings for source failover RecoveryWindow (integer) -- Search window time to look for dash-7 packets State (string) -- Sources (list) -- (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. Status (string) -- The current status of the flow. VpcInterfaces (list) -- The VPC Interfaces for this flow. (dict) -- The settings for a VPC Source. Name (string) -- Immutable and has to be a unique against other VpcInterfaces in this Flow NetworkInterfaceIds (list) -- IDs of the network interfaces created in customer\'s account by MediaConnect. (string) -- RoleArn (string) -- Role Arn MediaConnect can assumes to create ENIs in customer\'s account SecurityGroupIds (list) -- Security Group IDs to be used on ENI. (string) -- SubnetId (string) -- Subnet must be in the AZ of the Flow Messages (dict) -- Messages that provide the state of the flow. Errors (list) -- A list of errors that might have been generated from processes on this flow. (string) -- Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'Flow': { 'AvailabilityZone': 'string', 'Description': 'string', 'EgressIp': 'string', 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string', 'Name': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ], 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, 'SourceFailoverConfig': { 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' }, 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ], 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] }, 'Messages': { 'Errors': [ 'string', ] } } :returns: MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to\nClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model. """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} ReturnsA paginator object. """ pass def get_waiter(waiter_name=None): """ Returns an object that can wait for some condition. :type waiter_name: str :param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters. :rtype: botocore.waiter.Waiter """ pass def grant_flow_entitlements(Entitlements=None, FlowArn=None): """ Grants entitlements to an existing flow. See also: AWS API Documentation Exceptions :example: response = client.grant_flow_entitlements( Entitlements=[ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Name': 'string', 'Subscribers': [ 'string', ] }, ], FlowArn='string' ) :type Entitlements: list :param Entitlements: [REQUIRED] The list of entitlements that you want to grant.\n\n(dict) -- The entitlements that you want to grant on a flow.\nDataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber.\nDescription (string) -- A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.\nEncryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.\nAlgorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n\nName (string) -- The name of the entitlement. This value must be unique within the current flow.\nSubscribers (list) -- [REQUIRED] The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.\n(string) --\n\n\n\n\n\n :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to grant entitlements on. :rtype: dict ReturnsResponse Syntax { 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string' } Response Structure (dict) -- AWS Elemental MediaConnect granted the entitlements successfully. Entitlements (list) -- The entitlements that were just granted. (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The ARN of the flow that these entitlements were granted to. Exceptions MediaConnect.Client.exceptions.GrantFlowEntitlements420Exception MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string' } :returns: (dict) -- AWS Elemental MediaConnect granted the entitlements successfully. Entitlements (list) -- The entitlements that were just granted. (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The ARN of the flow that these entitlements were granted to. """ pass def list_entitlements(MaxResults=None, NextToken=None): """ Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page. See also: AWS API Documentation Exceptions :example: response = client.list_entitlements( MaxResults=123, NextToken='string' ) :type MaxResults: integer :param MaxResults: The maximum number of results to return per API request. For example, you submit a ListEntitlements request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 20 results per page. :type NextToken: string :param NextToken: The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value. :rtype: dict ReturnsResponse Syntax { 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'EntitlementArn': 'string', 'EntitlementName': 'string' }, ], 'NextToken': 'string' } Response Structure (dict) -- AWS Elemental MediaConnect returned the list of entitlements successfully. Entitlements (list) -- A list of entitlements that have been granted to you from other AWS accounts. (dict) -- An entitlement that has been granted to you from other AWS accounts. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. EntitlementArn (string) -- The ARN of the entitlement. EntitlementName (string) -- The name of the entitlement. NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value. Exceptions MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException :return: { 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'EntitlementArn': 'string', 'EntitlementName': 'string' }, ], 'NextToken': 'string' } :returns: (dict) -- AWS Elemental MediaConnect returned the list of entitlements successfully. Entitlements (list) -- A list of entitlements that have been granted to you from other AWS accounts. (dict) -- An entitlement that has been granted to you from other AWS accounts. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. EntitlementArn (string) -- The ARN of the entitlement. EntitlementName (string) -- The name of the entitlement. NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value. """ pass def list_flows(MaxResults=None, NextToken=None): """ Displays a list of flows that are associated with this account. This request returns a paginated result. See also: AWS API Documentation Exceptions :example: response = client.list_flows( MaxResults=123, NextToken='string' ) :type MaxResults: integer :param MaxResults: The maximum number of results to return per API request. For example, you submit a ListFlows request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page. :type NextToken: string :param NextToken: The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value. :rtype: dict ReturnsResponse Syntax { 'Flows': [ { 'AvailabilityZone': 'string', 'Description': 'string', 'FlowArn': 'string', 'Name': 'string', 'SourceType': 'OWNED'|'ENTITLED', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' }, ], 'NextToken': 'string' } Response Structure (dict) -- AWS Elemental MediaConnect returned the list of flows successfully. Flows (list) -- A list of flow summaries. (dict) -- Provides a summary of a flow, including its ARN, Availability Zone, and source type. AvailabilityZone (string) -- The Availability Zone that the flow was created in. Description (string) -- A description of the flow. FlowArn (string) -- The ARN of the flow. Name (string) -- The name of the flow. SourceType (string) -- The type of source. This value is either owned (originated somewhere other than an AWS Elemental MediaConnect flow owned by another AWS account) or entitled (originated at an AWS Elemental MediaConnect flow owned by another AWS account). Status (string) -- The current status of the flow. NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value. Exceptions MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException :return: { 'Flows': [ { 'AvailabilityZone': 'string', 'Description': 'string', 'FlowArn': 'string', 'Name': 'string', 'SourceType': 'OWNED'|'ENTITLED', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' }, ], 'NextToken': 'string' } :returns: (dict) -- AWS Elemental MediaConnect returned the list of flows successfully. Flows (list) -- A list of flow summaries. (dict) -- Provides a summary of a flow, including its ARN, Availability Zone, and source type. AvailabilityZone (string) -- The Availability Zone that the flow was created in. Description (string) -- A description of the flow. FlowArn (string) -- The ARN of the flow. Name (string) -- The name of the flow. SourceType (string) -- The type of source. This value is either owned (originated somewhere other than an AWS Elemental MediaConnect flow owned by another AWS account) or entitled (originated at an AWS Elemental MediaConnect flow owned by another AWS account). Status (string) -- The current status of the flow. NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value. """ pass def list_tags_for_resource(ResourceArn=None): """ List all tags on an AWS Elemental MediaConnect resource See also: AWS API Documentation Exceptions :example: response = client.list_tags_for_resource( ResourceArn='string' ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) that identifies the AWS Elemental MediaConnect resource for which to list the tags. :rtype: dict ReturnsResponse Syntax{ 'Tags': { 'string': 'string' } } Response Structure (dict) -- The tags for the resource Tags (dict) -- A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. (string) -- (string) -- Exceptions MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException :return: { 'Tags': { 'string': 'string' } } :returns: MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException """ pass def remove_flow_output(FlowArn=None, OutputArn=None): """ Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output. See also: AWS API Documentation Exceptions :example: response = client.remove_flow_output( FlowArn='string', OutputArn='string' ) :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to remove an output from. :type OutputArn: string :param OutputArn: [REQUIRED] The ARN of the output that you want to remove. :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'OutputArn': 'string' } Response Structure (dict) -- output successfully removed from flow configuration. FlowArn (string) -- The ARN of the flow that is associated with the output you removed. OutputArn (string) -- The ARN of the output that was removed. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'OutputArn': 'string' } :returns: (dict) -- output successfully removed from flow configuration. FlowArn (string) -- The ARN of the flow that is associated with the output you removed. OutputArn (string) -- The ARN of the output that was removed. """ pass def remove_flow_source(FlowArn=None, SourceArn=None): """ Removes a source from an existing flow. This request can be made only if there is more than one source on the flow. See also: AWS API Documentation Exceptions :example: response = client.remove_flow_source( FlowArn='string', SourceArn='string' ) :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to remove a source from. :type SourceArn: string :param SourceArn: [REQUIRED] The ARN of the source that you want to remove. :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'SourceArn': 'string' } Response Structure (dict) -- source successfully removed from flow configuration. FlowArn (string) -- The ARN of the flow that is associated with the source you removed. SourceArn (string) -- The ARN of the source that was removed. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'SourceArn': 'string' } :returns: (dict) -- source successfully removed from flow configuration. FlowArn (string) -- The ARN of the flow that is associated with the source you removed. SourceArn (string) -- The ARN of the source that was removed. """ pass def remove_flow_vpc_interface(FlowArn=None, VpcInterfaceName=None): """ Removes a VPC Interface from an existing flow. This request can be made only on a VPC interface that does not have a Source or Output associated with it. If the VPC interface is referenced by a Source or Output, you must first delete or update the Source or Output to no longer reference the VPC interface. See also: AWS API Documentation Exceptions :example: response = client.remove_flow_vpc_interface( FlowArn='string', VpcInterfaceName='string' ) :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to remove a VPC interface from. :type VpcInterfaceName: string :param VpcInterfaceName: [REQUIRED] The name of the VPC interface that you want to remove. :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'NonDeletedNetworkInterfaceIds': [ 'string', ], 'VpcInterfaceName': 'string' } Response Structure (dict) -- VPC interface successfully removed from flow configuration. FlowArn (string) -- The ARN of the flow that is associated with the VPC interface you removed. NonDeletedNetworkInterfaceIds (list) -- IDs of network interfaces associated with the removed VPC interface that Media Connect was unable to remove. (string) -- VpcInterfaceName (string) -- The name of the VPC interface that was removed. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'NonDeletedNetworkInterfaceIds': [ 'string', ], 'VpcInterfaceName': 'string' } :returns: (dict) -- VPC interface successfully removed from flow configuration. FlowArn (string) -- The ARN of the flow that is associated with the VPC interface you removed. NonDeletedNetworkInterfaceIds (list) -- IDs of network interfaces associated with the removed VPC interface that Media Connect was unable to remove. (string) -- VpcInterfaceName (string) -- The name of the VPC interface that was removed. """ pass def revoke_flow_entitlement(EntitlementArn=None, FlowArn=None): """ Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed. See also: AWS API Documentation Exceptions :example: response = client.revoke_flow_entitlement( EntitlementArn='string', FlowArn='string' ) :type EntitlementArn: string :param EntitlementArn: [REQUIRED] The ARN of the entitlement that you want to revoke. :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to revoke an entitlement from. :rtype: dict ReturnsResponse Syntax { 'EntitlementArn': 'string', 'FlowArn': 'string' } Response Structure (dict) -- AWS Elemental MediaConnect revoked the entitlement successfully. EntitlementArn (string) -- The ARN of the entitlement that was revoked. FlowArn (string) -- The ARN of the flow that the entitlement was revoked from. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'EntitlementArn': 'string', 'FlowArn': 'string' } :returns: (dict) -- AWS Elemental MediaConnect revoked the entitlement successfully. EntitlementArn (string) -- The ARN of the entitlement that was revoked. FlowArn (string) -- The ARN of the flow that the entitlement was revoked from. """ pass def start_flow(FlowArn=None): """ Starts a flow. See also: AWS API Documentation Exceptions :example: response = client.start_flow( FlowArn='string' ) :type FlowArn: string :param FlowArn: [REQUIRED] The ARN of the flow that you want to start. :rtype: dict ReturnsResponse Syntax{ 'FlowArn': 'string', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' } Response Structure (dict) -- AWS Elemental MediaConnect is starting the flow. FlowArn (string) -- The ARN of the flow that you started. Status (string) -- The status of the flow when the StartFlow process begins. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' } :returns: MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException """ pass def stop_flow(FlowArn=None): """ Stops a flow. See also: AWS API Documentation Exceptions :example: response = client.stop_flow( FlowArn='string' ) :type FlowArn: string :param FlowArn: [REQUIRED] The ARN of the flow that you want to stop. :rtype: dict ReturnsResponse Syntax{ 'FlowArn': 'string', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' } Response Structure (dict) -- AWS Elemental MediaConnect is stopping the flow. FlowArn (string) -- The ARN of the flow that you stopped. Status (string) -- The status of the flow when the StopFlow process begins. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR' } :returns: MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException """ pass def tag_resource(ResourceArn=None, Tags=None): """ Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well. See also: AWS API Documentation Exceptions :example: response = client.tag_resource( ResourceArn='string', Tags={ 'string': 'string' } ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) that identifies the AWS Elemental MediaConnect resource to which to add tags. :type Tags: dict :param Tags: [REQUIRED] A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.\n\n(string) --\n(string) --\n\n\n\n :returns: MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException """ pass def untag_resource(ResourceArn=None, TagKeys=None): """ Deletes specified tags from a resource. See also: AWS API Documentation Exceptions :example: response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) that identifies the AWS Elemental MediaConnect resource from which to delete tags. :type TagKeys: list :param TagKeys: [REQUIRED] The keys of the tags to be removed.\n\n(string) --\n\n :returns: MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException """ pass def update_flow(FlowArn=None, SourceFailoverConfig=None): """ Updates flow See also: AWS API Documentation Exceptions :example: response = client.update_flow( FlowArn='string', SourceFailoverConfig={ 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' } ) :type FlowArn: string :param FlowArn: [REQUIRED] The flow that you want to update. :type SourceFailoverConfig: dict :param SourceFailoverConfig: The settings for source failover\n\nRecoveryWindow (integer) -- Recovery window time to look for dash-7 packets\nState (string) --\n\n :rtype: dict ReturnsResponse Syntax { 'Flow': { 'AvailabilityZone': 'string', 'Description': 'string', 'EgressIp': 'string', 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string', 'Name': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ], 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, 'SourceFailoverConfig': { 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' }, 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ], 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] } } Response Structure (dict) -- AWS Elemental MediaConnect updated the flow successfully. Flow (dict) -- The settings for a flow, including its source, outputs, and entitlements. AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS. Description (string) -- A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EgressIp (string) -- The IP address from which video will be sent to output destinations. Entitlements (list) -- The entitlements in this flow. (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow. Name (string) -- The name of the flow. Outputs (list) -- The outputs in this flow. (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. Source (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. SourceFailoverConfig (dict) -- The settings for source failover RecoveryWindow (integer) -- Search window time to look for dash-7 packets State (string) -- Sources (list) -- (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. Status (string) -- The current status of the flow. VpcInterfaces (list) -- The VPC Interfaces for this flow. (dict) -- The settings for a VPC Source. Name (string) -- Immutable and has to be a unique against other VpcInterfaces in this Flow NetworkInterfaceIds (list) -- IDs of the network interfaces created in customer\'s account by MediaConnect. (string) -- RoleArn (string) -- Role Arn MediaConnect can assumes to create ENIs in customer\'s account SecurityGroupIds (list) -- Security Group IDs to be used on ENI. (string) -- SubnetId (string) -- Subnet must be in the AZ of the Flow Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'Flow': { 'AvailabilityZone': 'string', 'Description': 'string', 'EgressIp': 'string', 'Entitlements': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, ], 'FlowArn': 'string', 'Name': 'string', 'Outputs': [ { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } }, ], 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, 'SourceFailoverConfig': { 'RecoveryWindow': 123, 'State': 'ENABLED'|'DISABLED' }, 'Sources': [ { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' }, ], 'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR', 'VpcInterfaces': [ { 'Name': 'string', 'NetworkInterfaceIds': [ 'string', ], 'RoleArn': 'string', 'SecurityGroupIds': [ 'string', ], 'SubnetId': 'string' }, ] } } :returns: (dict) -- AWS Elemental MediaConnect updated the flow successfully. Flow (dict) -- The settings for a flow, including its source, outputs, and entitlements. AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS. Description (string) -- A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EgressIp (string) -- The IP address from which video will be sent to output destinations. Entitlements (list) -- The entitlements in this flow. (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow. Name (string) -- The name of the flow. Outputs (list) -- The outputs in this flow. (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. Source (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. SourceFailoverConfig (dict) -- The settings for source failover RecoveryWindow (integer) -- Search window time to look for dash-7 packets State (string) -- Sources (list) -- (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. Status (string) -- The current status of the flow. VpcInterfaces (list) -- The VPC Interfaces for this flow. (dict) -- The settings for a VPC Source. Name (string) -- Immutable and has to be a unique against other VpcInterfaces in this Flow NetworkInterfaceIds (list) -- IDs of the network interfaces created in customer\'s account by MediaConnect. (string) -- RoleArn (string) -- Role Arn MediaConnect can assumes to create ENIs in customer\'s account SecurityGroupIds (list) -- Security Group IDs to be used on ENI. (string) -- SubnetId (string) -- Subnet must be in the AZ of the Flow """ pass def update_flow_entitlement(Description=None, Encryption=None, EntitlementArn=None, FlowArn=None, Subscribers=None): """ You can change an entitlement\'s description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed. See also: AWS API Documentation Exceptions :example: response = client.update_flow_entitlement( Description='string', Encryption={ 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, EntitlementArn='string', FlowArn='string', Subscribers=[ 'string', ] ) :type Description: string :param Description: A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user. :type Encryption: dict :param Encryption: The type of encryption that will be used on the output associated with this entitlement.\n\nAlgorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n :type EntitlementArn: string :param EntitlementArn: [REQUIRED] The ARN of the entitlement that you want to update. :type FlowArn: string :param FlowArn: [REQUIRED] The flow that is associated with the entitlement that you want to update. :type Subscribers: list :param Subscribers: The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.\n\n(string) --\n\n :rtype: dict ReturnsResponse Syntax { 'Entitlement': { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, 'FlowArn': 'string' } Response Structure (dict) -- AWS Elemental MediaConnect updated the entitlement successfully. Entitlement (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The ARN of the flow that this entitlement was granted on. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'Entitlement': { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'Name': 'string', 'Subscribers': [ 'string', ] }, 'FlowArn': 'string' } :returns: (dict) -- AWS Elemental MediaConnect updated the entitlement successfully. Entitlement (dict) -- The settings for a flow entitlement. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the entitlement. Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement. Name (string) -- The name of the entitlement. Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source. (string) -- FlowArn (string) -- The ARN of the flow that this entitlement was granted on. """ pass def update_flow_output(CidrAllowList=None, Description=None, Destination=None, Encryption=None, FlowArn=None, MaxLatency=None, OutputArn=None, Port=None, Protocol=None, RemoteId=None, SmoothingLatency=None, StreamId=None, VpcInterfaceAttachment=None): """ Updates an existing flow output. See also: AWS API Documentation Exceptions :example: response = client.update_flow_output( CidrAllowList=[ 'string', ], Description='string', Destination='string', Encryption={ 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, FlowArn='string', MaxLatency=123, OutputArn='string', Port=123, Protocol='zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', RemoteId='string', SmoothingLatency=123, StreamId='string', VpcInterfaceAttachment={ 'VpcInterfaceName': 'string' } ) :type CidrAllowList: list :param CidrAllowList: The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.\n\n(string) --\n\n :type Description: string :param Description: A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user. :type Destination: string :param Destination: The IP address where you want to send the output. :type Encryption: dict :param Encryption: The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\n\nAlgorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n :type FlowArn: string :param FlowArn: [REQUIRED] The flow that is associated with the output that you want to update. :type MaxLatency: integer :param MaxLatency: The maximum latency in milliseconds for Zixi-based streams. :type OutputArn: string :param OutputArn: [REQUIRED] The ARN of the output that you want to update. :type Port: integer :param Port: The port to use when content is distributed to this output. :type Protocol: string :param Protocol: The protocol to use for the output. :type RemoteId: string :param RemoteId: The remote ID for the Zixi-pull stream. :type SmoothingLatency: integer :param SmoothingLatency: The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. :type StreamId: string :param StreamId: The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. :type VpcInterfaceAttachment: dict :param VpcInterfaceAttachment: The name of the VPC interface attachment to use for this output.\n\nVpcInterfaceName (string) -- The name of the VPC interface to use for this output.\n\n :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'Output': { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } } } Response Structure (dict) -- AWS Elemental MediaConnect updated the output successfully. FlowArn (string) -- The ARN of the flow that is associated with the updated output. Output (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'Output': { 'DataTransferSubscriberFeePercent': 123, 'Description': 'string', 'Destination': 'string', 'Encryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'EntitlementArn': 'string', 'MediaLiveInputArn': 'string', 'Name': 'string', 'OutputArn': 'string', 'Port': 123, 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceAttachment': { 'VpcInterfaceName': 'string' } } } :returns: (dict) -- AWS Elemental MediaConnect updated the output successfully. FlowArn (string) -- The ARN of the flow that is associated with the updated output. Output (dict) -- The settings for an output. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Description (string) -- A description of the output. Destination (string) -- The address where you want to send the output. Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. EntitlementArn (string) -- The ARN of the entitlement on the originator\'\'s flow. This value is relevant only on entitled flows. MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input. Name (string) -- The name of the output. This value must be unique within the current flow. OutputArn (string) -- The ARN of the output. Port (integer) -- The port to use when content is distributed to this output. Transport (dict) -- Attributes related to the transport stream that are used in the output. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceAttachment (dict) -- The name of the VPC interface attachment to use for this output. VpcInterfaceName (string) -- The name of the VPC interface to use for this output. """ pass def update_flow_source(Decryption=None, Description=None, EntitlementArn=None, FlowArn=None, IngestPort=None, MaxBitrate=None, MaxLatency=None, Protocol=None, SourceArn=None, StreamId=None, VpcInterfaceName=None, WhitelistCidr=None): """ Updates the source of a flow. See also: AWS API Documentation Exceptions :example: response = client.update_flow_source( Decryption={ 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, Description='string', EntitlementArn='string', FlowArn='string', IngestPort=123, MaxBitrate=123, MaxLatency=123, Protocol='zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', SourceArn='string', StreamId='string', VpcInterfaceName='string', WhitelistCidr='string' ) :type Decryption: dict :param Decryption: The type of encryption used on the content ingested from this source.\n\nAlgorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).\nConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.\nDeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nKeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).\nRegion (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.\nRoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).\nSecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.\nUrl (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.\n\n :type Description: string :param Description: A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. :type EntitlementArn: string :param EntitlementArn: The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator\'s flow. :type FlowArn: string :param FlowArn: [REQUIRED] The flow that is associated with the source that you want to update. :type IngestPort: integer :param IngestPort: The port that the flow will be listening on for incoming content. :type MaxBitrate: integer :param MaxBitrate: The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. :type MaxLatency: integer :param MaxLatency: The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. :type Protocol: string :param Protocol: The protocol that is used by the source. :type SourceArn: string :param SourceArn: [REQUIRED] The ARN of the source that you want to update. :type StreamId: string :param StreamId: The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. :type VpcInterfaceName: string :param VpcInterfaceName: The name of the VPC Interface to configure this Source with. :type WhitelistCidr: string :param WhitelistCidr: The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. :rtype: dict ReturnsResponse Syntax { 'FlowArn': 'string', 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' } } Response Structure (dict) -- AWS Elemental MediaConnect updated the flow successfully. FlowArn (string) -- The ARN of the flow that you want to update. Source (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. Exceptions MediaConnect.Client.exceptions.BadRequestException MediaConnect.Client.exceptions.InternalServerErrorException MediaConnect.Client.exceptions.ForbiddenException MediaConnect.Client.exceptions.NotFoundException MediaConnect.Client.exceptions.ServiceUnavailableException MediaConnect.Client.exceptions.TooManyRequestsException :return: { 'FlowArn': 'string', 'Source': { 'DataTransferSubscriberFeePercent': 123, 'Decryption': { 'Algorithm': 'aes128'|'aes192'|'aes256', 'ConstantInitializationVector': 'string', 'DeviceId': 'string', 'KeyType': 'speke'|'static-key', 'Region': 'string', 'ResourceId': 'string', 'RoleArn': 'string', 'SecretArn': 'string', 'Url': 'string' }, 'Description': 'string', 'EntitlementArn': 'string', 'IngestIp': 'string', 'IngestPort': 123, 'Name': 'string', 'SourceArn': 'string', 'Transport': { 'CidrAllowList': [ 'string', ], 'MaxBitrate': 123, 'MaxLatency': 123, 'Protocol': 'zixi-push'|'rtp-fec'|'rtp'|'zixi-pull'|'rist', 'RemoteId': 'string', 'SmoothingLatency': 123, 'StreamId': 'string' }, 'VpcInterfaceName': 'string', 'WhitelistCidr': 'string' } } :returns: (dict) -- AWS Elemental MediaConnect updated the flow successfully. FlowArn (string) -- The ARN of the flow that you want to update. Source (dict) -- The settings for the source of the flow. DataTransferSubscriberFeePercent (integer) -- Percentage from 0-100 of the data transfer cost to be billed to the subscriber. Decryption (dict) -- The type of encryption that is used on the content ingested from this source. Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). ConstantInitializationVector (string) -- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. DeviceId (string) -- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Region (string) -- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. ResourceId (string) -- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). SecretArn (string) -- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. Url (string) -- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account. EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator\'s flow. IngestIp (string) -- The IP address that the flow will be listening on for incoming content. IngestPort (integer) -- The port that the flow will be listening on for incoming content. Name (string) -- The name of the source. SourceArn (string) -- The ARN of the source. Transport (dict) -- Attributes related to the transport stream that are used in the source. CidrAllowList (list) -- The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. (string) -- MaxBitrate (integer) -- The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. MaxLatency (integer) -- The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams. Protocol (string) -- The protocol that is used by the source or output. RemoteId (string) -- The remote ID for the Zixi-pull stream. SmoothingLatency (integer) -- The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams. VpcInterfaceName (string) -- The name of the VPC Interface this Source is configured with. WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. """ pass
56.315565
3,327
0.668335
31,386
250,379
5.328459
0.019053
0.033096
0.02341
0.019589
0.962527
0.95745
0.956069
0.953587
0.950448
0.946161
0
0.011408
0.253943
250,379
4,445
3,328
56.328234
0.88389
0.988857
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
10
7b6db62f5be90e1f01579851bafa5ceda89bcd85
34,732
py
Python
sdk/python/pulumi_rancher2/catalog_v2.py
pulumi/pulumi-rancher2
7a98af8cf598b711084a7f46c0fe71b43ed7a8ac
[ "ECL-2.0", "Apache-2.0" ]
3
2020-03-23T15:59:11.000Z
2021-01-29T00:37:32.000Z
sdk/python/pulumi_rancher2/catalog_v2.py
pulumi/pulumi-rancher2
7a98af8cf598b711084a7f46c0fe71b43ed7a8ac
[ "ECL-2.0", "Apache-2.0" ]
76
2020-01-16T20:00:25.000Z
2022-03-31T20:30:08.000Z
sdk/python/pulumi_rancher2/catalog_v2.py
pulumi/pulumi-rancher2
7a98af8cf598b711084a7f46c0fe71b43ed7a8ac
[ "ECL-2.0", "Apache-2.0" ]
2
2020-03-27T17:39:59.000Z
2020-11-24T23:09:24.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__ = ['CatalogV2Args', 'CatalogV2'] @pulumi.input_type class CatalogV2Args: def __init__(__self__, *, cluster_id: pulumi.Input[str], annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, ca_bundle: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, git_branch: Optional[pulumi.Input[str]] = None, git_repo: Optional[pulumi.Input[str]] = None, insecure: Optional[pulumi.Input[bool]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, secret_name: Optional[pulumi.Input[str]] = None, secret_namespace: Optional[pulumi.Input[str]] = None, service_account: Optional[pulumi.Input[str]] = None, service_account_namespace: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a CatalogV2 resource. :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) :param pulumi.Input[str] git_repo: The url of the catalog v2 repo. Conflicts with `url` (string) :param pulumi.Input[bool] insecure: Use insecure HTTPS to download the repo's index. Default: `false` (bool) :param pulumi.Input[Mapping[str, Any]] labels: Labels for the catalog v2 (map) :param pulumi.Input[str] name: The name of the catalog v2 (string) :param pulumi.Input[str] secret_name: K8s secret name to be used to connect to the repo (string) :param pulumi.Input[str] secret_namespace: K8s secret namespace (string) :param pulumi.Input[str] service_account: K8s service account used to deploy charts instead of the end users credentials (string) :param pulumi.Input[str] service_account_namespace: The username to access the catalog if needed (string) :param pulumi.Input[str] url: URL to an index generated by Helm. Conflicts with `git_repo` (string) """ pulumi.set(__self__, "cluster_id", cluster_id) if annotations is not None: pulumi.set(__self__, "annotations", annotations) if ca_bundle is not None: pulumi.set(__self__, "ca_bundle", ca_bundle) if enabled is not None: pulumi.set(__self__, "enabled", enabled) if git_branch is not None: pulumi.set(__self__, "git_branch", git_branch) if git_repo is not None: pulumi.set(__self__, "git_repo", git_repo) if insecure is not None: pulumi.set(__self__, "insecure", insecure) if labels is not None: pulumi.set(__self__, "labels", labels) if name is not None: pulumi.set(__self__, "name", name) if secret_name is not None: pulumi.set(__self__, "secret_name", secret_name) if secret_namespace is not None: pulumi.set(__self__, "secret_namespace", secret_namespace) if service_account is not None: pulumi.set(__self__, "service_account", service_account) if service_account_namespace is not None: pulumi.set(__self__, "service_account_namespace", service_account_namespace) if url is not None: pulumi.set(__self__, "url", url) @property @pulumi.getter(name="clusterId") def cluster_id(self) -> pulumi.Input[str]: """ The cluster id of the catalog V2 (string) """ return pulumi.get(self, "cluster_id") @cluster_id.setter def cluster_id(self, value: pulumi.Input[str]): pulumi.set(self, "cluster_id", value) @property @pulumi.getter def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ Annotations for the catalog v2 (map) """ return pulumi.get(self, "annotations") @annotations.setter def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "annotations", value) @property @pulumi.getter(name="caBundle") def ca_bundle(self) -> Optional[pulumi.Input[str]]: """ PEM encoded CA bundle which will be used to validate the repo's certificate (string) """ return pulumi.get(self, "ca_bundle") @ca_bundle.setter def ca_bundle(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ca_bundle", value) @property @pulumi.getter def enabled(self) -> Optional[pulumi.Input[bool]]: """ If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) """ return pulumi.get(self, "enabled") @enabled.setter def enabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "enabled", value) @property @pulumi.getter(name="gitBranch") def git_branch(self) -> Optional[pulumi.Input[str]]: """ Git Repository branch containing Helm chart definitions. Default `master` (string) """ return pulumi.get(self, "git_branch") @git_branch.setter def git_branch(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "git_branch", value) @property @pulumi.getter(name="gitRepo") def git_repo(self) -> Optional[pulumi.Input[str]]: """ The url of the catalog v2 repo. Conflicts with `url` (string) """ return pulumi.get(self, "git_repo") @git_repo.setter def git_repo(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "git_repo", value) @property @pulumi.getter def insecure(self) -> Optional[pulumi.Input[bool]]: """ Use insecure HTTPS to download the repo's index. Default: `false` (bool) """ return pulumi.get(self, "insecure") @insecure.setter def insecure(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "insecure", value) @property @pulumi.getter def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ Labels for the catalog v2 (map) """ return pulumi.get(self, "labels") @labels.setter def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "labels", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the catalog v2 (string) """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="secretName") def secret_name(self) -> Optional[pulumi.Input[str]]: """ K8s secret name to be used to connect to the repo (string) """ return pulumi.get(self, "secret_name") @secret_name.setter def secret_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "secret_name", value) @property @pulumi.getter(name="secretNamespace") def secret_namespace(self) -> Optional[pulumi.Input[str]]: """ K8s secret namespace (string) """ return pulumi.get(self, "secret_namespace") @secret_namespace.setter def secret_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "secret_namespace", value) @property @pulumi.getter(name="serviceAccount") def service_account(self) -> Optional[pulumi.Input[str]]: """ K8s service account used to deploy charts instead of the end users credentials (string) """ return pulumi.get(self, "service_account") @service_account.setter def service_account(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "service_account", value) @property @pulumi.getter(name="serviceAccountNamespace") def service_account_namespace(self) -> Optional[pulumi.Input[str]]: """ The username to access the catalog if needed (string) """ return pulumi.get(self, "service_account_namespace") @service_account_namespace.setter def service_account_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "service_account_namespace", value) @property @pulumi.getter def url(self) -> Optional[pulumi.Input[str]]: """ URL to an index generated by Helm. Conflicts with `git_repo` (string) """ return pulumi.get(self, "url") @url.setter def url(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "url", value) @pulumi.input_type class _CatalogV2State: def __init__(__self__, *, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, ca_bundle: Optional[pulumi.Input[str]] = None, cluster_id: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, git_branch: Optional[pulumi.Input[str]] = None, git_repo: Optional[pulumi.Input[str]] = None, insecure: Optional[pulumi.Input[bool]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, resource_version: Optional[pulumi.Input[str]] = None, secret_name: Optional[pulumi.Input[str]] = None, secret_namespace: Optional[pulumi.Input[str]] = None, service_account: Optional[pulumi.Input[str]] = None, service_account_namespace: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering CatalogV2 resources. :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) :param pulumi.Input[str] git_repo: The url of the catalog v2 repo. Conflicts with `url` (string) :param pulumi.Input[bool] insecure: Use insecure HTTPS to download the repo's index. Default: `false` (bool) :param pulumi.Input[Mapping[str, Any]] labels: Labels for the catalog v2 (map) :param pulumi.Input[str] name: The name of the catalog v2 (string) :param pulumi.Input[str] resource_version: (Computed) The k8s resource version (string) :param pulumi.Input[str] secret_name: K8s secret name to be used to connect to the repo (string) :param pulumi.Input[str] secret_namespace: K8s secret namespace (string) :param pulumi.Input[str] service_account: K8s service account used to deploy charts instead of the end users credentials (string) :param pulumi.Input[str] service_account_namespace: The username to access the catalog if needed (string) :param pulumi.Input[str] url: URL to an index generated by Helm. Conflicts with `git_repo` (string) """ if annotations is not None: pulumi.set(__self__, "annotations", annotations) if ca_bundle is not None: pulumi.set(__self__, "ca_bundle", ca_bundle) if cluster_id is not None: pulumi.set(__self__, "cluster_id", cluster_id) if enabled is not None: pulumi.set(__self__, "enabled", enabled) if git_branch is not None: pulumi.set(__self__, "git_branch", git_branch) if git_repo is not None: pulumi.set(__self__, "git_repo", git_repo) if insecure is not None: pulumi.set(__self__, "insecure", insecure) if labels is not None: pulumi.set(__self__, "labels", labels) if name is not None: pulumi.set(__self__, "name", name) if resource_version is not None: pulumi.set(__self__, "resource_version", resource_version) if secret_name is not None: pulumi.set(__self__, "secret_name", secret_name) if secret_namespace is not None: pulumi.set(__self__, "secret_namespace", secret_namespace) if service_account is not None: pulumi.set(__self__, "service_account", service_account) if service_account_namespace is not None: pulumi.set(__self__, "service_account_namespace", service_account_namespace) if url is not None: pulumi.set(__self__, "url", url) @property @pulumi.getter def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ Annotations for the catalog v2 (map) """ return pulumi.get(self, "annotations") @annotations.setter def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "annotations", value) @property @pulumi.getter(name="caBundle") def ca_bundle(self) -> Optional[pulumi.Input[str]]: """ PEM encoded CA bundle which will be used to validate the repo's certificate (string) """ return pulumi.get(self, "ca_bundle") @ca_bundle.setter def ca_bundle(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ca_bundle", value) @property @pulumi.getter(name="clusterId") def cluster_id(self) -> Optional[pulumi.Input[str]]: """ The cluster id of the catalog V2 (string) """ return pulumi.get(self, "cluster_id") @cluster_id.setter def cluster_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "cluster_id", value) @property @pulumi.getter def enabled(self) -> Optional[pulumi.Input[bool]]: """ If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) """ return pulumi.get(self, "enabled") @enabled.setter def enabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "enabled", value) @property @pulumi.getter(name="gitBranch") def git_branch(self) -> Optional[pulumi.Input[str]]: """ Git Repository branch containing Helm chart definitions. Default `master` (string) """ return pulumi.get(self, "git_branch") @git_branch.setter def git_branch(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "git_branch", value) @property @pulumi.getter(name="gitRepo") def git_repo(self) -> Optional[pulumi.Input[str]]: """ The url of the catalog v2 repo. Conflicts with `url` (string) """ return pulumi.get(self, "git_repo") @git_repo.setter def git_repo(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "git_repo", value) @property @pulumi.getter def insecure(self) -> Optional[pulumi.Input[bool]]: """ Use insecure HTTPS to download the repo's index. Default: `false` (bool) """ return pulumi.get(self, "insecure") @insecure.setter def insecure(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "insecure", value) @property @pulumi.getter def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ Labels for the catalog v2 (map) """ return pulumi.get(self, "labels") @labels.setter def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "labels", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the catalog v2 (string) """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="resourceVersion") def resource_version(self) -> Optional[pulumi.Input[str]]: """ (Computed) The k8s resource version (string) """ return pulumi.get(self, "resource_version") @resource_version.setter def resource_version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "resource_version", value) @property @pulumi.getter(name="secretName") def secret_name(self) -> Optional[pulumi.Input[str]]: """ K8s secret name to be used to connect to the repo (string) """ return pulumi.get(self, "secret_name") @secret_name.setter def secret_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "secret_name", value) @property @pulumi.getter(name="secretNamespace") def secret_namespace(self) -> Optional[pulumi.Input[str]]: """ K8s secret namespace (string) """ return pulumi.get(self, "secret_namespace") @secret_namespace.setter def secret_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "secret_namespace", value) @property @pulumi.getter(name="serviceAccount") def service_account(self) -> Optional[pulumi.Input[str]]: """ K8s service account used to deploy charts instead of the end users credentials (string) """ return pulumi.get(self, "service_account") @service_account.setter def service_account(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "service_account", value) @property @pulumi.getter(name="serviceAccountNamespace") def service_account_namespace(self) -> Optional[pulumi.Input[str]]: """ The username to access the catalog if needed (string) """ return pulumi.get(self, "service_account_namespace") @service_account_namespace.setter def service_account_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "service_account_namespace", value) @property @pulumi.getter def url(self) -> Optional[pulumi.Input[str]]: """ URL to an index generated by Helm. Conflicts with `git_repo` (string) """ return pulumi.get(self, "url") @url.setter def url(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "url", value) class CatalogV2(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, ca_bundle: Optional[pulumi.Input[str]] = None, cluster_id: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, git_branch: Optional[pulumi.Input[str]] = None, git_repo: Optional[pulumi.Input[str]] = None, insecure: Optional[pulumi.Input[bool]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, secret_name: Optional[pulumi.Input[str]] = None, secret_namespace: Optional[pulumi.Input[str]] = None, service_account: Optional[pulumi.Input[str]] = None, service_account_namespace: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, __props__=None): """ Provides a Rancher Catalog v2 resource. This can be used to create cluster helm catalogs for Rancher v2 environments and retrieve their information. Catalog v2 resource is available at Rancher v2.5.x and above. ## Import V2 catalogs can be imported using the Rancher cluster ID and Catalog V2 name. ```sh $ pulumi import rancher2:index/catalogV2:CatalogV2 foo &lt;CLUSTER_ID&gt;.&lt;CATALOG_V2_NAME&gt; ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) :param pulumi.Input[str] git_repo: The url of the catalog v2 repo. Conflicts with `url` (string) :param pulumi.Input[bool] insecure: Use insecure HTTPS to download the repo's index. Default: `false` (bool) :param pulumi.Input[Mapping[str, Any]] labels: Labels for the catalog v2 (map) :param pulumi.Input[str] name: The name of the catalog v2 (string) :param pulumi.Input[str] secret_name: K8s secret name to be used to connect to the repo (string) :param pulumi.Input[str] secret_namespace: K8s secret namespace (string) :param pulumi.Input[str] service_account: K8s service account used to deploy charts instead of the end users credentials (string) :param pulumi.Input[str] service_account_namespace: The username to access the catalog if needed (string) :param pulumi.Input[str] url: URL to an index generated by Helm. Conflicts with `git_repo` (string) """ ... @overload def __init__(__self__, resource_name: str, args: CatalogV2Args, opts: Optional[pulumi.ResourceOptions] = None): """ Provides a Rancher Catalog v2 resource. This can be used to create cluster helm catalogs for Rancher v2 environments and retrieve their information. Catalog v2 resource is available at Rancher v2.5.x and above. ## Import V2 catalogs can be imported using the Rancher cluster ID and Catalog V2 name. ```sh $ pulumi import rancher2:index/catalogV2:CatalogV2 foo &lt;CLUSTER_ID&gt;.&lt;CATALOG_V2_NAME&gt; ``` :param str resource_name: The name of the resource. :param CatalogV2Args 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(CatalogV2Args, 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, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, ca_bundle: Optional[pulumi.Input[str]] = None, cluster_id: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, git_branch: Optional[pulumi.Input[str]] = None, git_repo: Optional[pulumi.Input[str]] = None, insecure: Optional[pulumi.Input[bool]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, secret_name: Optional[pulumi.Input[str]] = None, secret_namespace: Optional[pulumi.Input[str]] = None, service_account: Optional[pulumi.Input[str]] = None, service_account_namespace: Optional[pulumi.Input[str]] = None, url: 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__ = CatalogV2Args.__new__(CatalogV2Args) __props__.__dict__["annotations"] = annotations __props__.__dict__["ca_bundle"] = ca_bundle if cluster_id is None and not opts.urn: raise TypeError("Missing required property 'cluster_id'") __props__.__dict__["cluster_id"] = cluster_id __props__.__dict__["enabled"] = enabled __props__.__dict__["git_branch"] = git_branch __props__.__dict__["git_repo"] = git_repo __props__.__dict__["insecure"] = insecure __props__.__dict__["labels"] = labels __props__.__dict__["name"] = name __props__.__dict__["secret_name"] = secret_name __props__.__dict__["secret_namespace"] = secret_namespace __props__.__dict__["service_account"] = service_account __props__.__dict__["service_account_namespace"] = service_account_namespace __props__.__dict__["url"] = url __props__.__dict__["resource_version"] = None super(CatalogV2, __self__).__init__( 'rancher2:index/catalogV2:CatalogV2', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, ca_bundle: Optional[pulumi.Input[str]] = None, cluster_id: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, git_branch: Optional[pulumi.Input[str]] = None, git_repo: Optional[pulumi.Input[str]] = None, insecure: Optional[pulumi.Input[bool]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, resource_version: Optional[pulumi.Input[str]] = None, secret_name: Optional[pulumi.Input[str]] = None, secret_namespace: Optional[pulumi.Input[str]] = None, service_account: Optional[pulumi.Input[str]] = None, service_account_namespace: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None) -> 'CatalogV2': """ Get an existing CatalogV2 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[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) :param pulumi.Input[str] git_repo: The url of the catalog v2 repo. Conflicts with `url` (string) :param pulumi.Input[bool] insecure: Use insecure HTTPS to download the repo's index. Default: `false` (bool) :param pulumi.Input[Mapping[str, Any]] labels: Labels for the catalog v2 (map) :param pulumi.Input[str] name: The name of the catalog v2 (string) :param pulumi.Input[str] resource_version: (Computed) The k8s resource version (string) :param pulumi.Input[str] secret_name: K8s secret name to be used to connect to the repo (string) :param pulumi.Input[str] secret_namespace: K8s secret namespace (string) :param pulumi.Input[str] service_account: K8s service account used to deploy charts instead of the end users credentials (string) :param pulumi.Input[str] service_account_namespace: The username to access the catalog if needed (string) :param pulumi.Input[str] url: URL to an index generated by Helm. Conflicts with `git_repo` (string) """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _CatalogV2State.__new__(_CatalogV2State) __props__.__dict__["annotations"] = annotations __props__.__dict__["ca_bundle"] = ca_bundle __props__.__dict__["cluster_id"] = cluster_id __props__.__dict__["enabled"] = enabled __props__.__dict__["git_branch"] = git_branch __props__.__dict__["git_repo"] = git_repo __props__.__dict__["insecure"] = insecure __props__.__dict__["labels"] = labels __props__.__dict__["name"] = name __props__.__dict__["resource_version"] = resource_version __props__.__dict__["secret_name"] = secret_name __props__.__dict__["secret_namespace"] = secret_namespace __props__.__dict__["service_account"] = service_account __props__.__dict__["service_account_namespace"] = service_account_namespace __props__.__dict__["url"] = url return CatalogV2(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter def annotations(self) -> pulumi.Output[Mapping[str, Any]]: """ Annotations for the catalog v2 (map) """ return pulumi.get(self, "annotations") @property @pulumi.getter(name="caBundle") def ca_bundle(self) -> pulumi.Output[Optional[str]]: """ PEM encoded CA bundle which will be used to validate the repo's certificate (string) """ return pulumi.get(self, "ca_bundle") @property @pulumi.getter(name="clusterId") def cluster_id(self) -> pulumi.Output[str]: """ The cluster id of the catalog V2 (string) """ return pulumi.get(self, "cluster_id") @property @pulumi.getter def enabled(self) -> pulumi.Output[Optional[bool]]: """ If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) """ return pulumi.get(self, "enabled") @property @pulumi.getter(name="gitBranch") def git_branch(self) -> pulumi.Output[str]: """ Git Repository branch containing Helm chart definitions. Default `master` (string) """ return pulumi.get(self, "git_branch") @property @pulumi.getter(name="gitRepo") def git_repo(self) -> pulumi.Output[Optional[str]]: """ The url of the catalog v2 repo. Conflicts with `url` (string) """ return pulumi.get(self, "git_repo") @property @pulumi.getter def insecure(self) -> pulumi.Output[Optional[bool]]: """ Use insecure HTTPS to download the repo's index. Default: `false` (bool) """ return pulumi.get(self, "insecure") @property @pulumi.getter def labels(self) -> pulumi.Output[Mapping[str, Any]]: """ Labels for the catalog v2 (map) """ return pulumi.get(self, "labels") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ The name of the catalog v2 (string) """ return pulumi.get(self, "name") @property @pulumi.getter(name="resourceVersion") def resource_version(self) -> pulumi.Output[str]: """ (Computed) The k8s resource version (string) """ return pulumi.get(self, "resource_version") @property @pulumi.getter(name="secretName") def secret_name(self) -> pulumi.Output[Optional[str]]: """ K8s secret name to be used to connect to the repo (string) """ return pulumi.get(self, "secret_name") @property @pulumi.getter(name="secretNamespace") def secret_namespace(self) -> pulumi.Output[Optional[str]]: """ K8s secret namespace (string) """ return pulumi.get(self, "secret_namespace") @property @pulumi.getter(name="serviceAccount") def service_account(self) -> pulumi.Output[Optional[str]]: """ K8s service account used to deploy charts instead of the end users credentials (string) """ return pulumi.get(self, "service_account") @property @pulumi.getter(name="serviceAccountNamespace") def service_account_namespace(self) -> pulumi.Output[Optional[str]]: """ The username to access the catalog if needed (string) """ return pulumi.get(self, "service_account_namespace") @property @pulumi.getter def url(self) -> pulumi.Output[Optional[str]]: """ URL to an index generated by Helm. Conflicts with `git_repo` (string) """ return pulumi.get(self, "url")
43.199005
218
0.638143
4,191
34,732
5.094965
0.049869
0.098909
0.090479
0.093757
0.918981
0.903807
0.888728
0.883155
0.876739
0.853744
0
0.004001
0.251612
34,732
803
219
43.252802
0.817489
0.294685
0
0.852391
1
0
0.086066
0.014418
0
0
0
0
0
1
0.16632
false
0.002079
0.010395
0
0.276507
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
7bab71c99f259bb686654582377f7a0a4896c4e8
119
py
Python
tests/snippets/builtin_divmod.py
gabhijit/RustPython
3eafcbec3d687a81606556b4f6815cc6825b7ef3
[ "MIT" ]
1
2021-03-08T02:19:16.000Z
2021-03-08T02:19:16.000Z
tests/snippets/builtin_divmod.py
gabhijit/RustPython
3eafcbec3d687a81606556b4f6815cc6825b7ef3
[ "MIT" ]
null
null
null
tests/snippets/builtin_divmod.py
gabhijit/RustPython
3eafcbec3d687a81606556b4f6815cc6825b7ef3
[ "MIT" ]
1
2020-12-04T23:52:08.000Z
2020-12-04T23:52:08.000Z
assert divmod(11, 3) == (3, 2) assert divmod(8,11) == (0, 8) assert divmod(0.873, 0.252) == (3.0, 0.11699999999999999)
29.75
57
0.621849
22
119
3.363636
0.454545
0.486486
0
0
0
0
0
0
0
0
0
0.372549
0.142857
119
3
58
39.666667
0.352941
0
0
0
0
0
0
0
0
0
0
0
1
1
0
true
0
0
0
0
0
1
0
0
null
1
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
1
0
0
1
0
0
0
0
0
0
7
c8c4f71f44c37e3685817fa012e59f69d483a984
42,823
py
Python
printio/tests/test_core.py
TaylorTree/printio
ce0bc3e30d9693220e305d33a798adf60fbbba50
[ "MIT" ]
2
2016-02-23T01:10:26.000Z
2017-05-30T16:16:23.000Z
printio/tests/test_core.py
TaylorTree/printio
ce0bc3e30d9693220e305d33a798adf60fbbba50
[ "MIT" ]
null
null
null
printio/tests/test_core.py
TaylorTree/printio
ce0bc3e30d9693220e305d33a798adf60fbbba50
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012, Mike Taylor # # This file is part of printio released under MIT license. # See the LICENSE for more information. """ Test the core module. """ import os import sys import unittest import datetime libpath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) if not libpath in sys.path: sys.path.insert(1, libpath) del libpath from core import PrettyValue from core import PrettyValues class PrettyValue_ParseTestCase(unittest.TestCase): def setUp(self): pass def test_test_strings(self): pv = PrettyValue('s') self.assertEquals(pv.atype, 's') self.assertEquals(pv.align, '<') self.assertEquals(pv.width, '') self.assertEquals(pv.sign, '') self.assertEquals(pv.precision, '') def test_parse_rawtype_default(self): pv = PrettyValue() results = pv.parse_rawtype() self.assertEquals(results['atype'], None) self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) def test_parse_rawtype_str(self): pv = PrettyValue() results = pv.parse_rawtype('s') self.assertEquals(results['atype'], 's') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) def test_parse_rawtype_int(self): pv = PrettyValue() results = pv.parse_rawtype('i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) def test_parse_rawtype_float(self): pv = PrettyValue() results = pv.parse_rawtype('f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) def test_parse_rawtype_date(self): pv = PrettyValue() results = pv.parse_rawtype('%Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) def test_parse_rawtype_width(self): pv = PrettyValue() results = pv.parse_rawtype('5') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('5s') self.assertEquals(results['atype'], 's') self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('5i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('5f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('5%Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) def test_parse_rawtype_sign(self): pv = PrettyValue() results = pv.parse_rawtype('-') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('-5') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+5') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('-s') self.assertEquals(results['atype'], 's') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+s') self.assertEquals(results['atype'], 's') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype(' -i') self.assertEquals(results['atype'], '-i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], ' ') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('-i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('- i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+ i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('-f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('- f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+ f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype(' %Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], ' ') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('-%Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('- %Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+%Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) results = pv.parse_rawtype('+ %Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], None) def test_parse_rawtype_align(self): pv = PrettyValue() results = pv.parse_rawtype('>') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], '>') self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('<') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], '<') self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('^') self.assertEquals(results['atype'], None) self.assertEquals(results['align'], '^') self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('>i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], '>') self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('^.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], '^') self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('^-.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], '^') self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('=+5.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], '=') self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('> %Y-%m-%d') self.assertEquals(results['atype'], '%Y-%m-%d') self.assertEquals(results['align'], '>') self.assertEquals(results['width'], None) self.assertEquals(results['sign'], ' ') self.assertEquals(results['precision'], None) def test_parse_rawtype_precision(self): pv = PrettyValue() results = pv.parse_rawtype('.') self.assertEquals(results['atype'], '.') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('.f') self.assertEquals(results['atype'], '.f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) results = pv.parse_rawtype('.2s') self.assertEquals(results['atype'], 's') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('.2i') self.assertEquals(results['atype'], 'i') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('5.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('.2 f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('-.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('- .2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], '-') self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('5.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('+5.2f') self.assertEquals(results['atype'], 'f') self.assertEquals(results['align'], None) self.assertEquals(results['width'], 5) self.assertEquals(results['sign'], '+') self.assertEquals(results['precision'], 2) results = pv.parse_rawtype('%H:%M.%S') self.assertEquals(results['atype'], '%H:%M.%S') self.assertEquals(results['align'], None) self.assertEquals(results['width'], None) self.assertEquals(results['sign'], None) self.assertEquals(results['precision'], None) class PrettyValue_FormatTestCase(unittest.TestCase): def setUp(self): pass def test_format_default(self): pv = PrettyValue() results = pv.format('test') self.assertEquals(results, 'test') pv = PrettyValue('10') results = pv.format('test') self.assertEquals(results, 'test ') pv = PrettyValue('>10') results = pv.format('test') self.assertEquals(results, ' test') pv = PrettyValue('^10') results = pv.format('test') self.assertEquals(results, ' test ') pv = PrettyValue('10') results = pv.format(5.25) self.assertEquals(results, '5.25 ') self.assertRaises(ValueError, PrettyValue, '=10') self.assertRaises(ValueError, PrettyValue, '-10') self.assertRaises(ValueError, PrettyValue, '10.2') def test_format_strings(self): pv = PrettyValue('s') results = pv.format('test') self.assertEquals(results, 'test') pv = PrettyValue('10s') results = pv.format('test') self.assertEquals(results, 'test ') pv = PrettyValue('>10s') results = pv.format('test') self.assertEquals(results, ' test') pv = PrettyValue('^10s') results = pv.format('test') self.assertEquals(results, ' test ') pv = PrettyValue('10s') results = pv.format(5.25) self.assertEquals(results, '5.25 ') self.assertRaises(ValueError, PrettyValue, '=10s') self.assertRaises(ValueError, PrettyValue, '=10s') self.assertRaises(ValueError, PrettyValue, '-10s') self.assertRaises(ValueError, PrettyValue, '10.2s') def test_format_ints(self): pv = PrettyValue('i') results = pv.format('5') self.assertEquals(results, '5') #no sign just size pv = PrettyValue('10i') results = pv.format('5') self.assertEquals(results, ' 5') pv = PrettyValue('<10i') results = pv.format('5') self.assertEquals(results, '5 ') pv = PrettyValue('^10i') results = pv.format('5') self.assertEquals(results, ' 5 ') pv = PrettyValue('< 10i') results = pv.format('5') self.assertEquals(results, ' 5 ') #positive sign and size pv = PrettyValue('+10i') results = pv.format('5') self.assertEquals(results, '+ 5') pv = PrettyValue('>+10i') results = pv.format('5') self.assertEquals(results, ' +5') pv = PrettyValue('<+10i') results = pv.format('5') self.assertEquals(results, '+5 ') pv = PrettyValue('^+10i') results = pv.format('5') self.assertEquals(results, ' +5 ') #negative number and size pv = PrettyValue('10i') results = pv.format('-5') self.assertEquals(results, '- 5') pv = PrettyValue('>10i') results = pv.format('-5') self.assertEquals(results, ' -5') pv = PrettyValue('< 10i') results = pv.format('-5') self.assertEquals(results, '-5 ') pv = PrettyValue('<10i') results = pv.format('-5') self.assertEquals(results, '-5 ') pv = PrettyValue('^10i') results = pv.format('-5') self.assertEquals(results, ' -5 ') #test float conversion to int formatting pv = PrettyValue('i') results = pv.format(5.25) self.assertEquals(results, '5') pv = PrettyValue(' i') results = pv.format(5) self.assertEquals(results, ' 5') pv = PrettyValue(' i') results = pv.format(-5) self.assertEquals(results, '-5') pv = PrettyValue('+10i') results = pv.format(5) self.assertEquals(results, '+ 5') self.assertRaises(ValueError, PrettyValue, '10.2i') pv = PrettyValue('i') self.assertRaises(ValueError, pv.format, 'test') def test_format_floats(self): #default precision is used of 4 and it does round up. pv = PrettyValue('f') results = pv.format('5.256678') self.assertEquals(results, '5.2567') #no sign just size pv = PrettyValue('10f') results = pv.format('5.256678') self.assertEquals(results, ' 5.2567') #same size but small precision pv = PrettyValue('10.2f') results = pv.format('5.256678') self.assertEquals(results, ' 5.26') #same size but bigger precision pv = PrettyValue('10.8f') results = pv.format(5.256678) self.assertEquals(results, '5.25667800') pv = PrettyValue('<10.2f') results = pv.format(5.256678) self.assertEquals(results, '5.26 ') pv = PrettyValue('^10.1f') results = pv.format(5) self.assertEquals(results, ' 5.0 ') pv = PrettyValue('< 10f') results = pv.format(5) self.assertEquals(results, ' 5.0000 ') #positive sign and size pv = PrettyValue('+10f') results = pv.format(5) self.assertEquals(results, '+ 5.0000') pv = PrettyValue('>+10.1f') results = pv.format(5) self.assertEquals(results, ' +5.0') pv = PrettyValue('<+10.1f') results = pv.format(5.256) self.assertEquals(results, '+5.3 ') pv = PrettyValue('^+10.1f') results = pv.format(5.233) self.assertEquals(results, ' +5.2 ') #negative number and size pv = PrettyValue('10f') results = pv.format('-5.25634') self.assertEquals(results, '- 5.2563') pv = PrettyValue('>10.2f') results = pv.format('-5.33333') self.assertEquals(results, ' -5.33') pv = PrettyValue('< 10f') results = pv.format('-5.3333') self.assertEquals(results, '-5.3333 ') pv = PrettyValue('<10.2f') results = pv.format(-5.256) self.assertEquals(results, '-5.26 ') pv = PrettyValue('^10.2f') results = pv.format('-5') self.assertEquals(results, ' -5.00 ') pv = PrettyValue(' f') results = pv.format(5) self.assertEquals(results, ' 5.0000') pv = PrettyValue(' f') results = pv.format(-5) self.assertEquals(results, '-5.0000') pv = PrettyValue('f') self.assertRaises(ValueError, pv.format, 'test') def test_format_percents(self): pv = PrettyValue('.2%') results = pv.format('.0525') self.assertEquals(results, '5.25%') pv = PrettyValue('%') results = pv.format('1') self.assertEquals(results, '100.0000%') def test_format_unknowns(self): d = datetime.datetime(2010, 7, 4, 12, 15, 58) pv = PrettyValue('%Y-%m-%d') results = pv.format(d) self.assertEquals(results, '2010-07-04') self.assertRaises(ValueError, PrettyValue, ' %Y-%m-%d') pv = PrettyValue('>10%Y') results = pv.format(d) self.assertEquals(results, ' 2010') def test_format_fill(self): pv = PrettyValue('10s', fill='*') results = pv.format('test') self.assertEquals(results, 'test******') pv = PrettyValue('^10s', fill='-') results = pv.format('test') self.assertEquals(results, '---test---') pv = PrettyValue('^10i', fill='-') results = pv.format('5') self.assertEquals(results, '----5-----') pv = PrettyValue('^+10.2f', fill='-') results = pv.format(5.23456) self.assertEquals(results, '--+5.23---') pv = PrettyValue('10i', fill=0) results = pv.format(5) self.assertEquals(results, '0000000005') pv = PrettyValue('-10i', fill=0) results = pv.format(-5) self.assertEquals(results, '-000000005') pv = PrettyValue('>10i', fill=0) results = pv.format(-5) self.assertEquals(results, '00000000-5') pv = PrettyValue('=10i', fill=0) results = pv.format(-5) self.assertEquals(results, '-000000005') pv = PrettyValue(' 10i', fill=0) results = pv.format(5) self.assertEquals(results, ' 000000005') def test_maxwidth(self): pv = PrettyValue('10s') results = pv.format('test') self.assertEquals(pv.maxwidth, 10) pv = PrettyValue('10s') results = pv.format('testing is lots of fun') self.assertEquals(pv.maxwidth, 22) pv = PrettyValue('i') results = pv.format(5123) self.assertEquals(pv.maxwidth, 4) pv = PrettyValue('5.1f') results = pv.format(5123.23456) self.assertEquals(pv.maxwidth, 6) class PrettyValues_TestCase(unittest.TestCase): def setUp(self): pass def test_format_list(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '+5.2f') values = [0, 'yhoo', 23.45] results = pv.format([values]) self.assertEquals(results[0], ['0', 'Column2', '2 ']) self.assertEquals(results[1], ['0', 'yhoo ', '+23.45']) self.assertEquals(len(results), 2) def test_format_dict(self): pv = PrettyValues() pv.newcol('bar', 'i') pv.newcol('sym', cname='Column2') pv.newcol('close', '+5.2f') values = {'bar': 0, 'sym': 'yhoo', 'close': 23.45} results = pv.format([values]) self.assertEquals(results[0], ['bar', 'Column2', 'close ']) self.assertEquals(results[1], [' 0', 'yhoo ', '+23.45']) self.assertEquals(len(results), 2) def test_nokey_dict(self): pv = PrettyValues() pv.newcol(vformat='i') pv.newcol(cname='Column2') pv.newcol(vformat='+5.2f') values = {'bar': 0, 'sym': 'yhoo', 'close': 23.45} self.assertRaises(KeyError, pv.format, [values]) def test_format_lol(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '+5.2f') values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) results = pv.format(values) self.assertEquals(results[0], ['0', 'Column2', '2 ']) self.assertEquals(results[1], ['0', 'yhoo ', '+ 23.45']) self.assertEquals(results[2], ['1', 'goog ', '+200.46']) self.assertEquals(results[3], ['2', 'newp ', '+ 1.00']) self.assertEquals(len(results), 4) def test_nokey_lol(self): pv = PrettyValues() pv.newcol(vformat='i') pv.newcol(cname='Column2') pv.newcol(vformat='+5.2f') values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) results = pv.format(values) self.assertEquals(results[0], ['0', 'Column2', '2 ']) self.assertEquals(results[1], ['0', 'yhoo ', '+ 23.45']) self.assertEquals(results[2], ['1', 'goog ', '+200.46']) self.assertEquals(results[3], ['2', 'newp ', '+ 1.00']) self.assertEquals(len(results), 4) def test_dupcol_lol(self): pv = PrettyValues() pv.newcol(vformat='i') pv.newcol(cname='Column2') pv.newcol(1) values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) results = pv.format(values) self.assertEquals(results[0], ['0', 'Column2', '1 ']) self.assertEquals(results[1], ['0', 'yhoo ', 'yhoo']) self.assertEquals(results[2], ['1', 'goog ', 'goog']) self.assertEquals(results[3], ['2', 'newp ', 'newp']) self.assertEquals(len(results), 4) def test_format_lol_noheader(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '+5.2f') values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) values.append([3, 'nan', 'nan']) values.append([4, 'newp', 'inf']) values.append([5, 'newp', '-inf']) results = pv.format(values, useheader=False) self.assertEquals(results[0], ['0', 'yhoo', '+ 23.45']) self.assertEquals(results[1], ['1', 'goog', '+200.46']) self.assertEquals(results[2], ['2', 'newp', '+ 1.00']) self.assertEquals(results[3], ['3', 'nan ', ' nan']) self.assertEquals(results[4], ['4', 'newp', '+ inf']) self.assertEquals(results[5], ['5', 'newp', '- inf']) self.assertEquals(len(results), 6) def test_format_lol_inf_1(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '+1.1f') values = [] values.append([0, 'yhoo', 2]) values.append([1, 'goog', 5]) values.append([2, 'newp', 1]) values.append([3, 'nan', 'nan']) values.append([4, 'newp', 'inf']) values.append([5, 'newp', '-inf']) results = pv.format(values, useheader=False) self.assertEquals(results[0], ['0', 'yhoo', '+2.0']) self.assertEquals(results[1], ['1', 'goog', '+5.0']) self.assertEquals(results[2], ['2', 'newp', '+1.0']) self.assertEquals(results[3], ['3', 'nan ', ' nan']) self.assertEquals(results[4], ['4', 'newp', '+inf']) self.assertEquals(results[5], ['5', 'newp', '-inf']) self.assertEquals(len(results), 6) def test_format_lol_inf_2(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '=1.1f') values = [] values.append([0, 'yhoo', 2]) values.append([1, 'goog', 5]) values.append([2, 'newp', 1]) values.append([3, 'nan', 'nan']) values.append([4, 'newp', 'inf']) values.append([5, 'newp', '-inf']) results = pv.format(values, useheader=False) self.assertEquals(results[0], ['0', 'yhoo', ' 2.0']) self.assertEquals(results[1], ['1', 'goog', ' 5.0']) self.assertEquals(results[2], ['2', 'newp', ' 1.0']) self.assertEquals(results[3], ['3', 'nan ', ' nan']) self.assertEquals(results[4], ['4', 'newp', ' inf']) self.assertEquals(results[5], ['5', 'newp', '-inf']) self.assertEquals(len(results), 6) def test_format_lol_inf_3(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '=5.1f') values = [] values.append([0, 'yhoo', 2]) values.append([1, 'goog', 5]) values.append([2, 'newp', 1]) values.append([3, 'nan', 'nan']) values.append([4, 'newp', 'inf']) values.append([5, 'newp', '+inf']) values.append([6, 'newp', '-inf']) results = pv.format(values, useheader=False) self.assertEquals(results[0], ['0', 'yhoo', ' 2.0']) self.assertEquals(results[1], ['1', 'goog', ' 5.0']) self.assertEquals(results[2], ['2', 'newp', ' 1.0']) self.assertEquals(results[3], ['3', 'nan ', ' nan']) self.assertEquals(results[4], ['4', 'newp', ' inf']) self.assertEquals(results[5], ['5', 'newp', ' inf']) self.assertEquals(results[6], ['6', 'newp', '- inf']) self.assertEquals(len(results), 7) def test_format_lol_inf_4(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '=+5.1f') values = [] values.append([0, 'yhoo', 2]) values.append([1, 'goog', 5]) values.append([2, 'newp', 1]) values.append([3, 'nan', 'nan']) values.append([4, 'newp', 'inf']) values.append([5, 'newp', '+inf']) values.append([6, 'newp', '-inf']) results = pv.format(values, useheader=False) self.assertEquals(results[0], ['0', 'yhoo', '+ 2.0']) self.assertEquals(results[1], ['1', 'goog', '+ 5.0']) self.assertEquals(results[2], ['2', 'newp', '+ 1.0']) self.assertEquals(results[3], ['3', 'nan ', ' nan']) self.assertEquals(results[4], ['4', 'newp', '+ inf']) self.assertEquals(results[5], ['5', 'newp', '+ inf']) self.assertEquals(results[6], ['6', 'newp', '- inf']) self.assertEquals(len(results), 7) def test_format_lol_nocolumns(self): pv = PrettyValues() values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) results = pv.format(values) self.assertEquals(results[0], ['0', '1 ', '2 ']) self.assertEquals(results[1], ['0', 'yhoo', '23.45 ']) self.assertEquals(results[2], ['1', 'goog', '200.4565']) self.assertEquals(results[3], ['2', 'newp', '1.0 ']) self.assertEquals(len(results), 4) def test_text_lol(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '+5.2f') values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) results = pv.text(values).split('\n') self.assertEquals(results[0], '+---+---------+---------+') self.assertEquals(results[1], '| 0 | Column2 | 2 |') self.assertEquals(results[2], '+---+---------+---------+') self.assertEquals(results[3], '| 0 | yhoo | + 23.45 |') self.assertEquals(results[4], '| 1 | goog | +200.46 |') self.assertEquals(results[5], '| 2 | newp | + 1.00 |') self.assertEquals(results[6], '+---+---------+---------+') self.assertEquals(len(results), 7) def test_text_title1(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '+5.2f') values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) results = pv.text(values, title="Test Title 1").split('\n') self.assertEquals(results[0], '+-----------------------+') self.assertEquals(results[1], '| Test Title 1 |') self.assertEquals(results[2], '+---+---------+---------+') self.assertEquals(results[3], '| 0 | Column2 | 2 |') self.assertEquals(results[4], '+---+---------+---------+') self.assertEquals(results[5], '| 0 | yhoo | + 23.45 |') self.assertEquals(results[6], '| 1 | goog | +200.46 |') self.assertEquals(results[7], '| 2 | newp | + 1.00 |') self.assertEquals(results[8], '+---+---------+---------+') self.assertEquals(len(results), 9) def test_text_title_trunc(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, '+5.2f') values = [] values.append([0, 23.45]) values.append([1, 200.4565]) values.append([2, 1.00]) results = pv.text(values, title="Test Title 2").split('\n') self.assertEquals(results[0], '+-------------+') self.assertEquals(results[1], '| Test Title |') self.assertEquals(results[2], '+---+---------+') self.assertEquals(results[3], '| 0 | 1 |') self.assertEquals(results[4], '+---+---------+') self.assertEquals(results[5], '| 0 | + 23.45 |') self.assertEquals(results[6], '| 1 | +200.46 |') self.assertEquals(results[7], '| 2 | + 1.00 |') self.assertEquals(results[8], '+---+---------+') self.assertEquals(len(results), 9) def test_text_title_small(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, '+5.2f') values = [] values.append([0, 23.45]) values.append([1, 200.4565]) values.append([2, 1.00]) results = pv.text(values, title="Title").split('\n') self.assertEquals(results[0], '+-------------+') self.assertEquals(results[1], '| Title |') self.assertEquals(results[2], '+---+---------+') self.assertEquals(results[3], '| 0 | 1 |') self.assertEquals(results[4], '+---+---------+') self.assertEquals(results[5], '| 0 | + 23.45 |') self.assertEquals(results[6], '| 1 | +200.46 |') self.assertEquals(results[7], '| 2 | + 1.00 |') self.assertEquals(results[8], '+---+---------+') self.assertEquals(len(results), 9) def test_text_title_1col(self): pv = PrettyValues() pv.newcol(0, '+5.2f') values = [] values.append([23.45]) values.append([200.4565]) values.append([1.00]) results = pv.text(values, title="Title").split('\n') self.assertEquals(results[0], '+---------+') self.assertEquals(results[1], '| Title |') self.assertEquals(results[2], '+---------+') self.assertEquals(results[3], '| 0 |') self.assertEquals(results[4], '+---------+') self.assertEquals(results[5], '| + 23.45 |') self.assertEquals(results[6], '| +200.46 |') self.assertEquals(results[7], '| + 1.00 |') self.assertEquals(results[8], '+---------+') self.assertEquals(len(results), 9) def test_format_lod(self): pv = PrettyValues() pv.newcol('bar', 'i') pv.newcol('sym', cname='Symbol') pv.newcol('close', '+5.2f') values = [] values.append({'bar': 0, 'sym': 'yhoo', 'close': 23.45}) values.append({'bar': 1, 'sym': 'goog', 'close': 200.4565}) values.append({'bar': 2, 'sym': 'newp', 'close': 1.00}) results = pv.format(values) self.assertEquals(results[0], ['bar', 'Symbol', 'close ']) self.assertEquals(results[1], [' 0', 'yhoo ', '+ 23.45']) self.assertEquals(results[2], [' 1', 'goog ', '+200.46']) self.assertEquals(results[3], [' 2', 'newp ', '+ 1.00']) self.assertEquals(len(results), 4) def test_format_lod_nocolumns(self): pv = PrettyValues() values = [] values.append({'bar': 0, 'sym': 'yhoo', 'close': 23.45}) values.append({'bar': 1, 'sym': 'goog', 'close': 200.4565}) values.append({'bar': 2, 'sym': 'newp', 'close': 1.00}) results = pv.format(values) self.assertEquals(results[0], ['close ', 'bar', 'sym ']) self.assertEquals(results[1], ['23.45 ', '0 ', 'yhoo']) self.assertEquals(results[2], ['200.4565', '1 ', 'goog']) self.assertEquals(results[3], ['1.0 ', '2 ', 'newp']) self.assertEquals(len(results), 4) def test_text_list(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, cname='Column2') pv.newcol(2, '+5.2f') values = [0, 'yhoo', 23.45] results = pv.text([values]).split('\n') self.assertEquals(results[0], '+---+---------+--------+') self.assertEquals(results[1], '| 0 | Column2 | 2 |') self.assertEquals(results[2], '+---+---------+--------+') self.assertEquals(results[3], '| 0 | yhoo | +23.45 |') self.assertEquals(results[4], '+---+---------+--------+') self.assertEquals(len(results), 5) def test_text_dict(self): pv = PrettyValues() pv.newcol('bar', 'i') pv.newcol('sym', cname='Column2') pv.newcol('close', '+5.2f') values = {'bar': 0, 'sym': 'yhoo', 'close': 23.45} results = pv.text([values]).split('\n') self.assertEquals(results[0], '+-----+---------+--------+') self.assertEquals(results[1], '| bar | Column2 | close |') self.assertEquals(results[2], '+-----+---------+--------+') self.assertEquals(results[3], '| 0 | yhoo | +23.45 |') self.assertEquals(results[4], '+-----+---------+--------+') self.assertEquals(len(results), 5) def test_text_lod(self): pv = PrettyValues() pv.newcol('bar', 'i') pv.newcol('sym', cname='Symbol') pv.newcol('close', '+5.2f') values = [] values.append({'bar': 0, 'sym': 'yhoo', 'close': 23.45}) values.append({'bar': 1, 'sym': 'goog', 'close': 200.4565}) values.append({'bar': 2, 'sym': 'newp', 'close': 1.00}) values.append({'bar': 3, 'sym': 'nan', 'close': 'nan'}) results = pv.text(values).split('\n') self.assertEquals(results[0], '+-----+--------+---------+') self.assertEquals(results[1], '| bar | Symbol | close |') self.assertEquals(results[2], '+-----+--------+---------+') self.assertEquals(results[3], '| 0 | yhoo | + 23.45 |') self.assertEquals(results[4], '| 1 | goog | +200.46 |') self.assertEquals(results[5], '| 2 | newp | + 1.00 |') self.assertEquals(results[6], '| 3 | nan | nan |') self.assertEquals(results[7], '+-----+--------+---------+') self.assertEquals(len(results), 8) def test_format_fill(self): pv = PrettyValues() pv.newcol(0, 'i') pv.newcol(1, vfill='.', cname='Column2') pv.newcol(2, '+5.2f', cname='Close', cformat='^', cfill='_') values = [] values.append([0, 'yhoo', 23.45]) values.append([1, 'goog', 200.4565]) values.append([2, 'newp', 1.00]) results = pv.format(values) self.assertEquals(results[0], ['0', 'Column2', '_Close_']) self.assertEquals(results[1], ['0', 'yhoo...', '+ 23.45']) self.assertEquals(results[2], ['1', 'goog...', '+200.46']) self.assertEquals(results[3], ['2', 'newp...', '+ 1.00']) self.assertEquals(len(results), 4) def test_format_invalids(self): pv = PrettyValues() pv.newcol('open') values = [] values.append({'bar': 0, 'sym': 'yhoo', 'close': 23.45}) self.assertRaises(KeyError, pv.format, values) pv = PrettyValues() pv.newcol(2) values = [] values.append([0, 'yhoo']) self.assertRaises(IndexError, pv.format, values) if __name__ == "__main__": unittest.main()
34.90057
72
0.553698
4,673
42,823
5.036807
0.044297
0.316098
0.424098
0.130773
0.927688
0.912308
0.892637
0.874495
0.854824
0.830777
0
0.042625
0.25164
42,823
1,226
73
34.929038
0.691828
0.010905
0
0.73774
0
0
0.13116
0.00952
0
0
0
0
0.510661
1
0.047974
false
0.003198
0.006397
0
0.057569
0
0
0
0
null
1
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
10
c8df7632dfd8522ae453b756a9ee57817604a8c6
9,138
py
Python
tests/api/service/test_docker.py
hoominkani/dagda
8818ab96807c9755955b66ac6db6847ee4001c81
[ "Apache-2.0" ]
947
2016-11-25T10:48:30.000Z
2022-03-30T20:09:00.000Z
tests/api/service/test_docker.py
hoominkani/dagda
8818ab96807c9755955b66ac6db6847ee4001c81
[ "Apache-2.0" ]
96
2016-11-28T10:58:50.000Z
2021-10-19T18:32:12.000Z
tests/api/service/test_docker.py
hoominkani/dagda
8818ab96807c9755955b66ac6db6847ee4001c81
[ "Apache-2.0" ]
148
2016-11-28T12:33:46.000Z
2022-03-02T01:57:21.000Z
# # Licensed to Dagda under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Dagda licenses this file to you 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 unittest.mock import patch from dagda.api.service.docker import get_all_docker_images from dagda.api.service.docker import get_all_running_containers from dagda.api.service.docker import sizeof_fmt # -- Test suite class DockerApiTestCase(unittest.TestCase): # -- Mock internal classes class MockDockerDriverEmpty(): class MockDockerClient(): def containers(self): return [] def images(self): return [] def get_docker_client(self): return self.MockDockerClient() class MockDockerDriver(): class MockDockerClient(): def containers(self): return [{'Image': 'mongo', 'Mounts': [{'Destination': '/data/configdb', 'Driver': 'local', 'Name': '4a26849615bb3f54ccc2f1833010826550f07bfcda279d76b3c4f3b79c61063c', 'Mode': '', 'Propagation': '', 'Source': '/var/lib/docker/volumes/4a26849615bb3f54ccc2f1833010826550f07bfcda279d76b3c4f3b79c61063c/_data', 'RW': True}, {'Destination': '/data/db', 'Driver': 'local', 'Name': '1fb738b171443c654f163850b1eb873902a9c018e87706512c15e0fc78406005', 'Mode': '', 'Propagation': '', 'Source': '/var/lib/docker/volumes/1fb738b171443c654f163850b1eb873902a9c018e87706512c15e0fc78406005/_data', 'RW': True}], 'Command': '/entrypoint.sh mongod', 'Ports': [{'Type': 'tcp', 'PrivatePort': 27017}], 'NetworkSettings': {'Networks': {'bridge': {'EndpointID': 'fa5b09bf01d1752cc411618c1884e7035c6f8af4138f6a6e5e6f1c883215a398', 'IPPrefixLen': 16, 'IPAMConfig': None, 'GlobalIPv6Address': '', 'IPv6Gateway': '', 'MacAddress': '02:42:ac:11:00:03', 'Aliases': None, 'IPAddress': '172.17.0.3', 'NetworkID': '4b40ec6b168d22e8c619cf07590c13f9a265df4c30f38b240a201c6ccb2524a8', 'Gateway': '172.17.0.1', 'Links': None, 'GlobalIPv6PrefixLen': 0}}}, 'State': 'running', 'ImageID': 'sha256:86e302671af465e21742fb4932322012da8abaff5134a7dd194dc47944461549', 'Names': ['/prickly_ride'], 'HostConfig': {'NetworkMode': 'default'}, 'Id': 'eeec610d87717e43894a66b38fabc93615189a9a22e57240a4f3749289f1ba01', 'Status': 'Up 1 seconds', 'Created': 1484414163, 'Labels': {}}, {'Image': 'jboss/wildfly', 'Mounts': [], 'Command': '/opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0', 'Ports': [{'Type': 'tcp', 'PrivatePort': 8080}], 'NetworkSettings': {'Networks': {'bridge': {'EndpointID': '38bc01e7286d10891806420b072c40409f27f96767dae694244ffa7d72d47aa2', 'IPPrefixLen': 16, 'IPAMConfig': None, 'GlobalIPv6Address': '', 'IPv6Gateway': '', 'MacAddress': '02:42:ac:11:00:02', 'Aliases': None, 'IPAddress': '172.17.0.2', 'NetworkID': '4b40ec6b168d22e8c619cf07590c13f9a265df4c30f38b240a201c6ccb2524a8', 'Gateway': '172.17.0.1', 'Links': None, 'GlobalIPv6PrefixLen': 0}}}, 'State': 'running', 'ImageID': 'sha256:f916ed31837d0ec79bd239a398c13d40ec93dcaa0dad6bb3ac36ab4953161f0f', 'Names': ['/stupefied_stallman'], 'HostConfig': {'NetworkMode': 'default'}, 'Id': 'ee1a32ddfffd2e3b66c76dc53eef432dfb07b4c90b8224613dcb6be8ab105320', 'Status': 'Up 10 seconds', 'Created': 1484414156, 'Labels': {'license': 'GPLv2', 'build-date': '20161102', 'vendor': 'CentOS', 'name': 'CentOS Base Image'}}] def images(self): return [{'Labels': {}, 'RepoTags': None, 'Id': 'sha256:f846515186f0734c327efcfa43b484d78220ab8b274d5e54b170a1c6144c6cbd', 'VirtualSize': 100893927, 'Size': 100893927, 'Created': 1483873177, 'ParentId': 'sha256:e5e28ce5c45699575583264ae9be9f35b6af76d13308192e01e3ace65d73b5a7', 'RepoDigests': None}, {'Labels': {}, 'RepoTags': ['python:3.4.5-alpine'], 'Id': 'sha256:0eb0091592b3d8aab929e19041330d307e0e3302cf58ae8753276a2860c45037', 'VirtualSize': 82364493, 'Size': 82364493, 'Created': 1482874759, 'ParentId': '', 'RepoDigests': ['python@sha256:a4bae34fb471e7093e74fc57ea3dc580635d2821d55c4a7ad727e254f34a882a']}, {'Labels': None, 'RepoTags': ['alpine:latest'], 'Id': 'sha256:88e169ea8f46ff0d0df784b1b254a15ecfaf045aee1856dca1ec242fdd231ddd', 'VirtualSize': 3979756, 'Size': 3979756, 'Created': 1482862645, 'ParentId': '', 'RepoDigests': ['alpine@sha256:dfbd4a3a8ebca874ebd2474f044a0b33600d4523d03b0df76e5c5986cb02d7e8']}, {'Labels': {'RUN': 'docker run -i -t -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro -v /lib/modules:/host/lib/modules:ro -v /usr:/host/usr:ro --name NAME IMAGE'}, 'RepoTags': ['sysdig/falco:latest'], 'Id': 'sha256:285353e9835de79f7402bb2866f2e8552584a348305c545d7287a81dc2014f0e', 'VirtualSize': 346035227, 'Size': 346035227, 'Created': 1482449119, 'ParentId': '', 'RepoDigests': ['sysdig/falco@sha256:64a19373892d5b0cadccb2cb3925cd343a9ee210db543e44cb74c8b8ac016413']}, {'Labels': {}, 'RepoTags': ['redis:latest'], 'Id': 'sha256:d59dc9e6d0bf135e969796ba00c9f458e3b65c47d8a7349a3d6e0974ec02e103', 'VirtualSize': 182896153, 'Size': 182896153, 'Created': 1481743509, 'ParentId': '', 'RepoDigests': ['redis@sha256:eed4da4937cb562e9005f3c66eb8c3abc14bb95ad497c03dc89d66bcd172fc7f']}, {'Labels': {}, 'RepoTags': ['mongo:latest', 'mongo:latest'], 'Id': 'sha256:86e302671af465e21742fb4932322012da8abaff5134a7dd194dc47944461549', 'VirtualSize': 401895934, 'Size': 401895934, 'Created': 1480543691, 'ParentId': '', 'RepoDigests': ['mongo@sha256:d929ffc5d0871712198be82c475397e5e9c71f3d2a9fa4b304f623ad09ad204b', 'mongo@sha256:d929ffc5d0871712198be82c475397e5e9c71f3d2a9fa4b304f623ad09ad204b']}, {'Labels': {'vendor': 'CentOS', 'build-date': '20161102', 'name': 'CentOS Base Image', 'license': 'GPLv2'}, 'RepoTags': ['jboss/wildfly:latest', 'jboss/wildfly:latest'], 'Id': 'sha256:f916ed31837d0ec79bd239a398c13d40ec93dcaa0dad6bb3ac36ab4953161f0f', 'VirtualSize': 582564927, 'Size': 582564927, 'Created': 1479505764, 'ParentId': '', 'RepoDigests': ['jboss/wildfly@sha256:12dde9a59c2f64387114c5587455eae8b1bd4264f8c1a1679b2d2e656e5502a6', 'jboss/wildfly@sha256:12dde9a59c2f64387114c5587455eae8b1bd4264f8c1a1679b2d2e656e5502a6']}, {'Labels': {}, 'RepoTags': ['deepfenceio/deepfence_depcheck:latest', 'deepfenceio/deepfence_depcheck:latest'], 'Id': 'sha256:c18ba084d113f47a05ed8d40a004443f92525e42c99dce512a88576396fa457e', 'VirtualSize': 884997791, 'Size': 884997791, 'Created': 1476433732, 'ParentId': '', 'RepoDigests': ['deepfenceio/deepfence_depcheck@sha256:7412104b40657cb535091eae71f6e5bca14befbba25de669969276e5365fc4fb', 'deepfenceio/deepfence_depcheck@sha256:7412104b40657cb535091eae71f6e5bca14befbba25de669969276e5365fc4fb']}] def get_docker_client(self): return self.MockDockerClient() # -- Tests def test_sizeof_fmt(self): response = sizeof_fmt(1099511627776.0) self.assertEqual(response, '1.0YB') @patch('api.internal.internal_server.InternalServer.get_docker_driver', return_value=MockDockerDriver()) def test_get_all_docker_images(self, m1): response = get_all_docker_images() self.assertEqual(response, mock_images_result) @patch('api.internal.internal_server.InternalServer.get_docker_driver', return_value=MockDockerDriver()) def test_get_all_running_containers(self, m1): response = get_all_running_containers() self.assertEqual(response, mock_containers_result) # -- Mock Constants mock_images_result = '[{"created": "2017-01-08 10:59:37", "id": "f846515186f0", "size": "96.2MB", "tags": ["None:None"]}, {"created": "2016-12-27 21:39:19", "id": "0eb0091592b3", "size": "78.5MB", "tags": ["python:3.4.5-alpine"]}, {"created": "2016-12-27 18:17:25", "id": "88e169ea8f46", "size": "3.8MB", "tags": ["alpine:latest"]}, {"created": "2016-12-22 23:25:19", "id": "285353e9835d", "size": "330.0MB", "tags": ["sysdig/falco:latest"]}, {"created": "2016-12-14 19:25:09", "id": "d59dc9e6d0bf", "size": "174.4MB", "tags": ["redis:latest"]}, {"created": "2016-11-30 22:08:11", "id": "86e302671af4", "size": "383.3MB", "tags": ["mongo:latest"]}, {"created": "2016-11-18 21:49:24", "id": "f916ed31837d", "size": "555.6MB", "tags": ["jboss/wildfly:latest"]}, {"created": "2016-10-14 08:28:52", "id": "c18ba084d113", "size": "844.0MB", "tags": ["deepfenceio/deepfence_depcheck:latest"]}]' mock_containers_result = '[{"created": "2017-01-14 17:16:03", "id": "eeec610d8771", "image": "mongo", "name": "prickly_ride", "status": "running"}, {"created": "2017-01-14 17:15:56", "id": "ee1a32ddfffd", "image": "jboss/wildfly", "name": "stupefied_stallman", "status": "running"}]' if __name__ == '__main__': unittest.main()
111.439024
3,228
0.729262
873
9,138
7.561283
0.363116
0.014543
0.012725
0.008635
0.214664
0.159218
0.133313
0.121194
0.09544
0.09544
0
0.238443
0.10046
9,138
81
3,229
112.814815
0.564599
0.085686
0
0.378378
0
0.108108
0.653745
0.333293
0
0
0
0
0.081081
1
0.243243
false
0
0.135135
0.162162
0.675676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
0
0
0
0
0
1
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
cdbbdaba8d260e7a2c449c117fbc91171d1068f5
7,377
py
Python
tests/unit/altimeter/aws/test_resource_service_region_mapping.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
48
2019-11-06T03:20:53.000Z
2022-02-22T21:10:45.000Z
tests/unit/altimeter/aws/test_resource_service_region_mapping.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
27
2020-01-07T23:48:30.000Z
2022-02-26T00:24:04.000Z
tests/unit/altimeter/aws/test_resource_service_region_mapping.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
21
2019-12-20T03:06:35.000Z
2021-12-15T23:26:00.000Z
import json import unittest import unittest.mock from altimeter.aws.resource.resource_spec import ScanGranularity from altimeter.aws.resource_service_region_mapping import ( build_aws_resource_region_mapping_repo, NoRegionsFoundForResource, ) from altimeter.aws.scan.settings import ALL_RESOURCE_SPEC_CLASSES class TestAWSResourceRegionMappingRepository(unittest.TestCase): def test_with_empty_global_region_whitelist(self): sample_data_filepath = "tests/data/aws_service_region_mapping/20210329202700.json" with open(sample_data_filepath, "r") as fp: region_services_json = json.load(fp) with unittest.mock.patch( "altimeter.aws.resource_service_region_mapping.get_aws_service_region_mapping_json" ) as mock_get_aws_service_region_mapping_json: mock_get_aws_service_region_mapping_json.return_value = region_services_json mapping_repo = build_aws_resource_region_mapping_repo( global_region_whitelist=(), preferred_account_scan_regions=("us-east-1",), services_regions_json_url="https://mock_url", ) for resource_spec_class in ALL_RESOURCE_SPEC_CLASSES: scan_regions = mapping_repo.get_regions( resource_spec_class=resource_spec_class, region_whitelist=() ) if resource_spec_class.scan_granularity == ScanGranularity.ACCOUNT: self.assertEqual(scan_regions, ("us-east-1",)) else: self.assertGreaterEqual(len(scan_regions), 1) def test_with_populated_global_region_whitelist(self): sample_data_filepath = "tests/data/aws_service_region_mapping/20210329202700.json" with open(sample_data_filepath, "r") as fp: region_services_json = json.load(fp) with unittest.mock.patch( "altimeter.aws.resource_service_region_mapping.get_aws_service_region_mapping_json" ) as mock_get_aws_service_region_mapping_json: mock_get_aws_service_region_mapping_json.return_value = region_services_json mapping_repo = build_aws_resource_region_mapping_repo( global_region_whitelist=("us-east-1", "us-east-2", "us-west-1", "us-west-2"), preferred_account_scan_regions=("us-east-1",), services_regions_json_url="https://mock_url", ) for resource_spec_class in ALL_RESOURCE_SPEC_CLASSES: scan_regions = mapping_repo.get_regions( resource_spec_class=resource_spec_class, region_whitelist=() ) if resource_spec_class.scan_granularity == ScanGranularity.ACCOUNT: self.assertEqual(scan_regions, ("us-east-1",)) else: self.assertGreaterEqual(len(scan_regions), 1) self.assertLessEqual(len(scan_regions), 4) def test_with_under_populated_global_region_whitelist(self): sample_data_filepath = "tests/data/aws_service_region_mapping/20210329202700.json" with open(sample_data_filepath, "r") as fp: region_services_json = json.load(fp) with unittest.mock.patch( "altimeter.aws.resource_service_region_mapping.get_aws_service_region_mapping_json" ) as mock_get_aws_service_region_mapping_json: mock_get_aws_service_region_mapping_json.return_value = region_services_json mapping_repo = build_aws_resource_region_mapping_repo( global_region_whitelist=("us-east-2", "us-west-1", "us-west-2"), preferred_account_scan_regions=("us-east-1",), services_regions_json_url="https://mock_url", ) for resource_spec_class in ALL_RESOURCE_SPEC_CLASSES: if resource_spec_class.scan_granularity == ScanGranularity.ACCOUNT: with self.assertRaises(NoRegionsFoundForResource): mapping_repo.get_regions( resource_spec_class=resource_spec_class, region_whitelist=() ) else: scan_regions = mapping_repo.get_regions( resource_spec_class=resource_spec_class, region_whitelist=() ) self.assertGreaterEqual(len(scan_regions), 1) self.assertLessEqual(len(scan_regions), 4) def test_with_populated_account_region_whitelist(self): sample_data_filepath = "tests/data/aws_service_region_mapping/20210329202700.json" with open(sample_data_filepath, "r") as fp: region_services_json = json.load(fp) with unittest.mock.patch( "altimeter.aws.resource_service_region_mapping.get_aws_service_region_mapping_json" ) as mock_get_aws_service_region_mapping_json: mock_get_aws_service_region_mapping_json.return_value = region_services_json mapping_repo = build_aws_resource_region_mapping_repo( global_region_whitelist=("us-east-1", "us-east-2", "us-west-1", "us-west-2"), preferred_account_scan_regions=("us-east-1",), services_regions_json_url="https://mock_url", ) for resource_spec_class in ALL_RESOURCE_SPEC_CLASSES: scan_regions = mapping_repo.get_regions( resource_spec_class=resource_spec_class, region_whitelist=("us-east-1", "us-east-2"), ) if resource_spec_class.scan_granularity == ScanGranularity.ACCOUNT: self.assertEqual(scan_regions, ("us-east-1",)) else: self.assertGreaterEqual(len(scan_regions), 1) self.assertLessEqual(len(scan_regions), 2) def test_with_under_populated_account_region_whitelist(self): sample_data_filepath = "tests/data/aws_service_region_mapping/20210329202700.json" with open(sample_data_filepath, "r") as fp: region_services_json = json.load(fp) with unittest.mock.patch( "altimeter.aws.resource_service_region_mapping.get_aws_service_region_mapping_json" ) as mock_get_aws_service_region_mapping_json: mock_get_aws_service_region_mapping_json.return_value = region_services_json mapping_repo = build_aws_resource_region_mapping_repo( global_region_whitelist=("us-east-1", "us-east-2", "us-west-1", "us-west-2"), preferred_account_scan_regions=("us-east-1",), services_regions_json_url="https://mock_url", ) for resource_spec_class in ALL_RESOURCE_SPEC_CLASSES: if resource_spec_class.scan_granularity == ScanGranularity.ACCOUNT: with self.assertRaises(NoRegionsFoundForResource): mapping_repo.get_regions( resource_spec_class=resource_spec_class, region_whitelist=("us-east-2") ) else: scan_regions = mapping_repo.get_regions( resource_spec_class=resource_spec_class, region_whitelist=("us-east-2") ) self.assertEqual(len(scan_regions), 1)
55.466165
99
0.657584
834
7,377
5.36211
0.081535
0.093023
0.116279
0.102862
0.931351
0.926655
0.910331
0.910331
0.908542
0.908542
0
0.019383
0.265691
7,377
132
100
55.886364
0.806166
0
0
0.736
0
0
0.137996
0.093534
0
0
0
0
0.104
1
0.04
false
0
0.048
0
0.096
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
b5408e262799d428051e4f1a430f682de2e055b0
4,255
py
Python
histloss/histogram_loss.py
stat-ml/hist-loss
bb64faf4bfa3c6e0d695dc0393ed21c6cc707e7f
[ "Apache-2.0" ]
6
2021-06-14T10:15:58.000Z
2022-02-14T09:25:45.000Z
histloss/histogram_loss.py
stat-ml/hist-loss
bb64faf4bfa3c6e0d695dc0393ed21c6cc707e7f
[ "Apache-2.0" ]
null
null
null
histloss/histogram_loss.py
stat-ml/hist-loss
bb64faf4bfa3c6e0d695dc0393ed21c6cc707e7f
[ "Apache-2.0" ]
1
2021-07-15T02:23:42.000Z
2021-07-15T02:23:42.000Z
import torch from torch import Tensor from histloss.base_hist_loss import BaseHistLoss from histloss.utils import norm_min_max_distributuions class HistogramLoss(BaseHistLoss): """ Histogram Loss Args: bins (int, optional): .Default: `10` min_val (float, optional): Default: `-1` max_val (float, optional): Default: `1` alpha (float, optional): parameter for regularization. Default: `0` Shape: - positive: set of positive points, (N, *) - negative: set of negative points, (M, *) - loss: scalar Examples:: >>> criterion = HistogramLoss() >>> positive = torch.sigmoid(torch.randn(10, requires_grad=True)) >>> negative = torch.sigmoid(torch.randn(10, requires_grad=True)) >>> loss = criterion(positive, negative) >>> loss.backward() Reference: E. Ustinova and V. Lempitsky: Learning Deep Embeddings with Histogram Loss: https://arxiv.org/pdf/1611.00822.pdf """ def forward(self, positive: Tensor, negative: Tensor): self.t = self.t.to(device=positive.device) positive, negative = norm_min_max_distributuions(positive, negative) pos_hist = self.compute_histogram(positive) # h_pos neg_hist = self.compute_histogram(negative) # h_neg pos_cum = torch.cumsum(pos_hist, 0) # phi_pos hist_loss = (neg_hist * pos_cum).sum() # 4 equation of the paper # Not in the article, own improvements std_loss = self.std_loss(positive, negative) loss = hist_loss + std_loss return loss class InvHistogramLoss(BaseHistLoss): """ Inverse Histogram Loss Args: bins (int, optional): .Default: `10` min_val (float, optional): Default: `-1` max_val (float, optional): Default: `1` alpha (float, optional): parameter for regularization. Default: `0` Shape: - positive: set of positive points, (N, *) - negative: set of negative points, (M, *) - loss: scalar Examples:: >>> criterion = InvHistogramLoss() >>> positive = torch.sigmoid(torch.randn(10, requires_grad=True)) >>> negative = torch.sigmoid(torch.randn(10, requires_grad=True)) >>> loss = criterion(positive, negative) >>> loss.backward() """ def forward(self, positive: Tensor, negative: Tensor): self.t = self.t.to(device=positive.device) positive, negative = norm_min_max_distributuions(positive, negative) pos_hist = self.compute_histogram(positive) neg_hist = self.compute_histogram(negative) neg_inv_cum = neg_hist.flip(0).cumsum(0).flip(0) inv_hist_loss = (pos_hist * neg_inv_cum).sum() std_loss = self.std_loss(positive, negative) loss = inv_hist_loss + std_loss return loss class BiHistogramLoss(BaseHistLoss): """ Biderctional Histogram Loss Args: bins (int, optional): .Default: `10` min_val (float, optional): Default: `-1` max_val (float, optional): Default: `1` alpha (float, optional): parameter for regularization. Default: `0` Shape: - positive: set of positive points, (N, *) - negative: set of negative points, (M, *) - loss: scalar Examples:: >>> criterion = BiHistogramLoss() >>> positive = torch.sigmoid(torch.randn(10, requires_grad=True)) >>> negative = torch.sigmoid(torch.randn(10, requires_grad=True)) >>> loss = criterion(positive, negative) >>> loss.backward() """ def forward(self, positive: Tensor, negative: Tensor): self.t = self.t.to(device=positive.device) positive, negative = norm_min_max_distributuions(positive, negative) pos_hist = self.compute_histogram(positive) # h_pos pos_cum = torch.cumsum(pos_hist, 0) neg_hist = self.compute_histogram(negative) # h_neg neg_inv_cum = neg_hist.flip(0).cumsum(0).flip(0) hist_loss = (neg_hist * pos_cum).sum() inv_hist_loss = (pos_hist * neg_inv_cum).sum() std_loss = self.std_loss(positive, negative) loss = hist_loss + inv_hist_loss + std_loss return loss
34.593496
83
0.628672
501
4,255
5.171657
0.189621
0.074103
0.037051
0.053261
0.837129
0.837129
0.82362
0.775376
0.723659
0.723659
0
0.014191
0.254759
4,255
122
84
34.877049
0.802901
0.483666
0
0.74359
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.102564
0
0.333333
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
a93a852e709aac3c1d4479c977b97ef92586ef75
1,442
py
Python
1-10/8_largest_product_in_a_series.py
sebranly/project-euler
9e944126d936db92962ab66e9968bab57aa1af88
[ "MIT" ]
null
null
null
1-10/8_largest_product_in_a_series.py
sebranly/project-euler
9e944126d936db92962ab66e9968bab57aa1af88
[ "MIT" ]
null
null
null
1-10/8_largest_product_in_a_series.py
sebranly/project-euler
9e944126d936db92962ab66e9968bab57aa1af88
[ "MIT" ]
null
null
null
string = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450" number = 13 length = len(string) i = 0 max_product = 0 while (i + number - 1 < length): if (string[i + number - 1] == '0'): i += number elif (string[i] == '0'): i += 1 else: j = 0 product = 1 while (j < number): product *= int(string[i + j]) j += 1 if (product > max_product): max_product = product i += 1 print(max_product)
65.545455
1,011
0.833564
58
1,442
20.655172
0.310345
0.023372
0.013356
0
0
0
0
0
0
0
0
0.800158
0.122053
1,442
21
1,012
68.666667
0.14613
0
0
0.1
0
0
0.69535
0.693963
0
1
0
0
0
1
0
false
0
0
0
0
0.05
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
7
a993a938d335a29b1db371e929b2a6f0be4bca0b
16,657
py
Python
metaci/testresults/migrations/0001_initial.py
sebastianocostanzo/MetaCI
a880a8b1caa7cf1445f220b6c2e4f83fe8d38312
[ "BSD-3-Clause" ]
null
null
null
metaci/testresults/migrations/0001_initial.py
sebastianocostanzo/MetaCI
a880a8b1caa7cf1445f220b6c2e4f83fe8d38312
[ "BSD-3-Clause" ]
null
null
null
metaci/testresults/migrations/0001_initial.py
sebastianocostanzo/MetaCI
a880a8b1caa7cf1445f220b6c2e4f83fe8d38312
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-01-10 16:38 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('repository', '0001_initial'), ('build', '0001_initial'), ] operations = [ migrations.CreateModel( name='TestClass', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=255)), ('repo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='testclasses', to='repository.Repository')), ], options={ 'verbose_name': 'Test Class', 'verbose_name_plural': 'Test Classes', }, ), migrations.CreateModel( name='TestCodeUnit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('unit', models.TextField(db_index=True)), ('unit_type', models.CharField(db_index=True, max_length=255)), ('duration', models.FloatField(blank=True, db_index=True, null=True)), ('event', models.CharField(blank=True, db_index=True, max_length=255, null=True)), ('sobject', models.CharField(blank=True, db_index=True, max_length=255, null=True)), ('email_invocations_used', models.IntegerField(blank=True, db_index=True, null=True)), ('email_invocations_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('soql_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('soql_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('future_calls_used', models.IntegerField(blank=True, db_index=True, null=True)), ('future_calls_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('cpu_time_used', models.IntegerField(blank=True, db_index=True, null=True)), ('cpu_time_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('query_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('query_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_statements_used', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_statements_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('mobile_apex_push_used', models.IntegerField(blank=True, db_index=True, null=True)), ('mobile_apex_push_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('heap_size_used', models.IntegerField(blank=True, db_index=True, null=True)), ('heap_size_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('sosl_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('sosl_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('queueable_jobs_used', models.IntegerField(blank=True, db_index=True, null=True)), ('queueable_jobs_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('callouts_used', models.IntegerField(blank=True, db_index=True, null=True)), ('callouts_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_email_invocations_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_email_invocations_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_soql_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_soql_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_future_calls_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_future_calls_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_cpu_time_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_cpu_time_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_query_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_query_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_statements_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_statements_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_mobile_apex_push_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_mobile_apex_push_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_heap_size_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_heap_size_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_sosl_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_sosl_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_queueable_jobs_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_queueable_jobs_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_callouts_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_callouts_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='testresults.TestCodeUnit')), ], options={ 'verbose_name': 'Test Code Unit', 'verbose_name_plural': 'Test Code Units', }, ), migrations.CreateModel( name='TestMethod', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=255)), ('testclass', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='methods', to='testresults.TestClass')), ], options={ 'verbose_name': 'Test Method', }, ), migrations.CreateModel( name='TestResult', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('duration', models.FloatField(blank=True, db_index=True, null=True)), ('outcome', models.CharField(choices=[(b'Pass', b'Pass'), (b'CompileFail', b'CompileFail'), (b'Fail', b'Fail'), (b'Skip', b'Skip')], db_index=True, max_length=16)), ('stacktrace', models.TextField(blank=True, null=True)), ('message', models.TextField(blank=True, null=True)), ('email_invocations_used', models.IntegerField(blank=True, db_index=True, null=True)), ('email_invocations_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('email_invocations_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('soql_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('soql_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('soql_queries_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('future_calls_used', models.IntegerField(blank=True, db_index=True, null=True)), ('future_calls_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('future_calls_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_rows_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('cpu_time_used', models.IntegerField(blank=True, db_index=True, null=True)), ('cpu_time_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('cpu_time_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('query_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('query_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('query_rows_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_statements_used', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_statements_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('dml_statements_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('mobile_apex_push_used', models.IntegerField(blank=True, db_index=True, null=True)), ('mobile_apex_push_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('mobile_apex_push_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('heap_size_used', models.IntegerField(blank=True, db_index=True, null=True)), ('heap_size_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('heap_size_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('sosl_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('sosl_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('sosl_queries_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('queueable_jobs_used', models.IntegerField(blank=True, db_index=True, null=True)), ('queueable_jobs_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('queueable_jobs_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('callouts_used', models.IntegerField(blank=True, db_index=True, null=True)), ('callouts_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('callouts_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_email_invocations_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_email_invocations_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_email_invocations_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_soql_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_soql_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_soql_queries_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_future_calls_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_future_calls_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_future_calls_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_rows_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_cpu_time_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_cpu_time_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_cpu_time_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_query_rows_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_query_rows_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_query_rows_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_statements_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_statements_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_dml_statements_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_mobile_apex_push_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_mobile_apex_push_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_mobile_apex_push_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_heap_size_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_heap_size_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_heap_size_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_sosl_queries_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_sosl_queries_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_sosl_queries_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_queueable_jobs_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_queueable_jobs_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_queueable_jobs_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('test_callouts_used', models.IntegerField(blank=True, db_index=True, null=True)), ('test_callouts_allowed', models.IntegerField(blank=True, db_index=True, null=True)), ('test_callouts_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('worst_limit', models.CharField(blank=True, db_index=True, max_length=255, null=True)), ('worst_limit_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('worst_limit_nontest', models.CharField(blank=True, db_index=True, max_length=255, null=True)), ('worst_limit_nontest_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('worst_limit_test', models.CharField(blank=True, db_index=True, max_length=255, null=True)), ('worst_limit_test_percent', models.IntegerField(blank=True, db_index=True, null=True)), ('build_flow', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='test_results', to='build.BuildFlow')), ('method', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='test_results', to='testresults.TestMethod')), ], options={ 'verbose_name': 'Test Result', 'verbose_name_plural': 'Test Results', }, ), migrations.AddField( model_name='testcodeunit', name='testresult', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='codeunits', to='testresults.TestResult'), ), ]
80.859223
180
0.648076
1,970
16,657
5.224365
0.062944
0.091819
0.144287
0.202099
0.900894
0.896813
0.891372
0.891372
0.88768
0.883016
0
0.003888
0.212523
16,657
205
181
81.253659
0.780743
0.004082
0
0.634518
1
0
0.197637
0.10539
0
0
0
0
0
1
0
false
0.005076
0.015228
0
0.035533
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8d11b0fc3a76bb47fb05443ff8d8e332e1260164
1,668
py
Python
pythonUtils/CollectionMeasures/corrs_measures.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
1
2015-07-21T05:15:11.000Z
2015-07-21T05:15:11.000Z
pythonUtils/CollectionMeasures/corrs_measures.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
null
null
null
pythonUtils/CollectionMeasures/corrs_measures.py
tgquintela/pythonUtils
6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe
[ "MIT" ]
null
null
null
""" correlation measures -------------------- Collection of measures from correlation information. """ import numpy as np def measure_corrs_mean(corrs, params=None): """Measure based on computing the mean of the non-auto correlation values. Parameters ---------- corrs: np.ndarray the correlation matrix. params: optional (default=None) the parameters needed to compute the output measure. Returns ------- measure: float the computed measure from corrs. """ corrs = corrs/corrs[0, 0] corrs = corrs - np.eye(corrs.shape[0]) return corrs.mean() def measure_corrs_std(corrs, params=None): """Measure based on computing the std of the non-auto correlation values. Parameters ---------- corrs: np.ndarray the correlation matrix. params: optional (default=None) the parameters needed to compute the output measure. Returns ------- measure: float the computed measure from corrs. """ corrs = corrs/corrs[0, 0] corrs = corrs - np.eye(corrs.shape[0]) return corrs.std() def measure_corrs_sumstd(corrs, params=None): """Measure based on computing the std of the sum of all the non-auto correlation values per each element. Parameters ---------- corrs: np.ndarray the correlation matrix. params: optional (default=None) the parameters needed to compute the output measure. Returns ------- measure: float the computed measure from corrs. """ corrs = corrs/corrs[0, 0] corrs = corrs - np.eye(corrs.shape[0]) return np.sum(corrs, axis=1).std()
22.540541
78
0.628297
206
1,668
5.058252
0.23301
0.115163
0.086372
0.06334
0.818618
0.792706
0.792706
0.792706
0.753359
0.753359
0
0.008013
0.251799
1,668
73
79
22.849315
0.826923
0.61211
0
0.461538
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.538462
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
8
8d450c33b1d43d1f4a63ad34fec64c18a165e68e
2,666
py
Python
kivy/tests/test_uix_boxlayout.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
13,889
2015-01-01T06:43:41.000Z
2022-03-31T17:37:56.000Z
kivy/tests/test_uix_boxlayout.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
4,570
2015-01-01T17:58:52.000Z
2022-03-31T18:42:16.000Z
kivy/tests/test_uix_boxlayout.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
3,786
2015-01-01T09:20:45.000Z
2022-03-30T21:15:05.000Z
''' Box layout unit test ==================== Order matter. On the screen, most of example must have the red->blue->green order. ''' from kivy.tests.common import GraphicUnitTest class UIXBoxLayoutTestcase(GraphicUnitTest): def box(self, r, g, b): from kivy.uix.widget import Widget from kivy.graphics import Color, Rectangle wid = Widget() with wid.canvas: Color(r, g, b) r = Rectangle(pos=wid.pos, size=wid.size) def linksp(instance, *largs): r.pos = instance.pos r.size = instance.size wid.bind(pos=linksp, size=linksp) return wid def test_boxlayout_orientation(self): from kivy.uix.boxlayout import BoxLayout r = self.render b = self.box layout = BoxLayout() layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout) layout = BoxLayout(orientation='vertical') layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout) def test_boxlayout_spacing(self): from kivy.uix.boxlayout import BoxLayout r = self.render b = self.box layout = BoxLayout(spacing=20) layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout) layout = BoxLayout(spacing=20, orientation='vertical') layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout) def test_boxlayout_padding(self): from kivy.uix.boxlayout import BoxLayout r = self.render b = self.box layout = BoxLayout(padding=20) layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout) layout = BoxLayout(padding=20, orientation='vertical') layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout) def test_boxlayout_padding_spacing(self): from kivy.uix.boxlayout import BoxLayout r = self.render b = self.box layout = BoxLayout(spacing=20, padding=20) layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout) layout = BoxLayout(spacing=20, padding=20, orientation='vertical') layout.add_widget(b(1, 0, 0)) layout.add_widget(b(0, 1, 0)) layout.add_widget(b(0, 0, 1)) r(layout)
28.063158
74
0.575769
376
2,666
3.994681
0.146277
0.143808
0.23968
0.255659
0.724368
0.724368
0.724368
0.724368
0.724368
0.724368
0
0.04666
0.292573
2,666
94
75
28.361702
0.749735
0.046887
0
0.628571
0
0
0.012633
0
0
0
0
0
0
1
0.085714
false
0
0.1
0
0.214286
0
0
0
0
null
0
1
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
8d70a6151eb2c98dbb304e93c39f1d143b4624a7
167
py
Python
pyramda/isinstance_test.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
124
2015-07-30T21:34:25.000Z
2022-02-19T08:45:50.000Z
pyramda/isinstance_test.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
37
2015-08-31T23:02:20.000Z
2022-02-04T04:45:28.000Z
ramda/isinstance_test.py
slavaGanzin/pyramda
4fa7fe28d5eaa798b702d28bdd3948515cb88f48
[ "MIT" ]
20
2015-08-04T18:59:09.000Z
2021-12-13T08:08:59.000Z
from .isinstance import isinstance def isinstance_nocurry_test(): assert isinstance(str, "foo") def isinstance_curry_test(): assert isinstance(str)("foo")
16.7
34
0.742515
20
167
6
0.5
0.216667
0.333333
0.383333
0.433333
0
0
0
0
0
0
0
0.149701
167
9
35
18.555556
0.84507
0
0
0
0
0
0.035928
0
0
0
0
0
0.4
1
0.4
true
0
0.2
0
0.6
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
1
0
0
0
1
0
0
8
8d94e58ec5f9d2cff87708c98df0437a12100b4d
14,216
py
Python
tests/test_windows/test_ui_console_window.py
lionel42/pygame_gui
27b51f5b811b4569bc463566bc9f2d82ada119f6
[ "MIT" ]
null
null
null
tests/test_windows/test_ui_console_window.py
lionel42/pygame_gui
27b51f5b811b4569bc463566bc9f2d82ada119f6
[ "MIT" ]
null
null
null
tests/test_windows/test_ui_console_window.py
lionel42/pygame_gui
27b51f5b811b4569bc463566bc9f2d82ada119f6
[ "MIT" ]
null
null
null
import os import pygame import pytest from tests.shared_comparators import compare_surfaces from pygame_gui.ui_manager import UIManager from pygame_gui.windows.ui_console_window import UIConsoleWindow try: # mouse button constants not defined in pygame 1.9.3 pygame.BUTTON_LEFT pygame.BUTTON_MIDDLE pygame.BUTTON_RIGHT except AttributeError: pygame.BUTTON_LEFT = 1 pygame.BUTTON_MIDDLE = 2 pygame.BUTTON_RIGHT = 3 class TestUIConsoleWindow: def test_creation(self, _init_pygame, default_ui_manager, _display_surface_return_none): UIConsoleWindow( rect=pygame.rect.Rect((0, 0), (700, 500)), manager=default_ui_manager) def test_command_entry_finished(self, _init_pygame, default_ui_manager, _display_surface_return_none): console_window = UIConsoleWindow(rect=pygame.rect.Rect((0, 0), (700, 500)), manager=default_ui_manager) console_window.command_entry.set_text('<b>A line of text to log</b>') event_data = {'button': pygame.BUTTON_LEFT, 'pos': console_window.command_entry.rect.center} default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONDOWN, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONUP, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_RETURN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_RETURN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) logged_line = console_window.log_prefix + '&lt;b&gt;A line of text to log&lt;/b&gt;<br>' assert console_window.log.appended_text == logged_line assert console_window.command_entry.get_text() == '' console_window.set_logged_commands_escape_html(should_escape=False) console_window.command_entry.set_text('<b>A second line of text to log</b>') event_data = {'button': pygame.BUTTON_LEFT, 'pos': console_window.command_entry.rect.center} default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONDOWN, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONUP, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_RETURN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_RETURN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) logged_lines = (console_window.log_prefix + '&lt;b&gt;A line of text to log&lt;/b&gt;<br>' + console_window.log_prefix + '<b>A second line of text to log</b><br>') assert console_window.log.appended_text == logged_lines assert console_window.command_entry.get_text() == '' def test_log_prefix(self, _init_pygame, default_ui_manager, _display_surface_return_none): console_window = UIConsoleWindow(rect=pygame.rect.Rect((0, 0), (700, 500)), manager=default_ui_manager) console_window.set_log_prefix('++ ') console_window.command_entry.set_text('A line of text to log') event_data = {'button': pygame.BUTTON_LEFT, 'pos': console_window.command_entry.rect.center} default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONDOWN, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONUP, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_RETURN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_RETURN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) logged_line = '++ A line of text to log<br>' assert console_window.log.appended_text == logged_line console_window.set_log_prefix('-- ') console_window.command_entry.set_text('A second line of text to log') event_data = {'button': pygame.BUTTON_LEFT, 'pos': console_window.command_entry.rect.center} default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONDOWN, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONUP, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_RETURN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_RETURN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) logged_lines = '++ A line of text to log<br>-- A second line of text to log<br>' assert console_window.log.appended_text == logged_lines console_window.restore_default_prefix() console_window.command_entry.set_text('A third line of text to log') event_data = {'button': pygame.BUTTON_LEFT, 'pos': console_window.command_entry.rect.center} default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONDOWN, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONUP, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_RETURN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_RETURN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) logged_lines = ('++ A line of text to log<br>' '-- A second line of text to log<br>' '> A third line of text to log<br>') assert console_window.log.appended_text == logged_lines def test_add_output_line_to_log(self, _init_pygame, default_ui_manager, _display_surface_return_none): console_window = UIConsoleWindow(rect=pygame.rect.Rect((0, 0), (700, 500)), manager=default_ui_manager) console_window.add_output_line_to_log('line to add') assert console_window.log.appended_text == '<b>line to add</b><br>' console_window.add_output_line_to_log('second line to add, no line break', is_bold=False, remove_line_break=True) assert console_window.log.appended_text == ('<b>line to add</b><br>' 'second line to add, no line break') console_window.add_output_line_to_log('third <i>line</i> to add, escape html', escape_html=True) assert console_window.log.appended_text == ('<b>line to add</b><br>' 'second line to add, no line break' '<b>third &lt;i&gt;line&lt;/i&gt; to add,' ' escape html</b><br>') def test_scroll_log_with_arrow_keys(self, _init_pygame, default_ui_manager, _display_surface_return_none): console_window = UIConsoleWindow(rect=pygame.rect.Rect((0, 0), (700, 500)), manager=default_ui_manager) console_window.command_entry.set_text('A first command') event_data = {'button': pygame.BUTTON_LEFT, 'pos': console_window.command_entry.rect.center} default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONDOWN, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONUP, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_RETURN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_RETURN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) console_window.command_entry.set_text('A second command') event_data = {'button': pygame.BUTTON_LEFT, 'pos': console_window.command_entry.rect.center} default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONDOWN, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.MOUSEBUTTONUP, event_data)) default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_RETURN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_RETURN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) assert console_window.command_entry.get_text() == "" default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_UP})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_UP})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) assert console_window.command_entry.get_text() == 'A second command' default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_UP})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_UP})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) assert console_window.command_entry.get_text() == 'A first command' default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_DOWN})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_DOWN})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) assert console_window.command_entry.get_text() == 'A second command' default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_UP})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_UP})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) assert console_window.command_entry.get_text() == 'A first command' default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_BACKSPACE})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_BACKSPACE})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) assert console_window.command_entry.get_text() == 'A first comman' default_ui_manager.process_events(pygame.event.Event(pygame.KEYDOWN, {'key': pygame.K_UP})) default_ui_manager.process_events(pygame.event.Event(pygame.KEYUP, {'key': pygame.K_UP})) for event in pygame.event.get(): default_ui_manager.process_events(event) for event in pygame.event.get(): default_ui_manager.process_events(event) assert console_window.command_entry.get_text() == 'A second command' if __name__ == '__main__': pytest.console_main()
47.072848
100
0.591235
1,603
14,216
4.948846
0.069869
0.087357
0.153284
0.191353
0.906971
0.904702
0.904702
0.880121
0.865246
0.849237
0
0.004735
0.316615
14,216
301
101
47.229236
0.811837
0.003517
0
0.740741
0
0.013889
0.070889
0.001624
0
0
0
0
0.078704
1
0.023148
false
0
0.027778
0
0.055556
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8d9e89125b8036c9b69744df0274b33a490ab0de
129
py
Python
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/leopard/calculators/calc_radio.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/leopard/calculators/calc_radio.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/leopard/calculators/calc_radio.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
from pyradioconfig.parts.lynx.calculators.calc_radio import CALC_Radio_lynx class calc_radio_leopard(CALC_Radio_lynx): pass
25.8
75
0.852713
19
129
5.421053
0.578947
0.349515
0.252427
0
0
0
0
0
0
0
0
0
0.093023
129
5
76
25.8
0.880342
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
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
8
a5de7419a4885f300a918f7f8b53140bcabf0c3d
147
py
Python
tods/sk_interface/__init__.py
ZhuangweiKang/tods
fe3f55f8ccb306dd292c668e0f1154f1afdfa556
[ "Apache-2.0" ]
544
2020-09-21T06:02:33.000Z
2022-03-27T07:16:32.000Z
tods/sk_interface/__init__.py
ZhuangweiKang/tods
fe3f55f8ccb306dd292c668e0f1154f1afdfa556
[ "Apache-2.0" ]
35
2020-09-21T06:33:13.000Z
2022-03-11T14:20:21.000Z
tods/sk_interface/__init__.py
ZhuangweiKang/tods
fe3f55f8ccb306dd292c668e0f1154f1afdfa556
[ "Apache-2.0" ]
86
2020-09-21T16:44:33.000Z
2022-03-11T18:20:22.000Z
from tods.sk_interface.data_ensemble import * from tods.sk_interface.feature_analysis import * from tods.sk_interface.detection_algorithm import *
36.75
51
0.857143
21
147
5.714286
0.52381
0.2
0.25
0.475
0.416667
0
0
0
0
0
0
0
0.081633
147
3
52
49
0.888889
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
570c076e19b4e5f18417216326799e7d149dbdb8
1,583
py
Python
encommon/tests/test_stdout.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
encommon/tests/test_stdout.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
encommon/tests/test_stdout.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
#==============================================================================# # Enasis Network Common Libraries # # Python Functions Logging and Standard Output # #==============================================================================# # Primary Functions for Logging and Standard Output # # : - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - # # : Logging and Standard Output messages # #==============================================================================# #------------------------------------------------------------------------------# # Primary Functions for Logging and Standard Output # #------------------------------------------------------------------------------# # #~~ Logging and Standard Output ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Handle the standard messages generated by various procedures in the software #----------------------------------------------------------------------------- def test_messages(capsys): # # Import the module and functions relevant to this particular set of tests from encommon.stdout import messages # # Assert the relevant conditions indicating either test success or failure assert messages({"msg": "Testing 123"}, "err") #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # #------------------------------------------------------------------------------#
56.535714
80
0.305117
81
1,583
5.950617
0.580247
0.103734
0.186722
0.248963
0.278008
0.278008
0.278008
0.278008
0.278008
0.278008
0
0.002414
0.214782
1,583
27
81
58.62963
0.385358
0.87808
0
0
0
0
0.106918
0
0
0
0
0
0.333333
1
0.333333
false
0
0.333333
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
7
57382df410cede55ae8ce42c16fb36f59b052e85
6,092
py
Python
src/synthingie/filters.py
luciotorre/synthingie
77872b6c63d26002fcb705b48bedc6bcd1c3828e
[ "BSD-3-Clause" ]
6
2020-05-23T18:40:35.000Z
2021-02-16T21:01:08.000Z
src/synthingie/filters.py
luciotorre/synthingie
77872b6c63d26002fcb705b48bedc6bcd1c3828e
[ "BSD-3-Clause" ]
null
null
null
src/synthingie/filters.py
luciotorre/synthingie
77872b6c63d26002fcb705b48bedc6bcd1c3828e
[ "BSD-3-Clause" ]
2
2020-05-11T13:41:33.000Z
2020-06-27T16:35:47.000Z
from numba.core.decorators import njit import numpy as np import numba as nb from .core import Signal, signal from .oscillators import Sin # NOQA @njit([ nb.types.Tuple((nb.float32, nb.float32))( nb.int64, nb.float32, nb.float32, nb.float32[:], nb.float32[:], nb.float32[:] ) ]) def first_order_low_pass(samplerate, xz1, yz1, signal, frequency, output): for n in range(output.shape[0]): theta = 2 * np.pi * frequency[n] / samplerate gamma = np.cos(theta) / (1 + np.sin(theta)) a0 = (1 - gamma) / 2 a1 = a0 b1 = -gamma output[n] = a0 * signal[n] + a1 * xz1 - b1 * yz1 xz1 = signal[n] yz1 = output[n] return xz1, yz1 @signal('lop1') class FirstOrderLowPass(Signal): """ >>> audio = Sin(1000).render(1) >>> expected_sin_rms = pytest.approx(1 / np.sqrt(2)) >>> sin_rms = audio.rms() >>> assert sin_rms == expected_sin_rms >>> audio = Sin(2048).lop1(1024).render(1) >>> assert audio.rms() < sin_rms / 2 >>> audio = Sin(1024).lop1(2048).render(1) >>> assert sin_rms == expected_sin_rms """ signal: Signal frequency: Signal def setup(self): self.xz1 = 0 self.yz1 = 0 def __call__(self): self.xz1, self.yz1 = first_order_low_pass( self.samplerate, self.xz1, self.yz1, self.signal.output, self.frequency.output, self.output) @njit([ nb.types.Tuple((nb.float32, nb.float32))( nb.int64, nb.float32, nb.float32, nb.float32[:], nb.float32[:], nb.float32[:] ) ]) def first_order_hi_pass(samplerate, xz1, yz1, signal, frequency, output): for n in range(output.shape[0]): theta = 2 * np.pi * frequency[n] / samplerate gamma = np.cos(theta) / (1 + np.sin(theta)) a0 = (1 + gamma) / 2 a1 = -a0 b1 = -gamma output[n] = a0 * signal[n] + a1 * xz1 - b1 * yz1 xz1 = signal[n] yz1 = output[n] return xz1, yz1 @signal('hip1') class FirstOrderhiPass(Signal): """ >>> audio = Sin(1000).render(1) >>> expected_sin_rms = pytest.approx(1 / np.sqrt(2)) >>> sin_rms = audio.rms() >>> assert sin_rms == expected_sin_rms >>> audio = Sin(2048).hip1(1024).render(1) >>> assert sin_rms == expected_sin_rms >>> audio = Sin(1024).hip1(2048).render(1) >>> assert audio.rms() < sin_rms / 2 """ signal: Signal frequency: Signal def setup(self): self.xz1 = 0 self.yz1 = 0 def __call__(self): self.xz1, self.yz1 = first_order_hi_pass( self.samplerate, self.xz1, self.yz1, self.signal.output, self.frequency.output, self.output) @njit([ nb.types.Tuple((nb.float32, nb.float32, nb.float32, nb.float32))( nb.int64, nb.float32, nb.float32, nb.float32, nb.float32, nb.float32[:], nb.float32[:], nb.float32[:], nb.float32[:] ) ]) def second_order_low_pass(samplerate, xz1, yz1, xz2, yz2, signal, cutoff, Q, output): for n in range(output.shape[0]): theta = 2 * np.pi * cutoff[n] / samplerate d = 1 / Q[n] beta_p = (d / 2) * np.sin(theta) beta = 0.5 * (1 - beta_p) / (1 + beta_p) gamma = (0.5 + beta) * np.cos(theta) a0 = (0.5 + beta - gamma) / 2.0 a1 = 0.5 + beta - gamma a2 = a0 b1 = -2 * gamma b2 = 2 * beta output[n] = a0 * signal[n] + a1 * xz1 - b1 * yz1 + a2 * xz2 - b2 * yz2 xz2 = xz1 xz1 = signal[n] yz2 = yz1 yz1 = output[n] return xz1, yz1, xz2, yz2 @signal('lop') class SecondOrderLowPass(Signal): """ >>> audio = Sin(1000).render(1) >>> expected_sin_rms = pytest.approx(1 / np.sqrt(2)) >>> sin_rms = audio.rms() >>> assert sin_rms == expected_sin_rms >>> audio = Sin(2048).lop(1024).render(1) >>> assert audio.rms() < sin_rms / 3 >>> audio = Sin(1024).lop(2048).render(1) >>> assert sin_rms == expected_sin_rms """ signal: Signal cutoff: Signal Q: Signal = 0.707 def setup(self): self.xz1 = 0 self.yz1 = 0 self.xz2 = 0 self.yz2 = 0 def __call__(self): self.xz1, self.yz1, self.xz2, self.yz2 = second_order_low_pass( self.samplerate, self.xz1, self.yz1, self.xz2, self.yz2, self.signal.output, self.cutoff.output, self.Q.output, self.output) @njit([ nb.types.Tuple((nb.float32, nb.float32, nb.float32, nb.float32))( nb.int64, nb.float32, nb.float32, nb.float32, nb.float32, nb.float32[:], nb.float32[:], nb.float32[:], nb.float32[:] ) ]) def second_order_hi_pass(samplerate, xz1, yz1, xz2, yz2, signal, cutoff, Q, output): for n in range(output.shape[0]): theta = 2 * np.pi * cutoff[n] / samplerate d = 1 / Q[n] beta_p = (d / 2) * np.sin(theta) beta = 0.5 * (1 - beta_p) / (1 + beta_p) gamma = (0.5 + beta) * np.cos(theta) a0 = (0.5 + beta + gamma) / 2.0 a1 = -0.5 - beta - gamma a2 = a0 b1 = -2 * gamma b2 = 2 * beta output[n] = a0 * signal[n] + a1 * xz1 - b1 * yz1 + a2 * xz2 - b2 * yz2 xz2 = xz1 xz1 = signal[n] yz2 = yz1 yz1 = output[n] return xz1, yz1, xz2, yz2 @signal('hip') class SecondOrderHiPass(Signal): """ >>> audio = Sin(1000).render(1) >>> expected_sin_rms = pytest.approx(1 / np.sqrt(2)) >>> sin_rms = audio.rms() >>> assert sin_rms == expected_sin_rms >>> audio = Sin(2048).hip(1024).render(1) >>> assert sin_rms == expected_sin_rms >>> audio = Sin(1024).hip(2048).render(1) >>> assert audio.rms() < sin_rms / 3 """ signal: Signal cutoff: Signal Q: Signal = 0.707 def setup(self): self.xz1 = 0 self.yz1 = 0 self.xz2 = 0 self.yz2 = 0 def __call__(self): self.xz1, self.yz1, self.xz2, self.yz2 = second_order_hi_pass( self.samplerate, self.xz1, self.yz1, self.xz2, self.yz2, self.signal.output, self.cutoff.output, self.Q.output, self.output)
28.600939
88
0.557288
862
6,092
3.838747
0.093968
0.103354
0.113025
0.163191
0.918102
0.918102
0.91508
0.91508
0.876398
0.876398
0
0.087771
0.281845
6,092
212
89
28.735849
0.668571
0.205023
0
0.755556
0
0
0.002998
0
0
0
0
0
0
1
0.088889
false
0.088889
0.037037
0
0.259259
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
9
93b14319da4f52a35ee25d2622b95b2f80ad4e82
234
py
Python
src/harness/cu_pass/dpa_calculator/aggregate_interference_calculator/configuration/configuration.py
NSF-Swift/Spectrum-Access-System
02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf
[ "Apache-2.0" ]
null
null
null
src/harness/cu_pass/dpa_calculator/aggregate_interference_calculator/configuration/configuration.py
NSF-Swift/Spectrum-Access-System
02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf
[ "Apache-2.0" ]
null
null
null
src/harness/cu_pass/dpa_calculator/aggregate_interference_calculator/configuration/configuration.py
NSF-Swift/Spectrum-Access-System
02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf
[ "Apache-2.0" ]
null
null
null
from cu_pass.dpa_calculator.aggregate_interference_calculator.configuration.support.eirps import DEFAULT_EIRPS, \ EIRP_DISTRIBUTION_MAP_TYPE class Configuration: eirp_distribution: EIRP_DISTRIBUTION_MAP_TYPE = DEFAULT_EIRPS
33.428571
113
0.863248
28
234
6.75
0.607143
0.253968
0.201058
0.243386
0
0
0
0
0
0
0
0
0.094017
234
6
114
39
0.891509
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.25
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
1
1
0
0
1
0
0
8
93ba5fbc7daebaeada1201b42214e756d5b1f1a8
114
py
Python
umiread/__init__.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
umiread/__init__.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
umiread/__init__.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
from umiread.umi_extract import extract_from_single, extract_from_folder from umiread.umi_stats import UMIStats
38
73
0.877193
17
114
5.529412
0.529412
0.234043
0.297872
0
0
0
0
0
0
0
0
0
0.096491
114
2
74
57
0.912621
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
f51dd6bc54f1302bae82d01cf8cb0f6d7aead95c
9,645
py
Python
tests/test_allele.py
iqbal-lab-org/pangenome_variations
0aa8f5233bb2130b1876a5197f3ffbe7c3830601
[ "MIT" ]
null
null
null
tests/test_allele.py
iqbal-lab-org/pangenome_variations
0aa8f5233bb2130b1876a5197f3ffbe7c3830601
[ "MIT" ]
9
2021-03-30T12:28:36.000Z
2022-01-13T03:28:10.000Z
tests/test_allele.py
iqbal-lab-org/pangenome_variations
0aa8f5233bb2130b1876a5197f3ffbe7c3830601
[ "MIT" ]
1
2020-11-04T15:13:30.000Z
2020-11-04T15:13:30.000Z
from unittest import TestCase import pandas as pd from io import StringIO from src.Allele import NotASNP, Allele class TestAllele(TestCase): def test_constructor_isSNP_constructorOK(self): Allele("genome_1", "chrom_1", 10, "A") self.assertTrue(True) def test_constructor_isNotASNP_constructorRaisesNotASNP(self): with self.assertRaises(NotASNP): Allele("genome_1", "chrom_1", 10, "AC") def test_constructor_isDeletion_constructorRaisesNotASNP(self): with self.assertRaises(NotASNP): Allele("genome_1", "chrom_1", 10, "") def test_hash_equalAlleles_returnsEqualHashValues(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 10, "A") self.assertEqual(hash(allele_1), hash(allele_2)) def test_hash_differentGenomes_returnsDifferentHashValues(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_2", "chrom_1", 10, "A") assert hash(allele_1) != hash(allele_2) def test_hash_differentChroms_returnsDifferentHashValues(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_2", 10, "A") assert hash(allele_1) != hash(allele_2) def test_hash_differentPos_returnsDifferentHashValues(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 11, "A") assert hash(allele_1) != hash(allele_2) def test_hash_differentSeqs_returnsDifferentHashValues(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 10, "C") assert hash(allele_1) != hash(allele_2) def test___relational_operators___equalAlleles(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 10, "A") assert (allele_1 == allele_2) == True assert (allele_1 != allele_2) == False assert (allele_1 < allele_2) == False assert (allele_1 <= allele_2) == True assert (allele_1 > allele_2) == False assert (allele_1 >= allele_2) == True def test___relational_operators___differentGenomes___first_is_smaller(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_2", "chrom_1", 10, "A") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == True assert (allele_1 <= allele_2) == True assert (allele_1 > allele_2) == False assert (allele_1 >= allele_2) == False def test___relational_operators___differentGenomes___first_is_larger(self): allele_1 = Allele("genome_2", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 10, "A") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == False assert (allele_1 <= allele_2) == False assert (allele_1 > allele_2) == True assert (allele_1 >= allele_2) == True def test___relational_operators___differentChroms___first_is_smaller(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_2", 10, "A") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == True assert (allele_1 <= allele_2) == True assert (allele_1 > allele_2) == False assert (allele_1 >= allele_2) == False def test___relational_operators___differentChroms___first_is_larger(self): allele_1 = Allele("genome_1", "chrom_2", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 10, "A") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == False assert (allele_1 <= allele_2) == False assert (allele_1 > allele_2) == True assert (allele_1 >= allele_2) == True def test___relational_operators___differentPos___first_is_smaller(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 11, "A") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == True assert (allele_1 <= allele_2) == True assert (allele_1 > allele_2) == False assert (allele_1 >= allele_2) == False def test___relational_operators___differentPos___first_is_larger(self): allele_1 = Allele("genome_1", "chrom_1", 11, "A") allele_2 = Allele("genome_1", "chrom_1", 10, "A") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == False assert (allele_1 <= allele_2) == False assert (allele_1 > allele_2) == True assert (allele_1 >= allele_2) == True def test___relational_operators___differentSeqs___first_is_smaller(self): allele_1 = Allele("genome_1", "chrom_1", 10, "A") allele_2 = Allele("genome_1", "chrom_1", 10, "C") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == True assert (allele_1 <= allele_2) == True assert (allele_1 > allele_2) == False assert (allele_1 >= allele_2) == False def test___relational_operators___differentSeqs___first_is_larger(self): allele_1 = Allele("genome_1", "chrom_1", 10, "C") allele_2 = Allele("genome_1", "chrom_1", 10, "A") assert (allele_1 == allele_2) == False assert (allele_1 != allele_2) == True assert (allele_1 < allele_2) == False assert (allele_1 <= allele_2) == False assert (allele_1 > allele_2) == True assert (allele_1 >= allele_2) == True def test___get_alleles_from_VarifierDataframe___empty_df___no_alleles_returned(self): snps_df = pd.read_csv(StringIO( """ref_pos,ref_allele,query_allele,query_pos,nearest_mismatch,nearest_end,ref_len,query_len,ref_context,query_context,ref_strand,query_strand,ref_chrom,query_chrom """ )) actual_alleles = list(Allele.get_alleles_from_VarifierDataframe("genome_1", "genome_2", snps_df)) expected_alleles = [] self.assertListEqual(actual_alleles, expected_alleles) def test___get_alleles_from_VarifierDataframe___one_SNP_in_df___two_alleles_returned(self): snps_df = pd.read_csv(StringIO( """ref_pos,ref_allele,query_allele,query_pos,nearest_mismatch,nearest_end,ref_len,query_len,ref_context,query_context,ref_strand,query_strand,ref_chrom,query_chrom 1,A,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 """ )) actual_alleles = list(Allele.get_alleles_from_VarifierDataframe("genome_1", "genome_2", snps_df)) expected_alleles = [(Allele("genome_1", "chrom_1", 1, "A"), Allele("genome_2", "chrom_2", 2, "C"))] self.assertListEqual(actual_alleles, expected_alleles) def test___get_alleles_from_VarifierDataframe___one_SNP_variation_four_non_SNP_variation_in_df___two_alleles_returned(self): snps_df = pd.read_csv(StringIO( """ref_pos,ref_allele,query_allele,query_pos,nearest_mismatch,nearest_end,ref_len,query_len,ref_context,query_context,ref_strand,query_strand,ref_chrom,query_chrom 1,,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,A,CC,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,A,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,AA,CC,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,AA,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 """ ), na_filter=False) actual_alleles = list(Allele.get_alleles_from_VarifierDataframe("genome_1", "genome_2", snps_df)) expected_alleles = [(Allele("genome_1", "chrom_1", 1, "A"), Allele("genome_2", "chrom_2", 2, "C"))] self.assertListEqual(actual_alleles, expected_alleles) def test___get_alleles_from_VarifierDataframe___four_SNP_variation_four_non_SNP_variation_in_df___only_SNPs_alleles_returned(self): snps_df = pd.read_csv(StringIO( """ref_pos,ref_allele,query_allele,query_pos,nearest_mismatch,nearest_end,ref_len,query_len,ref_context,query_context,ref_strand,query_strand,ref_chrom,query_chrom 10,G,T,20,0,0,0,0,ACGT,ACGT,1,1,chrom_10,chrom_20 1,,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,A,CC,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,A,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,AA,CC,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,AA,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 1,A,C,2,0,0,0,0,ACGT,ACGT,1,1,chrom_1,chrom_2 100,A,T,200,0,0,0,0,ACGT,ACGT,1,1,chrom_100,chrom_200 """ ), na_filter=False) actual_alleles = list(Allele.get_alleles_from_VarifierDataframe("genome_1", "genome_2", snps_df)) expected_alleles = [(Allele("genome_1", "chrom_10", 10, "G"), Allele("genome_2", "chrom_20", 20, "T")), (Allele("genome_1", "chrom_1", 1, "A"), Allele("genome_2", "chrom_2", 2, "C")), (Allele("genome_1", "chrom_1", 1, "A"), Allele("genome_2", "chrom_2", 2, "C")), (Allele("genome_1", "chrom_100", 100, "A"), Allele("genome_2", "chrom_200", 200, "T"))] self.assertListEqual(actual_alleles, expected_alleles)
51.57754
175
0.649559
1,391
9,645
4.094177
0.068296
0.089728
0.155224
0.180158
0.917998
0.914662
0.900966
0.880421
0.85777
0.83986
0
0.063177
0.215552
9,645
187
176
51.57754
0.689532
0
0
0.71831
0
0
0.09358
0
0
0
0
0
0.464789
1
0.147887
false
0
0.028169
0
0.183099
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
9
f55c0b0aa0813b29d7dd2f0406840f5b63785993
6,687
py
Python
emqxlwm2m/utils.py
Penlect/emqxlwm2m
9fcd13c1b794eb64b1e8244841a20827432665bf
[ "MIT" ]
2
2020-10-22T17:37:42.000Z
2021-08-04T08:34:36.000Z
emqxlwm2m/utils.py
Penlect/emqxlwm2m
9fcd13c1b794eb64b1e8244841a20827432665bf
[ "MIT" ]
null
null
null
emqxlwm2m/utils.py
Penlect/emqxlwm2m
9fcd13c1b794eb64b1e8244841a20827432665bf
[ "MIT" ]
null
null
null
"""High level functions and utilities""" # pylint: disable=maybe-no-member # Built-in import asyncio import time import queue import datetime as dt # Package import emqxlwm2m from emqxlwm2m.lwm2m import Endpoint, AsyncEndpoint from emqxlwm2m.oma import LwM2MServer, Device, FirmwareUpdate def trigger_update(ep: Endpoint, timeout=None, *, iid=0): q = ep.updates() resp = ep[LwM2MServer][iid].registration_update_trigger.execute( timeout=timeout ) resp.check() return q.get(timeout=timeout) def reboot(ep: Endpoint, block=True, timeout=None, *, iid=0): ep.log.info("Rebooting") t0 = dt.datetime.now() if block: q = ep.registrations() resp = ep[Device][iid].reboot.execute(timeout=timeout) resp.check() ep.log.info("Execute response: %r", resp.code) if block: ep.log.info("Waiting for registration") packet = q.get() t1 = packet.timestamp ep.log.info("Registration received. Reboot duration: %s", t1 - t0) class FirmwareUpdateError(Exception): pass class DownloadError(FirmwareUpdateError): pass class UpdateError(FirmwareUpdateError): pass def firmware_update( ep: Endpoint, package_uri: str, wait: bool = True, reg_timeout: float = None, *, iid=0, exec_ok=None, ) -> int: ep.log.info("Firmware update started.") # Enums used for checking state. state = FirmwareUpdate.state.Enum result = FirmwareUpdate.update_result.Enum # Firmware Update Object obj = ep[FirmwareUpdate][iid] # Download firmware. ep.log.info("Writing package uri: %r", package_uri) resp = obj.package_uri.write(package_uri) resp.check() t0 = dt.datetime.now() while True: time.sleep(15) resp = obj.state.read(timeout=15, retry=4) if resp.value == state.DOWNLOADING: ep.log.info("Downloading ...") elif resp.value == state.DOWNLOADED: t1 = dt.datetime.now() ep.log.info("Firmware downloaded after %s", t1 - t0) break elif resp.value == state.UPDATING: raise FirmwareUpdateError(f"Unexpected state: {resp.value}") elif resp.value == state.IDLE: resp = obj.update_result.read() raise DownloadError(resp.value) else: raise FirmwareUpdateError(f"Unexpected state: {resp.value}") # Update firmware ep.log.debug("Sleeping for 3 seconds") time.sleep(3) if callable(exec_ok) and not exec_ok(ep): ep.log.debug("Aborting because NOK exec_ok") return None if wait: reg_q = ep.registrations() t0 = dt.datetime.now() # When in Downloaded state, and the executable Resource Update is # triggered, the state changes to Updating. If the Update # Resource failed, the state returns at Downloaded. If performing # the Update Resource was successful, the state changes from # Updating to Idle. ep.log.info("Firmware update execute") try: resp = obj.update.execute() resp.check() except emqxlwm2m.NoResponseError: ep.log.warning("No response after execute") if not wait: return None ep.log.info("Waiting for registration") try: reg_q.get(timeout=reg_timeout) except queue.Empty: raise FirmwareUpdateError( "Timeout when waiting for registration" ) from None t1 = dt.datetime.now() ep.log.info("Registration received after %s", t1 - t0) ep.log.debug("Sleeping for 3 seconds") time.sleep(3) # Check status of firmware ep.log.debug("Reading update result") resp = obj.update_result.read(timeout=10, retry=1) if resp.value == result.UPDATE_SUCCESSFUL: ep.log.info("Firmware update result: %r", resp.value) return True raise UpdateError(resp.value) async def async_firmware_update( ep: AsyncEndpoint, package_uri: str, wait: bool = True, reg_timeout: float = None, *, iid=0, exec_ok=None, ) -> int: ep.log.info("Firmware update started.") # Enums used for checking state. state = FirmwareUpdate.state.Enum result = FirmwareUpdate.update_result.Enum # Firmware Update Object obj = ep[FirmwareUpdate][iid] # Download firmware. ep.log.info("Writing package uri: %r", package_uri) resp = await obj.package_uri.write(package_uri) resp.check() t0 = dt.datetime.now() while True: await asyncio.sleep(15) resp = await obj.state.read(timeout=15, retry=4) if resp.value == state.DOWNLOADING: ep.log.info("Downloading ...") elif resp.value == state.DOWNLOADED: t1 = dt.datetime.now() ep.log.info("Firmware downloaded after %s", t1 - t0) break elif resp.value == state.UPDATING: raise FirmwareUpdateError(f"Unexpected state: {resp.value}") elif resp.value == state.IDLE: resp = await obj.update_result.read() raise DownloadError(resp.value) else: raise FirmwareUpdateError(f"Unexpected state: {resp.value}") # Update firmware ep.log.debug("Sleeping for 3 seconds") await asyncio.sleep(3) if callable(exec_ok) and not await exec_ok(ep): ep.log.debug("Aborting because NOK exec_ok") return None if wait: reg_q = await ep.registrations() t0 = dt.datetime.now() # When in Downloaded state, and the executable Resource Update is # triggered, the state changes to Updating. If the Update # Resource failed, the state returns at Downloaded. If performing # the Update Resource was successful, the state changes from # Updating to Idle. ep.log.info("Firmware update execute") try: resp = await obj.update.execute() resp.check() except emqxlwm2m.NoResponseError: ep.log.warning("No response after execute") if not wait: return None ep.log.info("Waiting for registration") try: await reg_q.get(timeout=reg_timeout) except asyncio.QueueEmpty: raise FirmwareUpdateError( "Timeout when waiting for registration" ) from None t1 = dt.datetime.now() ep.log.info("Registration received after %s", t1 - t0) ep.log.debug("Sleeping for 3 seconds") await asyncio.sleep(3) # Check status of firmware ep.log.debug("Reading update result") resp = await obj.update_result.read(timeout=10, retry=1) if resp.value == result.UPDATE_SUCCESSFUL: ep.log.info("Firmware update result: %r", resp.value) return True raise UpdateError(resp.value)
29.45815
74
0.644534
845
6,687
5.055621
0.175148
0.035112
0.042135
0.031835
0.802903
0.782069
0.772472
0.758427
0.748127
0.748127
0
0.011164
0.249888
6,687
226
75
29.588496
0.84051
0.125318
0
0.709091
0
0
0.156502
0
0
0
0
0
0
1
0.018182
false
0.018182
0.042424
0
0.121212
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
5ff373db4131a5b35e86ce3d9a442d515c8172a9
168
py
Python
Lib/Scripts/font/glyphs/batch rename.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
11
2015-01-06T15:43:56.000Z
2019-07-27T00:35:20.000Z
Lib/Scripts/font/glyphs/batch rename.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
2
2017-05-17T10:11:46.000Z
2018-11-21T21:43:43.000Z
Lib/Scripts/font/glyphs/batch rename.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
4
2015-01-10T13:58:50.000Z
2019-12-18T15:40:14.000Z
# [h] batch rename glyphs import hTools2.dialogs.font.glyphs_rename reload(hTools2.dialogs.font.glyphs_rename) hTools2.dialogs.font.glyphs_rename.batchRenameGlyphs()
24
54
0.833333
22
168
6.227273
0.454545
0.306569
0.394161
0.525547
0.656934
0
0
0
0
0
0
0.019108
0.065476
168
6
55
28
0.853503
0.136905
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
5ffa9dac0dda7e619637e68ba61e90f5c165aca3
165
py
Python
summer/templatetags/summer.py
NicolasLM/summertime.today
7a302fd7f6e070e0d891812798a443fce6002873
[ "MIT" ]
null
null
null
summer/templatetags/summer.py
NicolasLM/summertime.today
7a302fd7f6e070e0d891812798a443fce6002873
[ "MIT" ]
null
null
null
summer/templatetags/summer.py
NicolasLM/summertime.today
7a302fd7f6e070e0d891812798a443fce6002873
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.simple_tag def user_has_usable_password(user) -> bool: return user.has_usable_password()
16.5
43
0.781818
22
165
5.590909
0.681818
0.113821
0.211382
0.341463
0
0
0
0
0
0
0
0
0.133333
165
9
44
18.333333
0.86014
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.4
0.2
0.2
0.6
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
0
1
0
1
1
0
0
7
2715bdbdbdb7ecda2eaacb294efa9723a7289097
1,209
py
Python
src/astro/ml/__init__.py
jlaneve/astro
4528162c7582f3860d1d21de7af954f20c9f9a6a
[ "Apache-2.0" ]
null
null
null
src/astro/ml/__init__.py
jlaneve/astro
4528162c7582f3860d1d21de7af954f20c9f9a6a
[ "Apache-2.0" ]
null
null
null
src/astro/ml/__init__.py
jlaneve/astro
4528162c7582f3860d1d21de7af954f20c9f9a6a
[ "Apache-2.0" ]
null
null
null
from typing import Callable, Optional from astro.dataframe import dataframe def train( python_callable: Optional[Callable] = None, multiple_outputs: Optional[bool] = None, conn_id: str = "", database: Optional[str] = None, schema: Optional[str] = None, warehouse: Optional[str] = None, ): """ For now this will have the same functionality as dataframe, but eventually we will add features that will optimize this experience for training models """ return dataframe( python_callable, multiple_outputs, conn_id, database, schema, warehouse, ) def predict( python_callable: Optional[Callable] = None, multiple_outputs: Optional[bool] = None, conn_id: str = "", database: Optional[str] = None, schema: Optional[str] = None, warehouse: Optional[str] = None, ): """ For now this will have the same functionality as dataframe, but eventually we will add features that will optimize this experience for deploying inference """ return dataframe( python_callable, multiple_outputs, conn_id, database, schema, warehouse, )
25.1875
99
0.645988
134
1,209
5.738806
0.320896
0.085826
0.117035
0.078023
0.850455
0.850455
0.850455
0.850455
0.850455
0.850455
0
0
0.272953
1,209
47
100
25.723404
0.874858
0.252275
0
0.823529
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
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
2737039c8c47cd9e149029ff8b0769e1a189384d
3,371
py
Python
influencer/mixins.py
utkarsh23/endorsity-club
7b3684856f9e14284d9998931b7124505376ca5a
[ "MIT" ]
null
null
null
influencer/mixins.py
utkarsh23/endorsity-club
7b3684856f9e14284d9998931b7124505376ca5a
[ "MIT" ]
null
null
null
influencer/mixins.py
utkarsh23/endorsity-club
7b3684856f9e14284d9998931b7124505376ca5a
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import AccessMixin from django.core.exceptions import PermissionDenied from django.shortcuts import redirect from django.urls import reverse from accounts.models import FacebookPermissions, Influencer # class RegisteredInfluencerLoginRequiredMixin(AccessMixin): # def dispatch(self, request, *args, **kwargs): # if not request.user.is_authenticated or request.user.is_brand: # return redirect(reverse('accounts:landing')) # if not request.user.is_registered: # return redirect(reverse('accounts:check_registration')) # return super().dispatch(request, *args, **kwargs) class NotFbConnectedInfluencerLoginRequiredMixin(AccessMixin): def dispatch(self, request, *args, **kwargs): if not request.user.is_authenticated: return redirect(reverse('accounts:landing')) if request.user.is_brand: raise PermissionDenied if not request.user.is_registered: return redirect(reverse('accounts:check_registration')) if not request.user.is_account_activated: return redirect(reverse('accounts:activation_pending')) influencer = Influencer.objects.get(user=request.user) fb_permissions = FacebookPermissions.objects.get(influencer=influencer) if fb_permissions.has_all_permissions: return redirect(reverse('influencer:await_verification')) return super().dispatch(request, *args, **kwargs) class NotVerifiedAndFbConnectedInfluencerLoginRequiredMixin(AccessMixin): def dispatch(self, request, *args, **kwargs): if not request.user.is_authenticated: return redirect(reverse('accounts:landing')) if request.user.is_brand: raise PermissionDenied if not request.user.is_registered: return redirect(reverse('accounts:check_registration')) if not request.user.is_account_activated: return redirect(reverse('accounts:activation_pending')) influencer = Influencer.objects.get(user=request.user) fb_permissions = FacebookPermissions.objects.get(influencer=influencer) if not fb_permissions.has_all_permissions: return redirect(reverse('influencer:fb_connect')) if influencer.is_verified: return redirect(reverse('influencer:brands')) return super().dispatch(request, *args, **kwargs) class VerifiedAndFbConnectedInfluencerLoginRequiredMixin(AccessMixin): def dispatch(self, request, *args, **kwargs): if not request.user.is_authenticated: return redirect(reverse('accounts:landing')) if request.user.is_brand: raise PermissionDenied if not request.user.is_registered: return redirect(reverse('accounts:check_registration')) if not request.user.is_account_activated: return redirect(reverse('accounts:activation_pending')) influencer = Influencer.objects.get(user=request.user) fb_permissions = FacebookPermissions.objects.get(influencer=influencer) if not fb_permissions.has_all_permissions: return redirect(reverse('influencer:fb_connect')) if not influencer.is_verified: return redirect(reverse('influencer:await_verification')) return super().dispatch(request, *args, **kwargs)
47.478873
79
0.710472
346
3,371
6.797688
0.16763
0.084184
0.142857
0.07483
0.821429
0.821429
0.806122
0.738946
0.738946
0.72619
0
0
0.197864
3,371
70
80
48.157143
0.869822
0.120142
0
0.777778
0
0
0.110548
0.088573
0
0
0
0
0
1
0.055556
false
0
0.092593
0
0.518519
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
8
274a0c0d8d32bcfce24adb4a9391ca525570675a
6,470
py
Python
infrapki/sign.py
oko/infrapki
2dd5499e1ea74a923167a9420f32594ada8cd853
[ "MIT" ]
null
null
null
infrapki/sign.py
oko/infrapki
2dd5499e1ea74a923167a9420f32594ada8cd853
[ "MIT" ]
1
2021-08-07T18:38:32.000Z
2021-08-07T18:38:32.000Z
infrapki/sign.py
oko/infrapki
2dd5499e1ea74a923167a9420f32594ada8cd853
[ "MIT" ]
null
null
null
import abc from cryptography import exceptions, x509 from cryptography.x509 import extensions as x509ext from cryptography.x509 import oid class SignaturePolicyResult(object): def __init__(self, errors): self.errors = errors def ok(self): return len(self.errors) == 0 class SignaturePolicy(abc.ABC): @abc.abstractmethod def validate_csr( self, csr: x509.CertificateSigningRequest ) -> SignaturePolicyResult: pass @abc.abstractmethod def build_cert( self, cacert: x509.Certificate, csr: x509.CertificateSigningRequest ) -> x509.CertificateBuilder: pass class ServerCertSignaturePolicy(SignaturePolicy): def __init__(self): pass def validate_csr( self, csr: x509.CertificateSigningRequest ) -> SignaturePolicyResult: errors = [] try: basic = csr.extensions.get_extension_for_class(x509.BasicConstraints) if basic.value.ca: errors.append( ValueError( "BasicConstraints.CA must not be true for server certificates" ) ) except x509ext.ExtensionNotFound: pass return SignaturePolicyResult(errors) def build_cert( self, cacert: x509.Certificate, csr: x509.CertificateSigningRequest ) -> x509.CertificateBuilder: return ( x509.CertificateBuilder() .subject_name(csr.subject) .issuer_name(cacert.subject) .public_key(csr.public_key()) .add_extension( x509.BasicConstraints(ca=False, path_length=None,), critical=True, ) .add_extension( x509.KeyUsage( digital_signature=True, content_commitment=False, key_encipherment=False, data_encipherment=False, key_agreement=False, key_cert_sign=False, crl_sign=False, encipher_only=False, decipher_only=False, ), critical=True, ) .add_extension( x509.ExtendedKeyUsage([oid.ExtendedKeyUsageOID.SERVER_AUTH]), critical=True, ) .add_extension( x509.SubjectKeyIdentifier.from_public_key(csr.public_key()), critical=False, ) .add_extension( x509.AuthorityKeyIdentifier.from_issuer_public_key(cacert.public_key()), critical=False, ) ) class IntermediateCASignaturePolicy(SignaturePolicy): def __init__(self, ca_path_length=0): self.ca_path_length = ca_path_length def validate_csr( self, csr: x509.CertificateSigningRequest ) -> SignaturePolicyResult: errors = [] return SignaturePolicyResult(errors) def build_cert( self, cacert: x509.Certificate, csr: x509.CertificateSigningRequest ) -> x509.CertificateBuilder: return ( x509.CertificateBuilder() .subject_name(csr.subject) .issuer_name(cacert.subject) .public_key(csr.public_key()) .add_extension( x509.BasicConstraints( ca=True, path_length=( self.ca_path_length - 1 if self.ca_path_length > 0 else 0 ), ), critical=True, ) .add_extension( x509.KeyUsage( digital_signature=True, content_commitment=False, key_encipherment=False, data_encipherment=False, key_agreement=False, key_cert_sign=True, crl_sign=True, encipher_only=False, decipher_only=False, ), critical=True, ) .add_extension( x509.SubjectKeyIdentifier.from_public_key(csr.public_key()), critical=False, ) .add_extension( x509.AuthorityKeyIdentifier.from_issuer_public_key(cacert.public_key()), critical=False, ) ) class ClientCertSignaturePolicy(SignaturePolicy): def __init__(self): pass def validate_csr( self, csr: x509.CertificateSigningRequest ) -> SignaturePolicyResult: errors = [] try: basic = csr.extensions.get_extension_for_class(x509.BasicConstraints) if basic.value.ca: errors.append( ValueError( "BasicConstraints.CA must not be true for client certificates" ) ) except x509ext.ExtensionNotFound: pass return SignaturePolicyResult(errors) def build_cert( self, cacert: x509.Certificate, csr: x509.CertificateSigningRequest ) -> x509.CertificateBuilder: return ( x509.CertificateBuilder() .subject_name(csr.subject) .issuer_name(cacert.subject) .public_key(csr.public_key()) .add_extension( x509.BasicConstraints(ca=False, path_length=None,), critical=True, ) .add_extension( x509.KeyUsage( digital_signature=True, content_commitment=False, key_encipherment=False, data_encipherment=False, key_agreement=False, key_cert_sign=False, crl_sign=False, encipher_only=False, decipher_only=False, ), critical=True, ) .add_extension( x509.ExtendedKeyUsage([oid.ExtendedKeyUsageOID.CLIENT_AUTH]), critical=True, ) .add_extension( x509.SubjectKeyIdentifier.from_public_key(csr.public_key()), critical=False, ) .add_extension( x509.AuthorityKeyIdentifier.from_issuer_public_key(cacert.public_key()), critical=False, ) )
32.512563
88
0.538794
520
6,470
6.469231
0.165385
0.048157
0.066587
0.057075
0.853746
0.843639
0.843639
0.843639
0.822533
0.799643
0
0.03234
0.388253
6,470
198
89
32.676768
0.817585
0
0
0.744444
0
0
0.018547
0
0
0
0
0
0
1
0.072222
false
0.033333
0.022222
0.022222
0.161111
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
2773856d7236750c8c30547fc5c51f88db1e917a
3,911
py
Python
tests/unit/test_scc_hypervisor_collector_cli.py
SUSE/scc-hypervisor-collector
e3b9d2e7ddc3210b1f4fbe7a06eac8c22adb4c9a
[ "Apache-2.0" ]
null
null
null
tests/unit/test_scc_hypervisor_collector_cli.py
SUSE/scc-hypervisor-collector
e3b9d2e7ddc3210b1f4fbe7a06eac8c22adb4c9a
[ "Apache-2.0" ]
null
null
null
tests/unit/test_scc_hypervisor_collector_cli.py
SUSE/scc-hypervisor-collector
e3b9d2e7ddc3210b1f4fbe7a06eac8c22adb4c9a
[ "Apache-2.0" ]
null
null
null
import mock import pytest from tests import utils class TestSCCHypervisorCollectorCLI: """Class for scc-hypervisor-collector cli tests""" def test_no_arguments(self, capsys, monkeypatch, scc_hypervisor_collector_cli): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector"]) with pytest.raises(SystemExit): scc_hypervisor_collector_cli.main() def test_bad_option(self, capsys, monkeypatch, scc_hypervisor_collector_cli): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--bad"]) with pytest.raises(SystemExit): scc_hypervisor_collector_cli.main() out, err = capsys.readouterr() assert "scc-hypervisor-collector: error: unrecognized arguments: --bad\n" in err def test_version_option(self, capsys, monkeypatch, scc_hypervisor_collector_cli): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--version"]) with pytest.raises(SystemExit): scc_hypervisor_collector_cli.main() out, err = capsys.readouterr() assert scc_hypervisor_collector_cli.cli_version in out def test_help_option(self, capsys, monkeypatch, scc_hypervisor_collector_cli): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--help"]) with pytest.raises(SystemExit): scc_hypervisor_collector_cli.main() out, err = capsys.readouterr() assert "usage: scc-hypervisor-collector " in out def test_check_option_success(self, capsys, monkeypatch, scc_hypervisor_collector_cli, caplog): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--check", "--config", "tests/unit/data/config/default/default.yaml"]) with pytest.raises(SystemExit): scc_hypervisor_collector_cli.main() for record in caplog.records: assert record.levelname != 'DEBUG' #default log level is INFO def test_check_option_failure(self, capsys, monkeypatch, scc_hypervisor_collector_cli, caplog): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--check", "--config-dir", "tests/unit/data/config/invalid"]) with pytest.raises(SystemExit): scc_hypervisor_collector_cli.main() for record in caplog.records: assert record.levelname != 'DEBUG' #default log level is INFO def test_quiet_option(self, capsys, monkeypatch, scc_hypervisor_collector_cli, caplog): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--quiet", "--config", "tests/unit/data/config/default/default.yaml"]) scc_hypervisor_collector_cli.main() for record in caplog.records: assert record.levelname != 'DEBUG' assert caplog.records[-1].levelname == 'ERROR' and 'query failed after 3 attempts' in caplog.text def test_verbose_option(self, capsys, monkeypatch, scc_hypervisor_collector_cli, caplog): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--verbose", "--config", "tests/unit/data/config/default/default.yaml"]) scc_hypervisor_collector_cli.main() assert caplog.records[0].levelname == 'DEBUG' assert caplog.records[-1].levelname == 'ERROR' and 'query failed after 3 attempts' in caplog.text def test_verbose_sensitive_field(self, capsys, monkeypatch, scc_hypervisor_collector_cli, caplog): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector", "--verbose", "--config", "tests/unit/data/config/mock/config.yaml"]) scc_hypervisor_collector_cli.main() assert "3tjdla3gEP4WqkPd" not in caplog.text def test_sensitive_field(self, capsys, monkeypatch, scc_hypervisor_collector_cli, caplog): monkeypatch.setattr("sys.argv", ["scc-hypervisor-collector","--config", "tests/unit/data/config/mock/config.yaml"]) scc_hypervisor_collector_cli.main() assert "3tjdla3gEP4WqkPd" not in caplog.text
55.084507
141
0.707492
459
3,911
5.83878
0.16122
0.164925
0.279104
0.205224
0.864925
0.862313
0.862313
0.860075
0.846269
0.825746
0
0.003394
0.171312
3,911
70
142
55.871429
0.823511
0.02429
0
0.508772
0
0
0.232082
0.138094
0
0
0
0
0.192982
1
0.175439
false
0
0.052632
0
0.245614
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
278401dbf51041c68dfd5cd927cbb8694cc0f9fd
222
py
Python
src/retrieve/methods/set_similarity/__init__.py
emanjavacas/retrieve
451df1cb99d637aca54616c6c342bc0408057c48
[ "MIT" ]
null
null
null
src/retrieve/methods/set_similarity/__init__.py
emanjavacas/retrieve
451df1cb99d637aca54616c6c342bc0408057c48
[ "MIT" ]
2
2020-06-04T20:42:16.000Z
2020-09-14T07:49:20.000Z
src/retrieve/methods/set_similarity/__init__.py
emanjavacas/retrieve
451df1cb99d637aca54616c6c342bc0408057c48
[ "MIT" ]
1
2020-07-21T12:45:52.000Z
2020-07-21T12:45:52.000Z
from .search_index import SearchIndex from .set_similarity import containment, jaccard, containment_min, cosine from .set_similarity import weighted_containment, weighted_jaccard from .set_similarity import SetSimilarity
37
73
0.869369
27
222
6.888889
0.481481
0.112903
0.274194
0.370968
0
0
0
0
0
0
0
0
0.094595
222
5
74
44.4
0.925373
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
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
27991d194e7da5acf5e881d3436d6e7fab2bdf39
147
py
Python
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/calculators/calc_sq.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/calculators/calc_sq.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/sol/calculators/calc_sq.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
from pyradioconfig.parts.ocelot.calculators.calc_sq import Calc_SQ_Ocelot class Calc_SQ_Sol(Calc_SQ_Ocelot): #Inherit all from Ocelot pass
29.4
73
0.816327
23
147
4.913043
0.565217
0.212389
0.212389
0
0
0
0
0
0
0
0
0
0.129252
147
5
74
29.4
0.882813
0.156463
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
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
8
27f1d8f1c0b6a228790de19454ed8984c45f2105
1,591
py
Python
advanced_databases/lab3/report.py
piotrgiedziun/university
93097f071d592ad3d70b4c8cf1311498b5e1df3c
[ "MIT" ]
null
null
null
advanced_databases/lab3/report.py
piotrgiedziun/university
93097f071d592ad3d70b4c8cf1311498b5e1df3c
[ "MIT" ]
null
null
null
advanced_databases/lab3/report.py
piotrgiedziun/university
93097f071d592ad3d70b4c8cf1311498b5e1df3c
[ "MIT" ]
null
null
null
#!/usr/bin/python from timeit import Timer t = Timer('cur.execute("SELECT SQL_NO_CACHE * FROM `ticket` WHERE theater_id = 3;");cur.fetchall()', 'import MySQLdb;db = MySQLdb.connect(host="localhost", user="root", passwd="", db="sakila");cur = db.cursor()') print "theater_id %0.3f sec " % t.timeit(100) t = Timer('cur.execute("SELECT COUNT(*) FROM `ticket` ti INNER JOIN `show` sh ON ti.show_show_id = sh.show_id WHERE start_date > now() AND start_date < DATE_ADD(now(), INTERVAL 1 YEAR);");cur.fetchall()', 'import MySQLdb;db = MySQLdb.connect(host="localhost", user="root", passwd="", db="sakila");cur = db.cursor()') print "date %0.3f sec " % t.timeit(1) # DROP INDEX `theater_id` ON ticket; # CREATE INDEX start_date_index ON `show` (start_date) USING BTREE; # DROP INDEX `idx_title` ON `film`; # DROP INDEX `idx_title` ON `film`; t = Timer('cur.execute("SELECT SQL_NO_CACHE fi.title FROM `ticket` ti INNER JOIN `show` sh ON sh.show_id = ti.show_show_id LEFT JOIN `film` fi ON fi.film_id = sh.film_film_id WHERE fi.title LIKE \'%the%\'");cur.fetchall()', 'import MySQLdb;db = MySQLdb.connect(host="localhost", user="root", passwd="", db="sakila");cur = db.cursor()') print "the+ %0.3f sec " % t.timeit(10) t = Timer('cur.execute("SELECT SQL_NO_CACHE fi.title FROM `ticket` ti INNER JOIN `show` sh ON sh.show_id = ti.show_show_id LEFT JOIN `film` fi ON fi.film_id = sh.film_film_id WHERE fi.title LIKE \'the%\'");cur.fetchall()', 'import MySQLdb;db = MySQLdb.connect(host="localhost", user="root", passwd="", db="sakila");cur = db.cursor()') print "+the+ %0.3f sec " % t.timeit(10)
72.318182
335
0.692018
269
1,591
3.973978
0.234201
0.033676
0.033676
0.059869
0.786717
0.741815
0.698784
0.698784
0.641721
0.641721
0
0.012903
0.123193
1,591
21
336
75.761905
0.753405
0.116279
0
0
0
0.777778
0.842969
0.110635
0
0
0
0
0
0
null
null
0.444444
0.555556
null
null
0.444444
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
1
0
0
1
1
0
0
1
0
8
fdd47022acc911b10c9cf9e8a3fa3e8341f0c0ff
119
py
Python
montepython/likelihoods/cosmic_clocks_BC03_all/__init__.py
archaeo-pteryx/montepython_public
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
[ "MIT" ]
69
2018-04-20T07:38:33.000Z
2022-03-11T06:55:36.000Z
montepython/likelihoods/cosmic_clocks_BC03_all/__init__.py
archaeo-pteryx/montepython_public
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
[ "MIT" ]
263
2018-05-20T21:58:11.000Z
2022-03-30T21:45:48.000Z
montepython/likelihoods/cosmic_clocks_BC03_all/__init__.py
archaeo-pteryx/montepython_public
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
[ "MIT" ]
78
2018-04-21T13:11:54.000Z
2022-02-01T01:57:31.000Z
from montepython.likelihood_class import Likelihood_clocks class cosmic_clocks_BC03_all(Likelihood_clocks): pass
19.833333
58
0.857143
15
119
6.4
0.666667
0.333333
0
0
0
0
0
0
0
0
0
0.018868
0.109244
119
5
59
23.8
0.886792
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
8bf74e4b24ea2481cbd436b5f3f4267ec288e0fe
158
py
Python
alisu/custom_core/bot_raw_custom_methods_core/langs/get_bot_locale_categories_simple.py
sh-himanshu/alisurobot
4d315acaf28156feb79864b56b64636c4217b4d4
[ "MIT" ]
9
2021-08-17T18:30:13.000Z
2021-10-02T09:22:34.000Z
alisu/custom_core/bot_raw_custom_methods_core/langs/get_bot_locale_categories_simple.py
sh-himanshu/alisurobot
4d315acaf28156feb79864b56b64636c4217b4d4
[ "MIT" ]
1
2021-12-20T19:48:44.000Z
2021-12-20T19:48:44.000Z
alisu/custom_core/bot_raw_custom_methods_core/langs/get_bot_locale_categories_simple.py
aksr-aashish/alisurobot
0b0c05ea74ba6126ca9b328de16c808c72be365d
[ "MIT" ]
8
2021-08-17T21:14:13.000Z
2022-01-29T23:34:14.000Z
from alisu.utils.localization import bot_locales_categories_names_list def get_bot_locale_categories_simple(): return bot_locales_categories_names_list
26.333333
70
0.879747
22
158
5.772727
0.681818
0.15748
0.314961
0.393701
0.456693
0
0
0
0
0
0
0
0.088608
158
5
71
31.6
0.881944
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
9
e360f50ba506839d61ef23096a2048ded9997459
7,234
py
Python
test/TestTictactoe.py
dawidcdv/tictactoe
d42016ce7765bba8d1852e82de4e08648ce4d62a
[ "MIT" ]
null
null
null
test/TestTictactoe.py
dawidcdv/tictactoe
d42016ce7765bba8d1852e82de4e08648ce4d62a
[ "MIT" ]
null
null
null
test/TestTictactoe.py
dawidcdv/tictactoe
d42016ce7765bba8d1852e82de4e08648ce4d62a
[ "MIT" ]
null
null
null
import unittest from unittest import mock from unittest.mock import Mock from src.tictactoe.game.Board import Board from src.tictactoe.game.Tictactoe import Tictactoe class TictactoeTest((unittest.TestCase)): def test_not_finished_game(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.EMPTY, Board.Mark.CROSS, Board.Mark.EMPTY] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), False) self.assertEqual(game.getWinner(), None) self.assertEqual(game.isFinished(), False) def test_draw(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.NOUGHT] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), False) self.assertEqual(game.getWinner(), None) self.assertEqual(game.isFinished(), True) def test_win_in_first_rows(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.EMPTY, Board.Mark.EMPTY, Board.Mark.EMPTY, Board.Mark.EMPTY] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.CROSS) self.assertEqual(game.isFinished(), True) def test_win_in_second_rows(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.EMPTY, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.EMPTY, Board.Mark.EMPTY] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.CROSS) self.assertEqual(game.isFinished(), True) def test_win_in_third_rows(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.EMPTY, Board.Mark.EMPTY, Board.Mark.EMPTY, Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.NOUGHT] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.NOUGHT) self.assertEqual(game.isFinished(), True) def test_win_in_first_column(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.EMPTY, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.NOUGHT] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.CROSS) self.assertEqual(game.isFinished(), True) def test_win_in_second_column(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.NOUGHT] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.CROSS) self.assertEqual(game.isFinished(), True) def test_win_in_third_column(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.NOUGHT] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.NOUGHT) self.assertEqual(game.isFinished(), True) def test_win_diagonally_from_left_top(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.EMPTY, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.NOUGHT] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.NOUGHT) self.assertEqual(game.isFinished(), True) def test_win_diagonally_from_right_top(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.NOUGHT, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.NOUGHT, Board.Mark.CROSS, Board.Mark.CROSS, Board.Mark.NOUGHT] game = Tictactoe(MockBoard()) self.assertEqual(game.isWinner(), True) self.assertEqual(game.getWinner(), Board.Mark.CROSS) self.assertEqual(game.isFinished(), True) def test_board_as_array(self): with mock.patch('src.tictactoe.game.Board') as MockBoard: MockBoard.return_value.asArray.return_value = [Board.Mark.CROSS] * 9 game = Tictactoe(MockBoard()) self.assertEqual(game.getBoardAsArray(), [Board.Mark.CROSS] * 9) MockBoard.return_value.asArray.assert_called_once() if __name__ == '__main__': unittest.main()
57.872
115
0.575892
761
7,234
5.377135
0.072273
0.219941
0.147116
0.167155
0.91911
0.91911
0.909091
0.909091
0.907625
0.907625
0
0.000404
0.316284
7,234
124
116
58.33871
0.826931
0
0
0.644231
0
0
0.037611
0.036504
0
0
0
0
0.307692
1
0.105769
false
0
0.048077
0
0.163462
0
0
0
0
null
1
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
47bd29bdf86b6bed51ed572d54ebcef9b843a7ce
6,273
py
Python
keras_gym/core/test_sync_target_model.py
KristianHolsheimer/keras-gym
0296ddcc8685e1ce732c3173caaa0fd25af9ef58
[ "MIT" ]
16
2019-07-01T10:56:26.000Z
2021-01-31T18:56:56.000Z
keras_gym/core/test_sync_target_model.py
KristianHolsheimer/keras-gym
0296ddcc8685e1ce732c3173caaa0fd25af9ef58
[ "MIT" ]
10
2019-03-10T21:56:10.000Z
2020-09-06T21:49:55.000Z
keras_gym/core/test_sync_target_model.py
KristianHolsheimer/keras-gym
0296ddcc8685e1ce732c3173caaa0fd25af9ef58
[ "MIT" ]
5
2019-08-02T22:11:19.000Z
2020-04-19T20:18:38.000Z
from gym.envs.toy_text.frozen_lake import FrozenLakeEnv, UP, DOWN, LEFT, RIGHT import pytest import numpy as np from ..caching import MonteCarloCache from ..wrappers import TrainMonitor from .function_approximator import FunctionApproximator from .value_v import V from .value_q import QTypeI, QTypeII from .policy_categorical import SoftmaxPolicy # the MDP actions = {LEFT: 'L', RIGHT: 'R', UP: 'U', DOWN: 'D'} env = FrozenLakeEnv(is_slippery=False) env = TrainMonitor(env) # define function approximator func = FunctionApproximator(env, lr=0.01) def test_v(): v = V(func, gamma=0.9, bootstrap_n=1) # run episodes for _ in range(20): s = env.reset() for a in [DOWN, DOWN, RIGHT, RIGHT, DOWN, RIGHT]: s_next, r, done, info = env.step(a) v.update(s, r, done) s = s_next expected = v.predict_model.get_weights()[0] actual = v.target_model.get_weights()[0] msg = "Arrays are not almost equal to 6 decimals" with pytest.raises(AssertionError, match=msg): np.testing.assert_array_almost_equal(actual, expected) v.sync_target_model() actual = v.target_model.get_weights()[0] np.testing.assert_array_almost_equal(actual, expected) def test_q1(): q = QTypeI(func, gamma=0.9, bootstrap_n=1, update_strategy='sarsa') # run episodes for _ in range(20): s = env.reset() for a in [DOWN, DOWN, RIGHT, RIGHT, DOWN, RIGHT]: s_next, r, done, info = env.step(a) q.update(s, a, r, done) s = s_next expected = q.predict_model.get_weights()[0] actual = q.target_model.get_weights()[0] msg = "Arrays are not almost equal to 6 decimals" with pytest.raises(AssertionError, match=msg): np.testing.assert_array_almost_equal(actual, expected) q.sync_target_model() actual = q.target_model.get_weights()[0] np.testing.assert_array_almost_equal(actual, expected) def test_q2(): q = QTypeII(func, gamma=0.9, bootstrap_n=1, update_strategy='sarsa') # run episodes for _ in range(20): s = env.reset() for a in [DOWN, DOWN, RIGHT, RIGHT, DOWN, RIGHT]: s_next, r, done, info = env.step(a) q.update(s, a, r, done) s = s_next expected = q.predict_model.get_weights()[0] actual = q.target_model.get_weights()[0] msg = "Arrays are not almost equal to 6 decimals" with pytest.raises(AssertionError, match=msg): np.testing.assert_array_almost_equal(actual, expected) q.sync_target_model() actual = q.target_model.get_weights()[0] np.testing.assert_array_almost_equal(actual, expected) def test_pi_vanilla(): pi = SoftmaxPolicy(func, update_strategy='vanilla') cache = MonteCarloCache(env, gamma=0.9) # run episodes for _ in range(20): s = env.reset() for a in [DOWN, DOWN, RIGHT, RIGHT, DOWN, RIGHT]: s_next, r, done, info = env.step(a) cache.add(s, a, r, done) if done: while cache: S, A, G = cache.pop() pi.batch_update(S, A, G) s = s_next expected = pi.predict_model.get_weights()[0] actual = pi.target_model.get_weights()[0] msg = "Arrays are not almost equal to 6 decimals" with pytest.raises(AssertionError, match=msg): np.testing.assert_array_almost_equal(actual, expected) pi.sync_target_model() actual = pi.target_model.get_weights()[0] np.testing.assert_array_almost_equal(actual, expected) def test_pi_ppo(): pi = SoftmaxPolicy(func, update_strategy='ppo') cache = MonteCarloCache(env, gamma=0.9) # run episodes for _ in range(20): s = env.reset() for a in [DOWN, DOWN, RIGHT, RIGHT, DOWN, RIGHT]: s_next, r, done, info = env.step(a) cache.add(s, a, r, done) if done: while cache: S, A, G = cache.pop() pi.batch_update(S, A, G) s = s_next expected = pi.predict_model.get_weights()[0] actual = pi.target_model.get_weights()[0] msg = "Arrays are not almost equal to 6 decimals" with pytest.raises(AssertionError, match=msg): np.testing.assert_array_almost_equal(actual, expected) pi.sync_target_model() actual = pi.target_model.get_weights()[0] np.testing.assert_array_almost_equal(actual, expected) def test_pi_param_ppo(): pi = SoftmaxPolicy(func, update_strategy='ppo') cache = MonteCarloCache(env, gamma=0.9) # run episodes for _ in range(20): s = env.reset() for a in [DOWN, DOWN, RIGHT, RIGHT, DOWN, RIGHT]: s_next, r, done, info = env.step(a) cache.add(s, a, r, done) if done: while cache: S, A, G = cache.pop() pi.batch_update(S, A, G) s = s_next expected = pi.predict_param_model.get_weights()[0] actual = pi.target_param_model.get_weights()[0] msg = "Arrays are not almost equal to 6 decimals" with pytest.raises(AssertionError, match=msg): np.testing.assert_array_almost_equal(actual, expected) pi.sync_target_model() actual = pi.target_param_model.get_weights()[0] np.testing.assert_array_almost_equal(actual, expected) def test_pi_greedy_ppo(): pi = SoftmaxPolicy(func, update_strategy='ppo') cache = MonteCarloCache(env, gamma=0.9) # run episodes for _ in range(20): s = env.reset() for a in [DOWN, DOWN, RIGHT, RIGHT, DOWN, RIGHT]: s_next, r, done, info = env.step(a) cache.add(s, a, r, done) if done: while cache: S, A, G = cache.pop() pi.batch_update(S, A, G) s = s_next expected = pi.predict_greedy_model.get_weights()[0] actual = pi.target_greedy_model.get_weights()[0] msg = "Arrays are not almost equal to 6 decimals" with pytest.raises(AssertionError, match=msg): np.testing.assert_array_almost_equal(actual, expected) pi.sync_target_model() actual = pi.target_greedy_model.get_weights()[0] np.testing.assert_array_almost_equal(actual, expected)
30.901478
78
0.626813
886
6,273
4.259594
0.123025
0.044515
0.083466
0.08903
0.86619
0.854531
0.843402
0.825384
0.812136
0.812136
0
0.013769
0.259047
6,273
202
79
31.054455
0.798193
0.020246
0
0.8
0
0
0.051662
0
0
0
0
0
0.144828
1
0.048276
false
0
0.062069
0
0.110345
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
9a35b30a39e0d763d81cc6866215d9611db765b8
787
py
Python
data/trainlabel.py
maanavshah/remote-intelligent-assistant
65ea7287d0ca2dd98a376bbadc81a5093b9b6046
[ "MIT" ]
3
2020-04-09T12:40:57.000Z
2021-05-23T15:49:56.000Z
data/trainlabel.py
maanavshah/remote-intelligent-assistant
65ea7287d0ca2dd98a376bbadc81a5093b9b6046
[ "MIT" ]
null
null
null
data/trainlabel.py
maanavshah/remote-intelligent-assistant
65ea7287d0ca2dd98a376bbadc81a5093b9b6046
[ "MIT" ]
null
null
null
y_train_text = [ ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["folder"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["file"], ["network"], ["network"], ["network"], ["network"], ["network"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["system"], ["general"], ["general"], ["general"] ]
12.296875
16
0.449809
64
787
5.5
0.125
0.784091
1.125
1.431818
0.8125
0.8125
0.8125
0.8125
0.8125
0.8125
0
0
0.160102
787
63
17
12.492063
0.532526
0
0
0.952381
0
0
0.434562
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
7bd4fcac98c8437b7b3f4f79d3c6835f82ec3520
890,650
py
Python
scripts/genallipc.py
AcK77/SwIPC
53a6de6c0855b6f2b533059c265a667b6e2fd36b
[ "ISC" ]
55
2017-09-27T06:52:17.000Z
2021-11-14T20:00:29.000Z
scripts/genallipc.py
AcK77/SwIPC
53a6de6c0855b6f2b533059c265a667b6e2fd36b
[ "ISC" ]
30
2017-10-14T04:53:58.000Z
2019-04-09T13:08:25.000Z
scripts/genallipc.py
AcK77/SwIPC
53a6de6c0855b6f2b533059c265a667b6e2fd36b
[ "ISC" ]
15
2017-09-27T06:52:19.000Z
2019-07-18T04:28:08.000Z
info = [ ('nn::spl::detail::IRandomInterface', 0, '', '0 bytes in - 0 bytes out - Buffer<0,6,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 1, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 2, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 7, '', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 8, '', '0x10 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 9, '', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 11, '', '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 12, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 13, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFileSystemProxy', 17, '', '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystemProxy', 18, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 19, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFileSystemProxy', 21, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 22, '', '0x90 bytes in - 0 bytes out - InRaw<0x40,8,0>, InRaw<0x40,8,0x40>, InRaw<0x10,4,0x80>', ''), ('nn::fssrv::sf::IFileSystemProxy', 23, '', '0x80 bytes in - 0 bytes out - InRaw<0x40,8,0>, InRaw<0x40,8,0x40>', ''), ('nn::fssrv::sf::IFileSystemProxy', 24, '', '0 bytes in - 0 bytes out - Buffer<0,5,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 25, '', '0x10 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IFileSystemProxy', 26, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFileSystemProxy', 27, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 30, '', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::fssrv::sf::IFileSystemProxy', 31, '', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::fssrv::sf::IFileSystemProxy', 32, '', '0x20 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<8,8,0x18>', ''), ('nn::fssrv::sf::IFileSystemProxy', 51, '', '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>', ''), ('nn::fssrv::sf::IFileSystemProxy', 52, '', '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>', ''), ('nn::fssrv::sf::IFileSystemProxy', 53, '', '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>', ''), ('nn::fssrv::sf::IFileSystemProxy', 57, '', '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<1,1,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IFileSystemProxy', 58, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 59, '', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>, Buffer<0,5,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 60, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 61, '', '1 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 80, '', '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>, InRaw<4,4,4>', ''), ('nn::fssrv::sf::IFileSystemProxy', 100, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 110, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 200, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 201, '', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 202, '', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,8>, InRaw<1,1,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 203, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 400, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 500, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 501, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 600, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 601, '', '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IFileSystemProxy', 602, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,6,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 603, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 604, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 605, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFileSystemProxy', 606, '', '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,8,8>, InRaw<1,1,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 607, '', '0x20 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<0x10,1,0x10>', ''), ('nn::fssrv::sf::IFileSystemProxy', 608, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFileSystemProxy', 609, '', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystemProxy', 610, '', '0 bytes in - 0x18 bytes out - OutRaw<0x10,8,8>, OutRaw<1,1,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystemProxy', 620, '', '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 800, '', '0 bytes in - 0x80 bytes out - OutRaw<0x80,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 1000, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystemProxy', 1001, '', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IFileSystemProxy', 1002, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystemProxy', 1003, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFileSystemProxy', 1004, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 1005, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystemProxy', 1006, '', '0 bytes in - 0 bytes out - Buffer<0,5,0>', ''), ('nn::fssrv::sf::IFileSystem', 0, '', '0x10 bytes in - 0 bytes out - Buffer<0,0x19,0x301>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystem', 1, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 2, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 3, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 4, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 5, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>, Buffer<1,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 6, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>, Buffer<1,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 7, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 8, '', '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystem', 9, '', '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFileSystem', 10, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFileSystem', 11, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 12, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 13, '', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFileSystem', 14, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>, Buffer<0,0x19,0x301>', ''), ('nn::fssrv::sf::IFile', 0, '', '0x18 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,0x46,0>, InRaw<8,8,0x10>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFile', 1, '', '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, Buffer<0,0x45,0>, InRaw<8,8,0x10>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IFile', 2, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IFile', 3, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFile', 4, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::fssrv::sf::IDirectory', 0, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>', ''), ('nn::fssrv::sf::IDirectory', 1, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::fssrv::sf::IStorage', 0, '', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x46,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IStorage', 1, '', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x45,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IStorage', 2, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IStorage', 3, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IStorage', 4, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::fssrv::sf::ISaveDataInfoReader', 0, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 0, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 1, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 2, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 3, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 4, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 5, '', '8 bytes in - 0x18 bytes out - OutRaw<0x10,4,0>, OutRaw<8,8,0x10>, Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 100, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 101, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 110, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 111, '', '4 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 112, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 113, '', '8 bytes in - 0x18 bytes out - OutRaw<0x10,4,0>, OutRaw<8,8,0x10>, Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 114, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 200, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 201, '', '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IDeviceOperator', 202, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 203, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 204, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IDeviceOperator', 205, '', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 206, '', '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 207, '', '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>, Buffer<1,5,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IDeviceOperator', 208, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 209, '', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IDeviceOperator', 210, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 211, '', '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 212, '', '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>, Buffer<1,5,0>, InRaw<8,8,8>', ''), ('nn::fssrv::sf::IDeviceOperator', 213, '', '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 214, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 215, '', '0 bytes in - 0 bytes out', ''), ('nn::fssrv::sf::IDeviceOperator', 216, '', '0 bytes in - 0x10 bytes out - OutRaw<0x10,2,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 217, '', '0 bytes in - 0x40 bytes out - OutRaw<0x40,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 218, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 300, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::fssrv::sf::IDeviceOperator', 301, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::fssrv::sf::IEventNotifier', 0, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::fssrv::sf::IFileSystemProxyForLoader', 0, '', '8 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IFileSystemProxyForLoader', 1, '', '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>', ''), ('nn::fssrv::sf::IProgramRegistry', 0, '', '0x28 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<1,1,0>, Buffer<0,5,0>, InRaw<8,8,0x18>, Buffer<1,5,0>, InRaw<8,8,0x20>', ''), ('nn::fssrv::sf::IProgramRegistry', 1, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::fssrv::sf::IProgramRegistry', 256, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::tma::IHtcManager', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, Buffer<1,5,0>', ''), ('nn::tma::IHtcManager', 1, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,5,0>', ''), ('nn::tma::IHtcManager', 2, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::tma::IHtcManager', 3, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::tma::IHtcManager', 4, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::tma::IHtcManager', 5, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::tma::IHtcManager', 6, '', '0 bytes in - 0 bytes out - Buffer<0,6,0>', ''), ('nn::tma::IHtcManager', 7, '', '0 bytes in - 0 bytes out - Buffer<0,6,0>', ''), ('nn::tma::IHtcManager', 8, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::htc::tenv::IServiceManager', 0, '', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', ''), ('nn::htc::tenv::IService', 0, '', '0x40 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<0x40,1,0>', ''), ('nn::htc::tenv::IService', 1, '', '0x40 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x40,1,0>', ''), ('nn::htc::tenv::IService', 2, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::ro::detail::IRoInterface', 0, '', '0x28 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<8,8,0x18>, InRaw<8,8,0x20>', ''), ('nn::ro::detail::IRoInterface', 1, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::ro::detail::IRoInterface', 2, '', '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>', ''), ('nn::ro::detail::IRoInterface', 3, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::ro::detail::IRoInterface', 4, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InHandle<0,1>', ''), ('nn::sm::detail::IUserInterface', 0, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::sm::detail::IUserInterface', 1, '', '8 bytes in - 0 bytes out - OutHandle<0,2>, InRaw<8,1,0>', ''), ('nn::sm::detail::IUserInterface', 2, '', '0x10 bytes in - 0 bytes out - OutHandle<0,2>, InRaw<8,1,0>, InRaw<4,4,0xC>, InRaw<1,1,8>', ''), ('nn::sm::detail::IUserInterface', 3, '', '8 bytes in - 0 bytes out - InRaw<8,1,0>', ''), ('nn::sm::detail::IManagerInterface', 0, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,5,0>, Buffer<1,5,0>', ''), ('nn::sm::detail::IManagerInterface', 1, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::socket::sf::IClient', 0, '', '0x30 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,0x20>, InHandle<0,1>, InRaw<8,8,0x28>, InRaw<0x20,4,0>', ''), ('nn::socket::sf::IClient', 1, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::socket::sf::IClient', 2, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 3, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 4, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::socket::sf::IClient', 5, '', '0x20 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, Buffer<2,0x21,0>, Buffer<3,0x22,0>, Buffer<4,0x22,0>, Buffer<5,0x22,0>, InRaw<0x18,8,8>', ''), ('nn::socket::sf::IClient', 6, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 7, '', '0 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, OutRaw<4,4,8>, Buffer<2,0x21,0>', ''), ('nn::socket::sf::IClient', 8, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 9, '', '8 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>, Buffer<1,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 10, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 11, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>, Buffer<1,0x21,0>', ''), ('nn::socket::sf::IClient', 12, '', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 13, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 14, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 15, '', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 16, '', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 17, '', '0xC bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 18, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 19, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, Buffer<2,0x21,0>, Buffer<3,0x21,0>, Buffer<4,0x22,0>, Buffer<5,0x22,0>, Buffer<6,0x22,0>, Buffer<7,0x22,0>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 20, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 21, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 22, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 23, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::socket::sf::IClient', 24, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 25, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>', ''), ('nn::socket::sf::IClient', 26, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::socket::sf::IClient', 27, '', '0x10 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<8,8,8>', ''), ('nn::socket::sf::IClient', 28, '', '8 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,0>, Buffer<0,0x22,0>', ''), ('nn::socket::sf::IClient', 29, '', '0x20 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<0x10,8,0x10>', ''), ('nn::socket::sf::IClient', 30, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>, Buffer<1,0x21,0>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 0, '', '0x30 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,0x20>, InHandle<0,1>, InRaw<8,8,0x28>, InRaw<0x20,4,0>', ''), ('nn::socket::sf::IClient', 1, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::socket::sf::IClient', 2, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 3, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 4, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::socket::sf::IClient', 5, '', '0x20 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, Buffer<2,0x21,0>, Buffer<3,0x22,0>, Buffer<4,0x22,0>, Buffer<5,0x22,0>, InRaw<0x18,8,8>', ''), ('nn::socket::sf::IClient', 6, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 7, '', '0 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, OutRaw<4,4,8>, Buffer<2,0x21,0>', ''), ('nn::socket::sf::IClient', 8, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 9, '', '8 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>, Buffer<1,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 10, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 11, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>, Buffer<1,0x21,0>', ''), ('nn::socket::sf::IClient', 12, '', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 13, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 14, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 15, '', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 16, '', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 17, '', '0xC bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, Buffer<0,0x22,0>, OutRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 18, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 19, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, Buffer<2,0x21,0>, Buffer<3,0x21,0>, Buffer<4,0x22,0>, Buffer<5,0x22,0>, Buffer<6,0x22,0>, Buffer<7,0x22,0>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 20, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::socket::sf::IClient', 21, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 22, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::socket::sf::IClient', 23, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::socket::sf::IClient', 24, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>', ''), ('nn::socket::sf::IClient', 25, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>', ''), ('nn::socket::sf::IClient', 26, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::socket::sf::IClient', 27, '', '0x10 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<8,8,8>', ''), ('nn::socket::sf::IClient', 28, '', '8 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,0>, Buffer<0,0x22,0>', ''), ('nn::socket::sf::IClient', 29, '', '0x20 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<0x10,8,0x10>', ''), ('nn::socket::sf::IClient', 30, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>, Buffer<1,0x21,0>, InRaw<4,4,8>', ''), ('nn::socket::resolver::IResolver', 0, '', '4 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<4,4,0>', ''), ('nn::socket::resolver::IResolver', 1, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,6,0>', ''), ('nn::socket::resolver::IResolver', 2, '', '0x10 bytes in - 0xC bytes out - takes pid - InRaw<4,4,4>, InRaw<8,8,8>, InRaw<1,1,0>, Buffer<0,5,0>, OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<1,6,0>, OutRaw<4,4,8>', ''), ('nn::socket::resolver::IResolver', 3, '', '0x18 bytes in - 0xC bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,0x10>, Buffer<0,5,0>, InRaw<4,4,4>, InRaw<4,4,8>, OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<1,6,0>, OutRaw<4,4,8>', ''), ('nn::socket::resolver::IResolver', 4, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,6,0>', ''), ('nn::socket::resolver::IResolver', 5, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,6,0>', ''), ('nn::socket::resolver::IResolver', 6, '', '0x10 bytes in - 0xC bytes out - takes pid - InRaw<4,4,4>, InRaw<8,8,8>, InRaw<1,1,0>, Buffer<0,5,0>, Buffer<1,5,0>, Buffer<2,5,0>, Buffer<3,6,0>, OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>', ''), ('nn::socket::resolver::IResolver', 7, '', '0x10 bytes in - 8 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,8>, Buffer<0,5,0>, Buffer<1,6,0>, Buffer<2,6,0>, InRaw<4,4,4>, OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::socket::resolver::IResolver', 8, '', '8 bytes in - 4 bytes out - takes pid - InRaw<8,8,0>, OutRaw<4,4,0>', ''), ('nn::socket::resolver::IResolver', 9, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::account::IAccountServiceForApplication', 0, 'GetUserCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::account::IAccountServiceForApplication', 1, 'GetUserExistence', '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x10,8,0>', '(nn::sf::Out<bool,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForApplication', 2, 'ListAllUsers', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<nn::account::Uid> const&)'), ('nn::account::IAccountServiceForApplication', 3, 'ListOpenUsers', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<nn::account::Uid> const&)'), ('nn::account::IAccountServiceForApplication', 4, 'GetLastOpenedUser', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::account::Uid,void>)'), ('nn::account::IAccountServiceForApplication', 5, 'GetProfile', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfile>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForApplication', 6, 'GetProfileDigest', '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::account::ProfileDigest,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForApplication', 50, 'IsUserRegistrationRequestPermitted', '8 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,0>', '(nn::sf::Out<bool,void>,unsigned long)'), ('nn::account::IAccountServiceForApplication', 51, 'TrySelectUserWithoutInteraction', '1 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<1,1,0>', '(nn::sf::Out<nn::account::Uid,void>,bool)'), ('nn::account::IAccountServiceForApplication', 100, 'InitializeApplicationInfo', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(unsigned long)'), ('nn::account::IAccountServiceForApplication', 101, 'GetBaasAccountManagerForApplication', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IManagerForApplication>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForApplication', 102, 'AuthenticateApplicationAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::IAccountServiceForApplication', 110, 'StoreSaveDataThumbnail', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>, Buffer<0,5,0>', '(nn::account::Uid const&,nn::sf::InBuffer const&)'), ('nn::account::IAccountServiceForApplication', 111, 'ClearSaveDataThumbnail', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForApplication', 120, 'CreateGuestLoginRequest', '4 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IGuestLoginRequest>,void>,nn::sf::NativeHandle &&,unsigned int)'), ('nn::account::profile::IProfile', 0, 'Get', '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>, Buffer<0,0x1A,0x80>', '(nn::sf::Out<nn::account::profile::ProfileBase,void>,nn::sf::Out<nn::account::profile::UserData,void>)'), ('nn::account::profile::IProfile', 1, 'GetBase', '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>', '(nn::sf::Out<nn::account::profile::ProfileBase,void>)'), ('nn::account::profile::IProfile', 10, 'GetImageSize', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::account::profile::IProfile', 11, 'LoadImage', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IManagerForApplication', 0, 'CheckAvailability', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::baas::IManagerForApplication', 1, 'GetAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)'), ('nn::account::baas::IManagerForApplication', 2, 'EnsureIdTokenCacheAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IManagerForApplication', 3, 'LoadIdTokenCache', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IManagerForApplication', 130, 'GetNintendoAccountUserResourceCacheForApplication', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x1A,0x68>, Buffer<1,6,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>,nn::sf::Out<nn::account::nas::NasUserBaseForApplication,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IManagerForApplication', 150, 'CreateAuthorizationRequest', '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x200>, InHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IAuthorizationRequest>,void>,nn::account::NintendoAccountAuthorizationRequestParameters const&,nn::sf::NativeHandle &&,unsigned int)'), ('nn::account::detail::IAsyncContext', 0, 'GetSystemEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::account::detail::IAsyncContext', 1, 'Cancel', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::detail::IAsyncContext', 2, 'HasDone', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::account::detail::IAsyncContext', 3, 'GetResult', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::nas::IAuthorizationRequest', 0, 'GetSessionId', '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>', '(nn::sf::Out<nn::account::detail::Uuid,void>)'), ('nn::account::nas::IAuthorizationRequest', 10, 'InvokeWithoutInteractionAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::nas::IAuthorizationRequest', 19, 'IsAuthorized', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::account::nas::IAuthorizationRequest', 20, 'GetAuthorizationCode', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::nas::IAuthorizationRequest', 21, 'GetIdToken', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::nas::IAuthorizationRequest', 22, 'GetState', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x80>', '(nn::sf::Out<nn::account::nas::State,void>)'), ('nn::account::baas::IGuestLoginRequest', 0, 'GetSessionId', '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>', '(nn::sf::Out<nn::account::detail::Uuid,void>)'), ('nn::account::baas::IGuestLoginRequest', 12, 'GetAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)'), ('nn::account::baas::IGuestLoginRequest', 13, 'GetLinkedNintendoAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>)'), ('nn::account::baas::IGuestLoginRequest', 14, 'GetNickname', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<char> const&)'), ('nn::account::baas::IGuestLoginRequest', 15, 'GetProfileImage', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IGuestLoginRequest', 21, 'LoadIdTokenCache', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::IAccountServiceForSystemService', 0, 'GetUserCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::account::IAccountServiceForSystemService', 1, 'GetUserExistence', '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x10,8,0>', '(nn::sf::Out<bool,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForSystemService', 2, 'ListAllUsers', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<nn::account::Uid> const&)'), ('nn::account::IAccountServiceForSystemService', 3, 'ListOpenUsers', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<nn::account::Uid> const&)'), ('nn::account::IAccountServiceForSystemService', 4, 'GetLastOpenedUser', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::account::Uid,void>)'), ('nn::account::IAccountServiceForSystemService', 5, 'GetProfile', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfile>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForSystemService', 6, 'GetProfileDigest', '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::account::ProfileDigest,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForSystemService', 50, 'IsUserRegistrationRequestPermitted', '8 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,0>', '(nn::sf::Out<bool,void>,unsigned long)'), ('nn::account::IAccountServiceForSystemService', 51, 'TrySelectUserWithoutInteraction', '1 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<1,1,0>', '(nn::sf::Out<nn::account::Uid,void>,bool)'), ('nn::account::IAccountServiceForSystemService', 100, 'GetUserRegistrationNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForSystemService', 101, 'GetUserStateChangeNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForSystemService', 102, 'GetBaasAccountManagerForSystemService', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IManagerForSystemService>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForSystemService', 103, 'GetBaasUserAvailabilityChangeNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForSystemService', 104, 'GetProfileUpdateNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForSystemService', 110, 'StoreSaveDataThumbnail', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,5,0>', '(nn::account::Uid const&,nn::ApplicationId,nn::sf::InBuffer const&)'), ('nn::account::IAccountServiceForSystemService', 111, 'ClearSaveDataThumbnail', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::ApplicationId)'), ('nn::account::IAccountServiceForSystemService', 112, 'LoadSaveDataThumbnail', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::account::Uid const&,nn::ApplicationId)'), ('nn::account::IAccountServiceForSystemService', 190, 'GetUserLastOpenedApplication', '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,8>, OutRaw<4,4,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::ApplicationId,void>,nn::sf::Out<unsigned int,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForSystemService', 997, 'DebugInvalidateTokenCacheForUser', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForSystemService', 998, 'DebugSetUserStateClose', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForSystemService', 999, 'DebugSetUserStateOpen', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::detail::INotifier', 0, 'GetSystemEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::account::baas::IManagerForSystemService', 0, 'CheckAvailability', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::baas::IManagerForSystemService', 1, 'GetAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)'), ('nn::account::baas::IManagerForSystemService', 2, 'EnsureIdTokenCacheAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IManagerForSystemService', 3, 'LoadIdTokenCache', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IManagerForSystemService', 100, 'SetSystemProgramIdentification', '8 bytes in - 0 bytes out - takes pid - Buffer<0,0x19,0x10>, InRaw<8,8,0>', '(nn::account::SystemProgramIdentification const&,unsigned long)'), ('nn::account::baas::IManagerForSystemService', 120, 'GetNintendoAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>)'), ('nn::account::baas::IManagerForSystemService', 130, 'GetNintendoAccountUserResourceCache', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x1A,0x24F>, Buffer<1,6,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>,nn::sf::Out<nn::account::nas::NasUserBase,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IManagerForSystemService', 131, 'RefreshNintendoAccountUserResourceCacheAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IManagerForSystemService', 132, 'RefreshNintendoAccountUserResourceCacheAsyncIfSecondsElapsed', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,unsigned int)'), ('nn::account::baas::IManagerForSystemService', 150, 'CreateAuthorizationRequest', '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x108>, Buffer<1,0x19,0x200>, InHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IAuthorizationRequest>,void>,nn::account::nas::NasClientInfo const&,nn::account::NintendoAccountAuthorizationRequestParameters const&,nn::sf::NativeHandle &&,unsigned int)'), ('nn::account::IAccountServiceForAdministrator', 0, 'GetUserCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::account::IAccountServiceForAdministrator', 1, 'GetUserExistence', '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x10,8,0>', '(nn::sf::Out<bool,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 2, 'ListAllUsers', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<nn::account::Uid> const&)'), ('nn::account::IAccountServiceForAdministrator', 3, 'ListOpenUsers', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<nn::account::Uid> const&)'), ('nn::account::IAccountServiceForAdministrator', 4, 'GetLastOpenedUser', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::account::Uid,void>)'), ('nn::account::IAccountServiceForAdministrator', 5, 'GetProfile', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfile>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 6, 'GetProfileDigest', '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::account::ProfileDigest,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 50, 'IsUserRegistrationRequestPermitted', '8 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,0>', '(nn::sf::Out<bool,void>,unsigned long)'), ('nn::account::IAccountServiceForAdministrator', 51, 'TrySelectUserWithoutInteraction', '1 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<1,1,0>', '(nn::sf::Out<nn::account::Uid,void>,bool)'), ('nn::account::IAccountServiceForAdministrator', 100, 'GetUserRegistrationNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForAdministrator', 101, 'GetUserStateChangeNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForAdministrator', 102, 'GetBaasAccountManagerForSystemService', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IManagerForSystemService>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 103, 'GetBaasUserAvailabilityChangeNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForAdministrator', 104, 'GetProfileUpdateNotifier', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)'), ('nn::account::IAccountServiceForAdministrator', 110, 'StoreSaveDataThumbnail', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,5,0>', '(nn::account::Uid const&,nn::ApplicationId,nn::sf::InBuffer const&)'), ('nn::account::IAccountServiceForAdministrator', 111, 'ClearSaveDataThumbnail', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::ApplicationId)'), ('nn::account::IAccountServiceForAdministrator', 112, 'LoadSaveDataThumbnail', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::account::Uid const&,nn::ApplicationId)'), ('nn::account::IAccountServiceForAdministrator', 190, 'GetUserLastOpenedApplication', '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,8>, OutRaw<4,4,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::ApplicationId,void>,nn::sf::Out<unsigned int,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 997, 'DebugInvalidateTokenCacheForUser', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 998, 'DebugSetUserStateClose', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 999, 'DebugSetUserStateOpen', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 200, 'BeginUserRegistration', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::account::Uid,void>)'), ('nn::account::IAccountServiceForAdministrator', 201, 'CompleteUserRegistration', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 202, 'CancelUserRegistration', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 203, 'DeleteUser', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 204, 'SetUserPosition', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::account::Uid const&,int)'), ('nn::account::IAccountServiceForAdministrator', 205, 'GetProfileEditor', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfileEditor>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 206, 'CompleteUserRegistrationForcibly', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 210, 'CreateFloatingRegistrationRequest', '4 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IFloatingRegistrationRequest>,void>,nn::sf::NativeHandle &&,unsigned int)'), ('nn::account::IAccountServiceForAdministrator', 230, 'AuthenticateServiceAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::IAccountServiceForAdministrator', 250, 'GetBaasAccountAdministrator', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IAdministrator>,void>,nn::account::Uid const&)'), ('nn::account::IAccountServiceForAdministrator', 290, 'ProxyProcedureForGuestLoginWithNintendoAccount', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForExternalNsa>,void>,nn::account::detail::Uuid const&)'), ('nn::account::IAccountServiceForAdministrator', 291, 'ProxyProcedureForFloatingRegistrationWithNintendoAccount', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForExternalNsa>,void>,nn::account::detail::Uuid const&)'), ('nn::account::IAccountServiceForAdministrator', 299, 'SuspendBackgroundDaemon', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::ISessionObject>,void>)'), ('nn::account::profile::IProfileEditor', 0, 'Get', '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>, Buffer<0,0x1A,0x80>', '(nn::sf::Out<nn::account::profile::ProfileBase,void>,nn::sf::Out<nn::account::profile::UserData,void>)'), ('nn::account::profile::IProfileEditor', 1, 'GetBase', '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>', '(nn::sf::Out<nn::account::profile::ProfileBase,void>)'), ('nn::account::profile::IProfileEditor', 10, 'GetImageSize', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::account::profile::IProfileEditor', 11, 'LoadImage', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::profile::IProfileEditor', 100, 'Store', '0x38 bytes in - 0 bytes out - InRaw<0x38,8,0>, Buffer<0,0x19,0x80>', '(nn::account::profile::ProfileBase const&,nn::account::profile::UserData const&)'), ('nn::account::profile::IProfileEditor', 101, 'StoreWithImage', '0x38 bytes in - 0 bytes out - InRaw<0x38,8,0>, Buffer<0,0x19,0x80>, Buffer<1,5,0>', '(nn::account::profile::ProfileBase const&,nn::account::profile::UserData const&,nn::sf::InBuffer const&)'), ('nn::account::baas::IFloatingRegistrationRequest', 0, 'GetSessionId', '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>', '(nn::sf::Out<nn::account::detail::Uuid,void>)'), ('nn::account::baas::IFloatingRegistrationRequest', 12, 'GetAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)'), ('nn::account::baas::IFloatingRegistrationRequest', 13, 'GetLinkedNintendoAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>)'), ('nn::account::baas::IFloatingRegistrationRequest', 14, 'GetNickname', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<char> const&)'), ('nn::account::baas::IFloatingRegistrationRequest', 15, 'GetProfileImage', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IFloatingRegistrationRequest', 21, 'LoadIdTokenCache', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IFloatingRegistrationRequest', 100, 'RegisterAsync', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, OutObject<0,0>', '(nn::sf::Out<nn::account::Uid,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IFloatingRegistrationRequest', 101, 'RegisterWithUidAsync', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&)'), ('nn::account::baas::IFloatingRegistrationRequest', 110, 'SetSystemProgramIdentification', '8 bytes in - 0 bytes out - takes pid - Buffer<0,0x19,0x10>, InRaw<8,8,0>', '(nn::account::SystemProgramIdentification const&,unsigned long)'), ('nn::account::baas::IFloatingRegistrationRequest', 111, 'EnsureIdTokenCacheAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 0, 'CheckAvailability', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::baas::IAdministrator', 1, 'GetAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)'), ('nn::account::baas::IAdministrator', 2, 'EnsureIdTokenCacheAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 3, 'LoadIdTokenCache', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IAdministrator', 100, 'SetSystemProgramIdentification', '8 bytes in - 0 bytes out - takes pid - Buffer<0,0x19,0x10>, InRaw<8,8,0>', '(nn::account::SystemProgramIdentification const&,unsigned long)'), ('nn::account::baas::IAdministrator', 120, 'GetNintendoAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>)'), ('nn::account::baas::IAdministrator', 130, 'GetNintendoAccountUserResourceCache', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x1A,0x24F>, Buffer<1,6,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>,nn::sf::Out<nn::account::nas::NasUserBase,void>,nn::sf::OutBuffer const&)'), ('nn::account::baas::IAdministrator', 131, 'RefreshNintendoAccountUserResourceCacheAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 132, 'RefreshNintendoAccountUserResourceCacheAsyncIfSecondsElapsed', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,unsigned int)'), ('nn::account::baas::IAdministrator', 150, 'CreateAuthorizationRequest', '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x108>, Buffer<1,0x19,0x200>, InHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IAuthorizationRequest>,void>,nn::account::nas::NasClientInfo const&,nn::account::NintendoAccountAuthorizationRequestParameters const&,nn::sf::NativeHandle &&,unsigned int)'), ('nn::account::baas::IAdministrator', 200, 'IsRegistered', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::account::baas::IAdministrator', 201, 'RegisterAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 202, 'UnregisterAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 203, 'DeleteRegistrationInfoLocally', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::baas::IAdministrator', 220, 'SynchronizeProfileAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 221, 'UploadProfileAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 222, 'SynchronizeProfileAsyncIfSecondsElapsed', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,unsigned int)'), ('nn::account::baas::IAdministrator', 250, 'IsLinkedWithNintendoAccount', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::account::baas::IAdministrator', 251, 'CreateProcedureToLinkWithNintendoAccount', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForNintendoAccountLinkage>,void>)'), ('nn::account::baas::IAdministrator', 252, 'ResumeProcedureToLinkWithNintendoAccount', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForNintendoAccountLinkage>,void>,nn::account::detail::Uuid const&)'), ('nn::account::baas::IAdministrator', 255, 'CreateProcedureToUpdateLinkageStateOfNintendoAccount', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>)'), ('nn::account::baas::IAdministrator', 256, 'ResumeProcedureToUpdateLinkageStateOfNintendoAccount', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>,nn::account::detail::Uuid const&)'), ('nn::account::baas::IAdministrator', 260, 'CreateProcedureToLinkNnidWithNintendoAccount', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>)'), ('nn::account::baas::IAdministrator', 261, 'ResumeProcedureToLinkNnidWithNintendoAccount', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>,nn::account::detail::Uuid const&)'), ('nn::account::baas::IAdministrator', 280, 'ProxyProcedureToAcquireApplicationAuthorizationForNintendoAccount', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>,nn::account::detail::Uuid const&)'), ('nn::account::baas::IAdministrator', 997, 'DebugUnlinkNintendoAccountAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::baas::IAdministrator', 998, 'DebugSetAvailabilityErrorDetail', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 0, 'PrepareAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 1, 'GetRequest', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>', '(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 2, 'ApplyResponse', '0 bytes in - 0 bytes out - Buffer<0,9,0>', '(nn::sf::InArray<char> const&)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 3, 'ApplyResponseAsync', '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,9,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::sf::InArray<char> const&)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 10, 'Suspend', '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>', '(nn::sf::Out<nn::account::detail::Uuid,void>)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 100, 'GetRequestWithTheme', '4 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>, InRaw<4,4,0>', '(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>,int)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 101, 'IsNetworkServiceAccountReplaced', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 199, 'GetUrlForIntroductionOfExtraMembership', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>', '(nn::sf::Out<nn::account::RequestUrl,void>)'), ('nn::account::http::IOAuthProcedure', 0, 'PrepareAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::http::IOAuthProcedure', 1, 'GetRequest', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>', '(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>)'), ('nn::account::http::IOAuthProcedure', 2, 'ApplyResponse', '0 bytes in - 0 bytes out - Buffer<0,9,0>', '(nn::sf::InArray<char> const&)'), ('nn::account::http::IOAuthProcedure', 3, 'ApplyResponseAsync', '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,9,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::sf::InArray<char> const&)'), ('nn::account::http::IOAuthProcedure', 10, 'Suspend', '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>', '(nn::sf::Out<nn::account::detail::Uuid,void>)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 0, 'PrepareAsync', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 1, 'GetRequest', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>', '(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 2, 'ApplyResponse', '0 bytes in - 0 bytes out - Buffer<0,9,0>', '(nn::sf::InArray<char> const&)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 3, 'ApplyResponseAsync', '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,9,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::sf::InArray<char> const&)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 10, 'Suspend', '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>', '(nn::sf::Out<nn::account::detail::Uuid,void>)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 100, 'GetAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 101, 'GetLinkedNintendoAccountId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::account::NintendoAccountId,void>)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 102, 'GetNickname', '0 bytes in - 0 bytes out - Buffer<0,0xA,0>', '(nn::sf::OutArray<char> const&)'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 103, 'GetProfileImage', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::account::detail::ISessionObject', 999, 'Dummy', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::IBaasAccessTokenAccessor', 0, 'EnsureCacheAsync', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&)'), ('nn::account::IBaasAccessTokenAccessor', 1, 'LoadCache', '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::account::Uid const&)'), ('nn::account::IBaasAccessTokenAccessor', 2, 'GetDeviceAccountId', '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x10,8,0>', '(nn::sf::Out<unsigned long,void>,nn::account::Uid const&)'), ('nn::account::IBaasAccessTokenAccessor', 50, 'RegisterNotificationTokenAsync', '0x38 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0x28>, InRaw<0x28,1,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&,nn::npns::NotificationToken const&)'), ('nn::account::IBaasAccessTokenAccessor', 51, 'UnregisterNotificationTokenAsync', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&)'), ('nn::account::detail::IAsyncContext', 0, 'GetSystemEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::account::detail::IAsyncContext', 1, 'Cancel', '0 bytes in - 0 bytes out', '(void)'), ('nn::account::detail::IAsyncContext', 2, 'HasDone', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::account::detail::IAsyncContext', 3, 'GetResult', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IAllSystemAppletProxiesService', 100, 'OpenSystemAppletProxy', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISystemAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&)'), ('nn::am::service::IAllSystemAppletProxiesService', 200, 'OpenLibraryAppletProxyOld', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&)'), ('nn::am::service::IAllSystemAppletProxiesService', 201, 'OpenLibraryAppletProxy', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>, Buffer<0,0x15,0x80>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&,nn::am::AppletAttribute const&)'), ('nn::am::service::IAllSystemAppletProxiesService', 300, 'OpenOverlayAppletProxy', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IOverlayAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&)'), ('nn::am::service::IAllSystemAppletProxiesService', 350, 'OpenSystemApplicationProxy', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationProxy>,void>,unsigned long,nn::sf::NativeHandle &&)'), ('nn::am::service::IAllSystemAppletProxiesService', 400, 'CreateSelfLibraryAppletCreatorForDevelop', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>,unsigned long)'), ('nn::am::service::ISystemAppletProxy', 0, 'GetCommonStateGetter', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)'), ('nn::am::service::ISystemAppletProxy', 1, 'GetSelfController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)'), ('nn::am::service::ISystemAppletProxy', 2, 'GetWindowController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)'), ('nn::am::service::ISystemAppletProxy', 3, 'GetAudioController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)'), ('nn::am::service::ISystemAppletProxy', 4, 'GetDisplayController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)'), ('nn::am::service::ISystemAppletProxy', 1000, 'GetDebugFunctions', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)'), ('nn::am::service::ISystemAppletProxy', 10, 'GetProcessWindingController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)'), ('nn::am::service::ISystemAppletProxy', 11, 'GetLibraryAppletCreator', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)'), ('nn::am::service::ISystemAppletProxy', 20, 'GetHomeMenuFunctions', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IHomeMenuFunctions>,void>)'), ('nn::am::service::ISystemAppletProxy', 21, 'GetGlobalStateController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IGlobalStateController>,void>)'), ('nn::am::service::ISystemAppletProxy', 22, 'GetApplicationCreator', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationCreator>,void>)'), ('nn::am::service::ICommonStateGetter', 0, 'GetEventHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ICommonStateGetter', 1, 'ReceiveMessage', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<nn::am::AppletMessage,void>)'), ('nn::am::service::ICommonStateGetter', 2, 'GetThisAppletKind', '0 bytes in - 8 bytes out - OutRaw<8,4,0>', '(nn::sf::Out<nn::am::service::AppletKind,void>)'), ('nn::am::service::ICommonStateGetter', 3, 'AllowToEnterSleep', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ICommonStateGetter', 4, 'DisallowToEnterSleep', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ICommonStateGetter', 5, 'GetOperationMode', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<unsigned char,void>)'), ('nn::am::service::ICommonStateGetter', 6, 'GetPerformanceMode', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::am::service::ICommonStateGetter', 7, 'GetCradleStatus', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<unsigned char,void>)'), ('nn::am::service::ICommonStateGetter', 8, 'GetBootMode', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<unsigned char,void>)'), ('nn::am::service::ICommonStateGetter', 9, 'GetCurrentFocusState', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<unsigned char,void>)'), ('nn::am::service::ICommonStateGetter', 10, 'RequestToAcquireSleepLock', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ICommonStateGetter', 11, 'ReleaseSleepLock', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ICommonStateGetter', 12, 'ReleaseSleepLockTransiently', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ICommonStateGetter', 13, 'GetAcquiredSleepLockEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ICommonStateGetter', 20, 'PushToGeneralChannel', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ICommonStateGetter', 30, 'GetHomeButtonReaderLockAccessor', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>)'), ('nn::am::service::ICommonStateGetter', 31, 'GetReaderLockAccessorEx', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>,int)'), ('nn::am::service::ICommonStateGetter', 40, 'GetCradleFwVersion', '0 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>, OutRaw<4,4,0xC>', '(nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>)'), ('nn::am::service::ICommonStateGetter', 50, 'IsVrModeEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::ICommonStateGetter', 51, 'SetVrModeEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ICommonStateGetter', 55, 'IsInControllerFirmwareUpdateSection', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::ICommonStateGetter', 60, 'GetDefaultDisplayResolution', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', '(nn::sf::Out<int,void>,nn::sf::Out<int,void>)'), ('nn::am::service::ICommonStateGetter', 61, 'GetDefaultDisplayResolutionChangeEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ILockAccessor', 1, 'TryLock', '1 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>, InRaw<1,1,0>', '(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>,bool)'), ('nn::am::service::ILockAccessor', 2, 'Unlock', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILockAccessor', 3, 'GetEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ISelfController', 0, 'Exit', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ISelfController', 1, 'LockExit', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ISelfController', 2, 'UnlockExit', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ISelfController', 3, 'EnterFatalSection', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ISelfController', 4, 'LeaveFatalSection', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ISelfController', 9, 'GetLibraryAppletLaunchableEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ISelfController', 10, 'SetScreenShotPermission', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::am::service::ISelfController', 11, 'SetOperationModeChangedNotification', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 12, 'SetPerformanceModeChangedNotification', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 13, 'SetFocusHandlingMode', '3 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<1,1,1>, InRaw<1,1,2>', '(bool,bool,bool)'), ('nn::am::service::ISelfController', 14, 'SetRestartMessageEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 15, 'SetScreenShotAppletIdentityInfo', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::am::service::AppletIdentityInfo const&)'), ('nn::am::service::ISelfController', 16, 'SetOutOfFocusSuspendingEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 17, 'SetControllerFirmwareUpdateSection', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 18, 'SetRequiresCaptureButtonShortPressedMessage', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 19, 'SetScreenShotImageOrientation', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::am::service::ISelfController', 40, 'CreateManagedDisplayLayer', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>)'), ('nn::am::service::ISelfController', 50, 'SetHandlesRequestToDisplay', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 51, 'ApproveToDisplay', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ISelfController', 60, 'OverrideAutoSleepTimeAndDimmingTime', '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<4,4,0xC>', '(int,int,int,int)'), ('nn::am::service::ISelfController', 61, 'SetMediaPlaybackState', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ISelfController', 62, 'SetIdleTimeDetectionExtension', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::am::service::ISelfController', 63, 'GetIdleTimeDetectionExtension', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::am::service::ISelfController', 64, 'SetInputDetectionSourceSet', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::am::service::ISelfController', 65, 'ReportUserIsActive', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ISelfController', 66, 'GetCurrentIlluminance', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<float,void>)'), ('nn::am::service::ISelfController', 67, 'IsIlluminanceAvailable', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::IWindowController', 0, 'CreateWindow', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindow>,void>,nn::am::service::WindowCreationOption)'), ('nn::am::service::IWindowController', 1, 'GetAppletResourceUserId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::applet::AppletResourceUserId,void>)'), ('nn::am::service::IWindowController', 10, 'AcquireForegroundRights', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IWindowController', 11, 'ReleaseForegroundRights', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IWindowController', 12, 'RejectToChangeIntoBackground', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IAudioController', 0, 'SetExpectedMasterVolume', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(float,float)'), ('nn::am::service::IAudioController', 1, 'GetMainAppletExpectedMasterVolume', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<float,void>)'), ('nn::am::service::IAudioController', 2, 'GetLibraryAppletExpectedMasterVolume', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<float,void>)'), ('nn::am::service::IAudioController', 3, 'ChangeMainAppletMasterVolume', '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<8,8,8>', '(float,long)'), ('nn::am::service::IAudioController', 4, 'SetTransparentVolumeRate', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(float)'), ('nn::am::service::IDisplayController', 0, 'GetLastForegroundCaptureImage', '0 bytes in - 0 bytes out - Buffer<0,6,0>', '(nn::sf::OutBuffer const&)'), ('nn::am::service::IDisplayController', 1, 'UpdateLastForegroundCaptureImage', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IDisplayController', 2, 'GetLastApplicationCaptureImage', '0 bytes in - 0 bytes out - Buffer<0,6,0>', '(nn::sf::OutBuffer const&)'), ('nn::am::service::IDisplayController', 3, 'GetCallerAppletCaptureImage', '0 bytes in - 0 bytes out - Buffer<0,6,0>', '(nn::sf::OutBuffer const&)'), ('nn::am::service::IDisplayController', 4, 'UpdateCallerAppletCaptureImage', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IDisplayController', 5, 'GetLastForegroundCaptureImageEx', '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,6,0>', '(nn::sf::Out<bool,void>,nn::sf::OutBuffer const&)'), ('nn::am::service::IDisplayController', 6, 'GetLastApplicationCaptureImageEx', '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,6,0>', '(nn::sf::Out<bool,void>,nn::sf::OutBuffer const&)'), ('nn::am::service::IDisplayController', 7, 'GetCallerAppletCaptureImageEx', '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,6,0>', '(nn::sf::Out<bool,void>,nn::sf::OutBuffer const&)'), ('nn::am::service::IDisplayController', 8, 'TakeScreenShotOfOwnLayer', '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>', '(int,bool)'), ('nn::am::service::IDisplayController', 10, 'AcquireLastApplicationCaptureBuffer', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IDisplayController', 11, 'ReleaseLastApplicationCaptureBuffer', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IDisplayController', 12, 'AcquireLastForegroundCaptureBuffer', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IDisplayController', 13, 'ReleaseLastForegroundCaptureBuffer', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IDisplayController', 14, 'AcquireCallerAppletCaptureBuffer', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IDisplayController', 15, 'ReleaseCallerAppletCaptureBuffer', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IDisplayController', 16, 'AcquireLastApplicationCaptureBufferEx', '0 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>', '(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IDisplayController', 17, 'AcquireLastForegroundCaptureBufferEx', '0 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>', '(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IDisplayController', 18, 'AcquireCallerAppletCaptureBufferEx', '0 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>', '(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IDisplayController', 20, 'ClearCaptureBuffer', '0xC bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>, InRaw<4,4,8>', '(int,bool,unsigned int)'), ('nn::am::service::IDisplayController', 21, 'ClearAppletTransitionBuffer', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::am::service::IDebugFunctions', 0, 'NotifyMessageToHomeMenuForDebug', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::am::AppletMessage)'), ('nn::am::service::IDebugFunctions', 1, 'OpenMainApplication', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>)'), ('nn::am::service::IDebugFunctions', 10, 'EmulateButtonEvent', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::am::service::EmulatedButtonEvent)'), ('nn::am::service::IDebugFunctions', 20, 'InvalidateTransitionLayer', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationAccessor', 0, 'GetAppletStateChangedEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IApplicationAccessor', 1, 'IsCompleted', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::IApplicationAccessor', 10, 'Start', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationAccessor', 20, 'RequestExit', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationAccessor', 25, 'Terminate', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationAccessor', 30, 'GetResult', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationAccessor', 101, 'RequestForApplicationToGetForeground', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationAccessor', 110, 'TerminateAllLibraryApplets', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationAccessor', 111, 'AreAnyLibraryAppletsLeft', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::IApplicationAccessor', 112, 'GetCurrentLibraryApplet', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAppletAccessor>,void>)'), ('nn::am::service::IApplicationAccessor', 120, 'GetApplicationId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::ncm::ApplicationId,void>)'), ('nn::am::service::IApplicationAccessor', 121, 'PushLaunchParameter', '4 bytes in - 0 bytes out - InRaw<4,4,0>, InObject<0,0>', '(unsigned int,nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::IApplicationAccessor', 122, 'GetApplicationControlProperty', '0 bytes in - 0 bytes out - Buffer<0,6,0>', '(nn::sf::OutBuffer const&)'), ('nn::am::service::IApplicationAccessor', 123, 'GetApplicationLaunchProperty', '0 bytes in - 0 bytes out - Buffer<0,6,0>', '(nn::sf::OutBuffer const&)'), ('nn::am::service::IAppletAccessor', 0, 'GetAppletStateChangedEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IAppletAccessor', 1, 'IsCompleted', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::IAppletAccessor', 10, 'Start', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IAppletAccessor', 20, 'RequestExit', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IAppletAccessor', 25, 'Terminate', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IAppletAccessor', 30, 'GetResult', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IProcessWindingController', 0, 'GetLaunchReason', '0 bytes in - 4 bytes out - OutRaw<4,1,0>', '(nn::sf::Out<nn::am::service::AppletProcessLaunchReason,void>)'), ('nn::am::service::IProcessWindingController', 11, 'OpenCallingLibraryApplet', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletAccessor>,void>)'), ('nn::am::service::IProcessWindingController', 21, 'PushContext', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::IProcessWindingController', 22, 'PopContext', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)'), ('nn::am::service::IProcessWindingController', 23, 'CancelWindingReservation', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IProcessWindingController', 30, 'WindAndDoReserved', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IProcessWindingController', 40, 'ReserveToStartAndWaitAndUnwindThis', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::ILibraryAppletAccessor>)'), ('nn::am::service::ILibraryAppletAccessor', 0, 'GetAppletStateChangedEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ILibraryAppletAccessor', 1, 'IsCompleted', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::ILibraryAppletAccessor', 10, 'Start', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILibraryAppletAccessor', 20, 'RequestExit', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILibraryAppletAccessor', 25, 'Terminate', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILibraryAppletAccessor', 30, 'GetResult', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILibraryAppletAccessor', 50, 'SetOutOfFocusApplicationSuspendingEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::ILibraryAppletAccessor', 100, 'PushInData', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ILibraryAppletAccessor', 101, 'PopOutData', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)'), ('nn::am::service::ILibraryAppletAccessor', 102, 'PushExtraStorage', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ILibraryAppletAccessor', 103, 'PushInteractiveInData', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ILibraryAppletAccessor', 104, 'PopInteractiveOutData', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)'), ('nn::am::service::ILibraryAppletAccessor', 105, 'GetPopOutDataEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ILibraryAppletAccessor', 106, 'GetPopInteractiveOutDataEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ILibraryAppletAccessor', 110, 'NeedsToExitProcess', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::ILibraryAppletAccessor', 120, 'GetLibraryAppletInfo', '0 bytes in - 8 bytes out - OutRaw<8,4,0>', '(nn::sf::Out<nn::am::service::LibraryAppletInfo,void>)'), ('nn::am::service::ILibraryAppletAccessor', 150, 'RequestForAppletToGetForeground', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILibraryAppletAccessor', 160, 'GetIndirectLayerConsumerHandle', '8 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>,nn::applet::AppletResourceUserId)'), ('nn::am::service::IStorage', 0, 'Open', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorageAccessor>,void>)'), ('nn::am::service::IStorage', 1, 'OpenTransferStorage', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ITransferStorageAccessor>,void>)'), ('nn::am::service::IStorageAccessor', 0, 'GetSize', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::am::service::IStorageAccessor', 10, 'Write', '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x21,0>', '(long,nn::sf::InBuffer const&)'), ('nn::am::service::IStorageAccessor', 11, 'Read', '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x22,0>', '(long,nn::sf::OutBuffer const&)'), ('nn::am::service::ITransferStorageAccessor', 0, 'GetSize', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::am::service::ITransferStorageAccessor', 1, 'GetHandle', '0 bytes in - 8 bytes out - OutHandle<0,1>, OutRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<unsigned long,void>)'), ('nn::am::service::ILibraryAppletCreator', 0, 'CreateLibraryApplet', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletAccessor>,void>,unsigned int,unsigned int)'), ('nn::am::service::ILibraryAppletCreator', 1, 'TerminateAllLibraryApplets', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILibraryAppletCreator', 2, 'AreAnyLibraryAppletsLeft', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::ILibraryAppletCreator', 10, 'CreateStorage', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,long)'), ('nn::am::service::ILibraryAppletCreator', 11, 'CreateTransferMemoryStorage', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<8,8,8>, InRaw<1,1,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,nn::sf::NativeHandle &&,long,bool)'), ('nn::am::service::ILibraryAppletCreator', 12, 'CreateHandleStorage', '8 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,nn::sf::NativeHandle &&,long)'), ('nn::am::service::IHomeMenuFunctions', 10, 'RequestToGetForeground', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IHomeMenuFunctions', 11, 'LockForeground', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IHomeMenuFunctions', 12, 'UnlockForeground', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IHomeMenuFunctions', 20, 'PopFromGeneralChannel', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)'), ('nn::am::service::IHomeMenuFunctions', 21, 'GetPopFromGeneralChannelEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::IHomeMenuFunctions', 30, 'GetHomeButtonWriterLockAccessor', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>)'), ('nn::am::service::IHomeMenuFunctions', 31, 'GetWriterLockAccessorEx', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>,int)'), ('nn::am::service::IGlobalStateController', 0, 'RequestToEnterSleep', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IGlobalStateController', 1, 'EnterSleep', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IGlobalStateController', 2, 'StartSleepSequence', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::IGlobalStateController', 3, 'StartShutdownSequence', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IGlobalStateController', 4, 'StartRebootSequence', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IGlobalStateController', 10, 'LoadAndApplyIdlePolicySettings', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IGlobalStateController', 11, 'NotifyCecSettingsChanged', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IGlobalStateController', 12, 'SetDefaultHomeButtonLongPressTime', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(long)'), ('nn::am::service::IGlobalStateController', 13, 'UpdateDefaultDisplayResolution', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IGlobalStateController', 14, 'ShouldSleepOnBoot', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::IApplicationCreator', 0, 'CreateApplication', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>,nn::ncm::ApplicationId)'), ('nn::am::service::IApplicationCreator', 1, 'PopLaunchRequestedApplication', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>)'), ('nn::am::service::IApplicationCreator', 10, 'CreateSystemApplication', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>,nn::ncm::SystemApplicationId)'), ('nn::am::service::IApplicationCreator', 100, 'PopFloatingApplicationForDevelopment', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>)'), ('nn::am::service::ILibraryAppletProxy', 0, 'GetCommonStateGetter', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)'), ('nn::am::service::ILibraryAppletProxy', 1, 'GetSelfController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)'), ('nn::am::service::ILibraryAppletProxy', 2, 'GetWindowController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)'), ('nn::am::service::ILibraryAppletProxy', 3, 'GetAudioController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)'), ('nn::am::service::ILibraryAppletProxy', 4, 'GetDisplayController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)'), ('nn::am::service::ILibraryAppletProxy', 1000, 'GetDebugFunctions', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)'), ('nn::am::service::ILibraryAppletProxy', 10, 'GetProcessWindingController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)'), ('nn::am::service::ILibraryAppletProxy', 11, 'GetLibraryAppletCreator', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)'), ('nn::am::service::ILibraryAppletProxy', 20, 'OpenLibraryAppletSelfAccessor', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletSelfAccessor>,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 0, 'PopInData', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 1, 'PushOutData', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 2, 'PopInteractiveInData', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 3, 'PushInteractiveOutData', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 5, 'GetPopInDataEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 6, 'GetPopInteractiveInDataEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 10, 'ExitProcessAndReturn', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::ILibraryAppletSelfAccessor', 11, 'GetLibraryAppletInfo', '0 bytes in - 8 bytes out - OutRaw<8,4,0>', '(nn::sf::Out<nn::am::service::LibraryAppletInfo,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 12, 'GetMainAppletIdentityInfo', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::am::service::AppletIdentityInfo,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 13, 'CanUseApplicationCore', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 14, 'GetCallerAppletIdentityInfo', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::am::service::AppletIdentityInfo,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 15, 'GetMainAppletApplicationControlProperty', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x4000>', '(nn::sf::Out<nn::ns::ApplicationControlProperty,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 16, 'GetMainAppletStorageId', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<nn::ncm::StorageId,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 17, 'GetCallerAppletIdentityInfoStack', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::am::service::AppletIdentityInfo> const&)'), ('nn::am::service::ILibraryAppletSelfAccessor', 20, 'PopExtraStorage', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 25, 'GetPopExtraStorageEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 30, 'UnpopInData', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 31, 'UnpopExtraStorage', '0 bytes in - 0 bytes out - InObject<0,0>', '(nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 40, 'GetIndirectLayerProducerHandle', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>)'), ('nn::am::service::ILibraryAppletSelfAccessor', 50, 'ReportVisibleError', '8 bytes in - 0 bytes out - InRaw<8,4,0>', '(nn::err::ErrorCode)'), ('nn::am::service::IOverlayAppletProxy', 0, 'GetCommonStateGetter', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)'), ('nn::am::service::IOverlayAppletProxy', 1, 'GetSelfController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)'), ('nn::am::service::IOverlayAppletProxy', 2, 'GetWindowController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)'), ('nn::am::service::IOverlayAppletProxy', 3, 'GetAudioController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)'), ('nn::am::service::IOverlayAppletProxy', 4, 'GetDisplayController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)'), ('nn::am::service::IOverlayAppletProxy', 1000, 'GetDebugFunctions', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)'), ('nn::am::service::IOverlayAppletProxy', 10, 'GetProcessWindingController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)'), ('nn::am::service::IOverlayAppletProxy', 11, 'GetLibraryAppletCreator', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)'), ('nn::am::service::IOverlayAppletProxy', 20, 'GetOverlayFunctions', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IOverlayFunctions>,void>)'), ('nn::am::service::IOverlayFunctions', 0, 'BeginToWatchShortHomeButtonMessage', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IOverlayFunctions', 1, 'EndToWatchShortHomeButtonMessage', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IOverlayFunctions', 2, 'GetApplicationIdForLogo', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::ncm::ApplicationId,void>)'), ('nn::am::service::IOverlayFunctions', 3, 'SetGpuTimeSliceBoost', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::am::service::IOverlayFunctions', 4, 'SetAutoSleepTimeAndDimmingTimeEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::IOverlayFunctions', 5, 'TerminateApplicationAndSetReason', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::am::service::IOverlayFunctions', 6, 'SetScreenShotPermissionGlobally', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::IApplicationProxy', 0, 'GetCommonStateGetter', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)'), ('nn::am::service::IApplicationProxy', 1, 'GetSelfController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)'), ('nn::am::service::IApplicationProxy', 2, 'GetWindowController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)'), ('nn::am::service::IApplicationProxy', 3, 'GetAudioController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)'), ('nn::am::service::IApplicationProxy', 4, 'GetDisplayController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)'), ('nn::am::service::IApplicationProxy', 1000, 'GetDebugFunctions', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)'), ('nn::am::service::IApplicationProxy', 10, 'GetProcessWindingController', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)'), ('nn::am::service::IApplicationProxy', 11, 'GetLibraryAppletCreator', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)'), ('nn::am::service::IApplicationProxy', 20, 'GetApplicationFunctions', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationFunctions>,void>)'), ('nn::am::service::IApplicationFunctions', 1, 'PopLaunchParameter', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,unsigned int)'), ('nn::am::service::IApplicationFunctions', 10, 'CreateApplicationAndPushAndRequestToStart', '8 bytes in - 0 bytes out - InRaw<8,8,0>, InObject<0,0>', '(nn::ncm::ApplicationId,nn::sf::SharedPointer<nn::am::service::IStorage>)'), ('nn::am::service::IApplicationFunctions', 11, 'CreateApplicationAndPushAndRequestToStartForQuest', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::ncm::ApplicationId,nn::sf::SharedPointer<nn::am::service::IStorage>,unsigned int,unsigned int)'), ('nn::am::service::IApplicationFunctions', 20, 'EnsureSaveData', '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x10,8,0>', '(nn::sf::Out<long,void>,nn::account::Uid const&)'), ('nn::am::service::IApplicationFunctions', 21, 'GetDesiredLanguage', '0 bytes in - 8 bytes out - OutRaw<8,1,0>', '(nn::sf::Out<nn::settings::LanguageCode,void>)'), ('nn::am::service::IApplicationFunctions', 22, 'SetTerminateResult', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::am::service::IApplicationFunctions', 23, 'GetDisplayVersion', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', '(nn::sf::Out<nn::oe::DisplayVersion,void>)'), ('nn::am::service::IApplicationFunctions', 24, 'GetLaunchStorageInfoForDebug', '0 bytes in - 2 bytes out - OutRaw<1,1,0>, OutRaw<1,1,1>', '(nn::sf::Out<nn::ncm::StorageId,void>,nn::sf::Out<nn::ncm::StorageId,void>)'), ('nn::am::service::IApplicationFunctions', 25, 'ExtendSaveData', '0x28 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<1,1,0>, InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<8,8,0x20>', '(nn::sf::Out<long,void>,unsigned char,nn::account::Uid const&,long,long)'), ('nn::am::service::IApplicationFunctions', 26, 'GetSaveDataSize', '0x18 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<1,1,0>, InRaw<0x10,8,8>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned char,nn::account::Uid const&)'), ('nn::am::service::IApplicationFunctions', 30, 'BeginBlockingHomeButtonShortAndLongPressed', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(long)'), ('nn::am::service::IApplicationFunctions', 31, 'EndBlockingHomeButtonShortAndLongPressed', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationFunctions', 32, 'BeginBlockingHomeButton', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(long)'), ('nn::am::service::IApplicationFunctions', 33, 'EndBlockingHomeButton', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationFunctions', 40, 'NotifyRunning', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::IApplicationFunctions', 50, 'GetPseudoDeviceId', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', '(nn::sf::Out<nn::util::Uuid,void>)'), ('nn::am::service::IApplicationFunctions', 60, 'SetMediaPlaybackStateForApplication', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::am::service::IApplicationFunctions', 65, 'IsGamePlayRecordingSupported', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::am::service::IApplicationFunctions', 66, 'InitializeGamePlayRecording', '8 bytes in - 0 bytes out - InHandle<0,1>, InRaw<8,8,0>', '(nn::sf::NativeHandle &&,unsigned long)'), ('nn::am::service::IApplicationFunctions', 67, 'SetGamePlayRecordingState', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::am::service::IApplicationFunctions', 70, 'RequestToShutdown', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationFunctions', 71, 'RequestToReboot', '0 bytes in - 0 bytes out', '(void)'), ('nn::am::service::IApplicationProxyService', 0, 'OpenApplicationProxy', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>', '(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationProxy>,void>,unsigned long,nn::sf::NativeHandle &&)'), ('nn::apm::IManager', 0, 'OpenSession', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::apm::ISession>,void>)'), ('nn::apm::IManager', 1, 'GetPerformanceMode', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<nn::apm::PerformanceMode,void>)'), ('nn::apm::ISession', 0, 'SetPerformanceConfiguration', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(nn::apm::PerformanceMode,nn::apm::PerformanceConfiguration)'), ('nn::apm::ISession', 1, 'GetPerformanceConfiguration', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::apm::PerformanceConfiguration,void>,nn::apm::PerformanceMode)'), ('nn::apm::ISystemManager', 0, 'RequestPerformanceMode', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::apm::PerformanceMode)'), ('nn::apm::ISystemManager', 1, 'GetPerformanceEvent', '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::apm::EventTarget)'), ('nn::apm::ISystemManager', 2, 'GetThrottlingState', '0 bytes in - 0x28 bytes out - OutRaw<0x28,8,0>', '(nn::sf::Out<nn::apm::ThrottlingState,void>)'), ('nn::apm::ISystemManager', 3, 'GetLastThrottlingState', '0 bytes in - 0x28 bytes out - OutRaw<0x28,8,0>', '(nn::sf::Out<nn::apm::ThrottlingState,void>)'), ('nn::apm::ISystemManager', 4, 'ClearLastThrottlingState', '0 bytes in - 0 bytes out', '(void)'), ('nn::apm::IManagerPrivileged', 0, 'OpenSession', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::apm::ISession>,void>)'), ('nn::bcat::detail::ipc::IServiceCreator', 0, 'CreateBcatService', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IBcatService>,void>,unsigned long)'), ('nn::bcat::detail::ipc::IServiceCreator', 1, 'CreateDeliveryCacheStorageService', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheStorageService>,void>,unsigned long)'), ('nn::bcat::detail::ipc::IServiceCreator', 2, 'CreateDeliveryCacheStorageServiceWithApplicationId', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheStorageService>,void>,nn::ApplicationId)'), ('nn::bcat::detail::ipc::IBcatService', 10100, 'RequestSyncDeliveryCache', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheProgressService>,void>)'), ('nn::bcat::detail::ipc::IBcatService', 20100, 'RequestSyncDeliveryCacheWithApplicationId', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheProgressService>,void>,nn::ApplicationId,unsigned int)'), ('nn::bcat::detail::ipc::IBcatService', 30100, 'SetPassphrase', '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,9,0>', '(nn::ApplicationId,nn::sf::InArray<char> const&)'), ('nn::bcat::detail::ipc::IBcatService', 30200, 'RegisterBackgroundDeliveryTask', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::ApplicationId,unsigned int)'), ('nn::bcat::detail::ipc::IBcatService', 30201, 'UnregisterBackgroundDeliveryTask', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ApplicationId)'), ('nn::bcat::detail::ipc::IBcatService', 30202, 'BlockDeliveryTask', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ApplicationId)'), ('nn::bcat::detail::ipc::IBcatService', 30203, 'UnblockDeliveryTask', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ApplicationId)'), ('nn::bcat::detail::ipc::IBcatService', 90100, 'EnumerateBackgroundDeliveryTask', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::TaskInfo> const&)'), ('nn::bcat::detail::ipc::IBcatService', 90200, 'GetDeliveryList', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&,nn::ApplicationId)'), ('nn::bcat::detail::ipc::IBcatService', 90201, 'ClearDeliveryCacheStorage', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ApplicationId)'), ('nn::bcat::detail::ipc::IBcatService', 90300, 'GetPushNotificationLog', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::PushNotificationLog> const&)'), ('nn::bcat::detail::ipc::IDeliveryCacheProgressService', 0, 'GetEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::bcat::detail::ipc::IDeliveryCacheProgressService', 1, 'GetImpl', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x200>', '(nn::sf::Out<nn::bcat::detail::DeliveryCacheProgressImpl,void>)'), ('nn::bcat::detail::ipc::IDeliveryCacheStorageService', 0, 'CreateFileService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheFileService>,void>)'), ('nn::bcat::detail::ipc::IDeliveryCacheStorageService', 1, 'CreateDirectoryService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheDirectoryService>,void>)'), ('nn::bcat::detail::ipc::IDeliveryCacheStorageService', 10, 'EnumerateDeliveryCacheDirectory', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::DirectoryName> const&)'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 0, 'Open', '0x40 bytes in - 0 bytes out - InRaw<0x20,1,0>, InRaw<0x20,1,0x20>', '(nn::bcat::DirectoryName const&,nn::bcat::FileName const&)'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 1, 'Read', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned long,void>,long,nn::sf::OutBuffer const&)'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 2, 'GetSize', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 3, 'GetDigest', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::bcat::Digest,void>)'), ('nn::bcat::detail::ipc::IDeliveryCacheDirectoryService', 0, 'Open', '0x20 bytes in - 0 bytes out - InRaw<0x20,1,0>', '(nn::bcat::DirectoryName const&)'), ('nn::bcat::detail::ipc::IDeliveryCacheDirectoryService', 1, 'Read', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::DeliveryCacheDirectoryEntry> const&)'), ('nn::bcat::detail::ipc::IDeliveryCacheDirectoryService', 2, 'GetCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::codec::detail::IHardwareOpusDecoderManager', 0, '', '0xC bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,4,0>, InHandle<0,1>, InRaw<4,4,8>', ''), ('nn::codec::detail::IHardwareOpusDecoderManager', 1, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::codec::detail::IHardwareOpusDecoderManager', 2, '', '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x110>, InHandle<0,1>, InRaw<4,4,0>', ''), ('nn::codec::detail::IHardwareOpusDecoderManager', 3, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x19,0x110>', ''), ('nn::codec::detail::IHardwareOpusDecoder', 0, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,6,0>, Buffer<1,5,0>', ''), ('nn::codec::detail::IHardwareOpusDecoder', 1, '', '0 bytes in - 0 bytes out - Buffer<0,5,0>', ''), ('nn::codec::detail::IHardwareOpusDecoder', 2, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,6,0>, Buffer<1,5,0>', ''), ('nn::codec::detail::IHardwareOpusDecoder', 3, '', '0 bytes in - 0 bytes out - Buffer<0,5,0>', ''), ('nn::friends::detail::ipc::IServiceCreator', 0, 'CreateFriendService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::friends::detail::ipc::IFriendService>,void>)'), ('nn::friends::detail::ipc::IServiceCreator', 1, 'CreateNotificationService', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::friends::detail::ipc::INotificationService>,void>,nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 0, 'GetCompletionEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::friends::detail::ipc::IFriendService', 1, 'Cancel', '0 bytes in - 0 bytes out', '(void)'), ('nn::friends::detail::ipc::IFriendService', 10100, 'GetFriendListIds', '0x30 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<0x10,8,8>, InRaw<4,4,0>, InRaw<0x10,8,0x18>, InRaw<8,8,0x28>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::account::NetworkServiceAccountId> const&,nn::account::Uid const&,int,nn::friends::detail::ipc::SizedFriendFilter const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 10101, 'GetFriendList', '0x30 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>, InRaw<0x10,8,0x18>, InRaw<8,8,0x28>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::FriendImpl> const&,nn::account::Uid const&,int,nn::friends::detail::ipc::SizedFriendFilter const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 10102, 'UpdateFriendInfo', '0x18 bytes in - 0 bytes out - takes pid - Buffer<0,6,0>, InRaw<0x10,8,0>, Buffer<1,9,0>, InRaw<8,8,0x10>', '(nn::sf::OutArray<nn::friends::detail::FriendImpl> const&,nn::account::Uid const&,nn::sf::InArray<nn::account::NetworkServiceAccountId> const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 10110, 'GetFriendProfileImage', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId,nn::sf::OutBuffer const&)'), ('nn::friends::detail::ipc::IFriendService', 10200, 'SendFriendRequestForApplication', '0x20 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>, InRaw<8,8,0x18>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 10211, 'AddFacedFriendRequestForApplication', '0x80 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0x68>, InRaw<0x40,1,0>, InRaw<0x21,1,0x40>, Buffer<2,5,0>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>, InRaw<8,8,0x78>', '(nn::account::Uid const&,nn::friends::FacedFriendRequestRegistrationKey const&,nn::account::Nickname const&,nn::sf::InBuffer const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 10400, 'GetBlockedUserListIds', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::account::NetworkServiceAccountId> const&,nn::account::Uid const&,int)'), ('nn::friends::detail::ipc::IFriendService', 10500, 'GetProfileList', '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<0x10,8,0>, Buffer<1,9,0>', '(nn::sf::OutArray<nn::friends::detail::ProfileImpl> const&,nn::account::Uid const&,nn::sf::InArray<nn::account::NetworkServiceAccountId> const&)'), ('nn::friends::detail::ipc::IFriendService', 10600, 'DeclareOpenOnlinePlaySession', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 10601, 'DeclareCloseOnlinePlaySession', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 10610, 'UpdateUserPresence', '0x18 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, Buffer<0,0x19,0xE0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::friends::detail::UserPresenceImpl const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 10700, 'GetPlayHistoryRegistrationKey', '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<0x10,8,8>, InRaw<1,1,0>', '(nn::sf::Out<nn::friends::PlayHistoryRegistrationKey,void>,nn::account::Uid const&,bool)'), ('nn::friends::detail::ipc::IFriendService', 10701, 'GetPlayHistoryRegistrationKeyWithNetworkServiceAccountId', '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,8,8>, InRaw<1,1,0>', '(nn::sf::Out<nn::friends::PlayHistoryRegistrationKey,void>,nn::account::NetworkServiceAccountId,bool)'), ('nn::friends::detail::ipc::IFriendService', 10702, 'AddPlayHistory', '0x18 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, Buffer<0,0x19,0x40>, Buffer<1,0x19,0x48>, Buffer<2,0x19,0x48>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::friends::PlayHistoryRegistrationKey const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 11000, 'GetProfileImageUrl', '0xA4 bytes in - 0xA0 bytes out - OutRaw<0xA0,1,0>, InRaw<0xA0,1,0>, InRaw<4,4,0xA0>', '(nn::sf::Out<nn::friends::Url,void>,nn::friends::Url const&,int)'), ('nn::friends::detail::ipc::IFriendService', 20100, 'GetFriendCount', '0x28 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<0x10,8,0>, InRaw<0x10,8,0x10>, InRaw<8,8,0x20>', '(nn::sf::Out<int,void>,nn::account::Uid const&,nn::friends::detail::ipc::SizedFriendFilter const&,unsigned long)'), ('nn::friends::detail::ipc::IFriendService', 20101, 'GetNewlyFriendCount', '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>', '(nn::sf::Out<int,void>,nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20102, 'GetFriendDetailedInfo', '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x800>, InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::sf::Out<nn::friends::detail::FriendDetailedInfoImpl,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 20103, 'SyncFriendList', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20104, 'RequestSyncFriendList', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20110, 'LoadFriendSetting', '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::sf::Out<nn::friends::detail::FriendSettingImpl,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 20200, 'GetReceivedFriendRequestCount', '0x10 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x10,8,0>', '(nn::sf::Out<int,void>,nn::sf::Out<int,void>,nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20201, 'GetFriendRequestList', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::FriendRequestImpl> const&,nn::account::Uid const&,int,int)'), ('nn::friends::detail::ipc::IFriendService', 20300, 'GetFriendCandidateList', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::FriendCandidateImpl> const&,nn::account::Uid const&,int)'), ('nn::friends::detail::ipc::IFriendService', 20301, 'GetNintendoNetworkIdInfo', '0x18 bytes in - 4 bytes out - Buffer<0,0x1A,0x38>, OutRaw<4,4,0>, Buffer<1,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::sf::Out<nn::friends::NintendoNetworkIdUserInfo,void>,nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::NintendoNetworkIdFriendImpl> const&,nn::account::Uid const&,int)'), ('nn::friends::detail::ipc::IFriendService', 20400, 'GetBlockedUserList', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::BlockedUserImpl> const&,nn::account::Uid const&,int)'), ('nn::friends::detail::ipc::IFriendService', 20401, 'SyncBlockedUserList', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20500, 'GetProfileExtraList', '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<0x10,8,0>, Buffer<1,9,0>', '(nn::sf::OutArray<nn::friends::detail::ProfileExtraImpl> const&,nn::account::Uid const&,nn::sf::InArray<nn::account::NetworkServiceAccountId> const&)'), ('nn::friends::detail::ipc::IFriendService', 20501, 'GetRelationship', '0x18 bytes in - 8 bytes out - OutRaw<8,1,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::sf::Out<nn::friends::Relationship,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 20600, 'GetUserPresenceView', '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0xE0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::friends::detail::UserPresenceViewImpl,void>,nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20700, 'GetPlayHistoryList', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::PlayHistoryImpl> const&,nn::account::Uid const&,int)'), ('nn::friends::detail::ipc::IFriendService', 20701, 'GetPlayHistoryStatistics', '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::friends::PlayHistoryStatistics,void>,nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20800, 'LoadUserSetting', '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0x800>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::friends::detail::UserSettingImpl,void>,nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20801, 'SyncUserSetting', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 20900, 'RequestListSummaryOverlayNotification', '0 bytes in - 0 bytes out', '(void)'), ('nn::friends::detail::ipc::IFriendService', 21000, 'GetExternalApplicationCatalog', '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x4B8>, InRaw<0x10,8,8>, InRaw<8,1,0>', '(nn::sf::Out<nn::friends::ExternalApplicationCatalog,void>,nn::friends::ExternalApplicationCatalogId const&,nn::settings::LanguageCode)'), ('nn::friends::detail::ipc::IFriendService', 30100, 'DropFriendNewlyFlags', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 30101, 'DeleteFriend', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 30110, 'DropFriendNewlyFlag', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 30120, 'ChangeFriendFavoriteFlag', '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<1,1,0>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,bool)'), ('nn::friends::detail::ipc::IFriendService', 30121, 'ChangeFriendOnlineNotificationFlag', '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<1,1,0>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,bool)'), ('nn::friends::detail::ipc::IFriendService', 30200, 'SendFriendRequest', '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int)'), ('nn::friends::detail::ipc::IFriendService', 30201, 'SendFriendRequestWithApplicationInfo', '0x30 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,8,0x20>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::ApplicationInfo const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&)'), ('nn::friends::detail::ipc::IFriendService', 30202, 'CancelFriendRequest', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::friends::RequestId)'), ('nn::friends::detail::ipc::IFriendService', 30203, 'AcceptFriendRequest', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::friends::RequestId)'), ('nn::friends::detail::ipc::IFriendService', 30204, 'RejectFriendRequest', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::friends::RequestId)'), ('nn::friends::detail::ipc::IFriendService', 30205, 'ReadFriendRequest', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::friends::RequestId)'), ('nn::friends::detail::ipc::IFriendService', 30210, 'GetFacedFriendRequestRegistrationKey', '0x10 bytes in - 0x40 bytes out - OutRaw<0x40,1,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::friends::FacedFriendRequestRegistrationKey,void>,nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 30211, 'AddFacedFriendRequest', '0x78 bytes in - 0 bytes out - InRaw<0x10,8,0x68>, InRaw<0x40,1,0>, InRaw<0x21,1,0x40>, Buffer<0,5,0>', '(nn::account::Uid const&,nn::friends::FacedFriendRequestRegistrationKey const&,nn::account::Nickname const&,nn::sf::InBuffer const&)'), ('nn::friends::detail::ipc::IFriendService', 30212, 'CancelFacedFriendRequest', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 30213, 'GetFacedFriendRequestProfileImage', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId,nn::sf::OutBuffer const&)'), ('nn::friends::detail::ipc::IFriendService', 30214, 'GetFacedFriendRequestProfileImageFromPath', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,9,0>, Buffer<1,6,0>', '(nn::sf::Out<int,void>,nn::sf::InArray<char> const&,nn::sf::OutBuffer const&)'), ('nn::friends::detail::ipc::IFriendService', 30215, 'SendFriendRequestWithExternalApplicationCatalogId', '0x30 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,8,0x20>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::ExternalApplicationCatalogId const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&)'), ('nn::friends::detail::ipc::IFriendService', 30216, 'ResendFacedFriendRequest', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 30217, 'SendFriendRequestWithNintendoNetworkIdInfo', '0x80 bytes in - 0 bytes out - InRaw<0x10,8,0x68>, InRaw<8,8,0x78>, InRaw<4,4,0x60>, InRaw<0x20,1,0>, InRaw<0x10,1,0x20>, InRaw<0x20,1,0x30>, InRaw<0x10,1,0x50>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::MiiName const&,nn::friends::MiiImageUrlParam const&,nn::friends::MiiName const&,nn::friends::MiiImageUrlParam const&)'), ('nn::friends::detail::ipc::IFriendService', 30400, 'BlockUser', '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int)'), ('nn::friends::detail::ipc::IFriendService', 30401, 'BlockUserWithApplicationInfo', '0x30 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,8,0x20>, Buffer<0,0x19,0x48>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::ApplicationInfo const&,nn::friends::InAppScreenName const&)'), ('nn::friends::detail::ipc::IFriendService', 30402, 'UnblockUser', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::account::NetworkServiceAccountId)'), ('nn::friends::detail::ipc::IFriendService', 30500, 'GetProfileExtraFromFriendCode', '0x30 bytes in - 0 bytes out - Buffer<0,0x1A,0x400>, InRaw<0x10,8,0x20>, InRaw<0x20,1,0>', '(nn::sf::Out<nn::friends::detail::ProfileExtraImpl,void>,nn::account::Uid const&,nn::friends::FriendCode const&)'), ('nn::friends::detail::ipc::IFriendService', 30700, 'DeletePlayHistory', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 30810, 'ChangePresencePermission', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::account::Uid const&,int)'), ('nn::friends::detail::ipc::IFriendService', 30811, 'ChangeFriendRequestReception', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<1,1,0>', '(nn::account::Uid const&,bool)'), ('nn::friends::detail::ipc::IFriendService', 30812, 'ChangePlayLogPermission', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<4,4,0>', '(nn::account::Uid const&,int)'), ('nn::friends::detail::ipc::IFriendService', 30820, 'IssueFriendCode', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 30830, 'ClearPlayLog', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::IFriendService', 49900, 'DeleteNetworkServiceAccountCache', '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>', '(nn::account::Uid const&)'), ('nn::friends::detail::ipc::INotificationService', 0, 'GetEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::friends::detail::ipc::INotificationService', 1, 'Clear', '0 bytes in - 0 bytes out', '(void)'), ('nn::friends::detail::ipc::INotificationService', 2, 'Pop', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::friends::detail::ipc::SizedNotificationInfo,void>)'), ('nn::tma::IHtcsManager', 0, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 1, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::tma::IHtcsManager', 2, '', '0x48 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0x44>, InRaw<0x42,2,0>', ''), ('nn::tma::IHtcsManager', 3, '', '0x48 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0x44>, InRaw<0x42,2,0>', ''), ('nn::tma::IHtcsManager', 4, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 5, '', '4 bytes in - 0x4C bytes out - OutRaw<4,4,0x44>, OutRaw<4,4,0x48>, OutRaw<0x42,2,0>, InRaw<4,4,0>', ''), ('nn::tma::IHtcsManager', 6, '', '8 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,6,0>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 7, '', '8 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>, Buffer<0,5,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 8, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 9, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::tma::IHtcsManager', 10, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', ''), ('nn::tma::IHtcsManager', 11, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', ''), ('nn::tma::IHtcsManager', 12, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, OutObject<0,0>', ''), ('nn::tma::IHtcsManager', 13, '', '1 bytes in - 4 bytes out - OutRaw<4,4,0>, OutObject<0,0>, InRaw<1,1,0>', ''), ('nn::tma::IHtcsManager', 100, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::tma::IHtcsManager', 101, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::tma::ISocket', 0, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::tma::ISocket', 1, '', '0x42 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x42,2,0>', ''), ('nn::tma::ISocket', 2, '', '0x42 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x42,2,0>', ''), ('nn::tma::ISocket', 3, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 4, '', '0 bytes in - 0x48 bytes out - OutRaw<4,4,0x44>, OutObject<0,0>, OutRaw<0x42,2,0>', ''), ('nn::tma::ISocket', 5, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x22,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 6, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 7, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 8, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::ISocket', 9, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>', ''), ('nn::tma::ISocket', 10, '', '4 bytes in - 0x48 bytes out - OutRaw<4,4,0x44>, OutObject<0,0>, OutRaw<0x42,2,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 11, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::ISocket', 12, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x22,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 13, '', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<8,8,0x10>, InHandle<0,1>, InRaw<4,4,8>', ''), ('nn::tma::ISocket', 14, '', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 15, '', '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, InHandle<0,1>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 16, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::tma::IHtcsManager', 0, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 1, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::tma::IHtcsManager', 2, '', '0x48 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0x44>, InRaw<0x42,2,0>', ''), ('nn::tma::IHtcsManager', 3, '', '0x48 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0x44>, InRaw<0x42,2,0>', ''), ('nn::tma::IHtcsManager', 4, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 5, '', '4 bytes in - 0x4C bytes out - OutRaw<4,4,0x44>, OutRaw<4,4,0x48>, OutRaw<0x42,2,0>, InRaw<4,4,0>', ''), ('nn::tma::IHtcsManager', 6, '', '8 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,6,0>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 7, '', '8 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>, Buffer<0,5,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 8, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::IHtcsManager', 9, '', '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', ''), ('nn::tma::IHtcsManager', 10, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', ''), ('nn::tma::IHtcsManager', 11, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', ''), ('nn::tma::IHtcsManager', 12, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, OutObject<0,0>', ''), ('nn::tma::IHtcsManager', 13, '', '1 bytes in - 4 bytes out - OutRaw<4,4,0>, OutObject<0,0>, InRaw<1,1,0>', ''), ('nn::tma::IHtcsManager', 100, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::tma::IHtcsManager', 101, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::tma::ISocket', 0, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::tma::ISocket', 1, '', '0x42 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x42,2,0>', ''), ('nn::tma::ISocket', 2, '', '0x42 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x42,2,0>', ''), ('nn::tma::ISocket', 3, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 4, '', '0 bytes in - 0x48 bytes out - OutRaw<4,4,0x44>, OutObject<0,0>, OutRaw<0x42,2,0>', ''), ('nn::tma::ISocket', 5, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x22,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 6, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 7, '', '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 8, '', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::ISocket', 9, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>', ''), ('nn::tma::ISocket', 10, '', '4 bytes in - 0x48 bytes out - OutRaw<4,4,0x44>, OutObject<0,0>, OutRaw<0x42,2,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 11, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::tma::ISocket', 12, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x22,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 13, '', '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<8,8,0x10>, InHandle<0,1>, InRaw<4,4,8>', ''), ('nn::tma::ISocket', 14, '', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 15, '', '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, InHandle<0,1>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::tma::ISocket', 16, '', '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::lm::ILogService', 0, '', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', ''), ('nn::lm::ILogger', 0, '', '0 bytes in - 0 bytes out - Buffer<0,0x21,0>', ''), ('nn::lm::ILogger', 1, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::nfc::detail::ISystemManager', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::nfc::detail::ISystem', 0, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>', ''), ('nn::nfc::detail::ISystem', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::nfc::detail::ISystem', 2, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::nfc::detail::ISystem', 3, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::nfc::detail::ISystem', 100, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::nfc::detail::IUserManager', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::nfc::detail::IUser', 0, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>', ''), ('nn::nfc::detail::IUser', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::nfc::detail::IUser', 2, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::nfc::detail::IUser', 3, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::nfc::mifare::detail::IUserManager', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::nfc::mifare::detail::IUser', 0, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>', ''), ('nn::nfc::mifare::detail::IUser', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::nfc::mifare::detail::IUser', 2, '', '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 3, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 4, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 5, '', '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,4,0>, Buffer<1,5,0>', ''), ('nn::nfc::mifare::detail::IUser', 6, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>', ''), ('nn::nfc::mifare::detail::IUser', 7, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 8, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 9, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 10, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 11, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 12, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfc::mifare::detail::IUser', 13, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::nfp::detail::IDebugManager', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::nfp::detail::IDebug', 0, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IDebug', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::nfp::detail::IDebug', 2, '', '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>', ''), ('nn::nfp::detail::IDebug', 3, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 4, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 5, '', '0x10 bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, InRaw<4,4,0xC>', ''), ('nn::nfp::detail::IDebug', 6, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 7, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>', ''), ('nn::nfp::detail::IDebug', 8, '', '8 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 9, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IDebug', 10, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 11, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 12, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IDebug', 13, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 14, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 15, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 16, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 17, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 18, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 19, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::nfp::detail::IDebug', 20, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 21, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 22, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 23, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::nfp::detail::IDebug', 24, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IDebug', 100, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 101, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 102, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 103, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,0x19,0x100>', ''), ('nn::nfp::detail::IDebug', 104, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 105, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 106, '', '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 200, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x298>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 201, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,0x19,0x298>', ''), ('nn::nfp::detail::IDebug', 202, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 203, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>', ''), ('nn::nfp::detail::IDebug', 204, '', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', ''), ('nn::nfp::detail::IDebug', 205, '', '0 bytes in - 0 bytes out - Buffer<0,5,0>', ''), ('nn::nfp::detail::IDebug', 206, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>, InRaw<4,4,8>', ''), ('nn::nfp::detail::IDebug', 300, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IDebug', 301, '', '0 bytes in - 0 bytes out', ''), ('nn::nfp::detail::IDebug', 302, '', '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>', ''), ('nn::nfp::detail::IDebug', 303, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>', ''), ('nn::nfp::detail::IDebug', 304, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 305, '', '0x10 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<8,4,0>, Buffer<1,5,0>, InRaw<8,8,8>', ''), ('nn::nfp::detail::IDebug', 306, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 307, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 308, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 309, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::nfp::detail::IDebug', 310, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 311, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 312, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 313, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IDebug', 314, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::nfp::detail::ISystemManager', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::nfp::detail::ISystem', 0, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>', ''), ('nn::nfp::detail::ISystem', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::nfp::detail::ISystem', 2, '', '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>', ''), ('nn::nfp::detail::ISystem', 3, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 4, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 5, '', '0x10 bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, InRaw<4,4,0xC>', ''), ('nn::nfp::detail::ISystem', 6, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 10, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 11, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 13, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 14, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 15, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 16, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 17, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 18, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 19, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::nfp::detail::ISystem', 20, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 21, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 23, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::nfp::detail::ISystem', 100, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 101, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 102, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 103, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,0x19,0x100>', ''), ('nn::nfp::detail::ISystem', 104, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 105, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::ISystem', 106, '', '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUserManager', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::nfp::detail::IUser', 0, '', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IUser', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::nfp::detail::IUser', 2, '', '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>', ''), ('nn::nfp::detail::IUser', 3, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 4, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 5, '', '0x10 bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, InRaw<4,4,0xC>', ''), ('nn::nfp::detail::IUser', 6, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 7, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>', ''), ('nn::nfp::detail::IUser', 8, '', '8 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 9, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IUser', 10, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 11, '', '8 bytes in - 0 bytes out - InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 12, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>', ''), ('nn::nfp::detail::IUser', 13, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 14, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 15, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 16, '', '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 17, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 18, '', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 19, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::nfp::detail::IUser', 20, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 21, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 22, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>', ''), ('nn::nfp::detail::IUser', 23, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::nfp::detail::IUser', 24, '', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>', ''), ('nn::nifm::detail::IStaticService', 4, 'CreateGeneralServiceOld', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IGeneralService>,void>)'), ('nn::nifm::detail::IStaticService', 5, 'CreateGeneralService', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IGeneralService>,void>,unsigned long)'), ('nn::nifm::detail::IGeneralService', 1, 'GetClientId', '0 bytes in - 0 bytes out - Buffer<0,0x1A,4>', '(nn::sf::Out<nn::nifm::ClientId,void>)'), ('nn::nifm::detail::IGeneralService', 2, 'CreateScanRequest', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IScanRequest>,void>)'), ('nn::nifm::detail::IGeneralService', 4, 'CreateRequest', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IRequest>,void>,int)'), ('nn::nifm::detail::IGeneralService', 5, 'GetCurrentNetworkProfile', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x17C>', '(nn::sf::Out<nn::nifm::detail::sf::NetworkProfileData,void>)'), ('nn::nifm::detail::IGeneralService', 6, 'EnumerateNetworkInterfaces', '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::OutArray<nn::nifm::detail::sf::NetworkInterfaceInfo> const&,nn::sf::Out<int,void>,unsigned int)'), ('nn::nifm::detail::IGeneralService', 7, 'EnumerateNetworkProfiles', '1 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<1,1,0>', '(nn::sf::OutArray<nn::nifm::detail::sf::NetworkProfileBasicInfo> const&,nn::sf::Out<int,void>,unsigned char)'), ('nn::nifm::detail::IGeneralService', 8, 'GetNetworkProfile', '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0x17C>, InRaw<0x10,1,0>', '(nn::sf::Out<nn::nifm::detail::sf::NetworkProfileData,void>,nn::util::Uuid const&)'), ('nn::nifm::detail::IGeneralService', 9, 'SetNetworkProfile', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, Buffer<0,0x19,0x17C>', '(nn::sf::Out<nn::util::Uuid,void>,nn::nifm::detail::sf::NetworkProfileData const&)'), ('nn::nifm::detail::IGeneralService', 10, 'RemoveNetworkProfile', '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>', '(nn::util::Uuid const&)'), ('nn::nifm::detail::IGeneralService', 11, 'GetScanData', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', '(nn::sf::OutArray<nn::nifm::detail::sf::AccessPointData> const&,nn::sf::Out<int,void>)'), ('nn::nifm::detail::IGeneralService', 12, 'GetCurrentIpAddress', '0 bytes in - 4 bytes out - OutRaw<4,1,0>', '(nn::sf::Out<nn::nifm::IpV4Address,void>)'), ('nn::nifm::detail::IGeneralService', 13, 'GetCurrentAccessPoint', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x34>', '(nn::sf::Out<nn::nifm::detail::sf::AccessPointData,void>)'), ('nn::nifm::detail::IGeneralService', 14, 'CreateTemporaryNetworkProfile', '0 bytes in - 0x10 bytes out - OutObject<0,0>, OutRaw<0x10,1,0>, Buffer<0,0x19,0x17C>', '(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::INetworkProfile>,void>,nn::sf::Out<nn::util::Uuid,void>,nn::nifm::detail::sf::NetworkProfileData const&)'), ('nn::nifm::detail::IGeneralService', 15, 'GetCurrentIpConfigInfo', '0 bytes in - 0x16 bytes out - OutRaw<0xD,1,0>, OutRaw<9,1,0xD>', '(nn::sf::Out<nn::nifm::IpAddressSetting,void>,nn::sf::Out<nn::nifm::DnsSetting,void>)'), ('nn::nifm::detail::IGeneralService', 16, 'SetWirelessCommunicationEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IGeneralService', 17, 'IsWirelessCommunicationEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::nifm::detail::IGeneralService', 18, 'GetInternetConnectionStatus', '0 bytes in - 3 bytes out - OutRaw<3,1,0>', '(nn::sf::Out<nn::nifm::detail::sf::InternetConnectionStatus,void>)'), ('nn::nifm::detail::IGeneralService', 19, 'SetEthernetCommunicationEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IGeneralService', 20, 'IsEthernetCommunicationEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::nifm::detail::IGeneralService', 21, 'IsAnyInternetRequestAccepted', '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,0x19,4>', '(nn::sf::Out<bool,void>,nn::nifm::ClientId)'), ('nn::nifm::detail::IGeneralService', 22, 'IsAnyForegroundRequestAccepted', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::nifm::detail::IGeneralService', 23, 'PutToSleep', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IGeneralService', 24, 'WakeUp', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IGeneralService', 25, 'GetSsidListVersion', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', '(nn::sf::Out<nn::nifm::SsidListVersion,void>)'), ('nn::nifm::detail::IGeneralService', 26, 'SetExclusiveClient', '0 bytes in - 0 bytes out - Buffer<0,0x19,4>', '(nn::nifm::ClientId)'), ('nn::nifm::detail::IGeneralService', 27, 'GetDefaultIpSetting', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0xC2>', '(nn::sf::Out<nn::nifm::IpSettingData,void>)'), ('nn::nifm::detail::IGeneralService', 28, 'SetDefaultIpSetting', '0 bytes in - 0 bytes out - Buffer<0,0x19,0xC2>', '(nn::nifm::IpSettingData const&)'), ('nn::nifm::detail::IGeneralService', 29, 'SetWirelessCommunicationEnabledForTest', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IGeneralService', 30, 'SetEthernetCommunicationEnabledForTest', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IGeneralService', 31, 'GetTelemetorySystemEventReadableHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::nifm::detail::IGeneralService', 32, 'GetTelemetryInfo', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x20C>', '(nn::sf::Out<nn::nifm::TelemetryInfo,void>)'), ('nn::nifm::detail::IGeneralService', 33, 'ConfirmSystemAvailability', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IScanRequest', 0, 'Submit', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IScanRequest', 1, 'IsProcessing', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::nifm::detail::IScanRequest', 2, 'GetResult', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IScanRequest', 3, 'GetSystemEventReadableHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::nifm::detail::IRequest', 0, 'GetRequestState', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::nifm::detail::IRequest', 1, 'GetResult', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IRequest', 2, 'GetSystemEventReadableHandles', '0 bytes in - 0 bytes out - OutHandle<0,1>, OutHandle<1,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::nifm::detail::IRequest', 3, 'Cancel', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IRequest', 4, 'Submit', '0 bytes in - 0 bytes out', '(void)'), ('nn::nifm::detail::IRequest', 5, 'SetRequirement', '0x24 bytes in - 0 bytes out - InRaw<0x24,4,0>', '(nn::nifm::Requirement const&)'), ('nn::nifm::detail::IRequest', 6, 'SetRequirementPreset', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::nifm::detail::IRequest', 8, 'SetPriority', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(unsigned char)'), ('nn::nifm::detail::IRequest', 9, 'SetNetworkProfileId', '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>', '(nn::util::Uuid const&)'), ('nn::nifm::detail::IRequest', 10, 'SetRejectable', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IRequest', 11, 'SetConnectionConfirmationOption', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(signed char)'), ('nn::nifm::detail::IRequest', 12, 'SetPersistent', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IRequest', 13, 'SetInstant', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IRequest', 14, 'SetSustainable', '2 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<1,1,1>', '(bool,unsigned char)'), ('nn::nifm::detail::IRequest', 15, 'SetRawPriority', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(unsigned char)'), ('nn::nifm::detail::IRequest', 16, 'SetGreedy', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IRequest', 17, 'SetSharable', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IRequest', 18, 'SetRequirementByRevision', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::nifm::detail::IRequest', 19, 'GetRequirement', '0 bytes in - 0x24 bytes out - OutRaw<0x24,4,0>', '(nn::sf::Out<nn::nifm::Requirement,void>)'), ('nn::nifm::detail::IRequest', 20, 'GetRevision', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::nifm::detail::IRequest', 21, 'GetAppletInfo', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,unsigned int)'), ('nn::nifm::detail::IRequest', 22, 'GetAdditionalInfo', '0 bytes in - 4 bytes out - Buffer<0,0x16,0x410>, OutRaw<4,4,0>', '(nn::sf::Out<nn::nifm::AdditionalInfo,void>,nn::sf::Out<unsigned int,void>)'), ('nn::nifm::detail::IRequest', 23, 'SetKeptInSleep', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::nifm::detail::IRequest', 24, 'RegisterSocketDescriptor', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::nifm::detail::IRequest', 25, 'UnregisterSocketDescriptor', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::nifm::detail::INetworkProfile', 0, 'Update', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, Buffer<0,0x19,0x17C>', '(nn::sf::Out<nn::util::Uuid,void>,nn::nifm::detail::sf::NetworkProfileData const&)'), ('nn::nifm::detail::INetworkProfile', 1, 'PersistOld', '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,1,0>', '(nn::sf::Out<nn::util::Uuid,void>,nn::util::Uuid const&)'), ('nn::nifm::detail::INetworkProfile', 2, 'Persist', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', '(nn::sf::Out<nn::util::Uuid,void>)'), ('nn::nsd::detail::IManager', 10, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>', ''), ('nn::nsd::detail::IManager', 11, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,8>', ''), ('nn::nsd::detail::IManager', 12, '', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', ''), ('nn::nsd::detail::IManager', 13, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::nsd::detail::IManager', 14, '', '4 bytes in - 0 bytes out - Buffer<0,5,0>, Buffer<1,6,0>, InRaw<4,4,0>', ''), ('nn::nsd::detail::IManager', 20, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>, Buffer<1,0x15,0x100>', ''), ('nn::nsd::detail::IManager', 21, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x100>, Buffer<1,0x15,0x100>', ''), ('nn::nsd::detail::IManager', 30, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x108>, Buffer<1,0x15,0x10>', ''), ('nn::nsd::detail::IManager', 31, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x108>, Buffer<1,0x15,0x10>', ''), ('nn::nsd::detail::IManager', 40, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>', ''), ('nn::nsd::detail::IManager', 41, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x100>', ''), ('nn::nsd::detail::IManager', 42, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>', ''), ('nn::nsd::detail::IManager', 43, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x100>', ''), ('nn::nsd::detail::IManager', 50, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x12BF0>', ''), ('nn::nsd::detail::IManager', 60, '', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x12BF0>', ''), ('nn::nsd::detail::IManager', 61, '', '0 bytes in - 0 bytes out - Buffer<0,0x15,0x12BF0>', ''), ('nn::nsd::detail::IManager', 62, '', '0 bytes in - 0 bytes out', ''), ('nn::pctl::detail::ipc::IParentalControlServiceFactory', 0, 'CreateService', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::pctl::detail::ipc::IParentalControlService>,void>,unsigned long)'), ('nn::pctl::detail::ipc::IParentalControlService', 1001, 'CheckFreeCommunicationPermission', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1002, 'ConfirmLaunchApplicationPermission', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, Buffer<0,9,0>, InRaw<1,1,0>', '(nn::ncm::ApplicationId,nn::sf::InArray<signed char> const&,bool)'), ('nn::pctl::detail::ipc::IParentalControlService', 1003, 'ConfirmResumeApplicationPermission', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, Buffer<0,9,0>, InRaw<1,1,0>', '(nn::ncm::ApplicationId,nn::sf::InArray<signed char> const&,bool)'), ('nn::pctl::detail::ipc::IParentalControlService', 1004, 'ConfirmSnsPostPermission', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1005, 'ConfirmSystemSettingsPermission', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1006, 'IsRestrictionTemporaryUnlocked', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1007, 'RevertRestrictionTemporaryUnlocked', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1008, 'EnterRestrictedSystemSettings', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1009, 'LeaveRestrictedSystemSettings', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1010, 'IsRestrictedSystemSettingsEntered', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1011, 'RevertRestrictedSystemSettingsEntered', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1012, 'GetRestrictedFeatures', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1031, 'IsRestrictionEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1032, 'GetSafetyLevel', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1033, 'SetSafetyLevel', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::pctl::detail::ipc::IParentalControlService', 1034, 'GetSafetyLevelSettings', '4 bytes in - 3 bytes out - OutRaw<3,1,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::pctl::SafetyLevelSettings,void>,int)'), ('nn::pctl::detail::ipc::IParentalControlService', 1035, 'GetCurrentSettings', '0 bytes in - 3 bytes out - OutRaw<3,1,0>', '(nn::sf::Out<nn::pctl::SafetyLevelSettings,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1036, 'SetCustomSafetyLevelSettings', '3 bytes in - 0 bytes out - InRaw<3,1,0>', '(nn::pctl::SafetyLevelSettings)'), ('nn::pctl::detail::ipc::IParentalControlService', 1037, 'GetDefaultRatingOrganization', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1038, 'SetDefaultRatingOrganization', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::pctl::detail::ipc::IParentalControlService', 1039, 'GetFreeCommunicationApplicationListCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1042, 'AddToFreeCommunicationApplicationList', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ncm::ApplicationId)'), ('nn::pctl::detail::ipc::IParentalControlService', 1043, 'DeleteSettings', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1044, 'GetFreeCommunicationApplicationList', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::pctl::FreeCommunicationApplicationInfo> const&,int)'), ('nn::pctl::detail::ipc::IParentalControlService', 1045, 'UpdateFreeCommunicationApplicationList', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InArray<nn::pctl::FreeCommunicationApplicationInfo> const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1046, 'DisableFeaturesForReset', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1047, 'NotifyApplicationDownloadStarted', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ncm::ApplicationId)'), ('nn::pctl::detail::ipc::IParentalControlService', 1201, 'UnlockRestrictionTemporarily', '0 bytes in - 0 bytes out - Buffer<0,9,0>', '(nn::sf::InArray<char> const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1202, 'UnlockSystemSettingsRestriction', '0 bytes in - 0 bytes out - Buffer<0,9,0>', '(nn::sf::InArray<char> const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1203, 'SetPinCode', '0 bytes in - 0 bytes out - Buffer<0,9,0>', '(nn::sf::InArray<char> const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1204, 'GenerateInquiryCode', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', '(nn::sf::Out<nn::pctl::InquiryCode,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1205, 'CheckMasterKey', '0x20 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x20,1,0>, Buffer<0,9,0>', '(nn::sf::Out<bool,void>,nn::pctl::InquiryCode const&,nn::sf::InArray<char> const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1206, 'GetPinCodeLength', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1207, 'GetPinCodeChangedEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1403, 'IsPairingActive', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1406, 'GetSettingsLastUpdated', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::time::PosixTime,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1411, 'GetPairingAccountInfo', '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::pctl::detail::PairingAccountInfoBase,void>,nn::pctl::detail::PairingInfoBase const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1421, 'GetAccountNickname', '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<0x10,8,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutArray<char> const&,nn::pctl::detail::PairingAccountInfoBase const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1424, 'GetAccountState', '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>', '(nn::sf::Out<int,void>,nn::pctl::detail::PairingAccountInfoBase const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1432, 'GetSynchronizationEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1451, 'StartPlayTimer', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1452, 'StopPlayTimer', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1453, 'IsPlayTimerEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1454, 'GetPlayTimerRemainingTime', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::TimeSpanType,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1455, 'IsRestrictedByPlayTimer', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1456, 'GetPlayTimerSettings', '0 bytes in - 0x34 bytes out - OutRaw<0x34,2,0>', '(nn::sf::Out<nn::pctl::PlayTimerSettings,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1457, 'GetPlayTimerEventToRequestSuspension', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1471, 'NotifyWrongPinCodeInputManyTimes', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1472, 'CancelNetworkRequest', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1473, 'GetUnlinkedEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1474, 'ClearUnlinkedEvent', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1601, 'DisableAllFeatures', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1602, 'PostEnableAllFeatures', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1603, 'IsAllFeaturesDisabled', '0 bytes in - 2 bytes out - OutRaw<1,1,0>, OutRaw<1,1,1>', '(nn::sf::Out<bool,void>,nn::sf::Out<bool,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 1901, 'DeleteFromFreeCommunicationApplicationListForDebug', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ncm::ApplicationId)'), ('nn::pctl::detail::ipc::IParentalControlService', 1902, 'ClearFreeCommunicationApplicationListForDebug', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1941, 'DeletePairing', '0 bytes in - 0 bytes out', '(void)'), ('nn::pctl::detail::ipc::IParentalControlService', 1951, 'SetPlayTimerSettingsForDebug', '0x34 bytes in - 0 bytes out - InRaw<0x34,2,0>', '(nn::pctl::PlayTimerSettings const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 1952, 'GetPlayTimerSpentTimeForTest', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::TimeSpanType,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 2001, 'RequestPairingAsync', '0 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>, Buffer<0,9,0>', '(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::InArray<char> const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 2002, 'FinishRequestPairing', '8 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,4,0>', '(nn::sf::Out<nn::pctl::detail::PairingInfoBase,void>,nn::pctl::detail::AsyncData)'), ('nn::pctl::detail::ipc::IParentalControlService', 2003, 'AuthorizePairingAsync', '0x10 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::pctl::detail::PairingInfoBase const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 2004, 'FinishAuthorizePairing', '8 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,4,0>', '(nn::sf::Out<nn::pctl::detail::PairingInfoBase,void>,nn::pctl::detail::AsyncData)'), ('nn::pctl::detail::ipc::IParentalControlService', 2005, 'RetrievePairingInfoAsync', '0 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>', '(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 2006, 'FinishRetrievePairingInfo', '8 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,4,0>', '(nn::sf::Out<nn::pctl::detail::PairingInfoBase,void>,nn::pctl::detail::AsyncData)'), ('nn::pctl::detail::ipc::IParentalControlService', 2007, 'UnlinkPairingAsync', '1 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>, InRaw<1,1,0>', '(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,bool)'), ('nn::pctl::detail::ipc::IParentalControlService', 2008, 'FinishUnlinkPairing', '0xC bytes in - 0 bytes out - InRaw<8,4,4>, InRaw<1,1,0>', '(nn::pctl::detail::AsyncData,bool)'), ('nn::pctl::detail::ipc::IParentalControlService', 2009, 'GetAccountMiiImageAsync', '0x10 bytes in - 0xC bytes out - OutRaw<8,4,0>, OutHandle<0,1>, OutRaw<4,4,8>, Buffer<0,6,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::pctl::detail::PairingAccountInfoBase const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 2010, 'FinishGetAccountMiiImage', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<8,4,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::pctl::detail::AsyncData)'), ('nn::pctl::detail::ipc::IParentalControlService', 2011, 'GetAccountMiiImageContentTypeAsync', '0x10 bytes in - 0xC bytes out - OutRaw<8,4,0>, OutHandle<0,1>, OutRaw<4,4,8>, Buffer<0,0xA,0>, InRaw<0x10,8,0>', '(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutArray<char> const&,nn::pctl::detail::PairingAccountInfoBase const&)'), ('nn::pctl::detail::ipc::IParentalControlService', 2012, 'FinishGetAccountMiiImageContentType', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<8,4,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutArray<char> const&,nn::pctl::detail::AsyncData)'), ('nn::pctl::detail::ipc::IParentalControlService', 2013, 'SynchronizeParentalControlSettingsAsync', '0 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>', '(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::pctl::detail::ipc::IParentalControlService', 2014, 'FinishSynchronizeParentalControlSettings', '8 bytes in - 0 bytes out - InRaw<8,4,0>', '(nn::pctl::detail::AsyncData)'), ('nn::pctl::detail::ipc::IParentalControlService', 2015, 'FinishSynchronizeParentalControlSettingsWithLastUpdated', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,4,0>', '(nn::sf::Out<nn::time::PosixTime,void>,nn::pctl::detail::AsyncData)'), ('nn::prepo::detail::ipc::IPrepoService', 10100, 'SaveReport', '8 bytes in - 0 bytes out - takes pid - Buffer<0,9,0>, Buffer<1,5,0>, InRaw<8,8,0>', '(nn::sf::InArray<char> const&,nn::sf::InBuffer const&,unsigned long)'), ('nn::prepo::detail::ipc::IPrepoService', 10101, 'SaveReportWithUser', '0x18 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, Buffer<0,9,0>, Buffer<1,5,0>, InRaw<8,8,0x10>', '(nn::account::Uid const&,nn::sf::InArray<char> const&,nn::sf::InBuffer const&,unsigned long)'), ('nn::prepo::detail::ipc::IPrepoService', 10200, 'RequestImmediateTransmission', '0 bytes in - 0 bytes out', '(void)'), ('nn::prepo::detail::ipc::IPrepoService', 10300, 'GetTransmissionStatus', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::prepo::detail::ipc::IPrepoService', 20100, 'SaveSystemReport', '8 bytes in - 0 bytes out - Buffer<0,9,0>, InRaw<8,8,0>, Buffer<1,5,0>', '(nn::sf::InArray<char> const&,nn::ApplicationId,nn::sf::InBuffer const&)'), ('nn::prepo::detail::ipc::IPrepoService', 20101, 'SaveSystemReportWithUser', '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, Buffer<0,9,0>, InRaw<8,8,0x10>, Buffer<1,5,0>', '(nn::account::Uid const&,nn::sf::InArray<char> const&,nn::ApplicationId,nn::sf::InBuffer const&)'), ('nn::prepo::detail::ipc::IPrepoService', 30100, 'ClearStorage', '0 bytes in - 0 bytes out', '(void)'), ('nn::prepo::detail::ipc::IPrepoService', 40100, 'IsUserAgreementCheckEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::prepo::detail::ipc::IPrepoService', 40101, 'SetUserAgreementCheckEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::prepo::detail::ipc::IPrepoService', 90100, 'GetStorageUsage', '0 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>)'), ('nn::settings::IFactorySettingsServer', 0, 'GetBluetoothBdAddress', '0 bytes in - 6 bytes out - OutRaw<6,1,0>', '(nn::sf::Out<nn::settings::factory::BdAddress,void>)'), ('nn::settings::IFactorySettingsServer', 1, 'GetConfigurationId1', '0 bytes in - 0x1E bytes out - OutRaw<0x1E,1,0>', '(nn::sf::Out<nn::settings::factory::ConfigurationId1,void>)'), ('nn::settings::IFactorySettingsServer', 2, 'GetAccelerometerOffset', '0 bytes in - 6 bytes out - OutRaw<6,2,0>', '(nn::sf::Out<nn::settings::factory::AccelerometerOffset,void>)'), ('nn::settings::IFactorySettingsServer', 3, 'GetAccelerometerScale', '0 bytes in - 6 bytes out - OutRaw<6,2,0>', '(nn::sf::Out<nn::settings::factory::AccelerometerScale,void>)'), ('nn::settings::IFactorySettingsServer', 4, 'GetGyroscopeOffset', '0 bytes in - 6 bytes out - OutRaw<6,2,0>', '(nn::sf::Out<nn::settings::factory::GyroscopeOffset,void>)'), ('nn::settings::IFactorySettingsServer', 5, 'GetGyroscopeScale', '0 bytes in - 6 bytes out - OutRaw<6,2,0>', '(nn::sf::Out<nn::settings::factory::GyroscopeScale,void>)'), ('nn::settings::IFactorySettingsServer', 6, 'GetWirelessLanMacAddress', '0 bytes in - 6 bytes out - OutRaw<6,1,0>', '(nn::sf::Out<nn::settings::factory::MacAddress,void>)'), ('nn::settings::IFactorySettingsServer', 7, 'GetWirelessLanCountryCodeCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::IFactorySettingsServer', 8, 'GetWirelessLanCountryCodes', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::factory::CountryCode> const&)'), ('nn::settings::IFactorySettingsServer', 9, 'GetSerialNumber', '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>', '(nn::sf::Out<nn::settings::factory::SerialNumber,void>)'), ('nn::settings::IFactorySettingsServer', 10, 'SetInitialSystemAppletProgramId', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ncm::ProgramId)'), ('nn::settings::IFactorySettingsServer', 11, 'SetOverlayDispProgramId', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::ncm::ProgramId)'), ('nn::settings::IFactorySettingsServer', 12, 'GetBatteryLot', '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>', '(nn::sf::Out<nn::settings::factory::BatteryLot,void>)'), ('nn::settings::IFactorySettingsServer', 14, 'GetEciDeviceCertificate', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x180>', '(nn::sf::Out<nn::settings::factory::EccB233DeviceCertificate,void>)'), ('nn::settings::IFactorySettingsServer', 15, 'GetEticketDeviceCertificate', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x240>', '(nn::sf::Out<nn::settings::factory::Rsa2048DeviceCertificate,void>)'), ('nn::settings::IFactorySettingsServer', 16, 'GetSslKey', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x134>', '(nn::sf::Out<nn::settings::factory::SslKey,void>)'), ('nn::settings::IFactorySettingsServer', 17, 'GetSslCertificate', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x804>', '(nn::sf::Out<nn::settings::factory::SslCertificate,void>)'), ('nn::settings::IFactorySettingsServer', 18, 'GetGameCardKey', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x134>', '(nn::sf::Out<nn::settings::factory::GameCardKey,void>)'), ('nn::settings::IFactorySettingsServer', 19, 'GetGameCardCertificate', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x400>', '(nn::sf::Out<nn::settings::factory::GameCardCertificate,void>)'), ('nn::settings::IFactorySettingsServer', 20, 'GetEciDeviceKey', '0 bytes in - 0x54 bytes out - OutRaw<0x54,4,0>', '(nn::sf::Out<nn::settings::factory::EccB233DeviceKey,void>)'), ('nn::settings::IFactorySettingsServer', 21, 'GetEticketDeviceKey', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x244>', '(nn::sf::Out<nn::settings::factory::Rsa2048DeviceKey,void>)'), ('nn::settings::IFactorySettingsServer', 22, 'GetSpeakerParameter', '0 bytes in - 0x5A bytes out - OutRaw<0x5A,2,0>', '(nn::sf::Out<nn::settings::factory::SpeakerParameter,void>)'), ('nn::settings::IFirmwareDebugSettingsServer', 2, 'SetSettingsItemValue', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>, Buffer<2,5,0>', '(nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&,nn::sf::InBuffer const&)'), ('nn::settings::IFirmwareDebugSettingsServer', 3, 'ResetSettingsItemValue', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>', '(nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&)'), ('nn::settings::IFirmwareDebugSettingsServer', 4, 'CreateSettingsItemKeyIterator', '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x48>', '(nn::sf::Out<nn::sf::SharedPointer<nn::settings::ISettingsItemKeyIterator>,void>,nn::settings::SettingsName const&)'), ('nn::settings::ISettingsItemKeyIterator', 0, 'GoNext', '0 bytes in - 0 bytes out', '(void)'), ('nn::settings::ISettingsItemKeyIterator', 1, 'GetKeySize', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>)'), ('nn::settings::ISettingsItemKeyIterator', 2, 'GetKey', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&)'), ('nn::settings::ISettingsServer', 0, 'GetLanguageCode', '0 bytes in - 8 bytes out - OutRaw<8,1,0>', '(nn::sf::Out<nn::settings::LanguageCode,void>)'), ('nn::settings::ISettingsServer', 1, 'GetAvailableLanguageCodes', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::LanguageCode> const&)'), ('nn::settings::ISettingsServer', 3, 'GetAvailableLanguageCodeCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISettingsServer', 4, 'GetRegionCode', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISystemSettingsServer', 0, 'SetLanguageCode', '8 bytes in - 0 bytes out - InRaw<8,1,0>', '(nn::settings::LanguageCode)'), ('nn::settings::ISystemSettingsServer', 1, 'SetNetworkSettings', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InArray<nn::settings::system::NetworkSettings> const&)'), ('nn::settings::ISystemSettingsServer', 2, 'GetNetworkSettings', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::NetworkSettings> const&)'), ('nn::settings::ISystemSettingsServer', 3, 'GetFirmwareVersion', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>', '(nn::sf::Out<nn::settings::system::FirmwareVersion,void>)'), ('nn::settings::ISystemSettingsServer', 4, 'GetFirmwareVersion2', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>', '(nn::sf::Out<nn::settings::system::FirmwareVersion,void>)'), ('nn::settings::ISystemSettingsServer', 7, 'GetLockScreenFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 8, 'SetLockScreenFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 9, 'GetBacklightSettings', '0 bytes in - 0x28 bytes out - OutRaw<0x28,4,0>', '(nn::sf::Out<nn::settings::system::BacklightSettings,void>)'), ('nn::settings::ISystemSettingsServer', 10, 'SetBacklightSettings', '0x28 bytes in - 0 bytes out - InRaw<0x28,4,0>', '(nn::settings::system::BacklightSettings const&)'), ('nn::settings::ISystemSettingsServer', 11, 'SetBluetoothDevicesSettings', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InArray<nn::settings::system::BluetoothDevicesSettings> const&)'), ('nn::settings::ISystemSettingsServer', 12, 'GetBluetoothDevicesSettings', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::BluetoothDevicesSettings> const&)'), ('nn::settings::ISystemSettingsServer', 13, 'GetExternalSteadyClockSourceId', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', '(nn::sf::Out<nn::util::Uuid,void>)'), ('nn::settings::ISystemSettingsServer', 14, 'SetExternalSteadyClockSourceId', '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>', '(nn::util::Uuid const&)'), ('nn::settings::ISystemSettingsServer', 15, 'GetUserSystemClockContext', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>', '(nn::sf::Out<nn::time::SystemClockContext,void>)'), ('nn::settings::ISystemSettingsServer', 16, 'SetUserSystemClockContext', '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>', '(nn::time::SystemClockContext const&)'), ('nn::settings::ISystemSettingsServer', 17, 'GetAccountSettings', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<nn::settings::system::AccountSettings,void>)'), ('nn::settings::ISystemSettingsServer', 18, 'SetAccountSettings', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::settings::system::AccountSettings)'), ('nn::settings::ISystemSettingsServer', 19, 'GetAudioVolume', '4 bytes in - 8 bytes out - OutRaw<8,4,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::settings::system::AudioVolume,void>,int)'), ('nn::settings::ISystemSettingsServer', 20, 'SetAudioVolume', '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>', '(nn::settings::system::AudioVolume,int)'), ('nn::settings::ISystemSettingsServer', 21, 'GetEulaVersions', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::EulaVersion> const&)'), ('nn::settings::ISystemSettingsServer', 22, 'SetEulaVersions', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InArray<nn::settings::system::EulaVersion> const&)'), ('nn::settings::ISystemSettingsServer', 23, 'GetColorSetId', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISystemSettingsServer', 24, 'SetColorSetId', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::settings::ISystemSettingsServer', 25, 'GetConsoleInformationUploadFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 26, 'SetConsoleInformationUploadFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 27, 'GetAutomaticApplicationDownloadFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 28, 'SetAutomaticApplicationDownloadFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 29, 'GetNotificationSettings', '0 bytes in - 0x18 bytes out - OutRaw<0x18,4,0>', '(nn::sf::Out<nn::settings::system::NotificationSettings,void>)'), ('nn::settings::ISystemSettingsServer', 30, 'SetNotificationSettings', '0x18 bytes in - 0 bytes out - InRaw<0x18,4,0>', '(nn::settings::system::NotificationSettings const&)'), ('nn::settings::ISystemSettingsServer', 31, 'GetAccountNotificationSettings', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::AccountNotificationSettings> const&)'), ('nn::settings::ISystemSettingsServer', 32, 'SetAccountNotificationSettings', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InArray<nn::settings::system::AccountNotificationSettings> const&)'), ('nn::settings::ISystemSettingsServer', 35, 'GetVibrationMasterVolume', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<float,void>)'), ('nn::settings::ISystemSettingsServer', 36, 'SetVibrationMasterVolume', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(float)'), ('nn::settings::ISystemSettingsServer', 37, 'GetSettingsItemValueSize', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>', '(nn::sf::Out<unsigned long,void>,nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&)'), ('nn::settings::ISystemSettingsServer', 38, 'GetSettingsItemValue', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<2,6,0>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>', '(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&,nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&)'), ('nn::settings::ISystemSettingsServer', 39, 'GetTvSettings', '0 bytes in - 0x20 bytes out - OutRaw<0x20,4,0>', '(nn::sf::Out<nn::settings::system::TvSettings,void>)'), ('nn::settings::ISystemSettingsServer', 40, 'SetTvSettings', '0x20 bytes in - 0 bytes out - InRaw<0x20,4,0>', '(nn::settings::system::TvSettings const&)'), ('nn::settings::ISystemSettingsServer', 41, 'GetEdid', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>', '(nn::sf::Out<nn::settings::system::Edid,void>)'), ('nn::settings::ISystemSettingsServer', 42, 'SetEdid', '0 bytes in - 0 bytes out - Buffer<0,0x19,0x100>', '(nn::settings::system::Edid const&)'), ('nn::settings::ISystemSettingsServer', 43, 'GetAudioOutputMode', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,int)'), ('nn::settings::ISystemSettingsServer', 44, 'SetAudioOutputMode', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(int,int)'), ('nn::settings::ISystemSettingsServer', 45, 'IsForceMuteOnHeadphoneRemoved', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 46, 'SetForceMuteOnHeadphoneRemoved', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 47, 'GetQuestFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 48, 'SetQuestFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 49, 'GetDataDeletionSettings', '0 bytes in - 8 bytes out - OutRaw<8,4,0>', '(nn::sf::Out<nn::settings::system::DataDeletionSettings,void>)'), ('nn::settings::ISystemSettingsServer', 50, 'SetDataDeletionSettings', '8 bytes in - 0 bytes out - InRaw<8,4,0>', '(nn::settings::system::DataDeletionSettings)'), ('nn::settings::ISystemSettingsServer', 51, 'GetInitialSystemAppletProgramId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::ncm::ProgramId,void>)'), ('nn::settings::ISystemSettingsServer', 52, 'GetOverlayDispProgramId', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::ncm::ProgramId,void>)'), ('nn::settings::ISystemSettingsServer', 53, 'GetDeviceTimeZoneLocationName', '0 bytes in - 0x24 bytes out - OutRaw<0x24,1,0>', '(nn::sf::Out<nn::time::LocationName,void>)'), ('nn::settings::ISystemSettingsServer', 54, 'SetDeviceTimeZoneLocationName', '0x24 bytes in - 0 bytes out - InRaw<0x24,1,0>', '(nn::time::LocationName const&)'), ('nn::settings::ISystemSettingsServer', 55, 'GetWirelessCertificationFileSize', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>)'), ('nn::settings::ISystemSettingsServer', 56, 'GetWirelessCertificationFile', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&)'), ('nn::settings::ISystemSettingsServer', 57, 'SetRegionCode', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::settings::ISystemSettingsServer', 58, 'GetNetworkSystemClockContext', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>', '(nn::sf::Out<nn::time::SystemClockContext,void>)'), ('nn::settings::ISystemSettingsServer', 59, 'SetNetworkSystemClockContext', '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>', '(nn::time::SystemClockContext const&)'), ('nn::settings::ISystemSettingsServer', 60, 'IsUserSystemClockAutomaticCorrectionEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 61, 'SetUserSystemClockAutomaticCorrectionEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 62, 'GetDebugModeFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 63, 'GetPrimaryAlbumStorage', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISystemSettingsServer', 64, 'SetPrimaryAlbumStorage', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::settings::ISystemSettingsServer', 65, 'GetUsb30EnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 66, 'SetUsb30EnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 67, 'GetBatteryLot', '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>', '(nn::sf::Out<nn::settings::system::BatteryLot,void>)'), ('nn::settings::ISystemSettingsServer', 68, 'GetSerialNumber', '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>', '(nn::sf::Out<nn::settings::system::SerialNumber,void>)'), ('nn::settings::ISystemSettingsServer', 69, 'GetNfcEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 70, 'SetNfcEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 71, 'GetSleepSettings', '0 bytes in - 0xC bytes out - OutRaw<0xC,4,0>', '(nn::sf::Out<nn::settings::system::SleepSettings,void>)'), ('nn::settings::ISystemSettingsServer', 72, 'SetSleepSettings', '0xC bytes in - 0 bytes out - InRaw<0xC,4,0>', '(nn::settings::system::SleepSettings const&)'), ('nn::settings::ISystemSettingsServer', 73, 'GetWirelessLanEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 74, 'SetWirelessLanEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 75, 'GetInitialLaunchSettings', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>', '(nn::sf::Out<nn::settings::system::InitialLaunchSettings,void>)'), ('nn::settings::ISystemSettingsServer', 76, 'SetInitialLaunchSettings', '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>', '(nn::settings::system::InitialLaunchSettings const&)'), ('nn::settings::ISystemSettingsServer', 77, 'GetDeviceNickName', '0 bytes in - 0 bytes out - Buffer<0,0x16,0x80>', '(nn::sf::Out<nn::settings::system::DeviceNickName,void>)'), ('nn::settings::ISystemSettingsServer', 78, 'SetDeviceNickName', '0 bytes in - 0 bytes out - Buffer<0,0x15,0x80>', '(nn::settings::system::DeviceNickName const&)'), ('nn::settings::ISystemSettingsServer', 79, 'GetProductModel', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISystemSettingsServer', 80, 'GetLdnChannel', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISystemSettingsServer', 81, 'SetLdnChannel', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::settings::ISystemSettingsServer', 82, 'AcquireTelemetryDirtyFlagEventHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::settings::ISystemSettingsServer', 83, 'GetTelemetryDirtyFlags', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::util::BitFlagSet<128,nn::settings::system::TelemetryDirtyFlag>,void>)'), ('nn::settings::ISystemSettingsServer', 84, 'GetPtmBatteryLot', '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>', '(nn::sf::Out<nn::settings::factory::BatteryLot,void>)'), ('nn::settings::ISystemSettingsServer', 85, 'SetPtmBatteryLot', '0x18 bytes in - 0 bytes out - InRaw<0x18,1,0>', '(nn::settings::factory::BatteryLot const&)'), ('nn::settings::ISystemSettingsServer', 86, 'GetPtmFuelGaugeParameter', '0 bytes in - 0x18 bytes out - OutRaw<0x18,4,0>', '(nn::sf::Out<nn::settings::system::PtmFuelGaugeParameter,void>)'), ('nn::settings::ISystemSettingsServer', 87, 'SetPtmFuelGaugeParameter', '0x18 bytes in - 0 bytes out - InRaw<0x18,4,0>', '(nn::settings::system::PtmFuelGaugeParameter const&)'), ('nn::settings::ISystemSettingsServer', 88, 'GetBluetoothEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 89, 'SetBluetoothEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 90, 'GetMiiAuthorId', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', '(nn::sf::Out<nn::util::Uuid,void>)'), ('nn::settings::ISystemSettingsServer', 91, 'SetShutdownRtcValue', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(long)'), ('nn::settings::ISystemSettingsServer', 92, 'GetShutdownRtcValue', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::settings::ISystemSettingsServer', 93, 'AcquireFatalDirtyFlagEventHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::settings::ISystemSettingsServer', 94, 'GetFatalDirtyFlags', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', '(nn::sf::Out<nn::util::BitFlagSet<128,nn::settings::system::FatalDirtyFlag>,void>)'), ('nn::settings::ISystemSettingsServer', 95, 'GetAutoUpdateEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 96, 'SetAutoUpdateEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 97, 'GetNxControllerSettings', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::NxControllerSettings> const&)'), ('nn::settings::ISystemSettingsServer', 98, 'SetNxControllerSettings', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InArray<nn::settings::system::NxControllerSettings> const&)'), ('nn::settings::ISystemSettingsServer', 99, 'GetBatteryPercentageFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 100, 'SetBatteryPercentageFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 101, 'GetExternalRtcResetFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 102, 'SetExternalRtcResetFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 103, 'GetUsbFullKeyEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 104, 'SetUsbFullKeyEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 105, 'SetExternalSteadyClockInternalOffset', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(long)'), ('nn::settings::ISystemSettingsServer', 106, 'GetExternalSteadyClockInternalOffset', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::settings::ISystemSettingsServer', 107, 'GetBacklightSettingsEx', '0 bytes in - 0x2C bytes out - OutRaw<0x2C,4,0>', '(nn::sf::Out<nn::settings::system::BacklightSettingsEx,void>)'), ('nn::settings::ISystemSettingsServer', 108, 'SetBacklightSettingsEx', '0x2C bytes in - 0 bytes out - InRaw<0x2C,4,0>', '(nn::settings::system::BacklightSettingsEx const&)'), ('nn::settings::ISystemSettingsServer', 109, 'GetHeadphoneVolumeWarningCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISystemSettingsServer', 110, 'SetHeadphoneVolumeWarningCount', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::settings::ISystemSettingsServer', 111, 'GetBluetoothAfhEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 112, 'SetBluetoothAfhEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 113, 'GetBluetoothBoostEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 114, 'SetBluetoothBoostEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 115, 'GetInRepairProcessEnableFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 116, 'SetInRepairProcessEnableFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 117, 'GetHeadphoneVolumeUpdateFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::settings::ISystemSettingsServer', 118, 'SetHeadphoneVolumeUpdateFlag', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::settings::ISystemSettingsServer', 119, 'NeedsToUpdateHeadphoneVolume', '1 bytes in - 3 bytes out - OutRaw<1,1,0>, OutRaw<1,1,1>, OutRaw<1,1,2>, InRaw<1,1,0>', '(nn::sf::Out<bool,void>,nn::sf::Out<bool,void>,nn::sf::Out<signed char,void>,bool)'), ('nn::settings::ISystemSettingsServer', 120, 'GetPushNotificationActivityModeOnSleep', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::settings::ISystemSettingsServer', 121, 'SetPushNotificationActivityModeOnSleep', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::ssl::sf::ISslService', 0, 'CreateContext', '0x10 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<4,4,0>, InRaw<8,8,8>', '(nn::sf::Out<nn::sf::SharedPointer<nn::ssl::sf::ISslContext>,void>,nn::ssl::sf::SslVersion,unsigned long)'), ('nn::ssl::sf::ISslService', 1, 'GetContextCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::ssl::sf::ISslService', 2, 'GetCertificates', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, Buffer<1,5,0>', '(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>,nn::sf::InBuffer const&)'), ('nn::ssl::sf::ISslService', 3, 'GetCertificateBufSize', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,5,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::InBuffer const&)'), ('nn::ssl::sf::ISslService', 4, 'DebugIoctl', '8 bytes in - 0 bytes out - Buffer<0,6,0>, Buffer<1,5,0>, InRaw<8,8,0>', '(nn::sf::OutBuffer const&,nn::sf::InBuffer const&,unsigned long)'), ('nn::ssl::sf::ISslService', 5, 'SetInterfaceVersion', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::ssl::sf::ISslContext', 0, 'SetOption', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(nn::ssl::sf::ContextOption,int)'), ('nn::ssl::sf::ISslContext', 1, 'GetOption', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::ssl::sf::ContextOption)'), ('nn::ssl::sf::ISslContext', 2, 'CreateConnection', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::ssl::sf::ISslConnection>,void>)'), ('nn::ssl::sf::ISslContext', 3, 'GetConnectionCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::ssl::sf::ISslContext', 4, 'ImportServerPki', '4 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,5,0>, InRaw<4,4,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::InBuffer const&,nn::ssl::sf::CertificateFormat)'), ('nn::ssl::sf::ISslContext', 5, 'ImportClientPki', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,5,0>, Buffer<1,5,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::InBuffer const&,nn::sf::InBuffer const&)'), ('nn::ssl::sf::ISslContext', 6, 'RemoveServerPki', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::ssl::sf::ISslContext', 7, 'RemoveClientPki', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::ssl::sf::ISslContext', 8, 'RegisterInternalPki', '4 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<4,4,0>', '(nn::sf::Out<unsigned long,void>,nn::ssl::sf::InternalPki)'), ('nn::ssl::sf::ISslContext', 9, 'AddPolicyOid', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InBuffer const&)'), ('nn::ssl::sf::ISslContext', 10, 'ImportCrl', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,5,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::InBuffer const&)'), ('nn::ssl::sf::ISslContext', 11, 'RemoveCrl', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::ssl::sf::ISslConnection', 0, 'SetSocketDescriptor', '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>', '(int,nn::sf::Out<int,void>)'), ('nn::ssl::sf::ISslConnection', 1, 'SetHostName', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InBuffer const&)'), ('nn::ssl::sf::ISslConnection', 2, 'SetVerifyOption', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::ssl::sf::VerifyOption)'), ('nn::ssl::sf::ISslConnection', 3, 'SetIoMode', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::ssl::sf::IoMode)'), ('nn::ssl::sf::ISslConnection', 4, 'GetSocketDescriptor', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::ssl::sf::ISslConnection', 5, 'GetHostName', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', '(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>)'), ('nn::ssl::sf::ISslConnection', 6, 'GetVerifyOption', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<nn::ssl::sf::VerifyOption,void>)'), ('nn::ssl::sf::ISslConnection', 7, 'GetIoMode', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<nn::ssl::sf::IoMode,void>)'), ('nn::ssl::sf::ISslConnection', 8, 'DoHandshake', '0 bytes in - 0 bytes out', '(void)'), ('nn::ssl::sf::ISslConnection', 9, 'DoHandshakeGetServerCert', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::ssl::sf::ISslConnection', 10, 'Read', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::ssl::sf::ISslConnection', 11, 'Write', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,5,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::InBuffer const&)'), ('nn::ssl::sf::ISslConnection', 12, 'Pending', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::ssl::sf::ISslConnection', 13, 'Peek', '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>', '(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)'), ('nn::ssl::sf::ISslConnection', 14, 'Poll', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::Out<nn::ssl::sf::PollEvent,void>,nn::ssl::sf::PollEvent,unsigned int)'), ('nn::ssl::sf::ISslConnection', 15, 'GetVerifyCertError', '0 bytes in - 0 bytes out', '(void)'), ('nn::ssl::sf::ISslConnection', 16, 'GetNeededServerCertBufferSize', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::ssl::sf::ISslConnection', 17, 'SetSessionCacheMode', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::ssl::sf::SessionCacheMode)'), ('nn::ssl::sf::ISslConnection', 18, 'GetSessionCacheMode', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<nn::ssl::sf::SessionCacheMode,void>)'), ('nn::ssl::sf::ISslConnection', 19, 'FlushSessionCache', '0 bytes in - 0 bytes out', '(void)'), ('nn::ssl::sf::ISslConnection', 20, 'SetRenegotiationMode', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::ssl::sf::RenegotiationMode)'), ('nn::ssl::sf::ISslConnection', 21, 'GetRenegotiationMode', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<nn::ssl::sf::RenegotiationMode,void>)'), ('nn::ssl::sf::ISslConnection', 22, 'SetOption', '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>', '(nn::ssl::sf::OptionType,bool)'), ('nn::ssl::sf::ISslConnection', 23, 'GetOption', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::ssl::sf::OptionType)'), ('nn::ssl::sf::ISslConnection', 24, 'GetVerifyCertErrors', '0 bytes in - 8 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, OutRaw<4,4,4>', '(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>)'), ('nn::timesrv::detail::service::IStaticService', 0, 'GetStandardUserSystemClock', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISystemClock>,void>)'), ('nn::timesrv::detail::service::IStaticService', 1, 'GetStandardNetworkSystemClock', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISystemClock>,void>)'), ('nn::timesrv::detail::service::IStaticService', 2, 'GetStandardSteadyClock', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISteadyClock>,void>)'), ('nn::timesrv::detail::service::IStaticService', 3, 'GetTimeZoneService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ITimeZoneService>,void>)'), ('nn::timesrv::detail::service::IStaticService', 4, 'GetStandardLocalSystemClock', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISystemClock>,void>)'), ('nn::timesrv::detail::service::IStaticService', 100, 'IsStandardUserSystemClockAutomaticCorrectionEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::timesrv::detail::service::IStaticService', 101, 'SetStandardUserSystemClockAutomaticCorrectionEnabled', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::timesrv::detail::service::IStaticService', 200, 'IsStandardNetworkSystemClockAccuracySufficient', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::timesrv::detail::service::ISystemClock', 0, 'GetCurrentTime', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::time::PosixTime,void>)'), ('nn::timesrv::detail::service::ISystemClock', 1, 'SetCurrentTime', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::time::PosixTime)'), ('nn::timesrv::detail::service::ISystemClock', 2, 'GetSystemClockContext', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>', '(nn::sf::Out<nn::time::SystemClockContext,void>)'), ('nn::timesrv::detail::service::ISystemClock', 3, 'SetSystemClockContext', '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>', '(nn::time::SystemClockContext const&)'), ('nn::timesrv::detail::service::ISteadyClock', 0, 'GetCurrentTimePoint', '0 bytes in - 0x18 bytes out - OutRaw<0x18,8,0>', '(nn::sf::Out<nn::time::SteadyClockTimePoint,void>)'), ('nn::timesrv::detail::service::ISteadyClock', 2, 'GetTestOffset', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::TimeSpanType,void>)'), ('nn::timesrv::detail::service::ISteadyClock', 3, 'SetTestOffset', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::TimeSpanType)'), ('nn::timesrv::detail::service::ISteadyClock', 100, 'GetRtcValue', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::timesrv::detail::service::ISteadyClock', 101, 'IsRtcResetDetected', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::timesrv::detail::service::ISteadyClock', 102, 'GetSetupResutltValue', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::timesrv::detail::service::ISteadyClock', 200, 'GetInternalOffset', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<nn::TimeSpanType,void>)'), ('nn::timesrv::detail::service::ISteadyClock', 201, 'SetInternalOffset', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::TimeSpanType)'), ('nn::timesrv::detail::service::ITimeZoneService', 0, 'GetDeviceLocationName', '0 bytes in - 0x24 bytes out - OutRaw<0x24,1,0>', '(nn::sf::Out<nn::time::LocationName,void>)'), ('nn::timesrv::detail::service::ITimeZoneService', 1, 'SetDeviceLocationName', '0x24 bytes in - 0 bytes out - InRaw<0x24,1,0>', '(nn::time::LocationName const&)'), ('nn::timesrv::detail::service::ITimeZoneService', 2, 'GetTotalLocationNameCount', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<int,void>)'), ('nn::timesrv::detail::service::ITimeZoneService', 3, 'LoadLocationNameList', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::time::LocationName> const&,int)'), ('nn::timesrv::detail::service::ITimeZoneService', 4, 'LoadTimeZoneRule', '0x24 bytes in - 0 bytes out - Buffer<0,0x16,0x4000>, InRaw<0x24,1,0>', '(nn::sf::Out<nn::time::TimeZoneRule,void>,nn::time::LocationName const&)'), ('nn::timesrv::detail::service::ITimeZoneService', 5, 'GetTimeZoneRuleVersion', '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>', '(nn::sf::Out<nn::time::TimeZoneRuleVersion,void>)'), ('nn::timesrv::detail::service::ITimeZoneService', 100, 'ToCalendarTime', '8 bytes in - 0x20 bytes out - OutRaw<8,2,0>, OutRaw<0x18,4,8>, InRaw<8,8,0>, Buffer<0,0x15,0x4000>', '(nn::sf::Out<nn::time::CalendarTime,void>,nn::sf::Out<nn::time::sf::CalendarAdditionalInfo,void>,nn::time::PosixTime,nn::time::TimeZoneRule const&)'), ('nn::timesrv::detail::service::ITimeZoneService', 101, 'ToCalendarTimeWithMyRule', '8 bytes in - 0x20 bytes out - OutRaw<8,2,0>, OutRaw<0x18,4,8>, InRaw<8,8,0>', '(nn::sf::Out<nn::time::CalendarTime,void>,nn::sf::Out<nn::time::sf::CalendarAdditionalInfo,void>,nn::time::PosixTime)'), ('nn::timesrv::detail::service::ITimeZoneService', 201, 'ToPosixTime', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<1,0xA,0>, InRaw<8,2,0>, Buffer<0,0x15,0x4000>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::time::PosixTime> const&,nn::time::CalendarTime,nn::time::TimeZoneRule const&)'), ('nn::timesrv::detail::service::ITimeZoneService', 202, 'ToPosixTimeWithMyRule', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<8,2,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::time::PosixTime> const&,nn::time::CalendarTime)'), ('nn::ntc::detail::service::IStaticService', 0, '', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>', ''), ('nn::ntc::detail::service::IStaticService', 100, '', '0 bytes in - 0 bytes out', ''), ('nn::ntc::detail::service::IStaticService', 101, '', '0 bytes in - 0 bytes out', ''), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 0, '', '0 bytes in - 0 bytes out', ''), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 1, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 2, '', '0 bytes in - 0 bytes out', ''), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 3, '', '0 bytes in - 0 bytes out', ''), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 4, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 5, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::aocsrv::detail::IAddOnContentManager', 0, 'CountAddOnContentByApplicationId', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<int,void>,nn::ncm::ApplicationId)'), ('nn::aocsrv::detail::IAddOnContentManager', 1, 'ListAddOnContentByApplicationId', '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<8,8,8>', '(nn::sf::Out<int,void>,nn::sf::OutArray<int> const&,int,int,nn::ncm::ApplicationId)'), ('nn::aocsrv::detail::IAddOnContentManager', 2, 'CountAddOnContent', '8 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<int,void>,unsigned long)'), ('nn::aocsrv::detail::IAddOnContentManager', 3, 'ListAddOnContent', '0x10 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::Out<int,void>,nn::sf::OutArray<int> const&,unsigned long,int,int)'), ('nn::aocsrv::detail::IAddOnContentManager', 4, 'GetAddOnContentBaseIdByApplicationId', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>,nn::ncm::ApplicationId)'), ('nn::aocsrv::detail::IAddOnContentManager', 5, 'GetAddOnContentBaseId', '8 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>,unsigned long)'), ('nn::aocsrv::detail::IAddOnContentManager', 6, 'PrepareAddOnContentByApplicationId', '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<8,8,8>', '(int,nn::ncm::ApplicationId)'), ('nn::aocsrv::detail::IAddOnContentManager', 7, 'PrepareAddOnContent', '0x10 bytes in - 0 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,8>', '(int,unsigned long)'), ('nn::audio::detail::IAudioDebugManager', 0, '', '0x10 bytes in - 0 bytes out - InHandle<0,1>, InRaw<8,8,8>, InRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDebugManager', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioDebugManager', 2, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioDebugManager', 3, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioInManager', 0, '', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioInManager', 1, '', '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,5,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,6,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioInManager', 2, '', '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioInManager', 3, '', '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,0x21,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,0x22,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioInManager', 4, '', '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioIn', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioIn', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioIn', 2, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioIn', 3, '', '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioIn', 4, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::audio::detail::IAudioIn', 5, '', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioIn', 6, '', '8 bytes in - 1 bytes out - InRaw<8,8,0>, OutRaw<1,1,0>', ''), ('nn::audio::detail::IAudioIn', 7, '', '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>, InHandle<0,1>', ''), ('nn::audio::detail::IAudioIn', 8, '', '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioIn', 9, '', '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioIn', 10, '', '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>, InHandle<0,1>', ''), ('nn::audio::detail::IAudioInManagerForApplet', 0, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioInManagerForApplet', 1, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioInManagerForApplet', 2, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioInManagerForApplet', 3, '', '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>', ''), ('nn::audio::detail::IAudioInManagerForDebugger', 0, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioInManagerForDebugger', 1, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioOutManager', 0, '', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioOutManager', 1, '', '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,5,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,6,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioOutManager', 2, '', '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioOutManager', 3, '', '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,0x21,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,0x22,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioOut', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioOut', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioOut', 2, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioOut', 3, '', '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioOut', 4, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::audio::detail::IAudioOut', 5, '', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioOut', 6, '', '8 bytes in - 1 bytes out - InRaw<8,8,0>, OutRaw<1,1,0>', ''), ('nn::audio::detail::IAudioOut', 7, '', '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioOut', 8, '', '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioOutManagerForApplet', 0, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioOutManagerForApplet', 1, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioOutManagerForApplet', 2, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioOutManagerForApplet', 3, '', '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>', ''), ('nn::audio::detail::IAudioOutManagerForDebugger', 0, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioOutManagerForDebugger', 1, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioRendererManager', 0, '', '0x48 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<0x34,4,0>, InHandle<0,1>, InHandle<1,1>, InRaw<8,8,0x38>, InRaw<8,8,0x40>', ''), ('nn::audio::detail::IAudioRendererManager', 1, '', '0x34 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x34,4,0>', ''), ('nn::audio::detail::IAudioRendererManager', 2, '', '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioRendererManager', 3, '', '0x50 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<0x34,4,0>, InRaw<8,8,0x38>, InHandle<0,1>, InRaw<8,8,0x40>, InRaw<8,8,0x48>', ''), ('nn::audio::detail::IAudioRenderer', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioRenderer', 1, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioRenderer', 2, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioRenderer', 3, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioRenderer', 4, '', '0 bytes in - 0 bytes out - Buffer<0,6,0>, Buffer<1,6,0>, Buffer<2,5,0>', ''), ('nn::audio::detail::IAudioRenderer', 5, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioRenderer', 6, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioRenderer', 7, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::audio::detail::IAudioRenderer', 8, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::audio::detail::IAudioRenderer', 9, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioRenderer', 10, '', '0 bytes in - 0 bytes out - Buffer<0,0x22,0>, Buffer<1,0x22,0>, Buffer<2,0x21,0>', ''), ('nn::audio::detail::IAudioRenderer', 11, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IAudioDevice', 0, '', '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDevice', 1, '', '4 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDevice', 2, '', '0 bytes in - 4 bytes out - Buffer<0,5,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDevice', 3, '', '0 bytes in - 0 bytes out - Buffer<0,6,0>', ''), ('nn::audio::detail::IAudioDevice', 4, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::audio::detail::IAudioDevice', 5, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDevice', 6, '', '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDevice', 7, '', '4 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDevice', 8, '', '0 bytes in - 4 bytes out - Buffer<0,0x21,0>, OutRaw<4,4,0>', ''), ('nn::audio::detail::IAudioDevice', 10, '', '0 bytes in - 0 bytes out - Buffer<0,0x22,0>', ''), ('nn::audio::detail::IAudioDevice', 11, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::audio::detail::IAudioDevice', 12, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::audio::detail::IAudioRendererManagerForApplet', 0, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioRendererManagerForApplet', 1, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IAudioRendererManagerForApplet', 2, '', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioRendererManagerForApplet', 3, '', '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>', ''), ('nn::audio::detail::IAudioRendererManagerForApplet', 4, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioRendererManagerForApplet', 5, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioRendererManagerForDebugger', 0, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IAudioRendererManagerForDebugger', 1, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IFinalOutputRecorderManager', 0, '', '0x10 bytes in - 0x10 bytes out - OutObject<0,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IFinalOutputRecorder', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::audio::detail::IFinalOutputRecorder', 1, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IFinalOutputRecorder', 2, '', '0 bytes in - 0 bytes out', ''), ('nn::audio::detail::IFinalOutputRecorder', 3, '', '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IFinalOutputRecorder', 4, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::audio::detail::IFinalOutputRecorder', 5, '', '0 bytes in - 0x10 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, OutRaw<8,8,8>', ''), ('nn::audio::detail::IFinalOutputRecorder', 6, '', '8 bytes in - 1 bytes out - InRaw<8,8,0>, OutRaw<1,1,0>', ''), ('nn::audio::detail::IFinalOutputRecorder', 7, '', '8 bytes in - 8 bytes out - InRaw<8,8,0>, OutRaw<8,8,0>', ''), ('nn::audio::detail::IFinalOutputRecorder', 8, '', '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>', ''), ('nn::audio::detail::IFinalOutputRecorder', 9, '', '0 bytes in - 0x10 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>, OutRaw<8,8,8>', ''), ('nn::audio::detail::IFinalOutputRecorderManagerForDebugger', 0, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IFinalOutputRecorderManagerForDebugger', 1, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::audio::detail::IFinalOutputRecorderManagerForApplet', 0, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::audio::detail::IFinalOutputRecorderManagerForApplet', 1, '', '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>', ''), ('nn::mii::detail::IStaticService', 0, 'GetDatabaseService', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::mii::detail::IDatabaseService>,void>,int)'), ('nn::mii::detail::IDatabaseService', 0, 'IsUpdated', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,int)'), ('nn::mii::detail::IDatabaseService', 1, 'IsFullDatabase', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::mii::detail::IDatabaseService', 2, 'GetCount', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,int)'), ('nn::mii::detail::IDatabaseService', 3, 'Get', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::CharInfoElement> const&,int)'), ('nn::mii::detail::IDatabaseService', 4, 'Get1', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::CharInfo> const&,int)'), ('nn::mii::detail::IDatabaseService', 5, 'UpdateLatest', '0x5C bytes in - 0x58 bytes out - OutRaw<0x58,4,0>, InRaw<0x58,4,0>, InRaw<4,4,0x58>', '(nn::sf::Out<nn::mii::CharInfo,void>,nn::mii::CharInfo const&,int)'), ('nn::mii::detail::IDatabaseService', 6, 'BuildRandom', '0xC bytes in - 0x58 bytes out - OutRaw<0x58,4,0>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', '(nn::sf::Out<nn::mii::CharInfo,void>,int,int,int)'), ('nn::mii::detail::IDatabaseService', 7, 'BuildDefault', '4 bytes in - 0x58 bytes out - OutRaw<0x58,4,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::mii::CharInfo,void>,int)'), ('nn::mii::detail::IDatabaseService', 8, 'Get2', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::StoreDataElement> const&,int)'), ('nn::mii::detail::IDatabaseService', 9, 'Get3', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::StoreData> const&,int)'), ('nn::mii::detail::IDatabaseService', 10, 'UpdateLatest1', '0x48 bytes in - 0x44 bytes out - OutRaw<0x44,4,0>, InRaw<0x44,4,0>, InRaw<4,4,0x44>', '(nn::sf::Out<nn::mii::StoreData,void>,nn::mii::StoreData const&,int)'), ('nn::mii::detail::IDatabaseService', 11, 'FindIndex', '0x11 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,1,0>, InRaw<1,1,0x10>', '(nn::sf::Out<int,void>,nn::mii::CreateId const&,bool)'), ('nn::mii::detail::IDatabaseService', 12, 'Move', '0x14 bytes in - 0 bytes out - InRaw<4,4,0x10>, InRaw<0x10,1,0>', '(int,nn::mii::CreateId const&)'), ('nn::mii::detail::IDatabaseService', 13, 'AddOrReplace', '0x44 bytes in - 0 bytes out - InRaw<0x44,4,0>', '(nn::mii::StoreData const&)'), ('nn::mii::detail::IDatabaseService', 14, 'Delete', '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>', '(nn::mii::CreateId const&)'), ('nn::mii::detail::IDatabaseService', 15, 'DestroyFile', '0 bytes in - 0 bytes out', '(void)'), ('nn::mii::detail::IDatabaseService', 16, 'DeleteFile', '0 bytes in - 0 bytes out', '(void)'), ('nn::mii::detail::IDatabaseService', 17, 'Format', '0 bytes in - 0 bytes out', '(void)'), ('nn::mii::detail::IDatabaseService', 18, 'Import', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InBuffer const&)'), ('nn::mii::detail::IDatabaseService', 19, 'Export', '0 bytes in - 0 bytes out - Buffer<0,6,0>', '(nn::sf::OutBuffer const&)'), ('nn::mii::detail::IDatabaseService', 20, 'IsBrokenDatabaseWithClearFlag', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::mii::detail::IDatabaseService', 21, 'GetIndex', '0x58 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x58,4,0>', '(nn::sf::Out<int,void>,nn::mii::CharInfo const&)'), ('nn::pl::detail::ISharedFontManager', 0, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::pl::detail::ISharedFontManager', 1, '', '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>', ''), ('nn::pl::detail::ISharedFontManager', 2, '', '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>', ''), ('nn::pl::detail::ISharedFontManager', 3, '', '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>', ''), ('nn::pl::detail::ISharedFontManager', 4, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::pl::detail::ISharedFontManager', 5, '', '8 bytes in - 8 bytes out - OutRaw<1,1,0>, OutRaw<4,4,4>, Buffer<0,6,0>, Buffer<1,6,0>, Buffer<2,6,0>, InRaw<8,1,0>', ''), ('nn::visrv::sf::IManagerRootService', 2, 'GetDisplayService', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int)'), ('nn::visrv::sf::IManagerRootService', 3, 'GetDisplayServiceWithProxyNameExchange', '0xC bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,8>, InRaw<8,1,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int,nn::vi::ProxyName)'), ('nn::visrv::sf::IApplicationDisplayService', 100, 'GetRelayService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nns::hosbinder::IHOSBinderDriver>,void>)'), ('nn::visrv::sf::IApplicationDisplayService', 101, 'GetSystemDisplayService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::ISystemDisplayService>,void>)'), ('nn::visrv::sf::IApplicationDisplayService', 102, 'GetManagerDisplayService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IManagerDisplayService>,void>)'), ('nn::visrv::sf::IApplicationDisplayService', 103, 'GetIndirectDisplayTransactionService', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nns::hosbinder::IHOSBinderDriver>,void>)'), ('nn::visrv::sf::IApplicationDisplayService', 1000, 'ListDisplays', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::vi::DisplayInfo> const&)'), ('nn::visrv::sf::IApplicationDisplayService', 1010, 'OpenDisplay', '0x40 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x40,1,0>', '(nn::sf::Out<unsigned long,void>,nn::vi::DisplayName const&)'), ('nn::visrv::sf::IApplicationDisplayService', 1011, 'OpenDefaultDisplay', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>)'), ('nn::visrv::sf::IApplicationDisplayService', 1020, 'CloseDisplay', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IApplicationDisplayService', 1101, 'SetDisplayEnabled', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(unsigned long,bool)'), ('nn::visrv::sf::IApplicationDisplayService', 1102, 'GetDisplayResolution', '8 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned long)'), ('nn::visrv::sf::IApplicationDisplayService', 2020, 'OpenLayer', '0x50 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0x40>, InRaw<0x40,1,0>, InRaw<8,8,0x48>', '(nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,nn::vi::DisplayName const&,nn::applet::AppletResourceUserId)'), ('nn::visrv::sf::IApplicationDisplayService', 2021, 'CloseLayer', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IApplicationDisplayService', 2030, 'CreateStrayLayer', '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,unsigned int)'), ('nn::visrv::sf::IApplicationDisplayService', 2031, 'DestroyStrayLayer', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IApplicationDisplayService', 2101, 'SetLayerScalingMode', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::IApplicationDisplayService', 2450, 'GetIndirectLayerImageMap', '0x20 bytes in - 0x10 bytes out - takes pid - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,0x46,0>, InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<8,8,0x18>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,long,long,unsigned long,nn::applet::AppletResourceUserId)'), ('nn::visrv::sf::IApplicationDisplayService', 2451, 'GetIndirectLayerImageCropMap', '0x30 bytes in - 0x10 bytes out - takes pid - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,0x46,0>, InRaw<8,8,0x10>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<4,4,0xC>, InRaw<8,8,0x20>, InRaw<8,8,0x28>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,long,long,float,float,float,float,unsigned long,nn::applet::AppletResourceUserId)'), ('nn::visrv::sf::IApplicationDisplayService', 2460, 'GetIndirectLayerImageRequiredMemoryInfo', '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<8,8,0>, InRaw<8,8,8>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>,long,long)'), ('nn::visrv::sf::IApplicationDisplayService', 5202, 'GetDisplayVsyncEvent', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)'), ('nn::visrv::sf::IApplicationDisplayService', 5203, 'GetDisplayVsyncEventForDebug', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)'), ('nns::hosbinder::IHOSBinderDriver', 0, 'TransactParcel', '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, Buffer<0,5,0>, Buffer<1,6,0>, InRaw<4,4,8>', '(int,unsigned int,nn::sf::InBuffer const&,nn::sf::OutBuffer const&,unsigned int)'), ('nns::hosbinder::IHOSBinderDriver', 1, 'AdjustRefcount', '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', '(int,int,int)'), ('nns::hosbinder::IHOSBinderDriver', 2, 'GetNativeHandle', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, OutHandle<0,1>', '(int,unsigned int,nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nns::hosbinder::IHOSBinderDriver', 3, 'TransactParcelAuto', '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, InRaw<4,4,8>', '(int,unsigned int,nn::sf::InBuffer const&,nn::sf::OutBuffer const&,unsigned int)'), ('nn::visrv::sf::ISystemDisplayService', 1200, 'GetZOrderCountMin', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 1202, 'GetZOrderCountMax', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 1203, 'GetDisplayLogicalResolution', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,0>', '(nn::sf::Out<int,void>,nn::sf::Out<int,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 1204, 'SetDisplayMagnification', '0x18 bytes in - 0 bytes out - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<4,4,0xC>', '(unsigned long,int,int,int,int)'), ('nn::visrv::sf::ISystemDisplayService', 2201, 'SetLayerPosition', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(unsigned long,float,float)'), ('nn::visrv::sf::ISystemDisplayService', 2203, 'SetLayerSize', '0x18 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>', '(unsigned long,long,long)'), ('nn::visrv::sf::ISystemDisplayService', 2204, 'GetLayerZ', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 2205, 'SetLayerZ', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>', '(unsigned long,long)'), ('nn::visrv::sf::ISystemDisplayService', 2207, 'SetLayerVisibility', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(unsigned long,bool)'), ('nn::visrv::sf::ISystemDisplayService', 2209, 'SetLayerAlpha', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,float)'), ('nn::visrv::sf::ISystemDisplayService', 2312, 'CreateStrayLayer', '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<unsigned long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,unsigned int)'), ('nn::visrv::sf::ISystemDisplayService', 2400, 'OpenIndirectLayer', '0x10 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>, InRaw<8,8,8>', '(nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,nn::applet::AppletResourceUserId)'), ('nn::visrv::sf::ISystemDisplayService', 2401, 'CloseIndirectLayer', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 2402, 'FlipIndirectLayer', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3000, 'ListDisplayModes', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::vi::DisplayModeInfo> const&,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3001, 'ListDisplayRgbRanges', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<unsigned int> const&,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3002, 'ListDisplayContentTypes', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<unsigned int> const&,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3200, 'GetDisplayMode', '8 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::vi::DisplayModeInfo,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3201, 'SetDisplayMode', '0x18 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<0x10,4,8>', '(unsigned long,nn::vi::DisplayModeInfo const&)'), ('nn::visrv::sf::ISystemDisplayService', 3202, 'GetDisplayUnderscan', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3203, 'SetDisplayUnderscan', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>', '(unsigned long,long)'), ('nn::visrv::sf::ISystemDisplayService', 3204, 'GetDisplayContentType', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned int,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3205, 'SetDisplayContentType', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::ISystemDisplayService', 3206, 'GetDisplayRgbRange', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned int,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3207, 'SetDisplayRgbRange', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::ISystemDisplayService', 3208, 'GetDisplayCmuMode', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned int,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3209, 'SetDisplayCmuMode', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::ISystemDisplayService', 3210, 'GetDisplayContrastRatio', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<float,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3211, 'SetDisplayContrastRatio', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,float)'), ('nn::visrv::sf::ISystemDisplayService', 3214, 'GetDisplayGamma', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<float,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3215, 'SetDisplayGamma', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,float)'), ('nn::visrv::sf::ISystemDisplayService', 3216, 'GetDisplayCmuLuma', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<float,void>,unsigned long)'), ('nn::visrv::sf::ISystemDisplayService', 3217, 'SetDisplayCmuLuma', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,float)'), ('nn::visrv::sf::IManagerDisplayService', 1102, 'GetDisplayResolution', '8 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2010, 'CreateManagedLayer', '0x18 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>', '(nn::sf::Out<unsigned long,void>,unsigned long,unsigned int,nn::applet::AppletResourceUserId)'), ('nn::visrv::sf::IManagerDisplayService', 2011, 'DestroyManagedLayer', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2050, 'CreateIndirectLayer', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<unsigned long,void>)'), ('nn::visrv::sf::IManagerDisplayService', 2051, 'DestroyIndirectLayer', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2052, 'CreateIndirectProducerEndPoint', '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>', '(nn::sf::Out<unsigned long,void>,unsigned long,nn::applet::AppletResourceUserId)'), ('nn::visrv::sf::IManagerDisplayService', 2053, 'DestroyIndirectProducerEndPoint', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2054, 'CreateIndirectConsumerEndPoint', '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>', '(nn::sf::Out<unsigned long,void>,unsigned long,nn::applet::AppletResourceUserId)'), ('nn::visrv::sf::IManagerDisplayService', 2055, 'DestroyIndirectConsumerEndPoint', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2300, 'AcquireLayerTexturePresentingEvent', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2301, 'ReleaseLayerTexturePresentingEvent', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2302, 'GetDisplayHotplugEvent', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 2402, 'GetDisplayHotplugState', '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>', '(nn::sf::Out<unsigned int,void>,unsigned long)'), ('nn::visrv::sf::IManagerDisplayService', 4201, 'SetDisplayAlpha', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,float)'), ('nn::visrv::sf::IManagerDisplayService', 4203, 'SetDisplayLayerStack', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::IManagerDisplayService', 4205, 'SetDisplayPowerState', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::IManagerDisplayService', 6000, 'AddToLayerStack', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::IManagerDisplayService', 6001, 'RemoveFromLayerStack', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>', '(unsigned long,unsigned int)'), ('nn::visrv::sf::IManagerDisplayService', 6002, 'SetLayerVisibility', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(unsigned long,bool)'), ('nn::visrv::sf::IManagerDisplayService', 7000, 'SetContentVisibility', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::visrv::sf::IManagerDisplayService', 8000, 'SetConductorLayer', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(unsigned long,bool)'), ('nn::visrv::sf::IManagerDisplayService', 8100, 'SetIndirectProducerFlipOffset', '0x18 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>', '(unsigned long,unsigned long,nn::TimeSpan)'), ('nn::visrv::sf::ISystemRootService', 1, 'GetDisplayService', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int)'), ('nn::visrv::sf::ISystemRootService', 3, 'GetDisplayServiceWithProxyNameExchange', '0xC bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,8>, InRaw<8,1,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int,nn::vi::ProxyName)'), ('nn::visrv::sf::IApplicationRootService', 0, 'GetDisplayService', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int)'), ('nn::hid::IHidDebugServer', 0, 'DeactivateDebugPad', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 1, 'SetDebugPadAutoPilotState', '0x18 bytes in - 0 bytes out - InRaw<0x18,4,0>', '(nn::hid::debug::DebugPadAutoPilotState const&)'), ('nn::hid::IHidDebugServer', 2, 'UnsetDebugPadAutoPilotState', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 10, 'DeactivateTouchScreen', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 11, 'SetTouchScreenAutoPilotState', '0 bytes in - 0 bytes out - Buffer<0,5,0>', '(nn::sf::InArray<nn::hid::TouchState> const&)'), ('nn::hid::IHidDebugServer', 12, 'UnsetTouchScreenAutoPilotState', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 20, 'DeactivateMouse', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 21, 'SetMouseAutoPilotState', '0x1C bytes in - 0 bytes out - InRaw<0x1C,4,0>', '(nn::hid::debug::MouseAutoPilotState const&)'), ('nn::hid::IHidDebugServer', 22, 'UnsetMouseAutoPilotState', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 30, 'DeactivateKeyboard', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 31, 'SetKeyboardAutoPilotState', '0x28 bytes in - 0 bytes out - InRaw<0x28,8,0>', '(nn::hid::debug::KeyboardAutoPilotState const&)'), ('nn::hid::IHidDebugServer', 32, 'UnsetKeyboardAutoPilotState', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 50, 'DeactivateXpad', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::BasicXpadId)'), ('nn::hid::IHidDebugServer', 51, 'SetXpadAutoPilotState', '0x20 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<0x1C,4,4>', '(nn::hid::BasicXpadId,nn::hid::debug::BasicXpadAutoPilotState const&)'), ('nn::hid::IHidDebugServer', 52, 'UnsetXpadAutoPilotState', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::BasicXpadId)'), ('nn::hid::IHidDebugServer', 60, 'DeactivateJoyXpad', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::JoyXpadId)'), ('nn::hid::IHidDebugServer', 91, 'DeactivateGesture', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 110, 'DeactivateHomeButton', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 111, 'SetHomeButtonAutoPilotState', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::hid::debug::HomeButtonAutoPilotState)'), ('nn::hid::IHidDebugServer', 112, 'UnsetHomeButtonAutoPilotState', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 120, 'DeactivateSleepButton', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 121, 'SetSleepButtonAutoPilotState', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::hid::debug::SleepButtonAutoPilotState)'), ('nn::hid::IHidDebugServer', 122, 'UnsetSleepButtonAutoPilotState', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 123, 'DeactivateInputDetector', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 130, 'DeactivateCaptureButton', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 131, 'SetCaptureButtonAutoPilotState', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::hid::debug::CaptureButtonAutoPilotState)'), ('nn::hid::IHidDebugServer', 132, 'UnsetCaptureButtonAutoPilotState', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 133, 'SetShiftAccelerometerCalibrationValue', '0x18 bytes in - 0 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,0x10>, InRaw<4,4,4>, InRaw<4,4,8>', '(nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId,float,float)'), ('nn::hid::IHidDebugServer', 134, 'GetShiftAccelerometerCalibrationValue', '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<8,8,8>', '(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidDebugServer', 135, 'SetShiftGyroscopeCalibrationValue', '0x18 bytes in - 0 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,0x10>, InRaw<4,4,4>, InRaw<4,4,8>', '(nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId,float,float)'), ('nn::hid::IHidDebugServer', 136, 'GetShiftGyroscopeCalibrationValue', '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<8,8,8>', '(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidDebugServer', 140, 'DeactivateConsoleSixAxisSensor', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 201, 'ActivateFirmwareUpdate', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 202, 'DeactivateFirmwareUpdate', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 203, 'StartFirmwareUpdate', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::hid::system::UniquePadId)'), ('nn::hid::IHidDebugServer', 204, 'GetFirmwareUpdateStage', '0 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>)'), ('nn::hid::IHidDebugServer', 205, 'GetFirmwareVersion', '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,unsigned int,nn::util::BitFlagSet<32,nn::hid::system::DeviceType>)'), ('nn::hid::IHidDebugServer', 206, 'GetDestinationFirmwareVersion', '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,unsigned int,nn::util::BitFlagSet<32,nn::hid::system::DeviceType>)'), ('nn::hid::IHidDebugServer', 207, 'DiscardFirmwareInfoCacheForRevert', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidDebugServer', 208, 'StartFirmwareUpdateForRevert', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::hid::system::UniquePadId)'), ('nn::hid::IHidDebugServer', 209, 'GetAvailableFirmwareVersionForRevert', '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidDebugServer', 221, 'UpdateControllerColor', '0x10 bytes in - 0 bytes out - InRaw<4,1,0>, InRaw<4,1,4>, InRaw<8,8,8>', '(nn::util::Unorm8x4,nn::util::Unorm8x4,nn::hid::system::UniquePadId)'), ('nn::hid::IHidServer', 0, 'CreateAppletResource', '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::hid::IAppletResource>,void>,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 1, 'ActivateDebugPad', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 11, 'ActivateTouchScreen', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 21, 'ActivateMouse', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 31, 'ActivateKeyboard', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 40, 'AcquireXpadIdEventHandle', '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)'), ('nn::hid::IHidServer', 41, 'ReleaseXpadIdEventHandle', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(unsigned long)'), ('nn::hid::IHidServer', 51, 'ActivateXpad', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::BasicXpadId)'), ('nn::hid::IHidServer', 55, 'GetXpadIds', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::BasicXpadId> const&)'), ('nn::hid::IHidServer', 56, 'ActivateJoyXpad', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::JoyXpadId)'), ('nn::hid::IHidServer', 58, 'GetJoyXpadLifoHandle', '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::hid::JoyXpadId)'), ('nn::hid::IHidServer', 59, 'GetJoyXpadIds', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::JoyXpadId> const&)'), ('nn::hid::IHidServer', 60, 'ActivateSixAxisSensor', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::BasicXpadId)'), ('nn::hid::IHidServer', 61, 'DeactivateSixAxisSensor', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::BasicXpadId)'), ('nn::hid::IHidServer', 62, 'GetSixAxisSensorLifoHandle', '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::hid::BasicXpadId)'), ('nn::hid::IHidServer', 63, 'ActivateJoySixAxisSensor', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::JoyXpadId)'), ('nn::hid::IHidServer', 64, 'DeactivateJoySixAxisSensor', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::JoyXpadId)'), ('nn::hid::IHidServer', 65, 'GetJoySixAxisSensorLifoHandle', '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::hid::JoyXpadId)'), ('nn::hid::IHidServer', 66, 'StartSixAxisSensor', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 67, 'StopSixAxisSensor', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 68, 'IsSixAxisSensorFusionEnabled', '0x10 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 69, 'EnableSixAxisSensorFusion', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,4>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,bool)'), ('nn::hid::IHidServer', 70, 'SetSixAxisSensorFusionParameters', '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,float,float)'), ('nn::hid::IHidServer', 71, 'GetSixAxisSensorFusionParameters', '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 72, 'ResetSixAxisSensorFusionParameters', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 73, 'SetAccelerometerParameters', '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,float,float)'), ('nn::hid::IHidServer', 74, 'GetAccelerometerParameters', '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 75, 'ResetAccelerometerParameters', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 76, 'SetAccelerometerPlayMode', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,unsigned int)'), ('nn::hid::IHidServer', 77, 'GetAccelerometerPlayMode', '0x10 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 78, 'ResetAccelerometerPlayMode', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 79, 'SetGyroscopeZeroDriftMode', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,unsigned int)'), ('nn::hid::IHidServer', 80, 'GetGyroscopeZeroDriftMode', '0x10 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 81, 'ResetGyroscopeZeroDriftMode', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 82, 'IsSixAxisSensorAtRest', '0x10 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)'), ('nn::hid::IHidServer', 91, 'ActivateGesture', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,int)'), ('nn::hid::IHidServer', 100, 'SetSupportedNpadStyleSet', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::util::BitFlagSet<32,nn::hid::NpadStyleTag>)'), ('nn::hid::IHidServer', 101, 'GetSupportedNpadStyleSet', '8 bytes in - 4 bytes out - takes pid - InRaw<8,8,0>, OutRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::sf::Out<nn::util::BitFlagSet<32,nn::hid::NpadStyleTag>,void>)'), ('nn::hid::IHidServer', 102, 'SetSupportedNpadIdType', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, Buffer<0,9,0>', '(nn::applet::AppletResourceUserId,nn::sf::InArray<unsigned int> const&)'), ('nn::hid::IHidServer', 103, 'ActivateNpad', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 104, 'DeactivateNpad', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 106, 'AcquireNpadStyleSetUpdateEventHandle', '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<8,8,0x10>', '(nn::applet::AppletResourceUserId,nn::sf::Out<nn::sf::NativeHandle,void>,unsigned int,unsigned long)'), ('nn::hid::IHidServer', 107, 'DisconnectNpad', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,unsigned int)'), ('nn::hid::IHidServer', 108, 'GetPlayerLedPattern', '4 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<4,4,0>', '(nn::sf::Out<unsigned long,void>,unsigned int)'), ('nn::hid::IHidServer', 120, 'SetNpadJoyHoldType', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::applet::AppletResourceUserId,long)'), ('nn::hid::IHidServer', 121, 'GetNpadJoyHoldType', '8 bytes in - 8 bytes out - takes pid - InRaw<8,8,0>, OutRaw<8,8,0>', '(nn::applet::AppletResourceUserId,nn::sf::Out<long,void>)'), ('nn::hid::IHidServer', 122, 'SetNpadJoyAssignmentModeSingleByDefault', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,unsigned int)'), ('nn::hid::IHidServer', 123, 'SetNpadJoyAssignmentModeSingle', '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>', '(nn::applet::AppletResourceUserId,unsigned int,long)'), ('nn::hid::IHidServer', 124, 'SetNpadJoyAssignmentModeDual', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,unsigned int)'), ('nn::hid::IHidServer', 125, 'MergeSingleJoyAsDualJoy', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::applet::AppletResourceUserId,unsigned int,unsigned int)'), ('nn::hid::IHidServer', 126, 'StartLrAssignmentMode', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 127, 'StopLrAssignmentMode', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 128, 'SetNpadHandheldActivationMode', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::applet::AppletResourceUserId,long)'), ('nn::hid::IHidServer', 129, 'GetNpadHandheldActivationMode', '8 bytes in - 8 bytes out - takes pid - InRaw<8,8,0>, OutRaw<8,8,0>', '(nn::applet::AppletResourceUserId,nn::sf::Out<long,void>)'), ('nn::hid::IHidServer', 130, 'SwapNpadAssignment', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::applet::AppletResourceUserId,unsigned int,unsigned int)'), ('nn::hid::IHidServer', 131, 'IsUnintendedHomeButtonInputProtectionEnabled', '0x10 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::applet::AppletResourceUserId,unsigned int)'), ('nn::hid::IHidServer', 132, 'EnableUnintendedHomeButtonInputProtection', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,4>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,unsigned int,bool)'), ('nn::hid::IHidServer', 200, 'GetVibrationDeviceInfo', '4 bytes in - 8 bytes out - OutRaw<8,4,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::hid::VibrationDeviceInfoForIpc,void>,nn::hid::VibrationDeviceHandle)'), ('nn::hid::IHidServer', 201, 'SendVibrationValue', '0x20 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,4,4>', '(nn::applet::AppletResourceUserId,nn::hid::VibrationDeviceHandle,nn::hid::VibrationValue const&)'), ('nn::hid::IHidServer', 202, 'GetActualVibrationValue', '0x10 bytes in - 0x10 bytes out - takes pid - OutRaw<0x10,4,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<nn::hid::VibrationValue,void>,nn::applet::AppletResourceUserId,nn::hid::VibrationDeviceHandle)'), ('nn::hid::IHidServer', 203, 'CreateActiveVibrationDeviceList', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::hid::IActiveVibrationDeviceList>,void>)'), ('nn::hid::IHidServer', 204, 'PermitVibration', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::hid::IHidServer', 205, 'IsVibrationPermitted', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::hid::IHidServer', 206, 'SendVibrationValues', '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,9,0>, Buffer<1,9,0>', '(nn::applet::AppletResourceUserId,nn::sf::InArray<nn::hid::VibrationDeviceHandle> const&,nn::sf::InArray<nn::hid::VibrationValue> const&)'), ('nn::hid::IHidServer', 300, 'ActivateConsoleSixAxisSensor', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidServer', 301, 'StartConsoleSixAxisSensor', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::ConsoleSixAxisSensorHandle)'), ('nn::hid::IHidServer', 302, 'StopConsoleSixAxisSensor', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::hid::ConsoleSixAxisSensorHandle)'), ('nn::hid::IHidServer', 400, 'IsUsbFullKeyControllerEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::hid::IHidServer', 401, 'EnableUsbFullKeyController', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::hid::IHidServer', 402, 'IsUsbFullKeyControllerConnected', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,unsigned int)'), ('nn::hid::IHidServer', 1000, 'SetNpadCommunicationMode', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::applet::AppletResourceUserId,long)'), ('nn::hid::IHidServer', 1001, 'GetNpadCommunicationMode', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::hid::IAppletResource', 0, 'GetSharedMemoryHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::hid::IActiveVibrationDeviceList', 0, 'ActivateVibrationDevice', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::VibrationDeviceHandle)'), ('nn::hid::IHidSystemServer', 31, 'SendKeyboardLockKeyEvent', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::util::BitFlagSet<32,nn::hid::system::KeyboardLockKeyEvent>)'), ('nn::hid::IHidSystemServer', 101, 'AcquireHomeButtonEventHandle', '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 111, 'ActivateHomeButton', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 121, 'AcquireSleepButtonEventHandle', '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 131, 'ActivateSleepButton', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 141, 'AcquireCaptureButtonEventHandle', '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 151, 'ActivateCaptureButton', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 210, 'AcquireNfcDeviceUpdateEventHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::hid::IHidSystemServer', 211, 'GetNpadsWithNfc', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<unsigned int> const&)'), ('nn::hid::IHidSystemServer', 212, 'AcquireNfcActivateEventHandle', '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned int)'), ('nn::hid::IHidSystemServer', 213, 'ActivateNfc', '0x10 bytes in - 0 bytes out - takes pid - InRaw<4,4,4>, InRaw<1,1,0>, InRaw<8,8,8>', '(unsigned int,bool,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 230, 'AcquireIrSensorEventHandle', '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned int)'), ('nn::hid::IHidSystemServer', 231, 'ActivateIrSensor', '0x10 bytes in - 0 bytes out - takes pid - InRaw<4,4,4>, InRaw<1,1,0>, InRaw<8,8,8>', '(unsigned int,bool,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 301, 'ActivateNpadSystem', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(unsigned int)'), ('nn::hid::IHidSystemServer', 303, 'ApplyNpadSystemCommonPolicy', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 304, 'EnableAssigningSingleOnSlSrPress', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 305, 'DisableAssigningSingleOnSlSrPress', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 306, 'GetLastActiveNpad', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::hid::IHidSystemServer', 307, 'GetNpadSystemExtStyle', '4 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned int)'), ('nn::hid::IHidSystemServer', 311, 'SetNpadPlayerLedBlinkingDevice', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::applet::AppletResourceUserId,unsigned int,nn::util::BitFlagSet<32,nn::hid::system::DeviceType>)'), ('nn::hid::IHidSystemServer', 321, 'GetUniquePadsFromNpad', '4 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>, InRaw<4,4,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::UniquePadId> const&,unsigned int)'), ('nn::hid::IHidSystemServer', 322, 'GetIrSensorState', '0x10 bytes in - 8 bytes out - takes pid - InRaw<4,4,0>, OutRaw<8,8,0>, InRaw<8,8,8>', '(unsigned int,nn::sf::Out<long,void>,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 323, 'GetXcdHandleForNpadWithIrSensor', '0x10 bytes in - 8 bytes out - takes pid - InRaw<4,4,0>, OutRaw<8,8,0>, InRaw<8,8,8>', '(unsigned int,nn::sf::Out<unsigned long,void>,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 500, 'SetAppletResourceUserId', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 501, 'RegisterAppletResourceUserId', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,bool)'), ('nn::hid::IHidSystemServer', 502, 'UnregisterAppletResourceUserId', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 503, 'EnableAppletToGetInput', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,bool)'), ('nn::hid::IHidSystemServer', 504, 'SetAruidValidForVibration', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,bool)'), ('nn::hid::IHidSystemServer', 505, 'EnableAppletToGetSixAxisSensor', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,bool)'), ('nn::hid::IHidSystemServer', 510, 'SetVibrationMasterVolume', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(float)'), ('nn::hid::IHidSystemServer', 511, 'GetVibrationMasterVolume', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<float,void>)'), ('nn::hid::IHidSystemServer', 512, 'BeginPermitVibrationSession', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 513, 'EndPermitVibrationSession', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidSystemServer', 520, 'EnableHandheldHids', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidSystemServer', 521, 'DisableHandheldHids', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidSystemServer', 540, 'AcquirePlayReportControllerUsageUpdateEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::hid::IHidSystemServer', 541, 'GetPlayReportControllerUsages', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::PlayReportControllerUsage> const&)'), ('nn::hid::IHidSystemServer', 542, 'AcquirePlayReportRegisteredDeviceUpdateEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::hid::IHidSystemServer', 543, 'GetRegisteredDevices', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::RegisteredDevice> const&)'), ('nn::hid::IHidSystemServer', 544, 'AcquireConnectionTriggerTimeoutEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::hid::IHidSystemServer', 545, 'SendConnectionTrigger', '6 bytes in - 0 bytes out - InRaw<6,1,0>', '(nn::bluetooth::Address)'), ('nn::hid::IHidSystemServer', 546, 'AcquireDeviceRegisteredEventForControllerSupport', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::hid::IHidSystemServer', 547, 'GetAllowedBluetoothLinksCount', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', '(nn::sf::Out<long,void>)'), ('nn::hid::IHidSystemServer', 700, 'ActivateUniquePad', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::applet::AppletResourceUserId,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 702, 'AcquireUniquePadConnectionEventHandle', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::hid::IHidSystemServer', 703, 'GetUniquePadIds', '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::UniquePadId> const&)'), ('nn::hid::IHidSystemServer', 751, 'AcquireJoyDetachOnBluetoothOffEventHandle', '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 800, 'ListSixAxisSensorHandles', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::UniqueSixAxisSensorHandle> const&,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 801, 'IsSixAxisSensorUserCalibrationSupported', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,nn::hid::system::UniqueSixAxisSensorHandle)'), ('nn::hid::IHidSystemServer', 802, 'ResetSixAxisSensorCalibrationValues', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::system::UniqueSixAxisSensorHandle)'), ('nn::hid::IHidSystemServer', 803, 'StartSixAxisSensorUserCalibration', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::system::UniqueSixAxisSensorHandle)'), ('nn::hid::IHidSystemServer', 804, 'CancelSixAxisSensorUserCalibration', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::hid::system::UniqueSixAxisSensorHandle)'), ('nn::hid::IHidSystemServer', 805, 'GetUniquePadBluetoothAddress', '8 bytes in - 6 bytes out - OutRaw<6,1,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::bluetooth::Address,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 806, 'DisconnectUniquePad', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 821, 'StartAnalogStickManualCalibration', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::hid::system::UniquePadId,long)'), ('nn::hid::IHidSystemServer', 822, 'RetryCurrentAnalogStickManualCalibrationStage', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::hid::system::UniquePadId,long)'), ('nn::hid::IHidSystemServer', 823, 'CancelAnalogStickManualCalibration', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::hid::system::UniquePadId,long)'), ('nn::hid::IHidSystemServer', 824, 'ResetAnalogStickManualCalibration', '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>', '(nn::hid::system::UniquePadId,long)'), ('nn::hid::IHidSystemServer', 850, 'IsUsbFullKeyControllerEnabled', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::hid::IHidSystemServer', 851, 'EnableUsbFullKeyController', '1 bytes in - 0 bytes out - InRaw<1,1,0>', '(bool)'), ('nn::hid::IHidSystemServer', 852, 'IsUsbConnected', '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>', '(nn::sf::Out<bool,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 900, 'ActivateInputDetector', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::hid::IHidSystemServer', 901, 'NotifyInputDetector', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::util::BitFlagSet<32,nn::hid::system::InputSourceId>)'), ('nn::hid::IHidSystemServer', 1000, 'InitializeFirmwareUpdate', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidSystemServer', 1001, 'GetFirmwareVersion', '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 1002, 'GetAvailableFirmwareVersion', '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 1003, 'IsFirmwareUpdateAvailable', '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>', '(nn::sf::Out<bool,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 1004, 'CheckFirmwareUpdateRequired', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<long,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 1005, 'StartFirmwareUpdate', '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::hid::system::FirmwareUpdateDeviceHandle,void>,nn::hid::system::UniquePadId)'), ('nn::hid::IHidSystemServer', 1006, 'AbortFirmwareUpdate', '0 bytes in - 0 bytes out', '(void)'), ('nn::hid::IHidSystemServer', 1007, 'GetFirmwareUpdateState', '8 bytes in - 4 bytes out - OutRaw<4,1,0>, InRaw<8,8,0>', '(nn::sf::Out<nn::hid::system::FirmwareUpdateState,void>,nn::hid::system::FirmwareUpdateDeviceHandle)'), ('nn::hid::IHidTemporaryServer', 0, 'GetConsoleSixAxisSensorCalibrationValues', '0x10 bytes in - 0x18 bytes out - takes pid - OutRaw<0x18,2,0>, InRaw<8,8,8>, InRaw<4,4,0>', '(nn::sf::Out<nn::hid::tmp::ConsoleSixAxisSensorCalibrationValues,void>,nn::applet::AppletResourceUserId,nn::hid::ConsoleSixAxisSensorHandle)'), ('nn::irsensor::IIrSensorServer', 302, 'ActivateIrsensor', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::irsensor::IIrSensorServer', 303, 'DeactivateIrsensor', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::irsensor::IIrSensorServer', 304, 'GetIrsensorSharedMemoryHandle', '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)'), ('nn::irsensor::IIrSensorServer', 305, 'StopImageProcessor', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle)'), ('nn::irsensor::IIrSensorServer', 306, 'RunMomentProcessor', '0x30 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<0x20,8,0x10>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedMomentProcessorConfig const&)'), ('nn::irsensor::IIrSensorServer', 307, 'RunClusteringProcessor', '0x38 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<0x28,8,0x10>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedClusteringProcessorConfig const&)'), ('nn::irsensor::IIrSensorServer', 308, 'RunImageTransferProcessor', '0x30 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<0x18,8,0x10>, InHandle<0,1>, InRaw<8,8,0x28>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedImageTransferProcessorConfig const&,nn::sf::NativeHandle &&,unsigned long)'), ('nn::irsensor::IIrSensorServer', 309, 'GetImageTransferProcessorState', '0x10 bytes in - 0x10 bytes out - takes pid - InRaw<8,8,8>, OutRaw<0x10,8,0>, Buffer<0,6,0>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::sf::Out<nn::irsensor::ImageTransferProcessorState,void>,nn::sf::OutBuffer const&,nn::irsensor::IrCameraHandle)'), ('nn::irsensor::IIrSensorServer', 310, 'RunTeraPluginProcessor', '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<8,2,4>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedTeraPluginProcessorConfig)'), ('nn::irsensor::IIrSensorServer', 311, 'GetNpadIrCameraHandle', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::irsensor::IrCameraHandle,void>,unsigned int)'), ('nn::irsensor::IIrSensorServer', 312, 'RunDpdProcessor', '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<0xC,2,4>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedDpdProcessorConfig const&)'), ('nn::irsensor::IIrSensorServer', 313, 'SuspendImageProcessor', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle)'), ('nn::irsensor::IIrSensorServer', 314, 'CheckFirmwareVersion', '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,2,4>', '(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedMcuVersion)'), ('nn::irsensor::IIrSensorSystemServer', 500, 'SetAppletResourceUserId', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::irsensor::IIrSensorSystemServer', 501, 'RegisterAppletResourceUserId', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,bool)'), ('nn::irsensor::IIrSensorSystemServer', 502, 'UnregisterAppletResourceUserId', '8 bytes in - 0 bytes out - InRaw<8,8,0>', '(nn::applet::AppletResourceUserId)'), ('nn::irsensor::IIrSensorSystemServer', 503, 'EnableAppletToGetInput', '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>', '(nn::applet::AppletResourceUserId,bool)'), ('nn::capsrv::sf::IScreenShotApplicationService', 201, 'SaveScreenShot', '0x10 bytes in - 0x20 bytes out - takes pid - OutRaw<0x20,1,0>, Buffer<0,0x45,0>, InRaw<4,4,0>, InRaw<8,8,8>, InRaw<4,4,4>', '(nn::sf::Out<nn::capsrv::ApplicationAlbumEntry,void>,nn::sf::InBuffer const&,unsigned int,nn::applet::AppletResourceUserId,unsigned int)'), ('nn::capsrv::sf::IScreenShotApplicationService', 203, 'SaveScreenShotEx0', '0x50 bytes in - 0x20 bytes out - takes pid - OutRaw<0x20,1,0>, Buffer<0,0x45,0>, InRaw<0x40,4,0>, InRaw<8,8,0x48>, InRaw<4,4,0x40>', '(nn::sf::Out<nn::capsrv::ApplicationAlbumEntry,void>,nn::sf::InBuffer const&,nn::capsrv::detail::ScreenShotAttributeEx0 const&,nn::applet::AppletResourceUserId,unsigned int)'), ('nn::ldn::detail::IUserServiceCreator', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 1, '', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 2, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 3, '', '0 bytes in - 2 bytes out - OutRaw<2,2,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 4, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 5, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 100, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 101, '', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>, Buffer<1,0xA,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 102, '', '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 103, '', '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 200, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 201, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 202, '', '0x98 bytes in - 0 bytes out - InRaw<0x20,8,0x78>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 203, '', '0xB8 bytes in - 0 bytes out - InRaw<0x20,8,0x98>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, Buffer<0,9,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 204, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 205, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 206, '', '0 bytes in - 0 bytes out - Buffer<0,0x21,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 207, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 208, '', '6 bytes in - 0 bytes out - InRaw<6,1,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 209, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 300, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 301, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 302, '', '0x7C bytes in - 0 bytes out - Buffer<0,0x19,0x480>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>, InRaw<4,4,0x74>, InRaw<4,4,0x78>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 303, '', '0xC0 bytes in - 0 bytes out - InRaw<0x20,8,0xA0>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, InRaw<4,4,0x94>, InRaw<4,4,0x98>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 304, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 400, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::ldn::detail::IUserLocalCommunicationService', 401, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IMonitorServiceCreator', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::ldn::detail::IMonitorService', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::ldn::detail::IMonitorService', 1, '', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>', ''), ('nn::ldn::detail::IMonitorService', 2, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::ldn::detail::IMonitorService', 3, '', '0 bytes in - 2 bytes out - OutRaw<2,2,0>', ''), ('nn::ldn::detail::IMonitorService', 4, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', ''), ('nn::ldn::detail::IMonitorService', 5, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>', ''), ('nn::ldn::detail::IMonitorService', 100, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::IMonitorService', 101, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemServiceCreator', 0, '', '0 bytes in - 0 bytes out - OutObject<0,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 0, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 1, '', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 2, '', '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 3, '', '0 bytes in - 2 bytes out - OutRaw<2,2,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 4, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 5, '', '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 100, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 101, '', '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>, Buffer<1,0xA,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 102, '', '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 103, '', '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 200, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 201, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 202, '', '0x98 bytes in - 0 bytes out - InRaw<0x20,8,0x78>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 203, '', '0xB8 bytes in - 0 bytes out - InRaw<0x20,8,0x98>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, Buffer<0,9,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 204, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 205, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 206, '', '0 bytes in - 0 bytes out - Buffer<0,0x21,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 207, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 208, '', '6 bytes in - 0 bytes out - InRaw<6,1,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 209, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 300, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 301, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 302, '', '0x7C bytes in - 0 bytes out - Buffer<0,0x19,0x480>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>, InRaw<4,4,0x74>, InRaw<4,4,0x78>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 303, '', '0xC0 bytes in - 0 bytes out - InRaw<0x20,8,0xA0>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, InRaw<4,4,0x94>, InRaw<4,4,0x98>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 304, '', '0 bytes in - 0 bytes out', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 400, '', '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>', ''), ('nn::ldn::detail::ISystemLocalCommunicationService', 401, '', '0 bytes in - 0 bytes out', ''), ('nn::fgm::sf::ISession', 0, 'Initialize', '0 bytes in - 0 bytes out - OutObject<0,0>', '(nn::sf::Out<nn::sf::SharedPointer<nn::fgm::sf::IRequest>,void>)'), ('nn::fgm::sf::IRequest', 0, 'Initialize', '0x10 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<4,4,0>, InRaw<8,8,8>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::fgm::Module,unsigned long)'), ('nn::fgm::sf::IRequest', 1, 'Set', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(unsigned int,unsigned int)'), ('nn::fgm::sf::IRequest', 2, 'Get', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::fgm::sf::IRequest', 3, 'Cancel', '0 bytes in - 0 bytes out', '(void)'), ('nn::fgm::sf::IDebugger', 0, 'Initialize', '8 bytes in - 0 bytes out - OutHandle<0,1>, InHandle<0,1>, InRaw<8,8,0>', '(nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::NativeHandle&&,unsigned long)'), ('nn::fgm::sf::IDebugger', 1, 'Read', '0 bytes in - 0xC bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>', '(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>)'), ('nn::fgm::sf::IDebugger', 2, 'Cancel', '0 bytes in - 0 bytes out', '(void)'), ('nn::gpio::IManager', 0, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::gpio::IManager', 1, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::gpio::IManager', 2, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::gpio::IManager', 3, '', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', ''), ('nn::gpio::IManager', 4, '', '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>', ''), ('nn::gpio::IManager', 5, '', '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>', ''), ('nn::gpio::IManager', 6, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::gpio::IPadSession', 0, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 1, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 2, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 3, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 4, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::gpio::IPadSession', 5, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::gpio::IPadSession', 6, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 7, '', '0 bytes in - 0 bytes out', ''), ('nn::gpio::IPadSession', 8, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 9, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 10, '', '0 bytes in - 0 bytes out - OutHandle<0,1>', ''), ('nn::gpio::IPadSession', 11, '', '0 bytes in - 0 bytes out', ''), ('nn::gpio::IPadSession', 12, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::gpio::IPadSession', 13, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::gpio::IPadSession', 14, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::gpio::IPadSession', 15, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::i2c::IManager', 0, '', '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,4>, InRaw<2,2,0>, InRaw<4,4,8>, InRaw<4,4,0xC>', ''), ('nn::i2c::IManager', 1, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::i2c::IManager', 2, '', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', ''), ('nn::i2c::IManager', 3, '', '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,4>, InRaw<2,2,0>, InRaw<4,4,8>, InRaw<4,4,0xC>', ''), ('nn::i2c::ISession', 0, '', '4 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<4,4,0>', ''), ('nn::i2c::ISession', 1, '', '4 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<4,4,0>', ''), ('nn::i2c::ISession', 2, '', '0 bytes in - 0 bytes out - Buffer<0,6,0>, Buffer<1,9,0>', ''), ('nn::i2c::ISession', 10, '', '4 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<4,4,0>', ''), ('nn::i2c::ISession', 11, '', '4 bytes in - 0 bytes out - Buffer<0,0x22,0>, InRaw<4,4,0>', ''), ('nn::i2c::ISession', 12, '', '0 bytes in - 0 bytes out - Buffer<0,0x22,0>, Buffer<1,9,0>', ''), ('nn::pcv::detail::IPcvService', 0, 'SetPowerEnabled', '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>', '(int,bool)'), ('nn::pcv::detail::IPcvService', 1, 'SetClockEnabled', '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>', '(int,bool)'), ('nn::pcv::detail::IPcvService', 2, 'SetClockRate', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(int,unsigned int)'), ('nn::pcv::detail::IPcvService', 3, 'GetClockRate', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>,int)'), ('nn::pcv::detail::IPcvService', 4, 'GetState', '4 bytes in - 0xC bytes out - OutRaw<0xC,4,0>, InRaw<4,4,0>', '(nn::sf::Out<nn::pcv::ModuleState,void>,int)'), ('nn::pcv::detail::IPcvService', 5, 'GetPossibleClockRates', '8 bytes in - 8 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::Out<int,void>,nn::sf::OutArray<unsigned int> const&,nn::sf::Out<int,void>,int,int)'), ('nn::pcv::detail::IPcvService', 6, 'SetMinVClockRate', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(int,unsigned int)'), ('nn::pcv::detail::IPcvService', 7, 'SetReset', '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>', '(int,bool)'), ('nn::pcv::detail::IPcvService', 8, 'SetVoltageEnabled', '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>', '(int,bool)'), ('nn::pcv::detail::IPcvService', 9, 'GetVoltageEnabled', '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>', '(nn::sf::Out<bool,void>,int)'), ('nn::pcv::detail::IPcvService', 10, 'GetVoltageRange', '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,nn::sf::Out<int,void>,nn::sf::Out<int,void>,int)'), ('nn::pcv::detail::IPcvService', 11, 'SetVoltageValue', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(int,int)'), ('nn::pcv::detail::IPcvService', 12, 'GetVoltageValue', '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::Out<int,void>,int)'), ('nn::pcv::detail::IPcvService', 13, 'GetTemperatureThresholds', '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::OutArray<nn::pcv::TemperatureThreshold> const&,nn::sf::Out<int,void>,int)'), ('nn::pcv::detail::IPcvService', 14, 'SetTemperature', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::pcv::detail::IPcvService', 15, 'Initialize', '0 bytes in - 0 bytes out', '(void)'), ('nn::pcv::detail::IPcvService', 16, 'IsInitialized', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', '(nn::sf::Out<bool,void>)'), ('nn::pcv::detail::IPcvService', 17, 'Finalize', '0 bytes in - 0 bytes out', '(void)'), ('nn::pcv::detail::IPcvService', 18, 'PowerOn', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(nn::pcv::PowerControlTarget,int)'), ('nn::pcv::detail::IPcvService', 19, 'PowerOff', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(nn::pcv::PowerControlTarget)'), ('nn::pcv::detail::IPcvService', 20, 'ChangeVoltage', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(nn::pcv::PowerControlTarget,int)'), ('nn::pcv::detail::IPcvService', 21, 'GetPowerClockInfoEvent', '0 bytes in - 0 bytes out - OutHandle<0,1>', '(nn::sf::Out<nn::sf::NativeHandle,void>)'), ('nn::pcv::detail::IPcvService', 22, 'GetOscillatorClock', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', '(nn::sf::Out<unsigned int,void>)'), ('nn::pcv::detail::IPcvService', 23, 'GetDvfsTable', '8 bytes in - 4 bytes out - Buffer<0,0xA,0>, Buffer<1,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>, InRaw<4,4,4>', '(nn::sf::OutArray<unsigned int> const&,nn::sf::OutArray<int> const&,nn::sf::Out<int,void>,int,int)'), ('nn::pcv::detail::IPcvService', 24, 'GetModuleStateTable', '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::OutArray<nn::pcv::ModuleState> const&,nn::sf::Out<int,void>,int)'), ('nn::pcv::detail::IPcvService', 25, 'GetPowerDomainStateTable', '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::OutArray<nn::pcv::PowerDomainState> const&,nn::sf::Out<int,void>,int)'), ('nn::pcv::detail::IPcvService', 26, 'GetFuseInfo', '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>', '(nn::sf::OutArray<unsigned int> const&,nn::sf::Out<int,void>,int)'), ('nn::pcv::IImmediateManager', 0, 'SetClockRate', '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>', '(int,unsigned int)'), ('nn::pcv::IArbitrationManager', 0, 'ReleaseControl', '4 bytes in - 0 bytes out - InRaw<4,4,0>', '(int)'), ('nn::pwm::IManager', 0, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::pwm::IManager', 1, '', '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>', ''), ('nn::pwm::IChannelSession', 0, '', '8 bytes in - 0 bytes out - InRaw<8,8,0>', ''), ('nn::pwm::IChannelSession', 1, '', '0 bytes in - 8 bytes out - OutRaw<8,8,0>', ''), ('nn::pwm::IChannelSession', 2, '', '4 bytes in - 0 bytes out - InRaw<4,4,0>', ''), ('nn::pwm::IChannelSession', 3, '', '0 bytes in - 4 bytes out - OutRaw<4,4,0>', ''), ('nn::pwm::IChannelSession', 4, '', '1 bytes in - 0 bytes out - InRaw<1,1,0>', ''), ('nn::pwm::IChannelSession', 5, '', '0 bytes in - 1 bytes out - OutRaw<1,1,0>', ''), ('nn::am::service::IWindow', 12345, '', '0 bytes in - 0 bytes out', ''), # BS entry to make this interface exist. ] serverInfo = { "nn::pcv::IArbitrationManager": { "0": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "ReleaseControl"} }, "nn::timesrv::detail::service::ISystemClock": { "1": {"inbytes": 8, "args": "(nn::time::PosixTime)", "outbytes": 0, "name": "SetCurrentTime"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::PosixTime,void>)", "outbytes": 8, "name": "GetCurrentTime"}, "3": {"inbytes": 32, "args": "(nn::time::SystemClockContext const&)", "outbytes": 0, "name": "SetSystemClockContext"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::SystemClockContext,void>)", "outbytes": 32, "name": "GetSystemClockContext"} }, "nn::wlan::detail::IInfraManager": { "24": {"inbytes": 0, "outbytes": 92}, "25": {"inbytes": 2, "outbytes": 0}, "20": {"inbytes": 0, "outbytes": 0}, "21": {"inbytes": 0, "outbytes": 4}, "22": {"inbytes": 4, "outbytes": 0}, "23": {"inbytes": 4, "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [21]}, "2": {"inbytes": 0, "outbytes": 6}, "5": {"inbytes": 124, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 0}, "9": {"inbytes": 0, "outbytes": 60}, "8": {"inbytes": 4, "outhandles": [1], "outbytes": 0}, "11": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "10": {"inbytes": 0, "outbytes": 4}, "13": {"inbytes": 4, "outbytes": 0}, "12": {"inbytes": 0, "outbytes": 4}, "15": {"inbytes": 0, "outbytes": 0}, "14": {"inbytes": 0, "outbytes": 0, "buffers": [10]}, "17": {"inbytes": 8, "outbytes": 0, "buffers": [9]}, "16": {"inbytes": 0, "outbytes": 0}, "19": {"inbytes": 24, "outbytes": 0}, "18": {"inbytes": 0, "outbytes": 4} }, "nn::account::profile::IProfile": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::profile::ProfileBase,void>)", "outbytes": 56, "name": "GetBase"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::profile::ProfileBase,void>,nn::sf::Out<nn::account::profile::UserData,void>)", "outbytes": 56, "buffers": [26], "name": "Get"}, "10": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetImageSize"}, "11": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "LoadImage"} }, "nn::nim::detail::IAsyncData": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 8, "outbytes": 8, "buffers": [6]}, "2": {"inbytes": 0, "outbytes": 8}, "4": {"inbytes": 0, "outbytes": 40} }, "nn::pdm::detail::INotifyService": { "0": {"inbytes": 16, "outbytes": 0}, "3": {"inbytes": 1, "outbytes": 0}, "2": {"inbytes": 1, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "4": {"inbytes": 0, "outbytes": 0} }, "nn::htc::tenv::IService": { "1": {"inbytes": 64, "outbytes": 8}, "0": {"inbytes": 64, "outbytes": 8, "buffers": [6]}, "2": {"inbytes": 8, "outbytes": 0} }, "nn::codec::detail::IHardwareOpusDecoderManager": { "1": {"inbytes": 8, "outbytes": 4}, "0": {"inbytes": 12, "inhandles": [1], "outbytes": 0, "outinterfaces": ["nn::codec::detail::IHardwareOpusDecoder"]}, "3": {"inbytes": 0, "outbytes": 4, "buffers": [25]}, "2": {"inbytes": 4, "inhandles": [1], "outbytes": 0, "buffers": [25], "outinterfaces": ["nn::codec::detail::IHardwareOpusDecoder"]} }, "nn::hid::IHidDebugServer": { "140": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateConsoleSixAxisSensor"}, "112": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnsetHomeButtonAutoPilotState"}, "133": {"inbytes": 24, "args": "(nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId,float,float)", "pid": True, "outbytes": 0, "name": "SetShiftAccelerometerCalibrationValue"}, "132": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnsetCaptureButtonAutoPilotState"}, "131": {"inbytes": 8, "args": "(nn::hid::debug::CaptureButtonAutoPilotState)", "outbytes": 0, "name": "SetCaptureButtonAutoPilotState"}, "130": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateCaptureButton"}, "111": {"inbytes": 8, "args": "(nn::hid::debug::HomeButtonAutoPilotState)", "outbytes": 0, "name": "SetHomeButtonAutoPilotState"}, "136": {"inbytes": 16, "args": "(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 8, "name": "GetShiftGyroscopeCalibrationValue"}, "135": {"inbytes": 24, "args": "(nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId,float,float)", "pid": True, "outbytes": 0, "name": "SetShiftGyroscopeCalibrationValue"}, "134": {"inbytes": 16, "args": "(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::hid::SixAxisSensorHandle,nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 8, "name": "GetShiftAccelerometerCalibrationValue"}, "20": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateMouse"}, "21": {"inbytes": 28, "args": "(nn::hid::debug::MouseAutoPilotState const&)", "outbytes": 0, "name": "SetMouseAutoPilotState"}, "22": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnsetMouseAutoPilotState"}, "1": {"inbytes": 24, "args": "(nn::hid::debug::DebugPadAutoPilotState const&)", "outbytes": 0, "name": "SetDebugPadAutoPilotState"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateDebugPad"}, "2": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnsetDebugPadAutoPilotState"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateTouchScreen"}, "201": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ActivateFirmwareUpdate"}, "203": {"inbytes": 8, "args": "(nn::hid::system::UniquePadId)", "outbytes": 0, "name": "StartFirmwareUpdate"}, "202": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateFirmwareUpdate"}, "205": {"inbytes": 8, "args": "(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,unsigned int,nn::util::BitFlagSet<32,nn::hid::system::DeviceType>)", "outbytes": 16, "name": "GetFirmwareVersion"}, "204": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>)", "outbytes": 16, "name": "GetFirmwareUpdateStage"}, "207": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DiscardFirmwareInfoCacheForRevert"}, "206": {"inbytes": 8, "args": "(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,unsigned int,nn::util::BitFlagSet<32,nn::hid::system::DeviceType>)", "outbytes": 16, "name": "GetDestinationFirmwareVersion"}, "209": {"inbytes": 8, "args": "(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,nn::hid::system::UniquePadId)", "outbytes": 16, "name": "GetAvailableFirmwareVersionForRevert"}, "208": {"inbytes": 8, "args": "(nn::hid::system::UniquePadId)", "outbytes": 0, "name": "StartFirmwareUpdateForRevert"}, "120": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateSleepButton"}, "121": {"inbytes": 8, "args": "(nn::hid::debug::SleepButtonAutoPilotState)", "outbytes": 0, "name": "SetSleepButtonAutoPilotState"}, "122": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnsetSleepButtonAutoPilotState"}, "123": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateInputDetector"}, "91": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateGesture"}, "221": {"inbytes": 16, "args": "(nn::util::Unorm8x4,nn::util::Unorm8x4,nn::hid::system::UniquePadId)", "outbytes": 0, "name": "UpdateControllerColor"}, "11": {"inbytes": 0, "args": "(nn::sf::InArray<nn::hid::TouchState> const&)", "outbytes": 0, "buffers": [5], "name": "SetTouchScreenAutoPilotState"}, "60": {"inbytes": 4, "args": "(nn::hid::JoyXpadId)", "outbytes": 0, "name": "DeactivateJoyXpad"}, "12": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnsetTouchScreenAutoPilotState"}, "32": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnsetKeyboardAutoPilotState"}, "31": {"inbytes": 40, "args": "(nn::hid::debug::KeyboardAutoPilotState const&)", "outbytes": 0, "name": "SetKeyboardAutoPilotState"}, "30": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateKeyboard"}, "51": {"inbytes": 32, "args": "(nn::hid::BasicXpadId,nn::hid::debug::BasicXpadAutoPilotState const&)", "outbytes": 0, "name": "SetXpadAutoPilotState"}, "50": {"inbytes": 4, "args": "(nn::hid::BasicXpadId)", "outbytes": 0, "name": "DeactivateXpad"}, "52": {"inbytes": 4, "args": "(nn::hid::BasicXpadId)", "outbytes": 0, "name": "UnsetXpadAutoPilotState"}, "110": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeactivateHomeButton"} }, "nn::mii::detail::IStaticService": { "0": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::mii::detail::IDatabaseService>,void>,int)", "outbytes": 0, "name": "GetDatabaseService", "outinterfaces": ["nn::mii::detail::IDatabaseService"]} }, "nn::account::IAccountServiceForSystemService": { "997": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DebugInvalidateTokenCacheForUser"}, "51": {"inbytes": 1, "args": "(nn::sf::Out<nn::account::Uid,void>,bool)", "outbytes": 16, "name": "TrySelectUserWithoutInteraction"}, "6": {"inbytes": 16, "args": "(nn::sf::Out<nn::account::ProfileDigest,void>,nn::account::Uid const&)", "outbytes": 16, "name": "GetProfileDigest"}, "999": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DebugSetUserStateOpen"}, "50": {"inbytes": 8, "args": "(nn::sf::Out<bool,void>,unsigned long)", "pid": True, "outbytes": 1, "name": "IsUserRegistrationRequestPermitted"}, "998": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DebugSetUserStateClose"}, "190": {"inbytes": 16, "args": "(nn::sf::Out<nn::ApplicationId,void>,nn::sf::Out<unsigned int,void>,nn::account::Uid const&)", "outbytes": 16, "name": "GetUserLastOpenedApplication"}, "1": {"inbytes": 16, "args": "(nn::sf::Out<bool,void>,nn::account::Uid const&)", "outbytes": 1, "name": "GetUserExistence"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetUserCount"}, "3": {"inbytes": 0, "args": "(nn::sf::OutArray<nn::account::Uid> const&)", "outbytes": 0, "buffers": [10], "name": "ListOpenUsers"}, "2": {"inbytes": 0, "args": "(nn::sf::OutArray<nn::account::Uid> const&)", "outbytes": 0, "buffers": [10], "name": "ListAllUsers"}, "5": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfile>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetProfile", "outinterfaces": ["nn::account::profile::IProfile"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::Uid,void>)", "outbytes": 16, "name": "GetLastOpenedUser"}, "112": {"inbytes": 24, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::account::Uid const&,nn::ApplicationId)", "outbytes": 4, "buffers": [6], "name": "LoadSaveDataThumbnail"}, "102": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IManagerForSystemService>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetBaasAccountManagerForSystemService", "outinterfaces": ["nn::account::baas::IManagerForSystemService"]}, "103": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetBaasUserAvailabilityChangeNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "111": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::ApplicationId)", "outbytes": 0, "name": "ClearSaveDataThumbnail"}, "101": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetUserStateChangeNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "100": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetUserRegistrationNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "104": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetProfileUpdateNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "110": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::ApplicationId,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [5], "name": "StoreSaveDataThumbnail"} }, "nn::settings::IFactorySettingsServer": { "20": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::EccB233DeviceKey,void>)", "outbytes": 84, "name": "GetEciDeviceKey"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::Rsa2048DeviceKey,void>)", "outbytes": 0, "buffers": [22], "name": "GetEticketDeviceKey"}, "22": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::SpeakerParameter,void>)", "outbytes": 90, "name": "GetSpeakerParameter"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::ConfigurationId1,void>)", "outbytes": 30, "name": "GetConfigurationId1"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::BdAddress,void>)", "outbytes": 6, "name": "GetBluetoothBdAddress"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::AccelerometerScale,void>)", "outbytes": 6, "name": "GetAccelerometerScale"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::AccelerometerOffset,void>)", "outbytes": 6, "name": "GetAccelerometerOffset"}, "5": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::GyroscopeScale,void>)", "outbytes": 6, "name": "GetGyroscopeScale"}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::GyroscopeOffset,void>)", "outbytes": 6, "name": "GetGyroscopeOffset"}, "7": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetWirelessLanCountryCodeCount"}, "6": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::MacAddress,void>)", "outbytes": 6, "name": "GetWirelessLanMacAddress"}, "9": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::SerialNumber,void>)", "outbytes": 24, "name": "GetSerialNumber"}, "8": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::factory::CountryCode> const&)", "outbytes": 4, "buffers": [10], "name": "GetWirelessLanCountryCodes"}, "11": {"inbytes": 8, "args": "(nn::ncm::ProgramId)", "outbytes": 0, "name": "SetOverlayDispProgramId"}, "10": {"inbytes": 8, "args": "(nn::ncm::ProgramId)", "outbytes": 0, "name": "SetInitialSystemAppletProgramId"}, "12": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::BatteryLot,void>)", "outbytes": 24, "name": "GetBatteryLot"}, "15": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::Rsa2048DeviceCertificate,void>)", "outbytes": 0, "buffers": [22], "name": "GetEticketDeviceCertificate"}, "14": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::EccB233DeviceCertificate,void>)", "outbytes": 0, "buffers": [22], "name": "GetEciDeviceCertificate"}, "17": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::SslCertificate,void>)", "outbytes": 0, "buffers": [22], "name": "GetSslCertificate"}, "16": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::SslKey,void>)", "outbytes": 0, "buffers": [22], "name": "GetSslKey"}, "19": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::GameCardCertificate,void>)", "outbytes": 0, "buffers": [22], "name": "GetGameCardCertificate"}, "18": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::GameCardKey,void>)", "outbytes": 0, "buffers": [22], "name": "GetGameCardKey"} }, "nn::pinmux::IManager": { "0": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::pinmux::ISession"]} }, "nn::nfc::mifare::detail::IUser": { "11": {"inbytes": 8, "outbytes": 4}, "10": {"inbytes": 0, "outbytes": 4}, "13": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "12": {"inbytes": 8, "outbytes": 4}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "5": {"inbytes": 8, "outbytes": 0, "buffers": [6, 5]}, "4": {"inbytes": 8, "outbytes": 0}, "7": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "6": {"inbytes": 8, "outbytes": 0, "buffers": [5]}, "9": {"inbytes": 8, "outhandles": [1], "outbytes": 0}, "8": {"inbytes": 8, "outhandles": [1], "outbytes": 0} }, "nn::am::service::IAppletAccessor": { "25": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Terminate"}, "20": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestExit"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Start"}, "30": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GetResult"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsCompleted"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetAppletStateChangedEvent"} }, "nv::gemcoredump::INvGemCoreDump": { "1": {"inbytes": 0, "outbytes": 16}, "0": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [34]} }, "nn::account::http::IOAuthProcedure": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>)", "outbytes": 0, "buffers": [26, 26], "name": "GetRequest"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "PrepareAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "3": {"name": "ApplyResponseAsync", "inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::sf::InArray<char> const&)", "outinterfaces": ["nn::account::detail::IAsyncContext"], "buffers": [9], "outbytes": 0}, "2": {"inbytes": 0, "args": "(nn::sf::InArray<char> const&)", "outbytes": 0, "buffers": [9], "name": "ApplyResponse"}, "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::detail::Uuid,void>)", "outbytes": 16, "name": "Suspend"} }, "nn::tma::IHtcManager": { "1": {"inbytes": 0, "outbytes": 4, "buffers": [5]}, "0": {"inbytes": 0, "outbytes": 4, "buffers": [6, 5]}, "3": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "5": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "6": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "8": {"inbytes": 1, "outbytes": 0} }, "nn::uart::IPortSession": { "1": {"inbytes": 32, "inhandles": [1, 1], "outbytes": 1}, "0": {"inbytes": 32, "inhandles": [1, 1], "outbytes": 1}, "3": {"inbytes": 0, "outbytes": 8, "buffers": [33]}, "2": {"inbytes": 0, "outbytes": 8}, "5": {"inbytes": 0, "outbytes": 8, "buffers": [34]}, "4": {"inbytes": 0, "outbytes": 8}, "7": {"inbytes": 4, "outbytes": 1}, "6": {"inbytes": 16, "outhandles": [1], "outbytes": 1} }, "nn::am::service::ILibraryAppletAccessor": { "150": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestForAppletToGetForeground"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Start"}, "20": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestExit"}, "25": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Terminate"}, "160": {"inbytes": 8, "args": "(nn::sf::Out<unsigned long,void>,nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 8, "name": "GetIndirectLayerConsumerHandle"}, "30": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GetResult"}, "50": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetOutOfFocusApplicationSuspendingEnabled"}, "120": {"inbytes": 0, "args": "(nn::sf::Out<nn::am::service::LibraryAppletInfo,void>)", "outbytes": 8, "name": "GetLibraryAppletInfo"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetAppletStateChangedEvent"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsCompleted"}, "110": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "NeedsToExitProcess"}, "102": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushExtraStorage", "ininterfaces": [None]}, "103": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushInteractiveInData", "ininterfaces": [None]}, "100": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushInData", "ininterfaces": [None]}, "101": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)", "outbytes": 0, "name": "PopOutData", "outinterfaces": ["nn::am::service::IStorage"]}, "106": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPopInteractiveOutDataEvent"}, "104": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)", "outbytes": 0, "name": "PopInteractiveOutData", "outinterfaces": ["nn::am::service::IStorage"]}, "105": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPopOutDataEvent"} }, "nn::ns::detail::IAccountProxyInterface": { "0": {"inbytes": 33, "outbytes": 0, "buffers": [5]} }, "nn::ns::detail::ISystemUpdateInterface": { "11": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 0}, "13": {"inbytes": 0, "outbytes": 0}, "12": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "15": {"inbytes": 0, "outbytes": 0}, "14": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::ISystemUpdateControl"]}, "0": {"inbytes": 0, "outbytes": 1}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 16, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 0}, "9": {"inbytes": 0, "outhandles": [1], "outbytes": 0} }, "nn::fssrv::sf::IFile": { "1": {"inbytes": 24, "outbytes": 0, "buffers": [69]}, "0": {"inbytes": 24, "outbytes": 8, "buffers": [70]}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 8} }, "nn::psc::sf::IPmControl": { "1": {"inbytes": 12, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 40, "buffers": [6, 6]} }, "nn::nfc::am::detail::IAm": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 8, "outbytes": 0} }, "nn::am::service::ISelfController": { "60": {"inbytes": 16, "args": "(int,int,int,int)", "outbytes": 0, "name": "OverrideAutoSleepTimeAndDimmingTime"}, "61": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetMediaPlaybackState"}, "62": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "SetIdleTimeDetectionExtension"}, "63": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetIdleTimeDetectionExtension"}, "64": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "SetInputDetectionSourceSet"}, "65": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ReportUserIsActive"}, "66": {"inbytes": 0, "args": "(nn::sf::Out<float,void>)", "outbytes": 4, "name": "GetCurrentIlluminance"}, "67": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsIlluminanceAvailable"}, "40": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>)", "outbytes": 8, "name": "CreateManagedDisplayLayer"}, "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "LockExit"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Exit"}, "3": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EnterFatalSection"}, "2": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnlockExit"}, "4": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "LeaveFatalSection"}, "9": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetLibraryAppletLaunchableEvent"}, "11": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetOperationModeChangedNotification"}, "10": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetScreenShotPermission"}, "13": {"inbytes": 3, "args": "(bool,bool,bool)", "outbytes": 0, "name": "SetFocusHandlingMode"}, "12": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetPerformanceModeChangedNotification"}, "15": {"inbytes": 16, "args": "(nn::am::service::AppletIdentityInfo const&)", "outbytes": 0, "name": "SetScreenShotAppletIdentityInfo"}, "14": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetRestartMessageEnabled"}, "17": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetControllerFirmwareUpdateSection"}, "16": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetOutOfFocusSuspendingEnabled"}, "19": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetScreenShotImageOrientation"}, "18": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetRequiresCaptureButtonShortPressedMessage"}, "51": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ApproveToDisplay"}, "50": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetHandlesRequestToDisplay"} }, "nn::usb::hs::IClientIfSession": { "1": {"inbytes": 1, "outbytes": 0, "buffers": [6]}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 1, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "5": {"inbytes": 16, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 4}, "7": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "6": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "9": {"inbytes": 20, "outbytes": 7, "outinterfaces": ["nn::usb::hs::IClientEpSession"]}, "8": {"inbytes": 0, "outbytes": 0} }, "nn::erpt::sf::IManager": { "1": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 4, "outbytes": 0, "buffers": [6]} }, "nn::fssrv::sf::IDirectory": { "1": {"inbytes": 0, "outbytes": 8}, "0": {"inbytes": 0, "outbytes": 8, "buffers": [6]} }, "nn::nim::detail::INetworkInstallManager": { "42": {"inbytes": 16, "outbytes": 16}, "29": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "24": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "buffers": [5, 5], "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "25": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "buffers": [5, 5], "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "26": {"inbytes": 40, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "27": {"inbytes": 40, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncData"]}, "20": {"inbytes": 16, "outbytes": 8}, "21": {"inbytes": 16, "outbytes": 1}, "22": {"inbytes": 0, "outbytes": 16}, "23": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "46": {"inbytes": 0, "outbytes": 0}, "44": {"inbytes": 16, "outbytes": 1}, "45": {"inbytes": 40, "outbytes": 8}, "28": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "43": {"inbytes": 0, "outbytes": 16}, "40": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "41": {"inbytes": 16, "outbytes": 0}, "1": {"inbytes": 16, "outbytes": 0}, "0": {"inbytes": 24, "outbytes": 16}, "3": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "5": {"inbytes": 16, "outbytes": 0}, "4": {"inbytes": 16, "outbytes": 56}, "7": {"inbytes": 16, "outbytes": 0}, "6": {"inbytes": 16, "outbytes": 16, "buffers": [5]}, "9": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "8": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "12": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "11": {"inbytes": 16, "outbytes": 0}, "10": {"inbytes": 16, "outbytes": 64}, "39": {"inbytes": 0, "outbytes": 0}, "38": {"inbytes": 16, "outbytes": 8}, "15": {"inbytes": 20, "outbytes": 4, "buffers": [6]}, "14": {"inbytes": 8, "outbytes": 4, "buffers": [6]}, "17": {"inbytes": 24, "outbytes": 0}, "16": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "19": {"inbytes": 24, "outbytes": 0, "buffers": [22]}, "18": {"inbytes": 16, "outbytes": 0, "buffers": [5]}, "31": {"inbytes": 32, "outbytes": 16, "buffers": [5]}, "30": {"inbytes": 40, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncData"]}, "37": {"inbytes": 16, "outbytes": 0}, "36": {"inbytes": 20, "outbytes": 4, "buffers": [6]}, "35": {"inbytes": 16, "outbytes": 48}, "34": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "33": {"inbytes": 8, "outbytes": 4, "buffers": [6]}, "32": {"inbytes": 16, "outbytes": 0} }, "nn::fssrv::sf::IProgramRegistry": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 40, "outbytes": 0, "buffers": [5, 5]}, "256": {"inbytes": 1, "outbytes": 0} }, "nn::usb::pd::detail::IPdCradleManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::usb::pd::detail::IPdCradleSession"]} }, "nn::nfp::detail::IDebugManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::nfp::detail::IDebug"]} }, "nn::account::baas::IGuestLoginRequest": { "13": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>)", "outbytes": 8, "name": "GetLinkedNintendoAccountId"}, "12": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)", "outbytes": 8, "name": "GetAccountId"}, "15": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "GetProfileImage"}, "14": {"inbytes": 0, "args": "(nn::sf::OutArray<char> const&)", "outbytes": 0, "buffers": [10], "name": "GetNickname"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::detail::Uuid,void>)", "outbytes": 16, "name": "GetSessionId"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "LoadIdTokenCache"} }, "nn::nim::detail::IShopServiceManager": { "200": {"inbytes": 40, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "300": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "301": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "302": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "303": {"inbytes": 16, "outbytes": 1}, "105": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "1": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "104": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "400": {"inbytes": 4, "outbytes": 16}, "102": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncValue"]}, "103": {"inbytes": 0, "outbytes": 32}, "100": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "101": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "106": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]}, "107": {"inbytes": 8, "outbytes": 1}, "500": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncProgressResult"]}, "501": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::nim::detail::IAsyncResult"]} }, "nn::bluetooth::IBluetoothDriver": { "42": {"inbytes": 0, "outbytes": 1}, "29": {"inbytes": 7, "outbytes": 0}, "24": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "25": {"inbytes": 6, "outbytes": 0, "buffers": [26]}, "26": {"inbytes": 0, "outbytes": 0}, "27": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "20": {"inbytes": 6, "outbytes": 0, "buffers": [9]}, "21": {"inbytes": 12, "outbytes": 0, "buffers": [25]}, "22": {"inbytes": 12, "outbytes": 0}, "23": {"inbytes": 6, "outbytes": 0}, "44": {"inbytes": 0, "outbytes": 1}, "28": {"inbytes": 7, "outbytes": 0}, "43": {"inbytes": 1, "outbytes": 0}, "40": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "41": {"inbytes": 1, "outbytes": 0}, "1": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [26]}, "4": {"inbytes": 0, "outbytes": 0}, "7": {"inbytes": 4, "outbytes": 0, "buffers": [9]}, "6": {"inbytes": 4, "outbytes": 0, "buffers": [10]}, "9": {"inbytes": 0, "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 0}, "13": {"inbytes": 24, "outbytes": 0}, "12": {"inbytes": 6, "outbytes": 0}, "11": {"inbytes": 6, "outbytes": 0}, "10": {"inbytes": 6, "outbytes": 0, "buffers": [25]}, "39": {"inbytes": 0, "outbytes": 0}, "38": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "15": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "14": {"inbytes": 12, "outbytes": 0}, "17": {"inbytes": 6, "outbytes": 0}, "16": {"inbytes": 2, "outhandles": [1], "outbytes": 0}, "19": {"inbytes": 6, "outbytes": 0, "buffers": [25]}, "18": {"inbytes": 6, "outbytes": 0}, "31": {"inbytes": 1, "outbytes": 0}, "30": {"inbytes": 6, "outbytes": 0, "buffers": [9]}, "37": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "36": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "35": {"inbytes": 2, "outbytes": 0}, "34": {"inbytes": 1, "outbytes": 0}, "33": {"inbytes": 0, "outbytes": 0}, "32": {"inbytes": 0, "outbytes": 0} }, "nn::bgtc::ITaskService": { "11": {"inbytes": 4, "outbytes": 0}, "13": {"inbytes": 0, "outbytes": 0}, "12": {"inbytes": 0, "outbytes": 4}, "15": {"inbytes": 8, "outbytes": 0}, "14": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [9]}, "4": {"inbytes": 0, "outbytes": 1}, "6": {"inbytes": 0, "outbytes": 1}, "102": {"inbytes": 0, "outbytes": 1}, "103": {"inbytes": 0, "outbytes": 1}, "101": {"inbytes": 0, "outbytes": 4} }, "nn::mmnv::IRequest": { "1": {"inbytes": 4, "outbytes": 0}, "0": {"inbytes": 12, "outbytes": 0}, "3": {"inbytes": 4, "outbytes": 4}, "2": {"inbytes": 12, "outbytes": 0}, "5": {"inbytes": 4, "outbytes": 0}, "4": {"inbytes": 12, "outbytes": 4}, "7": {"inbytes": 4, "outbytes": 4}, "6": {"inbytes": 12, "outbytes": 0} }, "nn::ldn::detail::IMonitorService": { "1": {"inbytes": 0, "outbytes": 0, "buffers": [26]}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 2}, "2": {"inbytes": 0, "outbytes": 8}, "5": {"inbytes": 0, "outbytes": 32}, "4": {"inbytes": 0, "outbytes": 32}, "100": {"inbytes": 0, "outbytes": 0}, "101": {"inbytes": 0, "outbytes": 0} }, "nn::apm::ISession": { "1": {"inbytes": 4, "args": "(nn::sf::Out<nn::apm::PerformanceConfiguration,void>,nn::apm::PerformanceMode)", "outbytes": 4, "name": "GetPerformanceConfiguration"}, "0": {"inbytes": 8, "args": "(nn::apm::PerformanceMode,nn::apm::PerformanceConfiguration)", "outbytes": 0, "name": "SetPerformanceConfiguration"} }, "nn::news::detail::ipc::IOverwriteEventHolder": { "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0} }, "nn::ntc::detail::service::IStaticService": { "0": {"inbytes": 8, "outbytes": 0, "outinterfaces": ["nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService"]}, "100": {"inbytes": 0, "outbytes": 0}, "101": {"inbytes": 0, "outbytes": 0} }, "nn::spsm::detail::IPowerStateInterface": { "11": {"inbytes": 8, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 0}, "1": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 1, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 4}, "5": {"inbytes": 0, "outbytes": 4}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 80}, "9": {"inbytes": 8, "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 0, "buffers": [6]} }, "nn::pctl::detail::ipc::IParentalControlService": { "1457": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPlayTimerEventToRequestSuspension"}, "1205": {"inbytes": 32, "args": "(nn::sf::Out<bool,void>,nn::pctl::InquiryCode const&,nn::sf::InArray<char> const&)", "outbytes": 1, "buffers": [9], "name": "CheckMasterKey"}, "1204": {"inbytes": 0, "args": "(nn::sf::Out<nn::pctl::InquiryCode,void>)", "outbytes": 32, "name": "GenerateInquiryCode"}, "1207": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPinCodeChangedEvent"}, "1206": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetPinCodeLength"}, "1201": {"inbytes": 0, "args": "(nn::sf::InArray<char> const&)", "outbytes": 0, "buffers": [9], "name": "UnlockRestrictionTemporarily"}, "1452": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "StopPlayTimer"}, "1203": {"inbytes": 0, "args": "(nn::sf::InArray<char> const&)", "outbytes": 0, "buffers": [9], "name": "SetPinCode"}, "1202": {"inbytes": 0, "args": "(nn::sf::InArray<char> const&)", "outbytes": 0, "buffers": [9], "name": "UnlockSystemSettingsRestriction"}, "1454": {"inbytes": 0, "args": "(nn::sf::Out<nn::TimeSpanType,void>)", "outbytes": 8, "name": "GetPlayTimerRemainingTime"}, "2007": {"inbytes": 1, "outhandles": [1], "outbytes": 8, "args": "(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,bool)", "name": "UnlinkPairingAsync"}, "2008": {"inbytes": 12, "args": "(nn::pctl::detail::AsyncData,bool)", "outbytes": 0, "name": "FinishUnlinkPairing"}, "1902": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ClearFreeCommunicationApplicationListForDebug"}, "1901": {"inbytes": 8, "args": "(nn::ncm::ApplicationId)", "outbytes": 0, "name": "DeleteFromFreeCommunicationApplicationListForDebug"}, "1421": {"inbytes": 16, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutArray<char> const&,nn::pctl::detail::PairingAccountInfoBase const&)", "outbytes": 4, "buffers": [10], "name": "GetAccountNickname"}, "2002": {"inbytes": 8, "args": "(nn::sf::Out<nn::pctl::detail::PairingInfoBase,void>,nn::pctl::detail::AsyncData)", "outbytes": 16, "name": "FinishRequestPairing"}, "1453": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsPlayTimerEnabled"}, "1034": {"inbytes": 4, "args": "(nn::sf::Out<nn::pctl::SafetyLevelSettings,void>,int)", "outbytes": 3, "name": "GetSafetyLevelSettings"}, "1424": {"inbytes": 16, "args": "(nn::sf::Out<int,void>,nn::pctl::detail::PairingAccountInfoBase const&)", "outbytes": 4, "name": "GetAccountState"}, "2003": {"inbytes": 16, "outhandles": [1], "outbytes": 8, "args": "(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::pctl::detail::PairingInfoBase const&)", "name": "AuthorizePairingAsync"}, "1952": {"inbytes": 0, "args": "(nn::sf::Out<nn::TimeSpanType,void>)", "outbytes": 8, "name": "GetPlayTimerSpentTimeForTest"}, "1941": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeletePairing"}, "1455": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsRestrictedByPlayTimer"}, "1038": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetDefaultRatingOrganization"}, "1471": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "NotifyWrongPinCodeInputManyTimes"}, "1003": {"inbytes": 16, "args": "(nn::ncm::ApplicationId,nn::sf::InArray<signed char> const&,bool)", "outbytes": 0, "buffers": [9], "name": "ConfirmResumeApplicationPermission"}, "1032": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetSafetyLevel"}, "2014": {"inbytes": 8, "args": "(nn::pctl::detail::AsyncData)", "outbytes": 0, "name": "FinishSynchronizeParentalControlSettings"}, "1031": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsRestrictionEnabled"}, "1036": {"inbytes": 3, "args": "(nn::pctl::SafetyLevelSettings)", "outbytes": 0, "name": "SetCustomSafetyLevelSettings"}, "1037": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetDefaultRatingOrganization"}, "2013": {"inbytes": 0, "outhandles": [1], "outbytes": 8, "args": "(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "SynchronizeParentalControlSettingsAsync"}, "1035": {"inbytes": 0, "args": "(nn::sf::Out<nn::pctl::SafetyLevelSettings,void>)", "outbytes": 3, "name": "GetCurrentSettings"}, "1411": {"inbytes": 16, "args": "(nn::sf::Out<nn::pctl::detail::PairingAccountInfoBase,void>,nn::pctl::detail::PairingInfoBase const&)", "outbytes": 16, "name": "GetPairingAccountInfo"}, "2004": {"inbytes": 8, "args": "(nn::sf::Out<nn::pctl::detail::PairingInfoBase,void>,nn::pctl::detail::AsyncData)", "outbytes": 16, "name": "FinishAuthorizePairing"}, "1008": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EnterRestrictedSystemSettings"}, "2015": {"inbytes": 8, "args": "(nn::sf::Out<nn::time::PosixTime,void>,nn::pctl::detail::AsyncData)", "outbytes": 8, "name": "FinishSynchronizeParentalControlSettingsWithLastUpdated"}, "1010": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsRestrictedSystemSettingsEntered"}, "1951": {"inbytes": 52, "args": "(nn::pctl::PlayTimerSettings const&)", "outbytes": 0, "name": "SetPlayTimerSettingsForDebug"}, "1033": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetSafetyLevel"}, "2010": {"inbytes": 8, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::pctl::detail::AsyncData)", "outbytes": 4, "buffers": [6], "name": "FinishGetAccountMiiImage"}, "1047": {"inbytes": 8, "args": "(nn::ncm::ApplicationId)", "outbytes": 0, "name": "NotifyApplicationDownloadStarted"}, "1403": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsPairingActive"}, "1451": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "StartPlayTimer"}, "2011": {"outhandles": [1], "outbytes": 12, "inbytes": 16, "args": "(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutArray<char> const&,nn::pctl::detail::PairingAccountInfoBase const&)", "buffers": [10], "name": "GetAccountMiiImageContentTypeAsync"}, "1043": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeleteSettings"}, "1042": {"inbytes": 8, "args": "(nn::ncm::ApplicationId)", "outbytes": 0, "name": "AddToFreeCommunicationApplicationList"}, "1474": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ClearUnlinkedEvent"}, "2009": {"outhandles": [1], "outbytes": 12, "inbytes": 16, "args": "(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::pctl::detail::PairingAccountInfoBase const&)", "buffers": [6], "name": "GetAccountMiiImageAsync"}, "1432": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetSynchronizationEvent"}, "1046": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DisableFeaturesForReset"}, "1045": {"inbytes": 0, "args": "(nn::sf::InArray<nn::pctl::FreeCommunicationApplicationInfo> const&)", "outbytes": 0, "buffers": [5], "name": "UpdateFreeCommunicationApplicationList"}, "1044": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::pctl::FreeCommunicationApplicationInfo> const&,int)", "outbytes": 4, "buffers": [6], "name": "GetFreeCommunicationApplicationList"}, "1601": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "DisableAllFeatures"}, "1039": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetFreeCommunicationApplicationListCount"}, "1603": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<bool,void>)", "outbytes": 2, "name": "IsAllFeaturesDisabled"}, "1602": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "PostEnableAllFeatures"}, "1011": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RevertRestrictedSystemSettingsEntered"}, "1472": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "CancelNetworkRequest"}, "1473": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetUnlinkedEvent"}, "1456": {"inbytes": 0, "args": "(nn::sf::Out<nn::pctl::PlayTimerSettings,void>)", "outbytes": 52, "name": "GetPlayTimerSettings"}, "2001": {"outhandles": [1], "outbytes": 8, "inbytes": 0, "args": "(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::InArray<char> const&)", "buffers": [9], "name": "RequestPairingAsync"}, "2006": {"inbytes": 8, "args": "(nn::sf::Out<nn::pctl::detail::PairingInfoBase,void>,nn::pctl::detail::AsyncData)", "outbytes": 16, "name": "FinishRetrievePairingInfo"}, "1012": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetRestrictedFeatures"}, "1009": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "LeaveRestrictedSystemSettings"}, "2005": {"inbytes": 0, "outhandles": [1], "outbytes": 8, "args": "(nn::sf::Out<nn::pctl::detail::AsyncData,void>,nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "RetrievePairingInfoAsync"}, "1007": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RevertRestrictionTemporaryUnlocked"}, "1006": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsRestrictionTemporaryUnlocked"}, "1005": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ConfirmSystemSettingsPermission"}, "1004": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ConfirmSnsPostPermission"}, "1406": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::PosixTime,void>)", "outbytes": 8, "name": "GetSettingsLastUpdated"}, "1002": {"inbytes": 16, "args": "(nn::ncm::ApplicationId,nn::sf::InArray<signed char> const&,bool)", "outbytes": 0, "buffers": [9], "name": "ConfirmLaunchApplicationPermission"}, "1001": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "CheckFreeCommunicationPermission"}, "2012": {"inbytes": 8, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutArray<char> const&,nn::pctl::detail::AsyncData)", "outbytes": 4, "buffers": [10], "name": "FinishGetAccountMiiImageContentType"} }, "nn::audio::detail::IAudioOutManagerForApplet": { "1": {"inbytes": 16, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 16, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 24, "outbytes": 0}, "2": {"inbytes": 8, "outbytes": 4} }, "nn::psc::sf::IPmModule": { "1": {"inbytes": 0, "outbytes": 8}, "0": {"inbytes": 4, "outhandles": [1], "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0} }, "nn::am::service::IAllSystemAppletProxiesService": { "201": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&,nn::am::AppletAttribute const&)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "pid": True, "outinterfaces": ["nn::am::service::ILibraryAppletProxy"], "buffers": [21], "name": "OpenLibraryAppletProxy"}, "200": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "pid": True, "outinterfaces": ["nn::am::service::ILibraryAppletProxy"], "name": "OpenLibraryAppletProxyOld"}, "300": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IOverlayAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "pid": True, "outinterfaces": ["nn::am::service::IOverlayAppletProxy"], "name": "OpenOverlayAppletProxy"}, "400": {"outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>,unsigned long)", "pid": True, "outinterfaces": ["nn::am::service::ILibraryAppletCreator"], "name": "CreateSelfLibraryAppletCreatorForDevelop"}, "350": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationProxy>,void>,unsigned long,nn::sf::NativeHandle &&)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "pid": True, "outinterfaces": ["nn::am::service::IApplicationProxy"], "name": "OpenSystemApplicationProxy"}, "100": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISystemAppletProxy>,void>,unsigned long,nn::sf::NativeHandle &&)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "pid": True, "outinterfaces": ["nn::am::service::ISystemAppletProxy"], "name": "OpenSystemAppletProxy"} }, "nn::ns::detail::IServiceGetterInterface": { "7997": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IDownloadTaskInterface"]}, "7996": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IApplicationManagerInterface"]}, "7995": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAccountProxyInterface"]}, "7994": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IFactoryResetInterface"]}, "7999": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IDocumentInterface"]}, "7998": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IContentManagementInterface"]} }, "nn::pctl::detail::ipc::IParentalControlServiceFactory": { "0": {"outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::pctl::detail::ipc::IParentalControlService>,void>,unsigned long)", "pid": True, "outinterfaces": ["nn::pctl::detail::ipc::IParentalControlService"], "name": "CreateService"} }, "nn::account::IAccountServiceForAdministrator": { "210": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IFloatingRegistrationRequest>,void>,nn::sf::NativeHandle &&,unsigned int)", "outbytes": 0, "inbytes": 4, "inhandles": [1], "outinterfaces": ["nn::account::baas::IFloatingRegistrationRequest"], "name": "CreateFloatingRegistrationRequest"}, "203": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DeleteUser"}, "111": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::ApplicationId)", "outbytes": 0, "name": "ClearSaveDataThumbnail"}, "110": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::ApplicationId,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [5], "name": "StoreSaveDataThumbnail"}, "112": {"inbytes": 24, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::account::Uid const&,nn::ApplicationId)", "outbytes": 4, "buffers": [6], "name": "LoadSaveDataThumbnail"}, "250": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IAdministrator>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetBaasAccountAdministrator", "outinterfaces": ["nn::account::baas::IAdministrator"]}, "230": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "AuthenticateServiceAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "1": {"inbytes": 16, "args": "(nn::sf::Out<bool,void>,nn::account::Uid const&)", "outbytes": 1, "name": "GetUserExistence"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetUserCount"}, "3": {"inbytes": 0, "args": "(nn::sf::OutArray<nn::account::Uid> const&)", "outbytes": 0, "buffers": [10], "name": "ListOpenUsers"}, "2": {"inbytes": 0, "args": "(nn::sf::OutArray<nn::account::Uid> const&)", "outbytes": 0, "buffers": [10], "name": "ListAllUsers"}, "5": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfile>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetProfile", "outinterfaces": ["nn::account::profile::IProfile"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::Uid,void>)", "outbytes": 16, "name": "GetLastOpenedUser"}, "6": {"inbytes": 16, "args": "(nn::sf::Out<nn::account::ProfileDigest,void>,nn::account::Uid const&)", "outbytes": 16, "name": "GetProfileDigest"}, "201": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "CompleteUserRegistration"}, "200": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::Uid,void>)", "outbytes": 16, "name": "BeginUserRegistration"}, "997": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DebugInvalidateTokenCacheForUser"}, "202": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "CancelUserRegistration"}, "205": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfileEditor>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetProfileEditor", "outinterfaces": ["nn::account::profile::IProfileEditor"]}, "204": {"inbytes": 24, "args": "(nn::account::Uid const&,int)", "outbytes": 0, "name": "SetUserPosition"}, "206": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "CompleteUserRegistrationForcibly"}, "999": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DebugSetUserStateOpen"}, "998": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DebugSetUserStateClose"}, "190": {"inbytes": 16, "args": "(nn::sf::Out<nn::ApplicationId,void>,nn::sf::Out<unsigned int,void>,nn::account::Uid const&)", "outbytes": 16, "name": "GetUserLastOpenedApplication"}, "102": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IManagerForSystemService>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetBaasAccountManagerForSystemService", "outinterfaces": ["nn::account::baas::IManagerForSystemService"]}, "103": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetBaasUserAvailabilityChangeNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "100": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetUserRegistrationNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "101": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetUserStateChangeNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "104": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::INotifier>,void>)", "outbytes": 0, "name": "GetProfileUpdateNotifier", "outinterfaces": ["nn::account::detail::INotifier"]}, "51": {"inbytes": 1, "args": "(nn::sf::Out<nn::account::Uid,void>,bool)", "outbytes": 16, "name": "TrySelectUserWithoutInteraction"}, "50": {"inbytes": 8, "args": "(nn::sf::Out<bool,void>,unsigned long)", "pid": True, "outbytes": 1, "name": "IsUserRegistrationRequestPermitted"}, "299": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::ISessionObject>,void>)", "outbytes": 0, "name": "SuspendBackgroundDaemon", "outinterfaces": ["nn::account::detail::ISessionObject"]}, "290": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForExternalNsa>,void>,nn::account::detail::Uuid const&)", "outbytes": 0, "name": "ProxyProcedureForGuestLoginWithNintendoAccount", "outinterfaces": ["nn::account::nas::IOAuthProcedureForExternalNsa"]}, "291": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForExternalNsa>,void>,nn::account::detail::Uuid const&)", "outbytes": 0, "name": "ProxyProcedureForFloatingRegistrationWithNintendoAccount", "outinterfaces": ["nn::account::nas::IOAuthProcedureForExternalNsa"]} }, "nn::nim::detail::IAsyncValue": { "1": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "0": {"inbytes": 0, "outbytes": 8}, "2": {"inbytes": 0, "outbytes": 0} }, "nn::fssrv::sf::IStorage": { "1": {"inbytes": 16, "outbytes": 0, "buffers": [69]}, "0": {"inbytes": 16, "outbytes": 0, "buffers": [70]}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 8} }, "nn::gpio::IManager": { "1": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::gpio::IPadSession"]}, "0": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::gpio::IPadSession"]}, "3": {"inbytes": 4, "outbytes": 1}, "2": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::gpio::IPadSession"]}, "5": {"inbytes": 8, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 16}, "6": {"inbytes": 1, "outbytes": 0} }, "nn::lbl::detail::ILblController": { "24": {"inbytes": 4, "outbytes": 0}, "25": {"inbytes": 0, "outbytes": 4}, "26": {"inbytes": 0, "outbytes": 0}, "27": {"inbytes": 0, "outbytes": 0}, "20": {"inbytes": 0, "outbytes": 12}, "21": {"inbytes": 12, "outbytes": 0}, "22": {"inbytes": 0, "outbytes": 12}, "23": {"inbytes": 0, "outbytes": 1}, "28": {"inbytes": 0, "outbytes": 1}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 4, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 4}, "4": {"inbytes": 0, "outbytes": 0}, "7": {"inbytes": 8, "outbytes": 0}, "6": {"inbytes": 8, "outbytes": 0}, "9": {"inbytes": 0, "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 4}, "11": {"inbytes": 0, "outbytes": 1}, "10": {"inbytes": 0, "outbytes": 0}, "13": {"inbytes": 0, "outbytes": 0}, "12": {"inbytes": 0, "outbytes": 0}, "15": {"inbytes": 4, "outbytes": 0}, "14": {"inbytes": 0, "outbytes": 1}, "17": {"inbytes": 8, "outbytes": 0}, "16": {"inbytes": 0, "outbytes": 4}, "19": {"inbytes": 12, "outbytes": 0}, "18": {"inbytes": 4, "outbytes": 4} }, "nn::uart::IManager": { "1": {"inbytes": 4, "outbytes": 1}, "0": {"inbytes": 4, "outbytes": 1}, "3": {"inbytes": 8, "outbytes": 1}, "2": {"inbytes": 8, "outbytes": 1}, "5": {"inbytes": 8, "outbytes": 1}, "4": {"inbytes": 8, "outbytes": 1}, "7": {"inbytes": 8, "outbytes": 1}, "6": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::uart::IPortSession"]}, "8": {"inbytes": 8, "outbytes": 1} }, "nn::usb::ds::IDsInterface": { "11": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 132}, "1": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 1, "buffers": [5], "outinterfaces": ["nn::usb::ds::IDsEndpoint"]}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "5": {"inbytes": 16, "outbytes": 4}, "4": {"inbytes": 0, "outbytes": 0}, "7": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "6": {"inbytes": 16, "outbytes": 4}, "9": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 132} }, "nn::btm::IBtmDebug": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 1}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [26]}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 6, "outbytes": 0}, "4": {"inbytes": 6, "outbytes": 0}, "7": {"inbytes": 4, "outbytes": 0}, "6": {"inbytes": 12, "outbytes": 0}, "8": {"inbytes": 6, "outbytes": 0} }, "nn::mii::detail::IDatabaseService": { "20": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsBrokenDatabaseWithClearFlag"}, "21": {"inbytes": 88, "args": "(nn::sf::Out<int,void>,nn::mii::CharInfo const&)", "outbytes": 4, "name": "GetIndex"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsFullDatabase"}, "0": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,int)", "outbytes": 1, "name": "IsUpdated"}, "3": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::CharInfoElement> const&,int)", "outbytes": 4, "buffers": [6], "name": "Get"}, "2": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,int)", "outbytes": 4, "name": "GetCount"}, "5": {"inbytes": 92, "args": "(nn::sf::Out<nn::mii::CharInfo,void>,nn::mii::CharInfo const&,int)", "outbytes": 88, "name": "UpdateLatest"}, "4": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::CharInfo> const&,int)", "outbytes": 4, "buffers": [6], "name": "Get1"}, "7": {"inbytes": 4, "args": "(nn::sf::Out<nn::mii::CharInfo,void>,int)", "outbytes": 88, "name": "BuildDefault"}, "6": {"inbytes": 12, "args": "(nn::sf::Out<nn::mii::CharInfo,void>,int,int,int)", "outbytes": 88, "name": "BuildRandom"}, "9": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::StoreData> const&,int)", "outbytes": 4, "buffers": [6], "name": "Get3"}, "8": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::mii::StoreDataElement> const&,int)", "outbytes": 4, "buffers": [6], "name": "Get2"}, "11": {"inbytes": 17, "args": "(nn::sf::Out<int,void>,nn::mii::CreateId const&,bool)", "outbytes": 4, "name": "FindIndex"}, "10": {"inbytes": 72, "args": "(nn::sf::Out<nn::mii::StoreData,void>,nn::mii::StoreData const&,int)", "outbytes": 68, "name": "UpdateLatest1"}, "13": {"inbytes": 68, "args": "(nn::mii::StoreData const&)", "outbytes": 0, "name": "AddOrReplace"}, "12": {"inbytes": 20, "args": "(int,nn::mii::CreateId const&)", "outbytes": 0, "name": "Move"}, "15": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DestroyFile"}, "14": {"inbytes": 16, "args": "(nn::mii::CreateId const&)", "outbytes": 0, "name": "Delete"}, "17": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Format"}, "16": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeleteFile"}, "19": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&)", "outbytes": 0, "buffers": [6], "name": "Export"}, "18": {"inbytes": 0, "args": "(nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [5], "name": "Import"} }, "nn::visrv::sf::ISystemRootService": { "1": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int)", "outbytes": 0, "name": "GetDisplayService", "outinterfaces": ["nn::visrv::sf::IApplicationDisplayService"]}, "3": {"inbytes": 12, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int,nn::vi::ProxyName)", "outbytes": 0, "name": "GetDisplayServiceWithProxyNameExchange", "outinterfaces": ["nn::visrv::sf::IApplicationDisplayService"]} }, "nn::ahid::IServerSession": { "1": {"inbytes": 4, "outbytes": 0}, "0": {"inbytes": 4, "outbytes": 0}, "3": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::ahid::IReadSession"]}, "2": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::ahid::ICtrlSession"]} }, "nn::am::service::ILibraryAppletCreator": { "11": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,nn::sf::NativeHandle &&,long,bool)", "outbytes": 0, "inbytes": 16, "inhandles": [1], "outinterfaces": ["nn::am::service::IStorage"], "name": "CreateTransferMemoryStorage"}, "10": {"inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,long)", "outbytes": 0, "name": "CreateStorage", "outinterfaces": ["nn::am::service::IStorage"]}, "12": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,nn::sf::NativeHandle &&,long)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "outinterfaces": ["nn::am::service::IStorage"], "name": "CreateHandleStorage"}, "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "TerminateAllLibraryApplets"}, "0": {"inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletAccessor>,void>,unsigned int,unsigned int)", "outbytes": 0, "name": "CreateLibraryApplet", "outinterfaces": ["nn::am::service::ILibraryAppletAccessor"]}, "2": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "AreAnyLibraryAppletsLeft"} }, "nn::am::service::IApplicationProxyService": { "0": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationProxy>,void>,unsigned long,nn::sf::NativeHandle &&)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "pid": True, "outinterfaces": ["nn::am::service::IApplicationProxy"], "name": "OpenApplicationProxy"} }, "nn::pcie::detail::ISession": { "20": {"inbytes": 8, "outbytes": 0}, "21": {"inbytes": 8, "outbytes": 0}, "1": {"inbytes": 4, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "3": {"inbytes": 4, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 4, "outbytes": 0}, "5": {"inbytes": 12, "outbytes": 4}, "4": {"inbytes": 8, "outbytes": 24}, "7": {"inbytes": 16, "outbytes": 0, "buffers": [6]}, "6": {"inbytes": 16, "outbytes": 0}, "9": {"inbytes": 8, "outbytes": 4}, "8": {"inbytes": 16, "outbytes": 0, "buffers": [5]}, "11": {"inbytes": 24, "outbytes": 8}, "10": {"inbytes": 8, "outbytes": 4}, "13": {"inbytes": 16, "outbytes": 0}, "12": {"inbytes": 16, "outbytes": 0}, "15": {"inbytes": 4, "outbytes": 16}, "14": {"inbytes": 16, "outbytes": 8}, "17": {"inbytes": 8, "outhandles": [1], "outbytes": 0}, "16": {"inbytes": 8, "outbytes": 0}, "19": {"inbytes": 12, "outbytes": 0}, "18": {"inbytes": 4, "outbytes": 0} }, "nv::gemcontrol::INvGemControl": { "1": {"inbytes": 0, "outhandles": [1], "outbytes": 4}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 16, "outbytes": 4}, "2": {"inbytes": 1, "outbytes": 4}, "5": {"inbytes": 0, "outbytes": 16}, "4": {"inbytes": 16, "outbytes": 4}, "7": {"inbytes": 0, "outbytes": 16}, "6": {"inbytes": 0, "outbytes": 4} }, "nn::am::service::ISystemAppletProxy": { "11": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)", "outbytes": 0, "name": "GetLibraryAppletCreator", "outinterfaces": ["nn::am::service::ILibraryAppletCreator"]}, "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)", "outbytes": 0, "name": "GetProcessWindingController", "outinterfaces": ["nn::am::service::IProcessWindingController"]}, "20": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IHomeMenuFunctions>,void>)", "outbytes": 0, "name": "GetHomeMenuFunctions", "outinterfaces": ["nn::am::service::IHomeMenuFunctions"]}, "21": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IGlobalStateController>,void>)", "outbytes": 0, "name": "GetGlobalStateController", "outinterfaces": ["nn::am::service::IGlobalStateController"]}, "22": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationCreator>,void>)", "outbytes": 0, "name": "GetApplicationCreator", "outinterfaces": ["nn::am::service::IApplicationCreator"]}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)", "outbytes": 0, "name": "GetSelfController", "outinterfaces": ["nn::am::service::ISelfController"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)", "outbytes": 0, "name": "GetCommonStateGetter", "outinterfaces": ["nn::am::service::ICommonStateGetter"]}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)", "outbytes": 0, "name": "GetAudioController", "outinterfaces": ["nn::am::service::IAudioController"]}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)", "outbytes": 0, "name": "GetWindowController", "outinterfaces": ["nn::am::service::IWindowController"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)", "outbytes": 0, "name": "GetDisplayController", "outinterfaces": ["nn::am::service::IDisplayController"]}, "1000": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)", "outbytes": 0, "name": "GetDebugFunctions", "outinterfaces": ["nn::am::service::IDebugFunctions"]} }, "nn::fan::detail::IController": { "1": {"inbytes": 4, "outbytes": 4}, "0": {"inbytes": 4, "outbytes": 0}, "3": {"inbytes": 4, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 4}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 4}, "7": {"inbytes": 0, "outbytes": 4}, "6": {"inbytes": 0, "outbytes": 0} }, "nn::am::service::IWindowController": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::applet::AppletResourceUserId,void>)", "outbytes": 8, "name": "GetAppletResourceUserId"}, "0": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindow>,void>,nn::am::service::WindowCreationOption)", "outbytes": 0, "name": "CreateWindow", "outinterfaces": ["nn::am::service::IWindow"]}, "12": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RejectToChangeIntoBackground"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "AcquireForegroundRights"}, "11": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ReleaseForegroundRights"} }, "nn::ns::detail::ISystemUpdateControl": { "11": {"inbytes": 8, "inhandles": [1], "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 8, "buffers": [21, 6]}, "13": {"inbytes": 0, "outbytes": 8, "buffers": [21, 6]}, "12": {"inbytes": 0, "outbytes": 8, "buffers": [21]}, "1": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncValue"]}, "0": {"inbytes": 0, "outbytes": 1}, "3": {"inbytes": 0, "outbytes": 16}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "5": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "4": {"inbytes": 0, "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 1}, "6": {"inbytes": 0, "outbytes": 16}, "9": {"inbytes": 0, "outbytes": 8, "buffers": [21]}, "8": {"inbytes": 0, "outbytes": 0} }, "nn::capsrv::sf::IAlbumAccessorService": { "8012": {"inbytes": 1, "outbytes": 16}, "8011": {"inbytes": 1, "outbytes": 0}, "1": {"inbytes": 1, "outbytes": 8, "buffers": [6]}, "0": {"inbytes": 1, "outbytes": 8}, "3": {"inbytes": 24, "outbytes": 0}, "2": {"inbytes": 24, "outbytes": 8, "buffers": [6]}, "5": {"inbytes": 1, "outbytes": 1}, "4": {"inbytes": 32, "outbytes": 0}, "7": {"inbytes": 24, "outbytes": 8}, "6": {"inbytes": 1, "outbytes": 48}, "9": {"inbytes": 24, "outbytes": 16, "buffers": [70, 6]}, "8": {"inbytes": 24, "outbytes": 8, "buffers": [6]}, "501": {"inbytes": 2, "outbytes": 8}, "401": {"inbytes": 0, "outbytes": 1}, "301": {"inbytes": 0, "outbytes": 32, "buffers": [6]}, "10011": {"inbytes": 1, "outbytes": 0}, "8021": {"inbytes": 40, "pid": True, "outbytes": 32}, "8001": {"inbytes": 1, "outbytes": 0}, "8002": {"inbytes": 1, "outbytes": 0}, "11": {"inbytes": 40, "outbytes": 32}, "10": {"inbytes": 24, "outbytes": 16, "buffers": [70, 6]}, "13": {"inbytes": 56, "outbytes": 16, "buffers": [70, 6]}, "12": {"inbytes": 56, "outbytes": 16, "buffers": [70, 6]}, "14": {"inbytes": 56, "outbytes": 80, "buffers": [70, 6]}, "1002": {"inbytes": 56, "outbytes": 32, "buffers": [5, 5]}, "1001": {"inbytes": 56, "outbytes": 80, "buffers": [70, 6]} }, "nn::eupld::sf::IControl": { "1": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "0": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [5, 5]} }, "nn::ssl::sf::ISslConnection": { "24": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>)", "outbytes": 8, "buffers": [6], "name": "GetVerifyCertErrors"}, "20": {"inbytes": 4, "args": "(nn::ssl::sf::RenegotiationMode)", "outbytes": 0, "name": "SetRenegotiationMode"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<nn::ssl::sf::RenegotiationMode,void>)", "outbytes": 4, "name": "GetRenegotiationMode"}, "22": {"inbytes": 8, "args": "(nn::ssl::sf::OptionType,bool)", "outbytes": 0, "name": "SetOption"}, "23": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,nn::ssl::sf::OptionType)", "outbytes": 1, "name": "GetOption"}, "1": {"inbytes": 0, "args": "(nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [5], "name": "SetHostName"}, "0": {"inbytes": 4, "args": "(int,nn::sf::Out<int,void>)", "outbytes": 4, "name": "SetSocketDescriptor"}, "3": {"inbytes": 4, "args": "(nn::ssl::sf::IoMode)", "outbytes": 0, "name": "SetIoMode"}, "2": {"inbytes": 4, "args": "(nn::ssl::sf::VerifyOption)", "outbytes": 0, "name": "SetVerifyOption"}, "5": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>)", "outbytes": 4, "buffers": [6], "name": "GetHostName"}, "4": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetSocketDescriptor"}, "7": {"inbytes": 0, "args": "(nn::sf::Out<nn::ssl::sf::IoMode,void>)", "outbytes": 4, "name": "GetIoMode"}, "6": {"inbytes": 0, "args": "(nn::sf::Out<nn::ssl::sf::VerifyOption,void>)", "outbytes": 4, "name": "GetVerifyOption"}, "9": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 8, "buffers": [6], "name": "DoHandshakeGetServerCert"}, "8": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DoHandshake"}, "11": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::InBuffer const&)", "outbytes": 4, "buffers": [5], "name": "Write"}, "10": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "Read"}, "13": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "Peek"}, "12": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "Pending"}, "15": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GetVerifyCertError"}, "14": {"inbytes": 8, "args": "(nn::sf::Out<nn::ssl::sf::PollEvent,void>,nn::ssl::sf::PollEvent,unsigned int)", "outbytes": 4, "name": "Poll"}, "17": {"inbytes": 4, "args": "(nn::ssl::sf::SessionCacheMode)", "outbytes": 0, "name": "SetSessionCacheMode"}, "16": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetNeededServerCertBufferSize"}, "19": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "FlushSessionCache"}, "18": {"inbytes": 0, "args": "(nn::sf::Out<nn::ssl::sf::SessionCacheMode,void>)", "outbytes": 4, "name": "GetSessionCacheMode"} }, "nn::sm::detail::IManagerInterface": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 8, "outbytes": 0, "buffers": [5, 5]} }, "nn::prepo::detail::ipc::IPrepoService": { "90100": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>)", "outbytes": 16, "name": "GetStorageUsage"}, "10300": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetTransmissionStatus"}, "10200": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestImmediateTransmission"}, "40100": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsUserAgreementCheckEnabled"}, "40101": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetUserAgreementCheckEnabled"}, "20101": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::sf::InArray<char> const&,nn::ApplicationId,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [9, 5], "name": "SaveSystemReportWithUser"}, "10101": {"outbytes": 0, "inbytes": 24, "args": "(nn::account::Uid const&,nn::sf::InArray<char> const&,nn::sf::InBuffer const&,unsigned long)", "pid": True, "buffers": [9, 5], "name": "SaveReportWithUser"}, "10100": {"outbytes": 0, "inbytes": 8, "args": "(nn::sf::InArray<char> const&,nn::sf::InBuffer const&,unsigned long)", "pid": True, "buffers": [9, 5], "name": "SaveReport"}, "20100": {"inbytes": 8, "args": "(nn::sf::InArray<char> const&,nn::ApplicationId,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [9, 5], "name": "SaveSystemReport"}, "30100": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ClearStorage"} }, "nn::sasbus::ISession": { "1": {"inbytes": 1, "outbytes": 0, "buffers": [34]}, "0": {"inbytes": 1, "outbytes": 0, "buffers": [33]}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 24, "inhandles": [1], "outbytes": 0} }, "nn::psc::sf::IPmService": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::psc::sf::IPmModule"]} }, "nn::ldn::detail::IMonitorServiceCreator": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ldn::detail::IMonitorService"]} }, "nn::ns::detail::IApplicationManagerInterface": { "1304": {"inbytes": 16, "outbytes": 0}, "1300": {"inbytes": 8, "outbytes": 1}, "1301": {"inbytes": 16, "outbytes": 0}, "1302": {"inbytes": 8, "outbytes": 0}, "1303": {"inbytes": 8, "outbytes": 0}, "26": {"inbytes": 16, "outbytes": 0}, "27": {"inbytes": 8, "outbytes": 0}, "21": {"inbytes": 16, "outbytes": 0, "buffers": [22]}, "22": {"inbytes": 8, "outbytes": 0}, "23": {"inbytes": 16, "outbytes": 0}, "0": {"inbytes": 4, "outbytes": 4, "buffers": [6]}, "405": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "404": {"inbytes": 8, "outbytes": 0}, "403": {"inbytes": 0, "outbytes": 4}, "4": {"inbytes": 8, "outbytes": 0}, "401": {"inbytes": 0, "outbytes": 0}, "400": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "8": {"inbytes": 16, "outbytes": 1}, "1700": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "1701": {"inbytes": 0, "outbytes": 0, "buffers": [6, 5]}, "1702": {"inbytes": 8, "outbytes": 1}, "59": {"inbytes": 1, "outbytes": 8}, "58": {"inbytes": 0, "outbytes": 0}, "55": {"inbytes": 4, "outbytes": 1}, "54": {"inbytes": 8, "outbytes": 0}, "57": {"inbytes": 8, "outbytes": 0}, "56": {"inbytes": 16, "outbytes": 0}, "53": {"inbytes": 8, "outbytes": 0}, "52": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "704": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "705": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncValue"]}, "700": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "701": {"inbytes": 0, "outbytes": 0}, "702": {"inbytes": 0, "outbytes": 0}, "703": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "82": {"inbytes": 16, "outbytes": 0}, "80": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "81": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "buffers": [5], "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [6, 5]}, "7": {"inbytes": 0, "outbytes": 0}, "1400": {"inbytes": 0, "outbytes": 0}, "300": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "301": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "302": {"inbytes": 8, "outbytes": 8}, "303": {"inbytes": 8, "outbytes": 0}, "304": {"inbytes": 0, "outbytes": 8}, "305": {"inbytes": 8, "outbytes": 0}, "306": {"inbytes": 0, "outbytes": 8}, "307": {"inbytes": 8, "outbytes": 0}, "102": {"inbytes": 0, "outbytes": 0}, "100": {"inbytes": 0, "outbytes": 0}, "101": {"inbytes": 0, "outbytes": 0}, "606": {"inbytes": 16, "outbytes": 1}, "902": {"inbytes": 8, "outbytes": 0}, "903": {"inbytes": 8, "outbytes": 0}, "39": {"inbytes": 8, "outbytes": 0}, "38": {"inbytes": 8, "outbytes": 0}, "906": {"inbytes": 8, "outbytes": 8}, "907": {"inbytes": 8, "outbytes": 0}, "904": {"inbytes": 8, "outbytes": 0}, "905": {"inbytes": 16, "outbytes": 0}, "33": {"inbytes": 8, "outbytes": 0}, "32": {"inbytes": 8, "outbytes": 0}, "31": {"inbytes": 16, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "30": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncValue"]}, "37": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "36": {"inbytes": 16, "outbytes": 0}, "35": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "1002": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IProgressAsyncResult"]}, "1001": {"inbytes": 16, "outbytes": 0}, "1000": {"outinterfaces": ["nn::ns::detail::IProgressAsyncResult"], "inhandles": [1], "outbytes": 0, "inbytes": 16, "outhandles": [1]}, "60": {"inbytes": 8, "outbytes": 1}, "61": {"inbytes": 0, "outbytes": 16}, "62": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IGameCardStopper"]}, "63": {"inbytes": 8, "outbytes": 1}, "64": {"inbytes": 8, "outbytes": 0}, "65": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IRequestServerStopper"]}, "66": {"inbytes": 0, "outbytes": 16}, "67": {"inbytes": 8, "outbytes": 0}, "68": {"inbytes": 8, "outbytes": 0}, "69": {"inbytes": 8, "outbytes": 16}, "1900": {"inbytes": 4, "outbytes": 1}, "210": {"inbytes": 24, "outbytes": 0}, "1502": {"inbytes": 0, "outbytes": 0}, "1500": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1504": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 1}, "506": {"inbytes": 0, "outbytes": 1}, "507": {"inbytes": 0, "outbytes": 0}, "504": {"inbytes": 32, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "505": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "502": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "503": {"inbytes": 24, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncValue"]}, "402": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]}, "508": {"inbytes": 0, "outbytes": 0}, "1505": {"inbytes": 0, "outbytes": 0}, "900": {"inbytes": 8, "outbytes": 24}, "901": {"inbytes": 8, "outbytes": 0, "buffers": [22]}, "220": {"inbytes": 16, "outbytes": 0}, "11": {"inbytes": 8, "outbytes": 128}, "17": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "16": {"inbytes": 16, "outbytes": 0, "buffers": [5]}, "19": {"inbytes": 8, "outbytes": 8}, "908": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "605": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "604": {"inbytes": 16, "outbytes": 0}, "909": {"inbytes": 8, "outbytes": 0}, "601": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "600": {"inbytes": 8, "outbytes": 4}, "603": {"inbytes": 16, "outbytes": 16}, "602": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "1200": {"inbytes": 0, "outbytes": 1}, "48": {"inbytes": 1, "outbytes": 8}, "49": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "46": {"inbytes": 0, "outbytes": 16}, "47": {"inbytes": 1, "outbytes": 8}, "44": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "45": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "42": {"inbytes": 0, "outbytes": 0}, "43": {"inbytes": 0, "outbytes": 0}, "40": {"inbytes": 8, "outbytes": 8, "buffers": [21, 6]}, "41": {"inbytes": 8, "outbytes": 16}, "1": {"inbytes": 0, "outbytes": 8}, "5": {"inbytes": 8, "outbytes": 0}, "9": {"inbytes": 16, "outbytes": 0}, "201": {"inbytes": 16, "outbytes": 0, "outinterfaces": ["nn::ns::detail::IProgressMonitorForDeleteUserSaveDataAll"]}, "200": {"inbytes": 16, "outbytes": 16}, "71": {"inbytes": 1, "outbytes": 16}, "70": {"inbytes": 0, "outbytes": 0}, "1501": {"inbytes": 0, "outbytes": 1}, "1803": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "1802": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "1801": {"inbytes": 0, "outbytes": 8}, "1800": {"inbytes": 0, "outbytes": 1}, "1601": {"inbytes": 0, "outbytes": 0}, "1600": {"inbytes": 0, "outbytes": 32}, "802": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncValue"]}, "801": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "800": {"inbytes": 0, "outbytes": 0} }, "nn::ns::detail::IProgressMonitorForDeleteUserSaveDataAll": { "1": {"inbytes": 0, "outbytes": 1}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 40} }, "nn::am::service::IStorage": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ITransferStorageAccessor>,void>)", "outbytes": 0, "name": "OpenTransferStorage", "outinterfaces": ["nn::am::service::ITransferStorageAccessor"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorageAccessor>,void>)", "outbytes": 0, "name": "Open", "outinterfaces": ["nn::am::service::IStorageAccessor"]} }, "nn::audio::detail::IFinalOutputRecorderManagerForApplet": { "1": {"inbytes": 16, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 16, "outhandles": [1], "outbytes": 0} }, "nn::account::nas::IOAuthProcedureForExternalNsa": { "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::detail::Uuid,void>)", "outbytes": 16, "name": "Suspend"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>)", "outbytes": 0, "buffers": [26, 26], "name": "GetRequest"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "PrepareAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "3": {"name": "ApplyResponseAsync", "inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::sf::InArray<char> const&)", "outinterfaces": ["nn::account::detail::IAsyncContext"], "buffers": [9], "outbytes": 0}, "2": {"inbytes": 0, "args": "(nn::sf::InArray<char> const&)", "outbytes": 0, "buffers": [9], "name": "ApplyResponse"}, "102": {"inbytes": 0, "args": "(nn::sf::OutArray<char> const&)", "outbytes": 0, "buffers": [10], "name": "GetNickname"}, "103": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "GetProfileImage"}, "100": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)", "outbytes": 8, "name": "GetAccountId"}, "101": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>)", "outbytes": 8, "name": "GetLinkedNintendoAccountId"} }, "nn::nifm::detail::IScanRequest": { "1": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsProcessing"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Submit"}, "3": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetSystemEventReadableHandle"}, "2": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GetResult"} }, "nn::timesrv::detail::service::IStaticService": { "200": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsStandardNetworkSystemClockAccuracySufficient"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISystemClock>,void>)", "outbytes": 0, "name": "GetStandardNetworkSystemClock", "outinterfaces": ["nn::timesrv::detail::service::ISystemClock"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISystemClock>,void>)", "outbytes": 0, "name": "GetStandardUserSystemClock", "outinterfaces": ["nn::timesrv::detail::service::ISystemClock"]}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ITimeZoneService>,void>)", "outbytes": 0, "name": "GetTimeZoneService", "outinterfaces": ["nn::timesrv::detail::service::ITimeZoneService"]}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISteadyClock>,void>)", "outbytes": 0, "name": "GetStandardSteadyClock", "outinterfaces": ["nn::timesrv::detail::service::ISteadyClock"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::timesrv::detail::service::ISystemClock>,void>)", "outbytes": 0, "name": "GetStandardLocalSystemClock", "outinterfaces": ["nn::timesrv::detail::service::ISystemClock"]}, "100": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsStandardUserSystemClockAutomaticCorrectionEnabled"}, "101": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetStandardUserSystemClockAutomaticCorrectionEnabled"} }, "nn::news::detail::ipc::IServiceCreator": { "1": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::news::detail::ipc::INewlyArrivedEventHolder"]}, "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::news::detail::ipc::INewsService"]}, "3": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::news::detail::ipc::INewsDatabaseService"]}, "2": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::news::detail::ipc::INewsDataService"]}, "4": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::news::detail::ipc::IOverwriteEventHolder"]} }, "nn::ns::detail::IDownloadTaskInterface": { "704": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "705": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncValue"]}, "701": {"inbytes": 0, "outbytes": 0}, "702": {"inbytes": 0, "outbytes": 0}, "703": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "outinterfaces": ["nn::ns::detail::IAsyncResult"]} }, "nn::am::service::ILockAccessor": { "1": {"inbytes": 1, "outhandles": [1], "outbytes": 1, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>,bool)", "name": "TryLock"}, "3": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetEvent"}, "2": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Unlock"} }, "nn::fssrv::sf::ISaveDataInfoReader": { "0": {"inbytes": 0, "outbytes": 8, "buffers": [6]} }, "nn::ovln::IReceiverService": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ovln::IReceiver"]} }, "nn::usb::hs::IClientEpSession": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "5": {"inbytes": 4, "outbytes": 4, "buffers": [34]}, "4": {"inbytes": 24, "outbytes": 4}, "6": {"inbytes": 32, "outbytes": 4, "buffers": [33]} }, "nn::erpt::sf::IContext": { "1": {"inbytes": 4, "outbytes": 0, "buffers": [5, 5, 5]}, "0": {"inbytes": 0, "outbytes": 0, "buffers": [5, 5]}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 24, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0} }, "nn::eupld::sf::IRequest": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0} }, "nn::bcat::detail::ipc::IDeliveryCacheProgressService": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::bcat::detail::DeliveryCacheProgressImpl,void>)", "outbytes": 0, "buffers": [26], "name": "GetImpl"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetEvent"} }, "nn::fssrv::sf::IFileSystem": { "11": {"inbytes": 0, "outbytes": 8, "buffers": [25]}, "10": {"inbytes": 0, "outbytes": 0}, "13": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "12": {"inbytes": 0, "outbytes": 8, "buffers": [25]}, "14": {"inbytes": 0, "outbytes": 32, "buffers": [25]}, "1": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "0": {"inbytes": 16, "outbytes": 0, "buffers": [25]}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [25, 25]}, "4": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "7": {"inbytes": 0, "outbytes": 4, "buffers": [25]}, "6": {"inbytes": 0, "outbytes": 0, "buffers": [25, 25]}, "9": {"inbytes": 4, "outbytes": 0, "buffers": [25], "outinterfaces": ["nn::fssrv::sf::IDirectory"]}, "8": {"inbytes": 4, "outbytes": 0, "buffers": [25], "outinterfaces": ["nn::fssrv::sf::IFile"]} }, "nn::ldn::detail::ISystemLocalCommunicationService": { "400": {"inbytes": 8, "pid": True, "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0, "buffers": [26]}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 2}, "2": {"inbytes": 0, "outbytes": 8}, "5": {"inbytes": 0, "outbytes": 32}, "4": {"inbytes": 0, "outbytes": 32}, "401": {"inbytes": 0, "outbytes": 0}, "301": {"inbytes": 0, "outbytes": 0}, "201": {"inbytes": 0, "outbytes": 0}, "200": {"inbytes": 0, "outbytes": 0}, "203": {"inbytes": 184, "outbytes": 0, "buffers": [9]}, "202": {"inbytes": 152, "outbytes": 0}, "205": {"inbytes": 4, "outbytes": 0}, "204": {"inbytes": 0, "outbytes": 0}, "207": {"inbytes": 1, "outbytes": 0}, "206": {"inbytes": 0, "outbytes": 0, "buffers": [33]}, "300": {"inbytes": 0, "outbytes": 0}, "208": {"inbytes": 6, "outbytes": 0}, "302": {"inbytes": 124, "outbytes": 0, "buffers": [25]}, "303": {"inbytes": 192, "outbytes": 0}, "304": {"inbytes": 0, "outbytes": 0}, "209": {"inbytes": 0, "outbytes": 0}, "102": {"inbytes": 104, "outbytes": 2, "buffers": [34]}, "103": {"inbytes": 104, "outbytes": 2, "buffers": [34]}, "100": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "101": {"inbytes": 0, "outbytes": 0, "buffers": [26, 10]} }, "nn::htc::tenv::IServiceManager": { "0": {"inbytes": 8, "pid": True, "outbytes": 0, "outinterfaces": [None]} }, "nn::xcd::detail::ISystemServer": { "11": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "10": {"inbytes": 8, "outhandles": [1, 1], "outbytes": 0}, "13": {"inbytes": 8, "outbytes": 0}, "12": {"inbytes": 16, "outbytes": 0}, "15": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "14": {"inbytes": 48, "outbytes": 0}, "17": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "16": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "19": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "18": {"inbytes": 16, "outbytes": 0}, "1": {"inbytes": 16, "outbytes": 0}, "0": {"inbytes": 8, "outbytes": 1}, "3": {"inbytes": 16, "outbytes": 0}, "2": {"inbytes": 8, "outbytes": 1}, "5": {"inbytes": 8, "outbytes": 0}, "4": {"inbytes": 8, "outbytes": 32}, "102": {"inbytes": 0, "outbytes": 8}, "20": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "101": {"inbytes": 0, "outbytes": 8} }, "nn::am::service::IDisplayController": { "11": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ReleaseLastApplicationCaptureBuffer"}, "10": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireLastApplicationCaptureBuffer"}, "13": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ReleaseLastForegroundCaptureBuffer"}, "12": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireLastForegroundCaptureBuffer"}, "15": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ReleaseCallerAppletCaptureBuffer"}, "14": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireCallerAppletCaptureBuffer"}, "17": {"inbytes": 0, "outhandles": [1], "outbytes": 1, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireLastForegroundCaptureBufferEx"}, "16": {"inbytes": 0, "outhandles": [1], "outbytes": 1, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireLastApplicationCaptureBufferEx"}, "18": {"inbytes": 0, "outhandles": [1], "outbytes": 1, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireCallerAppletCaptureBufferEx"}, "21": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "ClearAppletTransitionBuffer"}, "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UpdateLastForegroundCaptureImage"}, "0": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&)", "outbytes": 0, "buffers": [6], "name": "GetLastForegroundCaptureImage"}, "3": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&)", "outbytes": 0, "buffers": [6], "name": "GetCallerAppletCaptureImage"}, "2": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&)", "outbytes": 0, "buffers": [6], "name": "GetLastApplicationCaptureImage"}, "5": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>,nn::sf::OutBuffer const&)", "outbytes": 1, "buffers": [6], "name": "GetLastForegroundCaptureImageEx"}, "4": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UpdateCallerAppletCaptureImage"}, "7": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>,nn::sf::OutBuffer const&)", "outbytes": 1, "buffers": [6], "name": "GetCallerAppletCaptureImageEx"}, "6": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>,nn::sf::OutBuffer const&)", "outbytes": 1, "buffers": [6], "name": "GetLastApplicationCaptureImageEx"}, "20": {"inbytes": 12, "args": "(int,bool,unsigned int)", "outbytes": 0, "name": "ClearCaptureBuffer"}, "8": {"inbytes": 8, "args": "(int,bool)", "outbytes": 0, "name": "TakeScreenShotOfOwnLayer"} }, "nn::btm::IBtm": { "11": {"inbytes": 6, "outbytes": 0}, "10": {"inbytes": 96, "outbytes": 0}, "13": {"inbytes": 6, "outbytes": 0}, "12": {"inbytes": 6, "outbytes": 0}, "15": {"inbytes": 0, "outbytes": 0}, "14": {"inbytes": 0, "outbytes": 0}, "17": {"inbytes": 6, "outbytes": 0, "buffers": [25]}, "16": {"inbytes": 6, "outbytes": 0}, "18": {"inbytes": 0, "outhandles": [1], "outbytes": 1}, "1": {"inbytes": 0, "outbytes": 42}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [26]}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 1}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "4": {"inbytes": 7, "outbytes": 0}, "7": {"inbytes": 4, "outbytes": 0}, "6": {"inbytes": 4, "outbytes": 0}, "9": {"inbytes": 0, "outbytes": 0, "buffers": [26]}, "8": {"inbytes": 0, "outhandles": [1], "outbytes": 1} }, "nn::settings::ISettingsItemKeyIterator": { "1": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>)", "outbytes": 8, "name": "GetKeySize"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GoNext"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&)", "outbytes": 8, "buffers": [6], "name": "GetKey"} }, "nns::hosbinder::IHOSBinderDriver": { "1": {"inbytes": 12, "args": "(int,int,int)", "outbytes": 0, "name": "AdjustRefcount"}, "0": {"inbytes": 12, "args": "(int,unsigned int,nn::sf::InBuffer const&,nn::sf::OutBuffer const&,unsigned int)", "outbytes": 0, "buffers": [5, 6], "name": "TransactParcel"}, "3": {"inbytes": 12, "args": "(int,unsigned int,nn::sf::InBuffer const&,nn::sf::OutBuffer const&,unsigned int)", "outbytes": 0, "buffers": [33, 34], "name": "TransactParcelAuto"}, "2": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "args": "(int,unsigned int,nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetNativeHandle"} }, "nn::nfc::am::detail::IAmManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::nfc::am::detail::IAm"]} }, "nn::arp::detail::IWriter": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::arp::detail::IRegistrar"]} }, "nn::am::service::IGlobalStateController": { "11": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "NotifyCecSettingsChanged"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "LoadAndApplyIdlePolicySettings"}, "13": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UpdateDefaultDisplayResolution"}, "12": {"inbytes": 8, "args": "(long)", "outbytes": 0, "name": "SetDefaultHomeButtonLongPressTime"}, "14": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "ShouldSleepOnBoot"}, "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EnterSleep"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestToEnterSleep"}, "3": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "StartShutdownSequence"}, "2": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "StartSleepSequence"}, "4": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "StartRebootSequence"} }, "nn::wlan::detail::ILocalGetFrame": { "0": {"inbytes": 4, "outbytes": 4, "buffers": [6]} }, "nn::account::IAccountServiceForApplication": { "1": {"inbytes": 16, "args": "(nn::sf::Out<bool,void>,nn::account::Uid const&)", "outbytes": 1, "name": "GetUserExistence"}, "51": {"inbytes": 1, "args": "(nn::sf::Out<nn::account::Uid,void>,bool)", "outbytes": 16, "name": "TrySelectUserWithoutInteraction"}, "50": {"inbytes": 8, "args": "(nn::sf::Out<bool,void>,unsigned long)", "pid": True, "outbytes": 1, "name": "IsUserRegistrationRequestPermitted"}, "120": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IGuestLoginRequest>,void>,nn::sf::NativeHandle &&,unsigned int)", "outbytes": 0, "inbytes": 4, "inhandles": [1], "outinterfaces": ["nn::account::baas::IGuestLoginRequest"], "name": "CreateGuestLoginRequest"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetUserCount"}, "3": {"inbytes": 0, "args": "(nn::sf::OutArray<nn::account::Uid> const&)", "outbytes": 0, "buffers": [10], "name": "ListOpenUsers"}, "2": {"inbytes": 0, "args": "(nn::sf::OutArray<nn::account::Uid> const&)", "outbytes": 0, "buffers": [10], "name": "ListAllUsers"}, "5": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::profile::IProfile>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetProfile", "outinterfaces": ["nn::account::profile::IProfile"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::Uid,void>)", "outbytes": 16, "name": "GetLastOpenedUser"}, "6": {"inbytes": 16, "args": "(nn::sf::Out<nn::account::ProfileDigest,void>,nn::account::Uid const&)", "outbytes": 16, "name": "GetProfileDigest"}, "102": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "AuthenticateApplicationAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "111": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "ClearSaveDataThumbnail"}, "100": {"inbytes": 8, "args": "(unsigned long)", "pid": True, "outbytes": 0, "name": "InitializeApplicationInfo"}, "101": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::baas::IManagerForApplication>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "GetBaasAccountManagerForApplication", "outinterfaces": ["nn::account::baas::IManagerForApplication"]}, "110": {"inbytes": 16, "args": "(nn::account::Uid const&,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [5], "name": "StoreSaveDataThumbnail"} }, "nn::nfc::detail::IUserManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::nfc::detail::IUser"]} }, "nn::npns::INpnsUser": { "25": {"inbytes": 40, "outbytes": 1}, "21": {"inbytes": 16, "outbytes": 40}, "23": {"inbytes": 16, "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 2, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 8, "outbytes": 0}, "5": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "4": {"inbytes": 2, "outbytes": 0, "buffers": [6]}, "7": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "102": {"inbytes": 0, "outbytes": 0}, "103": {"inbytes": 0, "outbytes": 4}, "111": {"inbytes": 0, "outbytes": 0, "buffers": [10]}, "101": {"inbytes": 0, "outbytes": 0}, "104": {"inbytes": 0, "outbytes": 0, "buffers": [6]} }, "nn::ns::detail::IContentManagementInterface": { "11": {"inbytes": 8, "outbytes": 128}, "605": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "607": {"inbytes": 0, "outbytes": 1}, "601": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "600": {"inbytes": 8, "outbytes": 4}, "48": {"inbytes": 1, "outbytes": 8}, "47": {"inbytes": 1, "outbytes": 8}, "43": {"inbytes": 0, "outbytes": 0} }, "nn::am::service::IOverlayFunctions": { "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EndToWatchShortHomeButtonMessage"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "BeginToWatchShortHomeButtonMessage"}, "3": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "SetGpuTimeSliceBoost"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::ncm::ApplicationId,void>)", "outbytes": 8, "name": "GetApplicationIdForLogo"}, "5": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "TerminateApplicationAndSetReason"}, "4": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetAutoSleepTimeAndDimmingTimeEnabled"}, "6": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetScreenShotPermissionGlobally"} }, "nn::fgm::sf::IRequest": { "1": {"inbytes": 8, "args": "(unsigned int,unsigned int)", "outbytes": 0, "name": "Set"}, "0": {"outhandles": [1], "outbytes": 0, "inbytes": 16, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::fgm::Module,unsigned long)", "pid": True, "name": "Initialize"}, "3": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Cancel"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "Get"} }, "nn::timesrv::detail::service::ISteadyClock": { "201": {"inbytes": 8, "args": "(nn::TimeSpanType)", "outbytes": 0, "name": "SetInternalOffset"}, "200": {"inbytes": 0, "args": "(nn::sf::Out<nn::TimeSpanType,void>)", "outbytes": 8, "name": "GetInternalOffset"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::SteadyClockTimePoint,void>)", "outbytes": 24, "name": "GetCurrentTimePoint"}, "3": {"inbytes": 8, "args": "(nn::TimeSpanType)", "outbytes": 0, "name": "SetTestOffset"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::TimeSpanType,void>)", "outbytes": 8, "name": "GetTestOffset"}, "102": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetSetupResutltValue"}, "100": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetRtcValue"}, "101": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsRtcResetDetected"} }, "nn::nfc::detail::ISystemManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::nfc::detail::ISystem"]} }, "nn::audio::detail::IAudioOutManager": { "1": {"outbytes": 16, "inbytes": 16, "inhandles": [1], "pid": True, "outinterfaces": ["nn::audio::detail::IAudioOut"], "buffers": [5, 6]}, "0": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "3": {"outbytes": 16, "inbytes": 16, "inhandles": [1], "pid": True, "outinterfaces": ["nn::audio::detail::IAudioOut"], "buffers": [33, 34]}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [34]} }, "nn::irsensor::IIrSensorServer": { "308": {"args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedImageTransferProcessorConfig const&,nn::sf::NativeHandle &&,unsigned long)", "outbytes": 0, "inbytes": 48, "inhandles": [1], "pid": True, "name": "RunImageTransferProcessor"}, "309": {"outbytes": 16, "inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::sf::Out<nn::irsensor::ImageTransferProcessorState,void>,nn::sf::OutBuffer const&,nn::irsensor::IrCameraHandle)", "pid": True, "buffers": [6], "name": "GetImageTransferProcessorState"}, "303": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "DeactivateIrsensor"}, "313": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle)", "pid": True, "outbytes": 0, "name": "SuspendImageProcessor"}, "312": {"inbytes": 24, "args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedDpdProcessorConfig const&)", "pid": True, "outbytes": 0, "name": "RunDpdProcessor"}, "302": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateIrsensor"}, "310": {"inbytes": 24, "args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedTeraPluginProcessorConfig)", "pid": True, "outbytes": 0, "name": "RunTeraPluginProcessor"}, "304": {"outhandles": [1], "outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)", "pid": True, "name": "GetIrsensorSharedMemoryHandle"}, "305": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle)", "pid": True, "outbytes": 0, "name": "StopImageProcessor"}, "306": {"inbytes": 48, "args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedMomentProcessorConfig const&)", "pid": True, "outbytes": 0, "name": "RunMomentProcessor"}, "307": {"inbytes": 56, "args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedClusteringProcessorConfig const&)", "pid": True, "outbytes": 0, "name": "RunClusteringProcessor"}, "314": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::irsensor::IrCameraHandle,nn::irsensor::PackedMcuVersion)", "pid": True, "outbytes": 0, "name": "CheckFirmwareVersion"}, "311": {"inbytes": 4, "args": "(nn::sf::Out<nn::irsensor::IrCameraHandle,void>,unsigned int)", "outbytes": 4, "name": "GetNpadIrCameraHandle"} }, "nn::usb::pd::detail::IPdManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::usb::pd::detail::IPdSession"]} }, "nn::pcv::IImmediateManager": { "0": {"inbytes": 8, "args": "(int,unsigned int)", "outbytes": 0, "name": "SetClockRate"} }, "nn::erpt::sf::IReport": { "1": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "0": {"inbytes": 20, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 4, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 8}, "4": {"inbytes": 0, "outbytes": 0} }, "nn::ahid::IReadSession": { "0": {"inbytes": 8, "outbytes": 4, "buffers": [6]} }, "nn::hid::IHidTemporaryServer": { "0": {"inbytes": 16, "args": "(nn::sf::Out<nn::hid::tmp::ConsoleSixAxisSensorCalibrationValues,void>,nn::applet::AppletResourceUserId,nn::hid::ConsoleSixAxisSensorHandle)", "pid": True, "outbytes": 24, "name": "GetConsoleSixAxisSensorCalibrationValues"} }, "nn::i2c::IManager": { "1": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::i2c::ISession"]}, "0": {"inbytes": 16, "outbytes": 0, "outinterfaces": ["nn::i2c::ISession"]}, "3": {"inbytes": 16, "outbytes": 1}, "2": {"inbytes": 4, "outbytes": 1} }, "nn::eth::sf::IEthInterfaceGroup": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 4} }, "nn::am::service::IApplicationFunctions": { "60": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetMediaPlaybackStateForApplication"}, "65": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsGamePlayRecordingSupported"}, "66": {"inbytes": 8, "inhandles": [1], "outbytes": 0, "args": "(nn::sf::NativeHandle &&,unsigned long)", "name": "InitializeGamePlayRecording"}, "67": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetGamePlayRecordingState"}, "24": {"inbytes": 0, "args": "(nn::sf::Out<nn::ncm::StorageId,void>,nn::sf::Out<nn::ncm::StorageId,void>)", "outbytes": 2, "name": "GetLaunchStorageInfoForDebug"}, "25": {"inbytes": 40, "args": "(nn::sf::Out<long,void>,unsigned char,nn::account::Uid const&,long,long)", "outbytes": 8, "name": "ExtendSaveData"}, "26": {"inbytes": 24, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned char,nn::account::Uid const&)", "outbytes": 16, "name": "GetSaveDataSize"}, "20": {"inbytes": 16, "args": "(nn::sf::Out<long,void>,nn::account::Uid const&)", "outbytes": 8, "name": "EnsureSaveData"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::LanguageCode,void>)", "outbytes": 8, "name": "GetDesiredLanguage"}, "22": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "SetTerminateResult"}, "23": {"inbytes": 0, "args": "(nn::sf::Out<nn::oe::DisplayVersion,void>)", "outbytes": 16, "name": "GetDisplayVersion"}, "40": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "NotifyRunning"}, "1": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>,unsigned int)", "outbytes": 0, "name": "PopLaunchParameter", "outinterfaces": ["nn::am::service::IStorage"]}, "71": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestToReboot"}, "70": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestToShutdown"}, "11": {"inbytes": 16, "args": "(nn::ncm::ApplicationId,nn::sf::SharedPointer<nn::am::service::IStorage>,unsigned int,unsigned int)", "outbytes": 0, "name": "CreateApplicationAndPushAndRequestToStartForQuest", "ininterfaces": [None]}, "10": {"inbytes": 8, "args": "(nn::ncm::ApplicationId,nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "CreateApplicationAndPushAndRequestToStart", "ininterfaces": [None]}, "33": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EndBlockingHomeButton"}, "32": {"inbytes": 8, "args": "(long)", "outbytes": 0, "name": "BeginBlockingHomeButton"}, "31": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EndBlockingHomeButtonShortAndLongPressed"}, "30": {"inbytes": 8, "args": "(long)", "outbytes": 0, "name": "BeginBlockingHomeButtonShortAndLongPressed"}, "50": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::Uuid,void>)", "outbytes": 16, "name": "GetPseudoDeviceId"} }, "nn::am::service::IDebugFunctions": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>)", "outbytes": 0, "name": "OpenMainApplication", "outinterfaces": ["nn::am::service::IApplicationAccessor"]}, "0": {"inbytes": 4, "args": "(nn::am::AppletMessage)", "outbytes": 0, "name": "NotifyMessageToHomeMenuForDebug"}, "20": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "InvalidateTransitionLayer"}, "10": {"inbytes": 4, "args": "(nn::am::service::EmulatedButtonEvent)", "outbytes": 0, "name": "EmulateButtonEvent"} }, "nn::tma::IHtcsManager": { "11": {"inbytes": 0, "outbytes": 32}, "10": {"inbytes": 0, "outbytes": 32}, "13": {"inbytes": 1, "outbytes": 4, "outinterfaces": [None]}, "12": {"inbytes": 0, "outbytes": 4, "outinterfaces": [None]}, "1": {"inbytes": 4, "outbytes": 8}, "0": {"inbytes": 0, "outbytes": 8}, "3": {"inbytes": 72, "outbytes": 8}, "2": {"inbytes": 72, "outbytes": 8}, "5": {"inbytes": 4, "outbytes": 76}, "4": {"inbytes": 8, "outbytes": 8}, "7": {"inbytes": 8, "outbytes": 16, "buffers": [5]}, "6": {"inbytes": 8, "outbytes": 16, "buffers": [6]}, "9": {"inbytes": 12, "outbytes": 8}, "8": {"inbytes": 8, "outbytes": 8}, "100": {"inbytes": 8, "pid": True, "outbytes": 0}, "101": {"inbytes": 8, "pid": True, "outbytes": 0} }, "nns::nvdrv::INvDrvDebugFSServices": { "1": {"inbytes": 4, "outbytes": 0}, "0": {"inbytes": 0, "inhandles": [1], "outbytes": 4}, "3": {"inbytes": 4, "outbytes": 4, "buffers": [5, 6]}, "2": {"inbytes": 4, "outbytes": 4, "buffers": [6]}, "4": {"inbytes": 4, "outbytes": 4, "buffers": [5, 5]} }, "nn::am::service::IOverlayAppletProxy": { "11": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)", "outbytes": 0, "name": "GetLibraryAppletCreator", "outinterfaces": ["nn::am::service::ILibraryAppletCreator"]}, "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)", "outbytes": 0, "name": "GetProcessWindingController", "outinterfaces": ["nn::am::service::IProcessWindingController"]}, "20": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IOverlayFunctions>,void>)", "outbytes": 0, "name": "GetOverlayFunctions", "outinterfaces": ["nn::am::service::IOverlayFunctions"]}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)", "outbytes": 0, "name": "GetSelfController", "outinterfaces": ["nn::am::service::ISelfController"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)", "outbytes": 0, "name": "GetCommonStateGetter", "outinterfaces": ["nn::am::service::ICommonStateGetter"]}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)", "outbytes": 0, "name": "GetAudioController", "outinterfaces": ["nn::am::service::IAudioController"]}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)", "outbytes": 0, "name": "GetWindowController", "outinterfaces": ["nn::am::service::IWindowController"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)", "outbytes": 0, "name": "GetDisplayController", "outinterfaces": ["nn::am::service::IDisplayController"]}, "1000": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)", "outbytes": 0, "name": "GetDebugFunctions", "outinterfaces": ["nn::am::service::IDebugFunctions"]} }, "nn::friends::detail::ipc::IServiceCreator": { "1": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::friends::detail::ipc::INotificationService>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "CreateNotificationService", "outinterfaces": ["nn::friends::detail::ipc::INotificationService"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::friends::detail::ipc::IFriendService>,void>)", "outbytes": 0, "name": "CreateFriendService", "outinterfaces": ["nn::friends::detail::ipc::IFriendService"]} }, "nn::fan::detail::IManager": { "0": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::fan::detail::IController"]} }, "nn::hid::IHidSystemServer": { "151": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateCaptureButton"}, "802": {"inbytes": 4, "args": "(nn::hid::system::UniqueSixAxisSensorHandle)", "outbytes": 0, "name": "ResetSixAxisSensorCalibrationValues"}, "212": {"inbytes": 4, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned int)", "name": "AcquireNfcActivateEventHandle"}, "213": {"inbytes": 16, "args": "(unsigned int,bool,nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateNfc"}, "210": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireNfcDeviceUpdateEventHandle"}, "211": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<unsigned int> const&)", "outbytes": 8, "buffers": [10], "name": "GetNpadsWithNfc"}, "311": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,unsigned int,nn::util::BitFlagSet<32,nn::hid::system::DeviceType>)", "pid": True, "outbytes": 0, "name": "SetNpadPlayerLedBlinkingDevice"}, "700": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::system::UniquePadId)", "pid": True, "outbytes": 0, "name": "ActivateUniquePad"}, "702": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireUniquePadConnectionEventHandle"}, "703": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::UniquePadId> const&)", "outbytes": 8, "buffers": [10], "name": "GetUniquePadIds"}, "131": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateSleepButton"}, "111": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateHomeButton"}, "804": {"inbytes": 4, "args": "(nn::hid::system::UniqueSixAxisSensorHandle)", "outbytes": 0, "name": "CancelSixAxisSensorUserCalibration"}, "230": {"inbytes": 4, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned int)", "name": "AcquireIrSensorEventHandle"}, "231": {"inbytes": 16, "args": "(unsigned int,bool,nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateIrSensor"}, "542": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquirePlayReportRegisteredDeviceUpdateEvent"}, "850": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsUsbFullKeyControllerEnabled"}, "851": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "EnableUsbFullKeyController"}, "852": {"inbytes": 8, "args": "(nn::sf::Out<bool,void>,nn::hid::system::UniquePadId)", "outbytes": 1, "name": "IsUsbConnected"}, "543": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::RegisteredDevice> const&)", "outbytes": 8, "buffers": [10], "name": "GetRegisteredDevices"}, "1005": {"inbytes": 8, "args": "(nn::sf::Out<nn::hid::system::FirmwareUpdateDeviceHandle,void>,nn::hid::system::UniquePadId)", "outbytes": 8, "name": "StartFirmwareUpdate"}, "322": {"inbytes": 16, "args": "(unsigned int,nn::sf::Out<long,void>,nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 8, "name": "GetIrSensorState"}, "323": {"inbytes": 16, "args": "(unsigned int,nn::sf::Out<unsigned long,void>,nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 8, "name": "GetXcdHandleForNpadWithIrSensor"}, "540": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquirePlayReportControllerUsageUpdateEvent"}, "541": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::PlayReportControllerUsage> const&)", "outbytes": 8, "buffers": [10], "name": "GetPlayReportControllerUsages"}, "520": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EnableHandheldHids"}, "521": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DisableHandheldHids"}, "544": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireConnectionTriggerTimeoutEvent"}, "545": {"inbytes": 6, "args": "(nn::bluetooth::Address)", "outbytes": 0, "name": "SendConnectionTrigger"}, "546": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireDeviceRegisteredEventForControllerSupport"}, "504": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,bool)", "outbytes": 0, "name": "SetAruidValidForVibration"}, "505": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,bool)", "outbytes": 0, "name": "EnableAppletToGetSixAxisSensor"}, "502": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "outbytes": 0, "name": "UnregisterAppletResourceUserId"}, "503": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,bool)", "outbytes": 0, "name": "EnableAppletToGetInput"}, "500": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "outbytes": 0, "name": "SetAppletResourceUserId"}, "547": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetAllowedBluetoothLinksCount"}, "751": {"outhandles": [1], "outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)", "pid": True, "name": "AcquireJoyDetachOnBluetoothOffEventHandle"}, "141": {"outhandles": [1], "outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)", "pid": True, "name": "AcquireCaptureButtonEventHandle"}, "301": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "ActivateNpadSystem"}, "303": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ApplyNpadSystemCommonPolicy"}, "304": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "EnableAssigningSingleOnSlSrPress"}, "305": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "DisableAssigningSingleOnSlSrPress"}, "306": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetLastActiveNpad"}, "307": {"inbytes": 4, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned int)", "outbytes": 16, "name": "GetNpadSystemExtStyle"}, "121": {"outhandles": [1], "outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)", "pid": True, "name": "AcquireSleepButtonEventHandle"}, "901": {"inbytes": 4, "args": "(nn::util::BitFlagSet<32,nn::hid::system::InputSourceId>)", "outbytes": 0, "name": "NotifyInputDetector"}, "824": {"inbytes": 16, "args": "(nn::hid::system::UniquePadId,long)", "outbytes": 0, "name": "ResetAnalogStickManualCalibration"}, "1006": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "AbortFirmwareUpdate"}, "513": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "EndPermitVibrationSession"}, "101": {"outhandles": [1], "outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::applet::AppletResourceUserId)", "pid": True, "name": "AcquireHomeButtonEventHandle"}, "1007": {"inbytes": 8, "args": "(nn::sf::Out<nn::hid::system::FirmwareUpdateState,void>,nn::hid::system::FirmwareUpdateDeviceHandle)", "outbytes": 4, "name": "GetFirmwareUpdateState"}, "321": {"inbytes": 4, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::UniquePadId> const&,unsigned int)", "outbytes": 8, "buffers": [10], "name": "GetUniquePadsFromNpad"}, "900": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateInputDetector"}, "1004": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,nn::hid::system::UniquePadId)", "outbytes": 8, "name": "CheckFirmwareUpdateRequired"}, "821": {"inbytes": 16, "args": "(nn::hid::system::UniquePadId,long)", "outbytes": 0, "name": "StartAnalogStickManualCalibration"}, "31": {"inbytes": 4, "args": "(nn::util::BitFlagSet<32,nn::hid::system::KeyboardLockKeyEvent>)", "outbytes": 0, "name": "SendKeyboardLockKeyEvent"}, "511": {"inbytes": 0, "args": "(nn::sf::Out<float,void>)", "outbytes": 4, "name": "GetVibrationMasterVolume"}, "512": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "outbytes": 0, "name": "BeginPermitVibrationSession"}, "806": {"inbytes": 8, "args": "(nn::hid::system::UniquePadId)", "outbytes": 0, "name": "DisconnectUniquePad"}, "501": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,bool)", "outbytes": 0, "name": "RegisterAppletResourceUserId"}, "805": {"inbytes": 8, "args": "(nn::sf::Out<nn::bluetooth::Address,void>,nn::hid::system::UniquePadId)", "outbytes": 6, "name": "GetUniquePadBluetoothAddress"}, "823": {"inbytes": 16, "args": "(nn::hid::system::UniquePadId,long)", "outbytes": 0, "name": "CancelAnalogStickManualCalibration"}, "1000": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "InitializeFirmwareUpdate"}, "803": {"inbytes": 4, "args": "(nn::hid::system::UniqueSixAxisSensorHandle)", "outbytes": 0, "name": "StartSixAxisSensorUserCalibration"}, "510": {"inbytes": 4, "args": "(float)", "outbytes": 0, "name": "SetVibrationMasterVolume"}, "801": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,nn::hid::system::UniqueSixAxisSensorHandle)", "outbytes": 1, "name": "IsSixAxisSensorUserCalibrationSupported"}, "800": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::system::UniqueSixAxisSensorHandle> const&,nn::hid::system::UniquePadId)", "outbytes": 8, "buffers": [10], "name": "ListSixAxisSensorHandles"}, "1003": {"inbytes": 8, "args": "(nn::sf::Out<bool,void>,nn::hid::system::UniquePadId)", "outbytes": 1, "name": "IsFirmwareUpdateAvailable"}, "1002": {"inbytes": 8, "args": "(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,nn::hid::system::UniquePadId)", "outbytes": 16, "name": "GetAvailableFirmwareVersion"}, "1001": {"inbytes": 8, "args": "(nn::sf::Out<nn::hid::system::FirmwareVersion,void>,nn::hid::system::UniquePadId)", "outbytes": 16, "name": "GetFirmwareVersion"}, "822": {"inbytes": 16, "args": "(nn::hid::system::UniquePadId,long)", "outbytes": 0, "name": "RetryCurrentAnalogStickManualCalibrationStage"} }, "nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService": { "1": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 8}, "4": {"inbytes": 0, "outbytes": 1} }, "nn::audio::detail::IAudioOut": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 8, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 8, "outbytes": 0, "buffers": [33]}, "6": {"inbytes": 8, "outbytes": 1}, "8": {"inbytes": 0, "outbytes": 4, "buffers": [34]} }, "nn::sasbus::IManager": { "0": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::sasbus::ISession"]} }, "nn::visrv::sf::IApplicationDisplayService": { "103": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nns::hosbinder::IHOSBinderDriver>,void>)", "outbytes": 0, "name": "GetIndirectDisplayTransactionService", "outinterfaces": ["nns::hosbinder::IHOSBinderDriver"]}, "2460": {"inbytes": 16, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>,long,long)", "outbytes": 16, "name": "GetIndirectLayerImageRequiredMemoryInfo"}, "1020": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "CloseDisplay"}, "1101": {"inbytes": 16, "args": "(unsigned long,bool)", "outbytes": 0, "name": "SetDisplayEnabled"}, "2451": {"outbytes": 16, "inbytes": 48, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,long,long,float,float,float,float,unsigned long,nn::applet::AppletResourceUserId)", "pid": True, "buffers": [70], "name": "GetIndirectLayerImageCropMap"}, "2450": {"outbytes": 16, "inbytes": 32, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,long,long,unsigned long,nn::applet::AppletResourceUserId)", "pid": True, "buffers": [70], "name": "GetIndirectLayerImageMap"}, "1011": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>)", "outbytes": 8, "name": "OpenDefaultDisplay"}, "5203": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)", "name": "GetDisplayVsyncEventForDebug"}, "5202": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)", "name": "GetDisplayVsyncEvent"}, "2020": {"outbytes": 8, "inbytes": 80, "args": "(nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,nn::vi::DisplayName const&,nn::applet::AppletResourceUserId)", "pid": True, "buffers": [6], "name": "OpenLayer"}, "2021": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "CloseLayer"}, "2031": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "DestroyStrayLayer"}, "2030": {"inbytes": 16, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,unsigned int)", "outbytes": 16, "buffers": [6], "name": "CreateStrayLayer"}, "102": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IManagerDisplayService>,void>)", "outbytes": 0, "name": "GetManagerDisplayService", "outinterfaces": ["nn::visrv::sf::IManagerDisplayService"]}, "1102": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned long)", "outbytes": 16, "name": "GetDisplayResolution"}, "2101": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "SetLayerScalingMode"}, "101": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::ISystemDisplayService>,void>)", "outbytes": 0, "name": "GetSystemDisplayService", "outinterfaces": ["nn::visrv::sf::ISystemDisplayService"]}, "1010": {"inbytes": 64, "args": "(nn::sf::Out<unsigned long,void>,nn::vi::DisplayName const&)", "outbytes": 8, "name": "OpenDisplay"}, "100": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nns::hosbinder::IHOSBinderDriver>,void>)", "outbytes": 0, "name": "GetRelayService", "outinterfaces": ["nns::hosbinder::IHOSBinderDriver"]}, "1000": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::vi::DisplayInfo> const&)", "outbytes": 8, "buffers": [6], "name": "ListDisplays"} }, "nn::audioctrl::detail::IAudioController": { "20": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "21": {"inbytes": 0, "outbytes": 4}, "22": {"inbytes": 0, "outbytes": 0}, "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 4, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 0, "outbytes": 4}, "5": {"inbytes": 8, "outbytes": 0}, "4": {"inbytes": 4, "outbytes": 1}, "7": {"inbytes": 24, "outbytes": 0}, "6": {"inbytes": 4, "outbytes": 1}, "9": {"inbytes": 4, "outbytes": 4}, "8": {"inbytes": 0, "outbytes": 4}, "11": {"inbytes": 4, "outbytes": 0}, "10": {"inbytes": 8, "outbytes": 0}, "13": {"inbytes": 4, "outbytes": 4}, "12": {"inbytes": 0, "outbytes": 4}, "15": {"inbytes": 4, "outbytes": 0}, "14": {"inbytes": 8, "outbytes": 0}, "17": {"inbytes": 4, "outbytes": 0}, "16": {"inbytes": 1, "outbytes": 0}, "19": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "18": {"inbytes": 0, "outbytes": 4} }, "nn::account::baas::IManagerForApplication": { "150": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IAuthorizationRequest>,void>,nn::account::NintendoAccountAuthorizationRequestParameters const&,nn::sf::NativeHandle &&,unsigned int)", "name": "CreateAuthorizationRequest", "inbytes": 4, "inhandles": [1], "outinterfaces": ["nn::account::nas::IAuthorizationRequest"], "buffers": [25], "outbytes": 0}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)", "outbytes": 8, "name": "GetAccountId"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "CheckAvailability"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "LoadIdTokenCache"}, "130": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>,nn::sf::Out<nn::account::nas::NasUserBaseForApplication,void>,nn::sf::OutBuffer const&)", "outbytes": 8, "buffers": [26, 6], "name": "GetNintendoAccountUserResourceCacheForApplication"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "EnsureIdTokenCacheAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]} }, "nn::ldn::detail::ISystemServiceCreator": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ldn::detail::ISystemLocalCommunicationService"]} }, "nn::fssrv::sf::IEventNotifier": { "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0} }, "nn::am::service::IAudioController": { "1": {"inbytes": 0, "args": "(nn::sf::Out<float,void>)", "outbytes": 4, "name": "GetMainAppletExpectedMasterVolume"}, "0": {"inbytes": 8, "args": "(float,float)", "outbytes": 0, "name": "SetExpectedMasterVolume"}, "3": {"inbytes": 16, "args": "(float,long)", "outbytes": 0, "name": "ChangeMainAppletMasterVolume"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<float,void>)", "outbytes": 4, "name": "GetLibraryAppletExpectedMasterVolume"}, "4": {"inbytes": 4, "args": "(float)", "outbytes": 0, "name": "SetTransparentVolumeRate"} }, "nn::cec::ICecManager": { "1": {"inbytes": 4, "outbytes": 4}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 8}, "3": {"inbytes": 24, "outbytes": 4}, "2": {"inbytes": 4, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 32}, "4": {"inbytes": 4, "outbytes": 24}, "6": {"inbytes": 0, "outbytes": 8} }, "nn::visrv::sf::ISystemDisplayService": { "1204": {"inbytes": 24, "args": "(unsigned long,int,int,int,int)", "outbytes": 0, "name": "SetDisplayMagnification"}, "1200": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,unsigned long)", "outbytes": 8, "name": "GetZOrderCountMin"}, "1203": {"inbytes": 8, "args": "(nn::sf::Out<int,void>,nn::sf::Out<int,void>,unsigned long)", "outbytes": 8, "name": "GetDisplayLogicalResolution"}, "1202": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,unsigned long)", "outbytes": 8, "name": "GetZOrderCountMax"}, "3001": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<unsigned int> const&,unsigned long)", "outbytes": 8, "buffers": [6], "name": "ListDisplayRgbRanges"}, "3000": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::vi::DisplayModeInfo> const&,unsigned long)", "outbytes": 8, "buffers": [6], "name": "ListDisplayModes"}, "3002": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<unsigned int> const&,unsigned long)", "outbytes": 8, "buffers": [6], "name": "ListDisplayContentTypes"}, "3214": {"inbytes": 8, "args": "(nn::sf::Out<float,void>,unsigned long)", "outbytes": 4, "name": "GetDisplayGamma"}, "2201": {"inbytes": 16, "args": "(unsigned long,float,float)", "outbytes": 0, "name": "SetLayerPosition"}, "3216": {"inbytes": 8, "args": "(nn::sf::Out<float,void>,unsigned long)", "outbytes": 4, "name": "GetDisplayCmuLuma"}, "2203": {"inbytes": 24, "args": "(unsigned long,long,long)", "outbytes": 0, "name": "SetLayerSize"}, "2204": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,unsigned long)", "outbytes": 8, "name": "GetLayerZ"}, "2205": {"inbytes": 16, "args": "(unsigned long,long)", "outbytes": 0, "name": "SetLayerZ"}, "2207": {"inbytes": 16, "args": "(unsigned long,bool)", "outbytes": 0, "name": "SetLayerVisibility"}, "2209": {"inbytes": 16, "args": "(unsigned long,float)", "outbytes": 0, "name": "SetLayerAlpha"}, "2402": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "FlipIndirectLayer"}, "2400": {"outbytes": 8, "inbytes": 16, "args": "(nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,nn::applet::AppletResourceUserId)", "pid": True, "buffers": [6], "name": "OpenIndirectLayer"}, "2401": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "CloseIndirectLayer"}, "3215": {"inbytes": 16, "args": "(unsigned long,float)", "outbytes": 0, "name": "SetDisplayGamma"}, "3217": {"inbytes": 16, "args": "(unsigned long,float)", "outbytes": 0, "name": "SetDisplayCmuLuma"}, "3210": {"inbytes": 8, "args": "(nn::sf::Out<float,void>,unsigned long)", "outbytes": 4, "name": "GetDisplayContrastRatio"}, "3211": {"inbytes": 16, "args": "(unsigned long,float)", "outbytes": 0, "name": "SetDisplayContrastRatio"}, "3207": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "SetDisplayRgbRange"}, "3206": {"inbytes": 8, "args": "(nn::sf::Out<unsigned int,void>,unsigned long)", "outbytes": 4, "name": "GetDisplayRgbRange"}, "3205": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "SetDisplayContentType"}, "3204": {"inbytes": 8, "args": "(nn::sf::Out<unsigned int,void>,unsigned long)", "outbytes": 4, "name": "GetDisplayContentType"}, "3203": {"inbytes": 16, "args": "(unsigned long,long)", "outbytes": 0, "name": "SetDisplayUnderscan"}, "3202": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,unsigned long)", "outbytes": 8, "name": "GetDisplayUnderscan"}, "3201": {"inbytes": 24, "args": "(unsigned long,nn::vi::DisplayModeInfo const&)", "outbytes": 0, "name": "SetDisplayMode"}, "3200": {"inbytes": 8, "args": "(nn::sf::Out<nn::vi::DisplayModeInfo,void>,unsigned long)", "outbytes": 16, "name": "GetDisplayMode"}, "2312": {"inbytes": 16, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::Out<long,void>,nn::sf::OutBuffer const&,unsigned long,unsigned int)", "outbytes": 16, "buffers": [6], "name": "CreateStrayLayer"}, "3209": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "SetDisplayCmuMode"}, "3208": {"inbytes": 8, "args": "(nn::sf::Out<unsigned int,void>,unsigned long)", "outbytes": 4, "name": "GetDisplayCmuMode"} }, "nn::eth::sf::IEthInterface": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 12}, "4": {"inbytes": 4, "outbytes": 0} }, "nn::am::service::IWindow": {}, "nn::settings::ISystemSettingsServer": { "41": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::Edid,void>)", "outbytes": 0, "buffers": [26], "name": "GetEdid"}, "24": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetColorSetId"}, "25": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetConsoleInformationUploadFlag"}, "26": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetConsoleInformationUploadFlag"}, "27": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetAutomaticApplicationDownloadFlag"}, "20": {"inbytes": 12, "args": "(nn::settings::system::AudioVolume,int)", "outbytes": 0, "name": "SetAudioVolume"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::EulaVersion> const&)", "outbytes": 4, "buffers": [6], "name": "GetEulaVersions"}, "22": {"inbytes": 0, "args": "(nn::sf::InArray<nn::settings::system::EulaVersion> const&)", "outbytes": 0, "buffers": [5], "name": "SetEulaVersions"}, "23": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetColorSetId"}, "28": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetAutomaticApplicationDownloadFlag"}, "29": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::NotificationSettings,void>)", "outbytes": 24, "name": "GetNotificationSettings"}, "0": {"inbytes": 8, "args": "(nn::settings::LanguageCode)", "outbytes": 0, "name": "SetLanguageCode"}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::FirmwareVersion,void>)", "outbytes": 0, "buffers": [26], "name": "GetFirmwareVersion2"}, "8": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetLockScreenFlag"}, "120": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetPushNotificationActivityModeOnSleep"}, "121": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetPushNotificationActivityModeOnSleep"}, "59": {"inbytes": 32, "args": "(nn::time::SystemClockContext const&)", "outbytes": 0, "name": "SetNetworkSystemClockContext"}, "58": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::SystemClockContext,void>)", "outbytes": 32, "name": "GetNetworkSystemClockContext"}, "55": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>)", "outbytes": 8, "name": "GetWirelessCertificationFileSize"}, "54": {"inbytes": 36, "args": "(nn::time::LocationName const&)", "outbytes": 0, "name": "SetDeviceTimeZoneLocationName"}, "57": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetRegionCode"}, "56": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&)", "outbytes": 8, "buffers": [6], "name": "GetWirelessCertificationFile"}, "51": {"inbytes": 0, "args": "(nn::sf::Out<nn::ncm::ProgramId,void>)", "outbytes": 8, "name": "GetInitialSystemAppletProgramId"}, "50": {"inbytes": 8, "args": "(nn::settings::system::DataDeletionSettings)", "outbytes": 0, "name": "SetDataDeletionSettings"}, "53": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::LocationName,void>)", "outbytes": 36, "name": "GetDeviceTimeZoneLocationName"}, "52": {"inbytes": 0, "args": "(nn::sf::Out<nn::ncm::ProgramId,void>)", "outbytes": 8, "name": "GetOverlayDispProgramId"}, "115": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetInRepairProcessEnableFlag"}, "114": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetBluetoothBoostEnableFlag"}, "88": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetBluetoothEnableFlag"}, "89": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetBluetoothEnableFlag"}, "111": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetBluetoothAfhEnableFlag"}, "110": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetHeadphoneVolumeWarningCount"}, "113": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetBluetoothBoostEnableFlag"}, "112": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetBluetoothAfhEnableFlag"}, "82": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireTelemetryDirtyFlagEventHandle"}, "83": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::BitFlagSet<128,nn::settings::system::TelemetryDirtyFlag>,void>)", "outbytes": 16, "name": "GetTelemetryDirtyFlags"}, "80": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetLdnChannel"}, "81": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetLdnChannel"}, "119": {"inbytes": 1, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<bool,void>,nn::sf::Out<signed char,void>,bool)", "outbytes": 3, "name": "NeedsToUpdateHeadphoneVolume"}, "118": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetHeadphoneVolumeUpdateFlag"}, "84": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::factory::BatteryLot,void>)", "outbytes": 24, "name": "GetPtmBatteryLot"}, "85": {"inbytes": 24, "args": "(nn::settings::factory::BatteryLot const&)", "outbytes": 0, "name": "SetPtmBatteryLot"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::FirmwareVersion,void>)", "outbytes": 0, "buffers": [26], "name": "GetFirmwareVersion"}, "7": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetLockScreenFlag"}, "108": {"inbytes": 44, "args": "(nn::settings::system::BacklightSettingsEx const&)", "outbytes": 0, "name": "SetBacklightSettingsEx"}, "109": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetHeadphoneVolumeWarningCount"}, "102": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetExternalRtcResetFlag"}, "103": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetUsbFullKeyEnableFlag"}, "100": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetBatteryPercentageFlag"}, "101": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetExternalRtcResetFlag"}, "106": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetExternalSteadyClockInternalOffset"}, "107": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::BacklightSettingsEx,void>)", "outbytes": 44, "name": "GetBacklightSettingsEx"}, "104": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetUsbFullKeyEnableFlag"}, "105": {"inbytes": 8, "args": "(long)", "outbytes": 0, "name": "SetExternalSteadyClockInternalOffset"}, "39": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::TvSettings,void>)", "outbytes": 32, "name": "GetTvSettings"}, "38": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&,nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&)", "outbytes": 8, "buffers": [25, 25, 6], "name": "GetSettingsItemValue"}, "32": {"inbytes": 0, "args": "(nn::sf::InArray<nn::settings::system::AccountNotificationSettings> const&)", "outbytes": 0, "buffers": [5], "name": "SetAccountNotificationSettings"}, "31": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::AccountNotificationSettings> const&)", "outbytes": 4, "buffers": [6], "name": "GetAccountNotificationSettings"}, "30": {"inbytes": 24, "args": "(nn::settings::system::NotificationSettings const&)", "outbytes": 0, "name": "SetNotificationSettings"}, "37": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>,nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&)", "outbytes": 8, "buffers": [25, 25], "name": "GetSettingsItemValueSize"}, "36": {"inbytes": 4, "args": "(float)", "outbytes": 0, "name": "SetVibrationMasterVolume"}, "35": {"inbytes": 0, "args": "(nn::sf::Out<float,void>)", "outbytes": 4, "name": "GetVibrationMasterVolume"}, "60": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsUserSystemClockAutomaticCorrectionEnabled"}, "61": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetUserSystemClockAutomaticCorrectionEnabled"}, "62": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetDebugModeFlag"}, "63": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetPrimaryAlbumStorage"}, "64": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetPrimaryAlbumStorage"}, "65": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetUsb30EnableFlag"}, "66": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetUsb30EnableFlag"}, "67": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::BatteryLot,void>)", "outbytes": 24, "name": "GetBatteryLot"}, "68": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::SerialNumber,void>)", "outbytes": 24, "name": "GetSerialNumber"}, "69": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetNfcEnableFlag"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::NetworkSettings> const&)", "outbytes": 4, "buffers": [6], "name": "GetNetworkSettings"}, "99": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetBatteryPercentageFlag"}, "98": {"inbytes": 0, "args": "(nn::sf::InArray<nn::settings::system::NxControllerSettings> const&)", "outbytes": 0, "buffers": [5], "name": "SetNxControllerSettings"}, "91": {"inbytes": 8, "args": "(long)", "outbytes": 0, "name": "SetShutdownRtcValue"}, "90": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::Uuid,void>)", "outbytes": 16, "name": "GetMiiAuthorId"}, "93": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "AcquireFatalDirtyFlagEventHandle"}, "92": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetShutdownRtcValue"}, "95": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetAutoUpdateEnableFlag"}, "94": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::BitFlagSet<128,nn::settings::system::FatalDirtyFlag>,void>)", "outbytes": 16, "name": "GetFatalDirtyFlags"}, "97": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::NxControllerSettings> const&)", "outbytes": 4, "buffers": [6], "name": "GetNxControllerSettings"}, "96": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetAutoUpdateEnableFlag"}, "11": {"inbytes": 0, "args": "(nn::sf::InArray<nn::settings::system::BluetoothDevicesSettings> const&)", "outbytes": 0, "buffers": [5], "name": "SetBluetoothDevicesSettings"}, "10": {"inbytes": 40, "args": "(nn::settings::system::BacklightSettings const&)", "outbytes": 0, "name": "SetBacklightSettings"}, "13": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::Uuid,void>)", "outbytes": 16, "name": "GetExternalSteadyClockSourceId"}, "12": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::system::BluetoothDevicesSettings> const&)", "outbytes": 4, "buffers": [6], "name": "GetBluetoothDevicesSettings"}, "15": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::SystemClockContext,void>)", "outbytes": 32, "name": "GetUserSystemClockContext"}, "14": {"inbytes": 16, "args": "(nn::util::Uuid const&)", "outbytes": 0, "name": "SetExternalSteadyClockSourceId"}, "17": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::AccountSettings,void>)", "outbytes": 4, "name": "GetAccountSettings"}, "16": {"inbytes": 32, "args": "(nn::time::SystemClockContext const&)", "outbytes": 0, "name": "SetUserSystemClockContext"}, "19": {"inbytes": 4, "args": "(nn::sf::Out<nn::settings::system::AudioVolume,void>,int)", "outbytes": 8, "name": "GetAudioVolume"}, "18": {"inbytes": 4, "args": "(nn::settings::system::AccountSettings)", "outbytes": 0, "name": "SetAccountSettings"}, "117": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetHeadphoneVolumeUpdateFlag"}, "116": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetInRepairProcessEnableFlag"}, "48": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetQuestFlag"}, "49": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::DataDeletionSettings,void>)", "outbytes": 8, "name": "GetDataDeletionSettings"}, "46": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetForceMuteOnHeadphoneRemoved"}, "86": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::PtmFuelGaugeParameter,void>)", "outbytes": 24, "name": "GetPtmFuelGaugeParameter"}, "44": {"inbytes": 8, "args": "(int,int)", "outbytes": 0, "name": "SetAudioOutputMode"}, "45": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsForceMuteOnHeadphoneRemoved"}, "42": {"inbytes": 0, "args": "(nn::settings::system::Edid const&)", "outbytes": 0, "buffers": [25], "name": "SetEdid"}, "43": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,int)", "outbytes": 4, "name": "GetAudioOutputMode"}, "40": {"inbytes": 32, "args": "(nn::settings::system::TvSettings const&)", "outbytes": 0, "name": "SetTvSettings"}, "87": {"inbytes": 24, "args": "(nn::settings::system::PtmFuelGaugeParameter const&)", "outbytes": 0, "name": "SetPtmFuelGaugeParameter"}, "1": {"inbytes": 0, "args": "(nn::sf::InArray<nn::settings::system::NetworkSettings> const&)", "outbytes": 0, "buffers": [5], "name": "SetNetworkSettings"}, "9": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::BacklightSettings,void>)", "outbytes": 40, "name": "GetBacklightSettings"}, "77": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::DeviceNickName,void>)", "outbytes": 0, "buffers": [22], "name": "GetDeviceNickName"}, "76": {"inbytes": 32, "args": "(nn::settings::system::InitialLaunchSettings const&)", "outbytes": 0, "name": "SetInitialLaunchSettings"}, "75": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::InitialLaunchSettings,void>)", "outbytes": 32, "name": "GetInitialLaunchSettings"}, "74": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetWirelessLanEnableFlag"}, "73": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetWirelessLanEnableFlag"}, "72": {"inbytes": 12, "args": "(nn::settings::system::SleepSettings const&)", "outbytes": 0, "name": "SetSleepSettings"}, "71": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::system::SleepSettings,void>)", "outbytes": 12, "name": "GetSleepSettings"}, "70": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetNfcEnableFlag"}, "79": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetProductModel"}, "78": {"inbytes": 0, "args": "(nn::settings::system::DeviceNickName const&)", "outbytes": 0, "buffers": [21], "name": "SetDeviceNickName"}, "47": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "GetQuestFlag"} }, "nn::account::baas::IFloatingRegistrationRequest": { "13": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>)", "outbytes": 8, "name": "GetLinkedNintendoAccountId"}, "12": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)", "outbytes": 8, "name": "GetAccountId"}, "15": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "GetProfileImage"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "LoadIdTokenCache"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::detail::Uuid,void>)", "outbytes": 16, "name": "GetSessionId"}, "111": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "EnsureIdTokenCacheAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "110": {"outbytes": 0, "inbytes": 8, "args": "(nn::account::SystemProgramIdentification const&,unsigned long)", "pid": True, "buffers": [25], "name": "SetSystemProgramIdentification"}, "100": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::Uid,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 16, "name": "RegisterAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "101": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "RegisterWithUidAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "14": {"inbytes": 0, "args": "(nn::sf::OutArray<char> const&)", "outbytes": 0, "buffers": [10], "name": "GetNickname"} }, "nn::omm::detail::IOperationModeManager": { "11": {"inbytes": 0, "outbytes": 8}, "10": {"inbytes": 1, "outbytes": 0}, "13": {"inbytes": 0, "outbytes": 0}, "12": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "14": {"inbytes": 0, "outbytes": 1}, "1": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 1}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 1}, "4": {"inbytes": 0, "inhandles": [1], "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 0}, "9": {"inbytes": 0, "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 16} }, "nn::bcat::detail::ipc::IDeliveryCacheFileService": { "1": {"inbytes": 8, "args": "(nn::sf::Out<unsigned long,void>,long,nn::sf::OutBuffer const&)", "outbytes": 8, "buffers": [6], "name": "Read"}, "0": {"inbytes": 64, "args": "(nn::bcat::DirectoryName const&,nn::bcat::FileName const&)", "outbytes": 0, "name": "Open"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::bcat::Digest,void>)", "outbytes": 16, "name": "GetDigest"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetSize"} }, "nn::usb::pd::detail::IPdCradleSession": { "1": {"inbytes": 4, "outbytes": 4}, "0": {"inbytes": 8, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 2}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 2}, "4": {"inbytes": 0, "outbytes": 2}, "7": {"inbytes": 0, "outbytes": 1}, "6": {"inbytes": 0, "outbytes": 2}, "8": {"inbytes": 0, "outbytes": 1} }, "nn::account::nas::IOAuthProcedureForNintendoAccountLinkage": { "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::detail::Uuid,void>)", "outbytes": 16, "name": "Suspend"}, "199": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::RequestUrl,void>)", "outbytes": 0, "buffers": [26], "name": "GetUrlForIntroductionOfExtraMembership"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>)", "outbytes": 0, "buffers": [26, 26], "name": "GetRequest"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "PrepareAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "3": {"name": "ApplyResponseAsync", "inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::sf::InArray<char> const&)", "outinterfaces": ["nn::account::detail::IAsyncContext"], "buffers": [9], "outbytes": 0}, "2": {"inbytes": 0, "args": "(nn::sf::InArray<char> const&)", "outbytes": 0, "buffers": [9], "name": "ApplyResponse"}, "100": {"inbytes": 4, "args": "(nn::sf::Out<nn::account::RequestUrl,void>,nn::sf::Out<nn::account::CallbackUri,void>,int)", "outbytes": 0, "buffers": [26, 26], "name": "GetRequestWithTheme"}, "101": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsNetworkServiceAccountReplaced"} }, "nn::am::service::ILibraryAppletProxy": { "11": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)", "outbytes": 0, "name": "GetLibraryAppletCreator", "outinterfaces": ["nn::am::service::ILibraryAppletCreator"]}, "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)", "outbytes": 0, "name": "GetProcessWindingController", "outinterfaces": ["nn::am::service::IProcessWindingController"]}, "20": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletSelfAccessor>,void>)", "outbytes": 0, "name": "OpenLibraryAppletSelfAccessor", "outinterfaces": ["nn::am::service::ILibraryAppletSelfAccessor"]}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)", "outbytes": 0, "name": "GetSelfController", "outinterfaces": ["nn::am::service::ISelfController"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)", "outbytes": 0, "name": "GetCommonStateGetter", "outinterfaces": ["nn::am::service::ICommonStateGetter"]}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)", "outbytes": 0, "name": "GetAudioController", "outinterfaces": ["nn::am::service::IAudioController"]}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)", "outbytes": 0, "name": "GetWindowController", "outinterfaces": ["nn::am::service::IWindowController"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)", "outbytes": 0, "name": "GetDisplayController", "outinterfaces": ["nn::am::service::IDisplayController"]}, "1000": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)", "outbytes": 0, "name": "GetDebugFunctions", "outinterfaces": ["nn::am::service::IDebugFunctions"]} }, "nn::account::baas::IManagerForSystemService": { "150": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IAuthorizationRequest>,void>,nn::account::nas::NasClientInfo const&,nn::account::NintendoAccountAuthorizationRequestParameters const&,nn::sf::NativeHandle &&,unsigned int)", "name": "CreateAuthorizationRequest", "inbytes": 4, "inhandles": [1], "outinterfaces": ["nn::account::nas::IAuthorizationRequest"], "buffers": [25, 25], "outbytes": 0}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "CheckAvailability"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "LoadIdTokenCache"}, "120": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>)", "outbytes": 8, "name": "GetNintendoAccountId"}, "132": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,unsigned int)", "outbytes": 1, "name": "RefreshNintendoAccountUserResourceCacheAsyncIfSecondsElapsed", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "131": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "RefreshNintendoAccountUserResourceCacheAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "130": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>,nn::sf::Out<nn::account::nas::NasUserBase,void>,nn::sf::OutBuffer const&)", "outbytes": 8, "buffers": [26, 6], "name": "GetNintendoAccountUserResourceCache"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "EnsureIdTokenCacheAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)", "outbytes": 8, "name": "GetAccountId"}, "100": {"outbytes": 0, "inbytes": 8, "args": "(nn::account::SystemProgramIdentification const&,unsigned long)", "pid": True, "buffers": [25], "name": "SetSystemProgramIdentification"} }, "nn::audio::detail::IAudioDevice": { "11": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 0, "buffers": [34]}, "12": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1": {"inbytes": 4, "outbytes": 0, "buffers": [5]}, "0": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [5]}, "5": {"inbytes": 0, "outbytes": 4}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 4, "outbytes": 0, "buffers": [33]}, "6": {"inbytes": 0, "outbytes": 4, "buffers": [34]}, "8": {"inbytes": 0, "outbytes": 4, "buffers": [33]} }, "nn::settings::ISettingsServer": { "1": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::settings::LanguageCode> const&)", "outbytes": 4, "buffers": [10], "name": "GetAvailableLanguageCodes"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::settings::LanguageCode,void>)", "outbytes": 8, "name": "GetLanguageCode"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetAvailableLanguageCodeCount"}, "4": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetRegionCode"} }, "nn::bpc::IRtcManager": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 8}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 1}, "4": {"inbytes": 0, "outbytes": 0} }, "nn::nim::detail::IAsyncResult": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0} }, "nn::gpio::IPadSession": { "11": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "13": {"inbytes": 0, "outbytes": 1}, "12": {"inbytes": 1, "outbytes": 0}, "15": {"inbytes": 0, "outbytes": 4}, "14": {"inbytes": 4, "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 4}, "0": {"inbytes": 4, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 4, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 1}, "4": {"inbytes": 1, "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 4}, "9": {"inbytes": 0, "outbytes": 4}, "8": {"inbytes": 4, "outbytes": 0} }, "nn::ns::detail::IAsyncValue": { "1": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "0": {"inbytes": 0, "outbytes": 8}, "2": {"inbytes": 0, "outbytes": 0} }, "nn::audio::detail::IAudioRenderer": { "11": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 0, "buffers": [34, 34, 33]}, "1": {"inbytes": 0, "outbytes": 4}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 0, "outbytes": 4}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0, "buffers": [6, 6, 5]}, "7": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 0}, "9": {"inbytes": 0, "outbytes": 4}, "8": {"inbytes": 4, "outbytes": 0} }, "nn::i2c::ISession": { "11": {"inbytes": 4, "outbytes": 0, "buffers": [34]}, "10": {"inbytes": 4, "outbytes": 0, "buffers": [33]}, "12": {"inbytes": 0, "outbytes": 0, "buffers": [34, 9]}, "1": {"inbytes": 4, "outbytes": 0, "buffers": [6]}, "0": {"inbytes": 4, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [6, 9]} }, "nn::wlan::detail::ISocketManager": { "11": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 0}, "1": {"inbytes": 4, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 4, "outbytes": 0}, "2": {"inbytes": 4, "outbytes": 4, "buffers": [9]}, "5": {"inbytes": 2, "outbytes": 4}, "4": {"inbytes": 8, "outbytes": 0}, "7": {"inbytes": 1, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 6}, "9": {"inbytes": 4, "inhandles": [1, 1, 1, 1, 1], "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 8} }, "nn::audio::detail::IAudioOutManagerForDebugger": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 8, "outbytes": 0} }, "nn::am::service::ITransferStorageAccessor": { "1": {"inbytes": 0, "outhandles": [1], "outbytes": 8, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<unsigned long,void>)", "name": "GetHandle"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetSize"} }, "nn::idle::detail::IPolicyManagerSystem": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 56, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0} }, "nn::account::detail::IAsyncContext": { "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Cancel"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetSystemEvent"}, "3": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GetResult"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "HasDone"} }, "nn::visrv::sf::IManagerDisplayService": { "7000": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetContentVisibility"}, "4203": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "SetDisplayLayerStack"}, "4201": {"inbytes": 16, "args": "(unsigned long,float)", "outbytes": 0, "name": "SetDisplayAlpha"}, "4205": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "SetDisplayPowerState"}, "2051": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "DestroyIndirectLayer"}, "2050": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>)", "outbytes": 8, "name": "CreateIndirectLayer"}, "2053": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "DestroyIndirectProducerEndPoint"}, "2052": {"inbytes": 16, "args": "(nn::sf::Out<unsigned long,void>,unsigned long,nn::applet::AppletResourceUserId)", "outbytes": 8, "name": "CreateIndirectProducerEndPoint"}, "2055": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "DestroyIndirectConsumerEndPoint"}, "2054": {"inbytes": 16, "args": "(nn::sf::Out<unsigned long,void>,unsigned long,nn::applet::AppletResourceUserId)", "outbytes": 8, "name": "CreateIndirectConsumerEndPoint"}, "6000": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "AddToLayerStack"}, "6001": {"inbytes": 16, "args": "(unsigned long,unsigned int)", "outbytes": 0, "name": "RemoveFromLayerStack"}, "2301": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "ReleaseLayerTexturePresentingEvent"}, "2300": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)", "name": "AcquireLayerTexturePresentingEvent"}, "2302": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)", "name": "GetDisplayHotplugEvent"}, "2402": {"inbytes": 8, "args": "(nn::sf::Out<unsigned int,void>,unsigned long)", "outbytes": 4, "name": "GetDisplayHotplugState"}, "2011": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "DestroyManagedLayer"}, "2010": {"inbytes": 24, "args": "(nn::sf::Out<unsigned long,void>,unsigned long,unsigned int,nn::applet::AppletResourceUserId)", "outbytes": 8, "name": "CreateManagedLayer"}, "8100": {"inbytes": 24, "args": "(unsigned long,unsigned long,nn::TimeSpan)", "outbytes": 0, "name": "SetIndirectProducerFlipOffset"}, "6002": {"inbytes": 16, "args": "(unsigned long,bool)", "outbytes": 0, "name": "SetLayerVisibility"}, "8000": {"inbytes": 16, "args": "(unsigned long,bool)", "outbytes": 0, "name": "SetConductorLayer"}, "1102": {"inbytes": 8, "args": "(nn::sf::Out<long,void>,nn::sf::Out<long,void>,unsigned long)", "outbytes": 16, "name": "GetDisplayResolution"} }, "nn::ns::detail::IProgressAsyncResult": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [6]} }, "nn::account::baas::IAdministrator": { "150": {"args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IAuthorizationRequest>,void>,nn::account::nas::NasClientInfo const&,nn::account::NintendoAccountAuthorizationRequestParameters const&,nn::sf::NativeHandle &&,unsigned int)", "name": "CreateAuthorizationRequest", "inbytes": 4, "inhandles": [1], "outinterfaces": ["nn::account::nas::IAuthorizationRequest"], "buffers": [25, 25], "outbytes": 0}, "997": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "DebugUnlinkNintendoAccountAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "132": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,unsigned int)", "outbytes": 1, "name": "RefreshNintendoAccountUserResourceCacheAsyncIfSecondsElapsed", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "131": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "RefreshNintendoAccountUserResourceCacheAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "130": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>,nn::sf::Out<nn::account::nas::NasUserBase,void>,nn::sf::OutBuffer const&)", "outbytes": 8, "buffers": [26, 6], "name": "GetNintendoAccountUserResourceCache"}, "252": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForNintendoAccountLinkage>,void>,nn::account::detail::Uuid const&)", "outbytes": 0, "name": "ResumeProcedureToLinkWithNintendoAccount", "outinterfaces": ["nn::account::nas::IOAuthProcedureForNintendoAccountLinkage"]}, "250": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsLinkedWithNintendoAccount"}, "251": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::nas::IOAuthProcedureForNintendoAccountLinkage>,void>)", "outbytes": 0, "name": "CreateProcedureToLinkWithNintendoAccount", "outinterfaces": ["nn::account::nas::IOAuthProcedureForNintendoAccountLinkage"]}, "256": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>,nn::account::detail::Uuid const&)", "outbytes": 0, "name": "ResumeProcedureToUpdateLinkageStateOfNintendoAccount", "outinterfaces": ["nn::account::http::IOAuthProcedure"]}, "255": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>)", "outbytes": 0, "name": "CreateProcedureToUpdateLinkageStateOfNintendoAccount", "outinterfaces": ["nn::account::http::IOAuthProcedure"]}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NetworkServiceAccountId,void>)", "outbytes": 8, "name": "GetAccountId"}, "0": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "CheckAvailability"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "LoadIdTokenCache"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "EnsureIdTokenCacheAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "280": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>,nn::account::detail::Uuid const&)", "outbytes": 0, "name": "ProxyProcedureToAcquireApplicationAuthorizationForNintendoAccount", "outinterfaces": ["nn::account::http::IOAuthProcedure"]}, "201": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "RegisterAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "200": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsRegistered"}, "203": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DeleteRegistrationInfoLocally"}, "202": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "UnregisterAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "998": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "DebugSetAvailabilityErrorDetail"}, "120": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::NintendoAccountId,void>)", "outbytes": 8, "name": "GetNintendoAccountId"}, "261": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>,nn::account::detail::Uuid const&)", "outbytes": 0, "name": "ResumeProcedureToLinkNnidWithNintendoAccount", "outinterfaces": ["nn::account::http::IOAuthProcedure"]}, "260": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::http::IOAuthProcedure>,void>)", "outbytes": 0, "name": "CreateProcedureToLinkNnidWithNintendoAccount", "outinterfaces": ["nn::account::http::IOAuthProcedure"]}, "100": {"outbytes": 0, "inbytes": 8, "args": "(nn::account::SystemProgramIdentification const&,unsigned long)", "pid": True, "buffers": [25], "name": "SetSystemProgramIdentification"}, "222": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,unsigned int)", "outbytes": 1, "name": "SynchronizeProfileAsyncIfSecondsElapsed", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "221": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "UploadProfileAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "220": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "SynchronizeProfileAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]} }, "nn::news::detail::ipc::INewsDataService": { "1": {"inbytes": 72, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0, "buffers": [9]}, "3": {"inbytes": 0, "outbytes": 8}, "2": {"inbytes": 8, "outbytes": 8, "buffers": [6]} }, "nn::account::detail::ISessionObject": { "999": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Dummy"} }, "nn::usb::ds::IDsService": { "1": {"inbytes": 0, "inhandles": [1], "outbytes": 0}, "0": {"inbytes": 4, "outbytes": 0}, "3": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 1, "buffers": [5, 5], "outinterfaces": ["nn::usb::ds::IDsInterface"]}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "4": {"inbytes": 0, "outbytes": 4} }, "nn::bpc::IBoardPowerControlManager": { "11": {"inbytes": 16, "outbytes": 4}, "10": {"inbytes": 0, "outbytes": 12}, "13": {"inbytes": 4, "outbytes": 0}, "12": {"inbytes": 0, "outbytes": 4}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 0, "outbytes": 4}, "5": {"inbytes": 4, "outhandles": [1], "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 1}, "7": {"inbytes": 4, "outhandles": [1], "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 4}, "9": {"inbytes": 4, "outbytes": 0}, "8": {"inbytes": 8, "outbytes": 4} }, "nn::settings::IFirmwareDebugSettingsServer": { "3": {"inbytes": 0, "args": "(nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&)", "outbytes": 0, "buffers": [25, 25], "name": "ResetSettingsItemValue"}, "2": {"inbytes": 0, "args": "(nn::settings::SettingsName const&,nn::settings::SettingsItemKey const&,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [25, 25, 5], "name": "SetSettingsItemValue"}, "4": {"name": "CreateSettingsItemKeyIterator", "inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::settings::ISettingsItemKeyIterator>,void>,nn::settings::SettingsName const&)", "outinterfaces": ["nn::settings::ISettingsItemKeyIterator"], "buffers": [25], "outbytes": 0} }, "nn::usb::hs::IClientRootSession": { "1": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "0": {"inbytes": 0, "inhandles": [1], "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "2": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "5": {"inbytes": 1, "outbytes": 0}, "4": {"inbytes": 18, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 4, "outbytes": 0, "buffers": [6, 6], "outinterfaces": ["nn::usb::hs::IClientIfSession"]}, "6": {"inbytes": 0, "outhandles": [1], "outbytes": 0} }, "nn::nim::detail::IAsyncProgressResult": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 16} }, "nn::hid::IHidServer": { "71": {"inbytes": 16, "args": "(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 8, "name": "GetSixAxisSensorFusionParameters"}, "51": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::BasicXpadId)", "pid": True, "outbytes": 0, "name": "ActivateXpad"}, "62": {"inbytes": 4, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::hid::BasicXpadId)", "name": "GetSixAxisSensorLifoHandle"}, "70": {"inbytes": 24, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,float,float)", "pid": True, "outbytes": 0, "name": "SetSixAxisSensorFusionParameters"}, "60": {"inbytes": 4, "args": "(nn::hid::BasicXpadId)", "outbytes": 0, "name": "ActivateSixAxisSensor"}, "132": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,unsigned int,bool)", "pid": True, "outbytes": 0, "name": "EnableUnintendedHomeButtonInputProtection"}, "131": {"inbytes": 16, "args": "(nn::sf::Out<bool,void>,nn::applet::AppletResourceUserId,unsigned int)", "pid": True, "outbytes": 1, "name": "IsUnintendedHomeButtonInputProtectionEnabled"}, "130": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,unsigned int,unsigned int)", "pid": True, "outbytes": 0, "name": "SwapNpadAssignment"}, "64": {"inbytes": 4, "args": "(nn::hid::JoyXpadId)", "outbytes": 0, "name": "DeactivateJoySixAxisSensor"}, "65": {"inbytes": 4, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::hid::JoyXpadId)", "name": "GetJoySixAxisSensorLifoHandle"}, "66": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "StartSixAxisSensor"}, "67": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "StopSixAxisSensor"}, "82": {"inbytes": 16, "args": "(nn::sf::Out<bool,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 1, "name": "IsSixAxisSensorAtRest"}, "69": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,bool)", "pid": True, "outbytes": 0, "name": "EnableSixAxisSensorFusion"}, "80": {"inbytes": 16, "args": "(nn::sf::Out<unsigned int,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 4, "name": "GetGyroscopeZeroDriftMode"}, "81": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "ResetGyroscopeZeroDriftMode"}, "75": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "ResetAccelerometerParameters"}, "63": {"inbytes": 4, "args": "(nn::hid::JoyXpadId)", "outbytes": 0, "name": "ActivateJoySixAxisSensor"}, "21": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateMouse"}, "79": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,unsigned int)", "pid": True, "outbytes": 0, "name": "SetGyroscopeZeroDriftMode"}, "102": {"outbytes": 0, "inbytes": 8, "args": "(nn::applet::AppletResourceUserId,nn::sf::InArray<unsigned int> const&)", "pid": True, "buffers": [9], "name": "SetSupportedNpadIdType"}, "40": {"inbytes": 8, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,unsigned long)", "name": "AcquireXpadIdEventHandle"}, "41": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "ReleaseXpadIdEventHandle"}, "1": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateDebugPad"}, "0": {"outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::hid::IAppletResource>,void>,nn::applet::AppletResourceUserId)", "pid": True, "outinterfaces": ["nn::hid::IAppletResource"], "name": "CreateAppletResource"}, "402": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,unsigned int)", "outbytes": 1, "name": "IsUsbFullKeyControllerConnected"}, "401": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "EnableUsbFullKeyController"}, "400": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsUsbFullKeyControllerEnabled"}, "128": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,long)", "pid": True, "outbytes": 0, "name": "SetNpadHandheldActivationMode"}, "68": {"inbytes": 16, "args": "(nn::sf::Out<bool,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 1, "name": "IsSixAxisSensorFusionEnabled"}, "201": {"inbytes": 32, "args": "(nn::applet::AppletResourceUserId,nn::hid::VibrationDeviceHandle,nn::hid::VibrationValue const&)", "pid": True, "outbytes": 0, "name": "SendVibrationValue"}, "200": {"inbytes": 4, "args": "(nn::sf::Out<nn::hid::VibrationDeviceInfoForIpc,void>,nn::hid::VibrationDeviceHandle)", "outbytes": 8, "name": "GetVibrationDeviceInfo"}, "203": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::hid::IActiveVibrationDeviceList>,void>)", "outbytes": 0, "name": "CreateActiveVibrationDeviceList", "outinterfaces": ["nn::hid::IActiveVibrationDeviceList"]}, "202": {"inbytes": 16, "args": "(nn::sf::Out<nn::hid::VibrationValue,void>,nn::applet::AppletResourceUserId,nn::hid::VibrationDeviceHandle)", "pid": True, "outbytes": 16, "name": "GetActualVibrationValue"}, "205": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsVibrationPermitted"}, "204": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "PermitVibration"}, "206": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId,nn::sf::InArray<nn::hid::VibrationDeviceHandle> const&,nn::sf::InArray<nn::hid::VibrationValue> const&)", "outbytes": 0, "buffers": [9, 9], "name": "SendVibrationValues"}, "300": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateConsoleSixAxisSensor"}, "301": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::ConsoleSixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "StartConsoleSixAxisSensor"}, "302": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::ConsoleSixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "StopConsoleSixAxisSensor"}, "77": {"inbytes": 16, "args": "(nn::sf::Out<unsigned int,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 4, "name": "GetAccelerometerPlayMode"}, "76": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,unsigned int)", "pid": True, "outbytes": 0, "name": "SetAccelerometerPlayMode"}, "108": {"inbytes": 4, "args": "(nn::sf::Out<unsigned long,void>,unsigned int)", "outbytes": 8, "name": "GetPlayerLedPattern"}, "123": {"inbytes": 24, "args": "(nn::applet::AppletResourceUserId,unsigned int,long)", "pid": True, "outbytes": 0, "name": "SetNpadJoyAssignmentModeSingle"}, "73": {"inbytes": 24, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle,float,float)", "pid": True, "outbytes": 0, "name": "SetAccelerometerParameters"}, "125": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,unsigned int,unsigned int)", "pid": True, "outbytes": 0, "name": "MergeSingleJoyAsDualJoy"}, "126": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "StartLrAssignmentMode"}, "127": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "StopLrAssignmentMode"}, "91": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,int)", "pid": True, "outbytes": 0, "name": "ActivateGesture"}, "129": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId,nn::sf::Out<long,void>)", "pid": True, "outbytes": 8, "name": "GetNpadHandheldActivationMode"}, "100": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::util::BitFlagSet<32,nn::hid::NpadStyleTag>)", "pid": True, "outbytes": 0, "name": "SetSupportedNpadStyleSet"}, "101": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId,nn::sf::Out<nn::util::BitFlagSet<32,nn::hid::NpadStyleTag>,void>)", "pid": True, "outbytes": 4, "name": "GetSupportedNpadStyleSet"}, "106": {"outhandles": [1], "outbytes": 0, "inbytes": 24, "args": "(nn::applet::AppletResourceUserId,nn::sf::Out<nn::sf::NativeHandle,void>,unsigned int,unsigned long)", "pid": True, "name": "AcquireNpadStyleSetUpdateEventHandle"}, "107": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,unsigned int)", "pid": True, "outbytes": 0, "name": "DisconnectNpad"}, "104": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "DeactivateNpad"}, "78": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "ResetAccelerometerPlayMode"}, "11": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateTouchScreen"}, "120": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,long)", "pid": True, "outbytes": 0, "name": "SetNpadJoyHoldType"}, "59": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::JoyXpadId> const&)", "outbytes": 8, "buffers": [10], "name": "GetJoyXpadIds"}, "58": {"inbytes": 4, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::hid::JoyXpadId)", "name": "GetJoyXpadLifoHandle"}, "121": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId,nn::sf::Out<long,void>)", "pid": True, "outbytes": 8, "name": "GetNpadJoyHoldType"}, "55": {"inbytes": 0, "args": "(nn::sf::Out<long,void>,nn::sf::OutArray<nn::hid::BasicXpadId> const&)", "outbytes": 8, "buffers": [10], "name": "GetXpadIds"}, "31": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateKeyboard"}, "56": {"inbytes": 4, "args": "(nn::hid::JoyXpadId)", "outbytes": 0, "name": "ActivateJoyXpad"}, "61": {"inbytes": 4, "args": "(nn::hid::BasicXpadId)", "outbytes": 0, "name": "DeactivateSixAxisSensor"}, "122": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,unsigned int)", "pid": True, "outbytes": 0, "name": "SetNpadJoyAssignmentModeSingleByDefault"}, "74": {"inbytes": 16, "args": "(nn::sf::Out<float,void>,nn::sf::Out<float,void>,nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 8, "name": "GetAccelerometerParameters"}, "124": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,unsigned int)", "pid": True, "outbytes": 0, "name": "SetNpadJoyAssignmentModeDual"}, "103": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "pid": True, "outbytes": 0, "name": "ActivateNpad"}, "1000": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,long)", "pid": True, "outbytes": 0, "name": "SetNpadCommunicationMode"}, "1001": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetNpadCommunicationMode"}, "72": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,nn::hid::SixAxisSensorHandle)", "pid": True, "outbytes": 0, "name": "ResetSixAxisSensorFusionParameters"} }, "nn::ro::detail::IRoInterface": { "1": {"inbytes": 16, "pid": True, "outbytes": 0}, "0": {"inbytes": 40, "pid": True, "outbytes": 8}, "3": {"inbytes": 16, "pid": True, "outbytes": 0}, "2": {"inbytes": 24, "pid": True, "outbytes": 0}, "4": {"inbytes": 8, "inhandles": [1], "pid": True, "outbytes": 0} }, "nn::nifm::detail::IGeneralService": { "24": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "WakeUp"}, "25": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::SsidListVersion,void>)", "outbytes": 16, "name": "GetSsidListVersion"}, "26": {"inbytes": 0, "args": "(nn::nifm::ClientId)", "outbytes": 0, "buffers": [25], "name": "SetExclusiveClient"}, "27": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::IpSettingData,void>)", "outbytes": 0, "buffers": [26], "name": "GetDefaultIpSetting"}, "20": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsEthernetCommunicationEnabled"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>,nn::nifm::ClientId)", "outbytes": 1, "buffers": [25], "name": "IsAnyInternetRequestAccepted"}, "22": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsAnyForegroundRequestAccepted"}, "23": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "PutToSleep"}, "28": {"inbytes": 0, "args": "(nn::nifm::IpSettingData const&)", "outbytes": 0, "buffers": [25], "name": "SetDefaultIpSetting"}, "29": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetWirelessCommunicationEnabledForTest"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::ClientId,void>)", "outbytes": 0, "buffers": [26], "name": "GetClientId"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IScanRequest>,void>)", "outbytes": 0, "name": "CreateScanRequest", "outinterfaces": ["nn::nifm::detail::IScanRequest"]}, "5": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::detail::sf::NetworkProfileData,void>)", "outbytes": 0, "buffers": [26], "name": "GetCurrentNetworkProfile"}, "4": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IRequest>,void>,int)", "outbytes": 0, "name": "CreateRequest", "outinterfaces": ["nn::nifm::detail::IRequest"]}, "7": {"inbytes": 1, "args": "(nn::sf::OutArray<nn::nifm::detail::sf::NetworkProfileBasicInfo> const&,nn::sf::Out<int,void>,unsigned char)", "outbytes": 4, "buffers": [6], "name": "EnumerateNetworkProfiles"}, "6": {"inbytes": 4, "args": "(nn::sf::OutArray<nn::nifm::detail::sf::NetworkInterfaceInfo> const&,nn::sf::Out<int,void>,unsigned int)", "outbytes": 4, "buffers": [10], "name": "EnumerateNetworkInterfaces"}, "9": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::Uuid,void>,nn::nifm::detail::sf::NetworkProfileData const&)", "outbytes": 16, "buffers": [25], "name": "SetNetworkProfile"}, "8": {"inbytes": 16, "args": "(nn::sf::Out<nn::nifm::detail::sf::NetworkProfileData,void>,nn::util::Uuid const&)", "outbytes": 0, "buffers": [26], "name": "GetNetworkProfile"}, "11": {"inbytes": 0, "args": "(nn::sf::OutArray<nn::nifm::detail::sf::AccessPointData> const&,nn::sf::Out<int,void>)", "outbytes": 4, "buffers": [6], "name": "GetScanData"}, "10": {"inbytes": 16, "args": "(nn::util::Uuid const&)", "outbytes": 0, "name": "RemoveNetworkProfile"}, "13": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::detail::sf::AccessPointData,void>)", "outbytes": 0, "buffers": [26], "name": "GetCurrentAccessPoint"}, "12": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::IpV4Address,void>)", "outbytes": 4, "name": "GetCurrentIpAddress"}, "15": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::IpAddressSetting,void>,nn::sf::Out<nn::nifm::DnsSetting,void>)", "outbytes": 22, "name": "GetCurrentIpConfigInfo"}, "14": {"name": "CreateTemporaryNetworkProfile", "inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::INetworkProfile>,void>,nn::sf::Out<nn::util::Uuid,void>,nn::nifm::detail::sf::NetworkProfileData const&)", "outinterfaces": ["nn::nifm::detail::INetworkProfile"], "buffers": [25], "outbytes": 16}, "17": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsWirelessCommunicationEnabled"}, "16": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetWirelessCommunicationEnabled"}, "19": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetEthernetCommunicationEnabled"}, "18": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::detail::sf::InternetConnectionStatus,void>)", "outbytes": 3, "name": "GetInternetConnectionStatus"}, "31": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetTelemetorySystemEventReadableHandle"}, "30": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetEthernetCommunicationEnabledForTest"}, "33": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ConfirmSystemAvailability"}, "32": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::TelemetryInfo,void>)", "outbytes": 0, "buffers": [22], "name": "GetTelemetryInfo"} }, "nn::usb::pm::IPmService": { "1": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "5": {"inbytes": 4, "outbytes": 4}, "4": {"inbytes": 8, "outbytes": 0} }, "nn::fgm::sf::ISession": { "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::fgm::sf::IRequest>,void>)", "outbytes": 0, "name": "Initialize", "outinterfaces": ["nn::fgm::sf::IRequest"]} }, "nn::es::IETicketService": { "11": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "10": {"inbytes": 0, "outbytes": 4}, "13": {"inbytes": 0, "outbytes": 4, "buffers": [6, 5]}, "12": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "15": {"inbytes": 16, "outbytes": 8}, "14": {"inbytes": 16, "outbytes": 8}, "17": {"inbytes": 16, "outbytes": 8, "buffers": [6]}, "16": {"inbytes": 16, "outbytes": 8, "buffers": [6]}, "19": {"inbytes": 0, "outbytes": 4, "buffers": [6, 5]}, "18": {"inbytes": 0, "outbytes": 0, "buffers": [6, 5]}, "21": {"inbytes": 0, "outbytes": 0, "buffers": [22, 22, 5]}, "1": {"inbytes": 0, "outbytes": 0, "buffers": [5, 5]}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 4, "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "6": {"inbytes": 0, "outbytes": 0}, "9": {"inbytes": 0, "outbytes": 4}, "20": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "8": {"inbytes": 20, "outbytes": 0, "buffers": [22]} }, "nn::lm::ILogger": { "1": {"inbytes": 4, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0, "buffers": [33]} }, "nn::bcat::detail::ipc::IServiceCreator": { "1": {"outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheStorageService>,void>,unsigned long)", "pid": True, "outinterfaces": ["nn::bcat::detail::ipc::IDeliveryCacheStorageService"], "name": "CreateDeliveryCacheStorageService"}, "0": {"outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IBcatService>,void>,unsigned long)", "pid": True, "outinterfaces": ["nn::bcat::detail::ipc::IBcatService"], "name": "CreateBcatService"}, "2": {"inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheStorageService>,void>,nn::ApplicationId)", "outbytes": 0, "name": "CreateDeliveryCacheStorageServiceWithApplicationId", "outinterfaces": ["nn::bcat::detail::ipc::IDeliveryCacheStorageService"]} }, "nn::pcv::detail::IPcvService": { "24": {"inbytes": 4, "args": "(nn::sf::OutArray<nn::pcv::ModuleState> const&,nn::sf::Out<int,void>,int)", "outbytes": 4, "buffers": [10], "name": "GetModuleStateTable"}, "25": {"inbytes": 4, "args": "(nn::sf::OutArray<nn::pcv::PowerDomainState> const&,nn::sf::Out<int,void>,int)", "outbytes": 4, "buffers": [10], "name": "GetPowerDomainStateTable"}, "26": {"inbytes": 4, "args": "(nn::sf::OutArray<unsigned int> const&,nn::sf::Out<int,void>,int)", "outbytes": 4, "buffers": [10], "name": "GetFuseInfo"}, "20": {"inbytes": 8, "args": "(nn::pcv::PowerControlTarget,int)", "outbytes": 0, "name": "ChangeVoltage"}, "21": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPowerClockInfoEvent"}, "22": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetOscillatorClock"}, "23": {"inbytes": 8, "args": "(nn::sf::OutArray<unsigned int> const&,nn::sf::OutArray<int> const&,nn::sf::Out<int,void>,int,int)", "outbytes": 4, "buffers": [10, 10], "name": "GetDvfsTable"}, "1": {"inbytes": 8, "args": "(int,bool)", "outbytes": 0, "name": "SetClockEnabled"}, "0": {"inbytes": 8, "args": "(int,bool)", "outbytes": 0, "name": "SetPowerEnabled"}, "3": {"inbytes": 4, "args": "(nn::sf::Out<unsigned int,void>,int)", "outbytes": 4, "name": "GetClockRate"}, "2": {"inbytes": 8, "args": "(int,unsigned int)", "outbytes": 0, "name": "SetClockRate"}, "5": {"inbytes": 8, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<unsigned int> const&,nn::sf::Out<int,void>,int,int)", "outbytes": 8, "buffers": [10], "name": "GetPossibleClockRates"}, "4": {"inbytes": 4, "args": "(nn::sf::Out<nn::pcv::ModuleState,void>,int)", "outbytes": 12, "name": "GetState"}, "7": {"inbytes": 8, "args": "(int,bool)", "outbytes": 0, "name": "SetReset"}, "6": {"inbytes": 8, "args": "(int,unsigned int)", "outbytes": 0, "name": "SetMinVClockRate"}, "9": {"inbytes": 4, "args": "(nn::sf::Out<bool,void>,int)", "outbytes": 1, "name": "GetVoltageEnabled"}, "8": {"inbytes": 8, "args": "(int,bool)", "outbytes": 0, "name": "SetVoltageEnabled"}, "11": {"inbytes": 8, "args": "(int,int)", "outbytes": 0, "name": "SetVoltageValue"}, "10": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::sf::Out<int,void>,nn::sf::Out<int,void>,int)", "outbytes": 12, "name": "GetVoltageRange"}, "13": {"inbytes": 4, "args": "(nn::sf::OutArray<nn::pcv::TemperatureThreshold> const&,nn::sf::Out<int,void>,int)", "outbytes": 4, "buffers": [10], "name": "GetTemperatureThresholds"}, "12": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,int)", "outbytes": 4, "name": "GetVoltageValue"}, "15": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Initialize"}, "14": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetTemperature"}, "17": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Finalize"}, "16": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsInitialized"}, "19": {"inbytes": 4, "args": "(nn::pcv::PowerControlTarget)", "outbytes": 0, "name": "PowerOff"}, "18": {"inbytes": 8, "args": "(nn::pcv::PowerControlTarget,int)", "outbytes": 0, "name": "PowerOn"} }, "nn::lm::ILogService": { "0": {"inbytes": 8, "pid": True, "outbytes": 0, "outinterfaces": ["nn::lm::ILogger"]} }, "nn::fssrv::sf::IFileSystemProxyForLoader": { "1": {"inbytes": 8, "outbytes": 1}, "0": {"inbytes": 8, "outbytes": 0, "buffers": [25], "outinterfaces": ["nn::fssrv::sf::IFileSystem"]} }, "nn::codec::detail::IHardwareOpusDecoder": { "1": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "0": {"inbytes": 0, "outbytes": 8, "buffers": [6, 5]}, "3": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 0, "outbytes": 8, "buffers": [6, 5]} }, "nn::btm::IBtmSystem": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::btm::IBtmSystemCore"]} }, "nn::ssl::sf::ISslService": { "1": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetContextCount"}, "0": {"outbytes": 0, "inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::ssl::sf::ISslContext>,void>,nn::ssl::sf::SslVersion,unsigned long)", "pid": True, "outinterfaces": ["nn::ssl::sf::ISslContext"], "name": "CreateContext"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::InBuffer const&)", "outbytes": 4, "buffers": [5], "name": "GetCertificateBufSize"}, "2": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>,nn::sf::InBuffer const&)", "outbytes": 4, "buffers": [6, 5], "name": "GetCertificates"}, "5": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "SetInterfaceVersion"}, "4": {"inbytes": 8, "args": "(nn::sf::OutBuffer const&,nn::sf::InBuffer const&,unsigned long)", "outbytes": 0, "buffers": [6, 5], "name": "DebugIoctl"} }, "nn::wlan::detail::ILocalGetActionFrame": { "0": {"inbytes": 4, "outbytes": 12, "buffers": [6]} }, "nn::arp::detail::IRegistrar": { "1": {"inbytes": 16, "outbytes": 0}, "0": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [21]} }, "nn::erpt::sf::ISession": { "1": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::erpt::sf::IManager"]}, "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::erpt::sf::IReport"]} }, "nn::audio::detail::IAudioRendererManagerForDebugger": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 8, "outbytes": 0} }, "nn::audio::detail::IAudioRendererManager": { "1": {"inbytes": 52, "outbytes": 8}, "0": {"inbytes": 72, "inhandles": [1, 1], "pid": True, "outbytes": 0, "outinterfaces": ["nn::audio::detail::IAudioRenderer"]}, "3": {"inbytes": 80, "inhandles": [1], "pid": True, "outbytes": 0, "outinterfaces": ["nn::audio::detail::IAudioRenderer"]}, "2": {"inbytes": 8, "outbytes": 0, "outinterfaces": ["nn::audio::detail::IAudioDevice"]} }, "nn::sm::detail::IUserInterface": { "1": {"inbytes": 8, "outhandles": [2], "outbytes": 0}, "0": {"inbytes": 8, "pid": True, "outbytes": 0}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 16, "outhandles": [2], "outbytes": 0} }, "nn::usb::pd::detail::IPdSession": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 0, "outbytes": 20}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 1, "outbytes": 0} }, "nn::nfp::detail::IDebug": { "308": {"inbytes": 8, "outhandles": [1], "outbytes": 0}, "309": {"inbytes": 0, "outbytes": 4}, "313": {"inbytes": 8, "outbytes": 0}, "312": {"inbytes": 8, "outbytes": 0}, "311": {"inbytes": 8, "outbytes": 4}, "310": {"inbytes": 8, "outbytes": 4}, "314": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "24": {"inbytes": 12, "outbytes": 0, "buffers": [5]}, "20": {"inbytes": 8, "outbytes": 4}, "21": {"inbytes": 8, "outbytes": 4}, "22": {"inbytes": 8, "outbytes": 4}, "23": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "5": {"inbytes": 16, "outbytes": 0}, "4": {"inbytes": 8, "outbytes": 0}, "7": {"inbytes": 12, "outbytes": 0}, "6": {"inbytes": 8, "outbytes": 0}, "9": {"inbytes": 8, "outbytes": 0, "buffers": [5]}, "8": {"inbytes": 8, "outbytes": 4, "buffers": [6]}, "201": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "200": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "203": {"inbytes": 12, "outbytes": 0}, "202": {"inbytes": 8, "outbytes": 0}, "205": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "204": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "206": {"inbytes": 12, "outbytes": 0, "buffers": [5]}, "300": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [5]}, "301": {"inbytes": 0, "outbytes": 0}, "302": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "303": {"inbytes": 12, "outbytes": 0}, "304": {"inbytes": 8, "outbytes": 0}, "305": {"inbytes": 16, "outbytes": 4, "buffers": [6, 5]}, "306": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "307": {"inbytes": 8, "outhandles": [1], "outbytes": 0}, "102": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "103": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "100": {"inbytes": 8, "outbytes": 0}, "101": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "106": {"inbytes": 8, "outbytes": 1}, "104": {"inbytes": 8, "outbytes": 0}, "105": {"inbytes": 8, "outbytes": 0}, "11": {"inbytes": 8, "outbytes": 0}, "10": {"inbytes": 8, "outbytes": 0}, "13": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "12": {"inbytes": 12, "outbytes": 0, "buffers": [5]}, "15": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "14": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "17": {"inbytes": 8, "outhandles": [1], "outbytes": 0}, "16": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "19": {"inbytes": 0, "outbytes": 4}, "18": {"inbytes": 8, "outhandles": [1], "outbytes": 0} }, "nn::account::nas::IAuthorizationRequest": { "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>)", "outbytes": 0, "name": "InvokeWithoutInteractionAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "20": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "GetAuthorizationCode"}, "21": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "GetIdToken"}, "22": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::nas::State,void>)", "outbytes": 0, "buffers": [26], "name": "GetState"}, "19": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsAuthorized"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::detail::Uuid,void>)", "outbytes": 16, "name": "GetSessionId"} }, "nn::apm::ISystemManager": { "1": {"inbytes": 4, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::apm::EventTarget)", "name": "GetPerformanceEvent"}, "0": {"inbytes": 4, "args": "(nn::apm::PerformanceMode)", "outbytes": 0, "name": "RequestPerformanceMode"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::apm::ThrottlingState,void>)", "outbytes": 40, "name": "GetLastThrottlingState"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::apm::ThrottlingState,void>)", "outbytes": 40, "name": "GetThrottlingState"}, "4": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ClearLastThrottlingState"} }, "nn::npns::INpnsSystem": { "115": {"inbytes": 0, "outbytes": 0, "buffers": [10, 10]}, "114": {"inbytes": 0, "outbytes": 0, "buffers": [9, 9]}, "111": {"inbytes": 0, "outbytes": 0, "buffers": [10]}, "113": {"inbytes": 0, "outbytes": 0}, "112": {"inbytes": 0, "outbytes": 0}, "24": {"inbytes": 24, "outbytes": 0}, "25": {"inbytes": 40, "outbytes": 1}, "21": {"inbytes": 16, "outbytes": 40}, "22": {"inbytes": 24, "outbytes": 40}, "23": {"inbytes": 16, "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 2, "outbytes": 0, "buffers": [6]}, "2": {"inbytes": 8, "outbytes": 0}, "5": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "4": {"inbytes": 2, "outbytes": 0, "buffers": [6]}, "7": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 0}, "201": {"inbytes": 16, "outbytes": 0}, "202": {"inbytes": 4, "outbytes": 0}, "102": {"inbytes": 0, "outbytes": 0}, "103": {"inbytes": 0, "outbytes": 4}, "101": {"inbytes": 0, "outbytes": 0}, "104": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "105": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "11": {"inbytes": 0, "outbytes": 0, "buffers": [9]}, "13": {"inbytes": 0, "outbytes": 1, "buffers": [9]}, "12": {"inbytes": 0, "outbytes": 0, "buffers": [9]}, "32": {"inbytes": 16, "outbytes": 0}, "31": {"inbytes": 16, "outbytes": 0} }, "nn::ns::detail::IFactoryResetInterface": { "102": {"inbytes": 0, "outbytes": 0}, "100": {"inbytes": 0, "outbytes": 0}, "101": {"inbytes": 0, "outbytes": 0} }, "nn::hid::IAppletResource": { "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetSharedMemoryHandle"} }, "nn::nfp::detail::ISystem": { "20": {"inbytes": 8, "outbytes": 4}, "21": {"inbytes": 8, "outbytes": 4}, "23": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "5": {"inbytes": 16, "outbytes": 0}, "4": {"inbytes": 8, "outbytes": 0}, "6": {"inbytes": 8, "outbytes": 0}, "102": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "103": {"inbytes": 8, "outbytes": 0, "buffers": [25]}, "100": {"inbytes": 8, "outbytes": 0}, "101": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "106": {"inbytes": 8, "outbytes": 1}, "104": {"inbytes": 8, "outbytes": 0}, "105": {"inbytes": 8, "outbytes": 0}, "11": {"inbytes": 8, "outbytes": 0}, "10": {"inbytes": 8, "outbytes": 0}, "13": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "15": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "14": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "17": {"inbytes": 8, "outhandles": [1], "outbytes": 0}, "16": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "19": {"inbytes": 0, "outbytes": 4}, "18": {"inbytes": 8, "outhandles": [1], "outbytes": 0} }, "nn::account::profile::IProfileEditor": { "11": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "LoadImage"}, "10": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetImageSize"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::profile::ProfileBase,void>)", "outbytes": 56, "name": "GetBase"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::account::profile::ProfileBase,void>,nn::sf::Out<nn::account::profile::UserData,void>)", "outbytes": 56, "buffers": [26], "name": "Get"}, "100": {"inbytes": 56, "args": "(nn::account::profile::ProfileBase const&,nn::account::profile::UserData const&)", "outbytes": 0, "buffers": [25], "name": "Store"}, "101": {"inbytes": 56, "args": "(nn::account::profile::ProfileBase const&,nn::account::profile::UserData const&,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [25, 5], "name": "StoreWithImage"} }, "nn::audio::detail::IFinalOutputRecorderManagerForDebugger": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 8, "outbytes": 0} }, "nn::ns::detail::IDevelopInterface": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 24, "outbytes": 8}, "2": {"inbytes": 8, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 16}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 16, "buffers": [5]}, "6": {"inbytes": 0, "outbytes": 0}, "9": {"inbytes": 16, "outbytes": 8}, "8": {"inbytes": 16, "outbytes": 8} }, "nn::friends::detail::ipc::IFriendService": { "20801": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "SyncUserSetting"}, "20700": {"inbytes": 24, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::PlayHistoryImpl> const&,nn::account::Uid const&,int)", "outbytes": 4, "buffers": [6], "name": "GetPlayHistoryList"}, "21000": {"inbytes": 24, "args": "(nn::sf::Out<nn::friends::ExternalApplicationCatalog,void>,nn::friends::ExternalApplicationCatalogId const&,nn::settings::LanguageCode)", "outbytes": 0, "buffers": [26], "name": "GetExternalApplicationCatalog"}, "20401": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "SyncBlockedUserList"}, "20400": {"inbytes": 24, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::BlockedUserImpl> const&,nn::account::Uid const&,int)", "outbytes": 4, "buffers": [6], "name": "GetBlockedUserList"}, "10211": {"outbytes": 0, "inbytes": 128, "args": "(nn::account::Uid const&,nn::friends::FacedFriendRequestRegistrationKey const&,nn::account::Nickname const&,nn::sf::InBuffer const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&,unsigned long)", "pid": True, "buffers": [25, 25, 5], "name": "AddFacedFriendRequestForApplication"}, "20500": {"inbytes": 16, "args": "(nn::sf::OutArray<nn::friends::detail::ProfileExtraImpl> const&,nn::account::Uid const&,nn::sf::InArray<nn::account::NetworkServiceAccountId> const&)", "outbytes": 0, "buffers": [6, 9], "name": "GetProfileExtraList"}, "20501": {"inbytes": 24, "args": "(nn::sf::Out<nn::friends::Relationship,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 8, "name": "GetRelationship"}, "10101": {"outbytes": 4, "inbytes": 48, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::FriendImpl> const&,nn::account::Uid const&,int,nn::friends::detail::ipc::SizedFriendFilter const&,unsigned long)", "pid": True, "buffers": [6], "name": "GetFriendList"}, "30810": {"inbytes": 24, "args": "(nn::account::Uid const&,int)", "outbytes": 0, "name": "ChangePresencePermission"}, "30812": {"inbytes": 24, "args": "(nn::account::Uid const&,int)", "outbytes": 0, "name": "ChangePlayLogPermission"}, "30402": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 0, "name": "UnblockUser"}, "30121": {"inbytes": 32, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,bool)", "outbytes": 0, "name": "ChangeFriendOnlineNotificationFlag"}, "30400": {"inbytes": 32, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int)", "outbytes": 0, "name": "BlockUser"}, "30401": {"inbytes": 48, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::ApplicationInfo const&,nn::friends::InAppScreenName const&)", "outbytes": 0, "buffers": [25], "name": "BlockUserWithApplicationInfo"}, "10610": {"outbytes": 0, "inbytes": 24, "args": "(nn::account::Uid const&,nn::friends::detail::UserPresenceImpl const&,unsigned long)", "pid": True, "buffers": [25], "name": "UpdateUserPresence"}, "30811": {"inbytes": 24, "args": "(nn::account::Uid const&,bool)", "outbytes": 0, "name": "ChangeFriendRequestReception"}, "30120": {"inbytes": 32, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,bool)", "outbytes": 0, "name": "ChangeFriendFavoriteFlag"}, "10100": {"outbytes": 4, "inbytes": 48, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::account::NetworkServiceAccountId> const&,nn::account::Uid const&,int,nn::friends::detail::ipc::SizedFriendFilter const&,unsigned long)", "pid": True, "buffers": [10], "name": "GetFriendListIds"}, "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Cancel"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetCompletionEvent"}, "10600": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DeclareOpenOnlinePlaySession"}, "10601": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DeclareCloseOnlinePlaySession"}, "20100": {"inbytes": 40, "args": "(nn::sf::Out<int,void>,nn::account::Uid const&,nn::friends::detail::ipc::SizedFriendFilter const&,unsigned long)", "pid": True, "outbytes": 4, "name": "GetFriendCount"}, "30212": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 0, "name": "CancelFacedFriendRequest"}, "30110": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 0, "name": "DropFriendNewlyFlag"}, "30500": {"inbytes": 48, "args": "(nn::sf::Out<nn::friends::detail::ProfileExtraImpl,void>,nn::account::Uid const&,nn::friends::FriendCode const&)", "outbytes": 0, "buffers": [26], "name": "GetProfileExtraFromFriendCode"}, "30211": {"inbytes": 120, "args": "(nn::account::Uid const&,nn::friends::FacedFriendRequestRegistrationKey const&,nn::account::Nickname const&,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [5], "name": "AddFacedFriendRequest"}, "30830": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "ClearPlayLog"}, "10400": {"inbytes": 24, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::account::NetworkServiceAccountId> const&,nn::account::Uid const&,int)", "outbytes": 4, "buffers": [10], "name": "GetBlockedUserListIds"}, "20600": {"inbytes": 16, "args": "(nn::sf::Out<nn::friends::detail::UserPresenceViewImpl,void>,nn::account::Uid const&)", "outbytes": 0, "buffers": [26], "name": "GetUserPresenceView"}, "30210": {"inbytes": 16, "args": "(nn::sf::Out<nn::friends::FacedFriendRequestRegistrationKey,void>,nn::account::Uid const&)", "outbytes": 64, "name": "GetFacedFriendRequestRegistrationKey"}, "30820": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "IssueFriendCode"}, "20900": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestListSummaryOverlayNotification"}, "30213": {"inbytes": 24, "args": "(nn::sf::Out<int,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "GetFacedFriendRequestProfileImage"}, "10702": {"outbytes": 0, "inbytes": 24, "args": "(nn::account::Uid const&,nn::friends::PlayHistoryRegistrationKey const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&,unsigned long)", "pid": True, "buffers": [25, 25, 25], "name": "AddPlayHistory"}, "10701": {"inbytes": 16, "args": "(nn::sf::Out<nn::friends::PlayHistoryRegistrationKey,void>,nn::account::NetworkServiceAccountId,bool)", "outbytes": 0, "buffers": [26], "name": "GetPlayHistoryRegistrationKeyWithNetworkServiceAccountId"}, "10700": {"inbytes": 24, "args": "(nn::sf::Out<nn::friends::PlayHistoryRegistrationKey,void>,nn::account::Uid const&,bool)", "outbytes": 0, "buffers": [26], "name": "GetPlayHistoryRegistrationKey"}, "30217": {"inbytes": 128, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::MiiName const&,nn::friends::MiiImageUrlParam const&,nn::friends::MiiName const&,nn::friends::MiiImageUrlParam const&)", "outbytes": 0, "name": "SendFriendRequestWithNintendoNetworkIdInfo"}, "30216": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 0, "name": "ResendFacedFriendRequest"}, "30215": {"inbytes": 48, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::ExternalApplicationCatalogId const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&)", "outbytes": 0, "buffers": [25, 25], "name": "SendFriendRequestWithExternalApplicationCatalogId"}, "30214": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::InArray<char> const&,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [9, 6], "name": "GetFacedFriendRequestProfileImageFromPath"}, "20110": {"inbytes": 24, "args": "(nn::sf::Out<nn::friends::detail::FriendSettingImpl,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 0, "buffers": [26], "name": "LoadFriendSetting"}, "49900": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DeleteNetworkServiceAccountCache"}, "10200": {"outbytes": 0, "inbytes": 32, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&,unsigned long)", "pid": True, "buffers": [25, 25], "name": "SendFriendRequestForApplication"}, "10500": {"inbytes": 16, "args": "(nn::sf::OutArray<nn::friends::detail::ProfileImpl> const&,nn::account::Uid const&,nn::sf::InArray<nn::account::NetworkServiceAccountId> const&)", "outbytes": 0, "buffers": [6, 9], "name": "GetProfileList"}, "20104": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "RequestSyncFriendList"}, "20102": {"inbytes": 24, "args": "(nn::sf::Out<nn::friends::detail::FriendDetailedInfoImpl,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 0, "buffers": [26], "name": "GetFriendDetailedInfo"}, "20103": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "SyncFriendList"}, "10110": {"inbytes": 24, "args": "(nn::sf::Out<int,void>,nn::account::Uid const&,nn::account::NetworkServiceAccountId,nn::sf::OutBuffer const&)", "outbytes": 4, "buffers": [6], "name": "GetFriendProfileImage"}, "20101": {"inbytes": 16, "args": "(nn::sf::Out<int,void>,nn::account::Uid const&)", "outbytes": 4, "name": "GetNewlyFriendCount"}, "20701": {"inbytes": 16, "args": "(nn::sf::Out<nn::friends::PlayHistoryStatistics,void>,nn::account::Uid const&)", "outbytes": 16, "name": "GetPlayHistoryStatistics"}, "11000": {"inbytes": 164, "args": "(nn::sf::Out<nn::friends::Url,void>,nn::friends::Url const&,int)", "outbytes": 160, "name": "GetProfileImageUrl"}, "20201": {"inbytes": 24, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::FriendRequestImpl> const&,nn::account::Uid const&,int,int)", "outbytes": 4, "buffers": [6], "name": "GetFriendRequestList"}, "20200": {"inbytes": 16, "args": "(nn::sf::Out<int,void>,nn::sf::Out<int,void>,nn::account::Uid const&)", "outbytes": 8, "name": "GetReceivedFriendRequestCount"}, "10102": {"outbytes": 0, "inbytes": 24, "args": "(nn::sf::OutArray<nn::friends::detail::FriendImpl> const&,nn::account::Uid const&,nn::sf::InArray<nn::account::NetworkServiceAccountId> const&,unsigned long)", "pid": True, "buffers": [6, 9], "name": "UpdateFriendInfo"}, "30700": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DeletePlayHistory"}, "20300": {"inbytes": 24, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::FriendCandidateImpl> const&,nn::account::Uid const&,int)", "outbytes": 4, "buffers": [6], "name": "GetFriendCandidateList"}, "20301": {"inbytes": 24, "args": "(nn::sf::Out<nn::friends::NintendoNetworkIdUserInfo,void>,nn::sf::Out<int,void>,nn::sf::OutArray<nn::friends::detail::NintendoNetworkIdFriendImpl> const&,nn::account::Uid const&,int)", "outbytes": 4, "buffers": [26, 6], "name": "GetNintendoNetworkIdInfo"}, "30204": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::friends::RequestId)", "outbytes": 0, "name": "RejectFriendRequest"}, "30205": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::friends::RequestId)", "outbytes": 0, "name": "ReadFriendRequest"}, "30200": {"inbytes": 32, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int)", "outbytes": 0, "name": "SendFriendRequest"}, "30201": {"inbytes": 48, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId,int,nn::friends::ApplicationInfo const&,nn::friends::InAppScreenName const&,nn::friends::InAppScreenName const&)", "outbytes": 0, "buffers": [25, 25], "name": "SendFriendRequestWithApplicationInfo"}, "30202": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::friends::RequestId)", "outbytes": 0, "name": "CancelFriendRequest"}, "30203": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::friends::RequestId)", "outbytes": 0, "name": "AcceptFriendRequest"}, "20800": {"inbytes": 16, "args": "(nn::sf::Out<nn::friends::detail::UserSettingImpl,void>,nn::account::Uid const&)", "outbytes": 0, "buffers": [26], "name": "LoadUserSetting"}, "30101": {"inbytes": 24, "args": "(nn::account::Uid const&,nn::account::NetworkServiceAccountId)", "outbytes": 0, "name": "DeleteFriend"}, "30100": {"inbytes": 16, "args": "(nn::account::Uid const&)", "outbytes": 0, "name": "DropFriendNewlyFlags"} }, "nn::account::IBaasAccessTokenAccessor": { "1": {"inbytes": 16, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,nn::account::Uid const&)", "outbytes": 4, "buffers": [6], "name": "LoadCache"}, "0": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "EnsureCacheAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "2": {"inbytes": 16, "args": "(nn::sf::Out<unsigned long,void>,nn::account::Uid const&)", "outbytes": 8, "name": "GetDeviceAccountId"}, "51": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&)", "outbytes": 0, "name": "UnregisterNotificationTokenAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]}, "50": {"inbytes": 56, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::account::detail::IAsyncContext>,void>,nn::account::Uid const&,nn::npns::NotificationToken const&)", "outbytes": 0, "name": "RegisterNotificationTokenAsync", "outinterfaces": ["nn::account::detail::IAsyncContext"]} }, "nn::socket::sf::IClient": { "24": {"inbytes": 4, "outbytes": 8, "buffers": [33]}, "25": {"inbytes": 4, "outbytes": 8, "buffers": [34]}, "26": {"inbytes": 4, "outbytes": 8}, "27": {"inbytes": 16, "outbytes": 8}, "20": {"inbytes": 12, "outbytes": 8}, "21": {"inbytes": 12, "outbytes": 8, "buffers": [33]}, "22": {"inbytes": 8, "outbytes": 8}, "23": {"inbytes": 4, "outbytes": 8}, "28": {"inbytes": 8, "pid": True, "outbytes": 8, "buffers": [34]}, "29": {"inbytes": 32, "outbytes": 8, "buffers": [34]}, "1": {"inbytes": 8, "pid": True, "outbytes": 0}, "0": {"inbytes": 48, "inhandles": [1], "pid": True, "outbytes": 4}, "3": {"inbytes": 12, "outbytes": 8}, "2": {"inbytes": 12, "outbytes": 8}, "5": {"inbytes": 32, "outbytes": 8, "buffers": [33, 33, 33, 34, 34, 34]}, "4": {"inbytes": 4, "outbytes": 8, "buffers": [33]}, "7": {"inbytes": 0, "outbytes": 12, "buffers": [33, 34, 33]}, "6": {"inbytes": 8, "outbytes": 8, "buffers": [33, 34]}, "9": {"inbytes": 8, "outbytes": 12, "buffers": [34, 34]}, "8": {"inbytes": 8, "outbytes": 8, "buffers": [34]}, "11": {"inbytes": 8, "outbytes": 8, "buffers": [33, 33]}, "10": {"inbytes": 8, "outbytes": 8, "buffers": [33]}, "13": {"inbytes": 4, "outbytes": 8, "buffers": [33]}, "12": {"inbytes": 4, "outbytes": 12, "buffers": [34]}, "15": {"inbytes": 4, "outbytes": 12, "buffers": [34]}, "14": {"inbytes": 4, "outbytes": 8, "buffers": [33]}, "17": {"inbytes": 12, "outbytes": 12, "buffers": [34]}, "16": {"inbytes": 4, "outbytes": 12, "buffers": [34]}, "19": {"inbytes": 12, "outbytes": 8, "buffers": [33, 33, 33, 33, 34, 34, 34, 34]}, "18": {"inbytes": 8, "outbytes": 8}, "30": {"inbytes": 12, "outbytes": 8, "buffers": [33, 33]} }, "nn::friends::detail::ipc::INotificationService": { "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Clear"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetEvent"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::friends::detail::ipc::SizedNotificationInfo,void>)", "outbytes": 16, "name": "Pop"} }, "nn::ts::server::IMeasurementServer": { "1": {"inbytes": 1, "outbytes": 4}, "0": {"inbytes": 1, "outbytes": 8}, "3": {"inbytes": 1, "outbytes": 4}, "2": {"inbytes": 2, "outbytes": 0} }, "nn::audio::detail::IAudioDebugManager": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "inhandles": [1], "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0} }, "nn::apm::IManagerPrivileged": { "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::apm::ISession>,void>)", "outbytes": 0, "name": "OpenSession", "outinterfaces": ["nn::apm::ISession"]} }, "nn::pwm::IManager": { "1": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::pwm::IChannelSession"]}, "0": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::pwm::IChannelSession"]} }, "nn::ahid::ICtrlSession": { "11": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "12": {"inbytes": 8, "outbytes": 4, "buffers": [5]}, "1": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "0": {"inbytes": 1, "outbytes": 0, "buffers": [6]}, "3": {"inbytes": 2, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 2, "outbytes": 0, "buffers": [6]}, "5": {"inbytes": 2, "outbytes": 0}, "4": {"inbytes": 1, "outbytes": 0, "buffers": [6]}, "7": {"inbytes": 1, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 0, "buffers": [6]}, "9": {"inbytes": 6, "outbytes": 0, "buffers": [5]}, "8": {"inbytes": 6, "outbytes": 0, "buffers": [6]} }, "nn::am::service::IApplicationAccessor": { "25": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Terminate"}, "123": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&)", "outbytes": 0, "buffers": [6], "name": "GetApplicationLaunchProperty"}, "20": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestExit"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetAppletStateChangedEvent"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Start"}, "30": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GetResult"}, "120": {"inbytes": 0, "args": "(nn::sf::Out<nn::ncm::ApplicationId,void>)", "outbytes": 8, "name": "GetApplicationId"}, "121": {"inbytes": 4, "args": "(unsigned int,nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushLaunchParameter", "ininterfaces": [None]}, "122": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&)", "outbytes": 0, "buffers": [6], "name": "GetApplicationControlProperty"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsCompleted"}, "111": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "AreAnyLibraryAppletsLeft"}, "110": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "TerminateAllLibraryApplets"}, "112": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAppletAccessor>,void>)", "outbytes": 0, "name": "GetCurrentLibraryApplet", "outinterfaces": ["nn::am::service::IAppletAccessor"]}, "101": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestForApplicationToGetForeground"} }, "nn::socket::resolver::IResolver": { "1": {"inbytes": 4, "outbytes": 0, "buffers": [6]}, "0": {"inbytes": 4, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 24, "pid": True, "outbytes": 12, "buffers": [5, 6]}, "2": {"inbytes": 16, "pid": True, "outbytes": 12, "buffers": [5, 6]}, "5": {"inbytes": 4, "outbytes": 0, "buffers": [6]}, "4": {"inbytes": 4, "outbytes": 0, "buffers": [6]}, "7": {"inbytes": 16, "pid": True, "outbytes": 8, "buffers": [5, 6, 6]}, "6": {"inbytes": 16, "pid": True, "outbytes": 12, "buffers": [5, 5, 5, 6]}, "9": {"inbytes": 16, "pid": True, "outbytes": 0}, "8": {"inbytes": 8, "pid": True, "outbytes": 4} }, "nn::news::detail::ipc::INewlyArrivedEventHolder": { "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0} }, "nn::pdm::detail::IQueryService": { "10": {"inbytes": 4, "outbytes": 4, "buffers": [6]}, "1": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "0": {"inbytes": 4, "outbytes": 4, "buffers": [6]}, "3": {"inbytes": 8, "outbytes": 4, "buffers": [6]}, "2": {"inbytes": 16, "outbytes": 4, "buffers": [6]}, "5": {"inbytes": 24, "outbytes": 40}, "4": {"inbytes": 8, "outbytes": 40}, "7": {"inbytes": 0, "outbytes": 4, "buffers": [6, 5]}, "6": {"inbytes": 16, "outbytes": 40}, "9": {"inbytes": 0, "outbytes": 12}, "8": {"inbytes": 4, "outbytes": 4, "buffers": [6]} }, "nn::ns::detail::IDocumentInterface": { "21": {"inbytes": 16, "outbytes": 0, "buffers": [22]}, "23": {"inbytes": 16, "outbytes": 0} }, "nn::audio::detail::IAudioInManager": { "1": {"outbytes": 16, "inbytes": 16, "inhandles": [1], "pid": True, "outinterfaces": ["nn::audio::detail::IAudioIn"], "buffers": [5, 6]}, "0": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "3": {"outbytes": 16, "inbytes": 16, "inhandles": [1], "pid": True, "outinterfaces": ["nn::audio::detail::IAudioIn"], "buffers": [33, 34]}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [34]}, "4": {"inbytes": 0, "outbytes": 4, "buffers": [34]} }, "nn::irsensor::IIrSensorSystemServer": { "502": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "outbytes": 0, "name": "UnregisterAppletResourceUserId"}, "503": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,bool)", "outbytes": 0, "name": "EnableAppletToGetInput"}, "500": {"inbytes": 8, "args": "(nn::applet::AppletResourceUserId)", "outbytes": 0, "name": "SetAppletResourceUserId"}, "501": {"inbytes": 16, "args": "(nn::applet::AppletResourceUserId,bool)", "outbytes": 0, "name": "RegisterAppletResourceUserId"} }, "nn::pwm::IChannelSession": { "1": {"inbytes": 0, "outbytes": 8}, "0": {"inbytes": 8, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 4}, "2": {"inbytes": 4, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 1}, "4": {"inbytes": 1, "outbytes": 0} }, "nn::nfp::detail::IUser": { "24": {"inbytes": 12, "outbytes": 0, "buffers": [5]}, "20": {"inbytes": 8, "outbytes": 4}, "21": {"inbytes": 8, "outbytes": 4}, "22": {"inbytes": 8, "outbytes": 4}, "23": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 4, "buffers": [10]}, "5": {"inbytes": 16, "outbytes": 0}, "4": {"inbytes": 8, "outbytes": 0}, "7": {"inbytes": 12, "outbytes": 0}, "6": {"inbytes": 8, "outbytes": 0}, "9": {"inbytes": 8, "outbytes": 0, "buffers": [5]}, "8": {"inbytes": 8, "outbytes": 4, "buffers": [6]}, "11": {"inbytes": 8, "outbytes": 0}, "10": {"inbytes": 8, "outbytes": 0}, "13": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "12": {"inbytes": 12, "outbytes": 0, "buffers": [5]}, "15": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "14": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "17": {"inbytes": 8, "outhandles": [1], "outbytes": 0}, "16": {"inbytes": 8, "outbytes": 0, "buffers": [26]}, "19": {"inbytes": 0, "outbytes": 4}, "18": {"inbytes": 8, "outhandles": [1], "outbytes": 0} }, "nn::am::service::IApplicationProxy": { "11": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletCreator>,void>)", "outbytes": 0, "name": "GetLibraryAppletCreator", "outinterfaces": ["nn::am::service::ILibraryAppletCreator"]}, "10": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IProcessWindingController>,void>)", "outbytes": 0, "name": "GetProcessWindingController", "outinterfaces": ["nn::am::service::IProcessWindingController"]}, "20": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationFunctions>,void>)", "outbytes": 0, "name": "GetApplicationFunctions", "outinterfaces": ["nn::am::service::IApplicationFunctions"]}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ISelfController>,void>)", "outbytes": 0, "name": "GetSelfController", "outinterfaces": ["nn::am::service::ISelfController"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ICommonStateGetter>,void>)", "outbytes": 0, "name": "GetCommonStateGetter", "outinterfaces": ["nn::am::service::ICommonStateGetter"]}, "3": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IAudioController>,void>)", "outbytes": 0, "name": "GetAudioController", "outinterfaces": ["nn::am::service::IAudioController"]}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IWindowController>,void>)", "outbytes": 0, "name": "GetWindowController", "outinterfaces": ["nn::am::service::IWindowController"]}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDisplayController>,void>)", "outbytes": 0, "name": "GetDisplayController", "outinterfaces": ["nn::am::service::IDisplayController"]}, "1000": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IDebugFunctions>,void>)", "outbytes": 0, "name": "GetDebugFunctions", "outinterfaces": ["nn::am::service::IDebugFunctions"]} }, "nn::capsrv::sf::IScreenShotApplicationService": { "201": {"outbytes": 32, "inbytes": 16, "args": "(nn::sf::Out<nn::capsrv::ApplicationAlbumEntry,void>,nn::sf::InBuffer const&,unsigned int,nn::applet::AppletResourceUserId,unsigned int)", "pid": True, "buffers": [69], "name": "SaveScreenShot"}, "203": {"outbytes": 32, "inbytes": 80, "args": "(nn::sf::Out<nn::capsrv::ApplicationAlbumEntry,void>,nn::sf::InBuffer const&,nn::capsrv::detail::ScreenShotAttributeEx0 const&,nn::applet::AppletResourceUserId,unsigned int)", "pid": True, "buffers": [69], "name": "SaveScreenShotEx0"} }, "nn::nfp::detail::IUserManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::nfp::detail::IUser"]} }, "nn::bgtc::IStateControlService": { "1": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "5": {"inbytes": 1, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0} }, "nn::wlan::detail::ISocketGetFrame": { "0": {"inbytes": 4, "outbytes": 4, "buffers": [6]} }, "nn::audio::detail::IAudioRendererManagerForApplet": { "1": {"inbytes": 16, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 16, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 24, "outbytes": 0}, "2": {"inbytes": 8, "outbytes": 4}, "5": {"inbytes": 8, "outbytes": 0}, "4": {"inbytes": 8, "outbytes": 0} }, "nn::ns::detail::IGameCardStopper": {}, "nn::visrv::sf::IManagerRootService": { "3": {"inbytes": 12, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int,nn::vi::ProxyName)", "outbytes": 0, "name": "GetDisplayServiceWithProxyNameExchange", "outinterfaces": ["nn::visrv::sf::IApplicationDisplayService"]}, "2": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int)", "outbytes": 0, "name": "GetDisplayService", "outinterfaces": ["nn::visrv::sf::IApplicationDisplayService"]} }, "nn::fatalsrv::IPrivateService": { "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0} }, "nn::ns::detail::IAsyncResult": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0} }, "nn::fatalsrv::IService": { "1": {"inbytes": 16, "pid": True, "outbytes": 0}, "0": {"inbytes": 16, "pid": True, "outbytes": 0}, "2": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [21]} }, "nn::ldn::detail::IUserServiceCreator": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::ldn::detail::IUserLocalCommunicationService"]} }, "nn::pcie::detail::IManager": { "1": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "0": {"outinterfaces": ["nn::pcie::detail::ISession"], "inhandles": [1], "outbytes": 0, "inbytes": 24, "outhandles": [1]} }, "nn::audio::detail::IAudioInManagerForApplet": { "1": {"inbytes": 16, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 16, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 24, "outbytes": 0}, "2": {"inbytes": 8, "outbytes": 4} }, "nn::nsd::detail::IManager": { "11": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "10": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "13": {"inbytes": 4, "outbytes": 0}, "12": {"inbytes": 0, "outbytes": 16}, "20": {"inbytes": 0, "outbytes": 0, "buffers": [22, 21]}, "14": {"inbytes": 4, "outbytes": 0, "buffers": [5, 6]}, "31": {"inbytes": 0, "outbytes": 4, "buffers": [22, 21]}, "30": {"inbytes": 0, "outbytes": 0, "buffers": [22, 21]}, "42": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "43": {"inbytes": 0, "outbytes": 4, "buffers": [22]}, "40": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "41": {"inbytes": 0, "outbytes": 4, "buffers": [22]}, "60": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "61": {"inbytes": 0, "outbytes": 0, "buffers": [21]}, "62": {"inbytes": 0, "outbytes": 0}, "50": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "21": {"inbytes": 0, "outbytes": 4, "buffers": [22, 21]} }, "nn::am::service::IProcessWindingController": { "11": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILibraryAppletAccessor>,void>)", "outbytes": 0, "name": "OpenCallingLibraryApplet", "outinterfaces": ["nn::am::service::ILibraryAppletAccessor"]}, "21": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushContext", "ininterfaces": [None]}, "22": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)", "outbytes": 0, "name": "PopContext", "outinterfaces": ["nn::am::service::IStorage"]}, "23": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "CancelWindingReservation"}, "30": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "WindAndDoReserved"}, "40": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::ILibraryAppletAccessor>)", "outbytes": 0, "name": "ReserveToStartAndWaitAndUnwindThis", "ininterfaces": [None]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::am::service::AppletProcessLaunchReason,void>)", "outbytes": 4, "name": "GetLaunchReason"} }, "nn::pinmux::ISession": { "1": {"inbytes": 0, "outbytes": 4}, "0": {"inbytes": 4, "outbytes": 0}, "2": {"inbytes": 4, "outbytes": 0} }, "nn::news::detail::ipc::INewsService": { "30400": {"inbytes": 0, "outbytes": 8, "buffers": [6, 5]}, "90100": {"inbytes": 0, "outbytes": 8, "buffers": [6]}, "30200": {"inbytes": 0, "outbytes": 1}, "20100": {"inbytes": 8, "outbytes": 0, "buffers": [9]}, "40100": {"inbytes": 4, "outbytes": 0, "buffers": [9]}, "40101": {"inbytes": 8, "outbytes": 0}, "10100": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "30101": {"inbytes": 4, "outbytes": 4, "buffers": [6]}, "30100": {"inbytes": 0, "outbytes": 4, "buffers": [9]} }, "nn::am::service::IStorageAccessor": { "11": {"inbytes": 8, "args": "(long,nn::sf::OutBuffer const&)", "outbytes": 0, "buffers": [34], "name": "Read"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<long,void>)", "outbytes": 8, "name": "GetSize"}, "10": {"inbytes": 8, "args": "(long,nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [33], "name": "Write"} }, "nn::fssrv::sf::IDeviceOperator": { "216": {"inbytes": 0, "outbytes": 16}, "217": {"inbytes": 0, "outbytes": 64}, "214": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "215": {"inbytes": 0, "outbytes": 0}, "212": {"inbytes": 16, "outbytes": 0, "buffers": [6, 5]}, "213": {"inbytes": 8, "outbytes": 0, "buffers": [5]}, "210": {"inbytes": 1, "outbytes": 0}, "211": {"inbytes": 16, "outbytes": 0, "buffers": [6]}, "218": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "114": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "111": {"inbytes": 4, "outbytes": 8}, "110": {"inbytes": 4, "outbytes": 0}, "113": {"inbytes": 8, "outbytes": 24, "buffers": [6]}, "112": {"inbytes": 0, "outbytes": 4}, "1": {"inbytes": 0, "outbytes": 8}, "0": {"inbytes": 0, "outbytes": 1}, "3": {"inbytes": 0, "outbytes": 8}, "2": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "5": {"inbytes": 8, "outbytes": 24, "buffers": [6]}, "4": {"inbytes": 0, "outbytes": 8}, "301": {"inbytes": 0, "outbytes": 4}, "201": {"inbytes": 16, "outbytes": 0}, "200": {"inbytes": 0, "outbytes": 1}, "203": {"inbytes": 4, "outbytes": 16}, "202": {"inbytes": 0, "outbytes": 4}, "205": {"inbytes": 4, "outbytes": 1}, "204": {"inbytes": 0, "outbytes": 0}, "207": {"inbytes": 16, "outbytes": 0, "buffers": [6, 5]}, "206": {"inbytes": 16, "outbytes": 0, "buffers": [6]}, "300": {"inbytes": 4, "outbytes": 0}, "208": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "209": {"inbytes": 16, "outbytes": 0, "buffers": [6]}, "100": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "101": {"inbytes": 0, "outbytes": 8} }, "nn::timesrv::detail::service::ITimeZoneService": { "201": {"inbytes": 8, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::time::PosixTime> const&,nn::time::CalendarTime,nn::time::TimeZoneRule const&)", "outbytes": 4, "buffers": [21, 10], "name": "ToPosixTime"}, "202": {"inbytes": 8, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::time::PosixTime> const&,nn::time::CalendarTime)", "outbytes": 4, "buffers": [10], "name": "ToPosixTimeWithMyRule"}, "1": {"inbytes": 36, "args": "(nn::time::LocationName const&)", "outbytes": 0, "name": "SetDeviceLocationName"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::LocationName,void>)", "outbytes": 36, "name": "GetDeviceLocationName"}, "3": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::time::LocationName> const&,int)", "outbytes": 4, "buffers": [6], "name": "LoadLocationNameList"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetTotalLocationNameCount"}, "5": {"inbytes": 0, "args": "(nn::sf::Out<nn::time::TimeZoneRuleVersion,void>)", "outbytes": 16, "name": "GetTimeZoneRuleVersion"}, "4": {"inbytes": 36, "args": "(nn::sf::Out<nn::time::TimeZoneRule,void>,nn::time::LocationName const&)", "outbytes": 0, "buffers": [22], "name": "LoadTimeZoneRule"}, "100": {"inbytes": 8, "args": "(nn::sf::Out<nn::time::CalendarTime,void>,nn::sf::Out<nn::time::sf::CalendarAdditionalInfo,void>,nn::time::PosixTime,nn::time::TimeZoneRule const&)", "outbytes": 32, "buffers": [21], "name": "ToCalendarTime"}, "101": {"inbytes": 8, "args": "(nn::sf::Out<nn::time::CalendarTime,void>,nn::sf::Out<nn::time::sf::CalendarAdditionalInfo,void>,nn::time::PosixTime)", "outbytes": 32, "name": "ToCalendarTimeWithMyRule"} }, "nn::audio::detail::IAudioIn": { "10": {"inbytes": 8, "inhandles": [1], "outbytes": 0, "buffers": [33]}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 8, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 4, "buffers": [6]}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 8, "inhandles": [1], "outbytes": 0, "buffers": [5]}, "6": {"inbytes": 8, "outbytes": 1}, "9": {"inbytes": 0, "outbytes": 4, "buffers": [34]}, "8": {"inbytes": 8, "outbytes": 0, "buffers": [33]} }, "nn::account::detail::INotifier": { "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetSystemEvent"} }, "nn::nifm::detail::IRequest": { "24": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "RegisterSocketDescriptor"}, "25": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "UnregisterSocketDescriptor"}, "20": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetRevision"}, "21": {"inbytes": 4, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::OutBuffer const&,unsigned int)", "outbytes": 12, "buffers": [6], "name": "GetAppletInfo"}, "22": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::AdditionalInfo,void>,nn::sf::Out<unsigned int,void>)", "outbytes": 4, "buffers": [22], "name": "GetAdditionalInfo"}, "23": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetKeptInSleep"}, "1": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "GetResult"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetRequestState"}, "3": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Cancel"}, "2": {"inbytes": 0, "outhandles": [1, 1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetSystemEventReadableHandles"}, "5": {"inbytes": 36, "args": "(nn::nifm::Requirement const&)", "outbytes": 0, "name": "SetRequirement"}, "4": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Submit"}, "6": {"inbytes": 4, "args": "(int)", "outbytes": 0, "name": "SetRequirementPreset"}, "9": {"inbytes": 16, "args": "(nn::util::Uuid const&)", "outbytes": 0, "name": "SetNetworkProfileId"}, "8": {"inbytes": 1, "args": "(unsigned char)", "outbytes": 0, "name": "SetPriority"}, "11": {"inbytes": 1, "args": "(signed char)", "outbytes": 0, "name": "SetConnectionConfirmationOption"}, "10": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetRejectable"}, "13": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetInstant"}, "12": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetPersistent"}, "15": {"inbytes": 1, "args": "(unsigned char)", "outbytes": 0, "name": "SetRawPriority"}, "14": {"inbytes": 2, "args": "(bool,unsigned char)", "outbytes": 0, "name": "SetSustainable"}, "17": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetSharable"}, "16": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetGreedy"}, "19": {"inbytes": 0, "args": "(nn::sf::Out<nn::nifm::Requirement,void>)", "outbytes": 36, "name": "GetRequirement"}, "18": {"inbytes": 4, "args": "(unsigned int)", "outbytes": 0, "name": "SetRequirementByRevision"} }, "nn::nfc::detail::IUser": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 0, "outbytes": 1}, "2": {"inbytes": 0, "outbytes": 4} }, "nn::tc::IManager": { "1": {"inbytes": 4, "outhandles": [1], "outbytes": 0}, "0": {"inbytes": 4, "outbytes": 0}, "3": {"inbytes": 4, "outbytes": 0}, "2": {"inbytes": 4, "outbytes": 1}, "5": {"inbytes": 8, "outbytes": 0}, "4": {"inbytes": 4, "outbytes": 0}, "7": {"inbytes": 0, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 1} }, "nn::am::service::ICommonStateGetter": { "60": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::Out<int,void>)", "outbytes": 8, "name": "GetDefaultDisplayResolution"}, "61": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetDefaultDisplayResolutionChangeEvent"}, "20": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushToGeneralChannel", "ininterfaces": [None]}, "40": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>)", "outbytes": 16, "name": "GetCradleFwVersion"}, "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::am::AppletMessage,void>)", "outbytes": 4, "name": "ReceiveMessage"}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetEventHandle"}, "3": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "AllowToEnterSleep"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::am::service::AppletKind,void>)", "outbytes": 8, "name": "GetThisAppletKind"}, "5": {"inbytes": 0, "args": "(nn::sf::Out<unsigned char,void>)", "outbytes": 1, "name": "GetOperationMode"}, "4": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "DisallowToEnterSleep"}, "7": {"inbytes": 0, "args": "(nn::sf::Out<unsigned char,void>)", "outbytes": 1, "name": "GetCradleStatus"}, "6": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetPerformanceMode"}, "9": {"inbytes": 0, "args": "(nn::sf::Out<unsigned char,void>)", "outbytes": 1, "name": "GetCurrentFocusState"}, "8": {"inbytes": 0, "args": "(nn::sf::Out<unsigned char,void>)", "outbytes": 1, "name": "GetBootMode"}, "11": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ReleaseSleepLock"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestToAcquireSleepLock"}, "13": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetAcquiredSleepLockEvent"}, "12": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ReleaseSleepLockTransiently"}, "55": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsInControllerFirmwareUpdateSection"}, "31": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>,int)", "outbytes": 0, "name": "GetReaderLockAccessorEx", "outinterfaces": ["nn::am::service::ILockAccessor"]}, "30": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>)", "outbytes": 0, "name": "GetHomeButtonReaderLockAccessor", "outinterfaces": ["nn::am::service::ILockAccessor"]}, "51": {"inbytes": 1, "args": "(bool)", "outbytes": 0, "name": "SetVrModeEnabled"}, "50": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "IsVrModeEnabled"} }, "nn::hid::IActiveVibrationDeviceList": { "0": {"inbytes": 4, "args": "(nn::hid::VibrationDeviceHandle)", "outbytes": 0, "name": "ActivateVibrationDevice"} }, "nn::bsdsocket::cfg::ServerInterface": { "11": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "10": {"inbytes": 0, "outbytes": 0}, "12": {"inbytes": 0, "outbytes": 0}, "1": {"inbytes": 44, "outhandles": [1], "outbytes": 0, "buffers": [5]}, "0": {"inbytes": 44, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 4, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "4": {"inbytes": 0, "outbytes": 0, "buffers": [5, 6]}, "7": {"inbytes": 4, "outbytes": 0}, "6": {"inbytes": 4, "outbytes": 0, "buffers": [5]}, "9": {"inbytes": 0, "outbytes": 0, "buffers": [6, 5]}, "8": {"inbytes": 4, "outbytes": 0, "buffers": [6]} }, "nn::nifm::detail::INetworkProfile": { "1": {"inbytes": 16, "args": "(nn::sf::Out<nn::util::Uuid,void>,nn::util::Uuid const&)", "outbytes": 16, "name": "PersistOld"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::Uuid,void>,nn::nifm::detail::sf::NetworkProfileData const&)", "outbytes": 16, "buffers": [25], "name": "Update"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::util::Uuid,void>)", "outbytes": 16, "name": "Persist"} }, "nn::wlan::detail::ILocalManager": { "42": {"inbytes": 4, "outbytes": 0}, "29": {"inbytes": 4, "outbytes": 0}, "24": {"inbytes": 4, "outbytes": 4, "buffers": [5]}, "25": {"inbytes": 4, "outbytes": 0}, "26": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "27": {"inbytes": 4, "outbytes": 0}, "20": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "21": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "22": {"inbytes": 0, "outbytes": 4}, "23": {"inbytes": 0, "outbytes": 80}, "44": {"inbytes": 4, "outbytes": 0}, "28": {"inbytes": 4, "outbytes": 4, "buffers": [9]}, "43": {"inbytes": 0, "outbytes": 4}, "40": {"inbytes": 8, "outbytes": 0}, "41": {"inbytes": 4, "outbytes": 4}, "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0}, "7": {"inbytes": 128, "outbytes": 0}, "6": {"inbytes": 0, "outbytes": 6}, "9": {"inbytes": 0, "outbytes": 0, "buffers": [21]}, "8": {"inbytes": 0, "outbytes": 0}, "13": {"inbytes": 128, "outbytes": 0}, "12": {"inbytes": 0, "outbytes": 0}, "11": {"inbytes": 128, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 0}, "39": {"inbytes": 4, "outbytes": 0}, "38": {"inbytes": 4, "outbytes": 4, "buffers": [9]}, "15": {"inbytes": 16, "outbytes": 0}, "14": {"inbytes": 0, "outbytes": 0}, "17": {"inbytes": 4, "outhandles": [1], "outbytes": 0}, "16": {"inbytes": 4, "outbytes": 0}, "19": {"inbytes": 0, "outbytes": 0, "buffers": [22]}, "18": {"inbytes": 0, "outbytes": 60}, "31": {"inbytes": 2, "outbytes": 4}, "30": {"inbytes": 8, "outbytes": 0}, "37": {"inbytes": 0, "outbytes": 0}, "36": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "35": {"inbytes": 16, "outbytes": 0, "buffers": [5]}, "34": {"inbytes": 0, "outbytes": 0, "buffers": [25, 6]}, "33": {"inbytes": 4, "outbytes": 0, "buffers": [25]}, "32": {"inbytes": 4, "outbytes": 0, "buffers": [25]} }, "nn::psm::IPsmSession": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "3": {"inbytes": 1, "outbytes": 0}, "2": {"inbytes": 1, "outbytes": 0}, "4": {"inbytes": 1, "outbytes": 0} }, "nn::ovln::ISender": { "1": {"inbytes": 0, "outbytes": 4}, "0": {"inbytes": 136, "outbytes": 0} }, "nn::usb::ds::IDsEndpoint": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 132}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "5": {"inbytes": 1, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0} }, "nns::nvdrv::INvDrvServices": { "11": {"inbytes": 8, "outbytes": 4, "buffers": [33, 34, 33]}, "10": {"inbytes": 4, "inhandles": [1], "outbytes": 4}, "13": {"inbytes": 8, "outbytes": 0}, "12": {"inbytes": 8, "outbytes": 4, "buffers": [33, 34, 34]}, "1": {"inbytes": 8, "outbytes": 4, "buffers": [33, 34]}, "0": {"inbytes": 0, "outbytes": 8, "buffers": [5]}, "3": {"inbytes": 4, "inhandles": [1, 1], "outbytes": 4}, "2": {"inbytes": 4, "outbytes": 4}, "5": {"inbytes": 8, "inhandles": [1], "outbytes": 4}, "4": {"inbytes": 8, "outhandles": [1], "outbytes": 4}, "7": {"inbytes": 8, "outbytes": 4}, "6": {"inbytes": 0, "outbytes": 36}, "9": {"inbytes": 0, "outbytes": 0}, "8": {"inbytes": 8, "pid": True, "outbytes": 4} }, "nn::am::service::ILibraryAppletSelfAccessor": { "11": {"inbytes": 0, "args": "(nn::sf::Out<nn::am::service::LibraryAppletInfo,void>)", "outbytes": 8, "name": "GetLibraryAppletInfo"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "ExitProcessAndReturn"}, "13": {"inbytes": 0, "args": "(nn::sf::Out<bool,void>)", "outbytes": 1, "name": "CanUseApplicationCore"}, "12": {"inbytes": 0, "args": "(nn::sf::Out<nn::am::service::AppletIdentityInfo,void>)", "outbytes": 16, "name": "GetMainAppletIdentityInfo"}, "15": {"inbytes": 0, "args": "(nn::sf::Out<nn::ns::ApplicationControlProperty,void>)", "outbytes": 0, "buffers": [22], "name": "GetMainAppletApplicationControlProperty"}, "14": {"inbytes": 0, "args": "(nn::sf::Out<nn::am::service::AppletIdentityInfo,void>)", "outbytes": 16, "name": "GetCallerAppletIdentityInfo"}, "17": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::am::service::AppletIdentityInfo> const&)", "outbytes": 4, "buffers": [6], "name": "GetCallerAppletIdentityInfoStack"}, "16": {"inbytes": 0, "args": "(nn::sf::Out<nn::ncm::StorageId,void>)", "outbytes": 1, "name": "GetMainAppletStorageId"}, "31": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "UnpopExtraStorage", "ininterfaces": [None]}, "30": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "UnpopInData", "ininterfaces": [None]}, "50": {"inbytes": 8, "args": "(nn::err::ErrorCode)", "outbytes": 0, "name": "ReportVisibleError"}, "40": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>)", "outbytes": 8, "name": "GetIndirectLayerProducerHandle"}, "1": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushOutData", "ininterfaces": [None]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)", "outbytes": 0, "name": "PopInData", "outinterfaces": ["nn::am::service::IStorage"]}, "3": {"inbytes": 0, "args": "(nn::sf::SharedPointer<nn::am::service::IStorage>)", "outbytes": 0, "name": "PushInteractiveOutData", "ininterfaces": [None]}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)", "outbytes": 0, "name": "PopInteractiveInData", "outinterfaces": ["nn::am::service::IStorage"]}, "5": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPopInDataEvent"}, "25": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPopExtraStorageEvent"}, "6": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPopInteractiveInDataEvent"}, "20": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)", "outbytes": 0, "name": "PopExtraStorage", "outinterfaces": ["nn::am::service::IStorage"]} }, "nn::nfc::detail::ISystem": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 16, "pid": True, "outbytes": 0, "buffers": [5]}, "3": {"inbytes": 0, "outbytes": 1}, "2": {"inbytes": 0, "outbytes": 4}, "100": {"inbytes": 1, "outbytes": 0} }, "nn::nfp::detail::ISystemManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::nfp::detail::ISystem"]} }, "nn::capsrv::sf::IScreenShotService": { "201": {"inbytes": 16, "pid": True, "outbytes": 32, "buffers": [69]}, "203": {"inbytes": 80, "pid": True, "outbytes": 32, "buffers": [69]}, "202": {"inbytes": 56, "outbytes": 32, "buffers": [69, 69]}, "204": {"inbytes": 120, "outbytes": 32, "buffers": [69, 69]} }, "nn::ovln::ISenderService": { "0": {"inbytes": 24, "outbytes": 0, "outinterfaces": ["nn::ovln::ISender"]} }, "nn::audio::detail::IAudioInManagerForDebugger": { "1": {"inbytes": 8, "outbytes": 0}, "0": {"inbytes": 8, "outbytes": 0} }, "nn::audio::detail::IFinalOutputRecorderManager": { "0": {"inbytes": 16, "inhandles": [1], "outbytes": 16, "outinterfaces": ["nn::audio::detail::IFinalOutputRecorder"]} }, "nn::tma::ISocket": { "11": {"inbytes": 8, "outhandles": [1], "outbytes": 4}, "10": {"inbytes": 4, "outbytes": 72, "outinterfaces": [None]}, "13": {"inbytes": 24, "inhandles": [1], "outbytes": 4, "outhandles": [1]}, "12": {"inbytes": 4, "outbytes": 16, "buffers": [34]}, "15": {"inbytes": 16, "inhandles": [1], "outbytes": 4, "buffers": [33, 33], "outhandles": [1]}, "14": {"inbytes": 4, "outhandles": [1], "outbytes": 4, "buffers": [33]}, "16": {"inbytes": 4, "outbytes": 16}, "1": {"inbytes": 66, "outbytes": 8}, "0": {"inbytes": 0, "outbytes": 8}, "3": {"inbytes": 4, "outbytes": 8}, "2": {"inbytes": 66, "outbytes": 8}, "5": {"inbytes": 4, "outbytes": 16, "buffers": [34]}, "4": {"inbytes": 0, "outbytes": 72, "outinterfaces": [None]}, "7": {"inbytes": 4, "outbytes": 8}, "6": {"inbytes": 4, "outbytes": 16, "buffers": [33]}, "9": {"inbytes": 0, "outhandles": [1], "outbytes": 4}, "8": {"inbytes": 8, "outbytes": 8} }, "nn::ns::detail::IRequestServerStopper": {}, "nn::capsrv::sf::IScreenShotControlService": { "1201": {"inbytes": 16, "outbytes": 24}, "1203": {"inbytes": 8, "outbytes": 8, "buffers": [6]}, "1202": {"inbytes": 0, "outbytes": 0}, "1": {"inbytes": 40, "outbytes": 0, "buffers": [70]}, "1011": {"inbytes": 8, "outbytes": 0}, "2": {"inbytes": 48, "outbytes": 0, "buffers": [70]}, "1012": {"inbytes": 8, "outbytes": 0}, "1003": {"inbytes": 88, "outbytes": 0}, "1002": {"inbytes": 24, "outbytes": 0}, "1001": {"inbytes": 16, "outbytes": 0} }, "nn::news::detail::ipc::INewsDatabaseService": { "1": {"inbytes": 0, "outbytes": 4, "buffers": [9]}, "0": {"inbytes": 4, "outbytes": 4, "buffers": [6, 9, 9]}, "3": {"inbytes": 4, "outbytes": 0, "buffers": [9, 9]}, "2": {"inbytes": 1, "outbytes": 4, "buffers": [9, 9]}, "5": {"inbytes": 0, "outbytes": 0, "buffers": [9, 9, 9]}, "4": {"inbytes": 4, "outbytes": 0, "buffers": [9, 9]} }, "nn::fgm::sf::IDebugger": { "1": {"inbytes": 0, "args": "(nn::sf::OutBuffer const&,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>,nn::sf::Out<unsigned int,void>)", "outbytes": 12, "buffers": [6], "name": "Read"}, "0": {"args": "(nn::sf::Out<nn::sf::NativeHandle,void>,nn::sf::NativeHandle&&,unsigned long)", "outbytes": 0, "inbytes": 8, "inhandles": [1], "outhandles": [1], "name": "Initialize"}, "2": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "Cancel"} }, "nn::ns::detail::IVulnerabilityManagerInterface": { "1200": {"inbytes": 0, "outbytes": 1} }, "nn::arp::detail::IReader": { "1": {"inbytes": 8, "outbytes": 16}, "0": {"inbytes": 8, "outbytes": 16}, "3": {"inbytes": 8, "outbytes": 0, "buffers": [22]}, "2": {"inbytes": 8, "outbytes": 0, "buffers": [22]} }, "nn::ahid::hdr::ISession": { "1": {"inbytes": 4, "outbytes": 4, "buffers": [6, 5]}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 4, "buffers": [5]}, "2": {"inbytes": 4, "outbytes": 0, "buffers": [6]}, "4": {"inbytes": 4, "outbytes": 0} }, "nn::am::service::IHomeMenuFunctions": { "11": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "LockForeground"}, "10": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "RequestToGetForeground"}, "12": {"inbytes": 0, "args": "(void)", "outbytes": 0, "name": "UnlockForeground"}, "20": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IStorage>,void>)", "outbytes": 0, "name": "PopFromGeneralChannel", "outinterfaces": ["nn::am::service::IStorage"]}, "21": {"inbytes": 0, "outhandles": [1], "outbytes": 0, "args": "(nn::sf::Out<nn::sf::NativeHandle,void>)", "name": "GetPopFromGeneralChannelEvent"}, "31": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>,int)", "outbytes": 0, "name": "GetWriterLockAccessorEx", "outinterfaces": ["nn::am::service::ILockAccessor"]}, "30": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::ILockAccessor>,void>)", "outbytes": 0, "name": "GetHomeButtonWriterLockAccessor", "outinterfaces": ["nn::am::service::ILockAccessor"]} }, "nn::nifm::detail::IStaticService": { "5": {"outbytes": 0, "inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IGeneralService>,void>,unsigned long)", "pid": True, "outinterfaces": ["nn::nifm::detail::IGeneralService"], "name": "CreateGeneralService"}, "4": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::nifm::detail::IGeneralService>,void>)", "outbytes": 0, "name": "CreateGeneralServiceOld", "outinterfaces": ["nn::nifm::detail::IGeneralService"]} }, "nn::pl::detail::ISharedFontManager": { "1": {"inbytes": 4, "outbytes": 4}, "0": {"inbytes": 4, "outbytes": 0}, "3": {"inbytes": 4, "outbytes": 4}, "2": {"inbytes": 4, "outbytes": 4}, "5": {"inbytes": 8, "outbytes": 8, "buffers": [6, 6, 6]}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0} }, "nn::apm::IManager": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::apm::PerformanceMode,void>)", "outbytes": 4, "name": "GetPerformanceMode"}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::apm::ISession>,void>)", "outbytes": 0, "name": "OpenSession", "outinterfaces": ["nn::apm::ISession"]} }, "nn::psm::IPsmServer": { "11": {"inbytes": 0, "outbytes": 0}, "10": {"inbytes": 0, "outbytes": 0}, "13": {"inbytes": 0, "outbytes": 8}, "12": {"inbytes": 0, "outbytes": 4}, "15": {"inbytes": 0, "outbytes": 8}, "14": {"inbytes": 0, "outbytes": 1}, "17": {"inbytes": 0, "outbytes": 64}, "16": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "18": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 4}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 1}, "7": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::psm::IPsmSession"]}, "6": {"inbytes": 0, "outbytes": 0}, "9": {"inbytes": 0, "outbytes": 0}, "8": {"inbytes": 0, "outbytes": 0} }, "nn::audio::detail::IFinalOutputRecorder": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 8, "outbytes": 0, "buffers": [5]}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 16, "buffers": [6]}, "4": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "7": {"inbytes": 8, "outbytes": 8}, "6": {"inbytes": 8, "outbytes": 1}, "9": {"inbytes": 0, "outbytes": 16, "buffers": [34]}, "8": {"inbytes": 8, "outbytes": 0, "buffers": [33]} }, "nn::bcat::detail::ipc::IDeliveryCacheStorageService": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheDirectoryService>,void>)", "outbytes": 0, "name": "CreateDirectoryService", "outinterfaces": ["nn::bcat::detail::ipc::IDeliveryCacheDirectoryService"]}, "0": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheFileService>,void>)", "outbytes": 0, "name": "CreateFileService", "outinterfaces": ["nn::bcat::detail::ipc::IDeliveryCacheFileService"]}, "10": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::DirectoryName> const&)", "outbytes": 4, "buffers": [6], "name": "EnumerateDeliveryCacheDirectory"} }, "nn::fssrv::sf::IFileSystemProxy": { "605": {"inbytes": 0, "outbytes": 0}, "604": {"inbytes": 8, "outbytes": 0}, "607": {"inbytes": 32, "outbytes": 0}, "620": {"inbytes": 16, "outbytes": 0}, "601": {"inbytes": 16, "outbytes": 8}, "600": {"inbytes": 8, "outbytes": 0}, "603": {"inbytes": 8, "outbytes": 0}, "602": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "609": {"inbytes": 0, "outbytes": 16, "buffers": [25]}, "608": {"inbytes": 0, "outbytes": 0}, "60": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::ISaveDataInfoReader"]}, "61": {"inbytes": 1, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::ISaveDataInfoReader"]}, "606": {"inbytes": 16, "outbytes": 16}, "110": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "80": {"inbytes": 72, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFile"]}, "800": {"inbytes": 0, "outbytes": 128}, "24": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "25": {"inbytes": 16, "outbytes": 0}, "26": {"inbytes": 0, "outbytes": 0}, "27": {"inbytes": 0, "outbytes": 1}, "21": {"inbytes": 8, "outbytes": 0}, "22": {"inbytes": 144, "outbytes": 0}, "23": {"inbytes": 128, "outbytes": 0}, "1": {"inbytes": 8, "pid": True, "outbytes": 0}, "2": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "7": {"inbytes": 16, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "400": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IDeviceOperator"]}, "9": {"inbytes": 8, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "8": {"inbytes": 16, "outbytes": 0, "buffers": [25], "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "500": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IEventNotifier"]}, "501": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IEventNotifier"]}, "201": {"inbytes": 8, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IStorage"]}, "200": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IStorage"]}, "203": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IStorage"]}, "202": {"inbytes": 16, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IStorage"]}, "610": {"inbytes": 0, "outbytes": 24, "buffers": [25]}, "57": {"inbytes": 16, "outbytes": 0, "buffers": [6]}, "100": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "11": {"inbytes": 4, "outbytes": 0, "buffers": [25], "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "13": {"inbytes": 0, "outbytes": 0}, "12": {"inbytes": 4, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IStorage"]}, "59": {"inbytes": 16, "outbytes": 0, "buffers": [5]}, "58": {"inbytes": 8, "outbytes": 0, "buffers": [6]}, "17": {"inbytes": 0, "outbytes": 0, "buffers": [25], "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "19": {"inbytes": 0, "outbytes": 0}, "18": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "31": {"inbytes": 8, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "30": {"inbytes": 8, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IStorage"]}, "51": {"inbytes": 72, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "53": {"inbytes": 72, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "52": {"inbytes": 72, "outbytes": 0, "outinterfaces": ["nn::fssrv::sf::IFileSystem"]}, "32": {"inbytes": 32, "outbytes": 0}, "1006": {"inbytes": 0, "outbytes": 0, "buffers": [5]}, "1005": {"inbytes": 0, "outbytes": 4}, "1004": {"inbytes": 4, "outbytes": 0}, "1003": {"inbytes": 0, "outbytes": 0}, "1002": {"inbytes": 0, "outbytes": 0, "buffers": [25]}, "1001": {"inbytes": 16, "outbytes": 0}, "1000": {"inbytes": 4, "outbytes": 0, "buffers": [25]} }, "nn::bcat::detail::ipc::IDeliveryCacheDirectoryService": { "1": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::DeliveryCacheDirectoryEntry> const&)", "outbytes": 4, "buffers": [6], "name": "Read"}, "0": {"inbytes": 32, "args": "(nn::bcat::DirectoryName const&)", "outbytes": 0, "name": "Open"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<int,void>)", "outbytes": 4, "name": "GetCount"} }, "nn::nfc::mifare::detail::IUserManager": { "0": {"inbytes": 0, "outbytes": 0, "outinterfaces": ["nn::nfc::mifare::detail::IUser"]} }, "nn::spl::detail::IRandomInterface": { "0": {"inbytes": 0, "outbytes": 0, "buffers": [6]} }, "nn::capsrv::sf::IAlbumControlService": { "2201": {"inbytes": 24, "outbytes": 0, "buffers": [69]}, "2301": {"inbytes": 24, "outbytes": 0, "buffers": [69]}, "2002": {"inbytes": 1, "outbytes": 0}, "2001": {"inbytes": 1, "outbytes": 0}, "2014": {"inbytes": 8, "outbytes": 0}, "2102": {"inbytes": 40, "outbytes": 32}, "2101": {"inbytes": 16, "outbytes": 24}, "2011": {"inbytes": 16, "outbytes": 0}, "2013": {"inbytes": 8, "outbytes": 8}, "2012": {"inbytes": 16, "outbytes": 0} }, "nn::am::service::IApplicationCreator": { "1": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>)", "outbytes": 0, "name": "PopLaunchRequestedApplication", "outinterfaces": ["nn::am::service::IApplicationAccessor"]}, "0": {"inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>,nn::ncm::ApplicationId)", "outbytes": 0, "name": "CreateApplication", "outinterfaces": ["nn::am::service::IApplicationAccessor"]}, "100": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>)", "outbytes": 0, "name": "PopFloatingApplicationForDevelopment", "outinterfaces": ["nn::am::service::IApplicationAccessor"]}, "10": {"inbytes": 8, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::am::service::IApplicationAccessor>,void>,nn::ncm::SystemApplicationId)", "outbytes": 0, "name": "CreateSystemApplication", "outinterfaces": ["nn::am::service::IApplicationAccessor"]} }, "nn::btm::IBtmSystemCore": { "1": {"inbytes": 0, "outbytes": 0}, "0": {"inbytes": 0, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 1}, "2": {"inbytes": 0, "outbytes": 0}, "5": {"inbytes": 0, "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 0}, "7": {"inbytes": 0, "outhandles": [1], "outbytes": 1}, "6": {"inbytes": 0, "outbytes": 1}, "9": {"inbytes": 0, "outbytes": 1}, "8": {"inbytes": 0, "outhandles": [1], "outbytes": 1} }, "nn::visrv::sf::IApplicationRootService": { "0": {"inbytes": 4, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::visrv::sf::IApplicationDisplayService>,void>,unsigned int)", "outbytes": 0, "name": "GetDisplayService", "outinterfaces": ["nn::visrv::sf::IApplicationDisplayService"]} }, "nn::ssl::sf::ISslContext": { "11": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "RemoveCrl"}, "10": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::InBuffer const&)", "outbytes": 8, "buffers": [5], "name": "ImportCrl"}, "1": {"inbytes": 4, "args": "(nn::sf::Out<int,void>,nn::ssl::sf::ContextOption)", "outbytes": 4, "name": "GetOption"}, "0": {"inbytes": 8, "args": "(nn::ssl::sf::ContextOption,int)", "outbytes": 0, "name": "SetOption"}, "3": {"inbytes": 0, "args": "(nn::sf::Out<unsigned int,void>)", "outbytes": 4, "name": "GetConnectionCount"}, "2": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::ssl::sf::ISslConnection>,void>)", "outbytes": 0, "name": "CreateConnection", "outinterfaces": ["nn::ssl::sf::ISslConnection"]}, "5": {"inbytes": 0, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::InBuffer const&,nn::sf::InBuffer const&)", "outbytes": 8, "buffers": [5, 5], "name": "ImportClientPki"}, "4": {"inbytes": 4, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::InBuffer const&,nn::ssl::sf::CertificateFormat)", "outbytes": 8, "buffers": [5], "name": "ImportServerPki"}, "7": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "RemoveClientPki"}, "6": {"inbytes": 8, "args": "(unsigned long)", "outbytes": 0, "name": "RemoveServerPki"}, "9": {"inbytes": 0, "args": "(nn::sf::InBuffer const&)", "outbytes": 0, "buffers": [5], "name": "AddPolicyOid"}, "8": {"inbytes": 4, "args": "(nn::sf::Out<unsigned long,void>,nn::ssl::sf::InternalPki)", "outbytes": 8, "name": "RegisterInternalPki"} }, "nn::bcat::detail::ipc::IBcatService": { "90100": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::TaskInfo> const&)", "outbytes": 4, "buffers": [6], "name": "EnumerateBackgroundDeliveryTask"}, "30203": {"inbytes": 8, "args": "(nn::ApplicationId)", "outbytes": 0, "name": "UnblockDeliveryTask"}, "90200": {"inbytes": 8, "args": "(nn::sf::Out<unsigned long,void>,nn::sf::OutBuffer const&,nn::ApplicationId)", "outbytes": 8, "buffers": [6], "name": "GetDeliveryList"}, "30200": {"inbytes": 16, "args": "(nn::ApplicationId,unsigned int)", "outbytes": 0, "name": "RegisterBackgroundDeliveryTask"}, "30201": {"inbytes": 8, "args": "(nn::ApplicationId)", "outbytes": 0, "name": "UnregisterBackgroundDeliveryTask"}, "30202": {"inbytes": 8, "args": "(nn::ApplicationId)", "outbytes": 0, "name": "BlockDeliveryTask"}, "90300": {"inbytes": 0, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<nn::bcat::PushNotificationLog> const&)", "outbytes": 4, "buffers": [6], "name": "GetPushNotificationLog"}, "90201": {"inbytes": 8, "args": "(nn::ApplicationId)", "outbytes": 0, "name": "ClearDeliveryCacheStorage"}, "10100": {"inbytes": 0, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheProgressService>,void>)", "outbytes": 0, "name": "RequestSyncDeliveryCache", "outinterfaces": ["nn::bcat::detail::ipc::IDeliveryCacheProgressService"]}, "20100": {"inbytes": 16, "args": "(nn::sf::Out<nn::sf::SharedPointer<nn::bcat::detail::ipc::IDeliveryCacheProgressService>,void>,nn::ApplicationId,unsigned int)", "outbytes": 0, "name": "RequestSyncDeliveryCacheWithApplicationId", "outinterfaces": ["nn::bcat::detail::ipc::IDeliveryCacheProgressService"]}, "30100": {"inbytes": 8, "args": "(nn::ApplicationId,nn::sf::InArray<char> const&)", "outbytes": 0, "buffers": [9], "name": "SetPassphrase"} }, "nn::aocsrv::detail::IAddOnContentManager": { "1": {"inbytes": 16, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<int> const&,int,int,nn::ncm::ApplicationId)", "outbytes": 4, "buffers": [6], "name": "ListAddOnContentByApplicationId"}, "0": {"inbytes": 8, "args": "(nn::sf::Out<int,void>,nn::ncm::ApplicationId)", "outbytes": 4, "name": "CountAddOnContentByApplicationId"}, "3": {"outbytes": 4, "inbytes": 16, "args": "(nn::sf::Out<int,void>,nn::sf::OutArray<int> const&,unsigned long,int,int)", "pid": True, "buffers": [6], "name": "ListAddOnContent"}, "2": {"inbytes": 8, "args": "(nn::sf::Out<int,void>,unsigned long)", "pid": True, "outbytes": 4, "name": "CountAddOnContent"}, "5": {"inbytes": 8, "args": "(nn::sf::Out<unsigned long,void>,unsigned long)", "pid": True, "outbytes": 8, "name": "GetAddOnContentBaseId"}, "4": {"inbytes": 8, "args": "(nn::sf::Out<unsigned long,void>,nn::ncm::ApplicationId)", "outbytes": 8, "name": "GetAddOnContentBaseIdByApplicationId"}, "7": {"inbytes": 16, "args": "(int,unsigned long)", "pid": True, "outbytes": 0, "name": "PrepareAddOnContent"}, "6": {"inbytes": 16, "args": "(int,nn::ncm::ApplicationId)", "outbytes": 0, "name": "PrepareAddOnContentByApplicationId"} }, "nn::ldn::detail::IUserLocalCommunicationService": { "400": {"inbytes": 8, "pid": True, "outbytes": 0}, "1": {"inbytes": 0, "outbytes": 0, "buffers": [26]}, "0": {"inbytes": 0, "outbytes": 4}, "3": {"inbytes": 0, "outbytes": 2}, "2": {"inbytes": 0, "outbytes": 8}, "5": {"inbytes": 0, "outbytes": 32}, "4": {"inbytes": 0, "outbytes": 32}, "401": {"inbytes": 0, "outbytes": 0}, "301": {"inbytes": 0, "outbytes": 0}, "201": {"inbytes": 0, "outbytes": 0}, "200": {"inbytes": 0, "outbytes": 0}, "203": {"inbytes": 184, "outbytes": 0, "buffers": [9]}, "202": {"inbytes": 152, "outbytes": 0}, "205": {"inbytes": 4, "outbytes": 0}, "204": {"inbytes": 0, "outbytes": 0}, "207": {"inbytes": 1, "outbytes": 0}, "206": {"inbytes": 0, "outbytes": 0, "buffers": [33]}, "300": {"inbytes": 0, "outbytes": 0}, "208": {"inbytes": 6, "outbytes": 0}, "302": {"inbytes": 124, "outbytes": 0, "buffers": [25]}, "303": {"inbytes": 192, "outbytes": 0}, "304": {"inbytes": 0, "outbytes": 0}, "209": {"inbytes": 0, "outbytes": 0}, "102": {"inbytes": 104, "outbytes": 2, "buffers": [34]}, "103": {"inbytes": 104, "outbytes": 2, "buffers": [34]}, "100": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "101": {"inbytes": 0, "outbytes": 0, "buffers": [26, 10]} }, "nn::ovln::IReceiver": { "1": {"inbytes": 16, "outbytes": 0}, "0": {"inbytes": 16, "outbytes": 0}, "3": {"inbytes": 0, "outbytes": 128}, "2": {"inbytes": 0, "outhandles": [1], "outbytes": 0}, "4": {"inbytes": 0, "outbytes": 136} }, "nn::ro::detail::IDebugMonitorInterface": { "0": {"inbytes": 8, "outbytes": 4, "buffers": [6]} } } clientInfo = ( ('nn::account::IAccountServiceForAdministrator', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::account::IAccountServiceForAdministrator', 1, '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 2, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::IAccountServiceForAdministrator', 3, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::IAccountServiceForAdministrator', 4, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 5, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 6, '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 50, '8 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::account::IAccountServiceForAdministrator', 51, '1 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<1,1,0>'), ('nn::account::IAccountServiceForAdministrator', 100, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForAdministrator', 101, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForAdministrator', 102, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 103, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForAdministrator', 104, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForAdministrator', 110, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,5,0>'), ('nn::account::IAccountServiceForAdministrator', 111, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::account::IAccountServiceForAdministrator', 112, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::account::IAccountServiceForAdministrator', 190, '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,8>, OutRaw<4,4,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 200, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 201, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 202, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 203, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 204, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::account::IAccountServiceForAdministrator', 205, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 206, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 210, '4 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<4,4,0>'), ('nn::account::IAccountServiceForAdministrator', 230, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForAdministrator', 250, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 290, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>'), ('nn::account::IAccountServiceForAdministrator', 291, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>'), ('nn::account::IAccountServiceForAdministrator', 299, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForAdministrator', 997, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 998, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForAdministrator', 999, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForApplication', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::account::IAccountServiceForApplication', 1, '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForApplication', 2, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::IAccountServiceForApplication', 3, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::IAccountServiceForApplication', 4, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::account::IAccountServiceForApplication', 5, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForApplication', 6, '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForApplication', 50, '8 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::account::IAccountServiceForApplication', 51, '1 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<1,1,0>'), ('nn::account::IAccountServiceForApplication', 100, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::account::IAccountServiceForApplication', 101, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForApplication', 102, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForApplication', 110, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>, Buffer<0,5,0>'), ('nn::account::IAccountServiceForApplication', 111, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForApplication', 120, '4 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<4,4,0>'), ('nn::account::IAccountServiceForSystemService', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::account::IAccountServiceForSystemService', 1, '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 2, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::IAccountServiceForSystemService', 3, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::IAccountServiceForSystemService', 4, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 5, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 6, '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 50, '8 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::account::IAccountServiceForSystemService', 51, '1 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<1,1,0>'), ('nn::account::IAccountServiceForSystemService', 100, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForSystemService', 101, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForSystemService', 102, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 103, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForSystemService', 104, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::IAccountServiceForSystemService', 110, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,5,0>'), ('nn::account::IAccountServiceForSystemService', 111, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::account::IAccountServiceForSystemService', 112, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::account::IAccountServiceForSystemService', 190, '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,8>, OutRaw<4,4,0>, InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 997, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 998, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IAccountServiceForSystemService', 999, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::account::IBaasAccessTokenAccessor', 0, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::IBaasAccessTokenAccessor', 1, '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,0>'), ('nn::account::IBaasAccessTokenAccessor', 2, '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x10,8,0>'), ('nn::account::IBaasAccessTokenAccessor', 50, '0x38 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0x28>, InRaw<0x28,1,0>'), ('nn::account::IBaasAccessTokenAccessor', 51, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::baas::IAdministrator', 0, '0 bytes in - 0 bytes out'), ('nn::account::baas::IAdministrator', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IAdministrator', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::baas::IAdministrator', 100, '8 bytes in - 0 bytes out - takes pid - Buffer<0,0x19,0x10>, InRaw<8,8,0>'), ('nn::account::baas::IAdministrator', 120, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IAdministrator', 130, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x1A,0x24F>, Buffer<1,6,0>'), ('nn::account::baas::IAdministrator', 131, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 132, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, OutObject<0,0>, InRaw<4,4,0>'), ('nn::account::baas::IAdministrator', 150, '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x108>, Buffer<1,0x19,0x200>, InHandle<0,1>, InRaw<4,4,0>'), ('nn::account::baas::IAdministrator', 200, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::account::baas::IAdministrator', 201, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 202, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 203, '0 bytes in - 0 bytes out'), ('nn::account::baas::IAdministrator', 220, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 221, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 222, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, OutObject<0,0>, InRaw<4,4,0>'), ('nn::account::baas::IAdministrator', 250, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::account::baas::IAdministrator', 251, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 252, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>'), ('nn::account::baas::IAdministrator', 255, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 256, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>'), ('nn::account::baas::IAdministrator', 260, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 261, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>'), ('nn::account::baas::IAdministrator', 280, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,4,0>'), ('nn::account::baas::IAdministrator', 997, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IAdministrator', 998, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 0, '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 12, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 13, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 14, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 15, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 100, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, OutObject<0,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 101, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 110, '8 bytes in - 0 bytes out - takes pid - Buffer<0,0x19,0x10>, InRaw<8,8,0>'), ('nn::account::baas::IFloatingRegistrationRequest', 111, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IGuestLoginRequest', 0, '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>'), ('nn::account::baas::IGuestLoginRequest', 12, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IGuestLoginRequest', 13, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IGuestLoginRequest', 14, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::baas::IGuestLoginRequest', 15, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::baas::IGuestLoginRequest', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::baas::IManagerForApplication', 0, '0 bytes in - 0 bytes out'), ('nn::account::baas::IManagerForApplication', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IManagerForApplication', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IManagerForApplication', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::baas::IManagerForApplication', 130, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x1A,0x68>, Buffer<1,6,0>'), ('nn::account::baas::IManagerForApplication', 150, '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x200>, InHandle<0,1>, InRaw<4,4,0>'), ('nn::account::baas::IManagerForSystemService', 0, '0 bytes in - 0 bytes out'), ('nn::account::baas::IManagerForSystemService', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IManagerForSystemService', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IManagerForSystemService', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::baas::IManagerForSystemService', 100, '8 bytes in - 0 bytes out - takes pid - Buffer<0,0x19,0x10>, InRaw<8,8,0>'), ('nn::account::baas::IManagerForSystemService', 120, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::baas::IManagerForSystemService', 130, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x1A,0x24F>, Buffer<1,6,0>'), ('nn::account::baas::IManagerForSystemService', 131, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::baas::IManagerForSystemService', 132, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, OutObject<0,0>, InRaw<4,4,0>'), ('nn::account::baas::IManagerForSystemService', 150, '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x108>, Buffer<1,0x19,0x200>, InHandle<0,1>, InRaw<4,4,0>'), ('nn::account::detail::IAsyncContext', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::account::detail::IAsyncContext', 1, '0 bytes in - 0 bytes out'), ('nn::account::detail::IAsyncContext', 2, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::account::detail::IAsyncContext', 3, '0 bytes in - 0 bytes out'), ('nn::account::detail::INotifier', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::account::detail::ISessionObject', 999, '0 bytes in - 0 bytes out'), ('nn::account::http::IOAuthProcedure', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::http::IOAuthProcedure', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>'), ('nn::account::http::IOAuthProcedure', 2, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::account::http::IOAuthProcedure', 3, '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,9,0>'), ('nn::account::http::IOAuthProcedure', 10, '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>'), ('nn::account::nas::IAuthorizationRequest', 0, '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>'), ('nn::account::nas::IAuthorizationRequest', 10, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::nas::IAuthorizationRequest', 19, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::account::nas::IAuthorizationRequest', 20, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::nas::IAuthorizationRequest', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::nas::IAuthorizationRequest', 22, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x80>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 2, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 3, '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,9,0>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 10, '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 100, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 101, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 102, '0 bytes in - 0 bytes out - Buffer<0,0xA,0>'), ('nn::account::nas::IOAuthProcedureForExternalNsa', 103, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 2, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 3, '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,9,0>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 10, '0 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 100, '4 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>, Buffer<1,0x1A,0x100>, InRaw<4,4,0>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 101, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::account::nas::IOAuthProcedureForNintendoAccountLinkage', 199, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x1000>'), ('nn::account::profile::IProfile', 0, '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>, Buffer<0,0x1A,0x80>'), ('nn::account::profile::IProfile', 1, '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>'), ('nn::account::profile::IProfile', 10, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::account::profile::IProfile', 11, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::profile::IProfileEditor', 0, '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>, Buffer<0,0x1A,0x80>'), ('nn::account::profile::IProfileEditor', 1, '0 bytes in - 0x38 bytes out - OutRaw<0x38,8,0>'), ('nn::account::profile::IProfileEditor', 10, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::account::profile::IProfileEditor', 11, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::account::profile::IProfileEditor', 100, '0x38 bytes in - 0 bytes out - InRaw<0x38,8,0>, Buffer<0,0x19,0x80>'), ('nn::account::profile::IProfileEditor', 101, '0x38 bytes in - 0 bytes out - InRaw<0x38,8,0>, Buffer<0,0x19,0x80>, Buffer<1,5,0>'), ('nn::am::service::IAllSystemAppletProxiesService', 100, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>'), ('nn::am::service::IAllSystemAppletProxiesService', 200, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>'), ('nn::am::service::IAllSystemAppletProxiesService', 201, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>, Buffer<0,0x15,0x80>'), ('nn::am::service::IAllSystemAppletProxiesService', 300, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>'), ('nn::am::service::IAllSystemAppletProxiesService', 350, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>'), ('nn::am::service::IAllSystemAppletProxiesService', 400, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::am::service::IAppletAccessor', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IAppletAccessor', 1, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::IAppletAccessor', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::IAppletAccessor', 20, '0 bytes in - 0 bytes out'), ('nn::am::service::IAppletAccessor', 25, '0 bytes in - 0 bytes out'), ('nn::am::service::IAppletAccessor', 30, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationAccessor', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IApplicationAccessor', 1, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::IApplicationAccessor', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationAccessor', 20, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationAccessor', 25, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationAccessor', 30, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationAccessor', 101, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationAccessor', 110, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationAccessor', 111, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::IApplicationAccessor', 112, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationAccessor', 120, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::am::service::IApplicationAccessor', 121, '4 bytes in - 0 bytes out - InRaw<4,4,0>, InObject<0,0>'), ('nn::am::service::IApplicationAccessor', 122, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::am::service::IApplicationAccessor', 123, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::am::service::IApplicationCreator', 0, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>'), ('nn::am::service::IApplicationCreator', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationCreator', 10, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>'), ('nn::am::service::IApplicationCreator', 100, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationFunctions', 1, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::am::service::IApplicationFunctions', 10, '8 bytes in - 0 bytes out - InRaw<8,8,0>, InObject<0,0>'), ('nn::am::service::IApplicationFunctions', 11, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::am::service::IApplicationFunctions', 20, '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x10,8,0>'), ('nn::am::service::IApplicationFunctions', 21, '0 bytes in - 8 bytes out - OutRaw<8,1,0>'), ('nn::am::service::IApplicationFunctions', 22, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::IApplicationFunctions', 23, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::am::service::IApplicationFunctions', 24, '0 bytes in - 2 bytes out - OutRaw<1,1,0>, OutRaw<1,1,1>'), ('nn::am::service::IApplicationFunctions', 25, '0x28 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<1,1,0>, InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<8,8,0x20>'), ('nn::am::service::IApplicationFunctions', 26, '0x18 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<1,1,0>, InRaw<0x10,8,8>'), ('nn::am::service::IApplicationFunctions', 30, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::am::service::IApplicationFunctions', 31, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationFunctions', 32, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::am::service::IApplicationFunctions', 33, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationFunctions', 40, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::IApplicationFunctions', 50, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::am::service::IApplicationFunctions', 60, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::IApplicationFunctions', 65, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::IApplicationFunctions', 66, '8 bytes in - 0 bytes out - InHandle<0,1>, InRaw<8,8,0>'), ('nn::am::service::IApplicationFunctions', 67, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::IApplicationFunctions', 70, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationFunctions', 71, '0 bytes in - 0 bytes out'), ('nn::am::service::IApplicationProxy', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 3, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 4, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 10, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 11, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 20, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxy', 1000, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IApplicationProxyService', 0, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>, InHandle<0,1>'), ('nn::am::service::IAudioController', 0, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::am::service::IAudioController', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::am::service::IAudioController', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::am::service::IAudioController', 3, '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::am::service::IAudioController', 4, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::ICommonStateGetter', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ICommonStateGetter', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::am::service::ICommonStateGetter', 2, '0 bytes in - 8 bytes out - OutRaw<8,4,0>'), ('nn::am::service::ICommonStateGetter', 3, '0 bytes in - 0 bytes out'), ('nn::am::service::ICommonStateGetter', 4, '0 bytes in - 0 bytes out'), ('nn::am::service::ICommonStateGetter', 5, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ICommonStateGetter', 6, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::am::service::ICommonStateGetter', 7, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ICommonStateGetter', 8, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ICommonStateGetter', 9, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ICommonStateGetter', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::ICommonStateGetter', 11, '0 bytes in - 0 bytes out'), ('nn::am::service::ICommonStateGetter', 12, '0 bytes in - 0 bytes out'), ('nn::am::service::ICommonStateGetter', 13, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ICommonStateGetter', 20, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ICommonStateGetter', 30, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ICommonStateGetter', 31, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::am::service::ICommonStateGetter', 40, '0 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>, OutRaw<4,4,0xC>'), ('nn::am::service::ICommonStateGetter', 50, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ICommonStateGetter', 51, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ICommonStateGetter', 55, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ICommonStateGetter', 60, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::am::service::ICommonStateGetter', 61, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IDebugFunctions', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::IDebugFunctions', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IDebugFunctions', 10, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::IDebugFunctions', 20, '0 bytes in - 0 bytes out'), ('nn::am::service::IDisplayController', 0, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::am::service::IDisplayController', 1, '0 bytes in - 0 bytes out'), ('nn::am::service::IDisplayController', 2, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::am::service::IDisplayController', 3, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::am::service::IDisplayController', 4, '0 bytes in - 0 bytes out'), ('nn::am::service::IDisplayController', 5, '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,6,0>'), ('nn::am::service::IDisplayController', 6, '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,6,0>'), ('nn::am::service::IDisplayController', 7, '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,6,0>'), ('nn::am::service::IDisplayController', 8, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::am::service::IDisplayController', 10, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IDisplayController', 11, '0 bytes in - 0 bytes out'), ('nn::am::service::IDisplayController', 12, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IDisplayController', 13, '0 bytes in - 0 bytes out'), ('nn::am::service::IDisplayController', 14, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IDisplayController', 15, '0 bytes in - 0 bytes out'), ('nn::am::service::IDisplayController', 16, '0 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>'), ('nn::am::service::IDisplayController', 17, '0 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>'), ('nn::am::service::IDisplayController', 18, '0 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>'), ('nn::am::service::IDisplayController', 20, '0xC bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>, InRaw<4,4,8>'), ('nn::am::service::IDisplayController', 21, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::IGlobalStateController', 0, '0 bytes in - 0 bytes out'), ('nn::am::service::IGlobalStateController', 1, '0 bytes in - 0 bytes out'), ('nn::am::service::IGlobalStateController', 2, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::IGlobalStateController', 3, '0 bytes in - 0 bytes out'), ('nn::am::service::IGlobalStateController', 4, '0 bytes in - 0 bytes out'), ('nn::am::service::IGlobalStateController', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::IGlobalStateController', 11, '0 bytes in - 0 bytes out'), ('nn::am::service::IGlobalStateController', 12, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::am::service::IGlobalStateController', 13, '0 bytes in - 0 bytes out'), ('nn::am::service::IGlobalStateController', 14, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::IHomeMenuFunctions', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::IHomeMenuFunctions', 11, '0 bytes in - 0 bytes out'), ('nn::am::service::IHomeMenuFunctions', 12, '0 bytes in - 0 bytes out'), ('nn::am::service::IHomeMenuFunctions', 20, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IHomeMenuFunctions', 21, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IHomeMenuFunctions', 30, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IHomeMenuFunctions', 31, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::am::service::ILibraryAppletAccessor', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ILibraryAppletAccessor', 1, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ILibraryAppletAccessor', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::ILibraryAppletAccessor', 20, '0 bytes in - 0 bytes out'), ('nn::am::service::ILibraryAppletAccessor', 25, '0 bytes in - 0 bytes out'), ('nn::am::service::ILibraryAppletAccessor', 30, '0 bytes in - 0 bytes out'), ('nn::am::service::ILibraryAppletAccessor', 50, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ILibraryAppletAccessor', 100, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ILibraryAppletAccessor', 101, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletAccessor', 102, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ILibraryAppletAccessor', 103, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ILibraryAppletAccessor', 104, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletAccessor', 105, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ILibraryAppletAccessor', 106, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ILibraryAppletAccessor', 110, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ILibraryAppletAccessor', 120, '0 bytes in - 8 bytes out - OutRaw<8,4,0>'), ('nn::am::service::ILibraryAppletAccessor', 150, '0 bytes in - 0 bytes out'), ('nn::am::service::ILibraryAppletAccessor', 160, '8 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::am::service::ILibraryAppletCreator', 0, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::am::service::ILibraryAppletCreator', 1, '0 bytes in - 0 bytes out'), ('nn::am::service::ILibraryAppletCreator', 2, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ILibraryAppletCreator', 10, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>'), ('nn::am::service::ILibraryAppletCreator', 11, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::am::service::ILibraryAppletCreator', 12, '8 bytes in - 0 bytes out - OutObject<0,0>, InHandle<0,1>, InRaw<8,8,0>'), ('nn::am::service::ILibraryAppletProxy', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 3, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 4, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 10, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 11, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 20, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletProxy', 1000, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 1, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 3, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 5, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ILibraryAppletSelfAccessor', 6, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ILibraryAppletSelfAccessor', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::ILibraryAppletSelfAccessor', 11, '0 bytes in - 8 bytes out - OutRaw<8,4,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 12, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 13, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 14, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 15, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x4000>'), ('nn::am::service::ILibraryAppletSelfAccessor', 16, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 17, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 20, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 25, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ILibraryAppletSelfAccessor', 30, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 31, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 40, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::am::service::ILibraryAppletSelfAccessor', 50, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::am::service::ILockAccessor', 1, '1 bytes in - 1 bytes out - OutRaw<1,1,0>, OutHandle<0,1>, InRaw<1,1,0>'), ('nn::am::service::ILockAccessor', 2, '0 bytes in - 0 bytes out'), ('nn::am::service::ILockAccessor', 3, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::IOverlayAppletProxy', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 3, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 4, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 10, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 11, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 20, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayAppletProxy', 1000, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IOverlayFunctions', 0, '0 bytes in - 0 bytes out'), ('nn::am::service::IOverlayFunctions', 1, '0 bytes in - 0 bytes out'), ('nn::am::service::IOverlayFunctions', 2, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::am::service::IOverlayFunctions', 3, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::am::service::IOverlayFunctions', 4, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::IOverlayFunctions', 5, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::IOverlayFunctions', 6, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::IProcessWindingController', 0, '0 bytes in - 4 bytes out - OutRaw<4,1,0>'), ('nn::am::service::IProcessWindingController', 11, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IProcessWindingController', 21, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::IProcessWindingController', 22, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::IProcessWindingController', 23, '0 bytes in - 0 bytes out'), ('nn::am::service::IProcessWindingController', 30, '0 bytes in - 0 bytes out'), ('nn::am::service::IProcessWindingController', 40, '0 bytes in - 0 bytes out - InObject<0,0>'), ('nn::am::service::ISelfController', 0, '0 bytes in - 0 bytes out'), ('nn::am::service::ISelfController', 1, '0 bytes in - 0 bytes out'), ('nn::am::service::ISelfController', 2, '0 bytes in - 0 bytes out'), ('nn::am::service::ISelfController', 3, '0 bytes in - 0 bytes out'), ('nn::am::service::ISelfController', 4, '0 bytes in - 0 bytes out'), ('nn::am::service::ISelfController', 9, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::am::service::ISelfController', 10, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::ISelfController', 11, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 12, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 13, '3 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<1,1,1>, InRaw<1,1,2>'), ('nn::am::service::ISelfController', 14, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 15, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::am::service::ISelfController', 16, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 17, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 18, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 19, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::ISelfController', 40, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::am::service::ISelfController', 50, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 51, '0 bytes in - 0 bytes out'), ('nn::am::service::ISelfController', 60, '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<4,4,0xC>'), ('nn::am::service::ISelfController', 61, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::am::service::ISelfController', 62, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::ISelfController', 63, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::am::service::ISelfController', 64, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::am::service::ISelfController', 65, '0 bytes in - 0 bytes out'), ('nn::am::service::ISelfController', 66, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::am::service::ISelfController', 67, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::am::service::IStorageAccessor', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::am::service::IStorageAccessor', 10, '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x21,0>'), ('nn::am::service::IStorageAccessor', 11, '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x22,0>'), ('nn::am::service::ISystemAppletProxy', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 3, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 4, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 10, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 11, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 20, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 21, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 22, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ISystemAppletProxy', 1000, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::am::service::ITransferStorageAccessor', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::am::service::ITransferStorageAccessor', 1, '0 bytes in - 8 bytes out - OutHandle<0,1>, OutRaw<8,8,0>'), ('nn::am::service::IWindowController', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::am::service::IWindowController', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::am::service::IWindowController', 10, '0 bytes in - 0 bytes out'), ('nn::am::service::IWindowController', 11, '0 bytes in - 0 bytes out'), ('nn::am::service::IWindowController', 12, '0 bytes in - 0 bytes out'), ('nn::aocsrv::detail::IAddOnContentManager', 0, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::aocsrv::detail::IAddOnContentManager', 1, '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<8,8,8>'), ('nn::aocsrv::detail::IAddOnContentManager', 2, '8 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::aocsrv::detail::IAddOnContentManager', 3, '0x10 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::aocsrv::detail::IAddOnContentManager', 4, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::aocsrv::detail::IAddOnContentManager', 5, '8 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::aocsrv::detail::IAddOnContentManager', 6, '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::aocsrv::detail::IAddOnContentManager', 7, '0x10 bytes in - 0 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::apm::IManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::apm::IManager', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::apm::IManagerPrivileged', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::apm::ISession', 0, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::apm::ISession', 1, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::apm::ISystemManager', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::apm::ISystemManager', 1, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::apm::ISystemManager', 2, '0 bytes in - 0x28 bytes out - OutRaw<0x28,8,0>'), ('nn::apm::ISystemManager', 3, '0 bytes in - 0x28 bytes out - OutRaw<0x28,8,0>'), ('nn::apm::ISystemManager', 4, '0 bytes in - 0 bytes out'), ('nn::arp::detail::IReader', 0, ''), ('nn::arp::detail::IReader', 1, ''), ('nn::arp::detail::IReader', 2, ''), ('nn::arp::detail::IReader', 3, ''), ('nn::arp::detail::IRegistrar', 0, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::arp::detail::IRegistrar', 1, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::arp::detail::IRegistrar', 2, ''), ('nn::arp::detail::IWriter', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::arp::detail::IWriter', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioDebugManager', 0, '0x10 bytes in - 0 bytes out - InHandle<0,1>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::audio::detail::IAudioDebugManager', 1, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioDebugManager', 2, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioDebugManager', 3, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioDevice', 0, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioDevice', 1, '4 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<4,4,0>'), ('nn::audio::detail::IAudioDevice', 2, '0 bytes in - 4 bytes out - Buffer<0,5,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioDevice', 3, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::audio::detail::IAudioDevice', 4, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audio::detail::IAudioDevice', 5, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioDevice', 6, '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioDevice', 7, '4 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<4,4,0>'), ('nn::audio::detail::IAudioDevice', 8, '0 bytes in - 4 bytes out - Buffer<0,0x21,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioDevice', 10, '0 bytes in - 0 bytes out - Buffer<0,0x22,0>'), ('nn::audio::detail::IAudioDevice', 11, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audio::detail::IAudioDevice', 12, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audio::detail::IAudioIn', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioIn', 1, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioIn', 2, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioIn', 3, '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioIn', 4, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audio::detail::IAudioIn', 5, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioIn', 6, '8 bytes in - 1 bytes out - InRaw<8,8,0>, OutRaw<1,1,0>'), ('nn::audio::detail::IAudioIn', 7, '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>, InHandle<0,1>'), ('nn::audio::detail::IAudioIn', 8, '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioIn', 9, '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioIn', 10, '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>, InHandle<0,1>'), ('nn::audio::detail::IAudioInManager', 0, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioInManager', 1, '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,5,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,6,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioInManager', 2, '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioInManager', 3, '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,0x21,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,0x22,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioInManager', 4, '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioInManagerForApplet', 0, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioInManagerForApplet', 1, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioInManagerForApplet', 2, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioInManagerForApplet', 3, '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>'), ('nn::audio::detail::IAudioInManagerForDebugger', 0, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioInManagerForDebugger', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioOut', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioOut', 1, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioOut', 2, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioOut', 3, '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioOut', 4, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audio::detail::IAudioOut', 5, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioOut', 6, '8 bytes in - 1 bytes out - InRaw<8,8,0>, OutRaw<1,1,0>'), ('nn::audio::detail::IAudioOut', 7, '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioOut', 8, '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioOutManager', 0, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioOutManager', 1, '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,5,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,6,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioOutManager', 2, '0 bytes in - 4 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>'), ('nn::audio::detail::IAudioOutManager', 3, '0x10 bytes in - 0x10 bytes out - takes pid - OutObject<0,0>, Buffer<0,0x21,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, Buffer<1,0x22,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioOutManagerForApplet', 0, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioOutManagerForApplet', 1, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioOutManagerForApplet', 2, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioOutManagerForApplet', 3, '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>'), ('nn::audio::detail::IAudioOutManagerForDebugger', 0, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioOutManagerForDebugger', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioRenderer', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioRenderer', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioRenderer', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioRenderer', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioRenderer', 4, '0 bytes in - 0 bytes out - Buffer<0,6,0>, Buffer<1,6,0>, Buffer<2,5,0>'), ('nn::audio::detail::IAudioRenderer', 5, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioRenderer', 6, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioRenderer', 7, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audio::detail::IAudioRenderer', 8, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::audio::detail::IAudioRenderer', 9, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IAudioRenderer', 10, '0 bytes in - 0 bytes out - Buffer<0,0x22,0>, Buffer<1,0x22,0>, Buffer<2,0x21,0>'), ('nn::audio::detail::IAudioRenderer', 11, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IAudioRendererManager', 0, '0x48 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<0x34,4,0>, InHandle<0,1>, InHandle<1,1>, InRaw<8,8,0x38>, InRaw<8,8,0x40>'), ('nn::audio::detail::IAudioRendererManager', 1, '0x34 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x34,4,0>'), ('nn::audio::detail::IAudioRendererManager', 2, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioRendererManager', 3, '0x50 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<0x34,4,0>, InRaw<8,8,0x38>, InHandle<0,1>, InRaw<8,8,0x40>, InRaw<8,8,0x48>'), ('nn::audio::detail::IAudioRendererManagerForApplet', 0, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioRendererManagerForApplet', 1, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IAudioRendererManagerForApplet', 2, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::audio::detail::IAudioRendererManagerForApplet', 3, '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>'), ('nn::audio::detail::IAudioRendererManagerForApplet', 4, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioRendererManagerForApplet', 5, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioRendererManagerForDebugger', 0, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IAudioRendererManagerForDebugger', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IFinalOutputRecorder', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audio::detail::IFinalOutputRecorder', 1, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IFinalOutputRecorder', 2, '0 bytes in - 0 bytes out'), ('nn::audio::detail::IFinalOutputRecorder', 3, '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>'), ('nn::audio::detail::IFinalOutputRecorder', 4, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audio::detail::IFinalOutputRecorder', 5, '0 bytes in - 0x10 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, OutRaw<8,8,8>'), ('nn::audio::detail::IFinalOutputRecorder', 6, '8 bytes in - 1 bytes out - InRaw<8,8,0>, OutRaw<1,1,0>'), ('nn::audio::detail::IFinalOutputRecorder', 7, '8 bytes in - 8 bytes out - InRaw<8,8,0>, OutRaw<8,8,0>'), ('nn::audio::detail::IFinalOutputRecorder', 8, '8 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<8,8,0>'), ('nn::audio::detail::IFinalOutputRecorder', 9, '0 bytes in - 0x10 bytes out - Buffer<0,0x22,0>, OutRaw<4,4,0>, OutRaw<8,8,8>'), ('nn::audio::detail::IFinalOutputRecorderManager', 0, '0x10 bytes in - 0x10 bytes out - OutObject<0,0>, InRaw<8,4,0>, InHandle<0,1>, OutRaw<0x10,4,0>, InRaw<8,8,8>'), ('nn::audio::detail::IFinalOutputRecorderManagerForApplet', 0, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IFinalOutputRecorderManagerForApplet', 1, '0x10 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::audio::detail::IFinalOutputRecorderManagerForDebugger', 0, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audio::detail::IFinalOutputRecorderManagerForDebugger', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::audioctrl::detail::IAudioController', 0, '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 1, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::audioctrl::detail::IAudioController', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 4, ''), ('nn::audioctrl::detail::IAudioController', 5, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::audioctrl::detail::IAudioController', 6, ''), ('nn::audioctrl::detail::IAudioController', 7, ''), ('nn::audioctrl::detail::IAudioController', 8, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 9, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 10, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::audioctrl::detail::IAudioController', 11, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 13, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 14, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::audioctrl::detail::IAudioController', 15, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 16, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::audioctrl::detail::IAudioController', 17, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 18, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 19, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audioctrl::detail::IAudioController', 20, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::audioctrl::detail::IAudioController', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::audioctrl::detail::IAudioController', 22, '0 bytes in - 0 bytes out'), ('nn::bcat::detail::ipc::IBcatService', 10100, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::bcat::detail::ipc::IBcatService', 20100, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::bcat::detail::ipc::IBcatService', 30100, '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,9,0>'), ('nn::bcat::detail::ipc::IBcatService', 30200, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::bcat::detail::ipc::IBcatService', 30201, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::bcat::detail::ipc::IBcatService', 30202, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::bcat::detail::ipc::IBcatService', 30203, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::bcat::detail::ipc::IBcatService', 90100, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::bcat::detail::ipc::IBcatService', 90200, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::bcat::detail::ipc::IBcatService', 90201, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::bcat::detail::ipc::IBcatService', 90300, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheDirectoryService', 0, '0x20 bytes in - 0 bytes out - InRaw<0x20,1,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheDirectoryService', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheDirectoryService', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 0, '0x40 bytes in - 0 bytes out - InRaw<0x20,1,0>, InRaw<0x20,1,0x20>'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 1, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, Buffer<0,6,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 2, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheFileService', 3, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheProgressService', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::bcat::detail::ipc::IDeliveryCacheProgressService', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x200>'), ('nn::bcat::detail::ipc::IDeliveryCacheStorageService', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheStorageService', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::bcat::detail::ipc::IDeliveryCacheStorageService', 10, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::bcat::detail::ipc::IServiceCreator', 0, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::bcat::detail::ipc::IServiceCreator', 1, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::bcat::detail::ipc::IServiceCreator', 2, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>'), ('nn::bgtc::IStateControlService', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bgtc::IStateControlService', 2, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::bgtc::IStateControlService', 3, '0 bytes in - 0 bytes out'), ('nn::bgtc::IStateControlService', 4, '0 bytes in - 0 bytes out'), ('nn::bgtc::IStateControlService', 5, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::bgtc::ITaskService', 1, '0 bytes in - 0 bytes out'), ('nn::bgtc::ITaskService', 2, '0 bytes in - 0 bytes out'), ('nn::bgtc::ITaskService', 3, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::bgtc::ITaskService', 4, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bgtc::ITaskService', 5, ''), ('nn::bgtc::ITaskService', 6, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bgtc::ITaskService', 11, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::bgtc::ITaskService', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bgtc::ITaskService', 13, '0 bytes in - 0 bytes out'), ('nn::bgtc::ITaskService', 14, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::bgtc::ITaskService', 15, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::bgtc::ITaskService', 101, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bgtc::ITaskService', 102, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bgtc::ITaskService', 103, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bluetooth::IBluetoothDriver', 0, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 1, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::bluetooth::IBluetoothDriver', 2, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 3, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 4, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 5, ''), ('nn::bluetooth::IBluetoothDriver', 6, ''), ('nn::bluetooth::IBluetoothDriver', 7, ''), ('nn::bluetooth::IBluetoothDriver', 8, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 9, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 10, ''), ('nn::bluetooth::IBluetoothDriver', 11, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::bluetooth::IBluetoothDriver', 12, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::bluetooth::IBluetoothDriver', 13, ''), ('nn::bluetooth::IBluetoothDriver', 14, ''), ('nn::bluetooth::IBluetoothDriver', 15, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>'), ('nn::bluetooth::IBluetoothDriver', 16, ''), ('nn::bluetooth::IBluetoothDriver', 17, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::bluetooth::IBluetoothDriver', 18, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::bluetooth::IBluetoothDriver', 19, ''), ('nn::bluetooth::IBluetoothDriver', 20, ''), ('nn::bluetooth::IBluetoothDriver', 21, ''), ('nn::bluetooth::IBluetoothDriver', 22, ''), ('nn::bluetooth::IBluetoothDriver', 23, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::bluetooth::IBluetoothDriver', 24, ''), ('nn::bluetooth::IBluetoothDriver', 25, ''), ('nn::bluetooth::IBluetoothDriver', 26, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 27, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>'), ('nn::bluetooth::IBluetoothDriver', 28, ''), ('nn::bluetooth::IBluetoothDriver', 29, ''), ('nn::bluetooth::IBluetoothDriver', 30, ''), ('nn::bluetooth::IBluetoothDriver', 31, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::bluetooth::IBluetoothDriver', 32, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 33, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 34, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::bluetooth::IBluetoothDriver', 35, ''), ('nn::bluetooth::IBluetoothDriver', 36, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::bluetooth::IBluetoothDriver', 37, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>'), ('nn::bluetooth::IBluetoothDriver', 38, ''), ('nn::bluetooth::IBluetoothDriver', 39, '0 bytes in - 0 bytes out'), ('nn::bluetooth::IBluetoothDriver', 40, ''), ('nn::bluetooth::IBluetoothDriver', 41, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::bluetooth::IBluetoothDriver', 42, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bluetooth::IBluetoothDriver', 43, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::bluetooth::IBluetoothDriver', 44, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bpc::IBoardPowerControlManager', 0, '0 bytes in - 0 bytes out'), ('nn::bpc::IBoardPowerControlManager', 1, '0 bytes in - 0 bytes out'), ('nn::bpc::IBoardPowerControlManager', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bpc::IBoardPowerControlManager', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bpc::IBoardPowerControlManager', 4, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bpc::IBoardPowerControlManager', 5, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::bpc::IBoardPowerControlManager', 6, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bpc::IBoardPowerControlManager', 7, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::bpc::IBoardPowerControlManager', 8, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::bpc::IBoardPowerControlManager', 9, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::bpc::IBoardPowerControlManager', 10, ''), ('nn::bpc::IBoardPowerControlManager', 11, ''), ('nn::bpc::IBoardPowerControlManager', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::bpc::IBoardPowerControlManager', 13, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::bpc::IRtcManager', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::bpc::IRtcManager', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::bpc::IRtcManager', 2, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::bpc::IRtcManager', 3, '0 bytes in - 0 bytes out'), ('nn::bpc::IRtcManager', 4, '0 bytes in - 0 bytes out'), ('nn::bsdsocket::cfg::ServerInterface', 0, ''), ('nn::bsdsocket::cfg::ServerInterface', 1, ''), ('nn::bsdsocket::cfg::ServerInterface', 2, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::bsdsocket::cfg::ServerInterface', 3, '4 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<4,4,0>'), ('nn::bsdsocket::cfg::ServerInterface', 4, ''), ('nn::bsdsocket::cfg::ServerInterface', 5, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::bsdsocket::cfg::ServerInterface', 6, ''), ('nn::bsdsocket::cfg::ServerInterface', 7, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::bsdsocket::cfg::ServerInterface', 8, ''), ('nn::bsdsocket::cfg::ServerInterface', 9, ''), ('nn::bsdsocket::cfg::ServerInterface', 10, '0 bytes in - 0 bytes out'), ('nn::bsdsocket::cfg::ServerInterface', 11, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::bsdsocket::cfg::ServerInterface', 12, '0 bytes in - 0 bytes out'), ('nn::btm::IBtm', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::btm::IBtm', 1, ''), ('nn::btm::IBtm', 2, ''), ('nn::btm::IBtm', 3, ''), ('nn::btm::IBtm', 4, ''), ('nn::btm::IBtm', 5, ''), ('nn::btm::IBtm', 6, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::btm::IBtm', 7, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::btm::IBtm', 8, ''), ('nn::btm::IBtm', 9, ''), ('nn::btm::IBtm', 10, ''), ('nn::btm::IBtm', 11, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::btm::IBtm', 12, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::btm::IBtm', 13, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::btm::IBtm', 14, '0 bytes in - 0 bytes out'), ('nn::btm::IBtm', 15, '0 bytes in - 0 bytes out'), ('nn::btm::IBtm', 16, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::btm::IBtm', 17, ''), ('nn::btm::IBtm', 18, ''), ('nn::btm::IBtmSystem', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::btm::IBtmSystemCore', 0, '0 bytes in - 0 bytes out'), ('nn::btm::IBtmSystemCore', 1, '0 bytes in - 0 bytes out'), ('nn::btm::IBtmSystemCore', 2, '0 bytes in - 0 bytes out'), ('nn::btm::IBtmSystemCore', 3, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::btm::IBtmSystemCore', 4, '0 bytes in - 0 bytes out'), ('nn::btm::IBtmSystemCore', 5, '0 bytes in - 0 bytes out'), ('nn::btm::IBtmSystemCore', 6, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::btm::IBtmSystemCore', 7, ''), ('nn::btm::IBtmSystemCore', 8, ''), ('nn::btm::IBtmSystemCore', 9, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumAccessorService', 0, ''), ('nn::capsrv::sf::IAlbumAccessorService', 1, ''), ('nn::capsrv::sf::IAlbumAccessorService', 2, ''), ('nn::capsrv::sf::IAlbumAccessorService', 3, ''), ('nn::capsrv::sf::IAlbumAccessorService', 4, ''), ('nn::capsrv::sf::IAlbumAccessorService', 5, ''), ('nn::capsrv::sf::IAlbumAccessorService', 6, ''), ('nn::capsrv::sf::IAlbumAccessorService', 7, ''), ('nn::capsrv::sf::IAlbumAccessorService', 8, ''), ('nn::capsrv::sf::IAlbumAccessorService', 9, ''), ('nn::capsrv::sf::IAlbumAccessorService', 10, ''), ('nn::capsrv::sf::IAlbumAccessorService', 11, ''), ('nn::capsrv::sf::IAlbumAccessorService', 12, ''), ('nn::capsrv::sf::IAlbumAccessorService', 13, ''), ('nn::capsrv::sf::IAlbumAccessorService', 14, ''), ('nn::capsrv::sf::IAlbumAccessorService', 301, ''), ('nn::capsrv::sf::IAlbumAccessorService', 401, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumAccessorService', 501, ''), ('nn::capsrv::sf::IAlbumAccessorService', 1001, ''), ('nn::capsrv::sf::IAlbumAccessorService', 1002, ''), ('nn::capsrv::sf::IAlbumAccessorService', 8001, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumAccessorService', 8002, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumAccessorService', 8011, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumAccessorService', 8012, ''), ('nn::capsrv::sf::IAlbumAccessorService', 8021, ''), ('nn::capsrv::sf::IAlbumAccessorService', 10011, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumControlService', 2001, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumControlService', 2002, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::capsrv::sf::IAlbumControlService', 2011, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::capsrv::sf::IAlbumControlService', 2012, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::capsrv::sf::IAlbumControlService', 2013, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::capsrv::sf::IAlbumControlService', 2014, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::capsrv::sf::IAlbumControlService', 2101, ''), ('nn::capsrv::sf::IAlbumControlService', 2102, ''), ('nn::capsrv::sf::IAlbumControlService', 2201, ''), ('nn::capsrv::sf::IAlbumControlService', 2301, ''), ('nn::capsrv::sf::IScreenShotApplicationService', 201, '0x10 bytes in - 0x20 bytes out - takes pid - OutRaw<0x20,1,0>, Buffer<0,0x45,0>, InRaw<4,4,0>, InRaw<8,8,8>, InRaw<4,4,4>'), ('nn::capsrv::sf::IScreenShotApplicationService', 203, '0x50 bytes in - 0x20 bytes out - takes pid - OutRaw<0x20,1,0>, Buffer<0,0x45,0>, InRaw<0x40,4,0>, InRaw<8,8,0x48>, InRaw<4,4,0x40>'), ('nn::capsrv::sf::IScreenShotControlService', 1, ''), ('nn::capsrv::sf::IScreenShotControlService', 2, ''), ('nn::capsrv::sf::IScreenShotControlService', 1001, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::capsrv::sf::IScreenShotControlService', 1002, '0x18 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>'), ('nn::capsrv::sf::IScreenShotControlService', 1003, ''), ('nn::capsrv::sf::IScreenShotControlService', 1011, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::capsrv::sf::IScreenShotControlService', 1012, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::capsrv::sf::IScreenShotControlService', 1201, ''), ('nn::capsrv::sf::IScreenShotControlService', 1202, '0 bytes in - 0 bytes out'), ('nn::capsrv::sf::IScreenShotControlService', 1203, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::capsrv::sf::IScreenShotService', 201, ''), ('nn::capsrv::sf::IScreenShotService', 202, ''), ('nn::capsrv::sf::IScreenShotService', 203, ''), ('nn::capsrv::sf::IScreenShotService', 204, ''), ('nn::cec::ICecManager', 0, ''), ('nn::cec::ICecManager', 1, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::cec::ICecManager', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::cec::ICecManager', 3, ''), ('nn::cec::ICecManager', 4, ''), ('nn::cec::ICecManager', 5, ''), ('nn::cec::ICecManager', 6, ''), ('nn::codec::detail::IHardwareOpusDecoder', 0, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,6,0>, Buffer<1,5,0>'), ('nn::codec::detail::IHardwareOpusDecoder', 1, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::codec::detail::IHardwareOpusDecoder', 2, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,6,0>, Buffer<1,5,0>'), ('nn::codec::detail::IHardwareOpusDecoder', 3, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::codec::detail::IHardwareOpusDecoderManager', 0, '0xC bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,4,0>, InHandle<0,1>, InRaw<4,4,8>'), ('nn::codec::detail::IHardwareOpusDecoderManager', 1, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::codec::detail::IHardwareOpusDecoderManager', 2, '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x110>, InHandle<0,1>, InRaw<4,4,0>'), ('nn::codec::detail::IHardwareOpusDecoderManager', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x19,0x110>'), ('nn::erpt::sf::IContext', 0, ''), ('nn::erpt::sf::IContext', 1, ''), ('nn::erpt::sf::IContext', 2, ''), ('nn::erpt::sf::IContext', 3, '0 bytes in - 0 bytes out'), ('nn::erpt::sf::IContext', 4, '0 bytes in - 0 bytes out'), ('nn::erpt::sf::IContext', 5, '0 bytes in - 0 bytes out'), ('nn::erpt::sf::IManager', 0, ''), ('nn::erpt::sf::IManager', 1, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::erpt::sf::IReport', 0, ''), ('nn::erpt::sf::IReport', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::erpt::sf::IReport', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::erpt::sf::IReport', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::erpt::sf::IReport', 4, '0 bytes in - 0 bytes out'), ('nn::erpt::sf::IReport', 5, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::erpt::sf::ISession', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::erpt::sf::ISession', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::es::IETicketService', 1, ''), ('nn::es::IETicketService', 2, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::es::IETicketService', 3, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::es::IETicketService', 4, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::es::IETicketService', 5, '0 bytes in - 0 bytes out'), ('nn::es::IETicketService', 6, '0 bytes in - 0 bytes out'), ('nn::es::IETicketService', 7, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::es::IETicketService', 8, ''), ('nn::es::IETicketService', 9, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::es::IETicketService', 10, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::es::IETicketService', 11, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::es::IETicketService', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::es::IETicketService', 13, ''), ('nn::es::IETicketService', 14, ''), ('nn::es::IETicketService', 15, ''), ('nn::es::IETicketService', 16, ''), ('nn::es::IETicketService', 17, ''), ('nn::es::IETicketService', 18, ''), ('nn::es::IETicketService', 19, ''), ('nn::es::IETicketService', 20, ''), ('nn::es::IETicketService', 21, ''), ('nn::eth::sf::IEthInterface', 0, ''), ('nn::eth::sf::IEthInterface', 1, '0 bytes in - 0 bytes out'), ('nn::eth::sf::IEthInterface', 2, '0 bytes in - 0 bytes out'), ('nn::eth::sf::IEthInterface', 3, ''), ('nn::eth::sf::IEthInterface', 4, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::eth::sf::IEthInterface', 5, ''), ('nn::eth::sf::IEthInterfaceGroup', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::eth::sf::IEthInterfaceGroup', 1, '0 bytes in - 0 bytes out'), ('nn::eth::sf::IEthInterfaceGroup', 2, '0 bytes in - 0 bytes out'), ('nn::eth::sf::IEthInterfaceGroup', 3, ''), ('nn::eth::sf::IEthInterfaceGroup', 4, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::eupld::sf::IControl', 0, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::eupld::sf::IControl', 1, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::eupld::sf::IControl', 2, ''), ('nn::eupld::sf::IControl', 3, ''), ('nn::eupld::sf::IRequest', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::eupld::sf::IRequest', 1, '0 bytes in - 0 bytes out'), ('nn::eupld::sf::IRequest', 2, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::eupld::sf::IRequest', 3, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::eupld::sf::IRequest', 4, '0 bytes in - 0 bytes out'), ('nn::eupld::sf::IRequest', 5, '0 bytes in - 0 bytes out'), ('nn::fan::detail::IController', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::fan::detail::IController', 1, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::fan::detail::IController', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fan::detail::IController', 3, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::fan::detail::IController', 4, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fan::detail::IController', 5, '0 bytes in - 0 bytes out'), ('nn::fan::detail::IController', 6, '0 bytes in - 0 bytes out'), ('nn::fan::detail::IController', 7, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fan::detail::IManager', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::fatalsrv::IPrivateService', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::fatalsrv::IService', 0, ''), ('nn::fatalsrv::IService', 1, ''), ('nn::fatalsrv::IService', 2, ''), ('nn::fgm::sf::IDebugger', 0, '8 bytes in - 0 bytes out - OutHandle<0,1>, InHandle<0,1>, InRaw<8,8,0>'), ('nn::fgm::sf::IDebugger', 1, '0 bytes in - 0xC bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>'), ('nn::fgm::sf::IDebugger', 2, '0 bytes in - 0 bytes out'), ('nn::fgm::sf::IRequest', 0, '0x10 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::fgm::sf::IRequest', 1, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::fgm::sf::IRequest', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fgm::sf::IRequest', 3, '0 bytes in - 0 bytes out'), ('nn::fgm::sf::ISession', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::friends::detail::ipc::IFriendService', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::friends::detail::ipc::IFriendService', 1, '0 bytes in - 0 bytes out'), ('nn::friends::detail::ipc::IFriendService', 10100, '0x30 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<0x10,8,8>, InRaw<4,4,0>, InRaw<0x10,8,0x18>, InRaw<8,8,0x28>'), ('nn::friends::detail::ipc::IFriendService', 10101, '0x30 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>, InRaw<0x10,8,0x18>, InRaw<8,8,0x28>'), ('nn::friends::detail::ipc::IFriendService', 10102, '0x18 bytes in - 0 bytes out - takes pid - Buffer<0,6,0>, InRaw<0x10,8,0>, Buffer<1,9,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 10110, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,6,0>'), ('nn::friends::detail::ipc::IFriendService', 10200, '0x20 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>, InRaw<8,8,0x18>'), ('nn::friends::detail::ipc::IFriendService', 10211, '0x80 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0x68>, InRaw<0x40,1,0>, InRaw<0x21,1,0x40>, Buffer<2,5,0>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>, InRaw<8,8,0x78>'), ('nn::friends::detail::ipc::IFriendService', 10400, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 10500, '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<0x10,8,0>, Buffer<1,9,0>'), ('nn::friends::detail::ipc::IFriendService', 10600, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 10601, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 10610, '0x18 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, Buffer<0,0x19,0xE0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 10700, '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<0x10,8,8>, InRaw<1,1,0>'), ('nn::friends::detail::ipc::IFriendService', 10701, '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::friends::detail::ipc::IFriendService', 10702, '0x18 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, Buffer<0,0x19,0x40>, Buffer<1,0x19,0x48>, Buffer<2,0x19,0x48>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 11000, '0xA4 bytes in - 0xA0 bytes out - OutRaw<0xA0,1,0>, InRaw<0xA0,1,0>, InRaw<4,4,0xA0>'), ('nn::friends::detail::ipc::IFriendService', 20100, '0x28 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<0x10,8,0>, InRaw<0x10,8,0x10>, InRaw<8,8,0x20>'), ('nn::friends::detail::ipc::IFriendService', 20101, '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20102, '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x800>, InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 20103, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20104, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20110, '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 20200, '0x10 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20201, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::friends::detail::ipc::IFriendService', 20300, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 20301, '0x18 bytes in - 4 bytes out - Buffer<0,0x1A,0x38>, OutRaw<4,4,0>, Buffer<1,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 20400, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 20401, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20500, '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<0x10,8,0>, Buffer<1,9,0>'), ('nn::friends::detail::ipc::IFriendService', 20501, '0x18 bytes in - 8 bytes out - OutRaw<8,1,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 20600, '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0xE0>, InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20700, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 20701, '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20800, '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0x800>, InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20801, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 20900, '0 bytes in - 0 bytes out'), ('nn::friends::detail::ipc::IFriendService', 21000, '0x18 bytes in - 0 bytes out - Buffer<0,0x1A,0x4B8>, InRaw<0x10,8,8>, InRaw<8,1,0>'), ('nn::friends::detail::ipc::IFriendService', 30100, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 30101, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30110, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30120, '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<1,1,0>'), ('nn::friends::detail::ipc::IFriendService', 30121, '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<1,1,0>'), ('nn::friends::detail::ipc::IFriendService', 30200, '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 30201, '0x30 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,8,0x20>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>'), ('nn::friends::detail::ipc::IFriendService', 30202, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30203, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30204, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30205, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30210, '0x10 bytes in - 0x40 bytes out - OutRaw<0x40,1,0>, InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 30211, '0x78 bytes in - 0 bytes out - InRaw<0x10,8,0x68>, InRaw<0x40,1,0>, InRaw<0x21,1,0x40>, Buffer<0,5,0>'), ('nn::friends::detail::ipc::IFriendService', 30212, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30213, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>, InRaw<8,8,0x10>, Buffer<0,6,0>'), ('nn::friends::detail::ipc::IFriendService', 30214, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,9,0>, Buffer<1,6,0>'), ('nn::friends::detail::ipc::IFriendService', 30215, '0x30 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,8,0x20>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>'), ('nn::friends::detail::ipc::IFriendService', 30216, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30217, '0x80 bytes in - 0 bytes out - InRaw<0x10,8,0x68>, InRaw<8,8,0x78>, InRaw<4,4,0x60>, InRaw<0x20,1,0>, InRaw<0x10,1,0x20>, InRaw<0x20,1,0x30>, InRaw<0x10,1,0x50>'), ('nn::friends::detail::ipc::IFriendService', 30400, '0x20 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 30401, '0x30 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,8,0x20>, Buffer<0,0x19,0x48>'), ('nn::friends::detail::ipc::IFriendService', 30402, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<8,8,0x10>'), ('nn::friends::detail::ipc::IFriendService', 30500, '0x30 bytes in - 0 bytes out - Buffer<0,0x1A,0x400>, InRaw<0x10,8,0x20>, InRaw<0x20,1,0>'), ('nn::friends::detail::ipc::IFriendService', 30700, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 30810, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 30811, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<1,1,0>'), ('nn::friends::detail::ipc::IFriendService', 30812, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,8>, InRaw<4,4,0>'), ('nn::friends::detail::ipc::IFriendService', 30820, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 30830, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IFriendService', 49900, '0x10 bytes in - 0 bytes out - InRaw<0x10,8,0>'), ('nn::friends::detail::ipc::INotificationService', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::friends::detail::ipc::INotificationService', 1, '0 bytes in - 0 bytes out'), ('nn::friends::detail::ipc::INotificationService', 2, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::friends::detail::ipc::IServiceCreator', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::friends::detail::ipc::IServiceCreator', 1, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<0x10,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 0, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::fssrv::sf::IDeviceOperator', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 2, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 3, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 4, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 5, '8 bytes in - 0x18 bytes out - OutRaw<0x10,4,0>, OutRaw<8,8,0x10>, Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 100, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 101, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 110, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 111, '4 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 112, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 113, '8 bytes in - 0x18 bytes out - OutRaw<0x10,4,0>, OutRaw<8,8,0x10>, Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 114, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 200, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::fssrv::sf::IDeviceOperator', 201, '0x10 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IDeviceOperator', 202, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 203, '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 204, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IDeviceOperator', 205, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 206, '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 207, '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>, Buffer<1,5,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IDeviceOperator', 208, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 209, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IDeviceOperator', 210, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::fssrv::sf::IDeviceOperator', 211, '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 212, '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>, Buffer<1,5,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IDeviceOperator', 213, '8 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 214, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 215, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IDeviceOperator', 216, '0 bytes in - 0x10 bytes out - OutRaw<0x10,2,0>'), ('nn::fssrv::sf::IDeviceOperator', 217, '0 bytes in - 0x40 bytes out - OutRaw<0x40,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 218, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IDeviceOperator', 300, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::fssrv::sf::IDeviceOperator', 301, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fssrv::sf::IDirectory', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>'), ('nn::fssrv::sf::IDirectory', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::fssrv::sf::IEventNotifier', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::fssrv::sf::IFile', 0, '0x18 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,0x46,0>, InRaw<8,8,0x10>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFile', 1, '0x18 bytes in - 0 bytes out - InRaw<8,8,8>, Buffer<0,0x45,0>, InRaw<8,8,0x10>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFile', 2, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFile', 3, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::fssrv::sf::IFile', 4, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystem', 0, '0x10 bytes in - 0 bytes out - Buffer<0,0x19,0x301>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystem', 1, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 2, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 3, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 4, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 5, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>, Buffer<1,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 6, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>, Buffer<1,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 7, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 8, '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystem', 9, '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystem', 10, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFileSystem', 11, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 12, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 13, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystem', 14, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystemProxy', 1, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 7, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 8, '0x10 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 9, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 11, '4 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 12, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 13, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFileSystemProxy', 17, '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystemProxy', 18, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 19, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFileSystemProxy', 21, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 22, '0x90 bytes in - 0 bytes out - InRaw<0x40,8,0>, InRaw<0x40,8,0x40>, InRaw<0x10,4,0x80>'), ('nn::fssrv::sf::IFileSystemProxy', 23, '0x80 bytes in - 0 bytes out - InRaw<0x40,8,0>, InRaw<0x40,8,0x40>'), ('nn::fssrv::sf::IFileSystemProxy', 24, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::fssrv::sf::IFileSystemProxy', 25, '0x10 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IFileSystemProxy', 26, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFileSystemProxy', 27, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::fssrv::sf::IFileSystemProxy', 30, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::fssrv::sf::IFileSystemProxy', 31, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::fssrv::sf::IFileSystemProxy', 32, '0x20 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<8,8,0x18>'), ('nn::fssrv::sf::IFileSystemProxy', 51, '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>'), ('nn::fssrv::sf::IFileSystemProxy', 52, '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>'), ('nn::fssrv::sf::IFileSystemProxy', 53, '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>'), ('nn::fssrv::sf::IFileSystemProxy', 57, '0x10 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<1,1,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IFileSystemProxy', 58, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 59, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>, Buffer<0,5,0>'), ('nn::fssrv::sf::IFileSystemProxy', 60, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 61, '1 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>'), ('nn::fssrv::sf::IFileSystemProxy', 80, '0x48 bytes in - 0 bytes out - OutObject<0,0>, InRaw<1,1,0>, InRaw<0x40,8,8>, InRaw<4,4,4>'), ('nn::fssrv::sf::IFileSystemProxy', 100, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 110, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 200, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 201, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 202, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::fssrv::sf::IFileSystemProxy', 203, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 400, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 500, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 501, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::fssrv::sf::IFileSystemProxy', 600, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 601, '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IFileSystemProxy', 602, '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,6,0>'), ('nn::fssrv::sf::IFileSystemProxy', 603, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 604, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxy', 605, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFileSystemProxy', 606, '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::fssrv::sf::IFileSystemProxy', 607, '0x20 bytes in - 0 bytes out - InRaw<0x10,8,0>, InRaw<0x10,1,0x10>'), ('nn::fssrv::sf::IFileSystemProxy', 608, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFileSystemProxy', 609, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystemProxy', 610, '0 bytes in - 0x18 bytes out - OutRaw<0x10,8,8>, OutRaw<1,1,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystemProxy', 620, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::fssrv::sf::IFileSystemProxy', 800, '0 bytes in - 0x80 bytes out - OutRaw<0x80,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 1000, '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystemProxy', 1001, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IFileSystemProxy', 1002, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x301>'), ('nn::fssrv::sf::IFileSystemProxy', 1003, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IFileSystemProxy', 1004, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 1005, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::fssrv::sf::IFileSystemProxy', 1006, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::fssrv::sf::IFileSystemProxyForLoader', 0, '8 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x301>, InRaw<8,8,0>'), ('nn::fssrv::sf::IFileSystemProxyForLoader', 1, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::fssrv::sf::IProgramRegistry', 0, '0x28 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<1,1,0>, Buffer<0,5,0>, InRaw<8,8,0x18>, Buffer<1,5,0>, InRaw<8,8,0x20>'), ('nn::fssrv::sf::IProgramRegistry', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::fssrv::sf::IProgramRegistry', 256, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::fssrv::sf::ISaveDataInfoReader', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>'), ('nn::fssrv::sf::IStorage', 0, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x46,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IStorage', 1, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,0x45,0>, InRaw<8,8,8>'), ('nn::fssrv::sf::IStorage', 2, '0 bytes in - 0 bytes out'), ('nn::fssrv::sf::IStorage', 3, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::fssrv::sf::IStorage', 4, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::gpio::IManager', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::gpio::IManager', 1, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::gpio::IManager', 2, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::gpio::IManager', 3, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::gpio::IManager', 4, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::gpio::IManager', 5, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::gpio::IManager', 6, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::gpio::IPadSession', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::gpio::IPadSession', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::gpio::IPadSession', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::gpio::IPadSession', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::gpio::IPadSession', 4, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::gpio::IPadSession', 5, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::gpio::IPadSession', 6, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::gpio::IPadSession', 7, '0 bytes in - 0 bytes out'), ('nn::gpio::IPadSession', 8, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::gpio::IPadSession', 9, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::gpio::IPadSession', 10, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::gpio::IPadSession', 11, '0 bytes in - 0 bytes out'), ('nn::gpio::IPadSession', 12, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::gpio::IPadSession', 13, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::gpio::IPadSession', 14, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::gpio::IPadSession', 15, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::hid::IActiveVibrationDeviceList', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IAppletResource', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::hid::IHidDebugServer', 0, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 1, '0x18 bytes in - 0 bytes out - InRaw<0x18,4,0>'), ('nn::hid::IHidDebugServer', 2, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 10, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 11, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::hid::IHidDebugServer', 12, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 20, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 21, '0x1C bytes in - 0 bytes out - InRaw<0x1C,4,0>'), ('nn::hid::IHidDebugServer', 22, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 30, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 31, '0x28 bytes in - 0 bytes out - InRaw<0x28,8,0>'), ('nn::hid::IHidDebugServer', 32, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 50, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidDebugServer', 51, '0x20 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<0x1C,4,4>'), ('nn::hid::IHidDebugServer', 52, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidDebugServer', 60, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidDebugServer', 91, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 110, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 111, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidDebugServer', 112, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 120, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 121, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidDebugServer', 122, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 123, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 130, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 131, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidDebugServer', 132, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 133, '0x18 bytes in - 0 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,0x10>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::hid::IHidDebugServer', 134, '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::hid::IHidDebugServer', 135, '0x18 bytes in - 0 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,0x10>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::hid::IHidDebugServer', 136, '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::hid::IHidDebugServer', 140, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 201, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 202, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 203, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidDebugServer', 204, '0 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>'), ('nn::hid::IHidDebugServer', 205, '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::hid::IHidDebugServer', 206, '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::hid::IHidDebugServer', 207, '0 bytes in - 0 bytes out'), ('nn::hid::IHidDebugServer', 208, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidDebugServer', 209, '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<8,8,0>'), ('nn::hid::IHidDebugServer', 221, '0x10 bytes in - 0 bytes out - InRaw<4,1,0>, InRaw<4,1,4>, InRaw<8,8,8>'), ('nn::hid::IHidServer', 0, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::hid::IHidServer', 1, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 11, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 21, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 31, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 40, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::hid::IHidServer', 41, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidServer', 51, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 55, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>'), ('nn::hid::IHidServer', 56, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidServer', 58, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 59, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>'), ('nn::hid::IHidServer', 60, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidServer', 61, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidServer', 62, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 63, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidServer', 64, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidServer', 65, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 66, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 67, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 68, '0x10 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 69, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::hid::IHidServer', 70, '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::hid::IHidServer', 71, '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 72, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 73, '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::hid::IHidServer', 74, '0x10 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 75, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 76, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::hid::IHidServer', 77, '0x10 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 78, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 79, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::hid::IHidServer', 80, '0x10 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 81, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 82, '0x10 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 91, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 100, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 101, '8 bytes in - 4 bytes out - takes pid - InRaw<8,8,0>, OutRaw<4,4,0>'), ('nn::hid::IHidServer', 102, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, Buffer<0,9,0>'), ('nn::hid::IHidServer', 103, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 104, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 106, '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<8,8,0x10>'), ('nn::hid::IHidServer', 107, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 108, '4 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 120, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidServer', 121, '8 bytes in - 8 bytes out - takes pid - InRaw<8,8,0>, OutRaw<8,8,0>'), ('nn::hid::IHidServer', 122, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 123, '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>'), ('nn::hid::IHidServer', 124, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 125, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::hid::IHidServer', 126, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 127, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 128, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidServer', 129, '8 bytes in - 8 bytes out - takes pid - InRaw<8,8,0>, OutRaw<8,8,0>'), ('nn::hid::IHidServer', 130, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::hid::IHidServer', 131, '0x10 bytes in - 1 bytes out - takes pid - OutRaw<1,1,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 132, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::hid::IHidServer', 200, '4 bytes in - 8 bytes out - OutRaw<8,4,0>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 201, '0x20 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<0x10,4,4>'), ('nn::hid::IHidServer', 202, '0x10 bytes in - 0x10 bytes out - takes pid - OutRaw<0x10,4,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 203, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::hid::IHidServer', 204, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::hid::IHidServer', 205, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::hid::IHidServer', 206, '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,9,0>, Buffer<1,9,0>'), ('nn::hid::IHidServer', 300, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidServer', 301, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 302, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 400, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::hid::IHidServer', 401, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::hid::IHidServer', 402, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::hid::IHidServer', 1000, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidServer', 1001, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 31, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 101, '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 111, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 121, '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 131, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 141, '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 151, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 210, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::hid::IHidSystemServer', 211, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>'), ('nn::hid::IHidSystemServer', 212, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 213, '0x10 bytes in - 0 bytes out - takes pid - InRaw<4,4,4>, InRaw<1,1,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 230, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 231, '0x10 bytes in - 0 bytes out - takes pid - InRaw<4,4,4>, InRaw<1,1,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 301, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 303, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 304, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 305, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 306, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 307, '4 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 311, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::hid::IHidSystemServer', 321, '4 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>, InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 322, '0x10 bytes in - 8 bytes out - takes pid - InRaw<4,4,0>, OutRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 323, '0x10 bytes in - 8 bytes out - takes pid - InRaw<4,4,0>, OutRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 500, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 501, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::hid::IHidSystemServer', 502, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 503, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::hid::IHidSystemServer', 504, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::hid::IHidSystemServer', 505, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::hid::IHidSystemServer', 510, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 511, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 512, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 513, '0 bytes in - 0 bytes out'), ('nn::hid::IHidSystemServer', 520, '0 bytes in - 0 bytes out'), ('nn::hid::IHidSystemServer', 521, '0 bytes in - 0 bytes out'), ('nn::hid::IHidSystemServer', 540, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::hid::IHidSystemServer', 541, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>'), ('nn::hid::IHidSystemServer', 542, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::hid::IHidSystemServer', 543, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>'), ('nn::hid::IHidSystemServer', 544, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::hid::IHidSystemServer', 545, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::hid::IHidSystemServer', 546, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::hid::IHidSystemServer', 547, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 700, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 702, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::hid::IHidSystemServer', 703, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>'), ('nn::hid::IHidSystemServer', 751, '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 800, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0xA,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 801, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 802, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 803, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 804, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 805, '8 bytes in - 6 bytes out - OutRaw<6,1,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 806, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 821, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 822, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 823, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 824, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::hid::IHidSystemServer', 850, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::hid::IHidSystemServer', 851, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::hid::IHidSystemServer', 852, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 900, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 901, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::hid::IHidSystemServer', 1000, '0 bytes in - 0 bytes out'), ('nn::hid::IHidSystemServer', 1001, '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 1002, '8 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 1003, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 1004, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 1005, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::hid::IHidSystemServer', 1006, '0 bytes in - 0 bytes out'), ('nn::hid::IHidSystemServer', 1007, '8 bytes in - 4 bytes out - OutRaw<4,1,0>, InRaw<8,8,0>'), ('nn::hid::IHidTemporaryServer', 0, '0x10 bytes in - 0x18 bytes out - takes pid - OutRaw<0x18,2,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::htc::tenv::IService', 0, '0x40 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<0x40,1,0>'), ('nn::htc::tenv::IService', 1, '0x40 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x40,1,0>'), ('nn::htc::tenv::IService', 2, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::htc::tenv::IServiceManager', 0, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::i2c::IManager', 0, '0x10 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,4>, InRaw<2,2,0>, InRaw<4,4,8>, InRaw<4,4,0xC>'), ('nn::i2c::IManager', 1, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::i2c::IManager', 2, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::i2c::IManager', 3, '0x10 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,4>, InRaw<2,2,0>, InRaw<4,4,8>, InRaw<4,4,0xC>'), ('nn::i2c::ISession', 0, '4 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<4,4,0>'), ('nn::i2c::ISession', 1, '4 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::i2c::ISession', 2, '0 bytes in - 0 bytes out - Buffer<0,6,0>, Buffer<1,9,0>'), ('nn::i2c::ISession', 10, '4 bytes in - 0 bytes out - Buffer<0,0x21,0>, InRaw<4,4,0>'), ('nn::i2c::ISession', 11, '4 bytes in - 0 bytes out - Buffer<0,0x22,0>, InRaw<4,4,0>'), ('nn::i2c::ISession', 12, '0 bytes in - 0 bytes out - Buffer<0,0x22,0>, Buffer<1,9,0>'), ('nn::idle::detail::IPolicyManagerSystem', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::idle::detail::IPolicyManagerSystem', 1, '0 bytes in - 0 bytes out'), ('nn::idle::detail::IPolicyManagerSystem', 2, '0 bytes in - 0 bytes out'), ('nn::idle::detail::IPolicyManagerSystem', 3, ''), ('nn::idle::detail::IPolicyManagerSystem', 4, '0 bytes in - 0 bytes out'), ('nn::idle::detail::IPolicyManagerSystem', 5, '0 bytes in - 0 bytes out'), ('nn::irsensor::IIrSensorServer', 302, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::irsensor::IIrSensorServer', 303, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::irsensor::IIrSensorServer', 304, '8 bytes in - 0 bytes out - takes pid - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::irsensor::IIrSensorServer', 305, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::irsensor::IIrSensorServer', 306, '0x30 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<0x20,8,0x10>'), ('nn::irsensor::IIrSensorServer', 307, '0x38 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<0x28,8,0x10>'), ('nn::irsensor::IIrSensorServer', 308, '0x30 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<0x18,8,0x10>, InHandle<0,1>, InRaw<8,8,0x28>'), ('nn::irsensor::IIrSensorServer', 309, '0x10 bytes in - 0x10 bytes out - takes pid - InRaw<8,8,8>, OutRaw<0x10,8,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::irsensor::IIrSensorServer', 310, '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<8,2,4>'), ('nn::irsensor::IIrSensorServer', 311, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::irsensor::IIrSensorServer', 312, '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<0xC,2,4>'), ('nn::irsensor::IIrSensorServer', 313, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::irsensor::IIrSensorServer', 314, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,2,4>'), ('nn::irsensor::IIrSensorSystemServer', 500, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::irsensor::IIrSensorSystemServer', 501, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::irsensor::IIrSensorSystemServer', 502, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::irsensor::IIrSensorSystemServer', 503, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::lbl::detail::ILblController', 0, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 1, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 4, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 5, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 6, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::lbl::detail::ILblController', 7, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::lbl::detail::ILblController', 8, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 9, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 10, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 11, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::lbl::detail::ILblController', 12, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 13, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 14, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::lbl::detail::ILblController', 15, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 16, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 17, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::lbl::detail::ILblController', 18, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 19, '0xC bytes in - 0 bytes out - InRaw<0xC,4,0>'), ('nn::lbl::detail::ILblController', 20, '0 bytes in - 0xC bytes out - OutRaw<0xC,4,0>'), ('nn::lbl::detail::ILblController', 21, '0xC bytes in - 0 bytes out - InRaw<0xC,4,0>'), ('nn::lbl::detail::ILblController', 22, '0 bytes in - 0xC bytes out - OutRaw<0xC,4,0>'), ('nn::lbl::detail::ILblController', 23, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::lbl::detail::ILblController', 24, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 25, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::lbl::detail::ILblController', 26, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 27, '0 bytes in - 0 bytes out'), ('nn::lbl::detail::ILblController', 28, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ldn::detail::IMonitorService', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ldn::detail::IMonitorService', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>'), ('nn::ldn::detail::IMonitorService', 2, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::ldn::detail::IMonitorService', 3, '0 bytes in - 2 bytes out - OutRaw<2,2,0>'), ('nn::ldn::detail::IMonitorService', 4, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::ldn::detail::IMonitorService', 5, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>'), ('nn::ldn::detail::IMonitorService', 100, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IMonitorService', 101, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IMonitorServiceCreator', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 2, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 3, '0 bytes in - 2 bytes out - OutRaw<2,2,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 4, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 5, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 100, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 101, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>, Buffer<1,0xA,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 102, '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 103, '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 200, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemLocalCommunicationService', 201, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemLocalCommunicationService', 202, '0x98 bytes in - 0 bytes out - InRaw<0x20,8,0x78>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 203, '0xB8 bytes in - 0 bytes out - InRaw<0x20,8,0x98>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, Buffer<0,9,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 204, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemLocalCommunicationService', 205, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 206, '0 bytes in - 0 bytes out - Buffer<0,0x21,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 207, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 208, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 209, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemLocalCommunicationService', 300, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemLocalCommunicationService', 301, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemLocalCommunicationService', 302, '0x7C bytes in - 0 bytes out - Buffer<0,0x19,0x480>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>, InRaw<4,4,0x74>, InRaw<4,4,0x78>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 303, '0xC0 bytes in - 0 bytes out - InRaw<0x20,8,0xA0>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, InRaw<4,4,0x94>, InRaw<4,4,0x98>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 304, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemLocalCommunicationService', 400, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::ldn::detail::ISystemLocalCommunicationService', 401, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::ISystemServiceCreator', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>'), ('nn::ldn::detail::IUserLocalCommunicationService', 2, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::ldn::detail::IUserLocalCommunicationService', 3, '0 bytes in - 2 bytes out - OutRaw<2,2,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 4, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 5, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 100, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ldn::detail::IUserLocalCommunicationService', 101, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x480>, Buffer<1,0xA,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 102, '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 103, '0x68 bytes in - 2 bytes out - Buffer<0,0x22,0>, OutRaw<2,2,0>, InRaw<0x60,8,8>, InRaw<2,2,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 200, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserLocalCommunicationService', 201, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserLocalCommunicationService', 202, '0x98 bytes in - 0 bytes out - InRaw<0x20,8,0x78>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>'), ('nn::ldn::detail::IUserLocalCommunicationService', 203, '0xB8 bytes in - 0 bytes out - InRaw<0x20,8,0x98>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, Buffer<0,9,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 204, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserLocalCommunicationService', 205, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 206, '0 bytes in - 0 bytes out - Buffer<0,0x21,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 207, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 208, '6 bytes in - 0 bytes out - InRaw<6,1,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 209, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserLocalCommunicationService', 300, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserLocalCommunicationService', 301, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserLocalCommunicationService', 302, '0x7C bytes in - 0 bytes out - Buffer<0,0x19,0x480>, InRaw<0x44,2,0>, InRaw<0x30,1,0x44>, InRaw<4,4,0x74>, InRaw<4,4,0x78>'), ('nn::ldn::detail::IUserLocalCommunicationService', 303, '0xC0 bytes in - 0 bytes out - InRaw<0x20,8,0xA0>, InRaw<0x44,2,0>, InRaw<0x20,1,0x44>, InRaw<0x30,1,0x64>, InRaw<4,4,0x94>, InRaw<4,4,0x98>'), ('nn::ldn::detail::IUserLocalCommunicationService', 304, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserLocalCommunicationService', 400, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::ldn::detail::IUserLocalCommunicationService', 401, '0 bytes in - 0 bytes out'), ('nn::ldn::detail::IUserServiceCreator', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ldr::detail::IShellInterface', 0, ''), ('nn::ldr::detail::IShellInterface', 1, '0 bytes in - 0 bytes out'), ('nn::lm::ILogService', 0, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::lm::ILogger', 0, '0 bytes in - 0 bytes out - Buffer<0,0x21,0>'), ('nn::lm::ILogger', 1, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::lr::ILocationResolverManager', 0, ''), ('nn::lr::ILocationResolverManager', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::lr::ILocationResolverManager', 2, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::lr::ILocationResolverManager', 3, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::lr::ILocationResolver', 0, ''), ('nn::lr::ILocationResolver', 1, ''), ('nn::lr::ILocationResolver', 2, ''), ('nn::lr::ILocationResolver', 3, ''), ('nn::lr::ILocationResolver', 4, ''), ('nn::lr::ILocationResolver', 5, ''), ('nn::lr::ILocationResolver', 6, ''), ('nn::lr::ILocationResolver', 7, ''), ('nn::lr::ILocationResolver', 8, ''), ('nn::lr::ILocationResolver', 9, '0 bytes in - 0 bytes out'), ('nn::lr::IRegisteredLocationResolver', 0, ''), ('nn::lr::IRegisteredLocationResolver', 1, ''), ('nn::lr::IRegisteredLocationResolver', 2, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::lr::IRegisteredLocationResolver', 3, ''), ('nn::lr::IRegisteredLocationResolver', 4, ''), ('nn::lr::IRegisteredLocationResolver', 5, ''), ('nn::lr::IRegisteredLocationResolver', 6, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::lr::IRegisteredLocationResolver', 7, ''), ('nn::lr::IAddOnContentLocationResolver', 0, ''), ('nn::lr::IAddOnContentLocationResolver', 1, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::lr::IAddOnContentLocationResolver', 2, '0 bytes in - 0 bytes out'), ('nn::mii::detail::IDatabaseService', 0, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::mii::detail::IDatabaseService', 1, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::mii::detail::IDatabaseService', 2, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::mii::detail::IDatabaseService', 3, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::mii::detail::IDatabaseService', 4, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::mii::detail::IDatabaseService', 5, '0x5C bytes in - 0x58 bytes out - OutRaw<0x58,4,0>, InRaw<0x58,4,0>, InRaw<4,4,0x58>'), ('nn::mii::detail::IDatabaseService', 6, '0xC bytes in - 0x58 bytes out - OutRaw<0x58,4,0>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::mii::detail::IDatabaseService', 7, '4 bytes in - 0x58 bytes out - OutRaw<0x58,4,0>, InRaw<4,4,0>'), ('nn::mii::detail::IDatabaseService', 8, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::mii::detail::IDatabaseService', 9, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::mii::detail::IDatabaseService', 10, '0x48 bytes in - 0x44 bytes out - OutRaw<0x44,4,0>, InRaw<0x44,4,0>, InRaw<4,4,0x44>'), ('nn::mii::detail::IDatabaseService', 11, '0x11 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,1,0>, InRaw<1,1,0x10>'), ('nn::mii::detail::IDatabaseService', 12, '0x14 bytes in - 0 bytes out - InRaw<4,4,0x10>, InRaw<0x10,1,0>'), ('nn::mii::detail::IDatabaseService', 13, '0x44 bytes in - 0 bytes out - InRaw<0x44,4,0>'), ('nn::mii::detail::IDatabaseService', 14, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::mii::detail::IDatabaseService', 15, '0 bytes in - 0 bytes out'), ('nn::mii::detail::IDatabaseService', 16, '0 bytes in - 0 bytes out'), ('nn::mii::detail::IDatabaseService', 17, '0 bytes in - 0 bytes out'), ('nn::mii::detail::IDatabaseService', 18, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::mii::detail::IDatabaseService', 19, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::mii::detail::IDatabaseService', 20, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::mii::detail::IDatabaseService', 21, '0x58 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x58,4,0>'), ('nn::mii::detail::IStaticService', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::mmnv::IRequest', 0, '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::mmnv::IRequest', 1, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::mmnv::IRequest', 2, '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::mmnv::IRequest', 3, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::mmnv::IRequest', 4, ''), ('nn::mmnv::IRequest', 5, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::mmnv::IRequest', 6, '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::mmnv::IRequest', 7, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::ncm::IContentManager', 0, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 1, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 2, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 3, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 4, ''), ('nn::ncm::IContentManager', 5, ''), ('nn::ncm::IContentManager', 8, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 9, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 10, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 11, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentManager', 12, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::ncm::IContentMetaDatabase', 0, ''), ('nn::ncm::IContentMetaDatabase', 1, ''), ('nn::ncm::IContentMetaDatabase', 2, ''), ('nn::ncm::IContentMetaDatabase', 3, ''), ('nn::ncm::IContentMetaDatabase', 4, ''), ('nn::ncm::IContentMetaDatabase', 5, ''), ('nn::ncm::IContentMetaDatabase', 6, ''), ('nn::ncm::IContentMetaDatabase', 7, ''), ('nn::ncm::IContentMetaDatabase', 8, ''), ('nn::ncm::IContentMetaDatabase', 9, ''), ('nn::ncm::IContentMetaDatabase', 10, ''), ('nn::ncm::IContentMetaDatabase', 11, ''), ('nn::ncm::IContentMetaDatabase', 12, ''), ('nn::ncm::IContentMetaDatabase', 13, '0 bytes in - 0 bytes out'), ('nn::ncm::IContentMetaDatabase', 14, ''), ('nn::ncm::IContentMetaDatabase', 15, '0 bytes in - 0 bytes out'), ('nn::ncm::IContentMetaDatabase', 16, ''), ('nn::ncm::IContentMetaDatabase', 17, ''), ('nn::ncm::IContentMetaDatabase', 18, ''), ('nn::ncm::IContentMetaDatabase', 19, ''), ('nn::ncm::IContentStorage', 0, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::ncm::IContentStorage', 1, ''), ('nn::ncm::IContentStorage', 2, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::ncm::IContentStorage', 3, ''), ('nn::ncm::IContentStorage', 4, ''), ('nn::ncm::IContentStorage', 5, ''), ('nn::ncm::IContentStorage', 6, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::ncm::IContentStorage', 7, ''), ('nn::ncm::IContentStorage', 8, ''), ('nn::ncm::IContentStorage', 9, ''), ('nn::ncm::IContentStorage', 10, '0 bytes in - 0 bytes out'), ('nn::ncm::IContentStorage', 11, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ncm::IContentStorage', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ncm::IContentStorage', 13, ''), ('nn::ncm::IContentStorage', 14, ''), ('nn::ncm::IContentStorage', 15, '0 bytes in - 0 bytes out'), ('nn::ncm::IContentStorage', 16, ''), ('nn::ncm::IContentStorage', 17, ''), ('nn::ncm::IContentStorage', 18, ''), ('nn::ncm::IContentStorage', 19, ''), ('nn::ncm::IContentStorage', 20, ''), ('nn::ncm::IContentStorage', 21, ''), ('nn::ncm::IContentStorage', 22, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ncm::IContentStorage', 23, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ncm::IContentStorage', 24, '0 bytes in - 0 bytes out'), ('nn::news::detail::ipc::INewlyArrivedEventHolder', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::news::detail::ipc::INewsDataService', 0, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::news::detail::ipc::INewsDataService', 1, ''), ('nn::news::detail::ipc::INewsDataService', 2, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, Buffer<0,6,0>'), ('nn::news::detail::ipc::INewsDataService', 3, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::news::detail::ipc::INewsDatabaseService', 0, ''), ('nn::news::detail::ipc::INewsDatabaseService', 1, ''), ('nn::news::detail::ipc::INewsDatabaseService', 2, ''), ('nn::news::detail::ipc::INewsDatabaseService', 3, ''), ('nn::news::detail::ipc::INewsDatabaseService', 4, ''), ('nn::news::detail::ipc::INewsDatabaseService', 5, ''), ('nn::news::detail::ipc::INewsService', 10100, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::news::detail::ipc::INewsService', 20100, '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,9,0>'), ('nn::news::detail::ipc::INewsService', 30100, ''), ('nn::news::detail::ipc::INewsService', 30101, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::news::detail::ipc::INewsService', 30200, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::news::detail::ipc::INewsService', 30300, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::news::detail::ipc::INewsService', 30400, ''), ('nn::news::detail::ipc::INewsService', 40100, ''), ('nn::news::detail::ipc::INewsService', 40101, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::news::detail::ipc::INewsService', 40200, '0 bytes in - 0 bytes out'), ('nn::news::detail::ipc::INewsService', 40201, '0 bytes in - 0 bytes out'), ('nn::news::detail::ipc::INewsService', 90100, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>'), ('nn::news::detail::ipc::IOverwriteEventHolder', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::news::detail::ipc::IServiceCreator', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::news::detail::ipc::IServiceCreator', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::news::detail::ipc::IServiceCreator', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::news::detail::ipc::IServiceCreator', 3, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::news::detail::ipc::IServiceCreator', 4, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nfc::am::detail::IAm', 0, '0 bytes in - 0 bytes out'), ('nn::nfc::am::detail::IAm', 1, '0 bytes in - 0 bytes out'), ('nn::nfc::am::detail::IAm', 2, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::nfc::am::detail::IAmManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nfc::detail::ISystem', 0, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>'), ('nn::nfc::detail::ISystem', 1, '0 bytes in - 0 bytes out'), ('nn::nfc::detail::ISystem', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nfc::detail::ISystem', 3, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::nfc::detail::ISystem', 100, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nfc::detail::ISystemManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nfc::detail::IUser', 0, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>'), ('nn::nfc::detail::IUser', 1, '0 bytes in - 0 bytes out'), ('nn::nfc::detail::IUser', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nfc::detail::IUser', 3, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::nfc::detail::IUserManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nfc::mifare::detail::IUser', 0, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>'), ('nn::nfc::mifare::detail::IUser', 1, '0 bytes in - 0 bytes out'), ('nn::nfc::mifare::detail::IUser', 2, '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>'), ('nn::nfc::mifare::detail::IUser', 3, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfc::mifare::detail::IUser', 4, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfc::mifare::detail::IUser', 5, '8 bytes in - 0 bytes out - Buffer<0,6,0>, InRaw<8,4,0>, Buffer<1,5,0>'), ('nn::nfc::mifare::detail::IUser', 6, '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>'), ('nn::nfc::mifare::detail::IUser', 7, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>'), ('nn::nfc::mifare::detail::IUser', 8, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfc::mifare::detail::IUser', 9, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfc::mifare::detail::IUser', 10, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nfc::mifare::detail::IUser', 11, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfc::mifare::detail::IUser', 12, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfc::mifare::detail::IUser', 13, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::nfc::mifare::detail::IUserManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nfp::detail::IDebug', 0, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>'), ('nn::nfp::detail::IDebug', 1, '0 bytes in - 0 bytes out'), ('nn::nfp::detail::IDebug', 2, '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>'), ('nn::nfp::detail::IDebug', 3, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 4, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 5, '0x10 bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, InRaw<4,4,0xC>'), ('nn::nfp::detail::IDebug', 6, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 7, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>'), ('nn::nfp::detail::IDebug', 8, '8 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 9, '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>'), ('nn::nfp::detail::IDebug', 10, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 11, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 12, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>'), ('nn::nfp::detail::IDebug', 13, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 14, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 15, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 16, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 17, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 18, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 19, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nfp::detail::IDebug', 20, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 21, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 22, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 23, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::nfp::detail::IDebug', 24, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>'), ('nn::nfp::detail::IDebug', 100, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 101, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 102, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 103, '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,0x19,0x100>'), ('nn::nfp::detail::IDebug', 104, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 105, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 106, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 200, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x298>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 201, '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,0x19,0x298>'), ('nn::nfp::detail::IDebug', 202, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 203, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>'), ('nn::nfp::detail::IDebug', 204, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::nfp::detail::IDebug', 205, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::nfp::detail::IDebug', 206, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>, InRaw<4,4,8>'), ('nn::nfp::detail::IDebug', 300, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>'), ('nn::nfp::detail::IDebug', 301, '0 bytes in - 0 bytes out'), ('nn::nfp::detail::IDebug', 302, '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>'), ('nn::nfp::detail::IDebug', 303, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>'), ('nn::nfp::detail::IDebug', 304, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 305, '0x10 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<8,4,0>, Buffer<1,5,0>, InRaw<8,8,8>'), ('nn::nfp::detail::IDebug', 306, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 307, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 308, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 309, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nfp::detail::IDebug', 310, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 311, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 312, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 313, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IDebug', 314, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::nfp::detail::IDebugManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nfp::detail::ISystem', 0, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>'), ('nn::nfp::detail::ISystem', 1, '0 bytes in - 0 bytes out'), ('nn::nfp::detail::ISystem', 2, '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>'), ('nn::nfp::detail::ISystem', 3, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 4, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 5, '0x10 bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, InRaw<4,4,0xC>'), ('nn::nfp::detail::ISystem', 6, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 10, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 11, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 13, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 14, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 15, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 16, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 17, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 18, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 19, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nfp::detail::ISystem', 20, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 21, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 23, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::nfp::detail::ISystem', 100, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 101, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 102, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 103, '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,0x19,0x100>'), ('nn::nfp::detail::ISystem', 104, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 105, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::ISystem', 106, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,4,0>'), ('nn::nfp::detail::ISystemManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nfp::detail::IUser', 0, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, Buffer<0,5,0>'), ('nn::nfp::detail::IUser', 1, '0 bytes in - 0 bytes out'), ('nn::nfp::detail::IUser', 2, '0 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>'), ('nn::nfp::detail::IUser', 3, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 4, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 5, '0x10 bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, InRaw<4,4,0xC>'), ('nn::nfp::detail::IUser', 6, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 7, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>'), ('nn::nfp::detail::IUser', 8, '8 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 9, '8 bytes in - 0 bytes out - InRaw<8,4,0>, Buffer<0,5,0>'), ('nn::nfp::detail::IUser', 10, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 11, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 12, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>'), ('nn::nfp::detail::IUser', 13, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x58>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 14, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 15, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 16, '8 bytes in - 0 bytes out - Buffer<0,0x1A,0x40>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 17, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 18, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 19, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nfp::detail::IUser', 20, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 21, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 22, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,4,0>'), ('nn::nfp::detail::IUser', 23, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::nfp::detail::IUser', 24, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>, Buffer<0,5,0>'), ('nn::nfp::detail::IUserManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nifm::detail::IGeneralService', 1, '0 bytes in - 0 bytes out - Buffer<0,0x1A,4>'), ('nn::nifm::detail::IGeneralService', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nifm::detail::IGeneralService', 4, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::nifm::detail::IGeneralService', 5, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x17C>'), ('nn::nifm::detail::IGeneralService', 6, '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::nifm::detail::IGeneralService', 7, '1 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, InRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 8, '0x10 bytes in - 0 bytes out - Buffer<0,0x1A,0x17C>, InRaw<0x10,1,0>'), ('nn::nifm::detail::IGeneralService', 9, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, Buffer<0,0x19,0x17C>'), ('nn::nifm::detail::IGeneralService', 10, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nifm::detail::IGeneralService', 11, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::nifm::detail::IGeneralService', 12, '0 bytes in - 4 bytes out - OutRaw<4,1,0>'), ('nn::nifm::detail::IGeneralService', 13, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x34>'), ('nn::nifm::detail::IGeneralService', 14, '0 bytes in - 0x10 bytes out - OutObject<0,0>, OutRaw<0x10,1,0>, Buffer<0,0x19,0x17C>'), ('nn::nifm::detail::IGeneralService', 15, '0 bytes in - 0x16 bytes out - OutRaw<0xD,1,0>, OutRaw<9,1,0xD>'), ('nn::nifm::detail::IGeneralService', 16, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 17, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 18, '0 bytes in - 3 bytes out - OutRaw<3,1,0>'), ('nn::nifm::detail::IGeneralService', 19, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 20, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 21, '0 bytes in - 1 bytes out - OutRaw<1,1,0>, Buffer<0,0x19,4>'), ('nn::nifm::detail::IGeneralService', 22, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 23, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::IGeneralService', 24, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::IGeneralService', 25, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::nifm::detail::IGeneralService', 26, '0 bytes in - 0 bytes out - Buffer<0,0x19,4>'), ('nn::nifm::detail::IGeneralService', 27, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0xC2>'), ('nn::nifm::detail::IGeneralService', 28, '0 bytes in - 0 bytes out - Buffer<0,0x19,0xC2>'), ('nn::nifm::detail::IGeneralService', 29, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 30, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IGeneralService', 31, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::nifm::detail::IGeneralService', 32, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x20C>'), ('nn::nifm::detail::IGeneralService', 33, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::INetworkProfile', 0, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, Buffer<0,0x19,0x17C>'), ('nn::nifm::detail::INetworkProfile', 1, '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>, InRaw<0x10,1,0>'), ('nn::nifm::detail::INetworkProfile', 2, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::nifm::detail::IRequest', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nifm::detail::IRequest', 1, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::IRequest', 2, '0 bytes in - 0 bytes out - OutHandle<0,1>, OutHandle<1,1>'), ('nn::nifm::detail::IRequest', 3, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::IRequest', 4, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::IRequest', 5, '0x24 bytes in - 0 bytes out - InRaw<0x24,4,0>'), ('nn::nifm::detail::IRequest', 6, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::nifm::detail::IRequest', 8, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 9, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nifm::detail::IRequest', 10, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 11, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 12, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 13, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 14, '2 bytes in - 0 bytes out - InRaw<1,1,0>, InRaw<1,1,1>'), ('nn::nifm::detail::IRequest', 15, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 16, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 17, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 18, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::nifm::detail::IRequest', 19, '0 bytes in - 0x24 bytes out - OutRaw<0x24,4,0>'), ('nn::nifm::detail::IRequest', 20, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::nifm::detail::IRequest', 21, '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::nifm::detail::IRequest', 22, '0 bytes in - 4 bytes out - Buffer<0,0x16,0x410>, OutRaw<4,4,0>'), ('nn::nifm::detail::IRequest', 23, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::nifm::detail::IRequest', 24, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::nifm::detail::IRequest', 25, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::nifm::detail::IScanRequest', 0, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::IScanRequest', 1, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::nifm::detail::IScanRequest', 2, '0 bytes in - 0 bytes out'), ('nn::nifm::detail::IScanRequest', 3, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::nifm::detail::IStaticService', 4, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::nifm::detail::IStaticService', 5, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::nim::detail::IAsyncData', 0, '0 bytes in - 0 bytes out'), ('nn::nim::detail::IAsyncData', 1, '0 bytes in - 0 bytes out'), ('nn::nim::detail::IAsyncData', 2, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::nim::detail::IAsyncData', 3, ''), ('nn::nim::detail::IAsyncData', 4, ''), ('nn::nim::detail::IAsyncProgressResult', 0, '0 bytes in - 0 bytes out'), ('nn::nim::detail::IAsyncProgressResult', 1, '0 bytes in - 0 bytes out'), ('nn::nim::detail::IAsyncProgressResult', 2, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::nim::detail::IAsyncResult', 0, '0 bytes in - 0 bytes out'), ('nn::nim::detail::IAsyncResult', 1, '0 bytes in - 0 bytes out'), ('nn::nim::detail::IAsyncValue', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::nim::detail::IAsyncValue', 1, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::nim::detail::IAsyncValue', 2, '0 bytes in - 0 bytes out'), ('nn::nim::detail::INetworkInstallManager', 0, ''), ('nn::nim::detail::INetworkInstallManager', 1, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nim::detail::INetworkInstallManager', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::nim::detail::INetworkInstallManager', 3, ''), ('nn::nim::detail::INetworkInstallManager', 4, ''), ('nn::nim::detail::INetworkInstallManager', 5, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nim::detail::INetworkInstallManager', 6, ''), ('nn::nim::detail::INetworkInstallManager', 7, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nim::detail::INetworkInstallManager', 8, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::nim::detail::INetworkInstallManager', 9, ''), ('nn::nim::detail::INetworkInstallManager', 10, ''), ('nn::nim::detail::INetworkInstallManager', 11, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nim::detail::INetworkInstallManager', 12, ''), ('nn::nim::detail::INetworkInstallManager', 14, ''), ('nn::nim::detail::INetworkInstallManager', 15, ''), ('nn::nim::detail::INetworkInstallManager', 16, ''), ('nn::nim::detail::INetworkInstallManager', 17, ''), ('nn::nim::detail::INetworkInstallManager', 18, ''), ('nn::nim::detail::INetworkInstallManager', 19, ''), ('nn::nim::detail::INetworkInstallManager', 20, ''), ('nn::nim::detail::INetworkInstallManager', 21, ''), ('nn::nim::detail::INetworkInstallManager', 22, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::nim::detail::INetworkInstallManager', 23, ''), ('nn::nim::detail::INetworkInstallManager', 24, ''), ('nn::nim::detail::INetworkInstallManager', 25, ''), ('nn::nim::detail::INetworkInstallManager', 26, ''), ('nn::nim::detail::INetworkInstallManager', 27, ''), ('nn::nim::detail::INetworkInstallManager', 28, ''), ('nn::nim::detail::INetworkInstallManager', 29, ''), ('nn::nim::detail::INetworkInstallManager', 30, ''), ('nn::nim::detail::INetworkInstallManager', 31, ''), ('nn::nim::detail::INetworkInstallManager', 32, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nim::detail::INetworkInstallManager', 33, ''), ('nn::nim::detail::INetworkInstallManager', 34, ''), ('nn::nim::detail::INetworkInstallManager', 35, ''), ('nn::nim::detail::INetworkInstallManager', 36, ''), ('nn::nim::detail::INetworkInstallManager', 37, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nim::detail::INetworkInstallManager', 38, ''), ('nn::nim::detail::INetworkInstallManager', 39, '0 bytes in - 0 bytes out'), ('nn::nim::detail::INetworkInstallManager', 40, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::nim::detail::INetworkInstallManager', 41, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::nim::detail::INetworkInstallManager', 42, ''), ('nn::nim::detail::INetworkInstallManager', 43, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::nim::detail::INetworkInstallManager', 44, ''), ('nn::nim::detail::INetworkInstallManager', 45, ''), ('nn::nim::detail::INetworkInstallManager', 46, '0 bytes in - 0 bytes out'), ('nn::nim::detail::IShopServiceManager', 0, ''), ('nn::nim::detail::IShopServiceManager', 1, ''), ('nn::nim::detail::IShopServiceManager', 100, ''), ('nn::nim::detail::IShopServiceManager', 101, ''), ('nn::nim::detail::IShopServiceManager', 102, ''), ('nn::nim::detail::IShopServiceManager', 103, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::nim::detail::IShopServiceManager', 104, ''), ('nn::nim::detail::IShopServiceManager', 105, ''), ('nn::nim::detail::IShopServiceManager', 106, ''), ('nn::nim::detail::IShopServiceManager', 107, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::nim::detail::IShopServiceManager', 200, ''), ('nn::nim::detail::IShopServiceManager', 300, ''), ('nn::nim::detail::IShopServiceManager', 301, ''), ('nn::nim::detail::IShopServiceManager', 302, ''), ('nn::nim::detail::IShopServiceManager', 303, ''), ('nn::nim::detail::IShopServiceManager', 400, ''), ('nn::nim::detail::IShopServiceManager', 500, ''), ('nn::nim::detail::IShopServiceManager', 501, ''), ('nn::npns::INpnsSystem', 1, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsSystem', 2, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::npns::INpnsSystem', 3, ''), ('nn::npns::INpnsSystem', 4, ''), ('nn::npns::INpnsSystem', 5, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::npns::INpnsSystem', 6, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsSystem', 7, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::npns::INpnsSystem', 11, ''), ('nn::npns::INpnsSystem', 12, ''), ('nn::npns::INpnsSystem', 13, ''), ('nn::npns::INpnsSystem', 21, ''), ('nn::npns::INpnsSystem', 22, ''), ('nn::npns::INpnsSystem', 23, ''), ('nn::npns::INpnsSystem', 24, ''), ('nn::npns::INpnsSystem', 25, ''), ('nn::npns::INpnsSystem', 31, ''), ('nn::npns::INpnsSystem', 32, ''), ('nn::npns::INpnsSystem', 101, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsSystem', 102, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsSystem', 103, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::npns::INpnsSystem', 104, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::npns::INpnsSystem', 105, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::npns::INpnsSystem', 111, ''), ('nn::npns::INpnsSystem', 112, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsSystem', 113, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsSystem', 114, ''), ('nn::npns::INpnsSystem', 115, ''), ('nn::npns::INpnsSystem', 201, ''), ('nn::npns::INpnsSystem', 202, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::npns::INpnsUser', 1, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsUser', 2, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::npns::INpnsUser', 3, ''), ('nn::npns::INpnsUser', 4, ''), ('nn::npns::INpnsUser', 5, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::npns::INpnsUser', 7, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::npns::INpnsUser', 21, ''), ('nn::npns::INpnsUser', 23, ''), ('nn::npns::INpnsUser', 25, ''), ('nn::npns::INpnsUser', 101, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsUser', 102, '0 bytes in - 0 bytes out'), ('nn::npns::INpnsUser', 103, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::npns::INpnsUser', 104, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::npns::INpnsUser', 111, ''), ('nn::ns::detail::IAccountProxyInterface', 0, ''), ('nn::ns::detail::IApplicationManagerInterface', 0, ''), ('nn::ns::detail::IApplicationManagerInterface', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 2, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IApplicationManagerInterface', 3, ''), ('nn::ns::detail::IApplicationManagerInterface', 4, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 5, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 6, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 7, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 8, ''), ('nn::ns::detail::IApplicationManagerInterface', 9, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 11, ''), ('nn::ns::detail::IApplicationManagerInterface', 16, ''), ('nn::ns::detail::IApplicationManagerInterface', 17, ''), ('nn::ns::detail::IApplicationManagerInterface', 19, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 21, ''), ('nn::ns::detail::IApplicationManagerInterface', 22, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 23, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 26, ''), ('nn::ns::detail::IApplicationManagerInterface', 27, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 30, ''), ('nn::ns::detail::IApplicationManagerInterface', 31, ''), ('nn::ns::detail::IApplicationManagerInterface', 32, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 33, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 35, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::ns::detail::IApplicationManagerInterface', 36, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::ns::detail::IApplicationManagerInterface', 37, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IApplicationManagerInterface', 38, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 39, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 40, ''), ('nn::ns::detail::IApplicationManagerInterface', 41, ''), ('nn::ns::detail::IApplicationManagerInterface', 42, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 43, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 44, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IApplicationManagerInterface', 45, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IApplicationManagerInterface', 46, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 47, ''), ('nn::ns::detail::IApplicationManagerInterface', 48, ''), ('nn::ns::detail::IApplicationManagerInterface', 49, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IApplicationManagerInterface', 52, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IApplicationManagerInterface', 53, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 54, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 55, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::ns::detail::IApplicationManagerInterface', 56, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::ns::detail::IApplicationManagerInterface', 57, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 58, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 59, ''), ('nn::ns::detail::IApplicationManagerInterface', 60, ''), ('nn::ns::detail::IApplicationManagerInterface', 61, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 62, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::IApplicationManagerInterface', 63, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 64, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 65, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::IApplicationManagerInterface', 66, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 67, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 68, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 69, ''), ('nn::ns::detail::IApplicationManagerInterface', 70, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 71, ''), ('nn::ns::detail::IApplicationManagerInterface', 80, ''), ('nn::ns::detail::IApplicationManagerInterface', 81, ''), ('nn::ns::detail::IApplicationManagerInterface', 82, ''), ('nn::ns::detail::IApplicationManagerInterface', 100, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 101, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 102, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 200, ''), ('nn::ns::detail::IApplicationManagerInterface', 201, ''), ('nn::ns::detail::IApplicationManagerInterface', 210, ''), ('nn::ns::detail::IApplicationManagerInterface', 220, ''), ('nn::ns::detail::IApplicationManagerInterface', 300, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IApplicationManagerInterface', 301, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IApplicationManagerInterface', 302, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 303, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 304, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 305, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 306, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 307, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 400, ''), ('nn::ns::detail::IApplicationManagerInterface', 401, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 402, ''), ('nn::ns::detail::IApplicationManagerInterface', 403, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ns::detail::IApplicationManagerInterface', 404, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 405, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IApplicationManagerInterface', 502, ''), ('nn::ns::detail::IApplicationManagerInterface', 503, ''), ('nn::ns::detail::IApplicationManagerInterface', 504, ''), ('nn::ns::detail::IApplicationManagerInterface', 505, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IApplicationManagerInterface', 506, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 507, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 508, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 600, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 601, ''), ('nn::ns::detail::IApplicationManagerInterface', 602, ''), ('nn::ns::detail::IApplicationManagerInterface', 603, ''), ('nn::ns::detail::IApplicationManagerInterface', 604, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::ns::detail::IApplicationManagerInterface', 605, ''), ('nn::ns::detail::IApplicationManagerInterface', 606, ''), ('nn::ns::detail::IApplicationManagerInterface', 700, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::ns::detail::IApplicationManagerInterface', 701, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 702, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 703, ''), ('nn::ns::detail::IApplicationManagerInterface', 704, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IApplicationManagerInterface', 705, ''), ('nn::ns::detail::IApplicationManagerInterface', 800, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 801, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IApplicationManagerInterface', 802, ''), ('nn::ns::detail::IApplicationManagerInterface', 900, ''), ('nn::ns::detail::IApplicationManagerInterface', 901, ''), ('nn::ns::detail::IApplicationManagerInterface', 902, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 903, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 904, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 905, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::ns::detail::IApplicationManagerInterface', 906, ''), ('nn::ns::detail::IApplicationManagerInterface', 907, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 908, ''), ('nn::ns::detail::IApplicationManagerInterface', 909, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1000, ''), ('nn::ns::detail::IApplicationManagerInterface', 1001, ''), ('nn::ns::detail::IApplicationManagerInterface', 1002, ''), ('nn::ns::detail::IApplicationManagerInterface', 1200, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1300, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1301, ''), ('nn::ns::detail::IApplicationManagerInterface', 1302, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1303, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1304, ''), ('nn::ns::detail::IApplicationManagerInterface', 1400, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 1500, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 1501, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1502, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 1504, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 1505, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 1600, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1601, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IApplicationManagerInterface', 1700, ''), ('nn::ns::detail::IApplicationManagerInterface', 1701, ''), ('nn::ns::detail::IApplicationManagerInterface', 1702, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1800, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1801, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1802, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1803, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IApplicationManagerInterface', 1900, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::ns::detail::IAsyncResult', 0, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IAsyncResult', 1, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IAsyncValue', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ns::detail::IAsyncValue', 1, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::ns::detail::IAsyncValue', 2, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IContentManagementInterface', 11, ''), ('nn::ns::detail::IContentManagementInterface', 43, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IContentManagementInterface', 47, ''), ('nn::ns::detail::IContentManagementInterface', 48, ''), ('nn::ns::detail::IContentManagementInterface', 600, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::ns::detail::IContentManagementInterface', 601, ''), ('nn::ns::detail::IContentManagementInterface', 605, ''), ('nn::ns::detail::IContentManagementInterface', 607, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::IDevelopInterface', 0, ''), ('nn::ns::detail::IDevelopInterface', 1, ''), ('nn::ns::detail::IDevelopInterface', 2, ''), ('nn::ns::detail::IDevelopInterface', 4, ''), ('nn::ns::detail::IDevelopInterface', 5, ''), ('nn::ns::detail::IDevelopInterface', 6, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IDevelopInterface', 7, ''), ('nn::ns::detail::IDevelopInterface', 8, ''), ('nn::ns::detail::IDevelopInterface', 9, ''), ('nn::ns::detail::IDocumentInterface', 21, ''), ('nn::ns::detail::IDocumentInterface', 23, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::ns::detail::IDownloadTaskInterface', 701, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IDownloadTaskInterface', 702, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IDownloadTaskInterface', 703, ''), ('nn::ns::detail::IDownloadTaskInterface', 704, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ns::detail::IDownloadTaskInterface', 705, ''), ('nn::ns::detail::IFactoryResetInterface', 100, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IFactoryResetInterface', 101, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IFactoryResetInterface', 102, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IProgressAsyncResult', 0, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IProgressAsyncResult', 1, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IProgressAsyncResult', 2, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::ns::detail::IProgressAsyncResult', 3, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IProgressMonitorForDeleteUserSaveDataAll', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::IProgressMonitorForDeleteUserSaveDataAll', 1, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::IProgressMonitorForDeleteUserSaveDataAll', 2, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IProgressMonitorForDeleteUserSaveDataAll', 10, '0 bytes in - 0x28 bytes out - OutRaw<0x28,8,0>'), ('nn::ns::detail::IServiceGetterInterface', 7994, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::IServiceGetterInterface', 7995, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::IServiceGetterInterface', 7996, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::IServiceGetterInterface', 7997, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::IServiceGetterInterface', 7998, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::IServiceGetterInterface', 7999, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::ISystemUpdateControl', 0, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::ISystemUpdateControl', 1, ''), ('nn::ns::detail::ISystemUpdateControl', 2, ''), ('nn::ns::detail::ISystemUpdateControl', 3, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::ns::detail::ISystemUpdateControl', 4, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateControl', 5, ''), ('nn::ns::detail::ISystemUpdateControl', 6, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::ns::detail::ISystemUpdateControl', 7, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::ISystemUpdateControl', 8, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateControl', 9, ''), ('nn::ns::detail::ISystemUpdateControl', 10, ''), ('nn::ns::detail::ISystemUpdateControl', 11, ''), ('nn::ns::detail::ISystemUpdateControl', 12, ''), ('nn::ns::detail::ISystemUpdateControl', 13, ''), ('nn::ns::detail::ISystemUpdateInterface', 0, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ns::detail::ISystemUpdateInterface', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ns::detail::ISystemUpdateInterface', 2, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateInterface', 3, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateInterface', 4, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateInterface', 5, ''), ('nn::ns::detail::ISystemUpdateInterface', 6, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateInterface', 9, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::ISystemUpdateInterface', 10, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateInterface', 11, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateInterface', 12, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::ISystemUpdateInterface', 13, '0 bytes in - 0 bytes out'), ('nn::ns::detail::ISystemUpdateInterface', 14, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ns::detail::ISystemUpdateInterface', 15, '0 bytes in - 0 bytes out'), ('nn::ns::detail::IVulnerabilityManagerInterface', 1200, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::nsd::detail::IManager', 10, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>'), ('nn::nsd::detail::IManager', 11, '0 bytes in - 0 bytes out - Buffer<0,0x16,8>'), ('nn::nsd::detail::IManager', 12, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::nsd::detail::IManager', 13, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::nsd::detail::IManager', 14, '4 bytes in - 0 bytes out - Buffer<0,5,0>, Buffer<1,6,0>, InRaw<4,4,0>'), ('nn::nsd::detail::IManager', 20, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>, Buffer<1,0x15,0x100>'), ('nn::nsd::detail::IManager', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x100>, Buffer<1,0x15,0x100>'), ('nn::nsd::detail::IManager', 30, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x108>, Buffer<1,0x15,0x10>'), ('nn::nsd::detail::IManager', 31, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x108>, Buffer<1,0x15,0x10>'), ('nn::nsd::detail::IManager', 40, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>'), ('nn::nsd::detail::IManager', 41, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x100>'), ('nn::nsd::detail::IManager', 42, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x100>'), ('nn::nsd::detail::IManager', 43, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0x16,0x100>'), ('nn::nsd::detail::IManager', 50, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x12BF0>'), ('nn::nsd::detail::IManager', 60, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x12BF0>'), ('nn::nsd::detail::IManager', 61, '0 bytes in - 0 bytes out - Buffer<0,0x15,0x12BF0>'), ('nn::nsd::detail::IManager', 62, '0 bytes in - 0 bytes out'), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 0, '0 bytes in - 0 bytes out'), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 1, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 2, '0 bytes in - 0 bytes out'), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 3, '0 bytes in - 0 bytes out'), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 4, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService', 5, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::ntc::detail::service::IStaticService', 0, '8 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::ntc::detail::service::IStaticService', 100, '0 bytes in - 0 bytes out'), ('nn::ntc::detail::service::IStaticService', 101, '0 bytes in - 0 bytes out'), ('nn::omm::detail::IOperationModeManager', 0, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::omm::detail::IOperationModeManager', 1, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::omm::detail::IOperationModeManager', 2, '0 bytes in - 0 bytes out'), ('nn::omm::detail::IOperationModeManager', 3, '0 bytes in - 0 bytes out'), ('nn::omm::detail::IOperationModeManager', 4, ''), ('nn::omm::detail::IOperationModeManager', 5, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::omm::detail::IOperationModeManager', 6, '0 bytes in - 0 bytes out'), ('nn::omm::detail::IOperationModeManager', 7, '0 bytes in - 0 bytes out'), ('nn::omm::detail::IOperationModeManager', 8, ''), ('nn::omm::detail::IOperationModeManager', 9, '0 bytes in - 0 bytes out'), ('nn::omm::detail::IOperationModeManager', 10, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::omm::detail::IOperationModeManager', 11, ''), ('nn::omm::detail::IOperationModeManager', 12, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::omm::detail::IOperationModeManager', 13, '0 bytes in - 0 bytes out'), ('nn::omm::detail::IOperationModeManager', 14, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::ovln::IReceiver', 0, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::ovln::IReceiver', 1, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::ovln::IReceiver', 2, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::ovln::IReceiver', 3, ''), ('nn::ovln::IReceiver', 4, ''), ('nn::ovln::IReceiverService', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ovln::ISender', 0, ''), ('nn::ovln::ISender', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ovln::ISenderService', 0, ''), ('nn::pcie::detail::IManager', 0, ''), ('nn::pcie::detail::IManager', 1, ''), ('nn::pcie::detail::ISession', 0, ''), ('nn::pcie::detail::ISession', 1, ''), ('nn::pcie::detail::ISession', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pcie::detail::ISession', 3, ''), ('nn::pcie::detail::ISession', 4, ''), ('nn::pcie::detail::ISession', 5, ''), ('nn::pcie::detail::ISession', 6, ''), ('nn::pcie::detail::ISession', 7, ''), ('nn::pcie::detail::ISession', 8, ''), ('nn::pcie::detail::ISession', 9, ''), ('nn::pcie::detail::ISession', 10, ''), ('nn::pcie::detail::ISession', 11, ''), ('nn::pcie::detail::ISession', 12, ''), ('nn::pcie::detail::ISession', 13, ''), ('nn::pcie::detail::ISession', 14, ''), ('nn::pcie::detail::ISession', 15, ''), ('nn::pcie::detail::ISession', 16, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::pcie::detail::ISession', 17, ''), ('nn::pcie::detail::ISession', 18, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pcie::detail::ISession', 19, ''), ('nn::pcie::detail::ISession', 20, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::pcie::detail::ISession', 21, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1001, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1002, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, Buffer<0,9,0>, InRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1003, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, Buffer<0,9,0>, InRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1004, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1005, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1006, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1007, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1008, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1009, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1010, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1011, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1012, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1031, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1032, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1033, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1034, '4 bytes in - 3 bytes out - OutRaw<3,1,0>, InRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1035, '0 bytes in - 3 bytes out - OutRaw<3,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1036, '3 bytes in - 0 bytes out - InRaw<3,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1037, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1038, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1039, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1042, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1043, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1044, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1045, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1046, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1047, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1201, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1202, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1203, '0 bytes in - 0 bytes out - Buffer<0,9,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1204, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1205, '0x20 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<0x20,1,0>, Buffer<0,9,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1206, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1207, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::pctl::detail::ipc::IParentalControlService', 1403, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1406, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1411, '0x10 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<0x10,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1421, '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<0x10,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1424, '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<0x10,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1432, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::pctl::detail::ipc::IParentalControlService', 1451, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1452, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1453, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1454, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1455, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1456, '0 bytes in - 0x34 bytes out - OutRaw<0x34,2,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1457, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::pctl::detail::ipc::IParentalControlService', 1471, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1472, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1473, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::pctl::detail::ipc::IParentalControlService', 1474, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1601, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1602, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1603, '0 bytes in - 2 bytes out - OutRaw<1,1,0>, OutRaw<1,1,1>'), ('nn::pctl::detail::ipc::IParentalControlService', 1901, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1902, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1941, '0 bytes in - 0 bytes out'), ('nn::pctl::detail::ipc::IParentalControlService', 1951, '0x34 bytes in - 0 bytes out - InRaw<0x34,2,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 1952, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2001, '0 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>, Buffer<0,9,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2002, '8 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2003, '0x10 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>, InRaw<0x10,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2004, '8 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2005, '0 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>'), ('nn::pctl::detail::ipc::IParentalControlService', 2006, '8 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>, InRaw<8,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2007, '1 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>, InRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2008, '0xC bytes in - 0 bytes out - InRaw<8,4,4>, InRaw<1,1,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2009, '0x10 bytes in - 0xC bytes out - OutRaw<8,4,0>, OutHandle<0,1>, OutRaw<4,4,8>, Buffer<0,6,0>, InRaw<0x10,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2010, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<8,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2011, '0x10 bytes in - 0xC bytes out - OutRaw<8,4,0>, OutHandle<0,1>, OutRaw<4,4,8>, Buffer<0,0xA,0>, InRaw<0x10,8,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2012, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<8,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2013, '0 bytes in - 8 bytes out - OutRaw<8,4,0>, OutHandle<0,1>'), ('nn::pctl::detail::ipc::IParentalControlService', 2014, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::pctl::detail::ipc::IParentalControlService', 2015, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,4,0>'), ('nn::pctl::detail::ipc::IParentalControlServiceFactory', 0, '8 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<8,8,0>'), ('nn::pcv::IArbitrationManager', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pcv::IImmediateManager', 0, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 0, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::pcv::detail::IPcvService', 1, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::pcv::detail::IPcvService', 2, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 3, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 4, '4 bytes in - 0xC bytes out - OutRaw<0xC,4,0>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 5, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 6, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 7, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::pcv::detail::IPcvService', 8, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::pcv::detail::IPcvService', 9, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 10, '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 11, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 12, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 13, '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 14, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 15, '0 bytes in - 0 bytes out'), ('nn::pcv::detail::IPcvService', 16, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pcv::detail::IPcvService', 17, '0 bytes in - 0 bytes out'), ('nn::pcv::detail::IPcvService', 18, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 19, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 20, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 21, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::pcv::detail::IPcvService', 22, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 23, '8 bytes in - 4 bytes out - Buffer<0,0xA,0>, Buffer<1,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::pcv::detail::IPcvService', 24, '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 25, '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::pcv::detail::IPcvService', 26, '4 bytes in - 4 bytes out - Buffer<0,0xA,0>, OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::pdm::detail::INotifyService', 0, ''), ('nn::pdm::detail::INotifyService', 2, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::pdm::detail::INotifyService', 3, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::pdm::detail::INotifyService', 4, '0 bytes in - 0 bytes out'), ('nn::pdm::detail::INotifyService', 5, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::pdm::detail::IQueryService', 0, ''), ('nn::pdm::detail::IQueryService', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::pdm::detail::IQueryService', 2, ''), ('nn::pdm::detail::IQueryService', 3, ''), ('nn::pdm::detail::IQueryService', 4, ''), ('nn::pdm::detail::IQueryService', 5, ''), ('nn::pdm::detail::IQueryService', 6, ''), ('nn::pdm::detail::IQueryService', 7, ''), ('nn::pdm::detail::IQueryService', 8, ''), ('nn::pdm::detail::IQueryService', 9, ''), ('nn::pdm::detail::IQueryService', 10, ''), ('nn::pinmux::IManager', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::pinmux::ISession', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pinmux::ISession', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pinmux::ISession', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pl::detail::ISharedFontManager', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pl::detail::ISharedFontManager', 1, '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>'), ('nn::pl::detail::ISharedFontManager', 2, '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>'), ('nn::pl::detail::ISharedFontManager', 3, '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>'), ('nn::pl::detail::ISharedFontManager', 4, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::pl::detail::ISharedFontManager', 5, '8 bytes in - 8 bytes out - OutRaw<1,1,0>, OutRaw<4,4,4>, Buffer<0,6,0>, Buffer<1,6,0>, Buffer<2,6,0>, InRaw<8,1,0>'), ('nn::pm::detail::IBootModeInterface', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pm::detail::IBootModeInterface', 1, '0 bytes in - 0 bytes out'), ('nn::pm::detail::IInformationInterface', 0, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::pm::detail::IShellInterface', 0, ''), ('nn::pm::detail::IShellInterface', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pm::detail::IShellInterface', 2, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pm::detail::IShellInterface', 3, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::pm::detail::IShellInterface', 4, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::pm::detail::IShellInterface', 5, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pm::detail::IShellInterface', 6, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pm::detail::IShellInterface', 7, '0 bytes in - 0 bytes out'), ('nn::pm::detail::IShellInterface', 8, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::prepo::detail::ipc::IPrepoService', 10100, '8 bytes in - 0 bytes out - takes pid - Buffer<0,9,0>, Buffer<1,5,0>, InRaw<8,8,0>'), ('nn::prepo::detail::ipc::IPrepoService', 10101, '0x18 bytes in - 0 bytes out - takes pid - InRaw<0x10,8,0>, Buffer<0,9,0>, Buffer<1,5,0>, InRaw<8,8,0x10>'), ('nn::prepo::detail::ipc::IPrepoService', 10200, '0 bytes in - 0 bytes out'), ('nn::prepo::detail::ipc::IPrepoService', 10300, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::prepo::detail::ipc::IPrepoService', 20100, '8 bytes in - 0 bytes out - Buffer<0,9,0>, InRaw<8,8,0>, Buffer<1,5,0>'), ('nn::prepo::detail::ipc::IPrepoService', 20101, '0x18 bytes in - 0 bytes out - InRaw<0x10,8,0>, Buffer<0,9,0>, InRaw<8,8,0x10>, Buffer<1,5,0>'), ('nn::prepo::detail::ipc::IPrepoService', 30100, '0 bytes in - 0 bytes out'), ('nn::prepo::detail::ipc::IPrepoService', 40100, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::prepo::detail::ipc::IPrepoService', 40101, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::prepo::detail::ipc::IPrepoService', 90100, '0 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>'), ('nn::psc::sf::IPmControl', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::psc::sf::IPmControl', 1, '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::psc::sf::IPmControl', 2, '0 bytes in - 0 bytes out'), ('nn::psc::sf::IPmControl', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::psc::sf::IPmControl', 4, '0 bytes in - 0 bytes out'), ('nn::psc::sf::IPmControl', 5, '0 bytes in - 0 bytes out'), ('nn::psc::sf::IPmControl', 6, ''), ('nn::psc::sf::IPmModule', 0, ''), ('nn::psc::sf::IPmModule', 1, ''), ('nn::psc::sf::IPmModule', 2, '0 bytes in - 0 bytes out'), ('nn::psc::sf::IPmModule', 3, '0 bytes in - 0 bytes out'), ('nn::psc::sf::IPmService', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::psm::IPsmServer', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::psm::IPsmServer', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::psm::IPsmServer', 2, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 3, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 4, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::psm::IPsmServer', 5, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 6, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 7, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::psm::IPsmServer', 8, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 9, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 10, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 11, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmServer', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::psm::IPsmServer', 13, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::psm::IPsmServer', 14, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::psm::IPsmServer', 15, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::psm::IPsmServer', 16, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::psm::IPsmServer', 17, ''), ('nn::psm::IPsmServer', 18, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::psm::IPsmSession', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::psm::IPsmSession', 1, '0 bytes in - 0 bytes out'), ('nn::psm::IPsmSession', 2, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::psm::IPsmSession', 3, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::psm::IPsmSession', 4, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::pwm::IChannelSession', 0, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::pwm::IChannelSession', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::pwm::IChannelSession', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::pwm::IChannelSession', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::pwm::IChannelSession', 4, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::pwm::IChannelSession', 5, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::pwm::IManager', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::pwm::IManager', 1, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::ro::detail::IRoInterface', 0, '0x28 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<8,8,0x18>, InRaw<8,8,0x20>'), ('nn::ro::detail::IRoInterface', 1, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::ro::detail::IRoInterface', 2, '0x18 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>'), ('nn::ro::detail::IRoInterface', 3, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::ro::detail::IRoInterface', 4, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>, InHandle<0,1>'), ('nn::sasbus::IManager', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::sasbus::ISession', 0, ''), ('nn::sasbus::ISession', 1, ''), ('nn::sasbus::ISession', 2, ''), ('nn::sasbus::ISession', 3, '0 bytes in - 0 bytes out'), ('nn::settings::IFactorySettingsServer', 0, '0 bytes in - 6 bytes out - OutRaw<6,1,0>'), ('nn::settings::IFactorySettingsServer', 1, '0 bytes in - 0x1E bytes out - OutRaw<0x1E,1,0>'), ('nn::settings::IFactorySettingsServer', 2, '0 bytes in - 6 bytes out - OutRaw<6,2,0>'), ('nn::settings::IFactorySettingsServer', 3, '0 bytes in - 6 bytes out - OutRaw<6,2,0>'), ('nn::settings::IFactorySettingsServer', 4, '0 bytes in - 6 bytes out - OutRaw<6,2,0>'), ('nn::settings::IFactorySettingsServer', 5, '0 bytes in - 6 bytes out - OutRaw<6,2,0>'), ('nn::settings::IFactorySettingsServer', 6, '0 bytes in - 6 bytes out - OutRaw<6,1,0>'), ('nn::settings::IFactorySettingsServer', 7, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::IFactorySettingsServer', 8, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>'), ('nn::settings::IFactorySettingsServer', 9, '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>'), ('nn::settings::IFactorySettingsServer', 10, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::settings::IFactorySettingsServer', 11, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::settings::IFactorySettingsServer', 12, '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>'), ('nn::settings::IFactorySettingsServer', 14, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x180>'), ('nn::settings::IFactorySettingsServer', 15, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x240>'), ('nn::settings::IFactorySettingsServer', 16, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x134>'), ('nn::settings::IFactorySettingsServer', 17, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x804>'), ('nn::settings::IFactorySettingsServer', 18, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x134>'), ('nn::settings::IFactorySettingsServer', 19, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x400>'), ('nn::settings::IFactorySettingsServer', 20, '0 bytes in - 0x54 bytes out - OutRaw<0x54,4,0>'), ('nn::settings::IFactorySettingsServer', 21, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x244>'), ('nn::settings::IFactorySettingsServer', 22, '0 bytes in - 0x5A bytes out - OutRaw<0x5A,2,0>'), ('nn::settings::IFirmwareDebugSettingsServer', 2, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>, Buffer<2,5,0>'), ('nn::settings::IFirmwareDebugSettingsServer', 3, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>'), ('nn::settings::IFirmwareDebugSettingsServer', 4, '0 bytes in - 0 bytes out - OutObject<0,0>, Buffer<0,0x19,0x48>'), ('nn::settings::ISettingsItemKeyIterator', 0, '0 bytes in - 0 bytes out'), ('nn::settings::ISettingsItemKeyIterator', 1, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::settings::ISettingsItemKeyIterator', 2, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>'), ('nn::settings::ISettingsServer', 0, '0 bytes in - 8 bytes out - OutRaw<8,1,0>'), ('nn::settings::ISettingsServer', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>'), ('nn::settings::ISettingsServer', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISettingsServer', 4, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 0, '8 bytes in - 0 bytes out - InRaw<8,1,0>'), ('nn::settings::ISystemSettingsServer', 1, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::settings::ISystemSettingsServer', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::settings::ISystemSettingsServer', 3, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>'), ('nn::settings::ISystemSettingsServer', 4, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>'), ('nn::settings::ISystemSettingsServer', 7, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 8, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 9, '0 bytes in - 0x28 bytes out - OutRaw<0x28,4,0>'), ('nn::settings::ISystemSettingsServer', 10, '0x28 bytes in - 0 bytes out - InRaw<0x28,4,0>'), ('nn::settings::ISystemSettingsServer', 11, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::settings::ISystemSettingsServer', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::settings::ISystemSettingsServer', 13, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::settings::ISystemSettingsServer', 14, '0x10 bytes in - 0 bytes out - InRaw<0x10,1,0>'), ('nn::settings::ISystemSettingsServer', 15, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>'), ('nn::settings::ISystemSettingsServer', 16, '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>'), ('nn::settings::ISystemSettingsServer', 17, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 18, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 19, '4 bytes in - 8 bytes out - OutRaw<8,4,0>, InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 20, '0xC bytes in - 0 bytes out - InRaw<8,4,0>, InRaw<4,4,8>'), ('nn::settings::ISystemSettingsServer', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::settings::ISystemSettingsServer', 22, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::settings::ISystemSettingsServer', 23, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 24, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 25, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 26, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 27, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 28, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 29, '0 bytes in - 0x18 bytes out - OutRaw<0x18,4,0>'), ('nn::settings::ISystemSettingsServer', 30, '0x18 bytes in - 0 bytes out - InRaw<0x18,4,0>'), ('nn::settings::ISystemSettingsServer', 31, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::settings::ISystemSettingsServer', 32, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::settings::ISystemSettingsServer', 35, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 36, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 37, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>'), ('nn::settings::ISystemSettingsServer', 38, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<2,6,0>, Buffer<0,0x19,0x48>, Buffer<1,0x19,0x48>'), ('nn::settings::ISystemSettingsServer', 39, '0 bytes in - 0x20 bytes out - OutRaw<0x20,4,0>'), ('nn::settings::ISystemSettingsServer', 40, '0x20 bytes in - 0 bytes out - InRaw<0x20,4,0>'), ('nn::settings::ISystemSettingsServer', 41, '0 bytes in - 0 bytes out - Buffer<0,0x1A,0x100>'), ('nn::settings::ISystemSettingsServer', 42, '0 bytes in - 0 bytes out - Buffer<0,0x19,0x100>'), ('nn::settings::ISystemSettingsServer', 43, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 44, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::settings::ISystemSettingsServer', 45, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 46, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 47, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 48, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 49, '0 bytes in - 8 bytes out - OutRaw<8,4,0>'), ('nn::settings::ISystemSettingsServer', 50, '8 bytes in - 0 bytes out - InRaw<8,4,0>'), ('nn::settings::ISystemSettingsServer', 51, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::settings::ISystemSettingsServer', 52, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::settings::ISystemSettingsServer', 53, '0 bytes in - 0x24 bytes out - OutRaw<0x24,1,0>'), ('nn::settings::ISystemSettingsServer', 54, '0x24 bytes in - 0 bytes out - InRaw<0x24,1,0>'), ('nn::settings::ISystemSettingsServer', 55, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::settings::ISystemSettingsServer', 56, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>'), ('nn::settings::ISystemSettingsServer', 57, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 58, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>'), ('nn::settings::ISystemSettingsServer', 59, '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>'), ('nn::settings::ISystemSettingsServer', 60, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 61, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 62, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 63, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 64, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 65, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 66, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 67, '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>'), ('nn::settings::ISystemSettingsServer', 68, '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>'), ('nn::settings::ISystemSettingsServer', 69, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 70, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 71, '0 bytes in - 0xC bytes out - OutRaw<0xC,4,0>'), ('nn::settings::ISystemSettingsServer', 72, '0xC bytes in - 0 bytes out - InRaw<0xC,4,0>'), ('nn::settings::ISystemSettingsServer', 73, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 74, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 75, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>'), ('nn::settings::ISystemSettingsServer', 76, '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>'), ('nn::settings::ISystemSettingsServer', 77, '0 bytes in - 0 bytes out - Buffer<0,0x16,0x80>'), ('nn::settings::ISystemSettingsServer', 78, '0 bytes in - 0 bytes out - Buffer<0,0x15,0x80>'), ('nn::settings::ISystemSettingsServer', 79, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 80, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 81, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 82, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::settings::ISystemSettingsServer', 83, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::settings::ISystemSettingsServer', 84, '0 bytes in - 0x18 bytes out - OutRaw<0x18,1,0>'), ('nn::settings::ISystemSettingsServer', 85, '0x18 bytes in - 0 bytes out - InRaw<0x18,1,0>'), ('nn::settings::ISystemSettingsServer', 86, '0 bytes in - 0x18 bytes out - OutRaw<0x18,4,0>'), ('nn::settings::ISystemSettingsServer', 87, '0x18 bytes in - 0 bytes out - InRaw<0x18,4,0>'), ('nn::settings::ISystemSettingsServer', 88, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 89, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 90, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::settings::ISystemSettingsServer', 91, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::settings::ISystemSettingsServer', 92, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::settings::ISystemSettingsServer', 93, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::settings::ISystemSettingsServer', 94, '0 bytes in - 0x10 bytes out - OutRaw<0x10,8,0>'), ('nn::settings::ISystemSettingsServer', 95, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 96, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 97, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::settings::ISystemSettingsServer', 98, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::settings::ISystemSettingsServer', 99, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 100, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 101, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 102, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 103, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 104, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 105, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::settings::ISystemSettingsServer', 106, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::settings::ISystemSettingsServer', 107, '0 bytes in - 0x2C bytes out - OutRaw<0x2C,4,0>'), ('nn::settings::ISystemSettingsServer', 108, '0x2C bytes in - 0 bytes out - InRaw<0x2C,4,0>'), ('nn::settings::ISystemSettingsServer', 109, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 110, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 111, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 112, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 113, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 114, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 115, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 116, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 117, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 118, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 119, '1 bytes in - 3 bytes out - OutRaw<1,1,0>, OutRaw<1,1,1>, OutRaw<1,1,2>, InRaw<1,1,0>'), ('nn::settings::ISystemSettingsServer', 120, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::settings::ISystemSettingsServer', 121, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::sm::detail::IManagerInterface', 0, '8 bytes in - 0 bytes out - InRaw<8,8,0>, Buffer<0,5,0>, Buffer<1,5,0>'), ('nn::sm::detail::IManagerInterface', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::sm::detail::IUserInterface', 0, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::sm::detail::IUserInterface', 1, '8 bytes in - 0 bytes out - OutHandle<0,2>, InRaw<8,1,0>'), ('nn::sm::detail::IUserInterface', 2, '0x10 bytes in - 0 bytes out - OutHandle<0,2>, InRaw<8,1,0>, InRaw<4,4,0xC>, InRaw<1,1,8>'), ('nn::sm::detail::IUserInterface', 3, '8 bytes in - 0 bytes out - InRaw<8,1,0>'), ('nn::socket::resolver::IResolver', 0, '4 bytes in - 0 bytes out - Buffer<0,5,0>, InRaw<4,4,0>'), ('nn::socket::resolver::IResolver', 1, '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,6,0>'), ('nn::socket::resolver::IResolver', 2, '0x10 bytes in - 0xC bytes out - takes pid - InRaw<4,4,4>, InRaw<8,8,8>, InRaw<1,1,0>, Buffer<0,5,0>, OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<1,6,0>, OutRaw<4,4,8>'), ('nn::socket::resolver::IResolver', 3, '0x18 bytes in - 0xC bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,0x10>, Buffer<0,5,0>, InRaw<4,4,4>, InRaw<4,4,8>, OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<1,6,0>, OutRaw<4,4,8>'), ('nn::socket::resolver::IResolver', 4, '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,6,0>'), ('nn::socket::resolver::IResolver', 5, '4 bytes in - 0 bytes out - InRaw<4,4,0>, Buffer<0,6,0>'), ('nn::socket::resolver::IResolver', 6, '0x10 bytes in - 0xC bytes out - takes pid - InRaw<4,4,4>, InRaw<8,8,8>, InRaw<1,1,0>, Buffer<0,5,0>, Buffer<1,5,0>, Buffer<2,5,0>, Buffer<3,6,0>, OutRaw<4,4,0>, OutRaw<4,4,4>, OutRaw<4,4,8>'), ('nn::socket::resolver::IResolver', 7, '0x10 bytes in - 8 bytes out - takes pid - InRaw<4,4,0>, InRaw<8,8,8>, Buffer<0,5,0>, Buffer<1,6,0>, Buffer<2,6,0>, InRaw<4,4,4>, OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::socket::resolver::IResolver', 8, '8 bytes in - 4 bytes out - takes pid - InRaw<8,8,0>, OutRaw<4,4,0>'), ('nn::socket::resolver::IResolver', 9, '0x10 bytes in - 0 bytes out - takes pid - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::socket::sf::IClient', 0, '0x30 bytes in - 4 bytes out - takes pid - OutRaw<4,4,0>, InRaw<8,8,0x20>, InHandle<0,1>, InRaw<8,8,0x28>, InRaw<0x20,4,0>'), ('nn::socket::sf::IClient', 1, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::socket::sf::IClient', 2, '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::socket::sf::IClient', 3, '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::socket::sf::IClient', 4, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, InRaw<4,4,0>'), ('nn::socket::sf::IClient', 5, '0x20 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, Buffer<2,0x21,0>, Buffer<3,0x22,0>, Buffer<4,0x22,0>, Buffer<5,0x22,0>, InRaw<0x18,8,8>'), ('nn::socket::sf::IClient', 6, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::socket::sf::IClient', 7, '0 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, OutRaw<4,4,8>, Buffer<2,0x21,0>'), ('nn::socket::sf::IClient', 8, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>'), ('nn::socket::sf::IClient', 9, '8 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>, Buffer<1,0x22,0>, OutRaw<4,4,8>'), ('nn::socket::sf::IClient', 10, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>'), ('nn::socket::sf::IClient', 11, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>, Buffer<1,0x21,0>'), ('nn::socket::sf::IClient', 12, '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>'), ('nn::socket::sf::IClient', 13, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>'), ('nn::socket::sf::IClient', 14, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>'), ('nn::socket::sf::IClient', 15, '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>'), ('nn::socket::sf::IClient', 16, '4 bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, OutRaw<4,4,8>'), ('nn::socket::sf::IClient', 17, '0xC bytes in - 0xC bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, Buffer<0,0x22,0>, OutRaw<4,4,8>'), ('nn::socket::sf::IClient', 18, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::socket::sf::IClient', 19, '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, Buffer<2,0x21,0>, Buffer<3,0x21,0>, Buffer<4,0x22,0>, Buffer<5,0x22,0>, Buffer<6,0x22,0>, Buffer<7,0x22,0>, InRaw<4,4,8>'), ('nn::socket::sf::IClient', 20, '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::socket::sf::IClient', 21, '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, Buffer<0,0x21,0>'), ('nn::socket::sf::IClient', 22, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::socket::sf::IClient', 23, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>'), ('nn::socket::sf::IClient', 24, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>'), ('nn::socket::sf::IClient', 25, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>'), ('nn::socket::sf::IClient', 26, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>'), ('nn::socket::sf::IClient', 27, '0x10 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::socket::sf::IClient', 28, '8 bytes in - 8 bytes out - takes pid - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,0>, Buffer<0,0x22,0>'), ('nn::socket::sf::IClient', 29, '0x20 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x22,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<0x10,8,0x10>'), ('nn::socket::sf::IClient', 30, '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, Buffer<0,0x21,0>, InRaw<4,4,4>, Buffer<1,0x21,0>, InRaw<4,4,8>'), ('nn::spl::detail::IGeneralInterface', 0, '4 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<4,4,0>'), ('nn::spl::detail::IGeneralInterface', 1, ''), ('nn::spl::detail::IGeneralInterface', 2, ''), ('nn::spl::detail::IGeneralInterface', 3, ''), ('nn::spl::detail::IGeneralInterface', 4, ''), ('nn::spl::detail::IGeneralInterface', 5, ''), ('nn::spl::detail::IGeneralInterface', 7, ''), ('nn::spl::detail::IGeneralInterface', 9, ''), ('nn::spl::detail::IGeneralInterface', 10, ''), ('nn::spl::detail::IGeneralInterface', 11, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::spl::detail::IGeneralInterface', 12, ''), ('nn::spl::detail::IGeneralInterface', 13, ''), ('nn::spl::detail::IGeneralInterface', 14, ''), ('nn::spl::detail::IGeneralInterface', 15, ''), ('nn::spl::detail::IGeneralInterface', 16, ''), ('nn::spl::detail::IGeneralInterface', 17, ''), ('nn::spl::detail::IGeneralInterface', 18, ''), ('nn::spl::detail::IGeneralInterface', 19, ''), ('nn::spl::detail::IGeneralInterface', 20, ''), ('nn::spl::detail::IGeneralInterface', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::spl::detail::IGeneralInterface', 22, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::spl::detail::IGeneralInterface', 23, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::spl::detail::IGeneralInterface', 24, ''), ('nn::spl::detail::IGeneralInterface', 25, ''), ('nn::spl::detail::IRandomInterface', 0, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::spsm::detail::IPowerStateInterface', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::spsm::detail::IPowerStateInterface', 1, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::spsm::detail::IPowerStateInterface', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::spsm::detail::IPowerStateInterface', 3, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::spsm::detail::IPowerStateInterface', 4, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::spsm::detail::IPowerStateInterface', 5, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::spsm::detail::IPowerStateInterface', 6, ''), ('nn::spsm::detail::IPowerStateInterface', 7, '0 bytes in - 0 bytes out'), ('nn::spsm::detail::IPowerStateInterface', 8, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::spsm::detail::IPowerStateInterface', 9, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::spsm::detail::IPowerStateInterface', 10, '0 bytes in - 0 bytes out'), ('nn::spsm::detail::IPowerStateInterface', 11, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ssl::sf::ISslConnection', 0, '4 bytes in - 4 bytes out - InRaw<4,4,0>, OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 1, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::ssl::sf::ISslConnection', 2, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 3, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 4, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 5, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 6, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 7, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 8, '0 bytes in - 0 bytes out'), ('nn::ssl::sf::ISslConnection', 9, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, Buffer<0,6,0>'), ('nn::ssl::sf::ISslConnection', 10, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ssl::sf::ISslConnection', 11, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,5,0>'), ('nn::ssl::sf::ISslConnection', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 13, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>'), ('nn::ssl::sf::ISslConnection', 14, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::ssl::sf::ISslConnection', 15, '0 bytes in - 0 bytes out'), ('nn::ssl::sf::ISslConnection', 16, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 17, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 18, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 19, '0 bytes in - 0 bytes out'), ('nn::ssl::sf::ISslConnection', 20, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 22, '8 bytes in - 0 bytes out - InRaw<4,4,4>, InRaw<1,1,0>'), ('nn::ssl::sf::ISslConnection', 23, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::ssl::sf::ISslConnection', 24, '0 bytes in - 8 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::ssl::sf::ISslContext', 0, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::ssl::sf::ISslContext', 1, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::ssl::sf::ISslContext', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::ssl::sf::ISslContext', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslContext', 4, '4 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,5,0>, InRaw<4,4,0>'), ('nn::ssl::sf::ISslContext', 5, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,5,0>, Buffer<1,5,0>'), ('nn::ssl::sf::ISslContext', 6, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ssl::sf::ISslContext', 7, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ssl::sf::ISslContext', 8, '4 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<4,4,0>'), ('nn::ssl::sf::ISslContext', 9, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::ssl::sf::ISslContext', 10, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,5,0>'), ('nn::ssl::sf::ISslContext', 11, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::ssl::sf::ISslService', 0, '0x10 bytes in - 0 bytes out - takes pid - OutObject<0,0>, InRaw<4,4,0>, InRaw<8,8,8>'), ('nn::ssl::sf::ISslService', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::ssl::sf::ISslService', 2, '0 bytes in - 4 bytes out - Buffer<0,6,0>, OutRaw<4,4,0>, Buffer<1,5,0>'), ('nn::ssl::sf::ISslService', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,5,0>'), ('nn::ssl::sf::ISslService', 4, '8 bytes in - 0 bytes out - Buffer<0,6,0>, Buffer<1,5,0>, InRaw<8,8,0>'), ('nn::ssl::sf::ISslService', 5, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::tc::IManager', 0, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::tc::IManager', 1, '4 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<4,4,0>'), ('nn::tc::IManager', 2, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::tc::IManager', 3, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::tc::IManager', 4, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::tc::IManager', 5, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::tc::IManager', 6, '0 bytes in - 0 bytes out'), ('nn::tc::IManager', 7, '0 bytes in - 0 bytes out'), ('nn::tc::IManager', 8, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::timesrv::detail::service::IStaticService', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::timesrv::detail::service::IStaticService', 1, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::timesrv::detail::service::IStaticService', 2, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::timesrv::detail::service::IStaticService', 3, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::timesrv::detail::service::IStaticService', 4, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::timesrv::detail::service::IStaticService', 100, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::timesrv::detail::service::IStaticService', 101, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::timesrv::detail::service::IStaticService', 200, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::timesrv::detail::service::ISteadyClock', 0, '0 bytes in - 0x18 bytes out - OutRaw<0x18,8,0>'), ('nn::timesrv::detail::service::ISteadyClock', 2, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::timesrv::detail::service::ISteadyClock', 3, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::timesrv::detail::service::ISteadyClock', 100, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::timesrv::detail::service::ISteadyClock', 101, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::timesrv::detail::service::ISteadyClock', 102, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::timesrv::detail::service::ISteadyClock', 200, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::timesrv::detail::service::ISteadyClock', 201, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::timesrv::detail::service::ISystemClock', 0, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::timesrv::detail::service::ISystemClock', 1, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::timesrv::detail::service::ISystemClock', 2, '0 bytes in - 0x20 bytes out - OutRaw<0x20,8,0>'), ('nn::timesrv::detail::service::ISystemClock', 3, '0x20 bytes in - 0 bytes out - InRaw<0x20,8,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 0, '0 bytes in - 0x24 bytes out - OutRaw<0x24,1,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 1, '0x24 bytes in - 0 bytes out - InRaw<0x24,1,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 2, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 3, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, InRaw<4,4,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 4, '0x24 bytes in - 0 bytes out - Buffer<0,0x16,0x4000>, InRaw<0x24,1,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 5, '0 bytes in - 0x10 bytes out - OutRaw<0x10,1,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 100, '8 bytes in - 0x20 bytes out - OutRaw<8,2,0>, OutRaw<0x18,4,8>, InRaw<8,8,0>, Buffer<0,0x15,0x4000>'), ('nn::timesrv::detail::service::ITimeZoneService', 101, '8 bytes in - 0x20 bytes out - OutRaw<8,2,0>, OutRaw<0x18,4,8>, InRaw<8,8,0>'), ('nn::timesrv::detail::service::ITimeZoneService', 201, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<1,0xA,0>, InRaw<8,2,0>, Buffer<0,0x15,0x4000>'), ('nn::timesrv::detail::service::ITimeZoneService', 202, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,0xA,0>, InRaw<8,2,0>'), ('nn::tma::IHtcManager', 0, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,6,0>, Buffer<1,5,0>'), ('nn::tma::IHtcManager', 1, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, Buffer<0,5,0>'), ('nn::tma::IHtcManager', 2, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::tma::IHtcManager', 3, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::tma::IHtcManager', 4, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::tma::IHtcManager', 5, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::tma::IHtcManager', 6, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::tma::IHtcManager', 7, '0 bytes in - 0 bytes out - Buffer<0,6,0>'), ('nn::tma::IHtcManager', 8, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::tma::IHtcsManager', 0, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::tma::IHtcsManager', 1, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>'), ('nn::tma::IHtcsManager', 2, '0x48 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0x44>, InRaw<0x42,2,0>'), ('nn::tma::IHtcsManager', 3, '0x48 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0x44>, InRaw<0x42,2,0>'), ('nn::tma::IHtcsManager', 4, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::tma::IHtcsManager', 5, '4 bytes in - 0x4C bytes out - OutRaw<4,4,0x44>, OutRaw<4,4,0x48>, OutRaw<0x42,2,0>, InRaw<4,4,0>'), ('nn::tma::IHtcsManager', 6, '8 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,6,0>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::tma::IHtcsManager', 7, '8 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>, Buffer<0,5,0>, InRaw<4,4,4>'), ('nn::tma::IHtcsManager', 8, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::tma::IHtcsManager', 9, '0xC bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nn::tma::IHtcsManager', 10, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::tma::IHtcsManager', 11, '0 bytes in - 0x20 bytes out - OutRaw<0x20,1,0>'), ('nn::tma::IHtcsManager', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, OutObject<0,0>'), ('nn::tma::IHtcsManager', 13, '1 bytes in - 4 bytes out - OutRaw<4,4,0>, OutObject<0,0>, InRaw<1,1,0>'), ('nn::tma::IHtcsManager', 100, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::tma::IHtcsManager', 101, '8 bytes in - 0 bytes out - takes pid - InRaw<8,8,0>'), ('nn::tma::ISocket', 0, '0 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>'), ('nn::tma::ISocket', 1, '0x42 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x42,2,0>'), ('nn::tma::ISocket', 2, '0x42 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<0x42,2,0>'), ('nn::tma::ISocket', 3, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>'), ('nn::tma::ISocket', 4, '0 bytes in - 0x48 bytes out - OutRaw<4,4,0x44>, OutObject<0,0>, OutRaw<0x42,2,0>'), ('nn::tma::ISocket', 5, '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x22,0>, InRaw<4,4,0>'), ('nn::tma::ISocket', 6, '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x21,0>, InRaw<4,4,0>'), ('nn::tma::ISocket', 7, '4 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>'), ('nn::tma::ISocket', 8, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::tma::ISocket', 9, '0 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>'), ('nn::tma::ISocket', 10, '4 bytes in - 0x48 bytes out - OutRaw<4,4,0x44>, OutObject<0,0>, OutRaw<0x42,2,0>, InRaw<4,4,0>'), ('nn::tma::ISocket', 11, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::tma::ISocket', 12, '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, Buffer<0,0x22,0>, InRaw<4,4,0>'), ('nn::tma::ISocket', 13, '0x18 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<8,8,0x10>, InHandle<0,1>, InRaw<4,4,8>'), ('nn::tma::ISocket', 14, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, Buffer<0,0x21,0>, InRaw<4,4,0>'), ('nn::tma::ISocket', 15, '0x10 bytes in - 4 bytes out - OutRaw<4,4,0>, OutHandle<0,1>, Buffer<0,0x21,0>, Buffer<1,0x21,0>, InHandle<0,1>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::tma::ISocket', 16, '4 bytes in - 0x10 bytes out - OutRaw<4,4,0>, OutRaw<8,8,8>, InRaw<4,4,0>'), ('nn::ts::server::IMeasurementServer', 0, ''), ('nn::ts::server::IMeasurementServer', 1, ''), ('nn::ts::server::IMeasurementServer', 2, ''), ('nn::ts::server::IMeasurementServer', 3, ''), ('nn::uart::IManager', 0, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::uart::IManager', 1, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::uart::IManager', 2, ''), ('nn::uart::IManager', 3, ''), ('nn::uart::IManager', 4, ''), ('nn::uart::IManager', 5, ''), ('nn::uart::IManager', 6, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::uart::IManager', 7, ''), ('nn::uart::IManager', 8, ''), ('nn::uart::IPortSession', 0, ''), ('nn::uart::IPortSession', 1, ''), ('nn::uart::IPortSession', 2, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::uart::IPortSession', 3, ''), ('nn::uart::IPortSession', 4, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::uart::IPortSession', 5, ''), ('nn::uart::IPortSession', 6, ''), ('nn::uart::IPortSession', 7, '4 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<4,4,0>'), ('nn::usb::hs::IClientEpSession', 0, '0 bytes in - 0 bytes out'), ('nn::usb::hs::IClientEpSession', 1, '0 bytes in - 0 bytes out'), ('nn::usb::hs::IClientEpSession', 2, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::usb::hs::IClientEpSession', 3, '0 bytes in - 0 bytes out'), ('nn::usb::hs::IClientEpSession', 4, ''), ('nn::usb::hs::IClientEpSession', 5, ''), ('nn::usb::hs::IClientEpSession', 6, ''), ('nn::usb::hs::IClientIfSession', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::usb::hs::IClientIfSession', 1, ''), ('nn::usb::hs::IClientIfSession', 2, ''), ('nn::usb::hs::IClientIfSession', 3, ''), ('nn::usb::hs::IClientIfSession', 4, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::usb::hs::IClientIfSession', 5, ''), ('nn::usb::hs::IClientIfSession', 6, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::usb::hs::IClientIfSession', 7, ''), ('nn::usb::hs::IClientIfSession', 8, '0 bytes in - 0 bytes out'), ('nn::usb::hs::IClientIfSession', 9, ''), ('nn::usb::hs::IClientRootSession', 0, ''), ('nn::usb::hs::IClientRootSession', 1, ''), ('nn::usb::hs::IClientRootSession', 2, ''), ('nn::usb::hs::IClientRootSession', 3, ''), ('nn::usb::hs::IClientRootSession', 4, ''), ('nn::usb::hs::IClientRootSession', 5, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::usb::hs::IClientRootSession', 6, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::usb::hs::IClientRootSession', 7, ''), ('nn::usb::pd::detail::IPdCradleManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::usb::pd::detail::IPdCradleSession', 0, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::usb::pd::detail::IPdCradleSession', 1, '4 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<4,4,0>'), ('nn::usb::pd::detail::IPdCradleSession', 2, '0 bytes in - 0 bytes out'), ('nn::usb::pd::detail::IPdCradleSession', 3, ''), ('nn::usb::pd::detail::IPdCradleSession', 4, ''), ('nn::usb::pd::detail::IPdCradleSession', 5, ''), ('nn::usb::pd::detail::IPdCradleSession', 6, ''), ('nn::usb::pd::detail::IPdCradleSession', 7, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::usb::pd::detail::IPdCradleSession', 8, '0 bytes in - 1 bytes out - OutRaw<1,1,0>'), ('nn::usb::pd::detail::IPdManager', 0, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::usb::pd::detail::IPdSession', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::usb::pd::detail::IPdSession', 1, '0 bytes in - 0 bytes out'), ('nn::usb::pd::detail::IPdSession', 2, ''), ('nn::usb::pd::detail::IPdSession', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::usb::pd::detail::IPdSession', 4, '0 bytes in - 0 bytes out'), ('nn::usb::pd::detail::IPdSession', 5, '0 bytes in - 0 bytes out'), ('nn::usb::pd::detail::IPdSession', 6, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::usb::pm::IPmService', 0, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::usb::pm::IPmService', 1, ''), ('nn::usb::pm::IPmService', 2, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::usb::pm::IPmService', 3, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::usb::pm::IPmService', 4, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::usb::pm::IPmService', 5, ''), ('nn::visrv::sf::IApplicationDisplayService', 100, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::visrv::sf::IApplicationDisplayService', 101, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::visrv::sf::IApplicationDisplayService', 102, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::visrv::sf::IApplicationDisplayService', 103, '0 bytes in - 0 bytes out - OutObject<0,0>'), ('nn::visrv::sf::IApplicationDisplayService', 1000, '0 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>'), ('nn::visrv::sf::IApplicationDisplayService', 1010, '0x40 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<0x40,1,0>'), ('nn::visrv::sf::IApplicationDisplayService', 1011, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::visrv::sf::IApplicationDisplayService', 1020, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IApplicationDisplayService', 1101, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::visrv::sf::IApplicationDisplayService', 1102, '8 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<8,8,0>'), ('nn::visrv::sf::IApplicationDisplayService', 2020, '0x50 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0x40>, InRaw<0x40,1,0>, InRaw<8,8,0x48>'), ('nn::visrv::sf::IApplicationDisplayService', 2021, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IApplicationDisplayService', 2030, '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::IApplicationDisplayService', 2031, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IApplicationDisplayService', 2101, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::IApplicationDisplayService', 2450, '0x20 bytes in - 0x10 bytes out - takes pid - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,0x46,0>, InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>, InRaw<8,8,0x18>'), ('nn::visrv::sf::IApplicationDisplayService', 2451, '0x30 bytes in - 0x10 bytes out - takes pid - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,0x46,0>, InRaw<8,8,0x10>, InRaw<8,8,0x18>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<4,4,0xC>, InRaw<8,8,0x20>, InRaw<8,8,0x28>'), ('nn::visrv::sf::IApplicationDisplayService', 2460, '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::visrv::sf::IApplicationDisplayService', 5202, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::visrv::sf::IApplicationDisplayService', 5203, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::visrv::sf::IApplicationRootService', 0, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::visrv::sf::IManagerDisplayService', 1102, '8 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2010, '0x18 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,8>, InRaw<4,4,0>, InRaw<8,8,0x10>'), ('nn::visrv::sf::IManagerDisplayService', 2011, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2050, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2051, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2052, '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::visrv::sf::IManagerDisplayService', 2053, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2054, '0x10 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::visrv::sf::IManagerDisplayService', 2055, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2300, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2301, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2302, '8 bytes in - 0 bytes out - OutHandle<0,1>, InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 2402, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::IManagerDisplayService', 4201, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::IManagerDisplayService', 4203, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::IManagerDisplayService', 4205, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::IManagerDisplayService', 6000, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::IManagerDisplayService', 6001, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::IManagerDisplayService', 6002, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::visrv::sf::IManagerDisplayService', 7000, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::visrv::sf::IManagerDisplayService', 8000, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::visrv::sf::IManagerDisplayService', 8100, '0x18 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>'), ('nn::visrv::sf::IManagerRootService', 2, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::visrv::sf::IManagerRootService', 3, '0xC bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,8>, InRaw<8,1,0>'), ('nn::visrv::sf::ISystemDisplayService', 1200, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 1202, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 1203, '8 bytes in - 8 bytes out - OutRaw<4,4,0>, OutRaw<4,4,4>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 1204, '0x18 bytes in - 0 bytes out - InRaw<8,8,0x10>, InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>, InRaw<4,4,0xC>'), ('nn::visrv::sf::ISystemDisplayService', 2201, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>, InRaw<4,4,4>'), ('nn::visrv::sf::ISystemDisplayService', 2203, '0x18 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>, InRaw<8,8,0x10>'), ('nn::visrv::sf::ISystemDisplayService', 2204, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 2205, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::visrv::sf::ISystemDisplayService', 2207, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<1,1,0>'), ('nn::visrv::sf::ISystemDisplayService', 2209, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemDisplayService', 2312, '0x10 bytes in - 0x10 bytes out - OutRaw<8,8,0>, OutRaw<8,8,8>, Buffer<0,6,0>, InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemDisplayService', 2400, '0x10 bytes in - 8 bytes out - takes pid - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::visrv::sf::ISystemDisplayService', 2401, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 2402, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3000, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3001, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3002, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, Buffer<0,6,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3200, '8 bytes in - 0x10 bytes out - OutRaw<0x10,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3201, '0x18 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<0x10,4,8>'), ('nn::visrv::sf::ISystemDisplayService', 3202, '8 bytes in - 8 bytes out - OutRaw<8,8,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3203, '0x10 bytes in - 0 bytes out - InRaw<8,8,0>, InRaw<8,8,8>'), ('nn::visrv::sf::ISystemDisplayService', 3204, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3205, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemDisplayService', 3206, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3207, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemDisplayService', 3208, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3209, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemDisplayService', 3210, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3211, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemDisplayService', 3214, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3215, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemDisplayService', 3216, '8 bytes in - 4 bytes out - OutRaw<4,4,0>, InRaw<8,8,0>'), ('nn::visrv::sf::ISystemDisplayService', 3217, '0x10 bytes in - 0 bytes out - InRaw<8,8,8>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemRootService', 1, '4 bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,0>'), ('nn::visrv::sf::ISystemRootService', 3, '0xC bytes in - 0 bytes out - OutObject<0,0>, InRaw<4,4,8>, InRaw<8,1,0>'), ('nn::wlan::detail::IInfraManager', 0, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 1, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 2, ''), ('nn::wlan::detail::IInfraManager', 3, ''), ('nn::wlan::detail::IInfraManager', 4, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 5, ''), ('nn::wlan::detail::IInfraManager', 6, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 7, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 8, ''), ('nn::wlan::detail::IInfraManager', 9, ''), ('nn::wlan::detail::IInfraManager', 10, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::wlan::detail::IInfraManager', 11, ''), ('nn::wlan::detail::IInfraManager', 12, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::wlan::detail::IInfraManager', 13, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::IInfraManager', 14, ''), ('nn::wlan::detail::IInfraManager', 15, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 16, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 17, ''), ('nn::wlan::detail::IInfraManager', 18, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::wlan::detail::IInfraManager', 19, ''), ('nn::wlan::detail::IInfraManager', 20, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::IInfraManager', 21, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::wlan::detail::IInfraManager', 22, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::IInfraManager', 23, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::IInfraManager', 24, ''), ('nn::wlan::detail::IInfraManager', 25, ''), ('nn::wlan::detail::ILocalGetActionFrame', 0, ''), ('nn::wlan::detail::ILocalGetFrame', 0, ''), ('nn::wlan::detail::ILocalManager', 0, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 1, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 2, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 3, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 4, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 5, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 6, ''), ('nn::wlan::detail::ILocalManager', 7, ''), ('nn::wlan::detail::ILocalManager', 8, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 9, ''), ('nn::wlan::detail::ILocalManager', 10, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 11, ''), ('nn::wlan::detail::ILocalManager', 12, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 13, ''), ('nn::wlan::detail::ILocalManager', 14, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 15, ''), ('nn::wlan::detail::ILocalManager', 16, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 17, ''), ('nn::wlan::detail::ILocalManager', 18, ''), ('nn::wlan::detail::ILocalManager', 19, ''), ('nn::wlan::detail::ILocalManager', 20, '0 bytes in - 0 bytes out - OutHandle<0,1>'), ('nn::wlan::detail::ILocalManager', 21, ''), ('nn::wlan::detail::ILocalManager', 22, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 23, ''), ('nn::wlan::detail::ILocalManager', 24, ''), ('nn::wlan::detail::ILocalManager', 25, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 26, ''), ('nn::wlan::detail::ILocalManager', 27, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 28, ''), ('nn::wlan::detail::ILocalManager', 29, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 30, ''), ('nn::wlan::detail::ILocalManager', 31, ''), ('nn::wlan::detail::ILocalManager', 32, ''), ('nn::wlan::detail::ILocalManager', 33, ''), ('nn::wlan::detail::ILocalManager', 34, ''), ('nn::wlan::detail::ILocalManager', 35, ''), ('nn::wlan::detail::ILocalManager', 36, ''), ('nn::wlan::detail::ILocalManager', 37, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ILocalManager', 38, ''), ('nn::wlan::detail::ILocalManager', 39, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 40, ''), ('nn::wlan::detail::ILocalManager', 41, ''), ('nn::wlan::detail::ILocalManager', 42, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 43, '0 bytes in - 4 bytes out - OutRaw<4,4,0>'), ('nn::wlan::detail::ILocalManager', 44, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ISocketGetFrame', 0, ''), ('nn::wlan::detail::ISocketManager', 0, '0 bytes in - 0 bytes out - Buffer<0,5,0>'), ('nn::wlan::detail::ISocketManager', 1, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ISocketManager', 2, ''), ('nn::wlan::detail::ISocketManager', 3, '4 bytes in - 0 bytes out - InRaw<4,4,0>'), ('nn::wlan::detail::ISocketManager', 4, ''), ('nn::wlan::detail::ISocketManager', 5, ''), ('nn::wlan::detail::ISocketManager', 6, ''), ('nn::wlan::detail::ISocketManager', 7, '1 bytes in - 0 bytes out - InRaw<1,1,0>'), ('nn::wlan::detail::ISocketManager', 8, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::wlan::detail::ISocketManager', 9, ''), ('nn::wlan::detail::ISocketManager', 10, '0 bytes in - 0 bytes out'), ('nn::wlan::detail::ISocketManager', 11, '0 bytes in - 0 bytes out'), ('nn::xcd::detail::ISystemServer', 0, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::xcd::detail::ISystemServer', 1, ''), ('nn::xcd::detail::ISystemServer', 2, '8 bytes in - 1 bytes out - OutRaw<1,1,0>, InRaw<8,8,0>'), ('nn::xcd::detail::ISystemServer', 3, ''), ('nn::xcd::detail::ISystemServer', 4, ''), ('nn::xcd::detail::ISystemServer', 5, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::xcd::detail::ISystemServer', 10, ''), ('nn::xcd::detail::ISystemServer', 11, ''), ('nn::xcd::detail::ISystemServer', 12, ''), ('nn::xcd::detail::ISystemServer', 13, '8 bytes in - 0 bytes out - InRaw<8,8,0>'), ('nn::xcd::detail::ISystemServer', 14, ''), ('nn::xcd::detail::ISystemServer', 15, ''), ('nn::xcd::detail::ISystemServer', 16, ''), ('nn::xcd::detail::ISystemServer', 17, ''), ('nn::xcd::detail::ISystemServer', 18, ''), ('nn::xcd::detail::ISystemServer', 19, ''), ('nn::xcd::detail::ISystemServer', 20, ''), ('nn::xcd::detail::ISystemServer', 101, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nn::xcd::detail::ISystemServer', 102, '0 bytes in - 8 bytes out - OutRaw<8,8,0>'), ('nns::hosbinder::IHOSBinderDriver', 0, '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, Buffer<0,5,0>, Buffer<1,6,0>, InRaw<4,4,8>'), ('nns::hosbinder::IHOSBinderDriver', 1, '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, InRaw<4,4,8>'), ('nns::hosbinder::IHOSBinderDriver', 2, '8 bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, OutHandle<0,1>'), ('nns::hosbinder::IHOSBinderDriver', 3, '0xC bytes in - 0 bytes out - InRaw<4,4,0>, InRaw<4,4,4>, Buffer<0,0x21,0>, Buffer<1,0x22,0>, InRaw<4,4,8>'), ('nns::nvdrv::INvDrvServices', 0, ''), ('nns::nvdrv::INvDrvServices', 1, ''), ('nns::nvdrv::INvDrvServices', 2, ''), ('nns::nvdrv::INvDrvServices', 3, ''), ('nns::nvdrv::INvDrvServices', 4, ''), ('nns::nvdrv::INvDrvServices', 5, ''), ('nns::nvdrv::INvDrvServices', 6, ''), ('nns::nvdrv::INvDrvServices', 7, ''), ('nns::nvdrv::INvDrvServices', 8, ''), ('nns::nvdrv::INvDrvServices', 9, ''), ('nns::nvdrv::INvDrvServices', 10, ''), ('nns::nvdrv::INvDrvServices', 11, ''), ('nns::nvdrv::INvDrvServices', 12, ''), ('nns::nvdrv::INvDrvServices', 13, ''), ('nv::gemcontrol::INvGemControl', 0, ''), ('nv::gemcontrol::INvGemControl', 1, ''), ('nv::gemcontrol::INvGemControl', 2, ''), ('nv::gemcontrol::INvGemControl', 3, ''), ('nv::gemcontrol::INvGemControl', 4, ''), ('nv::gemcontrol::INvGemControl', 5, ''), ('nv::gemcontrol::INvGemControl', 6, ''), ('nv::gemcontrol::INvGemControl', 7, ''), ) smapping = { # builtins '0100000000000000': { 'fsp-srv': 'nn::fssrv::sf::IFileSystemProxy', 'fsp-ldr': 'nn::fssrv::sf::IFileSystemProxyForLoader', 'fsp-pr': 'nn::fssrv::sf::IProgramRegistry', }, '0100000000000001': { 'ldr:shel': 'nn::ldr::detail::IShellInterface', 'ldr:pm': 'nn::ldr::detail::IProcessManagerInterface', 'ldr:dmnt': 'nn::ldr::detail::IDebugMonitorInterface', }, '0100000000000002': { 'lr': 'nn::lr::ILocationResolverManager', 'ncm': 'nn::ncm::IContentManager', }, '0100000000000003': { 'pm:info': 'nn::pm::detail::IInformationInterface', 'pm:shell': 'nn::pm::detail::IShellInterface', 'pm:bm': 'nn::pm::detail::IBootModeInterface', }, '0100000000000004': { 'sm:': 'nn::sm::detail::IUserInterface', 'sm:m': 'nn::sm::detail::IManagerInterface', }, '0100000000000028': { 'spl:': 'nn::spl::detail::IGeneralInterface', 'csrng': 'nn::spl::detail::IRandomInterface', }, # not builtins '0100000000000006': { # usb 'usb:ds': 'nn::usb::ds::IDsService', 'usb:hs': 'nn::usb::hs::IClientRootSession', 'usb:pd': 'nn::usb::pd::detail::IPdManager', 'usb:pd:c': 'nn::usb::pd::detail::IPdCradleManager', 'usb:pm': 'nn::usb::pm::IPmService', }, '0100000000000009': { # settings 'set': 'nn::settings::ISettingsServer', 'set:cal': 'nn::settings::IFactorySettingsServer', 'set:fd': 'nn::settings::IFirmwareDebugSettingsServer', 'set:sys': 'nn::settings::ISystemSettingsServer', }, '010000000000000A': { # Bus 'gpio': 'nn::gpio::IManager', 'i2c': 'nn::i2c::IManager', 'i2c:pcv': 'nn::i2c::IManager', 'pinmux': 'nn::pinmux::IManager', 'pwm': 'nn::pwm::IManager', 'sasbus': 'nn::sasbus::IManager', 'uart': 'nn::uart::IManager', }, '010000000000000B': { # bluetooth 'btdrv': 'nn::bluetooth::IBluetoothDriver', }, '010000000000000C': { # bcat 'bcat:a': 'nn::bcat::detail::ipc::IServiceCreator', 'bcat:m': 'nn::bcat::detail::ipc::IServiceCreator', 'bcat:s': 'nn::bcat::detail::ipc::IServiceCreator', 'bcat:u': 'nn::bcat::detail::ipc::IServiceCreator', 'news:a': 'nn::news::detail::ipc::IServiceCreator', 'news:c': 'nn::news::detail::ipc::IServiceCreator', 'news:m': 'nn::news::detail::ipc::IServiceCreator', 'news:p': 'nn::news::detail::ipc::IServiceCreator', 'news:v': 'nn::news::detail::ipc::IServiceCreator', 'prepo:a': 'nn::prepo::detail::ipc::IPrepoService', 'prepo:m': 'nn::prepo::detail::ipc::IPrepoService', 'prepo:s': 'nn::prepo::detail::ipc::IPrepoService', 'prepo:u': 'nn::prepo::detail::ipc::IPrepoService', }, '010000000000000E': { # friends 'friend:a': 'nn::friends::detail::ipc::IServiceCreator', 'friend:m': 'nn::friends::detail::ipc::IServiceCreator', 'friend:s': 'nn::friends::detail::ipc::IServiceCreator', 'friend:u': 'nn::friends::detail::ipc::IServiceCreator', 'friend:v': 'nn::friends::detail::ipc::IServiceCreator', }, '010000000000000F': { # nifm 'nifm:a': 'nn::nifm::detail::IStaticService', 'nifm:s': 'nn::nifm::detail::IStaticService', 'nifm:u': 'nn::nifm::detail::IStaticService', }, '0100000000000010': { # ptm 'fan': 'nn::fan::detail::IManager', 'psm': 'nn::psm::IPsmServer', 'tc': 'nn::tc::IManager', 'ts': 'nn::ts::server::IMeasurementServer', }, '0100000000000012': { # bsdsocket 'bsd:s': 'nn::socket::sf::IClient', # ? 'bsd:u': 'nn::socket::sf::IClient', # ? 'bsdcfg': 'nn::bsdsocket::cfg::ServerInterface', 'ethc:c': 'nn::eth::sf::IEthInterface', 'ethc:i': 'nn::eth::sf::IEthInterfaceGroup', 'nsd:a': 'nn::nsd::detail::IManager', # ? 'nsd:u': 'nn::nsd::detail::IManager', # ? 'sfdnsres': 'nn::socket::resolver::IResolver', }, '0100000000000013': { # hid 'ahid:cd': 'nn::ahid::IServerSession', # ? 'ahid:hdr': 'nn::ahid::hdr::ISession', # ? 'hid': 'nn::hid::IHidServer', 'hid:dbg': 'nn::hid::IHidDebugServer', 'hid:sys': 'nn::hid::IHidSystemServer', 'hid:tmp': 'nn::hid::IHidTemporaryServer', 'irs': 'nn::irsensor::IIrSensorServer', 'irs:sys': 'nn::irsensor::IIrSensorSystemServer', 'xcd:sys': 'nn::xcd::detail::ISystemServer', }, '0100000000000014': { # audio 'audctl': 'nn::audioctrl::detail::IAudioController', 'audin:a': 'nn::audio::detail::IAudioInManagerForApplet', 'audin:d': 'nn::audio::detail::IAudioInManagerForDebugger', 'audin:u': 'nn::audio::detail::IAudioInManager', 'audout:a': 'nn::audio::detail::IAudioOutManagerForApplet', 'audout:d': 'nn::audio::detail::IAudioOutManagerForDebugger', 'audout:u': 'nn::audio::detail::IAudioOutManager', 'audrec:a': 'nn::audio::detail::IFinalOutputRecorderManagerForApplet', 'audrec:d': 'nn::audio::detail::IFinalOutputRecorderManagerForDebugger', 'audrec:u': 'nn::audio::detail::IFinalOutputRecorderManager', 'audren:a': 'nn::audio::detail::IAudioRendererManagerForApplet', 'audren:d': 'nn::audio::detail::IAudioRendererManagerForDebugger', 'audren:u': 'nn::audio::detail::IAudioRendererManager', 'hwopus': 'nn::codec::detail::IHardwareOpusDecoderManager', }, '0100000000000015': { # LogManager.Prod 'lm': 'nn::lm::ILogService', }, '0100000000000016': { # wlan 'wlan:inf': 'nn::wlan::detail::IInfraManager', 'wlan:lcl': 'nn::wlan::detail::ILocalManager', 'wlan:lg': 'nn::wlan::detail::ILocalGetFrame', 'wlan:lga': 'nn::wlan::detail::ILocalGetActionFrame', 'wlan:soc': 'nn::wlan::detail::ISocketManager', 'wlan:sg': 'nn::wlan::detail::ISocketGetFrame', }, '0100000000000018': { # ldn 'ldn:m': 'nn::ldn::detail::IMonitorServiceCreator', 'ldn:s': 'nn::ldn::detail::ISystemServiceCreator', 'ldn:u': 'nn::ldn::detail::IUserServiceCreator', }, '0100000000000019': { # nvservices 'nvdrv': 'nns::nvdrv::INvDrvServices', 'nvdrv:a': 'nns::nvdrv::INvDrvServices', 'nvdrv:s': 'nns::nvdrv::INvDrvServices', 'nvdrv:t': 'nns::nvdrv::INvDrvServices', 'nvdrvdbg': 'nns::nvdrv::INvDrvDebugFSServices', 'nvgem:c': 'nv::gemcontrol::INvGemControl', 'nvgem:cd': 'nv::gemcoredump::INvGemCoreDump', }, '010000000000001A': { # pcv 'bpc': 'nn::bpc::IBoardPowerControlManager', 'bpc:r': 'nn::bpc::IRtcManager', 'pcv': 'nn::pcv::detail::IPcvService', 'pcv:arb': 'nn::pcv::IArbitrationManager', 'pcv:imm': 'nn::pcv::IImmediateManager', 'time:u': 'nn::timesrv::detail::service::IStaticService', 'time:a': 'nn::timesrv::detail::service::IStaticService', 'time:s': 'nn::timesrv::detail::service::IStaticService', 'time:r': 'nn::timesrv::detail::service::IStaticService', }, '010000000000001B': { # ppc 'apm': 'nn::apm::IManager', 'apm:p': 'nn::apm::IManagerPrivileged', 'apm:sys': 'nn::apm::ISystemManager', 'fgm:0': 'nn::fgm::sf::ISession', 'fgm': 'nn::fgm::sf::ISession', 'fgm:9': 'nn::fgm::sf::ISession', # no nn::fgm::sf::IDebugger ? }, '010000000000001C': { # nvnflinger 'dispdrv': 'nns::hosbinder::IHOSBinderDriver', }, '010000000000001D': { # pcie.withoutHb 'pcie': 'nn::pcie::detail::IManager', }, '010000000000001E': { # account 'acc:aa': 'nn::account::IBaasAccessTokenAccessor', # ? 'acc:su': 'nn::account::IAccountServiceForAdministrator', # ? 'acc:u1': 'nn::account::IAccountServiceForSystemService', # ? 'acc:u0': 'nn::account::IAccountServiceForApplication', # ? }, '010000000000001F': { # ns 'aoc:u': 'nn::aocsrv::detail::IAddOnContentManager', 'ns:am2': 'nn::ns::detail::IServiceGetterInterface', 'ns:dev': 'nn::ns::detail::IDevelopInterface', 'ns:ec': 'nn::ns::detail::IServiceGetterInterface', 'ns:rid': 'nn::ns::detail::IServiceGetterInterface', 'ns:rt': 'nn::ns::detail::IServiceGetterInterface', 'ns:su': 'nn::ns::detail::ISystemUpdateInterface', 'ns:vm': 'nn::ns::detail::IVulnerabilityManagerInterface', 'ns:web': 'nn::ns::detail::IServiceGetterInterface', 'ovln:rcv': 'nn::ovln::IReceiverService', 'ovln:snd': 'nn::ovln::ISenderService', }, '0100000000000020': { # nfc 'nfc:am': 'nn::nfc::am::detail::IAmManager', 'nfc:mf:u': 'nn::nfc::mifare::detail::IUserManager', 'nfc:sys': 'nn::nfc::detail::ISystemManager', 'nfc:user': 'nn::nfc::detail::IUserManager', 'nfp:dbg': 'nn::nfp::detail::IDebugManager', 'nfp:sys': 'nn::nfp::detail::ISystemManager', 'nfp:user': 'nn::nfp::detail::IUserManager', }, '0100000000000021': { # psc 'psc:c': 'nn::psc::sf::IPmControl', # ? 'psc:m': 'nn::psc::sf::IPmService', # ? }, '0100000000000022': { # capsrv 'caps:a': 'nn::capsrv::sf::IAlbumAccessorService', 'caps:c': 'nn::capsrv::sf::IAlbumControlService', }, '0100000000000023': { # am 'appletAE': 'nn::am::service::IAllSystemAppletProxiesService', 'appletOE': 'nn::am::service::IApplicationProxyService', 'idle:sys': 'nn::idle::detail::IPolicyManagerSystem', 'omm': 'nn::omm::detail::IOperationModeManager', 'spsm': 'nn::spsm::detail::IPowerStateInterface', }, '0100000000000024': { # ssl 'ssl': 'nn::ssl::sf::ISslService', # ? }, '0100000000000025': { # nim 'nim': 'nn::nim::detail::INetworkInstallManager', 'nim:shp': 'nn::nim::detail::IShopServiceManager', 'ntc': 'nn::ntc::detail::service::IStaticService', }, '0100000000000029': { # lbl 'lbl': 'nn::lbl::detail::ILblController', }, '010000000000002A': { # btm 'btm': 'nn::btm::IBtm', 'btm:dbg': 'nn::btm::IBtmDebug', 'btm:sys': 'nn::btm::IBtmSystem', }, '010000000000002B': { # erpt 'erpt:c': 'nn::erpt::sf::IContext', 'erpt:r': 'nn::erpt::sf::ISession', }, '010000000000002D': { # vi 'caps:sc': 'nn::capsrv::sf::IScreenShotControlService', 'caps:ss': 'nn::capsrv::sf::IScreenShotService', 'caps:su': 'nn::capsrv::sf::IScreenShotApplicationService', 'cec-mgr': 'nn::cec::ICecManager', 'mm:u': 'nn::mmnv::IRequest', 'vi:m': 'nn::visrv::sf::IManagerRootService', 'vi:s': 'nn::visrv::sf::ISystemRootService', 'vi:u': 'nn::visrv::sf::IApplicationRootService', }, '010000000000002E': { # pctl 'pctl': 'nn::pctl::detail::ipc::IParentalControlServiceFactory', 'pctl:a': 'nn::pctl::detail::ipc::IParentalControlServiceFactory', 'pctl:r': 'nn::pctl::detail::ipc::IParentalControlServiceFactory', 'pctl:s': 'nn::pctl::detail::ipc::IParentalControlServiceFactory', }, '010000000000002F': { # npns 'npns:s': 'nn::npns::INpnsSystem', 'npns:u': 'nn::npns::INpnsUser', }, '0100000000000030': { # eupld 'eupld:c': 'nn::eupld::sf::IControl', 'eupld:r': 'nn::eupld::sf::IRequest', }, '0100000000000031': { # glue 'arp:r': 'nn::arp::detail::IReader', 'arp:w': 'nn::arp::detail::IWriter', 'bgtc:sc': 'nn::bgtc::IStateControlService', 'bgtc:t': 'nn::bgtc::ITaskService', }, '0100000000000033': { # es 'es': 'nn::es::IETicketService', }, '0100000000000034': { # fatal 'fatal:p': 'nn::fatalsrv::IPrivateService', 'fatal:u': 'nn::fatalsrv::IService', }, '0100000000000037': { # ro 'ldr:ro': 'nn::ro::detail::IRoInterface', 'ro:dmnt': 'nn::ro::detail::IDebugMonitorInterface', # ? }, '0100000000000039': { # sdb 'mii:e': 'nn::mii::detail::IStaticService', 'mii:u': 'nn::mii::detail::IStaticService', 'pdm:ntfy': 'nn::pdm::detail::INotifyService', 'pdm:qry': 'nn::pdm::detail::IQueryService', 'pl:u': 'nn::pl::detail::ISharedFontManager', }, } import hashlib, random, re clsToInterface = {} for x in smapping.values(): for k, v in x.items(): if v not in clsToInterface: clsToInterface[v] = [] clsToInterface[v].append(k) clses = {} for cname, cmdid, name, io, params in info: if cname not in clses: clses[cname] = {} #if params != '': clses[cname][cmdid] = name, io, params reformedServer = {} reformedClient = {} for cname, cmds in serverInfo.items(): if cname not in reformedServer: reformedServer[cname] = {} for cmdid, cmd in cmds.items(): cmdid = int(cmdid) reformedServer[cname][cmdid] = cmd['name'] if 'name' in cmd else '', '', cmd['args'] if 'args' in cmd else '' for cname, cmdid, io in clientInfo: if cname not in reformedClient: reformedClient[cname] = {} reformedClient[cname][cmdid] = '', io, '' mset = lambda x: set((cname, cmdid) for cname, cmds in x.items() for cmdid in cmds.keys()) allCmds = mset(reformedClient).union(mset(reformedServer)) for cname, cmdid in allCmds: cdef = reformedClient[cname][cmdid] if cname in reformedClient and cmdid in reformedClient[cname] else None sdef = reformedServer[cname][cmdid] if cname in reformedServer and cmdid in reformedServer[cname] else None if cdef is not None and sdef is None: idef = cdef elif cdef is None and sdef is not None: idef = sdef else: idef = sdef[0], cdef[1], sdef[2] if idef[1] == '': idef = idef[0], 'UNK bytes in - UNK bytes out', idef[2] if cname not in clses: clses[cname] = {} if cmdid in clses[cname]: cur = clses[cname][cmdid] if cur == idef: continue cur = list(cur) for i in xrange(3): if len(cur[i]) < len(idef[i]): cur[i] = idef[i] clses[cname][cmdid] = tuple(cur) else: clses[cname][cmdid] = idef def parseAnyInt(x): return int(x[2:], 16) if x.startswith('0x') else int(x) def emitInt(x): return '0x%x' % x if x > 9 else str(x) def csplit(inp): def findMatch(i, ch): while i < len(inp): mch = inp[i] if mch == ch: return i elif mch == '<': i = findMatch(i + 1, '>') elif mch == '(': i = findMatch(i + 1, ')') elif mch == '[': i = findMatch(i + 1, ']') i += 1 out = [] i = 0 last = 0 while i < len(inp): mch = inp[i] if mch == ',': if i != last: out.append(inp[last:i].strip(' ,')) last = i elif mch == '<': i = findMatch(i + 1, '>') elif mch == '(': i = findMatch(i + 1, ')') elif mch == '[': i = findMatch(i + 1, ']') i += 1 if last != i: out.append(inp[last:i].strip(' ,')) return out def splitIOSpec(cs): ins, outs = [], [] for elem in cs: if elem.startswith('InRaw<'): ins.append(elem) elif elem.startswith('OutRaw<'): outs.append(elem) elif elem.startswith('Buffer<'): btype = parseAnyInt(elem.split(',')[1]) if btype & 1: ins.append(elem) else: assert btype & 2 outs.append(elem) elif elem.startswith('InObject<'): ins.append(elem) elif elem.startswith('OutObject<'): outs.append(elem) elif elem.startswith('InHandle<'): ins.append(elem) elif elem.startswith('OutHandle<'): outs.append(elem) else: print elem assert False return ins, outs def splitIOParams(params): ins, outs = [], [] for elem in params: if elem.startswith('nn::sf::Out<nn::sf::SharedPointer<'): outs.append(elem) elif elem.startswith('nn::sf::Out<'): outs.append(elem) elif elem.startswith('nn::sf::OutBuffer'): outs.append(elem) elif elem.startswith('nn::sf::OutArray<'): outs.append(elem) elif elem.startswith('nn::sf::InBuffer'): ins.append(elem) elif elem.startswith('nn::sf::InArray<'): ins.append(elem) else: assert not elem.startswith('nn::sf::Out') and not elem.startswith('nn::sf::In') ins.append(elem) return [x.replace(' ', ' ').replace(' &', '&') for x in ins], [x.replace(' ', ' ').replace(' &', '&') for x in outs] def parseSpecType(type): a, b = type[:-1].split('<') return [a] + [parseAnyInt(x.strip()) for x in b.split(',')] intTypes = { 'bool' : 'bool', 'unsigned char' : 'u8', 'char' : 'i8', 'signed char' : 'i8', 'int' : 'i32', 'unsigned int' : 'u32', 'long' : 'i64', 'unsigned long' : 'u64', 'float' : 'f32', } def remapProtoType(type, stype): type = type.replace('const&', '') if type.startswith('nn::sf::Out<'): type = csplit(type.split('nn::sf::Out<', 1)[1])[0] elif type.startswith('nn::sf::OutArray<'): type = type.split('nn::sf::OutArray<', 1)[1].split('>', 1)[0] + '[]' elif type.startswith('nn::sf::InArray<'): type = type.split('nn::sf::InArray<', 1)[1].split('>', 1)[0] + '[]' elif type.startswith('nn::sf::InBuffer'): type = 'unknown' type = type.strip() if type.startswith('nn::sf::SharedPointer<'): type = type.split('nn::sf::SharedPointer<', 1)[1].split('>', 1)[0] elif type.startswith('nn::sf::NativeHandle'): type = 'KObject' elif type.startswith('nn::util::BitFlagSet<'): type = csplit(type.split('nn::util::BitFlagSet<', 1)[1][:-1])[1] type = type.strip() if type in intTypes: type = intTypes[type] elif type.endswith('[]') and type[:-2] in intTypes: type = intTypes[type[:-2]] + '[]' stype = parseSpecType(stype) if stype[0] == 'OutObject' or stype[0] == 'InObject': return 'object', type elif stype[0] == 'InRaw' or stype[0] == 'OutRaw': _, size, alignment, offset = stype return 'data', type, size, alignment, offset elif stype[0] == 'Buffer': if type.endswith('[]'): type = type[:-2] assert stype[3] == 0 return 'array', type, stype[2] else: type = 'unknown' if type == 'nn::sf::OutBuffer' else type return 'buffer', type, stype[2], stype[3] elif stype[0] == 'InHandle' or stype[0] == 'OutHandle': assert type == 'KObject' return 'handle', defaultTypes = { -1: 'unknown', 1: 'u8', 2: 'u16', 4: 'u32', 8: 'u64', 16: 'u128' } def emitDefaultOrBytes(size): if size in defaultTypes: return defaultTypes[size] return 'bytes<%s>' % emitInt(size) def generateType(stype): stype = parseSpecType(stype) if stype[0] == 'InHandle' or stype[0] == 'OutHandle': return 'handle', elif stype[0] == 'InObject' or stype[0] == 'OutObject': return 'object', None elif stype[0] == 'InRaw' or stype[0] == 'OutRaw': _, size, alignment, offset = stype return 'data', emitDefaultOrBytes(size), size, alignment, offset elif stype[0] == 'Buffer': return 'buffer', None, stype[2], stype[3] dataSizes = {} bufferTypes = set() def defineSizes(types): for elem in types: if (elem[0] == 'buffer' or elem[0] == 'array') and elem[1] is not None: bufferTypes.add(elem[1]) continue elif elem[0] != 'data': continue elif elem[1] in dataSizes: assert dataSizes[elem[1]] == elem[2] continue dataSizes[elem[1]] = elem[2] def sortTyped(typed): return sorted(typed, key=lambda x: dict(data=0, pid=1, handle=2, object=3, buffer=4, array=4)[x[0]]) def sortData(elems): data = [elem for elem in elems if elem[0] == 'data'] data.sort(key=lambda x: x[4]) return data + elems[len(data):] def filterAlignment(elems): cur = 0 for i, elem in enumerate(elems): if elem[0] != 'data': break _, type, size, alignment, offset = elem calcAlign = min(size, 8) before = cur while cur % calcAlign: cur += 1 if offset != cur: cur = before while cur % alignment: cur += 1 elems[i] = 'data', type, size, alignment else: elems[i] = 'data', type, size, None #assert offset == cur cur += size return elems def parseFunc(cs, params, pid): cs, params = csplit(cs), csplit(params[1:-1]) if params else [] assert not params or len(cs) == len(params) si, so = splitIOSpec(cs) if params: pi, po = splitIOParams(params) assert len(si) == len(pi) and len(so) == len(po) pi, po = [remapProtoType(x, si[i]) for i, x in enumerate(pi)], [remapProtoType(x, so[i]) for i, x in enumerate(po)] defineSizes(pi + po) else: pi, po = map(generateType, si), map(generateType, so) if pid: pi = [('pid', )] + pi return filterAlignment(sortData(sortTyped(pi))), filterAlignment(sortData(sortTyped(po))) ifaces = {} for cname, functions in clses.items(): assert cname not in ifaces ifaces[cname] = iface = {} for cmdId, func in functions.items(): fname, spec, params = func if fname == '': fname = 'Unknown%i' % cmdId spec = spec.split(' - ') if len(spec) == 2 and spec[0] == 'UNK bytes in' and spec[1] == 'UNK bytes out': iface[cmdId] = (fname, (), (), False) elif len(spec) == 2 or (len(spec) == 3 and spec[2] == 'takes pid'): assert spec[0] == '0 bytes in' and spec[1] == '0 bytes out' iface[cmdId] = (fname, (['pid'], ) if len(spec) == 3 else (), (), True) elif len(spec) == 3 or (len(spec) == 4 and spec[2] == 'takes pid'): if spec[2] == 'takes pid': pid = True cs = spec[3] else: pid = False cs = spec[2] ins, outs = parseFunc(cs, params, pid) iface[cmdId] = fname, ins, outs, True for elem in bufferTypes: if elem not in dataSizes: dataSizes[elem] = -1 with file('ipcdefs/auto.id', 'w') as fp: lastNs = -1 for name, size in sorted(dataSizes.items(), key=lambda x: x[0]): if name not in intTypes.values() and name != 'void' and name != 'unknown': ns = name.rsplit('::', 1)[0] if '::' in name else None if ns != lastNs and lastNs != -1: print >>fp print >>fp, 'type %s = %s;' % (name, emitDefaultOrBytes(size)) lastNs = ns print >>fp print >>fp def emitType(type): if type[0] == 'data': if type[3] is not None: return 'align<%i, %s>' % (type[3], type[1]) return type[1] # XXX: Add alignment setup elif type[0] == 'object': return 'object<%s>' % (type[1] if type[1] else 'IUnknown') elif type[0] == 'handle': return 'KObject' elif type[0] == 'array': return 'array<%s, %s>' % (type[1], emitInt(type[2])) elif type[0] == 'buffer': return 'buffer<%s, %s, %s>' % (type[1] or 'unknown', emitInt(type[2]), emitInt(type[3])) elif type[0] == 'pid': return 'pid' else: print 'wtf?', type def emitFunction(cmdId, fname, ins, outs, documented): outstr = '' if documented: if len(outs) == 1: outstr = ' -> %s' % emitType(outs[0]) elif len(outs): outstr = ' -> (%s)' % ', '.join(emitType(x) for x in outs) return '[%i] %s(%s)%s;' % (cmdId, fname, ', '.join(emitType(x) for x in ins), outstr) else: return '@undocumented\n\t[%i] %s();' % (cmdId, fname) for cname, cmds in sorted(ifaces.items(), key=lambda x: x[0]): print >>fp, 'interface %s%s {' % (cname, ' is ' + ', '.join(clsToInterface[cname]) if cname in clsToInterface else '') for cmdId, (fname, ins, outs, documented) in sorted(cmds.items(), key=lambda x: x[0]): print >>fp, '\t' + emitFunction(cmdId, fname, ins, outs, documented) print >>fp, '}' print >>fp
96.599783
489
0.62663
126,847
890,650
4.399828
0.020718
0.054517
0.046233
0.066758
0.837009
0.788986
0.752634
0.729458
0.701246
0.674712
0
0.078035
0.11387
890,650
9,219
490
96.610261
0.629114
0.000456
0
0.122215
0
0.286042
0.763807
0.371801
0
0
0.014493
0
0.001092
0
null
null
0.000218
0.000983
null
null
0.001092
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
1
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
9
7bdfae1327f0810a7918008bb5c48e9094bb3df2
167
py
Python
config.py
nguyenkevn/heran
cf0436bb8d6e4df372eb265b4131adb95af4bee8
[ "MIT" ]
null
null
null
config.py
nguyenkevn/heran
cf0436bb8d6e4df372eb265b4131adb95af4bee8
[ "MIT" ]
null
null
null
config.py
nguyenkevn/heran
cf0436bb8d6e4df372eb265b4131adb95af4bee8
[ "MIT" ]
null
null
null
DATABASE_URL= 'postgres://xhjnqyiksjbwbd:efa927ba37a84bc0d4362d115aab3db58e46ba17daaf7868821c929a50939018@ec2-3-215-207-12.compute-1.amazonaws.com:5432/d3cc34eiokie34'
167
167
0.886228
16
167
9.1875
1
0
0
0
0
0
0
0
0
0
0
0.361446
0.005988
167
1
167
167
0.524096
0
0
0
0
1
0.89881
0.89881
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7be24f5f6eaf8651386d2aaecf196f25af9a858e
2,310
py
Python
tests/test_ctap_make_credential_request.py
dany74q/ctap-keyring-device
2f41f008679259182a61224680d75b6e0bdc510b
[ "MIT" ]
1
2022-03-04T09:37:49.000Z
2022-03-04T09:37:49.000Z
tests/test_ctap_make_credential_request.py
dany74q/ctap-keyring-device
2f41f008679259182a61224680d75b6e0bdc510b
[ "MIT" ]
null
null
null
tests/test_ctap_make_credential_request.py
dany74q/ctap-keyring-device
2f41f008679259182a61224680d75b6e0bdc510b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from ctap_keyring_device.ctap_strucs import CtapMakeCredentialRequest, CtapOptions class TestCtapMakeCredentialRequest(unittest.TestCase): def test_resident_key_required_when_set(self): req = CtapMakeCredentialRequest.create( {CtapMakeCredentialRequest.OPTIONS_KEY: {CtapOptions.RESIDENT_KEY: True}} ) assert req.resident_key_required def test_resident_key_not_set_when_false(self): req = CtapMakeCredentialRequest.create( {CtapMakeCredentialRequest.OPTIONS_KEY: {CtapOptions.RESIDENT_KEY: False}} ) assert not req.resident_key_required def test_resident_key_not_set_when_options_not_set(self): req = CtapMakeCredentialRequest.create({}) assert not req.resident_key_required def test_resident_key_not_set_when_options_is_none(self): req = CtapMakeCredentialRequest.create( {CtapMakeCredentialRequest.OPTIONS_KEY: None} ) assert not req.resident_key_required def test_user_verification_required_when_set(self): req = CtapMakeCredentialRequest.create( { CtapMakeCredentialRequest.OPTIONS_KEY: { CtapOptions.USER_VERIFICATION: True } } ) assert req.user_verification_required def test_user_verification_not_set_when_false(self): req = CtapMakeCredentialRequest.create( { CtapMakeCredentialRequest.OPTIONS_KEY: { CtapOptions.USER_VERIFICATION: False } } ) assert not req.user_verification_required def test_user_verification_not_set_when_options_not_set(self): req = CtapMakeCredentialRequest.create({}) assert not req.user_verification_required def test_user_verification_not_set_when_options_is_none(self): req = CtapMakeCredentialRequest.create( {CtapMakeCredentialRequest.OPTIONS_KEY: None} ) assert not req.user_verification_required def test_exclude_list_is_empty_list_when_none(self): req = CtapMakeCredentialRequest.create( {CtapMakeCredentialRequest.EXCLUDE_LIST_KEY: None} ) assert req.exclude_list == []
35.538462
86
0.690043
224
2,310
6.700893
0.165179
0.073284
0.191872
0.227848
0.827448
0.816789
0.772152
0.772152
0.734177
0.734177
0
0.000577
0.249784
2,310
64
87
36.09375
0.865551
0.009091
0
0.365385
0
0
0
0
0
0
0
0
0.173077
1
0.173077
false
0
0.038462
0
0.230769
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
d007781b21cc6e56017e0f4e9b30cc6b4fcc237a
1,351
py
Python
stubs/m5stack_flowui-v1_4_0-beta/flowlib/modules/_lidarBot.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/m5stack_flowui-v1_4_0-beta/flowlib/modules/_lidarBot.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/m5stack_flowui-v1_4_0-beta/flowlib/modules/_lidarBot.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'flowlib.modules._lidarBot' on M5 FlowUI v1.4.0-beta """ # MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32') # Stubber: 1.3.1 - updated from typing import Any class LidarBot: """""" def controlWheel(self, *argv) -> Any: pass def deinit(self, *argv) -> Any: pass def goAhead(self, *argv) -> Any: pass def goBack(self, *argv) -> Any: pass def setOneRgb(self, *argv) -> Any: pass def setRgb(self, *argv) -> Any: pass def setServo(self, *argv) -> Any: pass def setStepMotor(self, *argv) -> Any: pass def turnLeft(self, *argv) -> Any: pass def turnRight(self, *argv) -> Any: pass class LidarStep: """""" def controlWheel(self, *argv) -> Any: pass def goAhead(self, *argv) -> Any: pass def goBack(self, *argv) -> Any: pass def setOneRgb(self, *argv) -> Any: pass def setRgb(self, *argv) -> Any: pass def setServo(self, *argv) -> Any: pass def setStepMotor(self, *argv) -> Any: pass def turnLeft(self, *argv) -> Any: pass def turnRight(self, *argv) -> Any: pass controlMap = None machine = None
17.776316
141
0.545522
165
1,351
4.460606
0.309091
0.206522
0.283967
0.387228
0.673913
0.673913
0.673913
0.608696
0.608696
0.608696
0
0.041711
0.30792
1,351
75
142
18.013333
0.745455
0.167283
0
0.860465
0
0
0
0
0
0
0
0
0
1
0.44186
false
0.44186
0.023256
0
0.511628
0
0
0
0
null
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
7
d0104535d6fc28a55634d61301bde293f3cf9434
26,071
py
Python
tests/vm_state_test.py
ovenystas/py-apx
9b361ebc64e7c8ecb68f13f79e589d5a85cd5734
[ "MIT" ]
null
null
null
tests/vm_state_test.py
ovenystas/py-apx
9b361ebc64e7c8ecb68f13f79e589d5a85cd5734
[ "MIT" ]
8
2018-10-17T09:03:43.000Z
2021-11-02T13:37:44.000Z
tests/vm_state_test.py
ovenystas/py-apx
9b361ebc64e7c8ecb68f13f79e589d5a85cd5734
[ "MIT" ]
5
2018-06-12T08:02:42.000Z
2020-08-12T05:07:49.000Z
import os, sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import apx import unittest class TestVmPackState(unittest.TestCase): def test_pack_u8(self): st = apx.VmPackState(value=1) data = bytearray([0,0,0]) data_offset = 0 data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 1) self.assertEqual(data, bytearray([1,0,0])) st.value=0x12 data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(data, bytearray([1,0x12,0])) st.value=255 data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 3) self.assertEqual(data, bytearray([1,0x12,255])) def test_pack_u16(self): st = apx.VmPackState(value=0) data = bytearray([0,0]) data_offset = st.pack_u16(data, 0) self.assertEqual(data_offset, apx.UINT16_LEN) self.assertEqual(data, bytearray([0x00, 0x00])) st.value=0x1234 data_offset = st.pack_u16(data, 0) self.assertEqual(data_offset, apx.UINT16_LEN) self.assertEqual(data, bytearray([0x34, 0x12])) st.value=65535 data_offset = st.pack_u16(data, 0) self.assertEqual(data_offset, apx.UINT16_LEN) self.assertEqual(data, bytearray([0xFF, 0xFF])) def test_pack_u32(self): st = apx.VmPackState(value=0) data = bytearray([0,0,0,0]) data_offset = st.pack_u32(data, 0) self.assertEqual(data_offset, apx.UINT32_LEN) self.assertEqual(data, bytearray([0x00, 0x00, 0x00, 0x00])) st.value=0x12345678 data_offset = st.pack_u32(data, 0) self.assertEqual(data_offset, apx.UINT32_LEN) self.assertEqual(data, bytearray([0x78, 0x56, 0x34, 0x12])) st.value=0xFFFFFFFF data_offset = st.pack_u32(data, 0) self.assertEqual(data_offset, apx.UINT32_LEN) self.assertEqual(data, bytearray([0xFF, 0xFF, 0xFF, 0xFF])) def test_pack_s8(self): st = apx.VmPackState(value=0) data = bytearray(1) data_offset = st.pack_s8(data, 0) self.assertEqual(data_offset, apx.UINT8_LEN) self.assertEqual(data, bytearray([0])) st.value=127 data_offset = st.pack_s8(data, 0) self.assertEqual(data_offset, apx.UINT8_LEN) self.assertEqual(data, bytearray([127])) st.value=-1 data_offset = st.pack_s8(data, 0) self.assertEqual(data_offset, apx.UINT8_LEN) self.assertEqual(data, bytearray([0xFF])) st.value=-128 data_offset = st.pack_s8(data, 0) self.assertEqual(data_offset, apx.UINT8_LEN) self.assertEqual(data, bytearray([0x80])) def test_pack_s16(self): st = apx.VmPackState(value=0) data = bytearray(2) data_offset = st.pack_s16(data, 0) self.assertEqual(data_offset, apx.SINT16_LEN) self.assertEqual(data, bytearray([0, 0])) st.value=32767 data_offset = st.pack_s16(data, 0) self.assertEqual(data_offset, apx.SINT16_LEN) self.assertEqual(data, bytearray([0xFF, 0x7F])) st.value=-1 data_offset = st.pack_s16(data, 0) self.assertEqual(data_offset, apx.SINT16_LEN) self.assertEqual(data, bytearray([0xFF, 0xFF])) st.value=-32768 data_offset = st.pack_s16(data, 0) self.assertEqual(data_offset, apx.SINT16_LEN) self.assertEqual(data, bytearray([0x00, 0x80])) def test_pack_s32(self): st = apx.VmPackState(value=0) data = bytearray(4) data_offset = st.pack_s32(data, 0) self.assertEqual(data_offset, apx.SINT32_LEN) self.assertEqual(data, bytearray([0, 0, 0, 0])) st.value=2147483647 data_offset = st.pack_s32(data, 0) self.assertEqual(data_offset, apx.SINT32_LEN) self.assertEqual(data, bytearray([0xFF, 0xFF, 0xFF, 0x7F])) st.value=-1 data_offset = st.pack_s32(data, 0) self.assertEqual(data_offset, apx.SINT32_LEN) self.assertEqual(data, bytearray([0xFF, 0xFF, 0xFF, 0xFF])) st.value=-2147483648 data_offset = st.pack_s32(data, 0) self.assertEqual(data_offset, apx.SINT32_LEN) self.assertEqual(data, bytearray([0x00, 0x00, 0x00, 0x80])) def test_pack_u8_array(self): st = apx.VmPackState(value=[1,2,3]) data = bytearray(3) data_offset = 0 data_offset = st.pack_u8(data, data_offset, len(st.value)) self.assertEqual(data_offset, apx.UINT8_LEN*len(st.value)) self.assertEqual(data, bytearray([1, 2, 3])) def test_pack_u16_array(self): st = apx.VmPackState(value=[1,2,3]) data = bytearray(6) data_offset = 0 data_offset = st.pack_u16(data, data_offset, len(st.value)) self.assertEqual(data_offset, apx.UINT16_LEN*len(st.value)) self.assertEqual(data, bytearray([1, 0, 2, 0, 3, 0])) def test_pack_u32_array(self): st = apx.VmPackState(value=[1,2,3]) data = bytearray(12) data_offset = 0 data_offset = st.pack_u32(data, data_offset, len(st.value)) self.assertEqual(data_offset, apx.UINT32_LEN*len(st.value)) self.assertEqual(data, bytearray([1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0])) def test_pack_s8_array(self): st = apx.VmPackState(value=[-1,-2,-3]) data = bytearray(3) data_offset = 0 data_offset = st.pack_s8(data, data_offset, len(st.value)) self.assertEqual(data_offset, apx.UINT8_LEN*len(st.value)) self.assertEqual(data, bytearray([0xFF, 0xFE, 0xFD])) def test_pack_s16_array(self): st = apx.VmPackState(value=[-1,-2,-3]) data = bytearray(6) data_offset = 0 data_offset = st.pack_s16(data, data_offset, len(st.value)) self.assertEqual(data_offset, apx.UINT16_LEN*len(st.value)) self.assertEqual(data, bytearray([0xFF, 0xFF, 0xFE, 0xFF, 0xFD, 0xFF])) def test_pack_s32_array(self): st = apx.VmPackState(value=[-1,-2,-3]) data = bytearray(12) data_offset = 0 data_offset = st.pack_s32(data, data_offset, len(st.value)) self.assertEqual(data_offset, apx.UINT32_LEN*len(st.value)) self.assertEqual(data, bytearray([0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, 0xFF, 0xFD, 0xFF, 0xFF, 0xFF])) def test_pack_str_with_shorter_string_should_pad_with_zeros(self): data = bytearray(7) data_offset = 0 st = apx.VmPackState(value='Select') data_offset = st.pack_str(data, data_offset, 7) self.assertEqual(data_offset, 7) self.assertEqual(data, bytearray('Select\0'.encode('utf-8'))) def test_pack_str_which_fits_exactly_shall_not_pad_with_zeros(self): data = bytearray(7) data_offset = 0 st = apx.VmPackState(value='Selects') data_offset = st.pack_str(data, data_offset, 7) self.assertEqual(data_offset, 7) self.assertEqual(data, bytearray('Selects'.encode('utf-8'))) def test_pack_str_which_is_too_long_should_truncate_to_fit(self): data = bytearray(7) data_offset = 0 st = apx.VmPackState(value='Selected') data_offset = st.pack_str(data, data_offset, 7) self.assertEqual(data_offset, 7) self.assertEqual(data, bytearray('Selecte'.encode('utf-8'))) def test_pack_u8_to_record(self): st = apx.VmPackState(value={'a': 255, 'b': 7}) data = bytearray([0,0]) data_offset=0 st.record_enter() st.record_select('a') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 1) self.assertEqual(data, bytearray([255,0])) st.record_select('b') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(data, bytearray([255,7])) def test_pack_array_of_records(self): st = apx.VmPackState(value=[ {'a': 255, 'b': 7}, {'a': 29, 'b': 4}, {'a': 0, 'b': 200}, ]) data = bytearray(6) data_offset=0 self.assertIsNone(st.array_index) st.array_enter() self.assertEqual(st.array_index, 0) self.assertEqual(len(st.stack), 0) st.record_enter() self.assertIsNone(st.array_index) self.assertEqual(len(st.stack), 1) self.assertEqual(st.value, {'a': 255, 'b': 7}) st.record_select('a') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data, bytearray([255,0,0,0,0,0])) st.record_select('b') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(data, bytearray([255,7,0,0,0,0])) st.record_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.array_index, 1) st.record_enter() self.assertIsNone(st.array_index) self.assertEqual(len(st.stack), 1) self.assertEqual(st.value, {'a': 29, 'b': 4}) st.record_select('a') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data, bytearray([255,7,29,0,0,0])) st.record_select('b') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 4) self.assertEqual(data, bytearray([255,7,29,4,0,0])) st.record_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.array_index, 2) st.record_enter() self.assertIsNone(st.array_index) self.assertEqual(len(st.stack), 1) self.assertEqual(st.value, {'a': 0, 'b': 200}) st.record_select('a') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data, bytearray([255,7,29,4,0,0])) st.record_select('b') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 6) self.assertEqual(data, bytearray([255,7,29,4,0,200])) st.record_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.array_index, 3) st.array_leave() self.assertIsNone(st.array_index) def test_pack_array_of_records_in_record(self): st = apx.VmPackState(value={'customers': [{'id': 1, 'amount': 2}, {'id': 2, 'amount': 10}], 'priority': 4}) data = bytearray(5) data_offset=0 st.record_enter() st.record_select('customers') self.assertEqual(st.key, 'customers') self.assertEqual(len(st.stack), 0) st.array_enter() self.assertEqual(len(st.stack), 1) self.assertIsNone(st.key) st.record_enter() self.assertEqual(st.value, {'id': 1, 'amount': 2}) st.record_select('id') data_offset = st.pack_u8(data, data_offset) st.record_select('amount') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data, bytearray([1,2,0,0,0])) st.record_leave() self.assertEqual(st.array_index, 1) st.record_enter() self.assertEqual(st.value, {'id': 2, 'amount': 10}) st.record_select('id') data_offset = st.pack_u8(data, data_offset) st.record_select('amount') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data, bytearray([1,2,2,10,0])) st.record_leave() st.array_leave() self.assertEqual(len(st.stack), 0) st.record_select('priority') data_offset = st.pack_u8(data, data_offset) self.assertEqual(data_offset, 5) self.assertEqual(data, bytearray([1,2,2,10,4])) self.assertEqual(st.key, 'priority') st.record_leave() self.assertIsNone(st.key) def test_pack_array_inside_array(self): st = apx.VmPackState(value=[ [1,2], [3,4] ]) data = bytearray(4) data_offset=0 st.array_enter() st.array_enter() self.assertEqual(len(st.stack), 1) data_offset = st.pack_u8(data, data_offset, 2) self.assertEqual(data_offset, 2) self.assertEqual(data, bytearray([1,2,0,0])) st.array_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.array_index, 1) st.array_enter() self.assertEqual(len(st.stack), 1) data_offset = st.pack_u8(data, data_offset, 2) self.assertEqual(data_offset, 4) self.assertEqual(data, bytearray([1,2,3,4])) st.array_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.array_index, 2) st.array_leave() self.assertIsNone(st.array_index) class TestVmUnpackState(unittest.TestCase): def test_record_enter(self): st = apx.VmUnpackState() self.assertIsNone(st.value) self.assertIsNone(st.key) st.record_enter() self.assertEqual(st.value, {}) def test_record_select(self): st = apx.VmUnpackState() self.assertIsNone(st.value) self.assertIsNone(st.key) with self.assertRaises(RuntimeError) as context: st.record_select('name') self.assertEqual("record_select performed before record_enter", str(context.exception)) st.record_enter() self.assertEqual(st.value, {}) st.record_select('name') self.assertEqual(st.key, 'name') def test_record_leave(self): st = apx.VmUnpackState() self.assertIsNone(st.value) self.assertIsNone(st.key) st.record_enter() self.assertEqual(st.value, {}) st.record_select('name') self.assertEqual(st.key, 'name') st.record_leave() self.assertIsNone(st.key) def test_unpack_u8(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([3,15]) data_offset = 0 data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 1) self.assertEqual(st.value,3) data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(st.value,15) def test_unpack_u8_array(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([1,3,7,15,31]) data_offset = 0 data_offset = st.unpack_u8(data, data_offset, 5) self.assertEqual(data_offset, 5) self.assertEqual(st.value, [1,3,7,15,31]) def test_unpack_u8_from_record(self): st = apx.VmUnpackState() data = bytearray([255, 7]) data_offset=0 st.record_enter() st.record_select('a') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 1) st.record_select('b') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(st.value, {'a': 255, 'b': 7}) def test_unpack_array_of_records(self): st = apx.VmUnpackState() data = bytearray([255,7,29,4,0,200]) data_offset=0 self.assertIsNone(st.value) self.assertIsNone(st.array_index) st.array_enter() self.assertEqual(st.value, []) self.assertEqual(st.array_index, 0) self.assertEqual(len(st.stack), 0) st.record_enter() self.assertIsNone(st.array_index) self.assertEqual(len(st.stack), 1) self.assertEqual(st.value, {}) st.record_select('a') data_offset = st.unpack_u8(data, data_offset) st.record_select('b') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(st.value, {'a': 255, 'b': 7}) st.record_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.value, [{'a': 255, 'b': 7}]) st.record_enter() self.assertIsNone(st.array_index) self.assertEqual(len(st.stack), 1) self.assertEqual(st.value, {}) st.record_select('a') data_offset = st.unpack_u8(data, data_offset) st.record_select('b') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 4) self.assertEqual(st.value, {'a': 29, 'b': 4}) st.record_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.value, [{'a': 255, 'b': 7}, {'a': 29, 'b': 4}]) self.assertEqual(st.array_index, 2) st.record_enter() self.assertIsNone(st.array_index) self.assertEqual(len(st.stack), 1) self.assertEqual(st.value, {}) st.record_select('a') data_offset = st.unpack_u8(data, data_offset) st.record_select('b') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 6) self.assertEqual(st.value, {'a': 0, 'b': 200}) st.record_leave() self.assertEqual(len(st.stack), 0) self.assertEqual(st.value, [{'a': 255, 'b': 7}, {'a': 29, 'b': 4}, {'a': 0, 'b': 200}]) self.assertEqual(st.array_index, 3) st.array_leave() self.assertIsNone(st.array_index) def test_unpack_array_of_records_in_record(self): st = apx.VmUnpackState() data = bytearray([1,2,2,10,4]) data_offset=0 st.record_enter() st.record_select('customers') self.assertEqual(st.key, 'customers') self.assertEqual(len(st.stack), 0) st.array_enter() self.assertEqual(len(st.stack), 1) self.assertIsNone(st.key) self.assertEqual(st.array_index, 0) st.record_enter() self.assertEqual(st.value, {}) st.record_select('id') data_offset = st.unpack_u8(data, data_offset) st.record_select('amount') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(st.value, {'id': 1, 'amount': 2}) st.record_leave() self.assertEqual(st.array_index, 1) st.record_enter() self.assertEqual(st.value, {}) st.record_select('id') data_offset = st.unpack_u8(data, data_offset) st.record_select('amount') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(st.value, {'id': 2, 'amount': 10}) st.record_leave() st.array_leave() self.assertEqual(len(st.stack), 0) st.record_select('priority') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 5) st.record_leave() self.assertIsNone(st.key) self.assertEqual(st.value, {'customers': [{'id': 1, 'amount': 2}, {'id': 2, 'amount': 10}], 'priority': 4}) def test_unpack_array_inside_array(self): st = apx.VmUnpackState() data = bytearray([1,2,3,4]) data_offset=0 st.array_enter() st.array_enter() self.assertEqual(len(st.stack), 1) data_offset = st.unpack_u8(data, data_offset, 2) self.assertEqual(data_offset, 2) self.assertEqual(st.value, [1,2]) st.array_leave() self.assertEqual(st.array_index, 1) st.array_enter() self.assertEqual(len(st.stack), 1) data_offset = st.unpack_u8(data, data_offset, 2) self.assertEqual(data_offset, 4) self.assertEqual(st.value, [3,4]) st.array_leave() self.assertEqual(st.array_index, 2) st.array_leave() self.assertIsNone(st.array_index) self.assertEqual(st.value, [[1,2], [3,4]]) def test_unpack_u16(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0,0, 0x34,0x12, 0xFF,0xFF]) data_offset = 0 data_offset = st.unpack_u16(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(st.value, 0) data_offset = st.unpack_u16(data, data_offset) self.assertEqual(data_offset, 4) self.assertEqual(st.value, 0x1234) data_offset = st.unpack_u16(data, data_offset) self.assertEqual(data_offset, 6) self.assertEqual(st.value, 65535) def test_unpack_u32(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0,0,0,0, 0x78,0x56,0x34,0x12, 0xFF,0xFF,0xFF,0xFF]) data_offset = 0 data_offset = st.unpack_u32(data, data_offset) self.assertEqual(data_offset, 4) self.assertEqual(st.value, 0) data_offset = st.unpack_u32(data, data_offset) self.assertEqual(data_offset, 8) self.assertEqual(st.value, 0x12345678) data_offset = st.unpack_u32(data, data_offset) self.assertEqual(data_offset, 12) self.assertEqual(st.value, 0xFFFFFFFF) def test_unpack_s8(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0x80,0xFF,0,127]) data_offset = 0 data_offset = st.unpack_s8(data, data_offset) self.assertEqual(data_offset, 1) self.assertEqual(st.value, -128) data_offset = st.unpack_s8(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(st.value, -1) data_offset = st.unpack_s8(data, data_offset) self.assertEqual(data_offset, 3) self.assertEqual(st.value, 0) data_offset = st.unpack_s8(data, data_offset) self.assertEqual(data_offset, 4) self.assertEqual(st.value, 127) def test_unpack_s16(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0,0x80, 0xFF,0xFF, 0,0, 0xFF,0x7F]) data_offset = 0 data_offset = st.unpack_s16(data, data_offset) self.assertEqual(data_offset, 2) self.assertEqual(st.value, -32768) data_offset = st.unpack_s16(data, data_offset) self.assertEqual(data_offset, 4) self.assertEqual(st.value, -1) data_offset = st.unpack_s16(data, data_offset) self.assertEqual(data_offset, 6) self.assertEqual(st.value, 0) data_offset = st.unpack_s16(data, data_offset) self.assertEqual(data_offset, 8) self.assertEqual(st.value, 32767) def test_unpack_s32(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0,0,0,0x80, 0xFF,0xFF,0xFF,0xFF, 0,0,0,0, 0xFF,0xFF,0xFF,0x7F]) data_offset = 0 data_offset = st.unpack_s32(data, data_offset) self.assertEqual(data_offset, 4) self.assertEqual(st.value, -2147483648) data_offset = st.unpack_s32(data, data_offset) self.assertEqual(data_offset, 8) self.assertEqual(st.value, -1) data_offset = st.unpack_s32(data, data_offset) self.assertEqual(data_offset, 12) self.assertEqual(st.value, 0) data_offset = st.unpack_s32(data, data_offset) self.assertEqual(data_offset, 16) self.assertEqual(st.value, 2147483647) def test_unpack_s8_array(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0x80,0xFF,0,127]) data_offset = 0 data_offset = st.unpack_s8(data, data_offset, 4) self.assertEqual(data_offset, 4) self.assertEqual(st.value, [-128,-1,0,127]) def test_unpack_s16_array(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0,0x80, 0xFF,0xFF, 0,0, 0xFF,0x7F]) data_offset = 0 data_offset = st.unpack_s16(data, data_offset, 4) self.assertEqual(data_offset, 8) self.assertEqual(st.value, [-32768, -1, 0, 32767]) def test_unpack_s32(self): st = apx.VmUnpackState() self.assertIsNone(st.value) data = bytearray([0,0,0,0x80, 0xFF,0xFF,0xFF,0xFF, 0,0,0,0, 0xFF,0xFF,0xFF,0x7F]) data_offset = 0 data_offset = st.unpack_s32(data, data_offset, 4) self.assertEqual(data_offset, 16) self.assertEqual(st.value, [-2147483648, -1, 0, 2147483647]) def test_unpack_str(self): st = apx.VmUnpackState() data = bytearray('Hello\0World\0\0\0'.encode('utf-8')) data_offset = 0 data_offset = st.unpack_str(data, data_offset, 6) self.assertEqual(data_offset, 6) self.assertEqual(st.value, 'Hello') data_offset = st.unpack_str(data, data_offset, 5) self.assertEqual(data_offset, 11) self.assertEqual(st.value, 'World') data_offset = st.unpack_str(data, data_offset, 3) self.assertEqual(data_offset, 14) self.assertEqual(st.value, '') def test_unpack_str_in_record(self): st = apx.VmUnpackState() data = bytearray(bytes([14,0])+"Selection\0".encode('utf-8')+bytes([0])) data_offset = 0 st.record_enter() st.record_select('Position') data_offset = st.unpack_u16(data, data_offset) self.assertEqual(data_offset, 2) st.record_select('Label') data_offset = st.unpack_str(data, data_offset, 10) self.assertEqual(data_offset, 12) st.record_select('Index') data_offset = st.unpack_u8(data, data_offset) self.assertEqual(data_offset, 13) st.record_leave() self.assertEqual(st.value, {'Position': 14, 'Label': 'Selection', 'Index': 0}) if __name__ == '__main__': unittest.main()
40.420155
116
0.603391
3,416
26,071
4.418326
0.040984
0.177566
0.149805
0.125886
0.920957
0.907904
0.870404
0.85755
0.809581
0.775128
0
0.056623
0.265698
26,071
645
117
40.420155
0.73177
0
0
0.715474
0
0
0.018287
0
0
0
0.01872
0
0.424293
1
0.063228
false
0
0.004992
0
0.071547
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
d06fa9ce1b2c77314bbd43de5f2f618772725880
33,476
py
Python
proj/learn2reg/sampler.py
NanYoMy/mmregnet
50909d39289733264dce14666e9deeecbe858819
[ "Apache-2.0" ]
7
2021-05-18T05:21:41.000Z
2022-01-03T07:03:35.000Z
proj/learn2reg/sampler.py
NanYoMy/mmregnet
50909d39289733264dce14666e9deeecbe858819
[ "Apache-2.0" ]
null
null
null
proj/learn2reg/sampler.py
NanYoMy/mmregnet
50909d39289733264dce14666e9deeecbe858819
[ "Apache-2.0" ]
null
null
null
import SimpleITK as sitk import numpy as np import glob import random import os import preprocessor.tools as tools from scipy.stats import zscore from dirutil.helper import sort_glob,glob_cross_validation_files from tool.parse import parse_arg_list ''' 4-fold验证 ''' # class Sampler(): # def __init__(self,args,type): # self.args=args # # if type=='train': # self.is_train=True # self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) # self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir +'/train_atlas/rez/lab' )) # #所有的数据 # self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/img'))+sort_glob('{}/*.*'.format(args.dataset_dir + '/validate_target/rez/img')) # self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/lab'))+sort_glob('{}/*.*'.format(args.dataset_dir + '/validate_target/rez/lab')) # if len(self.img_fix)>0: # del self.img_fix[(args.fold-1)*4:(args.fold-1)*4+4] # del self.lab_fix[(args.fold-1)*4:(args.fold-1)*4+4] # # # elif type == 'train_sim': # self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) # self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/lab')) # self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_fuse_target/rez/img')) # self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_fuse_target/rez/lab')) # elif type == 'gen_fusion_train': # self.is_train = True # self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) # self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/lab')) # #所有的数据 # self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/img'))+sort_glob('{}/*.*'.format(args.dataset_dir + '/validate_target/rez/img')) # self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/lab'))+sort_glob('{}/*.*'.format(args.dataset_dir + '/validate_target/rez/lab')) # del self.img_fix[(args.fold-1)*4:(args.fold-1)*4+4] # del self.lab_fix[(args.fold-1)*4:(args.fold-1)*4+4] # # #训练融合的代码的时候,把fuse和train_target一起放入进去 # self.img_fix =self.img_fix + sort_glob('{}/*.*'.format(args.dataset_dir + '/train_fuse_target/rez/img')) # self.lab_fix =self.lab_fix + sort_glob('{}/*.*'.format(args.dataset_dir + '/train_fuse_target/rez/lab')) # # elif type == 'test': # self.is_train = False # self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) # self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/lab')) # self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/test_target/rez/img')) # self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/test_target/rez/lab')) # elif type == 'validate': # self.is_train = False # self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) # self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/lab')) # self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/img'))+sort_glob('{}/*.*'.format(args.dataset_dir + '/validate_target/rez/img')) # self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/lab'))+sort_glob('{}/*.*'.format(args.dataset_dir + '/validate_target/rez/lab')) # # if len(self.img_fix)>0: # self.img_fix=[self.img_fix[i] for i in range((args.fold-1)*4,(args.fold-1)*4+4)] # self.lab_fix=[self.lab_fix[i] for i in range((args.fold-1)*4,(args.fold-1)*4+4)] # # # else: # print("not support gen sampler type") # exit(-900) # # if len(self.img_mv)!=len(self.lab_mv): # print("error,number of image and lab not equal") # exit(-900) # self.num=len(self.img_mv) # self.nb_pairs=len(self.img_fix)*len(self.img_mv) # self.len_fix=len(self.img_fix) # self.len_mv=len(self.img_mv) # self.index=0 # def reset_sequnce_index(self): # self.index=0 # def next_sample(self): # index_mvs=[] # index_fixs=[] # for i in range(self.args.batch_size): # if self.is_train: # index_mv,index_fix=self.generate_random_index() # else: # index_mv,index_fix=self.generate_sequnce_index() # index_mvs.append(index_mv) # index_fixs.append(index_fix) # # print(str(index_mv)+":"+str(index_fix)) # return self.get_batch_data(index_mvs,index_fixs) # # def get_batch_file(self): # img_mvs=[] # img_fixs=[] # lab_mvs=[] # lab_fixs=[] # for i in range(self.args.batch_size): # if self.is_train: # index_mv,index_fix=self.generate_random_index() # else: # index_mv,index_fix=self.generate_sequnce_index() # img_mvs.append(self.img_mv[index_mv]) # lab_mvs.append(self.lab_mv[index_mv]) # # img_fixs.append(self.img_fix[index_fix]) # lab_fixs.append(self.lab_fix[index_fix]) # return img_mvs,img_fixs,lab_mvs,lab_fixs # def get_batch_data_V2(self,img_mvs,img_fixs,lab_mvs,lab_fixs): # fix_imgs = [] # fix_labs = [] # mv_imgs = [] # mv_labs = [] # for img_mv,img_fix,lab_mv,lab_fix in zip(img_mvs,img_fixs,lab_mvs,lab_fixs): # # print(str(index_mv)+":"+str(index_fix)) # imgA, imgB = sitk.ReadImage(img_mv), sitk.ReadImage(img_fix) # imgA, imgB = sitk.RescaleIntensity(imgA), sitk.RescaleIntensity(imgB) # labA, labB = sitk.ReadImage(lab_mv), sitk.ReadImage(lab_fix) # mv_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgA), axis=None), axis=-1)) # fix_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgB), axis=None), axis=-1)) # # if self.is_train: # # 可以选择不同的label来做evaluate # candidate_label_index = [int(i) for i in self.args.components.split(',')] # label_index = candidate_label_index[np.random.randint(len(candidate_label_index))] # else: # label_index = self.args.component # # ''' # 当数据是D*W*H的时候,这个数据的值可能是[1,NB_lable],所以需要进行np.where转换 # 当数据是D*W*H*C的时候,这个数据如果有通道C,则里面的数据保证为0,1 # 最后神经网络的输入数据为 D*W*H*1 ,在本网络中,支持的是这种数据 # ''' # labA = sitk.GetArrayFromImage(labA) # labA = np.where(labA == label_index, 1, 0) # mv_labs.append(np.expand_dims(labA, axis=-1)) # # labB = sitk.GetArrayFromImage(labB) # labB = np.where(labB == label_index, 1, 0) # fix_labs.append(np.expand_dims(labB, axis=-1)) # # fix_imgs = np.array(fix_imgs).astype(np.float32) # fix_labs = np.array(fix_labs).astype(np.float32) # mv_imgs = np.array(mv_imgs).astype(np.float32) # mv_labs = np.array(mv_labs).astype(np.float32) # # return fix_imgs, fix_labs, mv_imgs, mv_labs # # def generate_sequnce_index(self): # index_mv=self.index//len(self.img_fix) # index_fix=self.index%len(self.img_fix) # self.index=self.index+1 # self.index=self.index%(len(self.img_fix)*len(self.img_mv)) # return index_mv,index_fix # def generate_random_index(self): # return np.random.randint(self.num),np.random.randint(self.num) # # def get_batch_data(self,atlas,targets): # fix_imgs = [] # fix_labs = [] # mv_imgs = [] # mv_labs = [] # for index_mv,index_fix in zip(atlas,targets): # # print(str(index_mv)+":"+str(index_fix)) # # imgA, imgB = sitk.ReadImage(self.img_mv[index_mv]), sitk.ReadImage(self.img_fix[index_fix]) # imgA, imgB = sitk.RescaleIntensity(imgA), sitk.RescaleIntensity(imgB) # labA, labB = sitk.ReadImage(self.lab_mv[index_mv]), sitk.ReadImage(self.lab_fix[index_fix]) # mv_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgA), axis=None), axis=-1)) # fix_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgB), axis=None), axis=-1)) # # imgA, imgB = sitk.RescaleIntensity(imgA,0,1), sitk.RescaleIntensity(imgB,0,1) # # labA, labB = sitk.ReadImage(self.lab_mv[index_mv]), sitk.ReadImage(self.lab_fix[index_fix]) # # mv_imgs.append(np.expand_dims((sitk.GetArrayFromImage(imgA)), axis=-1)) # # fix_imgs.append(np.expand_dims((sitk.GetArrayFromImage(imgB)), axis=-1)) # # # if self.is_train: # #可以选择不同的label来做evaluate # candidate_label_index = [ int(i) for i in self.args.components.split(',')] # label_index=candidate_label_index[np.random.randint(len(candidate_label_index))] # else: # label_index=self.args.component # # ''' # 当数据是D*W*H的时候,这个数据的值可能是[1,NB_lable],所以需要进行np.where转换 # 当数据是D*W*H*C的时候,这个数据如果有通道C,则里面的数据保证为0,1 # 最后神经网络的输入数据为 D*W*H*1 ,在本网络中,支持的是这种数据 # ''' # labA=sitk.GetArrayFromImage(labA) # labA=np.where(labA == label_index, 1, 0) # mv_labs.append(np.expand_dims(labA,axis=-1)) # # labB=sitk.GetArrayFromImage(labB) # labB=np.where(labB == label_index, 1, 0) # fix_labs.append(np.expand_dims(labB,axis=-1)) # # fix_imgs = np.array(fix_imgs).astype(np.float32) # fix_labs = np.array(fix_labs).astype(np.float32) # mv_imgs = np.array(mv_imgs).astype(np.float32) # mv_labs = np.array(mv_labs).astype(np.float32) # # return fix_imgs, fix_labs,mv_imgs,mv_labs class Sampler(): def __init__(self,args,type): self.args=args if type=='train': self.is_train=True self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir +'/train_atlas/rez/lab' )) #所有的数据 self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/img')) self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/lab')) del self.img_mv[(args.fold-1)*5:(args.fold-1)*5+5] del self.lab_mv[(args.fold-1)*5:(args.fold-1)*5+5] del self.img_fix[(args.fold-1)*5:(args.fold-1)*5+5] del self.lab_fix[(args.fold-1)*5:(args.fold-1)*5+5] #for similarity del self.img_mv[-4:] del self.lab_mv[-4:] del self.img_fix[-4:] del self.lab_fix[-4:] elif type == 'validate': self.is_train = False self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir +'/train_atlas/rez/lab' )) #所有的数据 self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/img')) self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/lab')) #validation del self.img_mv[(args.fold-1)*5:(args.fold-1)*5+5] del self.lab_mv[(args.fold-1)*5:(args.fold-1)*5+5] del self.img_mv[-4:] del self.lab_mv[-4:] self.img_fix = [self.img_fix[i] for i in range((args.fold - 1) * 5, (args.fold - 1) * 5 + 5)] self.lab_fix = [self.lab_fix[i] for i in range((args.fold - 1) * 5, (args.fold - 1) * 5 + 5)] elif type == 'gen_fusion_train': self.is_train = True self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_atlas/rez/img')) self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir +'/train_atlas/rez/lab' )) #所有的数据 self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/img')) self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/train_target/rez/lab')) del self.img_mv[(args.fold-1)*5:(args.fold-1)*5+5] del self.lab_mv[(args.fold-1)*5:(args.fold-1)*5+5] del self.img_fix[(args.fold-1)*5:(args.fold-1)*5+5] del self.lab_fix[(args.fold-1)*5:(args.fold-1)*5+5] else: print("not support gen sampler type") exit(-900) if len(self.img_mv)!=len(self.lab_mv): print("error,number of image and lab not equal") exit(-900) self.num=len(self.img_mv) self.nb_pairs=len(self.img_fix)*len(self.img_mv) self.len_fix=len(self.img_fix) self.len_mv=len(self.img_mv) self.index=0 def reset_sequnce_index(self): self.index=0 def next_sample(self): index_mvs=[] index_fixs=[] for i in range(self.args.batch_size): if self.is_train: index_mv,index_fix=self.generate_random_index() else: index_mv,index_fix=self.generate_sequnce_index() index_mvs.append(index_mv) index_fixs.append(index_fix) # print(str(index_mv)+":"+str(index_fix)) return self.get_batch_data(index_mvs,index_fixs) def get_batch_file(self): img_mvs=[] img_fixs=[] lab_mvs=[] lab_fixs=[] for i in range(self.args.batch_size): if self.is_train: index_mv,index_fix=self.generate_random_index() else: index_mv,index_fix=self.generate_sequnce_index() img_mvs.append(self.img_mv[index_mv]) lab_mvs.append(self.lab_mv[index_mv]) img_fixs.append(self.img_fix[index_fix]) lab_fixs.append(self.lab_fix[index_fix]) return img_mvs,img_fixs,lab_mvs,lab_fixs def get_batch_data_V2(self,img_mvs,img_fixs,lab_mvs,lab_fixs): fix_imgs = [] fix_labs = [] mv_imgs = [] mv_labs = [] for img_mv,img_fix,lab_mv,lab_fix in zip(img_mvs,img_fixs,lab_mvs,lab_fixs): # print(str(index_mv)+":"+str(index_fix)) imgA, imgB = sitk.ReadImage(img_mv), sitk.ReadImage(img_fix) imgA, imgB = sitk.RescaleIntensity(imgA), sitk.RescaleIntensity(imgB) labA, labB = sitk.ReadImage(lab_mv), sitk.ReadImage(lab_fix) mv_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgA), axis=None), axis=-1)) fix_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgB), axis=None), axis=-1)) if self.is_train: # 可以选择不同的label来做evaluate candidate_label_index = [int(i) for i in self.args.components.split(',')] label_index = candidate_label_index[np.random.randint(len(candidate_label_index))] else: label_index = self.args.component ''' 当数据是D*W*H的时候,这个数据的值可能是[1,NB_lable],所以需要进行np.where转换 当数据是D*W*H*C的时候,这个数据如果有通道C,则里面的数据保证为0,1 最后神经网络的输入数据为 D*W*H*1 ,在本网络中,支持的是这种数据 ''' labA = sitk.GetArrayFromImage(labA) labA = np.where(labA == label_index, 1, 0) mv_labs.append(np.expand_dims(labA, axis=-1)) labB = sitk.GetArrayFromImage(labB) labB = np.where(labB == label_index, 1, 0) fix_labs.append(np.expand_dims(labB, axis=-1)) fix_imgs = np.array(fix_imgs).astype(np.float32) fix_labs = np.array(fix_labs).astype(np.float32) mv_imgs = np.array(mv_imgs).astype(np.float32) mv_labs = np.array(mv_labs).astype(np.float32) return fix_imgs, fix_labs, mv_imgs, mv_labs def generate_sequnce_index(self): index_mv=self.index//len(self.img_fix) index_fix=self.index%len(self.img_fix) self.index=self.index+1 self.index=self.index%(len(self.img_fix)*len(self.img_mv)) return index_mv,index_fix def generate_random_index(self): return np.random.randint(self.num),np.random.randint(self.num) def get_batch_data(self,atlas,targets): fix_imgs = [] fix_labs = [] mv_imgs = [] mv_labs = [] for index_mv,index_fix in zip(atlas,targets): # print(str(index_mv)+":"+str(index_fix)) imgA, imgB = sitk.ReadImage(self.img_mv[index_mv]), sitk.ReadImage(self.img_fix[index_fix]) imgA, imgB = sitk.RescaleIntensity(imgA), sitk.RescaleIntensity(imgB) labA, labB = sitk.ReadImage(self.lab_mv[index_mv]), sitk.ReadImage(self.lab_fix[index_fix]) mv_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgA), axis=None), axis=-1)) fix_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgB), axis=None), axis=-1)) # imgA, imgB = sitk.RescaleIntensity(imgA,0,1), sitk.RescaleIntensity(imgB,0,1) # labA, labB = sitk.ReadImage(self.lab_mv[index_mv]), sitk.ReadImage(self.lab_fix[index_fix]) # mv_imgs.append(np.expand_dims((sitk.GetArrayFromImage(imgA)), axis=-1)) # fix_imgs.append(np.expand_dims((sitk.GetArrayFromImage(imgB)), axis=-1)) if self.is_train: #可以选择不同的label来做evaluate candidate_label_index = [ int(i) for i in self.args.components.split(',')] label_index=candidate_label_index[np.random.randint(len(candidate_label_index))] else: label_index=self.args.component ''' 当数据是D*W*H的时候,这个数据的值可能是[1,NB_lable],所以需要进行np.where转换 当数据是D*W*H*C的时候,这个数据如果有通道C,则里面的数据保证为0,1 最后神经网络的输入数据为 D*W*H*1 ,在本网络中,支持的是这种数据 ''' labA=sitk.GetArrayFromImage(labA) labA=np.where(labA == label_index, 1, 0) mv_labs.append(np.expand_dims(labA,axis=-1)) labB=sitk.GetArrayFromImage(labB) labB=np.where(labB == label_index, 1, 0) fix_labs.append(np.expand_dims(labB,axis=-1)) fix_imgs = np.array(fix_imgs).astype(np.float32) fix_labs = np.array(fix_labs).astype(np.float32) mv_imgs = np.array(mv_imgs).astype(np.float32) mv_labs = np.array(mv_labs).astype(np.float32) return fix_imgs, fix_labs,mv_imgs,mv_labs ''' 用于做跨模态交叉验证的时候sampler ''' class RegSampler(): def __init__(self, args, type): self.args = args validation_size=5 mode=parse_arg_list(args.mode) if type == 'train': self.is_train = True self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode[0]))) self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode[0]))) # 所有的数据 self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode[1]))) self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode[1]))) if len(self.img_fix) > 0: del self.img_fix[(args.fold - 1) * validation_size:(args.fold - 1) * validation_size + validation_size] del self.lab_fix[(args.fold - 1) * validation_size:(args.fold - 1) * validation_size + validation_size] if len(self.img_mv) > 0: del self.img_mv[(args.fold - 1) * validation_size:(args.fold - 1) * validation_size + validation_size] del self.lab_mv[(args.fold - 1) * validation_size:(args.fold - 1) * validation_size + validation_size] elif type == 'validate': self.is_train = False self.img_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode[0]))) self.lab_mv = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode[0]))) self.img_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode[1]))) self.lab_fix = sort_glob('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode[1]))) if len(self.img_fix)>0: self.img_fix=[self.img_fix[i] for i in range((args.fold-1)*validation_size,(args.fold-1)*validation_size+validation_size)] self.lab_fix=[self.lab_fix[i] for i in range((args.fold-1)*validation_size,(args.fold-1)*validation_size+validation_size)] if len(self.img_mv)>0: self.img_mv=[self.img_mv[i] for i in range((args.fold-1)*validation_size,(args.fold-1)*validation_size+validation_size)] self.lab_mv=[self.lab_mv[i] for i in range((args.fold-1)*validation_size,(args.fold-1)*validation_size+validation_size)] else: print("not support gen sampler type") exit(-900) if len(self.img_mv)!=len(self.lab_mv): print("error,number of image and lab not equal") exit(-900) self.num=len(self.img_mv) self.nb_pairs=len(self.img_fix)*len(self.img_mv) self.len_fix=len(self.img_fix) self.len_mv=len(self.img_mv) self.index=0 def reset_sequnce_index(self): self.index=0 def next_sample(self): index_mvs=[] index_fixs=[] for i in range(self.args.batch_size): if self.is_train: index_mv,index_fix=self.generate_random_index() else: index_mv,index_fix=self.generate_sequnce_index() index_mvs.append(index_mv) index_fixs.append(index_fix) # print(str(index_mv)+":"+str(index_fix)) return self.get_batch_data(index_mvs,index_fixs) def get_batch_file(self): img_mvs=[] img_fixs=[] lab_mvs=[] lab_fixs=[] for i in range(self.args.batch_size): if self.is_train: index_mv,index_fix=self.generate_random_index() else: index_mv,index_fix=self.generate_sequnce_index() img_mvs.append(self.img_mv[index_mv]) lab_mvs.append(self.lab_mv[index_mv]) img_fixs.append(self.img_fix[index_fix]) lab_fixs.append(self.lab_fix[index_fix]) return img_mvs,img_fixs,lab_mvs,lab_fixs def get_batch_data_V2(self,img_mvs,img_fixs,lab_mvs,lab_fixs): fix_imgs = [] fix_labs = [] mv_imgs = [] mv_labs = [] for img_mv,img_fix,lab_mv,lab_fix in zip(img_mvs,img_fixs,lab_mvs,lab_fixs): # print(str(index_mv)+":"+str(index_fix)) imgA, imgB = sitk.ReadImage(img_mv), sitk.ReadImage(img_fix) imgA, imgB = sitk.RescaleIntensity(imgA), sitk.RescaleIntensity(imgB) labA, labB = sitk.ReadImage(lab_mv), sitk.ReadImage(lab_fix) mv_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgA), axis=None), axis=-1)) fix_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgB), axis=None), axis=-1)) if self.is_train: # 可以选择不同的label来做evaluate candidate_label_index = [int(i) for i in self.args.components.split(',')] label_index = candidate_label_index[np.random.randint(len(candidate_label_index))] else: label_index = self.args.component ''' 当数据是D*W*H的时候,这个数据的值可能是[1,NB_lable],所以需要进行np.where转换 当数据是D*W*H*C的时候,这个数据如果有通道C,则里面的数据保证为0,1 最后神经网络的输入数据为 D*W*H*1 ,在本网络中,支持的是这种数据 ''' labA = sitk.GetArrayFromImage(labA) labA = np.where(labA == label_index, 1, 0) mv_labs.append(np.expand_dims(labA, axis=-1)) labB = sitk.GetArrayFromImage(labB) labB = np.where(labB == label_index, 1, 0) fix_labs.append(np.expand_dims(labB, axis=-1)) fix_imgs = np.array(fix_imgs).astype(np.float32) fix_labs = np.array(fix_labs).astype(np.float32) mv_imgs = np.array(mv_imgs).astype(np.float32) mv_labs = np.array(mv_labs).astype(np.float32) return fix_imgs, fix_labs, mv_imgs, mv_labs def generate_sequnce_index(self): index_mv=self.index//len(self.img_fix) index_fix=self.index%len(self.img_fix) self.index=self.index+1 self.index=self.index%(len(self.img_fix)*len(self.img_mv)) return index_mv,index_fix def generate_random_index(self): return np.random.randint(self.num),np.random.randint(self.num) def get_batch_data(self,atlas,targets): fix_imgs = [] fix_labs = [] mv_imgs = [] mv_labs = [] for index_mv,index_fix in zip(atlas,targets): # print(str(index_mv)+":"+str(index_fix)) imgA, imgB = sitk.ReadImage(self.img_mv[index_mv]), sitk.ReadImage(self.img_fix[index_fix]) imgA, imgB = sitk.RescaleIntensity(imgA), sitk.RescaleIntensity(imgB) labA, labB = sitk.ReadImage(self.lab_mv[index_mv]), sitk.ReadImage(self.lab_fix[index_fix]) mv_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgA), axis=None), axis=-1)) fix_imgs.append(np.expand_dims(zscore(sitk.GetArrayFromImage(imgB), axis=None), axis=-1)) # imgA, imgB = sitk.RescaleIntensity(imgA,0,1), sitk.RescaleIntensity(imgB,0,1) # labA, labB = sitk.ReadImage(self.lab_mv[index_mv]), sitk.ReadImage(self.lab_fix[index_fix]) # mv_imgs.append(np.expand_dims((sitk.GetArrayFromImage(imgA)), axis=-1)) # fix_imgs.append(np.expand_dims((sitk.GetArrayFromImage(imgB)), axis=-1)) # if self.is_train: # 可以选择不同的label来做evaluate # candidate_label_index = [ int(i) for i in self.args.components.split(',')] # label_index=candidate_label_index[np.random.randint(len(candidate_label_index))] # else: label_index=self.args.component ''' 当数据是D*W*H的时候,这个数据的值可能是[1,NB_lable],所以需要进行np.where转换 当数据是D*W*H*C的时候,这个数据如果有通道C,则里面的数据保证为0,1 最后神经网络的输入数据为 D*W*H*1 ,在本网络中,支持的是这种数据 ''' labA=sitk.GetArrayFromImage(labA) labA=np.where(labA == label_index, 1, 0) mv_labs.append(np.expand_dims(labA,axis=-1)) labB=sitk.GetArrayFromImage(labB) labB=np.where(labB == label_index, 1, 0) fix_labs.append(np.expand_dims(labB,axis=-1)) fix_imgs = np.array(fix_imgs).astype(np.float32) fix_labs = np.array(fix_labs).astype(np.float32) mv_imgs = np.array(mv_imgs).astype(np.float32) mv_labs = np.array(mv_labs).astype(np.float32) return fix_imgs, fix_labs,mv_imgs,mv_labs from tool.parse import parse_arg_list class MMSampler(): def __init__(self, args, type): self.args = args mode_list = parse_arg_list(args.mode, 'str') if type == 'train': self.is_train = True self.img_mv1 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode_list[0]))) self.lab_mv1 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode_list[0]))) self.img_mv2 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%mode_list[1])) self.lab_mv2 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%mode_list[1])) self.img_fix = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%mode_list[2])) self.lab_fix = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%mode_list[2])) self.img_fix,_=glob_cross_validation_files(self.img_fix,5,args.fold) self.lab_fix,_=glob_cross_validation_files(self.lab_fix,5,args.fold) self.img_mv1,_=glob_cross_validation_files(self.img_mv1,5,args.fold) self.lab_mv1,_=glob_cross_validation_files(self.lab_mv1,5,args.fold) self.img_mv2,_=glob_cross_validation_files(self.img_mv2,5,args.fold) self.lab_mv2,_=glob_cross_validation_files(self.lab_mv2,5,args.fold) elif type == 'validate': self.is_train = False self.img_mv1 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode_list[0]))) self.lab_mv1 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode_list[0]))) self.img_mv2 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode_list[1]))) self.lab_mv2 = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode_list[1]))) self.img_fix = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/img'%(mode_list[2]))) self.lab_fix = ('{}/*.*'.format(args.dataset_dir + '/%s/rez/lab'%(mode_list[2]))) _,self.img_fix=glob_cross_validation_files(self.img_fix,5,args.fold) _,self.lab_fix=glob_cross_validation_files(self.lab_fix,5,args.fold) _,self.img_mv1=glob_cross_validation_files(self.img_mv1,5,args.fold) _,self.lab_mv1=glob_cross_validation_files(self.lab_mv1,5,args.fold) _,self.img_mv2=glob_cross_validation_files(self.img_mv2,5,args.fold) _,self.lab_mv2=glob_cross_validation_files(self.lab_mv2,5,args.fold) else: print("not support gen sampler type") exit(-900) if len(self.img_mv1)!=len(self.lab_mv1): print("error,number of image and lab not equal") exit(-900) self.num=len(self.img_mv1) self.nb_pairs=len(self.img_fix)*len(self.img_mv1) self.len_fix=len(self.img_fix) self.len_mv1=len(self.img_mv1) self.len_mv2=len(self.img_mv2) self.index=0 def next_sample(self): mv_img1, mv_lab1, mv_img2, mv_lab2, fix_img, fix_lab= self.get_data_path() return self.get_batch_data(mv_img1,mv_lab1,mv_img2,mv_lab2,fix_img,fix_lab) def get_data_path(self ): mv_img1=[] mv_img2=[] mv_lab1=[] mv_lab2=[] fix_img=[] fix_lab=[] for i in range(self.args.batch_size): if self.is_train: index_mv, index_fix = self.generate_random_index() else: index_mv, index_fix = self.generate_sequnce_index() mv_img1.append(self.img_mv1[index_mv]) mv_img2.append(self.img_mv2[index_mv]) mv_lab1.append(self.lab_mv1[index_mv]) mv_lab2.append(self.lab_mv2[index_mv]) fix_img.append(self.img_fix[index_fix]) fix_lab.append(self.lab_fix[index_fix]) # print(str(index_mv)+":"+str(index_fix)) return mv_img1, mv_lab1, mv_img2,mv_lab2,fix_img, fix_lab def get_batch_data(self, mv_img1s, mv_lab1s, mv_img2s, mv_lab2s, fix_imgs, fix_labs): arr_mv_img1s = [] arr_mv_lab1s = [] arr_mv_img2s = [] arr_mv_lab2s = [] arr_fix_imgs = [] arr_fix_labs = [] for mv_img1,mv_lab1,mv_img2,mv_lab2,fix_img,fix_lab in zip(mv_img1s, mv_lab1s, mv_img2s, mv_lab2s, fix_imgs, fix_labs): arr_fix_img,arr_fix_lab=self.read_data( fix_img, fix_lab) arr_fix_imgs.append(arr_fix_img) arr_fix_labs.append(arr_fix_lab) arr_mv1_img,arr_mv1_lab=self.read_data( mv_img1, mv_lab1) arr_mv_img1s.append(arr_mv1_img) arr_mv_lab1s.append(arr_mv1_lab) arr_mv2_img,arr_mv2_lab=self.read_data( mv_img2, mv_lab2) arr_mv_img2s.append(arr_mv2_img) arr_mv_lab2s.append(arr_mv2_lab) ret_mv_img1s = np.array(arr_mv_img1s).astype(np.float32) ret_mv_lab1s = np.array(arr_mv_lab1s).astype(np.float32) ret_mv_img2s = np.array(arr_mv_img2s).astype(np.float32) ret_mv_lab2s = np.array(arr_mv_lab2s).astype(np.float32) ret_fix_imgs = np.array(arr_fix_imgs).astype(np.float32) ret_fix_labs = np.array(arr_fix_labs).astype(np.float32) return ret_mv_img1s,ret_mv_lab1s,ret_mv_img2s,ret_mv_lab2s,ret_fix_imgs,ret_fix_labs def read_data(self, img, lab): # print(str(index_mv)+":"+str(index_fix)) sitk_mv_img = sitk.ReadImage(img) sitk_mv_img= sitk.RescaleIntensity(sitk_mv_img) arr_mv_img=np.expand_dims(zscore(sitk.GetArrayFromImage(sitk_mv_img), axis=None), axis=-1) sitk_mv_lab= sitk.ReadImage(lab) ''' 当数据是D*W*H的时候,这个数据的值可能是[1,NB_lable],所以需要进行np.where转换 当数据是D*W*H*C的时候,这个数据如果有通道C,则里面的数据保证为0,1 最后神经网络的输入数据为 D*W*H*1 ,在本网络中,支持的是这种数据 ''' arr_mv_lab = sitk.GetArrayFromImage(sitk_mv_lab) arr_mv_lab = np.where(arr_mv_lab == self.args.component, 1, 0) arr_mv_lab=np.expand_dims(arr_mv_lab,axis=-1) return arr_mv_img,arr_mv_lab def generate_sequnce_index(self): index_mv=self.index//len(self.img_fix) index_fix=self.index%len(self.img_fix) self.index=self.index+1 self.index=self.index%(len(self.img_fix) * len(self.img_mv1)) return index_mv,index_fix def generate_random_index(self): return np.random.randint(self.num),np.random.randint(self.num) class Conven_Sampler(Sampler): def __init__(self): pass
48.236311
173
0.603059
4,709
33,476
4.026333
0.035464
0.047627
0.032173
0.063291
0.928903
0.912922
0.906224
0.899631
0.896044
0.891403
0
0.01779
0.246057
33,476
694
174
48.236311
0.733428
0.323724
0
0.727979
0
0
0.042959
0.005883
0
0
0
0
0
1
0.062176
false
0.002591
0.025907
0.007772
0.145078
0.015544
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
d084f5f90399cd901534e1ab12d43cfc2969b271
23,330
py
Python
reason.py
Harkishen-Singh/Agriculture-DS
f36a4124b754023e443ad1a94ad52cb2b92cf723
[ "Apache-2.0" ]
null
null
null
reason.py
Harkishen-Singh/Agriculture-DS
f36a4124b754023e443ad1a94ad52cb2b92cf723
[ "Apache-2.0" ]
null
null
null
reason.py
Harkishen-Singh/Agriculture-DS
f36a4124b754023e443ad1a94ad52cb2b92cf723
[ "Apache-2.0" ]
null
null
null
from manures import Manures from openpyxl import load_workbook, Workbook import csv class Reason(Manures): def format_check(self): file1 = load_workbook(self.sortedFileName) print(self.sortedFileName) sheet1 = file1['Sorted'] count = 2 isWrong = False while sheet1.cell(row=count, column=2).value != None : cross = sheet1.cell(row=count, column=21).value if cross == None: break #print(count) if cross.lower() != 'irrigated' and cross.lower() != 'rainfed' and cross.lower() != 'un-irrigated' \ and cross.lower() != 'unirrigated' : isWrong = True break count = count + 1 if isWrong == True: print('The file '+self.sortedFileName + ' doesnot contain the required data in column 21 in the required format.') print('Irrigation format wrong') exit(0) isWrong = False count = 2 while sheet1.cell(row=count, column=6).value != None: count = count + 1 cross = sheet1.cell(row=count, column=6).value if cross == None: break if cross.lower() != 'conventional' and cross.lower() != 'sri' : isWrong = True break count = count + 1 if isWrong == True: print('The file ' + self.sortedFileName + ' doesnot contain the required data in column 21 in the required format.') print('seeds detail format first part wrong') exit(0) isWrong = False count = 2 while sheet1.cell(row=count, column=7).value != None: count = count + 1 cross = sheet1.cell(row=count, column=7).value if cross == None: break if cross.lower() != 'high yieldling' and cross.lower() != 'local' : isWrong = True break count = count + 1 isWrong = False if isWrong == True : print('The file ' + self.sortedFileName + ' doesnot contain the required data in column 21 in the required format.') print('seeds details format second part wrong') exit(0) isWrong = False self.bad() def bad(self): file = load_workbook(self.sortedFileName_Bad) sheet = file['Sorted'] self.isIrrigatedType = [0] * 3 self.isIrrigatedType_counter=0 # irrigated, rainfed, unirrigated self.seed_Details_part1 = [0] * 2 self.seed_Details_part1_counter = 0 # conventional , sri self.seed_Details_part2 = [0] * 3 self.seed_Details_part2_counter = 0 # high yielding, local, hybrid count = 1 # pests damage avergae calculation self.pestDamage = 0 self.pestDamage_counter = 0 file2 = load_workbook('./ratios/ratio_bad_'+self.workbook_name2+'.xlsx') sheet2 = file2['Sheet'] count2 = 1 sheet2.cell(row=1, column=8, value='irrigated ratio') sheet2.cell(row=1, column=9, value='rainfed ratio') sheet2.cell(row=1, column=10, value='unirrigated ratio') sheet2.cell(row=1, column=11, value='conventional ratio') sheet2.cell(row=1, column=12, value='sri ratio') sheet2.cell(row=1, column=13, value='high yielding ratio') sheet2.cell(row=1, column=14, value='local ratio') sheet2.cell(row=1, column=15, value='hybrid ratio') sheet2.cell(row=1, column=16, value='pest damage') while sheet2.cell(row= count2, column=4).value != None: #print('Entered sheet2 part') count2 += 1 variety = sheet2.cell(row= count2, column=4).value if variety == None: break checker2 = False count = 2 while sheet.cell(row=count, column= 2).value != None: count = count + 1 #print('sheet1 entered') # irrigation type part below if variety == sheet.cell(row = count, column=8 ).value : checker2 = True if sheet.cell(row = count, column= 21).value.lower() == 'irrigated': self.isIrrigatedType[0] += 1 self.isIrrigatedType_counter += 1 elif sheet.cell(row=count, column= 21).value.lower() == 'rainfed': self.isIrrigatedType[1] += 1 self.isIrrigatedType_counter +=1 elif sheet.cell(row=count, column= 21).value.lower() == 'un-irrigated'or \ sheet.cell(row=count, column=21).value.lower() == 'un irrigated': self.isIrrigatedType[2] +=1 self.isIrrigatedType_counter += 1 else: print('Some problem in checking the irrigation type from the database') print('this : '+ sheet.cell(row=count, column= 21).value) # seed details part1 below if sheet.cell(row= count, column= 6).value.lower() == 'conventional': self.seed_Details_part1[0] +=1 self.seed_Details_part1_counter +=1 elif sheet.cell(row= count, column= 6).value.lower() == 'sri': self.seed_Details_part1[1] += 1 self.seed_Details_part1_counter += 1 else: print('Some problem in checking the seed type part 1') # seed details part2 below if sheet.cell(row=count, column=7).value.lower() == 'high yielding variety': self.seed_Details_part2[0] += 1 self.seed_Details_part2_counter += 1 elif sheet.cell(row=count, column=7).value.lower() == 'local': self.seed_Details_part2[1] += 1 self.seed_Details_part2_counter += 1 elif sheet.cell(row=count, column=7).value.lower() == 'hybrid': self.seed_Details_part2[2] += 1 self.seed_Details_part2_counter += 1 else: print('Some problem in checking the seed type part 2') if type(sheet.cell(row=count, column= 24).value) == float or type(sheet.cell(row=count, column=24).value) == int: self.pestDamage += sheet.cell(row=count, column= 24).value self.pestDamage_counter += 1 if variety != sheet.cell(row = count, column=8 ).value and checker2==True: #print('reached here 11') ratio = self.isIrrigatedType[0] / self.isIrrigatedType_counter sheet2.cell(row= count2, column=8, value=ratio) #print(ratio) ratio = self.isIrrigatedType[1] / self.isIrrigatedType_counter sheet2.cell(row=count2, column=9, value=ratio) #print(ratio) ratio = self.isIrrigatedType[2] / self.isIrrigatedType_counter sheet2.cell(row=count2, column=10, value=ratio) #print(ratio) ratio = self.seed_Details_part1[0] / self.seed_Details_part1_counter sheet2.cell(row = count2, column= 11, value=ratio) #print(ratio) ratio = self.seed_Details_part1[1] / self.seed_Details_part1_counter sheet2.cell(row=count2, column=12, value=ratio) #print(ratio) ratio = self.seed_Details_part2[0] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=13, value=ratio) #print(ratio) ratio = self.seed_Details_part2[1] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=14, value=ratio) #print(ratio) ratio = self.seed_Details_part2[2] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=15, value=ratio) try : ratio = self.pestDamage / self.pestDamage_counter except ZeroDivisionError : sheet2.cell(row=count2, column=16, value=0) else: sheet2.cell(row=count2, column=16, value=ratio) ratio = 0 # initialising all to zero self.isIrrigatedType = [0,0,0]; self.isIrrigatedType_counter = 0 self.seed_Details_part1 = [0,0]; self.seed_Details_part1_counter = 0 self.seed_Details_part2 = [0,0,0]; self.seed_Details_part2_counter = 0 self.pestDamage_counter = 0; self.pestDamage = 0 checker2 = False break if sheet.cell(row=count, column=8).value == None: break file2.save('./ratios/ratio_bad_'+self.workbook_name2+'.xlsx') self.normal() def normal(self): file = load_workbook(self.sortedFileName_Normal) sheet = file['Sorted'] self.isIrrigatedType = [0] * 3 self.isIrrigatedType_counter=0 # irrigated, rainfed, unirrigated self.seed_Details_part1 = [0] * 2 self.seed_Details_part1_counter = 0 # conventional , sri self.seed_Details_part2 = [0] * 3 self.seed_Details_part2_counter = 0 # high yielding, local, hybrid count = 1 # pests damage avergae calculation self.pestDamage = 0 self.pestDamage_counter = 0 file2 = load_workbook('./ratios/ratio_normal_'+self.workbook_name2+'.xlsx') sheet2 = file2['Sheet'] count2 = 1 sheet2.cell(row=1, column=8, value='irrigated ratio') sheet2.cell(row=1, column=9, value='rainfed ratio') sheet2.cell(row=1, column=10, value='unirrigated ratio') sheet2.cell(row=1, column=11, value='conventional ratio') sheet2.cell(row=1, column=12, value='sri ratio') sheet2.cell(row=1, column=13, value='high yielding ratio') sheet2.cell(row=1, column=14, value='local ratio') sheet2.cell(row=1, column=15, value='hybrid ratio') sheet2.cell(row=1, column=16, value='pest damage') while sheet2.cell(row= count2, column=4).value != None: #print('Entered sheet2 part') count2 += 1 variety = sheet2.cell(row= count2, column=4).value if variety == None: break checker2 = False count = 2 while sheet.cell(row=count, column= 2).value != None: count = count + 1 #print('sheet1 entered') # irrigation type part below if variety == sheet.cell(row = count, column=8 ).value : checker2 = True if sheet.cell(row = count, column= 21).value.lower() == 'irrigated': self.isIrrigatedType[0] += 1 self.isIrrigatedType_counter += 1 elif sheet.cell(row=count, column= 21).value.lower() == 'rainfed': self.isIrrigatedType[1] += 1 self.isIrrigatedType_counter +=1 elif sheet.cell(row=count, column= 21).value.lower() == 'un-irrigated'or \ sheet.cell(row=count, column=21).value.lower() == 'un irrigated': self.isIrrigatedType[2] +=1 self.isIrrigatedType_counter += 1 else: print('Some problem in checking the irrigation type from the database') print('this : ' + sheet.cell(row=count, column=21).value) # seed details part1 below if sheet.cell(row= count, column= 6).value.lower() == 'conventional': self.seed_Details_part1[0] +=1 self.seed_Details_part1_counter +=1 elif sheet.cell(row= count, column= 6).value.lower() == 'sri': self.seed_Details_part1[1] += 1 self.seed_Details_part1_counter += 1 else: print('Some problem in checking the seed type part 1') # seed details part2 below if sheet.cell(row=count, column=7).value.lower() == 'high yielding variety': self.seed_Details_part2[0] += 1 self.seed_Details_part2_counter += 1 elif sheet.cell(row=count, column=7).value.lower() == 'local': self.seed_Details_part2[1] += 1 self.seed_Details_part2_counter += 1 elif sheet.cell(row=count, column=7).value.lower() == 'hybrid': self.seed_Details_part2[2] += 1 self.seed_Details_part2_counter += 1 else: print('Some problem in checking the seed type part 2') if type(sheet.cell(row=count, column= 24).value) == float or type(sheet.cell(row=count, column=24).value) == int: self.pestDamage += sheet.cell(row=count, column= 24).value self.pestDamage_counter += 1 ## also add an extension for hybrid if variety != sheet.cell(row = count, column=8 ).value and checker2==True: #print('reached here 11') ratio = self.isIrrigatedType[0] / self.isIrrigatedType_counter sheet2.cell(row= count2, column=8, value=ratio) #print(ratio) ratio = self.isIrrigatedType[1] / self.isIrrigatedType_counter sheet2.cell(row=count2, column=9, value=ratio) #print(ratio) ratio = self.isIrrigatedType[2] / self.isIrrigatedType_counter sheet2.cell(row=count2, column=10, value=ratio) #print(ratio) ratio = self.seed_Details_part1[0] / self.seed_Details_part1_counter sheet2.cell(row = count2, column= 11, value=ratio) #print(ratio) ratio = self.seed_Details_part1[1] / self.seed_Details_part1_counter sheet2.cell(row=count2, column=12, value=ratio) #print(ratio) ratio = self.seed_Details_part2[0] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=13, value=ratio) #print(ratio) ratio = self.seed_Details_part2[1] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=14, value=ratio) #print(ratio) ratio = self.seed_Details_part2[2] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=15, value=ratio) try : ratio = self.pestDamage / self.pestDamage_counter except ZeroDivisionError : sheet2.cell(row=count2, column=16, value=0) else: sheet2.cell(row=count2, column=16, value=ratio) ratio = 0 # initialising all to zero self.isIrrigatedType = [0,0,0]; self.isIrrigatedType_counter = 0 self.seed_Details_part1 = [0,0]; self.seed_Details_part1_counter = 0 self.seed_Details_part2 = [0,0,0]; self.seed_Details_part2_counter = 0 self.pestDamage_counter = 0; self.pestDamage = 0 checker2 = False break if sheet.cell(row=count, column=8).value == None: break file2.save('./ratios/ratio_normal_'+self.workbook_name2+'.xlsx') self.good() def good(self): file = load_workbook(self.sortedFileName_Good) sheet = file['Sorted'] self.isIrrigatedType = [0] * 3 self.isIrrigatedType_counter=0 # irrigated, rainfed, unirrigated self.seed_Details_part1 = [0] * 2 self.seed_Details_part1_counter = 0 # conventional , sri self.seed_Details_part2 = [0] * 3 self.seed_Details_part2_counter = 0 # high yielding, local, hybrid count = 1 # pests damage avergae calculation self.pestDamage = 0 self.pestDamage_counter = 0 file2 = load_workbook('./ratios/ratio_good_'+self.workbook_name2+'.xlsx') sheet2 = file2['Sheet'] count2 = 1 sheet2.cell(row=1, column=8, value='irrigated ratio') sheet2.cell(row=1, column=9, value='rainfed ratio') sheet2.cell(row=1, column=10, value='unirrigated ratio') sheet2.cell(row=1, column=11, value='conventional ratio') sheet2.cell(row=1, column=12, value='sri ratio') sheet2.cell(row=1, column=13, value='high yielding ratio') sheet2.cell(row=1, column=14, value='local ratio') sheet2.cell(row=1, column=15, value='hybrid ratio') sheet2.cell(row=1, column=16, value='pest damage') while sheet2.cell(row= count2, column=4).value != None: #print('Entered sheet2 part') count2 += 1 variety = sheet2.cell(row= count2, column=4).value if variety == None: break checker2 = False count = 2 while sheet.cell(row=count, column= 2).value != None: count = count + 1 #print('sheet1 entered') # irrigation type part below if variety == sheet.cell(row = count, column=8 ).value : checker2 = True if sheet.cell(row = count, column= 21).value.lower() == 'irrigated': self.isIrrigatedType[0] += 1 self.isIrrigatedType_counter += 1 elif sheet.cell(row=count, column= 21).value.lower() == 'rainfed': self.isIrrigatedType[1] += 1 self.isIrrigatedType_counter +=1 elif sheet.cell(row=count, column= 21).value.lower() == 'un-irrigated' or \ sheet.cell(row=count, column=21).value.lower() == 'un irrigated': self.isIrrigatedType[2] +=1 self.isIrrigatedType_counter += 1 else: print('Some problem in checking the irrigation type from the database') print('this : ' + sheet.cell(row=count, column=21).value) # seed details part1 below if sheet.cell(row= count, column= 6).value.lower() == 'conventional': self.seed_Details_part1[0] +=1 self.seed_Details_part1_counter +=1 elif sheet.cell(row= count, column= 6).value.lower() == 'sri': self.seed_Details_part1[1] += 1 self.seed_Details_part1_counter += 1 else: print('Some problem in checking the seed type part 1') # seed details part2 below if sheet.cell(row=count, column=7).value.lower() == 'high yielding variety': self.seed_Details_part2[0] += 1 self.seed_Details_part2_counter += 1 elif sheet.cell(row=count, column=7).value.lower() == 'local': self.seed_Details_part2[1] += 1 self.seed_Details_part2_counter += 1 elif sheet.cell(row=count, column=7).value.lower() == 'hybrid': self.seed_Details_part2[2] += 1 self.seed_Details_part2_counter += 1 else: print('Some problem in checking the seed type part 2') if type(sheet.cell(row=count, column= 24).value) == float or type(sheet.cell(row=count, column=24).value) == int: self.pestDamage += sheet.cell(row=count, column= 24).value self.pestDamage_counter += 1 ## also add an extension for hybrid if variety != sheet.cell(row = count, column=8 ).value and checker2==True: #print('reached here 11') ratio = self.isIrrigatedType[0] / self.isIrrigatedType_counter sheet2.cell(row= count2, column=8, value=ratio) #print(ratio) ratio = self.isIrrigatedType[1] / self.isIrrigatedType_counter sheet2.cell(row=count2, column=9, value=ratio) #print(ratio) ratio = self.isIrrigatedType[2] / self.isIrrigatedType_counter sheet2.cell(row=count2, column=10, value=ratio) #print(ratio) ratio = self.seed_Details_part1[0] / self.seed_Details_part1_counter sheet2.cell(row = count2, column= 11, value=ratio) #print(ratio) ratio = self.seed_Details_part1[1] / self.seed_Details_part1_counter sheet2.cell(row=count2, column=12, value=ratio) #print(ratio) ratio = self.seed_Details_part2[0] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=13, value=ratio) #print(ratio) ratio = self.seed_Details_part2[1] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=14, value=ratio) #print(ratio) ratio = self.seed_Details_part2[2] / self.seed_Details_part2_counter sheet2.cell(row=count2, column=15, value=ratio) try : ratio = self.pestDamage / self.pestDamage_counter except ZeroDivisionError : sheet2.cell(row=count2, column=16, value=0) else: sheet2.cell(row=count2, column=16, value=ratio) ratio = 0 # initialising all to zero self.isIrrigatedType = [0,0,0]; self.isIrrigatedType_counter = 0 self.seed_Details_part1 = [0,0]; self.seed_Details_part1_counter = 0 self.seed_Details_part2 = [0,0,0]; self.seed_Details_part2_counter = 0 self.pestDamage_counter = 0; self.pestDamage = 0 checker2 = False break if sheet.cell(row=count, column=8).value == None: break file2.save('./ratios/ratio_good_'+self.workbook_name2+'.xlsx') obj = Reason() obj.individualAllotment() obj.process_General() obj.xx() obj.avg_Good() obj.bad()
46.753507
133
0.530519
2,538
23,330
4.767139
0.053586
0.069427
0.104141
0.0848
0.95512
0.953137
0.935119
0.925118
0.919663
0.919663
0
0.045901
0.366867
23,330
498
134
46.84739
0.773204
0.051436
0
0.882514
0
0
0.077658
0.001994
0
0
0
0
0
1
0.010929
false
0
0.008197
0
0.021858
0.051913
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
d0bc74485916cda124228bc02de89ceb62a1ab85
30,976
py
Python
mp3TrackNumberAnalysis.py
tgadf/mp3id
8f4f900df8ec5c8d525f8bf8701238ddc841ffff
[ "MIT" ]
null
null
null
mp3TrackNumberAnalysis.py
tgadf/mp3id
8f4f900df8ec5c8d525f8bf8701238ddc841ffff
[ "MIT" ]
null
null
null
mp3TrackNumberAnalysis.py
tgadf/mp3id
8f4f900df8ec5c8d525f8bf8701238ddc841ffff
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Sep 28 10:42:08 2017 @author: tgadfort """ import re def showTrkNoData(debug, trackname, pattern, retvals, mvals): if mvals: mvals = [int(x) for x in mvals] if debug: print trackname,'\tPattern -> \"'+pattern+'\"\tResults ->',retvals,'\t==> ',mvals return mvals def findTrkNo(currtrackname, debug = False): mvals = None trackname = currtrackname.replace("11 O'Clock", "") #trackname = trackname.replace(".mp3", "") #trackname = trackname.replace("mp3", "") if debug: print "Trackname =>",trackname ###################################################################### pattern = "SIDE [1-9]_[0-9][0-9] " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][5:-1] mvals = mvals.split("_") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "Track[0-9][0-9] [0-9][0-9] " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][5:-1] mvals = mvals.split() return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "Disc [1-9] - [0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][5:-1] mvals = mvals.split("-") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "disc[1-9][0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][4:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "disc [1-9] t[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][5:-1] mvals = mvals.split('t') return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "CD[1-9]-[0-9][0-9]-" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][2:-1] mvals = mvals.split("-") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "Part_[1-9]_Tr\.[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][5:-1] mvals = mvals.split("_Tr.") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "Part_[1-9]_Tr[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][5:-1] mvals = mvals.split("_Tr") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "disc one [0-9][0-9]" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][9:] mvals = [ 1, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "disc two [0-9][0-9]" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][9:] mvals = [ 2, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "\[[1-9]-[0-9][0-9]\]" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split('-') return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "d[0-9][0-9] tr[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("tr") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "t[0-9][0-9][0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = [ mvals[:2], mvals[2:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "D[1-9]T[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("T") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "D[1-9]t[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("t") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "d[1-9]tr[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("tr") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "d[1-9]tk[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("tk") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "d[1-9] tr[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("tr") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "d[1-9]t[0-9][0-9]\." #print "HERE",pattern,trackname retvals = re.findall(pattern, trackname) #print "RET",retvals if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("t") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "s[1-9]t[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("t") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "d[1-9][0-9][0-9]\_" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "d[1-9]t[0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("t") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "tr[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][2:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "t[0-9][0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "t[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "D[1-9] Track [0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = mvals.split("Track") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9]-Track [0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][:-1] mvals = mvals.split("-Track") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9]-Track [0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][:-1] mvals = mvals.split("-Track") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "Track[0-9][0-9] " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][5:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "D[0-9][0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "A[1-9] - " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-3] mvals = [ 1, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "B[1-9] - " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-3] mvals = [ 2, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "C[1-9] - " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-3] mvals = [ 3, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "D[1-9] - " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[-1][1:-3] mvals = [ 4, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### ###################################################################### ###################################################################### ###################################################################### pattern = "- [0-9][0-9] -" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][2:-2] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "- [0-9][0-9][0-9][0-9]" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][2:] mvals = [ mvals[:2], mvals[2:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = " -[1-9][0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][2:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[1-9][0-9]\. " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-2] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9]\. " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-2] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[1-9]-[0-9][0-9] " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = mvals.split("-") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[1-9][0-9][0-9]-" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[1-9][0-9][0-9] " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[1-9]-[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = mvals.split("-") return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[1-9][0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9] - " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-3] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9]-" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9]\." retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9] " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9] " retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0][:-1] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### ###################################################################### ###################################################################### ###################################################################### pattern = "one" retvals = re.findall(pattern, trackname) if retvals: mvals = [ 0, 1 ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "two" retvals = re.findall(pattern, trackname) if retvals: mvals = [ 0, 2 ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "SIDE A" retvals = re.findall(pattern, trackname) if retvals: mvals = [ 1, 1 ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "SIDE B" retvals = re.findall(pattern, trackname) if retvals: mvals = [ 2, 1 ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[1-9][0-9][0-9]" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0] mvals = [ mvals[:1], mvals[1:] ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9][0-9]" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) ###################################################################### pattern = "[0-9]" retvals = re.findall(pattern, trackname) if retvals: mvals = retvals[0] mvals = [ 0, mvals ] return showTrkNoData(debug, trackname, pattern, retvals, mvals) return [None,None] trk1a = re.compile(r'[0-9][0-9] - ') mo1a = trk1a.search(trackname) if mo1a: mvals = [ 0,mo1a.group()[:-3] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r's[1-9]-[0-9][0-9].') mo1a = trk1a.search(trackname) #print trackname,'\t',mo1a if mo1a: mvals = mo1a.group()[1:-1].split('-') if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'disc[1-9][0-9][0-9]') mo1a = trk1a.search(trackname) if mo1a: mval = mo1a.group()[4:] mvals = [ mval[:1], mval[1:] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'disc[1-9]track[0-9][0-9].') mo1a = trk1a.search(trackname) if mo1a: mvals = mo1a.group()[4:-1].split("track") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'A[0-9][0-9] ') trk1b = re.compile(r'B[0-9][0-9] ') trk1c = re.compile(r'a[0-9][0-9] ') trk1d = re.compile(r'b[0-9][0-9] ') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) mo1d = trk1d.search(trackname) if mo1a: mvals = [ 1, mo1a.group()[1:-1] ] if mo1b: mvals = [ 2, mo1b.group()[1:-1] ] if mo1c: mvals = [ 1, mo1c.group()[1:-1] ] if mo1d: mvals = [ 2, mo1d.group()[1:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'A[0-9][0-9].') trk1b = re.compile(r'B[0-9][0-9].') trk1c = re.compile(r'a[0-9][0-9].') trk1d = re.compile(r'b[0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) mo1d = trk1d.search(trackname) if mo1a: mvals = [ 1, mo1a.group()[1:-1] ] if mo1b: mvals = [ 2, mo1b.group()[1:-1] ] if mo1c: mvals = [ 1, mo1c.group()[1:-1] ] if mo1d: mvals = [ 2, mo1d.group()[1:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'd[1-9] tr[0-9][0-9].') trk1b = re.compile(r'd[1-9] t[0-9][0-9] ') trk1c = re.compile(r'd[1-9] t[0-9][0-9]') trk1d = re.compile(r'd[1-9]tr[0-9][0-9].') trk1e = re.compile(r'd[1-9]_t[0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) mo1d = trk1d.search(trackname) mo1e = trk1e.search(trackname) #print trackname,'\t',mo1a,mo1b,mo1c if mo1a: mvals = mo1a.group()[1:-1].split("tr") elif mo1b: mvals = mo1b.group()[1:-1].split("t") elif mo1c: mvals = mo1c.group()[1:].split("t") elif mo1d: mvals = mo1d.group()[1:-1].split("tr") elif mo1e: mvals = mo1e.group()[1:-1].split("_t") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'd[1-9]t[1-9][0-9][0-9].') trk1b = re.compile(r'd[0-9][0-9]t[0-9][0-9].') trk1c = re.compile(r'd[1-9]t[0-9][0-9].') trk1d = re.compile(r'd[1-9]t[1-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) mo1d = trk1d.search(trackname) if mo1a: mvals = mo1a.group()[1:-1].split('t') elif mo1b: mvals = mo1b.group()[1:-1].split('t') elif mo1c: mvals = mo1c.group()[1:-1].split('t') elif mo1d: mval = mo1d.group()[1:-1].split('t') mvals = [ mval[0], mval[1][1:] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'd[0-9][0-9]t[0-9][0-9] ') trk1b = re.compile(r'd[1-9]t[0-9][0-9] ') trk1c = re.compile(r'd[1-9]t[1-9] ') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) if mo1a: mvals = mo1a.group()[1:-1].split('t') elif mo1b: mvals = mo1b.group()[1:-1].split('t') elif mo1c: mvals = mo1c.group()[1:-1].split('t') if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'd[0-9][0-9]t[0-9][0-9]_') trk1b = re.compile(r'd[1-9]t[0-9][0-9]_') trk1c = re.compile(r'd[1-9]t[1-9]_') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) if mo1a: mvals = mo1a.group()[1:-1].split('t') elif mo1b: mvals = mo1b.group()[1:-1].split('t') elif mo1c: mvals = mo1c.group()[1:-1].split('t') if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r's[0-9][0-9]t[0-9][0-9].') trk1b = re.compile(r's[1-9]t[0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) if mo1a: mvals = mo1a.group()[1:-1].split('t') elif mo1b: mvals = mo1b.group()[1:-1].split('t') if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'set[1-9]t[0-9][0-9].') mo1a = trk1a.search(trackname) if mo1a: mvals = mo1a.group()[3:-1].split("t") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'[1-9]Track[0-9][0-9].') mo1a = trk1a.search(trackname) if mo1a: mvals = mo1a.group()[:-1].split("Track") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'cd[1-9]song[0-9][0-9].') trk1b = re.compile(r'cd[1-9]song[1-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) if mo1a: mvals = mo1a.group()[2:-1].split("song") elif mo1b: mvals = mo1b.group()[2:-1].split("song") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'CD[1-9]_[0-9][0-9].') mo1a = trk1a.search(trackname) if mo1a: mvals = mo1a.group()[2:-1].split("_") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'Disc [1-9] - [0-9][0-9].') mo1a = trk1a.search(trackname) #print trackname,'\t',mo1a if mo1a: mvals = mo1a.group()[5:-1].split(" - ") #print mvals if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'D[0-9][0-9]T[0-9][0-9].') trk1b = re.compile(r'D[1-9]T[0-9][0-9].') trk1c = re.compile(r'D[1-9]_T[0-9][0-9]-') trk1d = re.compile(r'D[1-9] t[0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) mo1d = trk1d.search(trackname) #print trackname,'\t',mo1a,mo1b,mo1c if mo1a: mvals = mo1a.group()[1:-1].split("T") elif mo1b: mvals = mo1b.group()[1:-1].split("T") elif mo1c: mvals = mo1c.group()[1:-1].split("_T") elif mo1d: mvals = mo1d.group()[1:-1].split("t") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'D[1-9]-[0-9][0-9].') mo1a = trk1a.search(trackname) if mo1a: mvals = mo1a.group()[1:-1].split("-") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'CD[1-9] ') mo1a = trk1a.search(trackname) if mo1a: disc = mo1a.group()[2:-1] tmpname = trackname.replace(mo1a.group(), "") trk1a = re.compile(r'[1-9][0-9]') trk1b = re.compile(r' [1-9]') mo1a = trk1a.search(tmpname) mo1b = trk1b.search(trackname) if mo1a: mvals = [ disc, mo1a.group() ] elif mo1b: mvals = [ disc, mo1b.group()[1:] ] #print tmpname,'\t',disc,'\t',mvals if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'D[1-9]-Track[0-9][0-9]-') trk1b = re.compile(r'D[1-9] Track [0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1a.search(trackname) if mo1a: mvals = mo1a.group()[1:-1].split("Track") if mo1b: mvals = mo1b.group()[1:-1].split("Track") if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'Track[1-9][0-9][0-9].') trk1b = re.compile(r'Track[0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) if mo1a: mvals = [ mo1a.group()[5:-3], mo1a.group()[6:-1] ] elif mo1b: mvals = [ 1, mo1b.group()[5:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'Track [0-9][0-9].') mo1a = trk1a.search(trackname) if mo1a: mvals = [ 0, mo1a.group()[6:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r't[0-9][0-9].') trk1b = re.compile(r't[1-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) print trackname,mo1a.group(),mo1b.group() if mo1a: mvals = [ 0,mo1a.group()[1:-1] ] elif mo1b: mvals = [ 0,mo1b.group()[1:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r't-[0-9][0-9].') mo1a = trk1a.search(trackname) if mo1a: mvals = [ 0,mo1a.group()[2:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'tr[0-9][0-9].') mo1a = trk1a.search(trackname) #print trackname,'\t',mo1a if mo1a: mvals = [ 0, mo1a.group()[2:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'missing[0-9][0-9].') mo1a = trk1a.search(trackname) #print trackname,'\t',mo1a if mo1a: mvals = [ 0, mo1a.group()[7:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r' [1-9][0-9][0-9] ') trk1b = re.compile(r'[1-9][0-9][0-9] ') trk1c = re.compile(r'-[1-9][0-9][0-9]-') trk1d = re.compile(r'[1-9][0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) mo1c = trk1c.search(trackname) mo1d = trk1d.search(trackname) #print trackname,'\t',mo1a, mo1b, mo1c.group(), mo1d.group() if mo1a or mo1b or mo1c or mo1d: mvals = None if mo1a: mvals = int(mo1a.group()[1:-1]) elif mo1b: mvals = int(mo1b.group()[:-1]) elif mo1c: mvals = int(mo1c.group()[1:-1]) elif mo1d: mvals = int(mo1d.group()[:-1]) if mvals: mval = mvals % 100 dval = (mvals - mval)/100 mvals = [ dval,mval ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'[0-9][0-9].') trk1b = re.compile(r'[0-9][0-9]_') mo1a = trk1a.search(trackname) mo1b = trk1b.search(trackname) if mo1a: mvals = [ 0,mo1a.group()[:-1] ] if mo1b: mvals = [ 0,mo1b.group()[:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals trkvals = trackname.split() if len(trkvals) > 0: try: trkno = int(trkvals[0]) mvals = [ 0, trkno ] except: mvals = None if mvals: return mvals try: trkno = int(trackname[:2]) except: trkno = None if trkno: mvals = None try: int(trackname[:3]) except: mvals = [ 0, trkno ] if mvals: return mvals trk1a = re.compile(r'd[1-9][0-9][0-9]') mo1a = trk1a.search(trackname) if mo1a: mval = mo1a.group()[1:] mvals = [ mval[:1], mval[1:] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'[1-9][0-9][0-9]') mo1a = trk1a.search(trackname) if mo1a: mval = mo1a.group() mvals = [ mval[:1], mval[1:] ] if mvals: mvals = [int(x) for x in mvals] return mvals trk1a = re.compile(r'[0-9][0-9] ') trk1b = re.compile(r'[0-9][0-9].') mo1a = trk1a.search(trackname) mo1b = trk1a.search(trackname) if mo1a: mvals = [ 0,mo1a.group()[:-1] ] if mo1b: mvals = [ 0,mo1b.group()[:-1] ] if mvals: mvals = [int(x) for x in mvals] return mvals return [None,None]
29.870781
89
0.472689
3,654
30,976
4.001916
0.027641
0.031184
0.029132
0.031184
0.929495
0.923613
0.918143
0.907338
0.89749
0.873692
0
0.054852
0.234892
30,976
1,036
90
29.899614
0.562152
0.014431
0
0.726208
0
0.001464
0.082441
0.013285
0
0
0
0
0
0
null
null
0
0.001464
null
null
0.004392
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
8
d0f9e0968c00e9c9a56915b40489188c6b192d39
230,887
py
Python
src/manager/om/script/gspylib/common/Sql.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/manager/om/script/gspylib/common/Sql.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/manager/om/script/gspylib/common/Sql.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding:utf-8 -*- ############################################################################# # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OF ANY KIND, # EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, # MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. # See the Mulan PSL v2 for more details. # ---------------------------------------------------------------------------- # Description : Sql.py is used to store the sql used in OLAP ############################################################################# PMK_ORIGINAL = ["""START TRANSACTION;""", """CREATE SCHEMA pmk;""", """CREATE TABLE pmk.pmk_configuration ( config_param_name varchar(64) NOT NULL , config_value text NOT NULL , PRIMARY KEY (config_param_name) );""", """CREATE TABLE pmk.pmk_snapshot ( snapshot_id int -- Snapshot ID (Running number) , current_snapshot_time timestamp with time zone -- Time at the beginning of the snapshot , last_snapshot_time timestamp with time zone -- Time at the end of the snapshot; the actual time the snapshot was taken , creation_time timestamp with time zone -- Time the snapshot was created , PRIMARY KEY (snapshot_id) );""", """CREATE INDEX ix_pmk_snapshot_time ON pmk.pmk_snapshot (current_snapshot_time DESC);""", """CREATE TABLE pmk.pmk_snapshot_datanode_stat ( snapshot_id int -- Snapshot Id , node_name text -- node name from pgxc_node , node_host text -- node host from pgxc_node , last_startup_time timestamp with time zone -- last restart time of the node before snapshot starts , number_of_files int , physical_reads bigint , physical_reads_delta bigint , physical_writes bigint , physical_writes_delta bigint , read_time bigint , read_time_delta bigint , write_time bigint , write_time_delta bigint , db_size bigint , active_sql_count int , wait_sql_count int , session_count int , xact_commit bigint , xact_commit_delta bigint , xact_rollback bigint , xact_rollback_delta bigint , checkpoints_timed bigint , checkpoints_timed_delta bigint , checkpoints_req bigint , checkpoints_req_delta bigint , checkpoint_write_time double precision , checkpoint_write_time_delta double precision , physical_memory bigint , db_memory_usage bigint , shared_buffer_size bigint , session_memory_total_size bigint , session_memory_used_size bigint , blocks_read bigint , blocks_read_delta bigint , blocks_hit bigint , blocks_hit_delta bigint , work_memory_size bigint , sorts_in_memory bigint , sorts_in_memory_delta bigint , sorts_in_disk bigint , sorts_in_disk_delta bigint , busy_time numeric , busy_time_delta numeric , idle_time numeric , idle_time_delta numeric , iowait_time numeric , iowait_time_delta numeric , db_cpu_time numeric , db_cpu_time_delta numeric , PRIMARY KEY (snapshot_id) );""", """CREATE INDEX ix_pmk_snapshot_dnode_stat_node_name ON pmk.pmk_snapshot_datanode_stat (UPPER(node_name), snapshot_id);""", """CREATE TABLE pmk.pmk_meta_data ( pmk_version varchar(128) , last_snapshot_id int , last_snapshot_collect_time timestamp with time zone , PRIMARY KEY (pmk_version) );""", """CREATE OR REPLACE FUNCTION pmk.put_line (IN message text ) RETURNS boolean AS $$ DECLARE l_error_message TEXT; BEGIN l_error_message := TRIM(message); IF l_error_message IS NOT NULL THEN raise notice '%',l_error_message; RETURN TRUE; END IF; RETURN FALSE; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.check_node_type RETURNS TEXT AS $$ DECLARE l_node_type CHAR(1); BEGIN l_node_type := 'D'; RETURN NULL; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.check_pmk_enabled RETURNS TEXT AS $$ DECLARE l_pmk_enabled_i TEXT; BEGIN SELECT UPPER(config_value) INTO l_pmk_enabled_i FROM pmk.pmk_configuration WHERE config_param_name = 'Enable PMK'; IF l_pmk_enabled_i = 'FALSE' THEN RETURN 'ERROR:: PMK should be enabled to use the PMK features.'; ELSE RETURN NULL; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.pmk_version ( ) RETURNS varchar(128) AS $$ DECLARE l_pmk_version varchar(128); l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN 'f'; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN 'f'; END IF; SELECT pmk_version INTO l_pmk_version FROM pmk.pmk_meta_data; RETURN l_pmk_version; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.configure_parameter ( IN i_config_param_name varchar(64) , IN i_config_value text ) RETURNS boolean AS $$ DECLARE l_collect_count_value INT; l_config_value TEXT; l_upper_config_param TEXT; l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN FALSE; END IF; l_upper_config_param := UPPER(TRIM(BOTH ' ' FROM i_config_param_name)); l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL AND l_upper_config_param <> 'ENABLE PMK' THEN pmk.put_line(l_error_message); RETURN FALSE; END IF; IF i_config_param_name IS NULL THEN l_error_message := 'ERROR:: Null should not be provided for configuration parameter name.'; pmk.put_line(l_error_message); RETURN FALSE; END IF; IF i_config_value IS NULL THEN l_error_message := 'ERROR:: Null should not be provided for configuration value.'; pmk.put_line(l_error_message); RETURN FALSE; END IF; IF l_upper_config_param = 'COLLECTION COUNT' THEN l_collect_count_value := i_config_value::int; IF l_collect_count_value < -1 THEN l_error_message := 'ERROR:: Configuration value "' || i_config_value || '" should not be less than -1.'; pmk.put_line(l_error_message); RETURN FALSE; ELSIF l_collect_count_value = 0 THEN l_error_message := 'ERROR:: 0 should not be provided since atleast one collection should be retained.'; pmk.put_line(l_error_message); RETURN FALSE; ELSE l_config_value := l_collect_count_value; END IF; ELSIF l_upper_config_param = 'ENABLE PMK' THEN l_config_value := UPPER(TRIM(BOTH ' ' FROM i_config_value)); IF l_config_value NOT IN ('TRUE', 'FALSE') THEN l_error_message := 'ERROR:: Allowed values are TRUE or FALSE for the configuration parameter "Enable PMK".'; pmk.put_line(l_error_message); RETURN FALSE; END IF; END IF; SET allow_concurrent_tuple_update = ON; UPDATE pmk.pmk_configuration SET config_value = l_config_value WHERE UPPER(config_param_name) = l_upper_config_param; IF NOT FOUND THEN l_error_message := 'ERROR:: Invalid configuration parameter "' || i_config_param_name || '" provided for configuring PMK parameter ...'; pmk.put_line(l_error_message); RETURN FALSE; END IF; RETURN TRUE; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_configuration_parameter ( IN i_config_param_name TEXT ) RETURNS TABLE ( config_param_name varchar(64) , config_value text ) AS $$ DECLARE l_upper_config_param TEXT; l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_upper_config_param := UPPER(TRIM(BOTH ' ' FROM i_config_param_name)); IF l_upper_config_param = 'ALL' THEN RETURN QUERY SELECT config_param_name , config_value FROM pmk.pmk_configuration ORDER BY config_param_name; ELSE RETURN QUERY SELECT config_param_name , config_value FROM pmk.pmk_configuration WHERE UPPER(config_param_name) = l_upper_config_param; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.find_perf_stat ( IN i_skip_supper_role boolean , OUT o_number_of_files int , OUT o_physical_reads bigint , OUT o_physical_writes bigint , OUT o_read_time bigint , OUT o_write_time bigint , OUT o_physical_memory bigint , OUT o_shared_buffer_size bigint , OUT o_session_memory_total_size bigint , OUT o_session_memory_used_size bigint , OUT o_blocks_read bigint , OUT o_blocks_hit bigint , OUT o_db_size bigint , OUT o_work_memory_size bigint , OUT o_sorts_in_memory bigint , OUT o_sorts_in_disk bigint , OUT o_active_sql_count int , OUT o_wait_sql_count int , OUT o_session_count int , OUT o_busy_time numeric , OUT o_idle_time numeric , OUT o_iowait_time numeric , OUT o_db_cpu_time numeric , OUT o_db_memory_usage bigint , OUT o_node_startup_time timestamp with time zone , OUT o_node_host_name text , OUT o_xact_commit bigint , OUT o_xact_rollback bigint , OUT o_checkpoints_timed bigint , OUT o_checkpoints_req bigint , OUT o_checkpoint_write_time double precision ) AS $$ DECLARE l_block_size int; l_record_chk int; BEGIN o_node_startup_time := pg_postmaster_start_time(); o_node_host_name := get_hostname(); SELECT COUNT(*) AS number_of_files , SUM(phyrds) AS physical_reads , SUM(phywrts) AS physical_writes , SUM(readtim) AS read_time , SUM(writetim) AS write_time INTO o_number_of_files , o_physical_reads , o_physical_writes , o_read_time , o_write_time FROM gs_file_stat; IF o_number_of_files = 0 THEN o_physical_reads := 0; o_physical_writes := 0; o_read_time := 0; o_write_time := 0; END IF; WITH os_stat AS ( SELECT os.name AS statname , os.value AS statvalue FROM gs_os_run_info os WHERE os.name IN ( 'PHYSICAL_MEMORY_BYTES', 'BUSY_TIME', 'IDLE_TIME', 'IOWAIT_TIME' ) ) SELECT (SELECT statvalue FROM os_stat WHERE statname = 'PHYSICAL_MEMORY_BYTES') , (SELECT statvalue FROM os_stat WHERE statname = 'BUSY_TIME') , (SELECT statvalue FROM os_stat WHERE statname = 'IDLE_TIME') , (SELECT statvalue FROM os_stat WHERE statname = 'IOWAIT_TIME') INTO o_physical_memory , o_busy_time , o_idle_time , o_iowait_time FROM DUAL; -- gs_db_time is not available; temporarily PMK extension is used. o_db_cpu_time := total_cpu(); o_db_memory_usage := total_memory()*1024; WITH config_value AS ( SELECT name , setting::bigint AS config_value FROM pg_settings WHERE name IN ( 'block_size', 'shared_buffers', 'work_mem' ) ) , config_value1 AS ( SELECT (SELECT config_value FROM config_value WHERE name = 'block_size') AS block_size , (SELECT config_value FROM config_value WHERE name = 'shared_buffers') AS shared_buffers , (SELECT config_value FROM config_value WHERE name = 'work_mem') AS work_mem FROM DUAL ) SELECT block_size , (shared_buffers * block_size)::bigint , (work_mem * 1024)::bigint INTO l_block_size , o_shared_buffer_size , o_work_memory_size FROM config_value1; /* Commented since these statistics are not used for node and * cluster reports */ o_session_memory_total_size := 0; o_session_memory_used_size := 0; SELECT SUM(blks_read)::bigint , SUM(blks_hit)::bigint , SUM(xact_commit)::bigint , SUM(xact_rollback)::bigint INTO o_blocks_read , o_blocks_hit , o_xact_commit , o_xact_rollback FROM pg_stat_database; o_db_size := 0; IF i_skip_supper_role = 'TRUE' THEN WITH session_state AS ( SELECT state, waiting , usename FROM pg_stat_activity a, pg_roles r WHERE r.rolsuper = 'f' AND a.usename = r.rolname ) , active_session AS ( SELECT state, waiting , usename FROM session_state s, pg_roles r WHERE s.state IN ('active', 'fastpath function call', 'retrying') AND r.rolsuper = 'f' AND s.usename = r.rolname ) SELECT ( SELECT COUNT(*) FROM active_session ) , ( SELECT COUNT(*) FROM active_session WHERE waiting = TRUE ) , ( SELECT COUNT(*) FROM session_state ) INTO o_active_sql_count, o_wait_sql_count , o_session_count FROM DUAL; ELSE WITH session_state AS ( SELECT state, waiting FROM pg_stat_activity ) , active_session AS ( SELECT state, waiting FROM session_state WHERE state IN ('active', 'fastpath function call', 'retrying') ) SELECT ( SELECT COUNT(*) FROM active_session ) , ( SELECT COUNT(*) FROM active_session WHERE waiting = TRUE ) , ( SELECT COUNT(*) FROM session_state ) INTO o_active_sql_count, o_wait_sql_count, o_session_count FROM DUAL; END IF; -- Currently, the below statistics are calculated from gs_session_stat -- (which is not accurate) since gs_db_stat is not available WITH sort_state AS ( SELECT statname , SUM(value)::bigint AS sorts_cnt FROM gs_session_stat WHERE statname IN ('n_sort_in_memory', 'n_sort_in_disk') GROUP BY statname ) SELECT (SELECT sorts_cnt FROM sort_state WHERE statname = 'n_sort_in_memory') , (SELECT sorts_cnt FROM sort_state WHERE statname = 'n_sort_in_disk') INTO o_sorts_in_memory , o_sorts_in_disk FROM DUAL; SELECT SUM(checkpoints_timed)::bigint , SUM(checkpoints_req)::bigint , SUM(checkpoint_write_time)::bigint INTO o_checkpoints_timed , o_checkpoints_req , o_checkpoint_write_time FROM pg_stat_bgwriter; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.find_node_stat (IN i_skip_supper_role boolean , OUT o_number_of_files_1 int , OUT o_physical_reads_1 bigint , OUT o_physical_writes_1 bigint , OUT o_read_time_1 bigint , OUT o_write_time_1 bigint , OUT o_physical_memory_1 bigint , OUT o_shared_buffer_size_1 bigint , OUT o_session_memory_total_size_1 bigint , OUT o_session_memory_used_size_1 bigint , OUT o_blocks_read_1 bigint , OUT o_blocks_hit_1 bigint , OUT o_db_size_1 bigint , OUT o_work_memory_size_1 bigint , OUT o_sorts_in_memory_1 bigint , OUT o_sorts_in_disk_1 bigint , OUT o_active_sql_count_1 int , OUT o_wait_sql_count_1 int , OUT o_session_count_1 int , OUT o_busy_time_1 numeric , OUT o_idle_time_1 numeric , OUT o_iowait_time_1 numeric , OUT o_db_cpu_time_1 numeric , OUT o_db_memory_usage_1 bigint , OUT o_node_startup_time_1 timestamp with time zone , OUT o_node_host_name_1 text , OUT o_xact_commit_1 bigint , OUT o_xact_rollback_1 bigint , OUT o_checkpoints_timed_1 bigint , OUT o_checkpoints_req_1 bigint , OUT o_checkpoint_write_time_1 double precision ) AS $$ BEGIN SELECT o_number_of_files , o_physical_reads , o_physical_writes , o_read_time , o_write_time , o_physical_memory , o_shared_buffer_size , o_session_memory_total_size , o_session_memory_used_size , o_blocks_read , o_blocks_hit , o_db_size , o_work_memory_size , o_sorts_in_memory , o_sorts_in_disk , o_active_sql_count , o_wait_sql_count , o_session_count , o_busy_time , o_idle_time , o_iowait_time , o_db_cpu_time , o_db_memory_usage , o_node_startup_time , o_node_host_name , o_xact_commit , o_xact_rollback , o_checkpoints_timed , o_checkpoints_req , o_checkpoint_write_time INTO o_number_of_files_1 , o_physical_reads_1 , o_physical_writes_1 , o_read_time_1 , o_write_time_1 , o_physical_memory_1 , o_shared_buffer_size_1 , o_session_memory_total_size_1 , o_session_memory_used_size_1 , o_blocks_read_1 , o_blocks_hit_1 , o_db_size_1 , o_work_memory_size_1 , o_sorts_in_memory_1 , o_sorts_in_disk_1 , o_active_sql_count_1 , o_wait_sql_count_1 , o_session_count_1 , o_busy_time_1 , o_idle_time_1 , o_iowait_time_1 , o_db_cpu_time_1 , o_db_memory_usage_1 , o_node_startup_time_1 , o_node_host_name_1 , o_xact_commit_1 , o_xact_rollback_1 , o_checkpoints_timed_1 , o_checkpoints_req_1 , o_checkpoint_write_time_1 FROM pmk.find_perf_stat(i_skip_supper_role); END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.load_datanode_stat ( IN i_snapshot_id int , IN i_last_snapshot_id int , IN i_pmk_last_collect_start_time timestamp with time zone , IN i_node_name text , IN i_number_of_files int , IN i_physical_reads bigint , IN i_physical_writes bigint , IN i_read_time bigint , IN i_write_time bigint , IN i_physical_memory bigint , IN i_shared_buffer_size bigint , IN i_session_memory_total_size bigint , IN i_session_memory_used_size bigint , IN i_blocks_read bigint , IN i_blocks_hit bigint , IN i_db_size bigint , IN i_work_memory_size bigint , IN i_sorts_in_memory bigint , IN i_sorts_in_disk bigint , IN i_active_sql_count int , IN i_wait_sql_count int , IN i_session_count int , IN i_busy_time numeric , IN i_idle_time numeric , IN i_iowait_time numeric , IN i_db_cpu_time numeric , IN i_db_memory_usage bigint , IN i_node_startup_time timestamp with time zone , IN i_node_host_name text , IN i_xact_commit bigint , IN i_xact_rollback bigint , IN i_checkpoints_timed bigint , IN i_checkpoints_req bigint , IN i_checkpoint_write_time double precision , IN i_skip_supper_role boolean , OUT o_dn_snapshot_id int , OUT o_dn_node_name text -- node name from pgxc_node , OUT o_dn_node_host text -- node host from pgxc_node , OUT o_dn_last_startup_time timestamp with time zone -- last restart time of the node before snapshot starts , OUT o_dn_number_of_files int , OUT o_dn_physical_reads bigint , OUT o_dn_physical_reads_delta bigint , OUT o_dn_physical_writes bigint , OUT o_dn_physical_writes_delta bigint , OUT o_dn_read_time bigint , OUT o_dn_read_time_delta bigint , OUT o_dn_write_time bigint , OUT o_dn_write_time_delta bigint , OUT o_dn_db_size bigint , OUT o_dn_active_sql_count int , OUT o_dn_wait_sql_count int , OUT o_dn_session_count int , OUT o_dn_xact_commit bigint , OUT o_dn_xact_commit_delta bigint , OUT o_dn_xact_rollback bigint , OUT o_dn_xact_rollback_delta bigint , OUT o_dn_checkpoints_timed bigint , OUT o_dn_checkpoints_timed_delta bigint , OUT o_dn_checkpoints_req bigint , OUT o_dn_checkpoints_req_delta bigint , OUT o_dn_checkpoint_write_time double precision , OUT o_dn_checkpoint_write_time_delta double precision , OUT o_dn_physical_memory bigint , OUT o_dn_db_memory_usage bigint , OUT o_dn_shared_buffer_size bigint , OUT o_dn_session_memory_total_size bigint , OUT o_dn_session_memory_used_size bigint , OUT o_dn_blocks_read bigint , OUT o_dn_blocks_read_delta bigint , OUT o_dn_blocks_hit bigint , OUT o_dn_blocks_hit_delta bigint , OUT o_dn_work_memory_size bigint , OUT o_dn_sorts_in_memory bigint , OUT o_dn_sorts_in_memory_delta bigint , OUT o_dn_sorts_in_disk bigint , OUT o_dn_sorts_in_disk_delta bigint , OUT o_dn_busy_time numeric , OUT o_dn_busy_time_delta numeric , OUT o_dn_idle_time numeric , OUT o_dn_idle_time_delta numeric , OUT o_dn_iowait_time numeric , OUT o_dn_iowait_time_delta numeric , OUT o_dn_db_cpu_time numeric , OUT o_dn_db_cpu_time_delta numeric ) AS $$ DECLARE l_physical_reads_delta bigint; l_physical_writes_delta bigint; l_read_time_delta bigint; l_write_time_delta bigint; l_blocks_read_delta bigint; l_blocks_hit_delta bigint; l_sorts_in_memory_delta bigint; l_sorts_in_disk_delta bigint; l_busy_time_delta numeric; l_idle_time_delta numeric; l_iowait_time_delta numeric; l_db_cpu_time_delta numeric; l_xact_commit_delta bigint; l_xact_rollback_delta bigint; l_checkpoints_timed_delta bigint; l_checkpoints_req_delta bigint; l_checkpoint_write_time_delta double precision; i_skip_supper_role_delta boolean; BEGIN l_physical_reads_delta := i_physical_reads; l_physical_writes_delta := i_physical_writes; l_read_time_delta := i_read_time; l_write_time_delta := i_write_time; l_xact_commit_delta := i_xact_commit; l_xact_rollback_delta := i_xact_rollback; l_checkpoints_timed_delta := i_checkpoints_timed; l_checkpoints_req_delta := i_checkpoints_req; l_checkpoint_write_time_delta := i_checkpoint_write_time; i_skip_supper_role_delta := i_skip_supper_role; l_blocks_read_delta := i_blocks_read; l_blocks_hit_delta := i_blocks_hit; l_busy_time_delta := i_busy_time; l_idle_time_delta := i_idle_time; l_iowait_time_delta := i_iowait_time; l_db_cpu_time_delta := i_db_cpu_time; -- Currently, the below statistics are calculated from gs_session_stat -- (which is not accurate) since gs_db_stat is not available -- These statistics are cumulative from instance startup. l_sorts_in_memory_delta := i_sorts_in_memory; l_sorts_in_disk_delta := i_sorts_in_disk; o_dn_snapshot_id := i_snapshot_id; o_dn_node_name := i_node_name; o_dn_node_host := i_node_host_name; o_dn_last_startup_time := i_node_startup_time; o_dn_number_of_files := i_number_of_files; o_dn_physical_reads := i_physical_reads; o_dn_physical_reads_delta := l_physical_reads_delta; o_dn_physical_writes := i_physical_writes; o_dn_physical_writes_delta := l_physical_writes_delta; o_dn_read_time := i_read_time; o_dn_read_time_delta := l_read_time_delta; o_dn_write_time := i_write_time; o_dn_write_time_delta := l_write_time_delta; o_dn_db_size := i_db_size; o_dn_active_sql_count := i_active_sql_count; o_dn_wait_sql_count := i_wait_sql_count; o_dn_session_count := i_session_count; o_dn_xact_commit := i_xact_commit; o_dn_xact_commit_delta := l_xact_commit_delta; o_dn_xact_rollback := i_xact_rollback; o_dn_xact_rollback_delta := l_xact_rollback_delta; o_dn_checkpoints_timed := i_checkpoints_timed; o_dn_checkpoints_timed_delta := l_checkpoints_timed_delta; o_dn_checkpoints_req := i_checkpoints_req; o_dn_checkpoints_req_delta := l_checkpoints_req_delta; o_dn_checkpoint_write_time := i_checkpoint_write_time; o_dn_checkpoint_write_time_delta := l_checkpoint_write_time_delta; o_dn_physical_memory := i_physical_memory; o_dn_db_memory_usage := i_db_memory_usage; o_dn_shared_buffer_size := i_shared_buffer_size; o_dn_session_memory_total_size := i_session_memory_total_size; o_dn_session_memory_used_size := i_session_memory_used_size; o_dn_blocks_read := i_blocks_read; o_dn_blocks_read_delta := l_blocks_read_delta; o_dn_blocks_hit := i_blocks_hit; o_dn_blocks_hit_delta := l_blocks_hit_delta; o_dn_work_memory_size := i_work_memory_size; o_dn_sorts_in_memory := i_sorts_in_memory; o_dn_sorts_in_memory_delta := l_sorts_in_memory_delta; o_dn_sorts_in_disk := i_sorts_in_disk; o_dn_sorts_in_disk_delta := l_sorts_in_disk_delta; o_dn_busy_time := i_busy_time; o_dn_busy_time_delta := l_busy_time_delta; o_dn_idle_time := i_idle_time; o_dn_idle_time_delta := l_idle_time_delta; o_dn_iowait_time := i_iowait_time; o_dn_iowait_time_delta := l_iowait_time_delta; o_dn_db_cpu_time := i_db_cpu_time; o_dn_db_cpu_time_delta := l_db_cpu_time_delta; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.load_node_stat ( IN i_pmk_curr_collect_start_time TIMESTAMP WITH TIME ZONE , IN i_pmk_last_collect_start_time TIMESTAMP WITH TIME ZONE , IN i_last_snapshot_id INT , IN i_node_name TEXT , IN i_node_type char(1) , IN i_skip_supper_role boolean ) RETURNS TABLE ( snapshot_id int , node_name text , node_host text , last_startup_time timestamp with time zone , number_of_files int , physical_reads bigint , physical_reads_delta bigint , physical_writes bigint , physical_writes_delta bigint , read_time bigint , read_time_delta bigint , write_time bigint , write_time_delta bigint , db_size bigint , active_sql_count int , wait_sql_count int , session_count int , xact_commit bigint , xact_commit_delta bigint , xact_rollback bigint , xact_rollback_delta bigint , checkpoints_timed bigint , checkpoints_timed_delta bigint , checkpoints_req bigint , checkpoints_req_delta bigint , checkpoint_write_time double precision , checkpoint_write_time_delta double precision , physical_memory bigint , db_memory_usage bigint , shared_buffer_size bigint , session_memory_total_size bigint , session_memory_used_size bigint , blocks_read bigint , blocks_read_delta bigint , blocks_hit bigint , blocks_hit_delta bigint , work_memory_size bigint , sorts_in_memory bigint , sorts_in_memory_delta bigint , sorts_in_disk bigint , sorts_in_disk_delta bigint , busy_time numeric , busy_time_delta numeric , idle_time numeric , idle_time_delta numeric , iowait_time numeric , iowait_time_delta numeric , db_cpu_time numeric , db_cpu_time_delta numeric ) AS $$ DECLARE l_snapshot_id INT; l_query_str TEXT; l_node_stat_cur RECORD; BEGIN IF i_last_snapshot_id IS NULL OR i_last_snapshot_id = 2147483647 THEN l_snapshot_id := 1; ELSE l_snapshot_id := i_last_snapshot_id + 1; END IF; FOR l_node_stat_cur IN SELECT * FROM pmk.find_node_stat(i_skip_supper_role) LOOP RETURN QUERY (SELECT * FROM pmk.load_datanode_stat ( l_snapshot_id , i_last_snapshot_id , i_pmk_last_collect_start_time , i_node_name , l_node_stat_cur.o_number_of_files_1 , l_node_stat_cur.o_physical_reads_1 , l_node_stat_cur.o_physical_writes_1 , l_node_stat_cur.o_read_time_1 , l_node_stat_cur.o_write_time_1 , l_node_stat_cur.o_physical_memory_1 , l_node_stat_cur.o_shared_buffer_size_1 , l_node_stat_cur.o_session_memory_total_size_1 , l_node_stat_cur.o_session_memory_used_size_1 , l_node_stat_cur.o_blocks_read_1 , l_node_stat_cur.o_blocks_hit_1 , l_node_stat_cur.o_db_size_1 , l_node_stat_cur.o_work_memory_size_1 , l_node_stat_cur.o_sorts_in_memory_1 , l_node_stat_cur.o_sorts_in_disk_1 , l_node_stat_cur.o_active_sql_count_1 , l_node_stat_cur.o_wait_sql_count_1 , l_node_stat_cur.o_session_count_1 , l_node_stat_cur.o_busy_time_1 , l_node_stat_cur.o_idle_time_1 , l_node_stat_cur.o_iowait_time_1 , l_node_stat_cur.o_db_cpu_time_1 , l_node_stat_cur.o_db_memory_usage_1 , l_node_stat_cur.o_node_startup_time_1 , l_node_stat_cur.o_node_host_name_1 , l_node_stat_cur.o_xact_commit_1 , l_node_stat_cur.o_xact_rollback_1 , l_node_stat_cur.o_checkpoints_timed_1 , l_node_stat_cur.o_checkpoints_req_1 , l_node_stat_cur.o_checkpoint_write_time_1 , i_skip_supper_role )); END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.delete_expired_snapshots ( ) RETURNS void AS $$ DECLARE l_collection_count INT; l_retention_snapshot_id INT; BEGIN -- Deleting node statistics based on "collection count" config param SELECT config_value INTO l_collection_count FROM pmk.pmk_configuration WHERE config_param_name = 'Collection Count'; IF l_collection_count > -1 THEN IF l_collection_count = 0 THEN l_collection_count := 1; END IF; SELECT MIN(snapshot_id) INTO l_retention_snapshot_id FROM ( SELECT snapshot_id FROM pmk.pmk_snapshot ORDER BY snapshot_id DESC LIMIT l_collection_count ); DELETE FROM pmk.pmk_snapshot_datanode_stat WHERE snapshot_id < l_retention_snapshot_id; DELETE FROM pmk.pmk_snapshot WHERE snapshot_id < l_retention_snapshot_id; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_meta_data ( OUT l_pmk_curr_collect_start_time timestamp with time zone , OUT l_pmk_last_collect_start_time timestamp with time zone , OUT l_last_snapshot_id int ) AS $$ DECLARE l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; SELECT last_snapshot_id, last_snapshot_collect_time INTO l_last_snapshot_id, l_pmk_last_collect_start_time FROM pmk.pmk_meta_data; l_pmk_curr_collect_start_time := date_trunc('second', current_timestamp); IF l_pmk_curr_collect_start_time < l_pmk_last_collect_start_time THEN l_error_message := 'ERROR:: There is a change in system time of Gauss MPPDB host. PMK does not support the scenarios related to system time change.'; pmk.put_line(l_error_message); RETURN; ELSIF l_pmk_curr_collect_start_time = l_pmk_last_collect_start_time THEN l_error_message := 'ERROR:: Multiple statistics-collections can not be done within a second.'; pmk.put_line(l_error_message); RETURN; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_pgxc_node ( OUT o_node_name TEXT , OUT o_node_type CHAR(1) ) RETURNS SETOF RECORD AS $$ DECLARE l_error_message TEXT; v_rec RECORD; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; FOR v_rec IN (SELECT node_name FROM DBE_PERF.node_name) LOOP o_node_name := v_rec.node_name; o_node_type := 'D'; RETURN NEXT; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.check_start_end_dates ( INOUT io_start_pmk_time timestamp with time zone , INOUT io_end_pmk_time timestamp with time zone , OUT o_error_message text ) AS $$ DECLARE l_last_collect_time timestamp with time zone; BEGIN SELECT last_snapshot_collect_time INTO l_last_collect_time FROM pmk.pmk_meta_data; IF io_start_pmk_time > l_last_collect_time THEN o_error_message := 'ERROR:: The from-time provided is greater than the last statistics-collection time(' || l_last_collect_time || '). Invalid value(s) provided for the input time-range'; RETURN; END IF; IF io_end_pmk_time IS NULL THEN io_end_pmk_time := l_last_collect_time; IF io_start_pmk_time IS NULL THEN io_start_pmk_time := io_end_pmk_time; END IF; ELSE IF (io_start_pmk_time IS NULL) OR (io_start_pmk_time > io_end_pmk_time) THEN o_error_message := 'ERROR:: Invalid value(s) provided for the input time-range'; RETURN; END IF; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_host_cpu_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_avg_cpu_total_time numeric(21, 3) , OUT o_avg_cpu_busy_time numeric(21, 3) , OUT o_avg_cpu_iowait_time numeric(21, 3) , OUT o_cpu_busy_perc numeric(5, 2) , OUT o_cpu_io_wait_perc numeric(5, 2) , OUT o_min_cpu_busy_perc numeric(5, 2) , OUT o_max_cpu_busy_perc numeric(5, 2) , OUT o_min_cpu_iowait_perc numeric(5, 2) , OUT o_max_cpu_iowait_perc numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster host CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) , os_cpu_stat AS ( SELECT s.pmk_curr_collect_start_time , node_host , node_name , (busy_time_delta * 10) AS cpu_busy_time , (idle_time_delta * 10) AS cpu_idle_time , (iowait_time_delta * 10) AS cpu_iowait_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) , os_cpu_stat1 AS ( SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , node_host , cpu_busy_time , cpu_idle_time , cpu_iowait_time , (cpu_busy_time+cpu_idle_time+cpu_iowait_time)::numeric AS cpu_total_time FROM ( SELECT pmk_curr_collect_start_time , node_host , cpu_busy_time , cpu_idle_time , cpu_iowait_time , rank() OVER (PARTITION BY pmk_curr_collect_start_time, node_host ORDER BY cpu_busy_time DESC, node_name) AS node_cpu_busy_order FROM os_cpu_stat ) WHERE node_cpu_busy_order = 1 ) SELECT hcs.stat_collect_time , AVG(hcs.cpu_total_time)::numeric(21, 3) AS avg_cpu_total_time , AVG(hcs.cpu_busy_time)::numeric(21, 3) AS avg_cpu_busy_time , AVG(hcs.cpu_iowait_time)::numeric(21, 3) AS avg_cpu_iowait_time , ( (SUM(cpu_busy_time) * 100.0) / NULLIF(SUM(cpu_total_time), 0) ) ::numeric(5, 2) AS cpu_busy_perc , ( (SUM(cpu_iowait_time) * 100.0) / NULLIF(SUM(cpu_total_time), 0) ) ::numeric(5, 2) AS cpu_io_wait_perc , MIN(hcs.cpu_busy_time_perc)::numeric(5, 2) AS min_cpu_busy_perc , MAX(hcs.cpu_busy_time_perc)::numeric(5, 2) AS max_cpu_busy_perc , MIN(hcs.cpu_iowait_time_perc)::numeric(5, 2) AS min_cpu_iowait_perc , MAX(hcs.cpu_iowait_time_perc)::numeric(5, 2) AS max_cpu_iowait_perc FROM ( SELECT node_host , stat_collect_time , cpu_total_time , cpu_busy_time , cpu_iowait_time , ( (cpu_busy_time * 100.0) / NULLIF(cpu_total_time, 0) ) ::numeric(5, 2) AS cpu_busy_time_perc , ( (cpu_iowait_time * 100.0) / NULLIF(cpu_total_time, 0) ) ::numeric(5, 2) AS cpu_iowait_time_perc FROM os_cpu_stat1 ) hcs GROUP BY hcs.stat_collect_time ORDER BY hcs.stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_mppdb_cpu_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_avg_mppdb_cpu_time numeric(21, 3) , OUT o_avg_host_cpu_busy_time numeric(21, 3) , OUT o_avg_host_cpu_total_time numeric(21, 3) , OUT o_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) , OUT o_min_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_max_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_min_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) , OUT o_max_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster MPPDB CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) , cpu_stat AS ( SELECT s.snapshot_id , s.pmk_curr_collect_start_time , dns.node_name , dns.node_host , (dns.busy_time_delta * 10) AS host_cpu_busy_time , (dns.idle_time_delta * 10) AS host_cpu_idle_time , (dns.iowait_time_delta * 10) AS host_cpu_iowait_time , (dns.db_cpu_time_delta * 10) AS mppdb_cpu_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) , host_cpu_stat AS ( SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , node_host , host_cpu_busy_time , host_cpu_idle_time , host_cpu_iowait_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::numeric AS host_cpu_total_time FROM ( SELECT pmk_curr_collect_start_time , node_host , host_cpu_busy_time , host_cpu_idle_time , host_cpu_iowait_time , rank() OVER (PARTITION BY snapshot_id, node_host ORDER BY host_cpu_busy_time DESC, node_name) AS node_cpu_busy_order FROM cpu_stat ) WHERE node_cpu_busy_order = 1 ) , host_cpu_stat_summary AS ( SELECT stat_collect_time , AVG(host_cpu_busy_time)::numeric(21, 3) AS avg_host_cpu_busy_time , AVG(host_cpu_total_time)::numeric(21, 3) AS avg_host_cpu_total_time , SUM(host_cpu_busy_time)::numeric(21, 3) AS tot_host_cpu_busy_time , SUM(host_cpu_total_time)::numeric(21, 3) AS tot_host_cpu_total_time FROM host_cpu_stat GROUP BY stat_collect_time ) , mppdb_cpu_stat0 AS ( SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , node_name , mppdb_cpu_time , host_cpu_busy_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::numeric AS host_cpu_total_time FROM cpu_stat ) , mppdb_cpu_stat AS ( SELECT stat_collect_time , node_name , mppdb_cpu_time , ( (mppdb_cpu_time * 100.0) / NULLIF(host_cpu_busy_time, 0) ) ::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_busy_time , ( (mppdb_cpu_time * 100.0) / NULLIF(host_cpu_total_time, 0) ) ::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_total_time FROM mppdb_cpu_stat0 ) , mppdb_cpu_stat_summary AS ( SELECT stat_collect_time , AVG(mppdb_cpu_time)::numeric(21, 3) AS avg_mppdb_cpu_time , SUM(mppdb_cpu_time)::numeric(21, 3) AS tot_mppdb_cpu_time , MIN(mppdb_cpu_time_perc_wrt_busy_time)::numeric(5, 2) AS min_mppdb_cpu_time_perc_wrt_busy_time , MAX(mppdb_cpu_time_perc_wrt_busy_time)::numeric(5, 2) AS max_mppdb_cpu_time_perc_wrt_busy_time , MIN(mppdb_cpu_time_perc_wrt_total_time)::numeric(5, 2) AS min_mppdb_cpu_time_perc_wrt_total_time , MAX(mppdb_cpu_time_perc_wrt_total_time)::numeric(5, 2) AS max_mppdb_cpu_time_perc_wrt_total_time FROM mppdb_cpu_stat GROUP BY stat_collect_time ) SELECT mcs.stat_collect_time , mcs.avg_mppdb_cpu_time , hcs.avg_host_cpu_busy_time , hcs.avg_host_cpu_total_time , CASE WHEN mcs.tot_mppdb_cpu_time < hcs.tot_host_cpu_busy_time THEN ( (mcs.tot_mppdb_cpu_time * 100.0) / NULLIF(hcs.tot_host_cpu_busy_time, 0) )::numeric(5, 2) ELSE 100.00 END AS mppdb_cpu_time_perc_wrt_busy_time , CASE WHEN mcs.tot_mppdb_cpu_time < hcs.tot_host_cpu_total_time THEN ( (mcs.tot_mppdb_cpu_time * 100.0) / NULLIF(hcs.tot_host_cpu_total_time, 0) )::numeric(5, 2) ELSE 100.00 END AS mppdb_cpu_time_perc_wrt_total_time , mcs.min_mppdb_cpu_time_perc_wrt_busy_time , mcs.max_mppdb_cpu_time_perc_wrt_busy_time , mcs.min_mppdb_cpu_time_perc_wrt_total_time , mcs.max_mppdb_cpu_time_perc_wrt_total_time FROM mppdb_cpu_stat_summary mcs , host_cpu_stat_summary hcs WHERE mcs.stat_collect_time = hcs.stat_collect_time ORDER BY mcs.stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_shared_buffer_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_shared_buffer_hit_ratio numeric(5, 2) , OUT o_min_shared_buffer_hit_ratio numeric(5, 2) , OUT o_max_shared_buffer_hit_ratio numeric(5, 2) , OUT o_total_blocks_read bigint , OUT o_total_blocks_hit bigint ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster shared buffer statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , ( (total_blocks_hit * 100.0) / NULLIF(total_blocks_read+total_blocks_hit, 0) )::numeric(5, 2) AS shared_buffer_hit_ratio , min_shared_buffer_hit_ratio , max_shared_buffer_hit_ratio , total_blocks_read , total_blocks_hit FROM ( SELECT pmk_curr_collect_start_time , SUM(blocks_read)::bigint AS total_blocks_read , SUM(blocks_hit)::bigint AS total_blocks_hit , MIN(shared_buffer_hit_ratio)::numeric(5, 2) AS min_shared_buffer_hit_ratio , MAX(shared_buffer_hit_ratio)::numeric(5, 2) AS max_shared_buffer_hit_ratio FROM ( SELECT s.pmk_curr_collect_start_time , node_name , blocks_read_delta AS blocks_read , blocks_hit_delta AS blocks_hit , ( (blocks_hit_delta * 100.0) / NULLIF((blocks_read_delta + blocks_hit_delta), 0) ) ::numeric(5, 2) AS shared_buffer_hit_ratio FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) GROUP BY pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_memory_sort_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_memory_sort_ratio numeric(5, 2) , OUT o_min_memory_sort_ratio numeric(5, 2) , OUT o_max_memory_sort_ratio numeric(5, 2) , OUT o_total_memory_sorts bigint , OUT o_total_disk_sorts bigint ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster memory sort statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , ( (total_memory_sorts * 100.0) / NULLIF(total_disk_sorts+total_memory_sorts, 0) ) ::numeric(5, 2) AS memory_sort_ratio , min_memory_sort_ratio , max_memory_sort_ratio , total_memory_sorts , total_disk_sorts FROM ( SELECT pmk_curr_collect_start_time , SUM(memory_sorts)::bigint AS total_memory_sorts , SUM(disk_sorts)::bigint AS total_disk_sorts , MIN(memory_sort_ratio)::numeric(5, 2) AS min_memory_sort_ratio , MAX(memory_sort_ratio)::numeric(5, 2) AS max_memory_sort_ratio FROM ( SELECT s.pmk_curr_collect_start_time , node_name , sorts_in_memory_delta AS memory_sorts , sorts_in_disk_delta AS disk_sorts , ( (sorts_in_memory_delta * 100.0) / NULLIF((sorts_in_disk_delta + sorts_in_memory_delta) , 0) )::numeric(5, 2) AS memory_sort_ratio FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) GROUP BY pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_io_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_number_of_files int , OUT o_physical_reads bigint , OUT o_physical_writes bigint , OUT o_read_time bigint , OUT o_write_time bigint , OUT o_avg_read_per_sec numeric(20,2) , OUT o_avg_read_time numeric(20,3) , OUT o_avg_write_per_sec numeric(20,2) , OUT o_avg_write_time numeric(20,3) , OUT o_min_node_read_per_sec numeric(20,2) , OUT o_max_node_read_per_sec numeric(20,2) , OUT o_min_node_read_time numeric(20,3) , OUT o_max_node_read_time numeric(20,3) , OUT o_min_node_write_per_sec numeric(20,2) , OUT o_max_node_write_per_sec numeric(20,2) , OUT o_min_node_write_time numeric(20,3) , OUT o_max_node_write_time numeric(20,3) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster I/O statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , number_of_files , physical_reads , physical_writes , read_time , write_time , ( physical_reads * 1000000.0 / NULLIF(read_time, 0) ) ::numeric(20,2) AS avg_read_per_sec , ( read_time * 1.0 / NULLIF(physical_reads, 0) ) ::numeric(20,3) AS avg_read_time , ( physical_writes * 1000000.0 / NULLIF(write_time, 0) ) ::numeric(20,2) AS avg_write_per_sec , ( write_time * 1.0 / NULLIF(physical_writes, 0) ) ::numeric(20,3) AS avg_write_time , min_node_read_per_sec , max_node_read_per_sec , min_node_read_time , max_node_read_time , min_node_write_per_sec , max_node_write_per_sec , min_node_write_time , max_node_write_time FROM ( SELECT pmk_curr_collect_start_time , SUM(number_of_files)::int AS number_of_files , SUM(physical_reads_delta)::bigint AS physical_reads , SUM(physical_writes_delta)::bigint AS physical_writes , SUM(read_time_delta)::bigint AS read_time , SUM(write_time_delta)::bigint AS write_time , MIN(node_read_per_sec) AS min_node_read_per_sec , MAX(node_read_per_sec) AS max_node_read_per_sec , MIN(node_read_time) AS min_node_read_time , MAX(node_read_time) AS max_node_read_time , MIN(node_write_per_sec) AS min_node_write_per_sec , MAX(node_write_per_sec) AS max_node_write_per_sec , MIN(node_write_time) AS min_node_write_time , MAX(node_write_time) AS max_node_write_time FROM ( SELECT s.pmk_curr_collect_start_time , node_name , number_of_files , physical_reads_delta , physical_writes_delta , read_time_delta , write_time_delta , ( physical_reads_delta * 1000000.0 / NULLIF(read_time_delta, 0) )::numeric(20,2) AS node_read_per_sec , ( read_time_delta * 1.0 / NULLIF(physical_reads_delta, 0) )::numeric(20,3) AS node_read_time , ( physical_writes_delta * 1000000.0 / NULLIF(write_time_delta, 0) )::numeric(20,2) AS node_write_per_sec , ( write_time_delta * 1.0 / NULLIF(physical_writes_delta, 0) )::numeric(20,3) AS node_write_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) GROUP BY pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_disk_usage_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , IN i_db_size text , OUT o_stat_collect_time timestamp , OUT o_tot_datanode_db_size text , OUT o_max_datanode_db_size text , OUT o_tot_physical_writes bigint , OUT o_max_node_physical_writes bigint , OUT o_max_node_write_per_sec numeric(20,2) , OUT o_avg_write_per_sec numeric(20,2) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; DECLARE l_db_size bigint; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster disk usage statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF i_db_size = '0' THEN SELECT SUM(pg_database_size(oid))::bigint INTO l_db_size FROM pg_database; ELSE SELECT SUM(i_db_size)::bigint INTO l_db_size; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) , disk_stat AS ( SELECT s.pmk_curr_collect_start_time , db_size , physical_writes_delta , write_time_delta , ( physical_writes_delta * 1000000.0 / NULLIF(write_time_delta, 0) ) ::numeric(20,2) AS node_write_per_sec FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , pg_size_pretty(tot_datanode_db_size) AS tot_datanode_db_size , pg_size_pretty(max_datanode_db_size) AS max_datanode_db_size , tot_physical_writes , max_node_physical_writes , max_node_write_per_sec , ( tot_physical_writes * 1000000.0 / NULLIF(tot_write_time, 0) ) ::numeric(20,2) AS avg_write_per_sec FROM ( SELECT pmk_curr_collect_start_time , l_db_size::bigint AS tot_datanode_db_size , MAX(db_size)::bigint AS max_datanode_db_size , SUM(physical_writes_delta)::bigint AS tot_physical_writes , SUM(write_time_delta)::bigint AS tot_write_time , MAX(physical_writes_delta)::bigint AS max_node_physical_writes , MAX(node_write_per_sec) AS max_node_write_per_sec FROM disk_stat GROUP BY pmk_curr_collect_start_time ) ORDER BY pmk_curr_collect_start_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_active_sql_count ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_tot_active_sql_count int , OUT o_avg_active_sql_count numeric(9, 2) , OUT o_min_active_sql_count int , OUT o_max_active_sql_count int ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of active SQL count statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , tot_active_sql_count , avg_active_sql_count , min_active_sql_count , max_active_sql_count FROM ( SELECT s.pmk_curr_collect_start_time , SUM(active_sql_count)::int AS tot_active_sql_count , ROUND(AVG(active_sql_count), 2)::numeric(9, 2) AS avg_active_sql_count , MIN(active_sql_count)::int AS min_active_sql_count , MAX(active_sql_count)::int AS max_active_sql_count FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id GROUP BY s.pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_session_count ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_tot_session_count int , OUT o_avg_session_count numeric(9, 2) , OUT o_min_session_count int , OUT o_max_session_count int ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of session count statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , tot_session_count , avg_session_count , min_session_count , max_session_count FROM ( SELECT s.pmk_curr_collect_start_time , SUM(session_count)::int AS tot_session_count , ROUND(AVG(session_count), 2)::numeric(9, 2) AS avg_session_count , MIN(session_count)::int AS min_session_count , MAX(session_count)::int AS max_session_count FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id GROUP BY s.pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_node_cpu_stat ( IN i_node_name text , IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_node_type char(1) , OUT o_node_name text , OUT o_node_host text , OUT o_stat_collect_time timestamp , OUT o_mppdb_cpu_time bigint , OUT o_host_cpu_busy_time bigint , OUT o_host_cpu_total_time bigint , OUT o_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_node_type char(1); l_node_name text; l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_node_name := UPPER(i_node_name); IF l_node_name <> 'ALL' THEN l_node_type := 'D'; IF l_node_type IS NULL THEN l_error_message := 'ERROR:: Invalid node name ("' || i_node_name || '") provided during generation of node (MPPDB instance) CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of node (MPPDB instance) CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF l_node_name = 'ALL' THEN RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , mppdb_cpu_time , host_cpu_busy_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::bigint AS host_cpu_total_time , ( (LEAST(mppdb_cpu_time,host_cpu_busy_time) * 100.0) / NULLIF(host_cpu_busy_time, 0) )::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_busy_time , ( (LEAST(mppdb_cpu_time,host_total_cpu_time) * 100.0) / NULLIF((host_cpu_busy_time + host_cpu_idle_time + host_cpu_iowait_time), 0) )::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_total_time FROM ( SELECT 'D'::char(1) AS node_type , node_name , node_host , s.pmk_curr_collect_start_time , (busy_time_delta * 10)::bigint AS host_cpu_busy_time , (idle_time_delta * 10)::bigint AS host_cpu_idle_time , (iowait_time_delta * 10)::bigint AS host_cpu_iowait_time , ((busy_time_delta+idle_time_delta+iowait_time_delta)*10) ::bigint AS host_total_cpu_time , (db_cpu_time_delta * 10)::bigint AS mppdb_cpu_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) ORDER BY node_type, node_name, stat_collect_time; ELSE RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT 'D'::char(1) AS node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , mppdb_cpu_time , host_cpu_busy_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::bigint AS host_cpu_total_time , ( (mppdb_cpu_time * 100.0) / NULLIF(host_cpu_busy_time, 0) ) ::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_busy_time , ( (mppdb_cpu_time * 100.0) / NULLIF((host_cpu_busy_time + host_cpu_idle_time+host_cpu_iowait_time), 0) )::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_total_time FROM ( SELECT node_name , node_host , s.pmk_curr_collect_start_time , (busy_time_delta * 10)::bigint AS host_cpu_busy_time , (idle_time_delta * 10)::bigint AS host_cpu_idle_time , (iowait_time_delta * 10)::bigint AS host_cpu_iowait_time , (db_cpu_time_delta * 10)::bigint AS mppdb_cpu_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id AND UPPER(node_name) = l_node_name ) ORDER BY node_name, stat_collect_time; END IF; -- end of l_node_name = 'ALL' END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_node_memory_stat ( IN i_node_name text , IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_node_type char(1) , OUT o_node_name text , OUT o_node_host text , OUT o_stat_collect_time timestamp , OUT o_physical_memory bigint , OUT o_db_memory_usage bigint , OUT o_shared_buffer_size bigint , OUT o_blocks_read bigint , OUT o_blocks_hit bigint , OUT o_shared_buffer_hit_ratio numeric(5, 2) , OUT o_work_memory_size bigint , OUT o_sorts_in_memory bigint , OUT o_sorts_in_disk bigint , OUT o_in_memory_sort_ratio numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_node_type char(1); l_node_name text; l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_node_name := UPPER(i_node_name); IF l_node_name <> 'ALL' THEN l_node_type := 'D'; IF l_node_type IS NULL THEN l_error_message := 'ERROR:: Invalid node name ("' || i_node_name || '") provided during generation of node (MPPDB instance) memory statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of node (MPPDB instance) memory statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF l_node_name = 'ALL' THEN RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read , blocks_hit , ( (blocks_hit * 100.0) / NULLIF((blocks_read + blocks_hit), 0) ) ::numeric(5, 2) AS shared_buffer_hit_ratio , work_memory_size , sorts_in_memory , sorts_in_disk , ( (sorts_in_memory * 100.0) / NULLIF((sorts_in_disk + sorts_in_memory) , 0) )::numeric(5, 2) AS in_memory_sort_ratio FROM ( SELECT 'D'::char(1) AS node_type , node_name , node_host , s.pmk_curr_collect_start_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read_delta AS blocks_read , blocks_hit_delta AS blocks_hit , work_memory_size , sorts_in_memory_delta AS sorts_in_memory , sorts_in_disk_delta AS sorts_in_disk FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) ORDER BY node_type, node_name, stat_collect_time; ELSE RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT 'D'::char(1) AS node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read , blocks_hit , ( (blocks_hit * 100.0) / NULLIF((blocks_read + blocks_hit), 0) ) ::numeric(5, 2) AS shared_buffer_hit_ratio , work_memory_size , sorts_in_memory , sorts_in_disk , ( (sorts_in_memory * 100.0) / NULLIF((sorts_in_disk + sorts_in_memory), 0) )::numeric(5, 2) AS in_memory_sort_ratio FROM ( SELECT node_name , node_host , s.pmk_curr_collect_start_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read_delta AS blocks_read , blocks_hit_delta AS blocks_hit , work_memory_size , sorts_in_memory_delta AS sorts_in_memory , sorts_in_disk_delta AS sorts_in_disk FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id AND UPPER(node_name) = l_node_name ) ORDER BY node_name, stat_collect_time; END IF; -- end of l_node_name = 'ALL' END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_node_io_stat ( IN i_node_name text , IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_node_type char(1) , OUT o_node_name text , OUT o_node_host text , OUT o_stat_collect_time timestamp , OUT o_number_of_files int , OUT o_physical_reads bigint , OUT o_physical_writes bigint , OUT o_read_time bigint , OUT o_write_time bigint , OUT o_avg_read_per_sec numeric(20,2) , OUT o_avg_read_time numeric(20,3) , OUT o_avg_write_per_sec numeric(20,2) , OUT o_avg_write_time numeric(20,3) ) RETURNS SETOF record AS $$ DECLARE l_node_type char(1); l_node_name text; l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_node_name := UPPER(i_node_name); IF l_node_name <> 'ALL' THEN l_node_type := 'D'; IF l_node_type IS NULL THEN l_error_message := 'ERROR:: Invalid node name ("' || i_node_name || '") provided during generation of node (MPPDB instance) I/O statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of node (MPPDB instance) I/O statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF l_node_name = 'ALL' THEN RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , number_of_files , physical_reads , physical_writes , read_time , write_time , ( physical_reads * 1000000.0 / NULLIF(read_time, 0) ) ::numeric(20,2) AS avg_read_per_sec , ( read_time * 1.0 / NULLIF(physical_reads, 0) ) ::numeric(20,3) AS avg_read_time , ( physical_writes * 1000000.0 / NULLIF(write_time, 0) ) ::numeric(20,2) AS avg_write_per_sec , ( write_time * 1.0 / NULLIF(physical_writes, 0) ) ::numeric(20,3) AS avg_write_time FROM ( SELECT 'D'::char(1) AS node_type , node_name , node_host , s.pmk_curr_collect_start_time , number_of_files , physical_reads_delta AS physical_reads , physical_writes_delta AS physical_writes , read_time_delta AS read_time , write_time_delta AS write_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) ORDER BY node_type, node_name, stat_collect_time; ELSE RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT 'D'::char(1) AS node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , number_of_files , physical_reads , physical_writes , read_time , write_time , ( physical_reads * 1000000.0 / NULLIF(read_time, 0) ) ::numeric(20,2) AS avg_read_per_sec , ( read_time * 1.0 / NULLIF(physical_reads, 0) ) ::numeric(20,3) AS avg_read_time , ( physical_writes * 1000000.0 / NULLIF(write_time, 0) ) ::numeric(20,2) AS avg_write_per_sec , ( write_time * 1.0 / NULLIF(physical_writes, 0) ) ::numeric(20,3) AS avg_write_time FROM ( SELECT node_name , node_host , pmk_curr_collect_start_time , number_of_files , physical_reads_delta AS physical_reads , physical_writes_delta AS physical_writes , read_time_delta AS read_time , write_time_delta AS write_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id AND UPPER(node_name) = l_node_name ) ORDER BY node_name, stat_collect_time; END IF; -- end of l_node_name = 'ALL' END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_session_cpu_stat ( IN i_node_name text , IN i_top_n_sessions smallint , OUT o_node_name name , OUT o_db_name name , OUT o_user_name name , OUT o_client_hostname text , OUT o_session_start_time timestamp , OUT o_xact_start_time timestamp , OUT o_waiting boolean , OUT o_state text , OUT o_query text , OUT o_session_cpu_time bigint , OUT o_mppdb_cpu_time bigint , OUT o_mppdb_cpu_time_perc numeric(5, 2) , OUT o_avg_sql_exec_time numeric(15, 3) ) RETURNS SETOF RECORD AS $$ DECLARE l_node_query text; l_execute_query text; BEGIN FOR i IN ( SELECT node_name FROM DBE_PERF.node_name nl WHERE UPPER(nl.node_name) = COALESCE(NULLIF(UPPER(i_node_name), 'ALL'), UPPER(nl.node_name)) ) LOOP l_node_query := 'WITH sess_time_stat0 AS ( SELECT sessid, stat_name , (value/1000.0)::numeric AS stat_value -- converting to millisecond FROM gs_session_time WHERE stat_name IN ( ''CPU_TIME'', ''EXECUTION_TIME'') ) , sess_time_stat AS ( SELECT DISTINCT stso.sessid , (SELECT stsi.stat_value FROM sess_time_stat0 stsi WHERE stsi.sessid = stso.sessid AND stsi.stat_name = ''CPU_TIME'') AS session_cpu_time , (SELECT stsi.stat_value FROM sess_time_stat0 stsi WHERE stsi.sessid = stso.sessid AND stsi.stat_name = ''EXECUTION_TIME'') AS session_sql_time FROM sess_time_stat0 stso ) , mppdb_cpu_time AS ( SELECT (total_cpu()*10.0)::bigint AS mppdb_cpu_time -- converting to millisecond FROM DUAL ) , sess_cpu_stat AS ( SELECT ''' || i.node_name || ''' ::name AS node_name , a.datname::name AS db_name , a.usename::name AS user_name , a.client_hostname , date_trunc(''second'', a.backend_start):: timestamp AS session_start_time , date_trunc(''second'', a.xact_start):: timestamp AS xact_start_time , a.waiting , a.state, a.query , ROUND(st.session_cpu_time)::bigint AS session_cpu_time , m.mppdb_cpu_time , ( (st.session_cpu_time * 100.0) / NULLIF(m.mppdb_cpu_time, 0) ) ::numeric(5, 2) AS mppdb_cpu_time_perc , st.sessid , st.session_sql_time FROM pg_stat_activity a , sess_time_stat st , mppdb_cpu_time m WHERE a.state IN (''active'', ''fastpath function call'', ''retrying'') AND a.pid = sessionid2pid(st.sessid::cstring) ORDER BY st.session_cpu_time DESC , mppdb_cpu_time_perc DESC LIMIT ' || i_top_n_sessions || ' ) SELECT scs.node_name , scs.db_name , scs.user_name , scs.client_hostname , scs.session_start_time , scs.xact_start_time , scs.waiting , scs.state , scs.query , scs.session_cpu_time , scs.mppdb_cpu_time , scs.mppdb_cpu_time_perc , ( scs.session_sql_time / NULLIF(ss.value, 0) )::numeric(15, 3) AS avg_sql_exec_time FROM sess_cpu_stat scs , gs_session_stat ss WHERE ss.sessid = scs.sessid AND ss.statname = ''n_sql'''; RETURN QUERY EXECUTE l_node_query; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_session_memory_stat ( IN i_node_name text , IN i_top_n_sessions smallint , OUT o_node_name name , OUT o_db_name name , OUT o_user_name name , OUT o_client_hostname text , OUT o_session_start_time timestamp , OUT o_xact_start_time timestamp , OUT o_waiting boolean , OUT o_state text , OUT o_query text , OUT o_session_total_memory_size bigint , OUT o_session_used_memory_size bigint , OUT o_buffer_hits bigint , OUT o_disk_reads bigint , OUT o_session_buffer_hit_ratio numeric(5, 2) , OUT o_sorts_in_memory bigint , OUT o_sorts_in_disk bigint , OUT o_session_memory_sort_ratio numeric(5, 2) , OUT o_avg_sql_exec_time numeric(15, 3) ) RETURNS SETOF record AS $$ DECLARE l_node_query text; l_execute_query text; BEGIN FOR i IN ( SELECT node_name FROM DBE_PERF.node_name nl WHERE UPPER(nl.node_name) = COALESCE(NULLIF(UPPER(i_node_name), 'ALL'), UPPER(nl.node_name)) ) LOOP l_node_query := 'WITH sess_memory_usage AS ( SELECT sessid , SUM(totalsize)::bigint AS totalsize , SUM(usedsize)::bigint AS usedsize FROM gs_session_memory_detail GROUP BY sessid ) , sess_stat0 AS ( SELECT ss.sessid , ss.statname AS statname , ss.value AS statvalue FROM sess_memory_usage st, gs_session_stat ss WHERE ss.sessid = st.sessid AND ss.statname IN ( ''n_blocks_fetched'' , ''n_shared_blocks_read'' , ''n_local_blocks_read'' , ''n_sort_in_disk'' , ''n_sort_in_memory'' , ''n_sql'' ) ) , sess_stat1 AS ( SELECT oss.sessid , oss.totalsize , oss.usedsize , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_blocks_fetched'') AS total_reads , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_shared_blocks_read'') AS disk_to_shared_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_local_blocks_read'') AS disk_to_local_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_sort_in_disk'') AS sorts_in_disk , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_sort_in_memory'') AS sorts_in_memory , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_sql'') AS sql_count FROM sess_memory_usage oss ) , sess_stat AS ( SELECT ss.sessid , ss.totalsize , ss.usedsize , ss.total_reads , (ss.disk_to_shared_buffer + ss.disk_to_local_buffer) AS disk_reads , (ss.total_reads-(ss.disk_to_shared_buffer + ss.disk_to_local_buffer)) AS buffer_hits , sorts_in_disk , sorts_in_memory , sql_count FROM sess_stat1 ss ) , sess_memory_stat AS ( SELECT ''' || i.node_name || ''' ::name AS node_name , a.datname::name AS db_name , a.usename::name AS user_name , a.client_hostname , date_trunc(''second'', a.backend_start) ::timestamp AS session_start_time , date_trunc(''second'', a.xact_start) ::timestamp AS xact_start_time , a.waiting , a.state, a.query , st.totalsize AS session_total_memory_size , st.usedsize AS session_used_memory_size , st.buffer_hits, st.disk_reads , ( (st.buffer_hits * 100.0) / NULLIF(st.total_reads, 0) )::numeric(5, 2) AS session_buffer_hit_ratio , st.sorts_in_memory, st.sorts_in_disk , ( (st.sorts_in_memory * 100.0) / NULLIF(st.sorts_in_memory + st.sorts_in_disk, 0) )::numeric(5, 2) AS session_memory_sort_ratio , st.sessid , st.sql_count FROM pg_stat_activity a , sess_stat st WHERE a.state IN (''active'', ''fastpath function call'', ''retrying'') AND a.pid = sessionid2pid(st.sessid::cstring) ORDER BY st.totalsize DESC , st.usedsize DESC LIMIT ' || i_top_n_sessions || ' ) SELECT sms.node_name , sms.db_name , sms.user_name , sms.client_hostname , sms.session_start_time , sms.xact_start_time , sms.waiting , sms.state , sms.query , sms.session_total_memory_size , sms.session_used_memory_size , sms.buffer_hits , sms.disk_reads , sms.session_buffer_hit_ratio , sms.sorts_in_memory , sms.sorts_in_disk , sms.session_memory_sort_ratio , ( ss.value / (NULLIF(sms.sql_count, 0) * 1000.0) )::numeric(15, 3) AS avg_sql_exec_time FROM sess_memory_stat sms , gs_session_time ss WHERE ss.sessid = sms.sessid AND ss.stat_name = ''EXECUTION_TIME'''; RETURN QUERY EXECUTE l_node_query; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_session_io_stat ( IN i_node_name text , IN i_top_n_sessions smallint , OUT o_node_name name , OUT o_db_name name , OUT o_user_name name , OUT o_client_hostname text , OUT o_session_start_time timestamp , OUT o_xact_start_time timestamp , OUT o_waiting boolean , OUT o_state text , OUT o_query text , OUT o_disk_reads bigint , OUT o_read_time bigint , OUT o_avg_read_per_sec numeric(20, 2) , OUT o_avg_read_time numeric(20, 3) , OUT o_avg_sql_exec_time numeric(15, 3) ) RETURNS SETOF record AS $$ DECLARE l_node_query text; l_execute_query text; BEGIN FOR i IN ( SELECT node_name FROM DBE_PERF.node_name nl WHERE UPPER(nl.node_name) = COALESCE(NULLIF(UPPER(i_node_name), 'ALL'), UPPER(nl.node_name)) ) LOOP l_node_query := 'WITH sess_stat0 AS ( SELECT ss.sessid , ss.statname AS statname , ss.value AS statvalue FROM gs_session_stat ss WHERE ss.statname IN ( ''n_shared_blocks_read'' , ''n_local_blocks_read'' , ''n_blocks_read_time'', ''n_sql'' ) ) , sess_stat1 AS ( SELECT DISTINCT ss.sessid , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_shared_blocks_read'') AS disk_to_shared_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_local_blocks_read'') AS disk_to_local_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_blocks_read_time'') AS read_time , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_sql'') AS sql_count FROM sess_stat0 ss ) , sess_stat AS ( SELECT ss.sessid , (ss.disk_to_shared_buffer + ss.disk_to_local_buffer) AS disk_reads , ss.read_time , ss.sql_count FROM sess_stat1 ss ) , sess_io_stat AS ( SELECT ''' || i.node_name || ''' ::name AS node_name , a.datname::name AS db_name , a.usename::name AS user_name , a.client_hostname , date_trunc(''second'', a.backend_start) ::timestamp AS session_start_time , date_trunc(''second'', a.xact_start) ::timestamp AS xact_start_time , a.waiting , a.state, a.query , st.disk_reads , st.read_time , ( st.disk_reads * 1000000.0 / NULLIF(st.read_time, 0) )::numeric(20,2) AS avg_read_per_sec , ( st.read_time * 1.0 / NULLIF(st.disk_reads, 0) ) ::numeric(20,3) AS avg_read_time , st.sessid , st.sql_count FROM pg_stat_activity a , sess_stat st WHERE a.state IN (''active'', ''fastpath function call'', ''retrying'') AND a.pid = sessionid2pid(st.sessid::cstring) ORDER BY st.disk_reads DESC , st.read_time DESC LIMIT ' || i_top_n_sessions || ' ) SELECT sios.node_name , sios.db_name , sios.user_name , sios.client_hostname , sios.session_start_time , sios.xact_start_time , sios.waiting , sios.state , sios.query , sios.disk_reads , sios.read_time , sios.avg_read_per_sec , sios.avg_read_time , ( ss.value / (NULLIF(sios.sql_count, 0) * 1000.0) )::numeric(15, 3) AS avg_sql_exec_time FROM sess_io_stat sios , gs_session_time ss WHERE ss.sessid = sios.sessid AND ss.stat_name = ''EXECUTION_TIME'''; RETURN QUERY EXECUTE l_node_query; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.insertBaseValue() RETURNS TEXT AS $$ DECLARE l_configuration_count_value INT; l_meta_data_count_value INT; l_version_string varchar(128); l_result varchar(128); BEGIN SELECT count(config_param_name) INTO l_configuration_count_value FROM pmk.pmk_configuration WHERE config_param_name IN ('Collection Count', 'Enable PMK'); IF l_configuration_count_value != 2 THEN DELETE FROM pmk.pmk_configuration; INSERT INTO pmk.pmk_configuration(config_param_name, config_value) VALUES ('Collection Count', '9'), ('Enable PMK', 'TRUE'); END IF; SELECT count(pmk_version) INTO l_meta_data_count_value FROM pmk.pmk_meta_data; SELECT substring(version() from '[a-zA-Z0-9 ]* [0-9]+\.[0-9]+\.[0-9]+') INTO l_version_string; l_result := l_version_string; IF l_meta_data_count_value < 1 THEN INSERT INTO pmk.pmk_meta_data (pmk_version, last_snapshot_id, last_snapshot_collect_time) VALUES (l_result, NULL, NULL); END IF; RETURN NULL; END; $$ LANGUAGE plpgsql;""", """ SELECT pmk.insertBaseValue();""", """COMMIT;""", """ analyze pmk.pmk_configuration;""", """ analyze pmk.pmk_snapshot;""", """ analyze pmk.pmk_snapshot_datanode_stat;""", """ analyze pmk.pmk_meta_data;"""] PMK_NEW = ["""SET default_tablespace = defaulttablespace;""", """CREATE SCHEMA pmk;""", """CREATE TABLE pmk.pmk_configuration ( config_param_name varchar(64) NOT NULL , config_value text NOT NULL );""", """CREATE TABLE pmk.pmk_snapshot ( snapshot_id int -- Snapshot ID (Running number) , current_snapshot_time timestamp with time zone -- Time at the beginning of the snapshot , last_snapshot_time timestamp with time zone -- Time at the end of the snapshot; the actual time the snapshot was taken , creation_time timestamp with time zone -- Time the snapshot was created );""", """CREATE TABLE pmk.pmk_snapshot_datanode_stat ( snapshot_id int -- Snapshot Id , node_name text -- node name from pgxc_node , node_host text -- node host from pgxc_node , last_startup_time timestamp with time zone -- last restart time of the node before snapshot starts , number_of_files int , physical_reads bigint , physical_reads_delta bigint , physical_writes bigint , physical_writes_delta bigint , read_time bigint , read_time_delta bigint , write_time bigint , write_time_delta bigint , db_size bigint , active_sql_count int , wait_sql_count int , session_count int , xact_commit bigint , xact_commit_delta bigint , xact_rollback bigint , xact_rollback_delta bigint , checkpoints_timed bigint , checkpoints_timed_delta bigint , checkpoints_req bigint , checkpoints_req_delta bigint , checkpoint_write_time double precision , checkpoint_write_time_delta double precision , physical_memory bigint , db_memory_usage bigint , shared_buffer_size bigint , session_memory_total_size bigint , session_memory_used_size bigint , blocks_read bigint , blocks_read_delta bigint , blocks_hit bigint , blocks_hit_delta bigint , work_memory_size bigint , sorts_in_memory bigint , sorts_in_memory_delta bigint , sorts_in_disk bigint , sorts_in_disk_delta bigint , busy_time numeric , busy_time_delta numeric , idle_time numeric , idle_time_delta numeric , iowait_time numeric , iowait_time_delta numeric , db_cpu_time numeric , db_cpu_time_delta numeric );""", """CREATE TABLE pmk.pmk_meta_data ( pmk_version varchar(128) , last_snapshot_id int , last_snapshot_collect_time timestamp with time zone );""", """CREATE OR REPLACE FUNCTION pmk.put_line (IN message text ) RETURNS boolean AS $$ DECLARE l_error_message TEXT; BEGIN l_error_message := TRIM(message); IF l_error_message IS NOT NULL THEN raise notice '%',l_error_message; RETURN TRUE; END IF; RETURN FALSE; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.check_node_type RETURNS TEXT AS $$ DECLARE l_node_type CHAR(1); BEGIN l_node_type := 'D'; RETURN NULL; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.check_pmk_enabled RETURNS TEXT AS $$ DECLARE l_pmk_enabled_i TEXT; BEGIN SELECT UPPER(config_value) INTO l_pmk_enabled_i FROM pmk.pmk_configuration WHERE config_param_name = 'Enable PMK'; IF l_pmk_enabled_i = 'FALSE' THEN RETURN 'ERROR:: PMK should be enabled to use the PMK features.'; ELSE RETURN NULL; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.pmk_version ( ) RETURNS varchar(128) AS $$ DECLARE l_pmk_version varchar(128); l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN 'f'; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN 'f'; END IF; SELECT pmk_version INTO l_pmk_version FROM pmk.pmk_meta_data; RETURN l_pmk_version; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.configure_parameter ( IN i_config_param_name varchar(64) , IN i_config_value text ) RETURNS boolean AS $$ DECLARE l_collect_count_value INT; l_config_value TEXT; l_upper_config_param TEXT; l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN FALSE; END IF; l_upper_config_param := UPPER(TRIM(BOTH ' ' FROM i_config_param_name)); l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL AND l_upper_config_param <> 'ENABLE PMK' THEN pmk.put_line(l_error_message); RETURN FALSE; END IF; IF i_config_param_name IS NULL THEN l_error_message := 'ERROR:: Null should not be provided for configuration parameter name.'; pmk.put_line(l_error_message); RETURN FALSE; END IF; IF i_config_value IS NULL THEN l_error_message := 'ERROR:: Null should not be provided for configuration value.'; pmk.put_line(l_error_message); RETURN FALSE; END IF; IF l_upper_config_param = 'COLLECTION COUNT' THEN l_collect_count_value := i_config_value::int; IF l_collect_count_value < -1 THEN l_error_message := 'ERROR:: Configuration value "' || i_config_value || '" should not be less than -1.'; pmk.put_line(l_error_message); RETURN FALSE; ELSIF l_collect_count_value = 0 THEN l_error_message := 'ERROR:: 0 should not be provided since atleast one collection should be retained.'; pmk.put_line(l_error_message); RETURN FALSE; ELSE l_config_value := l_collect_count_value; END IF; ELSIF l_upper_config_param = 'ENABLE PMK' THEN l_config_value := UPPER(TRIM(BOTH ' ' FROM i_config_value)); IF l_config_value NOT IN ('TRUE', 'FALSE') THEN l_error_message := 'ERROR:: Allowed values are TRUE or FALSE for the configuration parameter "Enable PMK".'; pmk.put_line(l_error_message); RETURN FALSE; END IF; END IF; SET allow_concurrent_tuple_update = ON; UPDATE pmk.pmk_configuration SET config_value = l_config_value WHERE UPPER(config_param_name) = l_upper_config_param; IF NOT FOUND THEN l_error_message := 'ERROR:: Invalid configuration parameter "' || i_config_param_name || '" provided for configuring PMK parameter ...'; pmk.put_line(l_error_message); RETURN FALSE; END IF; RETURN TRUE; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_configuration_parameter ( IN i_config_param_name TEXT ) RETURNS TABLE ( config_param_name varchar(64) , config_value text ) AS $$ DECLARE l_upper_config_param TEXT; l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_upper_config_param := UPPER(TRIM(BOTH ' ' FROM i_config_param_name)); IF l_upper_config_param = 'ALL' THEN RETURN QUERY SELECT config_param_name , config_value FROM pmk.pmk_configuration ORDER BY config_param_name; ELSE RETURN QUERY SELECT config_param_name , config_value FROM pmk.pmk_configuration WHERE UPPER(config_param_name) = l_upper_config_param; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.find_perf_stat ( IN i_skip_supper_role boolean , OUT o_number_of_files int , OUT o_physical_reads bigint , OUT o_physical_writes bigint , OUT o_read_time bigint , OUT o_write_time bigint , OUT o_physical_memory bigint , OUT o_shared_buffer_size bigint , OUT o_session_memory_total_size bigint , OUT o_session_memory_used_size bigint , OUT o_blocks_read bigint , OUT o_blocks_hit bigint , OUT o_db_size bigint , OUT o_work_memory_size bigint , OUT o_sorts_in_memory bigint , OUT o_sorts_in_disk bigint , OUT o_active_sql_count int , OUT o_wait_sql_count int , OUT o_session_count int , OUT o_busy_time numeric , OUT o_idle_time numeric , OUT o_iowait_time numeric , OUT o_db_cpu_time numeric , OUT o_db_memory_usage bigint , OUT o_node_startup_time timestamp with time zone , OUT o_node_host_name text , OUT o_xact_commit bigint , OUT o_xact_rollback bigint , OUT o_checkpoints_timed bigint , OUT o_checkpoints_req bigint , OUT o_checkpoint_write_time double precision ) AS $$ DECLARE l_block_size int; l_record_chk int; BEGIN o_node_startup_time := pg_postmaster_start_time(); o_node_host_name := get_hostname(); SELECT COUNT(*) AS number_of_files , SUM(phyrds) AS physical_reads , SUM(phywrts) AS physical_writes , SUM(readtim) AS read_time , SUM(writetim) AS write_time INTO o_number_of_files , o_physical_reads , o_physical_writes , o_read_time , o_write_time FROM gs_file_stat; IF o_number_of_files = 0 THEN o_physical_reads := 0; o_physical_writes := 0; o_read_time := 0; o_write_time := 0; END IF; WITH os_stat AS ( SELECT os.name AS statname , os.value AS statvalue FROM gs_os_run_info os WHERE os.name IN ( 'PHYSICAL_MEMORY_BYTES', 'BUSY_TIME', 'IDLE_TIME', 'IOWAIT_TIME' ) ) SELECT (SELECT statvalue FROM os_stat WHERE statname = 'PHYSICAL_MEMORY_BYTES') , (SELECT statvalue FROM os_stat WHERE statname = 'BUSY_TIME') , (SELECT statvalue FROM os_stat WHERE statname = 'IDLE_TIME') , (SELECT statvalue FROM os_stat WHERE statname = 'IOWAIT_TIME') INTO o_physical_memory , o_busy_time , o_idle_time , o_iowait_time FROM DUAL; -- gs_db_time is not available; temporarily PMK extension is used. o_db_cpu_time := total_cpu(); o_db_memory_usage := total_memory()*1024; WITH config_value AS ( SELECT name , setting::bigint AS config_value FROM pg_settings WHERE name IN ( 'block_size', 'shared_buffers', 'work_mem' ) ) , config_value1 AS ( SELECT (SELECT config_value FROM config_value WHERE name = 'block_size') AS block_size , (SELECT config_value FROM config_value WHERE name = 'shared_buffers') AS shared_buffers , (SELECT config_value FROM config_value WHERE name = 'work_mem') AS work_mem FROM DUAL ) SELECT block_size , (shared_buffers * block_size)::bigint , (work_mem * 1024)::bigint INTO l_block_size , o_shared_buffer_size , o_work_memory_size FROM config_value1; /* Commented since these statistics are not used for node and * cluster reports */ o_session_memory_total_size := 0; o_session_memory_used_size := 0; SELECT SUM(blks_read)::bigint , SUM(blks_hit)::bigint , SUM(xact_commit)::bigint , SUM(xact_rollback)::bigint INTO o_blocks_read , o_blocks_hit , o_xact_commit , o_xact_rollback FROM pg_stat_database; o_db_size := 0; IF i_skip_supper_role = 'TRUE' THEN WITH session_state AS ( SELECT state, waiting , usename FROM pg_stat_activity a, pg_roles r WHERE r.rolsuper = 'f' AND a.usename = r.rolname ) , active_session AS ( SELECT state, waiting , usename FROM session_state s, pg_roles r WHERE s.state IN ('active', 'fastpath function call', 'retrying') AND r.rolsuper = 'f' AND s.usename = r.rolname ) SELECT ( SELECT COUNT(*) FROM active_session ) , ( SELECT COUNT(*) FROM active_session WHERE waiting = TRUE ) , ( SELECT COUNT(*) FROM session_state ) INTO o_active_sql_count, o_wait_sql_count , o_session_count FROM DUAL; ELSE WITH session_state AS ( SELECT state, waiting FROM pg_stat_activity ) , active_session AS ( SELECT state, waiting FROM session_state WHERE state IN ('active', 'fastpath function call', 'retrying') ) SELECT ( SELECT COUNT(*) FROM active_session ) , ( SELECT COUNT(*) FROM active_session WHERE waiting = TRUE ) , ( SELECT COUNT(*) FROM session_state ) INTO o_active_sql_count, o_wait_sql_count, o_session_count FROM DUAL; END IF; -- Currently, the below statistics are calculated from gd_session_stat -- (which is not accurate) since gs_db_stat is not available WITH sort_state AS ( SELECT statname , SUM(value)::bigint AS sorts_cnt FROM gs_session_stat WHERE statname IN ('n_sort_in_memory', 'n_sort_in_disk') GROUP BY statname ) SELECT (SELECT sorts_cnt FROM sort_state WHERE statname = 'n_sort_in_memory') , (SELECT sorts_cnt FROM sort_state WHERE statname = 'n_sort_in_disk') INTO o_sorts_in_memory , o_sorts_in_disk FROM DUAL; SELECT SUM(checkpoints_timed)::bigint , SUM(checkpoints_req)::bigint , SUM(checkpoint_write_time)::bigint INTO o_checkpoints_timed , o_checkpoints_req , o_checkpoint_write_time FROM pg_stat_bgwriter; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.find_node_stat (IN i_skip_supper_role boolean , OUT o_number_of_files_1 int , OUT o_physical_reads_1 bigint , OUT o_physical_writes_1 bigint , OUT o_read_time_1 bigint , OUT o_write_time_1 bigint , OUT o_physical_memory_1 bigint , OUT o_shared_buffer_size_1 bigint , OUT o_session_memory_total_size_1 bigint , OUT o_session_memory_used_size_1 bigint , OUT o_blocks_read_1 bigint , OUT o_blocks_hit_1 bigint , OUT o_db_size_1 bigint , OUT o_work_memory_size_1 bigint , OUT o_sorts_in_memory_1 bigint , OUT o_sorts_in_disk_1 bigint , OUT o_active_sql_count_1 int , OUT o_wait_sql_count_1 int , OUT o_session_count_1 int , OUT o_busy_time_1 numeric , OUT o_idle_time_1 numeric , OUT o_iowait_time_1 numeric , OUT o_db_cpu_time_1 numeric , OUT o_db_memory_usage_1 bigint , OUT o_node_startup_time_1 timestamp with time zone , OUT o_node_host_name_1 text , OUT o_xact_commit_1 bigint , OUT o_xact_rollback_1 bigint , OUT o_checkpoints_timed_1 bigint , OUT o_checkpoints_req_1 bigint , OUT o_checkpoint_write_time_1 double precision ) AS $$ BEGIN SELECT o_number_of_files , o_physical_reads , o_physical_writes , o_read_time , o_write_time , o_physical_memory , o_shared_buffer_size , o_session_memory_total_size , o_session_memory_used_size , o_blocks_read , o_blocks_hit , o_db_size , o_work_memory_size , o_sorts_in_memory , o_sorts_in_disk , o_active_sql_count , o_wait_sql_count , o_session_count , o_busy_time , o_idle_time , o_iowait_time , o_db_cpu_time , o_db_memory_usage , o_node_startup_time , o_node_host_name , o_xact_commit , o_xact_rollback , o_checkpoints_timed , o_checkpoints_req , o_checkpoint_write_time INTO o_number_of_files_1 , o_physical_reads_1 , o_physical_writes_1 , o_read_time_1 , o_write_time_1 , o_physical_memory_1 , o_shared_buffer_size_1 , o_session_memory_total_size_1 , o_session_memory_used_size_1 , o_blocks_read_1 , o_blocks_hit_1 , o_db_size_1 , o_work_memory_size_1 , o_sorts_in_memory_1 , o_sorts_in_disk_1 , o_active_sql_count_1 , o_wait_sql_count_1 , o_session_count_1 , o_busy_time_1 , o_idle_time_1 , o_iowait_time_1 , o_db_cpu_time_1 , o_db_memory_usage_1 , o_node_startup_time_1 , o_node_host_name_1 , o_xact_commit_1 , o_xact_rollback_1 , o_checkpoints_timed_1 , o_checkpoints_req_1 , o_checkpoint_write_time_1 FROM pmk.find_perf_stat(i_skip_supper_role); END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.load_datanode_stat ( IN i_snapshot_id int , IN i_last_snapshot_id int , IN i_pmk_last_collect_start_time timestamp with time zone , IN i_node_name text , IN i_number_of_files int , IN i_physical_reads bigint , IN i_physical_writes bigint , IN i_read_time bigint , IN i_write_time bigint , IN i_physical_memory bigint , IN i_shared_buffer_size bigint , IN i_session_memory_total_size bigint , IN i_session_memory_used_size bigint , IN i_blocks_read bigint , IN i_blocks_hit bigint , IN i_db_size bigint , IN i_work_memory_size bigint , IN i_sorts_in_memory bigint , IN i_sorts_in_disk bigint , IN i_active_sql_count int , IN i_wait_sql_count int , IN i_session_count int , IN i_busy_time numeric , IN i_idle_time numeric , IN i_iowait_time numeric , IN i_db_cpu_time numeric , IN i_db_memory_usage bigint , IN i_node_startup_time timestamp with time zone , IN i_node_host_name text , IN i_xact_commit bigint , IN i_xact_rollback bigint , IN i_checkpoints_timed bigint , IN i_checkpoints_req bigint , IN i_checkpoint_write_time double precision , IN i_skip_supper_role boolean , OUT o_dn_snapshot_id int , OUT o_dn_node_name text -- node name from pgxc_node , OUT o_dn_node_host text -- node host from pgxc_node , OUT o_dn_last_startup_time timestamp with time zone -- last restart time of the node before snapshot starts , OUT o_dn_number_of_files int , OUT o_dn_physical_reads bigint , OUT o_dn_physical_reads_delta bigint , OUT o_dn_physical_writes bigint , OUT o_dn_physical_writes_delta bigint , OUT o_dn_read_time bigint , OUT o_dn_read_time_delta bigint , OUT o_dn_write_time bigint , OUT o_dn_write_time_delta bigint , OUT o_dn_db_size bigint , OUT o_dn_active_sql_count int , OUT o_dn_wait_sql_count int , OUT o_dn_session_count int , OUT o_dn_xact_commit bigint , OUT o_dn_xact_commit_delta bigint , OUT o_dn_xact_rollback bigint , OUT o_dn_xact_rollback_delta bigint , OUT o_dn_checkpoints_timed bigint , OUT o_dn_checkpoints_timed_delta bigint , OUT o_dn_checkpoints_req bigint , OUT o_dn_checkpoints_req_delta bigint , OUT o_dn_checkpoint_write_time double precision , OUT o_dn_checkpoint_write_time_delta double precision , OUT o_dn_physical_memory bigint , OUT o_dn_db_memory_usage bigint , OUT o_dn_shared_buffer_size bigint , OUT o_dn_session_memory_total_size bigint , OUT o_dn_session_memory_used_size bigint , OUT o_dn_blocks_read bigint , OUT o_dn_blocks_read_delta bigint , OUT o_dn_blocks_hit bigint , OUT o_dn_blocks_hit_delta bigint , OUT o_dn_work_memory_size bigint , OUT o_dn_sorts_in_memory bigint , OUT o_dn_sorts_in_memory_delta bigint , OUT o_dn_sorts_in_disk bigint , OUT o_dn_sorts_in_disk_delta bigint , OUT o_dn_busy_time numeric , OUT o_dn_busy_time_delta numeric , OUT o_dn_idle_time numeric , OUT o_dn_idle_time_delta numeric , OUT o_dn_iowait_time numeric , OUT o_dn_iowait_time_delta numeric , OUT o_dn_db_cpu_time numeric , OUT o_dn_db_cpu_time_delta numeric ) AS $$ DECLARE l_physical_reads_delta bigint; l_physical_writes_delta bigint; l_read_time_delta bigint; l_write_time_delta bigint; l_blocks_read_delta bigint; l_blocks_hit_delta bigint; l_sorts_in_memory_delta bigint; l_sorts_in_disk_delta bigint; l_busy_time_delta numeric; l_idle_time_delta numeric; l_iowait_time_delta numeric; l_db_cpu_time_delta numeric; l_xact_commit_delta bigint; l_xact_rollback_delta bigint; l_checkpoints_timed_delta bigint; l_checkpoints_req_delta bigint; l_checkpoint_write_time_delta double precision; i_skip_supper_role_delta boolean; BEGIN l_physical_reads_delta := i_physical_reads; l_physical_writes_delta := i_physical_writes; l_read_time_delta := i_read_time; l_write_time_delta := i_write_time; l_xact_commit_delta := i_xact_commit; l_xact_rollback_delta := i_xact_rollback; l_checkpoints_timed_delta := i_checkpoints_timed; i_skip_supper_role_delta := i_skip_supper_role; l_checkpoints_req_delta := i_checkpoints_req; l_checkpoint_write_time_delta := i_checkpoint_write_time; l_blocks_read_delta := i_blocks_read; l_blocks_hit_delta := i_blocks_hit; l_busy_time_delta := i_busy_time; l_idle_time_delta := i_idle_time; l_iowait_time_delta := i_iowait_time; l_db_cpu_time_delta := i_db_cpu_time; -- Currently, the below statistics are calculated from gs_session_stat -- (which is not accurate) since gs_db_stat is not available -- These statistics are cumulative from instance startup. l_sorts_in_memory_delta := i_sorts_in_memory; l_sorts_in_disk_delta := i_sorts_in_disk; o_dn_snapshot_id := i_snapshot_id; o_dn_node_name := i_node_name; o_dn_node_host := i_node_host_name; o_dn_last_startup_time := i_node_startup_time; o_dn_number_of_files := i_number_of_files; o_dn_physical_reads := i_physical_reads; o_dn_physical_reads_delta := l_physical_reads_delta; o_dn_physical_writes := i_physical_writes; o_dn_physical_writes_delta := l_physical_writes_delta; o_dn_read_time := i_read_time; o_dn_read_time_delta := l_read_time_delta; o_dn_write_time := i_write_time; o_dn_write_time_delta := l_write_time_delta; o_dn_db_size := i_db_size; o_dn_active_sql_count := i_active_sql_count; o_dn_wait_sql_count := i_wait_sql_count; o_dn_session_count := i_session_count; o_dn_xact_commit := i_xact_commit; o_dn_xact_commit_delta := l_xact_commit_delta; o_dn_xact_rollback := i_xact_rollback; o_dn_xact_rollback_delta := l_xact_rollback_delta; o_dn_checkpoints_timed := i_checkpoints_timed; o_dn_checkpoints_timed_delta := l_checkpoints_timed_delta; o_dn_checkpoints_req := i_checkpoints_req; o_dn_checkpoints_req_delta := l_checkpoints_req_delta; o_dn_checkpoint_write_time := i_checkpoint_write_time; o_dn_checkpoint_write_time_delta := l_checkpoint_write_time_delta; o_dn_physical_memory := i_physical_memory; o_dn_db_memory_usage := i_db_memory_usage; o_dn_shared_buffer_size := i_shared_buffer_size; o_dn_session_memory_total_size := i_session_memory_total_size; o_dn_session_memory_used_size := i_session_memory_used_size; o_dn_blocks_read := i_blocks_read; o_dn_blocks_read_delta := l_blocks_read_delta; o_dn_blocks_hit := i_blocks_hit; o_dn_blocks_hit_delta := l_blocks_hit_delta; o_dn_work_memory_size := i_work_memory_size; o_dn_sorts_in_memory := i_sorts_in_memory; o_dn_sorts_in_memory_delta := l_sorts_in_memory_delta; o_dn_sorts_in_disk := i_sorts_in_disk; o_dn_sorts_in_disk_delta := l_sorts_in_disk_delta; o_dn_busy_time := i_busy_time; o_dn_busy_time_delta := l_busy_time_delta; o_dn_idle_time := i_idle_time; o_dn_idle_time_delta := l_idle_time_delta; o_dn_iowait_time := i_iowait_time; o_dn_iowait_time_delta := l_iowait_time_delta; o_dn_db_cpu_time := i_db_cpu_time; o_dn_db_cpu_time_delta := l_db_cpu_time_delta; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.load_node_stat ( IN i_pmk_curr_collect_start_time TIMESTAMP WITH TIME ZONE , IN i_pmk_last_collect_start_time TIMESTAMP WITH TIME ZONE , IN i_last_snapshot_id INT , IN i_node_name TEXT , IN i_node_type char(1) , IN i_skip_supper_role boolean ) RETURNS TABLE ( snapshot_id int , node_name text , node_host text , last_startup_time timestamp with time zone , number_of_files int , physical_reads bigint , physical_reads_delta bigint , physical_writes bigint , physical_writes_delta bigint , read_time bigint , read_time_delta bigint , write_time bigint , write_time_delta bigint , db_size bigint , active_sql_count int , wait_sql_count int , session_count int , xact_commit bigint , xact_commit_delta bigint , xact_rollback bigint , xact_rollback_delta bigint , checkpoints_timed bigint , checkpoints_timed_delta bigint , checkpoints_req bigint , checkpoints_req_delta bigint , checkpoint_write_time double precision , checkpoint_write_time_delta double precision , physical_memory bigint , db_memory_usage bigint , shared_buffer_size bigint , session_memory_total_size bigint , session_memory_used_size bigint , blocks_read bigint , blocks_read_delta bigint , blocks_hit bigint , blocks_hit_delta bigint , work_memory_size bigint , sorts_in_memory bigint , sorts_in_memory_delta bigint , sorts_in_disk bigint , sorts_in_disk_delta bigint , busy_time numeric , busy_time_delta numeric , idle_time numeric , idle_time_delta numeric , iowait_time numeric , iowait_time_delta numeric , db_cpu_time numeric , db_cpu_time_delta numeric ) AS $$ DECLARE l_snapshot_id INT; l_query_str TEXT; l_node_stat_cur RECORD; BEGIN IF i_last_snapshot_id IS NULL OR i_last_snapshot_id = 2147483647 THEN l_snapshot_id := 1; ELSE l_snapshot_id := i_last_snapshot_id + 1; END IF; FOR l_node_stat_cur IN SELECT * FROM pmk.find_node_stat(i_skip_supper_role) LOOP RETURN QUERY (SELECT * FROM pmk.load_datanode_stat ( l_snapshot_id , i_last_snapshot_id , i_pmk_last_collect_start_time , i_node_name , l_node_stat_cur.o_number_of_files_1 , l_node_stat_cur.o_physical_reads_1 , l_node_stat_cur.o_physical_writes_1 , l_node_stat_cur.o_read_time_1 , l_node_stat_cur.o_write_time_1 , l_node_stat_cur.o_physical_memory_1 , l_node_stat_cur.o_shared_buffer_size_1 , l_node_stat_cur.o_session_memory_total_size_1 , l_node_stat_cur.o_session_memory_used_size_1 , l_node_stat_cur.o_blocks_read_1 , l_node_stat_cur.o_blocks_hit_1 , l_node_stat_cur.o_db_size_1 , l_node_stat_cur.o_work_memory_size_1 , l_node_stat_cur.o_sorts_in_memory_1 , l_node_stat_cur.o_sorts_in_disk_1 , l_node_stat_cur.o_active_sql_count_1 , l_node_stat_cur.o_wait_sql_count_1 , l_node_stat_cur.o_session_count_1 , l_node_stat_cur.o_busy_time_1 , l_node_stat_cur.o_idle_time_1 , l_node_stat_cur.o_iowait_time_1 , l_node_stat_cur.o_db_cpu_time_1 , l_node_stat_cur.o_db_memory_usage_1 , l_node_stat_cur.o_node_startup_time_1 , l_node_stat_cur.o_node_host_name_1 , l_node_stat_cur.o_xact_commit_1 , l_node_stat_cur.o_xact_rollback_1 , l_node_stat_cur.o_checkpoints_timed_1 , l_node_stat_cur.o_checkpoints_req_1 , l_node_stat_cur.o_checkpoint_write_time_1 , i_skip_supper_role )); END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.delete_expired_snapshots ( ) RETURNS void AS $$ DECLARE l_collection_count INT; l_retention_snapshot_id INT; BEGIN -- Deleting node statistics based on "collection count" config param SELECT config_value INTO l_collection_count FROM pmk.pmk_configuration WHERE config_param_name = 'Collection Count'; IF l_collection_count > -1 THEN IF l_collection_count = 0 THEN l_collection_count := 1; END IF; SELECT MIN(snapshot_id) INTO l_retention_snapshot_id FROM ( SELECT snapshot_id FROM pmk.pmk_snapshot ORDER BY snapshot_id DESC LIMIT l_collection_count ); DELETE FROM pmk.pmk_snapshot_datanode_stat WHERE snapshot_id < l_retention_snapshot_id; DELETE FROM pmk.pmk_snapshot WHERE snapshot_id < l_retention_snapshot_id; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_meta_data ( OUT l_pmk_curr_collect_start_time timestamp with time zone , OUT l_pmk_last_collect_start_time timestamp with time zone , OUT l_last_snapshot_id int ) AS $$ DECLARE l_error_message TEXT; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; SELECT last_snapshot_id, last_snapshot_collect_time INTO l_last_snapshot_id, l_pmk_last_collect_start_time FROM pmk.pmk_meta_data; l_pmk_curr_collect_start_time := date_trunc('second', current_timestamp); IF l_pmk_curr_collect_start_time < l_pmk_last_collect_start_time THEN l_error_message := 'ERROR:: There is a change in system time of Gauss MPPDB host. PMK does not support the scenarios related to system time change.'; pmk.put_line(l_error_message); RETURN; ELSIF l_pmk_curr_collect_start_time = l_pmk_last_collect_start_time THEN l_error_message := 'ERROR:: Multiple statistics-collections can not be done within a second.'; pmk.put_line(l_error_message); RETURN; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_pgxc_node ( OUT o_node_name TEXT , OUT o_node_type CHAR(1) ) RETURNS SETOF RECORD AS $$ DECLARE l_error_message TEXT; v_rec RECORD; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; FOR v_rec IN (SELECT node_name from DBE_PERF.node_name;) LOOP o_node_name := v_rec.node_name; o_node_type := 'D'; RETURN NEXT; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.check_start_end_dates ( INOUT io_start_pmk_time timestamp with time zone , INOUT io_end_pmk_time timestamp with time zone , OUT o_error_message text ) AS $$ DECLARE l_last_collect_time timestamp with time zone; BEGIN SELECT last_snapshot_collect_time INTO l_last_collect_time FROM pmk.pmk_meta_data; IF io_start_pmk_time > l_last_collect_time THEN o_error_message := 'ERROR:: The from-time provided is greater than the last statistics-collection time(' || l_last_collect_time || '). Invalid value(s) provided for the input time-range'; RETURN; END IF; IF io_end_pmk_time IS NULL THEN io_end_pmk_time := l_last_collect_time; IF io_start_pmk_time IS NULL THEN io_start_pmk_time := io_end_pmk_time; END IF; ELSE IF (io_start_pmk_time IS NULL) OR (io_start_pmk_time > io_end_pmk_time) THEN o_error_message := 'ERROR:: Invalid value(s) provided for the input time-range'; RETURN; END IF; END IF; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_host_cpu_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_avg_cpu_total_time numeric(21, 3) , OUT o_avg_cpu_busy_time numeric(21, 3) , OUT o_avg_cpu_iowait_time numeric(21, 3) , OUT o_cpu_busy_perc numeric(5, 2) , OUT o_cpu_io_wait_perc numeric(5, 2) , OUT o_min_cpu_busy_perc numeric(5, 2) , OUT o_max_cpu_busy_perc numeric(5, 2) , OUT o_min_cpu_iowait_perc numeric(5, 2) , OUT o_max_cpu_iowait_perc numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster host CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) , os_cpu_stat AS ( SELECT s.pmk_curr_collect_start_time , node_host , node_name , (busy_time_delta * 10) AS cpu_busy_time , (idle_time_delta * 10) AS cpu_idle_time , (iowait_time_delta * 10) AS cpu_iowait_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) , os_cpu_stat1 AS ( SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , node_host , cpu_busy_time , cpu_idle_time , cpu_iowait_time , (cpu_busy_time+cpu_idle_time+cpu_iowait_time) ::numeric AS cpu_total_time FROM ( SELECT pmk_curr_collect_start_time , node_host , cpu_busy_time , cpu_idle_time , cpu_iowait_time , rank() OVER (PARTITION BY pmk_curr_collect_start_time , node_host ORDER BY cpu_busy_time DESC, node_name ) AS node_cpu_busy_order FROM os_cpu_stat ) WHERE node_cpu_busy_order = 1 ) SELECT hcs.stat_collect_time , AVG(hcs.cpu_total_time)::numeric(21, 3) AS avg_cpu_total_time , AVG(hcs.cpu_busy_time)::numeric(21, 3) AS avg_cpu_busy_time , AVG(hcs.cpu_iowait_time)::numeric(21, 3) AS avg_cpu_iowait_time , ((SUM(cpu_busy_time) * 100.0) / NULLIF(SUM(cpu_total_time), 0))::numeric(5, 2) AS cpu_busy_perc , ( (SUM(cpu_iowait_time) * 100.0) / NULLIF(SUM(cpu_total_time), 0) )::numeric(5, 2) AS cpu_io_wait_perc , MIN(hcs.cpu_busy_time_perc)::numeric(5, 2) AS min_cpu_busy_perc , MAX(hcs.cpu_busy_time_perc)::numeric(5, 2) AS max_cpu_busy_perc , MIN(hcs.cpu_iowait_time_perc)::numeric(5, 2) AS min_cpu_iowait_perc , MAX(hcs.cpu_iowait_time_perc)::numeric(5, 2) AS max_cpu_iowait_perc FROM ( SELECT node_host , stat_collect_time , cpu_total_time , cpu_busy_time , cpu_iowait_time , ( (cpu_busy_time * 100.0) / NULLIF(cpu_total_time, 0) )::numeric(5, 2) AS cpu_busy_time_perc , ( (cpu_iowait_time * 100.0) / NULLIF(cpu_total_time, 0) )::numeric(5, 2) AS cpu_iowait_time_perc FROM os_cpu_stat1 ) hcs GROUP BY hcs.stat_collect_time ORDER BY hcs.stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_mppdb_cpu_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_avg_mppdb_cpu_time numeric(21, 3) , OUT o_avg_host_cpu_busy_time numeric(21, 3) , OUT o_avg_host_cpu_total_time numeric(21, 3) , OUT o_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) , OUT o_min_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_max_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_min_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) , OUT o_max_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster MPPDB CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) , cpu_stat AS ( SELECT s.snapshot_id , s.pmk_curr_collect_start_time , dns.node_name , dns.node_host , (dns.busy_time_delta * 10) AS host_cpu_busy_time , (dns.idle_time_delta * 10) AS host_cpu_idle_time , (dns.iowait_time_delta * 10) AS host_cpu_iowait_time , (dns.db_cpu_time_delta * 10) AS mppdb_cpu_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) , host_cpu_stat AS ( SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , node_host , host_cpu_busy_time , host_cpu_idle_time , host_cpu_iowait_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::numeric AS host_cpu_total_time FROM ( SELECT pmk_curr_collect_start_time , node_host , host_cpu_busy_time , host_cpu_idle_time , host_cpu_iowait_time , rank() OVER (PARTITION BY snapshot_id, node_host ORDER BY host_cpu_busy_time DESC, node_name) AS node_cpu_busy_order FROM cpu_stat ) WHERE node_cpu_busy_order = 1 ) , host_cpu_stat_summary AS ( SELECT stat_collect_time , AVG(host_cpu_busy_time)::numeric(21, 3) AS avg_host_cpu_busy_time , AVG(host_cpu_total_time)::numeric(21, 3) AS avg_host_cpu_total_time , SUM(host_cpu_busy_time)::numeric(21, 3) AS tot_host_cpu_busy_time , SUM(host_cpu_total_time)::numeric(21, 3) AS tot_host_cpu_total_time FROM host_cpu_stat GROUP BY stat_collect_time ) , mppdb_cpu_stat0 AS ( SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , node_name , mppdb_cpu_time , host_cpu_busy_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::numeric AS host_cpu_total_time FROM cpu_stat ) , mppdb_cpu_stat AS ( SELECT stat_collect_time , node_name , mppdb_cpu_time , ( (mppdb_cpu_time * 100.0) / NULLIF(host_cpu_busy_time, 0) ) ::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_busy_time , ( (mppdb_cpu_time * 100.0) / NULLIF(host_cpu_total_time, 0) ) ::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_total_time FROM mppdb_cpu_stat0 ) , mppdb_cpu_stat_summary AS ( SELECT stat_collect_time , AVG(mppdb_cpu_time)::numeric(21, 3) AS avg_mppdb_cpu_time , SUM(mppdb_cpu_time)::numeric(21, 3) AS tot_mppdb_cpu_time , MIN(mppdb_cpu_time_perc_wrt_busy_time)::numeric(5, 2) AS min_mppdb_cpu_time_perc_wrt_busy_time , MAX(mppdb_cpu_time_perc_wrt_busy_time)::numeric(5, 2) AS max_mppdb_cpu_time_perc_wrt_busy_time , MIN(mppdb_cpu_time_perc_wrt_total_time)::numeric(5, 2) AS min_mppdb_cpu_time_perc_wrt_total_time , MAX(mppdb_cpu_time_perc_wrt_total_time)::numeric(5, 2) AS max_mppdb_cpu_time_perc_wrt_total_time FROM mppdb_cpu_stat GROUP BY stat_collect_time ) SELECT mcs.stat_collect_time , mcs.avg_mppdb_cpu_time , hcs.avg_host_cpu_busy_time , hcs.avg_host_cpu_total_time , CASE WHEN mcs.tot_mppdb_cpu_time < hcs.tot_host_cpu_busy_time THEN ( (mcs.tot_mppdb_cpu_time * 100.0) / NULLIF(hcs.tot_host_cpu_busy_time, 0) )::numeric(5, 2) ELSE 100.00 END AS mppdb_cpu_time_perc_wrt_busy_time , CASE WHEN mcs.tot_mppdb_cpu_time < hcs.tot_host_cpu_total_time THEN ( (mcs.tot_mppdb_cpu_time * 100.0) / NULLIF(hcs.tot_host_cpu_total_time, 0) )::numeric(5, 2) ELSE 100.00 END AS mppdb_cpu_time_perc_wrt_total_time , mcs.min_mppdb_cpu_time_perc_wrt_busy_time , mcs.max_mppdb_cpu_time_perc_wrt_busy_time , mcs.min_mppdb_cpu_time_perc_wrt_total_time , mcs.max_mppdb_cpu_time_perc_wrt_total_time FROM mppdb_cpu_stat_summary mcs , host_cpu_stat_summary hcs WHERE mcs.stat_collect_time = hcs.stat_collect_time ORDER BY mcs.stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_shared_buffer_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_shared_buffer_hit_ratio numeric(5, 2) , OUT o_min_shared_buffer_hit_ratio numeric(5, 2) , OUT o_max_shared_buffer_hit_ratio numeric(5, 2) , OUT o_total_blocks_read bigint , OUT o_total_blocks_hit bigint ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster shared buffer statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , ( (total_blocks_hit * 100.0) / NULLIF(total_blocks_read+total_blocks_hit, 0) )::numeric(5, 2) AS shared_buffer_hit_ratio , min_shared_buffer_hit_ratio , max_shared_buffer_hit_ratio , total_blocks_read , total_blocks_hit FROM ( SELECT pmk_curr_collect_start_time , SUM(blocks_read)::bigint AS total_blocks_read , SUM(blocks_hit)::bigint AS total_blocks_hit , MIN(shared_buffer_hit_ratio)::numeric(5, 2) AS min_shared_buffer_hit_ratio , MAX(shared_buffer_hit_ratio)::numeric(5, 2) AS max_shared_buffer_hit_ratio FROM ( SELECT s.pmk_curr_collect_start_time , node_name , blocks_read_delta AS blocks_read , blocks_hit_delta AS blocks_hit , ( (blocks_hit_delta * 100.0) / NULLIF((blocks_read_delta + blocks_hit_delta), 0) ) ::numeric(5, 2) AS shared_buffer_hit_ratio FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) GROUP BY pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_memory_sort_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_memory_sort_ratio numeric(5, 2) , OUT o_min_memory_sort_ratio numeric(5, 2) , OUT o_max_memory_sort_ratio numeric(5, 2) , OUT o_total_memory_sorts bigint , OUT o_total_disk_sorts bigint ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster memory sort statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , ( (total_memory_sorts * 100.0) / NULLIF(total_disk_sorts+total_memory_sorts, 0) )::numeric(5, 2) AS memory_sort_ratio , min_memory_sort_ratio , max_memory_sort_ratio , total_memory_sorts , total_disk_sorts FROM ( SELECT pmk_curr_collect_start_time , SUM(memory_sorts)::bigint AS total_memory_sorts , SUM(disk_sorts)::bigint AS total_disk_sorts , MIN(memory_sort_ratio)::numeric(5, 2) AS min_memory_sort_ratio , MAX(memory_sort_ratio)::numeric(5, 2) AS max_memory_sort_ratio FROM ( SELECT s.pmk_curr_collect_start_time , node_name , sorts_in_memory_delta AS memory_sorts , sorts_in_disk_delta AS disk_sorts , ( (sorts_in_memory_delta * 100.0) / NULLIF((sorts_in_disk_delta + sorts_in_memory_delta), 0) ) ::numeric(5, 2) AS memory_sort_ratio FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) GROUP BY pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_io_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_number_of_files int , OUT o_physical_reads bigint , OUT o_physical_writes bigint , OUT o_read_time bigint , OUT o_write_time bigint , OUT o_avg_read_per_sec numeric(20,2) , OUT o_avg_read_time numeric(20,3) , OUT o_avg_write_per_sec numeric(20,2) , OUT o_avg_write_time numeric(20,3) , OUT o_min_node_read_per_sec numeric(20,2) , OUT o_max_node_read_per_sec numeric(20,2) , OUT o_min_node_read_time numeric(20,3) , OUT o_max_node_read_time numeric(20,3) , OUT o_min_node_write_per_sec numeric(20,2) , OUT o_max_node_write_per_sec numeric(20,2) , OUT o_min_node_write_time numeric(20,3) , OUT o_max_node_write_time numeric(20,3) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster I/O statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , number_of_files , physical_reads , physical_writes , read_time , write_time , ( physical_reads * 1000000.0 / NULLIF(read_time, 0) )::numeric(20,2) AS avg_read_per_sec , ( read_time * 1.0 / NULLIF(physical_reads, 0) )::numeric(20,3) AS avg_read_time , ( physical_writes * 1000000.0 / NULLIF(write_time, 0) )::numeric(20,2) AS avg_write_per_sec , ( write_time * 1.0 / NULLIF(physical_writes, 0) )::numeric(20,3) AS avg_write_time , min_node_read_per_sec , max_node_read_per_sec , min_node_read_time , max_node_read_time , min_node_write_per_sec , max_node_write_per_sec , min_node_write_time , max_node_write_time FROM ( SELECT pmk_curr_collect_start_time , SUM(number_of_files)::int AS number_of_files , SUM(physical_reads_delta)::bigint AS physical_reads , SUM(physical_writes_delta)::bigint AS physical_writes , SUM(read_time_delta)::bigint AS read_time , SUM(write_time_delta)::bigint AS write_time , MIN(node_read_per_sec) AS min_node_read_per_sec , MAX(node_read_per_sec) AS max_node_read_per_sec , MIN(node_read_time) AS min_node_read_time , MAX(node_read_time) AS max_node_read_time , MIN(node_write_per_sec) AS min_node_write_per_sec , MAX(node_write_per_sec) AS max_node_write_per_sec , MIN(node_write_time) AS min_node_write_time , MAX(node_write_time) AS max_node_write_time FROM ( SELECT s.pmk_curr_collect_start_time , node_name , number_of_files , physical_reads_delta , physical_writes_delta , read_time_delta , write_time_delta , ( physical_reads_delta * 1000000.0 / NULLIF(read_time_delta, 0) )::numeric(20,2) AS node_read_per_sec , ( read_time_delta * 1.0 / NULLIF(physical_reads_delta, 0) )::numeric(20,3) AS node_read_time , ( physical_writes_delta * 1000000.0 / NULLIF(write_time_delta, 0) )::numeric(20,2) AS node_write_per_sec , ( write_time_delta * 1.0 / NULLIF(physical_writes_delta, 0) )::numeric(20,3) AS node_write_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) GROUP BY pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_disk_usage_stat ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , IN i_db_size text , OUT o_stat_collect_time timestamp , OUT o_tot_datanode_db_size text , OUT o_max_datanode_db_size text , OUT o_tot_physical_writes bigint , OUT o_max_node_physical_writes bigint , OUT o_max_node_write_per_sec numeric(20,2) , OUT o_avg_write_per_sec numeric(20,2) ) RETURNS SETOF record AS $$ DECLARE l_error_message text; DECLARE l_db_size bigint; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of cluster disk usage statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF i_db_size = '0' THEN SELECT SUM(pg_database_size(oid))::bigint INTO l_db_size FROM pg_database; ELSE SELECT SUM(i_db_size)::bigint INTO l_db_size; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) , disk_stat AS ( SELECT s.pmk_curr_collect_start_time , db_size , physical_writes_delta , write_time_delta , ( physical_writes_delta * 1000000.0 / NULLIF(write_time_delta, 0) )::numeric(20,2) AS node_write_per_sec FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , pg_size_pretty(tot_datanode_db_size) AS tot_datanode_db_size , pg_size_pretty(max_datanode_db_size) AS max_datanode_db_size , tot_physical_writes , max_node_physical_writes , max_node_write_per_sec , ( tot_physical_writes * 1000000.0 / NULLIF(tot_write_time, 0) )::numeric(20,2) AS avg_write_per_sec FROM ( SELECT pmk_curr_collect_start_time , l_db_size::bigint AS tot_datanode_db_size , MAX(db_size)::bigint AS max_datanode_db_size , SUM(physical_writes_delta)::bigint AS tot_physical_writes , SUM(write_time_delta)::bigint AS tot_write_time , MAX(physical_writes_delta)::bigint AS max_node_physical_writes , MAX(node_write_per_sec) AS max_node_write_per_sec FROM disk_stat GROUP BY pmk_curr_collect_start_time ) ORDER BY pmk_curr_collect_start_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_active_sql_count ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_tot_active_sql_count int , OUT o_avg_active_sql_count numeric(9, 2) , OUT o_min_active_sql_count int , OUT o_max_active_sql_count int ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of active SQL count statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , tot_active_sql_count , avg_active_sql_count , min_active_sql_count , max_active_sql_count FROM ( SELECT s.pmk_curr_collect_start_time , SUM(active_sql_count)::int AS tot_active_sql_count , ROUND(AVG(active_sql_count), 2)::numeric(9, 2) AS avg_active_sql_count , MIN(active_sql_count)::int AS min_active_sql_count , MAX(active_sql_count)::int AS max_active_sql_count FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id GROUP BY s.pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_cluster_session_count ( IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_stat_collect_time timestamp , OUT o_tot_session_count int , OUT o_avg_session_count numeric(9, 2) , OUT o_min_session_count int , OUT o_max_session_count int ) RETURNS SETOF record AS $$ DECLARE l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of session count statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT pmk_curr_collect_start_time::timestamp AS stat_collect_time , tot_session_count , avg_session_count , min_session_count , max_session_count FROM ( SELECT s.pmk_curr_collect_start_time , SUM(session_count)::int AS tot_session_count , ROUND(AVG(session_count), 2)::numeric(9, 2) AS avg_session_count , MIN(session_count)::int AS min_session_count , MAX(session_count)::int AS max_session_count FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id GROUP BY s.pmk_curr_collect_start_time ) ORDER BY stat_collect_time; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_node_cpu_stat ( IN i_node_name text , IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_node_type char(1) , OUT o_node_name text , OUT o_node_host text , OUT o_stat_collect_time timestamp , OUT o_mppdb_cpu_time bigint , OUT o_host_cpu_busy_time bigint , OUT o_host_cpu_total_time bigint , OUT o_mppdb_cpu_time_perc_wrt_busy_time numeric(5, 2) , OUT o_mppdb_cpu_time_perc_wrt_total_time numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_node_type char(1); l_node_name text; l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_node_name := UPPER(i_node_name); IF l_node_name <> 'ALL' THEN l_node_type := 'D'; IF l_node_type IS NULL THEN l_error_message := 'ERROR:: Invalid node name ("' || i_node_name || '") provided during generation of node (MPPDB instance) CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of node (MPPDB instance) CPU statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF l_node_name = 'ALL' THEN RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , mppdb_cpu_time , host_cpu_busy_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::bigint AS host_cpu_total_time , ( (mppdb_cpu_time * 100.0) / NULLIF(host_cpu_busy_time, 0) )::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_busy_time , ( (mppdb_cpu_time * 100.0) / NULLIF((host_cpu_busy_time+host_cpu_idle_time +host_cpu_iowait_time), 0) )::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_total_time FROM ( SELECT 'D'::char(1) AS node_type , node_name , node_host , s.pmk_curr_collect_start_time , (busy_time_delta * 10)::bigint AS host_cpu_busy_time , (idle_time_delta * 10)::bigint AS host_cpu_idle_time , (iowait_time_delta * 10)::bigint AS host_cpu_iowait_time , (db_cpu_time_delta * 10)::bigint AS mppdb_cpu_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) ORDER BY node_type, node_name, stat_collect_time; ELSE RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT 'D'::char(1) AS node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , mppdb_cpu_time , host_cpu_busy_time , (host_cpu_busy_time+host_cpu_idle_time+host_cpu_iowait_time) ::bigint AS host_cpu_total_time , ( (mppdb_cpu_time * 100.0) / NULLIF(host_cpu_busy_time, 0) ) ::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_busy_time , ( (mppdb_cpu_time * 100.0) / NULLIF((host_cpu_busy_time+ host_cpu_idle_time+host_cpu_iowait_time), 0) )::numeric(5, 2) AS mppdb_cpu_time_perc_wrt_total_time FROM ( SELECT node_name , node_host , s.pmk_curr_collect_start_time , (busy_time_delta * 10)::bigint AS host_cpu_busy_time , (idle_time_delta * 10)::bigint AS host_cpu_idle_time , (iowait_time_delta * 10)::bigint AS host_cpu_iowait_time , (db_cpu_time_delta * 10)::bigint AS mppdb_cpu_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id AND UPPER(node_name) = l_node_name ) ORDER BY node_name, stat_collect_time; END IF; -- end of l_node_name = 'ALL' END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_node_memory_stat ( IN i_node_name text , IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_node_type char(1) , OUT o_node_name text , OUT o_node_host text , OUT o_stat_collect_time timestamp , OUT o_physical_memory bigint , OUT o_db_memory_usage bigint , OUT o_shared_buffer_size bigint , OUT o_blocks_read bigint , OUT o_blocks_hit bigint , OUT o_shared_buffer_hit_ratio numeric(5, 2) , OUT o_work_memory_size bigint , OUT o_sorts_in_memory bigint , OUT o_sorts_in_disk bigint , OUT o_in_memory_sort_ratio numeric(5, 2) ) RETURNS SETOF record AS $$ DECLARE l_node_type char(1); l_node_name text; l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_node_name := UPPER(i_node_name); IF l_node_name <> 'ALL' THEN l_node_type := 'D'; IF l_node_type IS NULL THEN l_error_message := 'ERROR:: Invalid node name ("' || i_node_name || '") provided during generation of node (MPPDB instance) memory statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of node (MPPDB instance) memory statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF l_node_name = 'ALL' THEN RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read , blocks_hit , ( (blocks_hit * 100.0) / NULLIF((blocks_read + blocks_hit), 0) ) ::numeric(5, 2) AS shared_buffer_hit_ratio , work_memory_size , sorts_in_memory , sorts_in_disk , ( (sorts_in_memory * 100.0) / NULLIF((sorts_in_disk + sorts_in_memory), 0) )::numeric(5, 2) AS in_memory_sort_ratio FROM ( SELECT 'D'::char(1) AS node_type , node_name , node_host , s.pmk_curr_collect_start_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read_delta AS blocks_read , blocks_hit_delta AS blocks_hit , work_memory_size , sorts_in_memory_delta AS sorts_in_memory , sorts_in_disk_delta AS sorts_in_disk FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) ORDER BY node_type, node_name, stat_collect_time; ELSE RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT 'D'::char(1) AS node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read , blocks_hit , ( (blocks_hit * 100.0) / NULLIF((blocks_read + blocks_hit), 0) ) ::numeric(5, 2) AS shared_buffer_hit_ratio , work_memory_size , sorts_in_memory , sorts_in_disk , ( (sorts_in_memory * 100.0) / NULLIF((sorts_in_disk + sorts_in_memory), 0) )::numeric(5, 2) AS in_memory_sort_ratio FROM ( SELECT node_name , node_host , s.pmk_curr_collect_start_time , physical_memory , db_memory_usage , shared_buffer_size , blocks_read_delta AS blocks_read , blocks_hit_delta AS blocks_hit , work_memory_size , sorts_in_memory_delta AS sorts_in_memory , sorts_in_disk_delta AS sorts_in_disk FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id AND UPPER(node_name) = l_node_name ) ORDER BY node_name, stat_collect_time; END IF; -- end of l_node_name = 'ALL' END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_node_io_stat ( IN i_node_name text , IN i_start_pmk_time timestamp with time zone , IN i_end_pmk_time timestamp with time zone , OUT o_node_type char(1) , OUT o_node_name text , OUT o_node_host text , OUT o_stat_collect_time timestamp , OUT o_number_of_files int , OUT o_physical_reads bigint , OUT o_physical_writes bigint , OUT o_read_time bigint , OUT o_write_time bigint , OUT o_avg_read_per_sec numeric(20,2) , OUT o_avg_read_time numeric(20,3) , OUT o_avg_write_per_sec numeric(20,2) , OUT o_avg_write_time numeric(20,3) ) RETURNS SETOF record AS $$ DECLARE l_node_type char(1); l_node_name text; l_error_message text; BEGIN l_error_message := pmk.check_node_type(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_error_message := pmk.check_pmk_enabled(); IF l_error_message IS NOT NULL THEN pmk.put_line(l_error_message); RETURN; END IF; l_node_name := UPPER(i_node_name); IF l_node_name <> 'ALL' THEN l_node_type := 'D'; IF l_node_type IS NULL THEN l_error_message := 'ERROR:: Invalid node name ("' || i_node_name || '") provided during generation of node (MPPDB instance) I/O statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; END IF; -- Verifying the input start and end times pmk.check_start_end_dates(i_start_pmk_time, i_end_pmk_time, l_error_message); IF l_error_message IS NOT NULL THEN l_error_message := l_error_message || ' during generation of node (MPPDB instance) I/O statistics ...'; pmk.put_line(l_error_message); RETURN; END IF; IF l_node_name = 'ALL' THEN RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , number_of_files , physical_reads , physical_writes , read_time , write_time , ( physical_reads * 1000000.0 / NULLIF(read_time, 0) )::numeric(20,2) AS avg_read_per_sec , ( read_time * 1.0 / NULLIF(physical_reads, 0) )::numeric(20,3) AS avg_read_time , ( physical_writes * 1000000.0 / NULLIF(write_time, 0) )::numeric(20,2) AS avg_write_per_sec , ( write_time * 1.0 / NULLIF(physical_writes, 0) )::numeric(20,3) AS avg_write_time FROM ( SELECT 'D'::char(1) AS node_type , node_name , node_host , s.pmk_curr_collect_start_time , number_of_files , physical_reads_delta AS physical_reads , physical_writes_delta AS physical_writes , read_time_delta AS read_time , write_time_delta AS write_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id ) ORDER BY node_type, node_name, stat_collect_time; ELSE RETURN QUERY WITH snap AS ( SELECT snapshot_id , current_snapshot_time AS pmk_curr_collect_start_time FROM pmk.pmk_snapshot WHERE current_snapshot_time BETWEEN i_start_pmk_time AND i_end_pmk_time ) SELECT 'D'::char(1) AS node_type , node_name , node_host , pmk_curr_collect_start_time::timestamp AS stat_collect_time , number_of_files , physical_reads , physical_writes , read_time , write_time , ( physical_reads * 1000000.0 / NULLIF(read_time, 0) )::numeric(20,2) AS avg_read_per_sec , ( read_time * 1.0 / NULLIF(physical_reads, 0) )::numeric(20,3) AS avg_read_time , ( physical_writes * 1000000.0 / NULLIF(write_time, 0) )::numeric(20,2) AS avg_write_per_sec , ( write_time * 1.0 / NULLIF(physical_writes, 0) )::numeric(20,3) AS avg_write_time FROM ( SELECT node_name , node_host , pmk_curr_collect_start_time , number_of_files , physical_reads_delta AS physical_reads , physical_writes_delta AS physical_writes , read_time_delta AS read_time , write_time_delta AS write_time FROM pmk.pmk_snapshot_datanode_stat dns, snap s WHERE dns.snapshot_id = s.snapshot_id AND UPPER(node_name) = l_node_name ) ORDER BY node_name, stat_collect_time; END IF; -- end of l_node_name = 'ALL' END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_session_cpu_stat ( IN i_node_name text , IN i_top_n_sessions smallint , OUT o_node_name name , OUT o_db_name name , OUT o_user_name name , OUT o_client_hostname text , OUT o_session_start_time timestamp , OUT o_xact_start_time timestamp , OUT o_waiting boolean , OUT o_state text , OUT o_query text , OUT o_session_cpu_time bigint , OUT o_mppdb_cpu_time bigint , OUT o_mppdb_cpu_time_perc numeric(5, 2) , OUT o_avg_sql_exec_time numeric(15, 3) ) RETURNS SETOF RECORD AS $$ DECLARE l_node_query text; l_execute_query text; BEGIN FOR i IN ( SELECT node_name FROM DBE_PERF.node_name nl WHERE UPPER(nl.node_name) = COALESCE(NULLIF(UPPER(i_node_name), 'ALL'), UPPER(nl.node_name)) ) LOOP l_node_query := 'WITH sess_time_stat0 AS ( SELECT sessid, stat_name , (value/1000.0)::numeric AS stat_value -- converting to millisecond FROM gs_session_time WHERE stat_name IN ( ''CPU_TIME'', ''EXECUTION_TIME'') ) , sess_time_stat AS ( SELECT DISTINCT stso.sessid , (SELECT stsi.stat_value FROM sess_time_stat0 stsi WHERE stsi.sessid = stso.sessid AND stsi.stat_name = ''CPU_TIME'') AS session_cpu_time , (SELECT stsi.stat_value FROM sess_time_stat0 stsi WHERE stsi.sessid = stso.sessid AND stsi.stat_name = ''EXECUTION_TIME'') AS session_sql_time FROM sess_time_stat0 stso ) , mppdb_cpu_time AS ( SELECT (total_cpu()*10.0)::bigint AS mppdb_cpu_time -- converting to millisecond FROM DUAL ) , sess_cpu_stat AS ( SELECT ''' || i.node_name || '''::name AS node_name , a.datname::name AS db_name , a.usename::name AS user_name , a.client_hostname , date_trunc(''second'', a.backend_start) ::timestamp AS session_start_time , date_trunc(''second'', a.xact_start) ::timestamp AS xact_start_time , a.waiting , a.state, a.query , ROUND(st.session_cpu_time)::bigint AS session_cpu_time , m.mppdb_cpu_time , ( (st.session_cpu_time * 100.0) / NULLIF(m.mppdb_cpu_time, 0) )::numeric(5, 2) AS mppdb_cpu_time_perc , st.sessid , st.session_sql_time FROM pg_stat_activity a , sess_time_stat st , mppdb_cpu_time m WHERE a.state IN (''active'', ''fastpath function call'', ''retrying'') AND a.pid = sessionid2pid(st.sessid::cstring) ORDER BY st.session_cpu_time DESC , mppdb_cpu_time_perc DESC LIMIT ' || i_top_n_sessions || ' ) SELECT scs.node_name , scs.db_name , scs.user_name , scs.client_hostname , scs.session_start_time , scs.xact_start_time , scs.waiting , scs.state , scs.query , scs.session_cpu_time , scs.mppdb_cpu_time , scs.mppdb_cpu_time_perc , ( scs.session_sql_time / NULLIF(ss.value, 0) )::numeric(15, 3) AS avg_sql_exec_time FROM sess_cpu_stat scs , gs_session_stat ss WHERE ss.sessid = scs.sessid AND ss.statname = ''n_sql'''; RETURN QUERY EXECUTE l_node_query; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_session_memory_stat ( IN i_node_name text , IN i_top_n_sessions smallint , OUT o_node_name name , OUT o_db_name name , OUT o_user_name name , OUT o_client_hostname text , OUT o_session_start_time timestamp , OUT o_xact_start_time timestamp , OUT o_waiting boolean , OUT o_state text , OUT o_query text , OUT o_session_total_memory_size bigint , OUT o_session_used_memory_size bigint , OUT o_buffer_hits bigint , OUT o_disk_reads bigint , OUT o_session_buffer_hit_ratio numeric(5, 2) , OUT o_sorts_in_memory bigint , OUT o_sorts_in_disk bigint , OUT o_session_memory_sort_ratio numeric(5, 2) , OUT o_avg_sql_exec_time numeric(15, 3) ) RETURNS SETOF record AS $$ DECLARE l_node_query text; l_execute_query text; BEGIN FOR i IN ( SELECT node_name FROM DBE_PERF.node_name nl WHERE UPPER(nl.node_name) = COALESCE(NULLIF(UPPER(i_node_name), 'ALL'), UPPER(nl.node_name)) ) LOOP l_node_query := 'WITH sess_memory_usage AS ( SELECT sessid , SUM(totalsize)::bigint AS totalsize , SUM(usedsize)::bigint AS usedsize FROM gs_session_memory_detail GROUP BY sessid ) , sess_stat0 AS ( SELECT ss.sessid , ss.statname AS statname , ss.value AS statvalue FROM sess_memory_usage st, gs_session_stat ss WHERE ss.sessid = st.sessid AND ss.statname IN ( ''n_blocks_fetched'' , ''n_shared_blocks_read'' , ''n_local_blocks_read'' , ''n_sort_in_disk'' , ''n_sort_in_memory'' , ''n_sql'' ) ) , sess_stat1 AS ( SELECT oss.sessid , oss.totalsize , oss.usedsize , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_blocks_fetched'') AS total_reads , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_shared_blocks_read'') AS disk_to_shared_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_local_blocks_read'') AS disk_to_local_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_sort_in_disk'') AS sorts_in_disk , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_sort_in_memory'') AS sorts_in_memory , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = oss.sessid AND iss.statname = ''n_sql'') AS sql_count FROM sess_memory_usage oss ) , sess_stat AS ( SELECT ss.sessid , ss.totalsize , ss.usedsize , ss.total_reads , (ss.disk_to_shared_buffer + ss.disk_to_local_buffer) AS disk_reads , (ss.total_reads - (ss.disk_to_shared_buffer + ss.disk_to_local_buffer)) AS buffer_hits , sorts_in_disk , sorts_in_memory , sql_count FROM sess_stat1 ss ) , sess_memory_stat AS ( SELECT ''' || i.node_name || '''::name AS node_name , a.datname::name AS db_name , a.usename::name AS user_name , a.client_hostname , date_trunc(''second'', a.backend_start) ::timestamp AS session_start_time , date_trunc(''second'', a.xact_start) ::timestamp AS xact_start_time , a.waiting , a.state, a.query , st.totalsize AS session_total_memory_size , st.usedsize AS session_used_memory_size , st.buffer_hits, st.disk_reads , ( (st.buffer_hits * 100.0) / NULLIF(st.total_reads, 0) )::numeric(5, 2) AS session_buffer_hit_ratio , st.sorts_in_memory, st.sorts_in_disk , ( (st.sorts_in_memory * 100.0) / NULLIF(st.sorts_in_memory + st.sorts_in_disk, 0) )::numeric(5, 2) AS session_memory_sort_ratio , st.sessid , st.sql_count FROM pg_stat_activity a , sess_stat st WHERE a.state IN (''active'', ''fastpath function call'', ''retrying'') AND a.pid = sessionid2pid(st.sessid::cstring) ORDER BY st.totalsize DESC , st.usedsize DESC LIMIT ' || i_top_n_sessions || ' ) SELECT sms.node_name , sms.db_name , sms.user_name , sms.client_hostname , sms.session_start_time , sms.xact_start_time , sms.waiting , sms.state , sms.query , sms.session_total_memory_size , sms.session_used_memory_size , sms.buffer_hits , sms.disk_reads , sms.session_buffer_hit_ratio , sms.sorts_in_memory , sms.sorts_in_disk , sms.session_memory_sort_ratio , ( ss.value / (NULLIF(sms.sql_count, 0) * 1000.0) )::numeric(15, 3) AS avg_sql_exec_time FROM sess_memory_stat sms , gs_session_time ss WHERE ss.sessid = sms.sessid AND ss.stat_name = ''EXECUTION_TIME'''; RETURN QUERY EXECUTE l_node_query; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.get_session_io_stat ( IN i_node_name text , IN i_top_n_sessions smallint , OUT o_node_name name , OUT o_db_name name , OUT o_user_name name , OUT o_client_hostname text , OUT o_session_start_time timestamp , OUT o_xact_start_time timestamp , OUT o_waiting boolean , OUT o_state text , OUT o_query text , OUT o_disk_reads bigint , OUT o_read_time bigint , OUT o_avg_read_per_sec numeric(20, 2) , OUT o_avg_read_time numeric(20, 3) , OUT o_avg_sql_exec_time numeric(15, 3) ) RETURNS SETOF record AS $$ DECLARE l_node_query text; l_execute_query text; BEGIN FOR i IN ( SELECT node_name FROM DBE_PERF.node_name nl WHERE UPPER(nl.node_name) = COALESCE(NULLIF(UPPER(i_node_name), 'ALL'), UPPER(nl.node_name)) ) LOOP l_node_query := 'WITH sess_stat0 AS ( SELECT ss.sessid , ss.statname AS statname , ss.value AS statvalue FROM gs_session_stat ss WHERE ss.statname IN ( ''n_shared_blocks_read'' , ''n_local_blocks_read'' , ''n_blocks_read_time'' , ''n_sql'' ) ) , sess_stat1 AS ( SELECT DISTINCT ss.sessid , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_shared_blocks_read'') AS disk_to_shared_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_local_blocks_read'') AS disk_to_local_buffer , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_blocks_read_time'') AS read_time , (SELECT statvalue FROM sess_stat0 iss WHERE iss.sessid = ss.sessid AND iss.statname = ''n_sql'') AS sql_count FROM sess_stat0 ss ) , sess_stat AS ( SELECT ss.sessid , (ss.disk_to_shared_buffer + ss.disk_to_local_buffer) AS disk_reads , ss.read_time , ss.sql_count FROM sess_stat1 ss ) , sess_io_stat AS ( SELECT ''' || i.node_name || '''::name AS node_name , a.datname::name AS db_name , a.usename::name AS user_name , a.client_hostname , date_trunc(''second'', a.backend_start)::timestamp AS session_start_time , date_trunc(''second'', a.xact_start)::timestamp AS xact_start_time , a.waiting , a.state, a.query , st.disk_reads , st.read_time , ( st.disk_reads * 1000000.0 / NULLIF(st.read_time, 0) )::numeric(20,2) AS avg_read_per_sec , ( st.read_time * 1.0 / NULLIF(st.disk_reads, 0) )::numeric(20,3) AS avg_read_time , st.sessid , st.sql_count FROM pg_stat_activity a , sess_stat st WHERE a.state IN (''active'', ''fastpath function call'', ''retrying'') AND a.pid = sessionid2pid(st.sessid::cstring) ORDER BY st.disk_reads DESC , st.read_time DESC LIMIT ' || i_top_n_sessions || ' ) SELECT sios.node_name , sios.db_name , sios.user_name , sios.client_hostname , sios.session_start_time , sios.xact_start_time , sios.waiting , sios.state , sios.query , sios.disk_reads , sios.read_time , sios.avg_read_per_sec , sios.avg_read_time , ( ss.value / (NULLIF(sios.sql_count, 0) * 1000.0) )::numeric(15, 3) AS avg_sql_exec_time FROM sess_io_stat sios , gs_session_time ss WHERE ss.sessid = sios.sessid AND ss.stat_name = ''EXECUTION_TIME'''; RETURN QUERY EXECUTE l_node_query; END LOOP; END; $$ LANGUAGE plpgsql;""", """CREATE OR REPLACE FUNCTION pmk.insertBaseValue() RETURNS TEXT AS $$ DECLARE l_configuration_count_value INT; l_meta_data_count_value INT; l_version_string varchar(128); l_result varchar(128); BEGIN SELECT count(config_param_name) INTO l_configuration_count_value FROM pmk.pmk_configuration WHERE config_param_name IN ('Collection Count', 'Enable PMK'); IF l_configuration_count_value != 2 THEN DELETE FROM pmk.pmk_configuration; INSERT INTO pmk.pmk_configuration(config_param_name, config_value) VALUES ('Collection Count', '9'), ('Enable PMK', 'TRUE'); END IF; SELECT count(pmk_version) INTO l_meta_data_count_value FROM pmk.pmk_meta_data; SELECT substring(version() from '[a-zA-Z0-9 ]* [0-9]+\.[0-9]+\.[0-9]+') INTO l_version_string; l_result := l_version_string; IF l_meta_data_count_value < 1 THEN INSERT INTO pmk.pmk_meta_data (pmk_version, last_snapshot_id, last_snapshot_collect_time) VALUES (l_result, NULL, NULL); END IF; RETURN NULL; END; $$ LANGUAGE plpgsql;""", """ SELECT pmk.insertBaseValue();""", """ analyze pmk.pmk_configuration;""", """ analyze pmk.pmk_snapshot;""", """ analyze pmk.pmk_snapshot_datanode_stat;""", """ analyze pmk.pmk_meta_data;"""] TEST_PMK = """ DECLARE pmk_oid oid; class_count int; proc_count int; BEGIN --if pmk schema not exist, it will raise an error. select oid from pg_namespace where nspname='pmk' into pmk_oid; select count(*) from pg_class where relnamespace=pmk_oid into class_count; select count(*) from pg_proc where pronamespace=pmk_oid into proc_count; raise exception 'pmk schema exist. class count is %, proc count is %.', class_count , proc_count; END; """ dnquerySql = "" dnquerySql += "SELECT node_name, COALESCE(pns.physical_reads, 0), " \ "COALESCE(pns.physical_writes, 0), " dnquerySql += "COALESCE(pns.read_time, 0), COALESCE(pns.write_time, 0), " \ "COALESCE(pns.xact_commit, 0), " dnquerySql += "COALESCE(pns.xact_rollback, 0), " \ "COALESCE(pns.checkpoints_timed, 0)," \ " COALESCE(pns.checkpoints_req, 0), " dnquerySql += "COALESCE(pns.checkpoint_write_time, 0), " \ "COALESCE(pns.blocks_read, 0), " \ "COALESCE(pns.blocks_hit, 0), " dnquerySql += "COALESCE(pns.busy_time, 0), " \ "COALESCE(pns.idle_time, 0), " \ "COALESCE(pns.iowait_time, 0), " dnquerySql += "COALESCE(pns.db_cpu_time, 0) FROM " \ "pmk.pmk_snapshot_datanode_stat pns " dnquerySql += "WHERE pns.snapshot_id = %s" totalSql = { "getMetaData": "SELECT l_pmk_curr_collect_start_time, " "l_pmk_last_collect_start_time, l_last_snapshot_id " "FROM pmk.get_meta_data();", "deleteSnapShots": "SELECT * FROM pmk.delete_expired_snapshots();", "getRedistributeRate": "set statement_timeout = 20000;select name,value " "from public.redis_progress where name in " "('Bytes Done', 'Bytes Left');", "getNodeStatDN": dnquerySql, "checkTransactionReadonly": "show default_transaction_read_only;" }
40.836045
94
0.517604
26,391
230,887
4.097836
0.017506
0.019233
0.0464
0.021961
0.983929
0.983273
0.982755
0.982274
0.982274
0.98146
0
0.012697
0.42966
230,887
5,653
95
40.843269
0.808557
0.002867
0
0.834022
0
0
0.978396
0.147476
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
ef7271a72ac69eb71633eb0bddc276089f79bdb5
5,080
py
Python
PyCommon/modules/Optimization/test_csEQP.py
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
null
null
null
PyCommon/modules/Optimization/test_csEQP.py
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
null
null
null
PyCommon/modules/Optimization/test_csEQP.py
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
1
2021-07-26T15:13:55.000Z
2021-07-26T15:13:55.000Z
import psyco; psyco.full() from fltk import * import numpy as np import numpy.linalg as npl import sys sys.path.append('..') import Optimization.csEQP as ceq import Math.mmMath as mm def test_basic(): # minimize : f(x,y) = x^2 + y^2 + z^2 # subject to : x + y + z = 1 p = ceq.EQP(3, 1) p.addSquaredTerm(1, (0,), (1., 0.)) p.addSquaredTerm(1, (1,), (1., 0.)) p.addSquaredTerm(1, (2,), (1., 0.)) p.addConstraint((0,1,2), (1,1,1,-1)) r = p.solve() print r def test_constraint_num(): # minimize : f(x,y) = x^2 + y^2 + z^2 # subject to : x + y = 1 # y + z = 1 # x + z = 1 p = ceq.EQP(3, 3) p.addSquaredTerm(1, (0,), (1., 0.)) p.addSquaredTerm(1, (1,), (1., 0.)) p.addSquaredTerm(1, (2,), (1., 0.)) p.addConstraint((0,1), (1,1,-1)) p.addConstraint((1,2), (1,1,-1)) p.addConstraint((0,2), (1,1,-1)) r = p.solve() print r # subject to : x + y = 1 # y + z = 1 p.clearConstraints() p.addConstraint((0,1), (1,1,-1)) p.addConstraint((1,2), (1,1,-1)) p.addConstraint((0,2), (0,0,-1)) r = p.solve() print r # subject to : x + y = 1 # y + z = 1 p.clearConstraints() p.setConstraintNum(2) p.addSquaredTerm(1, (0,), (1., 0.)) p.addSquaredTerm(1, (1,), (1., 0.)) p.addSquaredTerm(1, (2,), (1., 0.)) p.addConstraint((0,1), (1,1,-1)) p.addConstraint((1,2), (1,1,-1)) r = p.solve() print r def test_constraint_rank(): # subject to : x + y = 1 # x + 2y = 0 # x + 3y = 0 p = ceq.EQP(3, 3) p.addSquaredTerm(1, (0,), (1., 0.)) p.addSquaredTerm(1, (1,), (1., 0.)) p.addSquaredTerm(1, (2,), (1., 0.)) p.addConstraint2((0,1), (1,1), -1) p.addConstraint2((0,1), (1,2), 0) p.addConstraint2((0,1), (1,3), 0) r = p.solve() print r p.clearConstraints() p.addConstraint2((0,1), (1,3), 0) p.addConstraint2((0,1), (1,1), -1) p.addConstraint2((0,1), (1,2), 0) r = p.solve() print r A = np.array([[1,1], [1,2], [1,3]]) print mm.matrixrank(A) def test_EQP3(): p = ceq.EQP(6, 6) p.addSquaredTerm(1, (0,), (1., 0.)) p.addSquaredTerm(1, (1,), (1., 0.)) p.addSquaredTerm(1, (2,), (1., 9.7371072735721125)) p.addSquaredTerm(1, (3,), (1., 0.)) p.addSquaredTerm(1, (4,), (1., 0.)) p.addSquaredTerm(1, (5,), (1., -9.7371072735721196)) p.addConstraint2((0,1,2,3,4,5), [ 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00] ,0.0) p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00] ,0.0) p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00] ,0.0) p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 5.0000e-01], -14.142135623730951) p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 0.0000e+00 , 1.3450e-05 , 0.0000e+00 , 0.0000e+00 , -2.5080e-04] ,0.0) p.addConstraint2((0,1,2,3,4,5), [ -1.0000e+00 , -1.3450e-05 , 0.0000e+00 , -5.0000e-01 , 2.5080e-04 , 0.0000e+00], 0.0) r = p.solve() print r p.clearConstraints() p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 5.0000e-01], -14.142135623730951) p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 0.0000e+00 , 1.3450e-05 , 0.0000e+00 , 0.0000e+00 , -2.5080e-04] ,0.0) p.addConstraint2((0,1,2,3,4,5), [ -1.0000e+00 , -1.3450e-05 , 0.0000e+00 , -5.0000e-01 , 2.5080e-04 , 0.0000e+00], 0.0) p.addConstraint2((0,1,2,3,4,5), [ 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00] ,0.0) p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00] ,0.0) p.addConstraint2((0,1,2,3,4,5), [ 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00] ,0.0) r = p.solve() print r A = np.array([[ 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 5.0000e-01], [ 0.0000e+00 , 0.0000e+00 , 1.3450e-05 , 0.0000e+00 , 0.0000e+00 , -2.5080e-04] , [ -1.0000e+00 , -1.3450e-05 , 0.0000e+00 , -5.0000e-01 , 2.5080e-04 , 0.0000e+00], [ 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00] , [ 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00] , [ 0.0000e+00 , 0.0000e+00 , 1.0000e+00 , 0.0000e+00 , 0.0000e+00 , 1.0000e+00]]) print mm.matrixrank(A) print npl.det(A) pass #test_basic() #test_constraint_num() test_constraint_rank() #test_EQP3()
38.484848
143
0.49626
876
5,080
2.864155
0.078767
0.251096
0.210442
0.243523
0.851335
0.831407
0.826624
0.818254
0.81666
0.799123
0
0.306027
0.281496
5,080
132
144
38.484848
0.38137
0.088386
0
0.645833
0
0
0.000446
0
0
0
0
0
0
0
null
null
0.010417
0.072917
null
null
0.114583
0
0
0
null
1
1
1
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
12
efb65f73851b7bfbaf9b5fd1b4e2de02617d769e
414
py
Python
VSCode_work/chapter3/chapter3_3_4.py
syncccc/Python-Crash-Course
51fe429dd606583a790f3c1603bb3439382c09e0
[ "MIT" ]
1
2021-08-15T15:58:21.000Z
2021-08-15T15:58:21.000Z
VSCode_work/chapter3/chapter3_3_4.py
syncccc/Python-Crash-Course
51fe429dd606583a790f3c1603bb3439382c09e0
[ "MIT" ]
null
null
null
VSCode_work/chapter3/chapter3_3_4.py
syncccc/Python-Crash-Course
51fe429dd606583a790f3c1603bb3439382c09e0
[ "MIT" ]
null
null
null
# 创建列表 invited_persons = ['dad','mother','sister','cui ping'] # 打印邀请消息 print("Dear " + invited_persons[0].title() + "," + " can you have dinner with me?") print("\nDear " + invited_persons[1].title() + "," + " can you have dinner with me?") print("\nDear " + invited_persons[2].title() + "," + " can you have dinner with me?") print("\nDear " + invited_persons[3].title() + "," + " can you have dinner with me?")
46
85
0.623188
57
414
4.438596
0.403509
0.27668
0.173913
0.237154
0.711462
0.711462
0.711462
0.604743
0.604743
0.604743
0
0.011461
0.157005
414
8
86
51.75
0.713467
0.02657
0
0
0
0
0.4225
0
0
0
0
0
0
1
0
false
0
0
0
0
0.8
0
0
0
null
1
0
1
0
1
1
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
7
efdf4c077d581272a12b253cf324c168047b6575
281,885
py
Python
vaspvis/standard.py
songsr/vaspvis
e59c1ae88621999c52bf2f7f2f53b13340397081
[ "MIT" ]
1
2021-01-27T18:22:44.000Z
2021-01-27T18:22:44.000Z
vaspvis/standard.py
songsr/vaspvis
e59c1ae88621999c52bf2f7f2f53b13340397081
[ "MIT" ]
null
null
null
vaspvis/standard.py
songsr/vaspvis
e59c1ae88621999c52bf2f7f2f53b13340397081
[ "MIT" ]
null
null
null
""" This module contains standardized plots as well as more complex plots, such as band structures and density of states put together, and spin projected plots. """ from vaspvis.band import Band from vaspvis.dos import Dos import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator import time def _figure_setup(ax, fontsize=6, ylim=[-6, 6]): ax.set_ylabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax.set_ylim(ylim[0], ylim[1]) ax.tick_params(labelsize=fontsize, length=2.5) ax.tick_params(axis='x', length=0) def _figure_setup_dos(ax, fontsize=6, energyaxis='y'): ax.tick_params(labelsize=fontsize, length=2.5) if energyaxis == 'y': ax.set_ylabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax.set_xlabel('Density of States', fontsize=fontsize) if energyaxis == 'x': ax.set_xlabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax.set_ylabel('Density of States', fontsize=fontsize) def _figure_setup_band_dos(ax, fontsize, ylim): ax1 = ax[0] ax2 = ax[1] ax2.tick_params(axis='y', length=0) ax2.tick_params(axis='x', length=0, labelsize=fontsize) ax2.set_xlabel('Density of States', fontsize=fontsize) ax1.tick_params(labelsize=fontsize) ax1.tick_params(axis='x', length=0) ax1.set_ylabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax1.set_xlabel('Wave Vector', fontsize=fontsize) ax1.set_ylim(ylim[0], ylim[1]) return ax1, ax2 def _figure_setup_band_dos_spin_polarized(ax, fontsize, ylim): ax_band_up = ax[0, 0] ax_dos_up = ax[0, 1] ax_band_down = ax[1, 0] ax_dos_down = ax[1, 1] ax_dos_up.tick_params(axis='y', length=0) ax_dos_up.tick_params(axis='x', length=0, labelsize=fontsize, labelbottom=False) ax_band_up.tick_params(labelsize=fontsize) ax_band_up.tick_params(axis='x', length=0, labelbottom=False) ax_band_up.set_ylabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax_band_up.set_ylim(ylim[0], ylim[1]) ax_dos_down.tick_params(axis='y', length=0) ax_dos_down.tick_params(axis='x', length=0, labelsize=fontsize) ax_dos_down.set_xlabel('Density of States', fontsize=fontsize) ax_band_down.tick_params(labelsize=fontsize) ax_band_down.tick_params(axis='x', length=0) ax_band_down.set_ylabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax_band_down.set_xlabel('Wave Vector', fontsize=fontsize) ax_band_down.set_ylim(ylim[0], ylim[1]) return ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def _figure_setup_layer_dos(ax, fontsize=6, energyaxis='y'): ax.tick_params(labelsize=fontsize) if energyaxis == 'y': ax.set_ylabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax.set_xlabel('Layers', fontsize=fontsize) if energyaxis == 'x': ax.set_xlabel('$E - E_{F}$ $(eV)$', fontsize=fontsize) ax.set_ylabel('Layers', fontsize=fontsize) def band_plain( folder, output='band_plain.png', spin='up', color='black', linewidth=1.25, linestyle='-', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, scale_factor=20, save=True, ): """ This function generates a plain band structure Parameters: folder (str): This is the folder that contains the VASP files output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') color (str): Color of the band structure lines linewidth (float): Line width of the band structure lines linestyle (str): Line style of the bands figsize (list / tuple): Desired size of the image in inches (width, height) erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_plain( ax=ax, color=color, linewidth=linewidth, linestyle=linestyle, erange=erange, scale_factor=scale_factor, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_spd( folder, output='band_spd.png', spin='up', scale_factor=6, orbitals='spd', display_order=None, color_dict=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a s, p, d projected band structure. Parameters: folder (str): This is the folder that contains the VASP files orbitals (str): String that contains the s, p, or d orbitals that to project onto. The default is 'spd', if the user only wanted to project onto the p, and d orbitals than 'pd' should be passed in output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_spd( ax=ax, scale_factor=scale_factor, orbitals=orbitals, erange=erange, display_order=display_order, color_dict=color_dict, legend=legend, linewidth=linewidth, band_color=band_color, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_atom_orbitals( folder, atom_orbital_dict, output='band_atom_orbitals.png', spin='up', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a projected band structure on specific [atom, orbital] pairs. Parameters: folder (str): This is the folder that contains the VASP files atom_orbital_dict (dict[int:list]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of the first atom and the s orbital of the second atom then the dictionary would be {0:[0,1,2,3], 1:[0]} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_atom_orbitals( ax=ax, atom_orbital_dict=atom_orbital_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_orbitals( folder, orbitals, output='band_orbital.png', spin='up', scale_factor=6, display_order=None, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a projected band structure on specific orbitals. Parameters: folder (str): This is the folder that contains the VASP files orbitals (list): List of orbitals to compare | 0 = s | 1 = py | 2 = pz | 3 = px | 4 = dxy | 5 = dyz | 6 = dz2 | 7 = dxz | 8 = dx2-y2 | 9 = fy3x2 | 10 = fxyz | 11 = fyz2 | 12 = fz3 | 13 = fxz2 | 14 = fzx3 | 15 = fx3 output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_orbitals( ax=ax, orbitals=orbitals, scale_factor=scale_factor, erange=erange, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_atoms( folder, atoms, output='band_atoms.png', spin='up', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a projected band structure on specific atoms in the POSCAR. Parameters: folder (str): This is the folder that contains the VASP files atoms (list): List of atoms to project onto. The indices should be zero indexed (first atom is 0) and the atoms are in the same order as they are in the POSCAR output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_atoms( ax=ax, atoms=atoms, scale_factor=scale_factor, color_list=color_list, display_order=display_order, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_atom_spd( folder, atom_spd_dict, output='band_atom_spd.png', spin='up', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a s, p, d projected band structure on specific atoms. Parameters: folder (str): This is the folder that contains the VASP files atom_spd_dict (dict[int:str]): A dictionary that contains the individual atoms and the orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals corresponding of the first atom and the p orbitals of the second atom then the dictionary would be {0:'spd', 1:'p'} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_atom_spd( ax=ax, atom_spd_dict=atom_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_elements( folder, elements, output='band_elements.png', spin='up', scale_factor=6, display_order=None, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a projected band structure on specific elements. Parameters: folder (str): This is the folder that contains the VASP files elements (list): List of elements to project onto. The list should countain the corresponding element symbols output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_elements( ax=ax, elements=elements, scale_factor=scale_factor, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_element_orbitals( folder, element_orbital_dict, output='band_element_orbital.png', spin='up', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a projected band structure on orbitals of specific elements. Parameters: folder (str): This is the folder that contains the VASP files element_orbital_dict (dict[str:list]): A dictionary that contains the individual elements and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of In and the s orbital of As for and InAs structure then the dictionary would be {'In':[0,1,2,3], 'As':[0]} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_element_orbitals( ax=ax, element_orbital_dict=element_orbital_dict, scale_factor=scale_factor, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_element_spd( folder, element_spd_dict, output='band_element_spd.png', spin='up', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a s, p, d projected band structure on specific elements. Parameters: folder (str): This is the folder that contains the VASP files element_spd_dict (dict[str:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of In and the p orbitals of As for an InAs structure then the dictionary would be {'In':'spd', 'As':'p'} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ band = Band( folder=folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band.plot_element_spd( ax=ax, element_spd_dict=element_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_plain_spin_polarized( folder, output='band_plain_sp.png', up_color='black', down_color='red', linewidth=1.25, up_linestyle='-', down_linestyle=':', figsize=(4, 3), erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates a plain spin polarized band structure. Parameters: folder (str): This is the folder that contains the VASP files output (str): File name of the resulting plot. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) fig = plt.figure(figsize=(figsize), dpi=400) ax = fig.add_subplot(111) _figure_setup(ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]]) band_up.plot_plain( ax=ax, color=up_color, linewidth=linewidth, linestyle=up_linestyle, erange=erange, ) band_down.plot_plain( ax=ax, color=down_color, linewidth=linewidth, linestyle=down_linestyle, erange=erange, ) legend_lines = [ plt.Line2D( [0], [0], color=up_color, linestyle=up_linestyle ), plt.Line2D( [0], [0], color=down_color, linestyle=down_linestyle ) ] legend_labels = ['$\\uparrow$', '$\\downarrow$'] ax.legend( legend_lines, legend_labels, ncol=1, loc='upper left', fontsize=fontsize, bbox_to_anchor=(1, 1), borderaxespad=0, frameon=False, handletextpad=0.1, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def band_spd_spin_polarized( folder, output='band_spd_sp.png', scale_factor=2, orbitals='spd', display_order=None, color_dict=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, fontsize=7, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.02, 0.98), figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, save=True, ): """ This function generates a spin polarized s, p, d projected band structure. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files orbitals (str): String that contains the s, p, or d orbitals that to project onto. The default is 'spd', if the user only wanted to project onto the p, and d orbitals than 'pd' should be passed in output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax1.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) ax2.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) band_up.plot_spd( ax=ax1, scale_factor=scale_factor, orbitals=orbitals, erange=erange, display_order=display_order, color_dict=color_dict, legend=legend, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) band_down.plot_spd( ax=ax2, scale_factor=scale_factor, orbitals=orbitals, erange=erange, display_order=display_order, color_dict=color_dict, legend=legend, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_atom_orbitals_spin_polarized( folder, atom_orbital_dict, output='band_atom_orbitals_sp.png', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, fontsize=7, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.02, 0.98), figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, save=True, ): """ This function generates an atom orbital spin polarized band structure. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files atom_orbital_dict (dict[int:list]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of the first atom and the s orbital of the second atom then the dictionary would be {0:[0,1,2,3], 1:[0]} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax1.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) ax2.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) band_up.plot_atom_orbitals( ax=ax1, atom_orbital_dict=atom_orbital_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_down.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) band_down.plot_atom_orbitals( ax=ax2, atom_orbital_dict=atom_orbital_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_up.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_orbitals_spin_polarized( folder, orbitals, output='band_orbitals_sp.png', scale_factor=6, display_order=None, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates an orbital spin polarized band structure. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files orbitals (list): List of orbitals to compare | 0 = s | 1 = py | 2 = pz | 3 = px | 4 = dxy | 5 = dyz | 6 = dz2 | 7 = dxz | 8 = dx2-y2 | 9 = fy3x2 | 10 = fxyz | 11 = fyz2 | 12 = fz3 | 13 = fxz2 | 14 = fzx3 | 15 = fx3 output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle="round", fc="white") ax1.annotate( '$\\uparrow$', xy=(0.02, 0.98), xycoords='axes fraction', va='top', ha='left', bbox=bbox, ) ax2.annotate( '$\\downarrow$', xy=(0.02, 0.98), xycoords='axes fraction', va='top', ha='left', bbox=bbox, ) band_up.plot_orbitals( ax=ax1, orbitals=orbitals, scale_factor=scale_factor, erange=erange, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=0.5, erange=erange, ) band_down.plot_orbitals( ax=ax2, orbitals=orbitals, scale_factor=scale_factor, erange=erange, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=0.5, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_atoms_spin_polarized( folder, atoms, output='band_atoms_sp.png', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates an atom spin polarized band structure. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files atoms (list): List of atoms to project onto. The indices should be zero indexed (first atom is 0) and the atoms are in the same order as they are in the POSCAR output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle="round", fc="white") ax1.annotate( '$\\uparrow$', xy=(0.02, 0.98), xycoords='axes fraction', va='top', ha='left', bbox=bbox, ) ax2.annotate( '$\\downarrow$', xy=(0.02, 0.98), xycoords='axes fraction', va='top', ha='left', bbox=bbox, ) band_up.plot_atoms( ax=ax1, atoms=atoms, scale_factor=scale_factor, color_list=color_list, display_order=display_order, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_up.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=0.5, erange=erange, ) band_down.plot_atoms( ax=ax2, atoms=atoms, scale_factor=scale_factor, color_list=color_list, display_order=display_order, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_down.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=0.5, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_atom_spd_spin_polarized( folder, atom_spd_dict, output='band_atoms_spd_sp.png', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, fontsize=7, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.02, 0.98), figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, save=True, ): """ This function generates a s, p, d spin polarized band structure on specific atoms. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files atom_spd_dict (dict[int:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of the first atom and the p orbitals of the second atom then the dictionary would be {0:'spd', 1:'p'} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax1.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) ax2.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) band_up.plot_atom_spd( ax=ax1, atom_spd_dict=atom_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_down.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) band_down.plot_atom_spd( ax=ax2, atom_spd_dict=atom_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_up.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_elements_spin_polarized( folder, elements, output='band_elements_sp.png', scale_factor=6, display_order=None, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, ): """ This function generates an element spin polarized band structure. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files elements (list): List of elements to project onto. The list should countain the corresponding element symbols output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle="round", fc="white") ax1.annotate( '$\\uparrow$', xy=(0.02, 0.98), xycoords='axes fraction', va='top', ha='left', bbox=bbox, ) ax2.annotate( '$\\downarrow$', xy=(0.02, 0.98), xycoords='axes fraction', va='top', ha='left', bbox=bbox, ) band_up.plot_elements( ax=ax1, elements=elements, scale_factor=scale_factor, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_up.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=0.5, erange=erange, ) band_down.plot_elements( ax=ax2, elements=elements, scale_factor=scale_factor, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_down.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=0.5, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_element_orbital_spin_polarized( folder, element_orbital_dict, output='band_element_orbital_sp.png', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, fontsize=7, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.02, 0.98), figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, save=True, ): """ This function generates an element orbital spin polarized band structure. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files element_orbital_dict (dict[str:list]): A dictionary that contains the individual elements and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of In and the s orbital of As for and InAs structure then the dictionary would be {'In':[0,1,2,3], 'As':[0]} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax1.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) ax2.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) band_up.plot_element_orbitals( ax=ax1, element_orbital_dict=element_orbital_dict, scale_factor=scale_factor, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_down.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) band_down.plot_element_orbitals( ax=ax2, element_orbital_dict=element_orbital_dict, scale_factor=scale_factor, display_order=display_order, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_up.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_element_spd_spin_polarized( folder, element_spd_dict, output='band_elements_spd_sp.png', display_order=None, scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, fontsize=7, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.02, 0.98), figsize=(4, 3), erange=[-6, 6], stack='vertical', kpath=None, n=None, unfold=False, M=None, high_symm_points=None, save=True, ): """ This function generates a s, p, d spin polarized band structure on specific elements. This will plot two plots stacked on top or eachother or next to eachother. The top or left plot will project on the spin up bands and the bottom or right plot will project onto the spin down bands. Parameters: folder (str): This is the folder that contains the VASP files element_spd_dict (dict[str:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of In and the p orbitals of As for an InAs structure then the dictionary would be {'In':'spd', 'As':'p'} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot. display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location stack (str): Determines how the plots are stacked (vertical or horizontal) linewidth (float): Line width of the plain band structure plotted in the background. band_color (string): Color of the plain band structure. figsize (list / tuple): Desired size of the image in inches. (width, height) erange (list / tuple): Range of energy to show in the plot. [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. (fig, ax1, ax2) """ band_up = Band( folder=folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) if stack == 'vertical': fig = plt.figure(figsize=(figsize[0], 2 * figsize[1]), dpi=400) ax1 = fig.add_subplot(211) ax2 = fig.add_subplot(212) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) elif stack == 'horizontal': fig = plt.figure(figsize=(2 * figsize[0], figsize[1]), dpi=400) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) _figure_setup(ax=ax1, fontsize=fontsize, ylim=[erange[0], erange[1]]) _figure_setup(ax=ax2, fontsize=fontsize, ylim=[erange[0], erange[1]]) bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax1.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) ax2.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize, ) band_up.plot_element_spd( ax=ax1, element_spd_dict=element_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_down.plot_plain( ax=ax1, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) band_down.plot_element_spd( ax=ax2, element_spd_dict=element_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=legend, linewidth=linewidth, band_color=band_color, erange=erange, ) band_up.plot_plain( ax=ax2, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax1, ax2 # ============================================================= # -------------------- Density of States ---------------------- # ============================================================= def dos_plain( folder, output='dos_plain.png', linewidth=1.5, fill=True, alpha=0.3, sigma=0.05, energyaxis='x', color='black', figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the total density of states. Parameters: folder (str): This is the folder that contains the VASP files output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color (list): Color of plot and fill. spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_plain( ax=ax, linewidth=linewidth, fill=fill, alpha=alpha, sigma=sigma, energyaxis=energyaxis, color=color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_ldos( folder, layers, output='dos_ldos.png', linewidth=1.5, fill=True, alpha=0.3, sigma=0.05, energyaxis='x', color='black', figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the local density of states for atomic layers. Useful for comparing to STS measurments. Parameters: folder (str): This is the folder that contains the VASP files layers (list): List of atomic layers to include in the ldos plot. 0 = first layer output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color (list): Color of plot and fill. spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_ldos( ax=ax, layers=layers, linewidth=linewidth, fill=fill, alpha=alpha, sigma=sigma, energyaxis=energyaxis, color=color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_spd( folder, output='dos_spd.png', orbitals='spd', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_dict=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots an s, p, d projected density of states. Parameters: folder (str): This is the folder that contains the VASP files orbitals (str): String that contains the s, p, or d orbitals that to project onto. The default is 'spd', if the user only wanted to project onto the p, and d orbitals than 'pd' should be passed in output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_spd( ax=ax, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_dict=color_dict, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_atom_orbitals( folder, atom_orbital_dict, output='dos_atom_orbitals.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the orbital projected density of states on specific atoms. Parameters: folder (str): This is the folder that contains the VASP files atom_orbital_dict (dict[int:list]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of the first atom and the s orbital of the second atom then the dictionary would be {0:[0,1,2,3], 1:[0]} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_atom_orbitals( ax=ax, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_orbitals( folder, orbitals, output='dos_orbitals.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the orbital projected density of states. Parameters: folder (str): This is the folder that contains the VASP files orbitals (list): List of orbitals to compare | 0 = s | 1 = py | 2 = pz | 3 = px | 4 = dxy | 5 = dyz | 6 = dz2 | 7 = dxz | 8 = dx2-y2 | 9 = fy3x2 | 10 = fxyz | 11 = fyz2 | 12 = fz3 | 13 = fxz2 | 14 = fzx3 | 15 = fx3 output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_orbitals( ax=ax, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_atoms( folder, atoms, output='dos_atoms.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the atom projected density of states. Parameters: folder (str): This is the folder that contains the VASP files atoms (list): List of atoms to project onto. The indices should be zero indexed (first atom is 0) and the atoms are in the same order as they are in the POSCAR output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_atoms( ax=ax, atoms=atoms, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_atom_spd( folder, atom_spd_dict, output='dos_atom_spd.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the atom projected density of states of the s, p, and d orbitals. Parameters: folder (str): This is the folder that contains the VASP files atom_spd_dict (dict[int:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of the first atom and the p orbitals of the second atom then the dictionary would be {0:'spd', 1:'p'} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_atom_spd( ax=ax, atom_spd_dict=atom_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_elements( folder, elements, output='dos_elements.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the element projected density of states. Parameters: folder (str): This is the folder that contains the VASP files elements (list): List of elements to project onto. The list should countain the corresponding element symbols output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_elements( ax=ax, elements=elements, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_element_spd( folder, element_spd_dict, output='dos_element_spd.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the element projected density of states of the s, p, and d orbitals. Parameters: folder (str): This is the folder that contains the VASP files element_spd_dict (dict[str:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of In and the p orbitals of As for an InAs structure then the dictionary would be {'In':'spd', 'As':'p'} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_element_spd( ax=ax, element_spd_dict=element_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_element_orbitals( folder, element_orbital_dict, output='dos_element_orbitals.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], spin='up', combination_method='add', fontsize=7, save=True, ): """ This function plots the element projected density of states on specific orbitals. Parameters: folder (str): This is the folder that contains the VASP files element_orbital_dict (dict[str:list]): A dictionary that contains the individual elements and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of In and the s orbital of As for and InAs structure then the dictionary would be {'In':[0,1,2,3], 'As':[0]} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos = Dos(folder=folder, spin=spin, combination_method=combination_method) fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos.plot_element_orbitals( ax=ax, element_orbital_dict=element_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_plain_spin_polarized( folder, output='dos_plain_sp.png', linewidth=1.5, fill=True, alpha=0.3, sigma=0.05, energyaxis='x', color='black', figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots the spin polarized total density of states. Parameters: folder (str): This is the folder that contains the VASP files output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color (str): Color of plot and fill. figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_plain( ax=ax, linewidth=linewidth, fill=fill, alpha=alpha, sigma=sigma, energyaxis=energyaxis, color=color, erange=erange, ) dos_down.plot_plain( ax=ax, linewidth=linewidth, fill=fill, alpha=alpha, sigma=sigma, energyaxis=energyaxis, color=color, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_spd_spin_polarized( folder, output='dos_spd_sp.png', orbitals='spd', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_dict=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized s, p, d projected density of states. Parameters: folder (str): This is the folder that contains the VASP files orbitals (str): String that contains the s, p, or d orbitals that to project onto. The default is 'spd', if the user only wanted to project onto the p, and d orbitals than 'pd' should be passed in output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_spd( ax=ax, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_dict=color_dict, legend=legend, total=total, erange=erange, ) dos_down.plot_spd( ax=ax, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_dict=color_dict, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_atom_orbitals_spin_polarized( folder, atom_orbital_dict, output='dos_atom_orbitals_sp.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='y', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized orbital projected density of states on specific atoms. Parameters: folder (str): This is the folder that contains the VASP files atom_orbital_dict (dict[int:list]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of the first atom and the s orbital of the second atom then the dictionary would be {0:[0,1,2,3], 1:[0]} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_atom_orbitals( ax=ax, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_atom_orbitals( ax=ax, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_orbitals_spin_polarized( folder, orbitals, output='dos_orbitals_sp.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='y', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized orbital projected density of states. Parameters: folder (str): This is the folder that contains the VASP files orbitals (list): List of orbitals to compare | 0 = s | 1 = py | 2 = pz | 3 = px | 4 = dxy | 5 = dyz | 6 = dz2 | 7 = dxz | 8 = dx2-y2 | 9 = fy3x2 | 10 = fxyz | 11 = fyz2 | 12 = fz3 | 13 = fxz2 | 14 = fzx3 | 15 = fx3 output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_orbitals( ax=ax, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_orbitals( ax=ax, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_atoms_spin_polarized( folder, atoms, output='dos_atoms_sp.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='y', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized atom projected density of states. Parameters: folder (str): This is the folder that contains the VASP files atoms (list): List of atoms to project onto. The indices should be zero indexed (first atom is 0) and the atoms are in the same order as they are in the POSCAR output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_atoms( ax=ax, atoms=atoms, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_atoms( ax=ax, atoms=atoms, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_atom_spd_spin_polarized( folder, atom_spd_dict, output='dos_atom_spd_sp.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized atom projected density of states of the s, p, and d orbitals. Parameters: folder (str): This is the folder that contains the VASP files atom_spd_dict (dict[int:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of the first atom and the p orbitals of the second atom then the dictionary would be {0:'spd', 1:'p'} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_atom_spd( ax=ax, atom_spd_dict=atom_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_atom_spd( ax=ax, atom_spd_dict=atom_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_elements_spin_polarized( folder, elements, output='dos_elements_sp.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='y', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized element projected density of states. Parameters: folder (str): This is the folder that contains the VASP files elements (list): List of elements to project onto. The list should countain the corresponding element symbols output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_elements( ax=ax, elements=elements, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_elements( ax=ax, elements=elements, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_element_spd_spin_polarized( folder, element_spd_dict, output='dos_element_spd_sp.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='x', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized element projected density of states of the s, p, and d orbitals. Parameters: folder (str): This is the folder that contains the VASP files element_spd_dict (dict[str:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of In and the p orbitals of As for an InAs structure then the dictionary would be {'In':'spd', 'As':'p'} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_element_spd( ax=ax, element_spd_dict=element_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_element_spd( ax=ax, element_spd_dict=element_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax def dos_element_orbitals_spin_polarized( folder, element_orbital_dict, output='dos_element_orbitals_sp.png', fill=True, alpha=0.3, linewidth=1.5, sigma=0.05, energyaxis='y', color_list=None, legend=True, total=True, figsize=(4, 3), erange=[-6, 6], fontsize=7, save=True, ): """ This function plots a spin polarized element projected density of states on specific orbitals. Parameters: folder (str): This is the folder that contains the VASP files element_orbital_dict (dict[str:list]): A dictionary that contains the individual elements and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of In and the s orbital of As for and InAs structure then the dictionary would be {'In':[0,1,2,3], 'As':[0]} output (str): File name of the resulting plot. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill linewidth (float): Linewidth of lines sigma (float): Standard deviation for gaussian filter energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines whether to draw the legend or not total (bool): Determines wheth to draw the total density of states or not spin (str): Which spin direction to parse ('up' or 'down') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ dos_up = Dos(folder=folder, spin='up') dos_down = Dos(folder=folder, spin='down') fig = plt.figure(figsize=figsize, dpi=400) ax = fig.add_subplot(111) _figure_setup_dos(ax=ax, fontsize=fontsize, energyaxis=energyaxis) dos_up.plot_element_orbitals( ax=ax, element_orbital_dict=element_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_element_orbitals( ax=ax, element_orbital_dict=element_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis=energyaxis, color_list=color_list, legend=False, total=total, erange=erange, ) plt.tight_layout(pad=0.2) if save: plt.savefig(output) else: return fig, ax # ============================================================= # ---------------------- Band-Dos Plots ----------------------- # ============================================================= def band_dos_plain( band_folder, dos_folder, output='band_dos_plain.png', spin='up', color='black', linewidth=1.25, linestyle='-', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a plain band structure and density of states next to eachother. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure calculation dos_folder (str): This is the folder that contains the VASP files for the density of states calculation output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') color (str): Color of the band structure lines linewidth (float): Line width of the band structure lines linestyle (str): Line style of the bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations. This number should be known by the user, as it was used to generate the KPOINTS file. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_plain( ax=ax1, color=color, linewidth=linewidth, linestyle=linestyle, ) dos.plot_plain( ax=ax2, linewidth=linewidth, fill=fill, alpha=alpha, sigma=sigma, energyaxis='y', color=color, erange=erange, ) fig.canvas.draw() labels = ax2.get_xticklabels() labels[0] = '' ax2.set_xticklabels(labels) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_spd( band_folder, dos_folder, output='band_dos_spd.png', spin='up', scale_factor=6, orbitals='spd', color_dict=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a s, p, d projected band structure next to and s, p, d projected density of states. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states orbitals (str): String that contains the s, p, or d orbitals that to project onto. The default is 'spd', if the user only wanted to project onto the p, and d orbitals than 'pd' should be passed in output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_spd( ax=ax1, scale_factor=scale_factor, orbitals=orbitals, erange=erange, display_order=display_order, color_dict=color_dict, legend=False, linewidth=linewidth, band_color=band_color, ) dos.plot_spd( ax=ax2, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_dict=color_dict, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_atom_orbitals( band_folder, dos_folder, atom_orbital_dict, output='band_dos_atom_orbitals.png', spin='up', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function generates an [atom, orbital] projected band structure next to a projected density of states of the same [atom, orbitals] pairs. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states atom_orbital_dict (dict[int:list]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of the first atom and the s orbital of the second atom then the dictionary would be {0:[0,1,2,3], 1:[0]} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_atom_orbitals( ax=ax1, scale_factor=scale_factor, atom_orbital_dict=atom_orbital_dict, color_list=color_list, legend=False, erange=erange, display_order=display_order, linewidth=linewidth, band_color=band_color, ) dos.plot_atom_orbitals( ax=ax2, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_orbitals( band_folder, dos_folder, orbitals, output='band_dos_orbitals.png', spin='up', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function generates a band structure projected on specific orbitals next to a projected density of states on the same orbitals. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states orbitals (list): List of orbitals to compare | 0 = s | 1 = py | 2 = pz | 3 = px | 4 = dxy | 5 = dyz | 6 = dz2 | 7 = dxz | 8 = dx2-y2 | 9 = fy3x2 | 10 = fxyz | 11 = fyz2 | 12 = fz3 | 13 = fxz2 | 14 = fzx3 | 15 = fx3 output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_orbitals( ax=ax1, orbitals=orbitals, scale_factor=scale_factor, color_list=color_list, erange=erange, display_order=display_order, legend=False, linewidth=linewidth, band_color=band_color, ) dos.plot_orbitals( ax=ax2, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_atoms( band_folder, dos_folder, atoms, output='band_dos_atoms.png', spin='up', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function generates a projected band structure on specific atoms next to a projected density of states on the same atoms. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states atoms (list): List of atoms to project onto. The indices should be zero indexed (first atom is 0) and the atoms are in the same order as they are in the POSCAR output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_atoms( ax=ax1, atoms=atoms, scale_factor=scale_factor, color_list=color_list, erange=erange, display_order=display_order, legend=False, linewidth=linewidth, band_color=band_color, ) dos.plot_atoms( ax=ax2, atoms=atoms, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_atom_spd( band_folder, dos_folder, atom_spd_dict, output='band_dos_atom_spd.png', spin='up', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function generates a s, p, d projected band structure on specific atoms next to a projected density of states on the s, p, d orbitals for the same atoms. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states atom_spd_dict (dict[int:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of the first atom and the p orbitals of the second atom then the dictionary would be {0:'spd', 1:'p'} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_atom_spd( ax=ax1, atom_spd_dict=atom_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, erange=erange, ) dos.plot_atom_spd( ax=ax2, atom_spd_dict=atom_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_elements( band_folder, dos_folder, elements, output='band_dos_elements.png', spin='up', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function generates a projected band structure on specific elements next to a projected density of states on the same elements. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states elements (list): List of elements to project onto. The list should countain the corresponding element symbols output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_elements( ax=ax1, elements=elements, scale_factor=scale_factor, color_list=color_list, erange=erange, display_order=display_order, legend=False, linewidth=linewidth, band_color=band_color, ) dos.plot_elements( ax=ax2, elements=elements, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_element_spd( band_folder, dos_folder, element_spd_dict, output='band_dos_element_spd.png', spin='up', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function generates a s, p, d projected band structure on specific elements next to a projected density of states on the s, p, d orbitals for the same elements. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states element_spd_dict (dict[str:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of In and the p orbitals of As for an InAs structure then the dictionary would be {'In':'spd', 'As':'p'} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_element_spd( ax=ax1, element_spd_dict=element_spd_dict, display_order=display_order, scale_factor=scale_factor, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, erange=erange, ) dos.plot_element_spd( ax=ax2, element_spd_dict=element_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_element_orbitals( band_folder, dos_folder, element_orbital_dict, output='band_dos_element_orbitals.png', spin='up', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function generates a projected band structure on orbitals of specific elements next to a projected density of states on the same orbitals for the same elements. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states element_orbital_dict (dict[str:list]): A dictionary that contains the individual elements and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of In and the s orbital of As for and InAs structure then the dictionary would be {'In':[0,1,2,3], 'As':[0]} output (str): File name of the resulting plot. spin (str): Choose which spin direction to parse. ('up' or 'down') scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band = Band( folder=band_folder, spin=spin, projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos = Dos(folder=dos_folder, spin=spin) band.plot_element_orbitals( ax=ax1, scale_factor=scale_factor, element_orbital_dict=element_orbital_dict, display_order=display_order, erange=erange, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) dos.plot_element_orbitals( ax=ax2, element_orbital_dict=element_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_plain_spin_polarized( band_folder, dos_folder, output='band_dos_plain_sp.png', up_color='black', down_color='red', linewidth=1.25, up_linestyle='-', down_linestyle=':', figsize=(6, 3), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, unfold=False, M=None, high_symm_points=None, fontsize=7, save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a plain spin polarized band structure and density of states next to eachother. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure calculation dos_folder (str): This is the folder that contains the VASP files for the density of states calculation output (str): File name of the resulting plot. up_color (str): Color of the spin up band structure lines down_color (str): Color of the spin down band structure lines linewidth (float): Line width of the band structure lines up_linestyle (str): Line style of the spin up bands down_linestyle (str): Line style of the spin down bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations. This number should be known by the user, as it was used to generate the KPOINTS file. fontsize (float): Font size of the text in the figure. save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=1, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax1, ax2 = _figure_setup_band_dos( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=band_folder, spin='down', unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') band_up.plot_plain( ax=ax1, color=up_color, linewidth=linewidth, linestyle=up_linestyle, erange=erange, ) band_down.plot_plain( ax=ax1, color=down_color, linewidth=linewidth, linestyle=down_linestyle, erange=erange, ) dos_up.plot_plain( ax=ax2, linewidth=linewidth, fill=fill, alpha=alpha, sigma=sigma, energyaxis='y', color=up_color, erange=erange, ) dos_down.plot_plain( ax=ax2, linewidth=linewidth, fill=fill, alpha=alpha, sigma=sigma, energyaxis='y', color=down_color, erange=erange, ) fig.canvas.draw() nbins = len(ax2.get_xticklabels()) ax2.xaxis.set_major_locator(MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0) if save: plt.savefig(output) else: return fig, ax1, ax2 def band_dos_spd_spin_polarized( band_folder, dos_folder, output='band_dos_spd_sp.png', scale_factor=6, orbitals='spd', color_dict=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a spin polarized s, p, d projected band structure next to a spin polarized s, p, d projected density of states. The top figure highlights the spin up bands and the bottom figure highlights the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states orbitals (str): String that contains the s, p, or d orbitals that to project onto. The default is 'spd', if the user only wanted to project onto the p, and d orbitals than 'pd' should be passed in output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=band_folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_spd( ax=ax_band_up, scale_factor=scale_factor, orbitals=orbitals, color_dict=color_dict, legend=False, linewidth=linewidth, band_color=band_color, display_order=display_order, erange=erange, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) dos_up.plot_spd( ax=ax_dos_up, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_dict=color_dict, legend=legend, total=True, erange=erange, ) dos_down.plot_spd( ax=ax_dos_up, orbitals=orbitals, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_dict=color_dict, legend=False, total=True, erange=erange, ) band_down.plot_spd( ax=ax_band_down, scale_factor=scale_factor, orbitals=orbitals, color_dict=color_dict, legend=False, linewidth=linewidth, band_color=band_color, display_order=display_order, erange=erange, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) dos_down.plot_spd( ax=ax_dos_down, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_dict=color_dict, legend=legend, total=True, erange=erange, ) dos_up.plot_spd( ax=ax_dos_down, orbitals=orbitals, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_dict=color_dict, legend=False, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def band_dos_atom_orbitals_spin_polarized( band_folder, dos_folder, atom_orbital_dict, output='band_dos_atom_orbitals_sp.png', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, display_order=None, unfold=False, M=None, high_symm_points=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, total=True, ): """ This function plots a spin polarized band structure projected onto specified [atom, orbital] pairs next to a spin polarized density of states projected onto the same [atom, orbital] pairs. The top figure highlights the spin up bands and the bottom figure highlights the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states atom_orbital_dict (dict[int:list]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of the first atom and the s orbital of the second atom then the dictionary would be {0:[0,1,2,3], 1:[0]} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) band_down = Band( folder=band_folder, spin='down', projected=True, unfold=unfold, high_symm_points=high_symm_points, kpath=kpath, n=n, M=M, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_atom_orbitals( ax=ax_band_up, scale_factor=scale_factor, atom_orbital_dict=atom_orbital_dict, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, display_order=display_order, erange=erange, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) dos_up.plot_atom_orbitals( ax=ax_dos_up, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=total, erange=erange, ) dos_down.plot_atom_orbitals( ax=ax_dos_up, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=total, erange=erange, ) band_down.plot_atom_orbitals( ax=ax_band_down, scale_factor=scale_factor, atom_orbital_dict=atom_orbital_dict, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, display_order=display_order, erange=erange, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, erange=erange, ) dos_down.plot_atom_orbitals( ax=ax_dos_down, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=total, erange=erange, ) dos_up.plot_atom_orbitals( ax=ax_dos_down, atom_orbital_dict=atom_orbital_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=total, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def band_dos_orbitals_spin_polarized( band_folder, dos_folder, orbitals, output='band_dos_orbitals_sp.png', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a spin polarized bandstructure projected onto specified orbitals next to its corresponding density of states projected onto the same orbitals. The top figure highlights the spin up bands and the bottom figure highlight the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states orbitals (list): List of orbitals to compare | 0 = s | 1 = py | 2 = pz | 3 = px | 4 = dxy | 5 = dyz | 6 = dz2 | 7 = dxz | 8 = dx2-y2 | 9 = fy3x2 | 10 = fxyz | 11 = fyz2 | 12 = fz3 | 13 = fxz2 | 14 = fzx3 | 15 = fx3 output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, kpath=kpath, n=n, ) band_down = Band( folder=band_folder, spin='down', projected=True, kpath=kpath, n=n, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_orbitals( ax=ax_band_up, scale_factor=scale_factor, orbitals=orbitals, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_up.plot_orbitals( ax=ax_dos_up, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_down.plot_orbitals( ax=ax_dos_up, orbitals=orbitals, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) band_down.plot_orbitals( ax=ax_band_down, scale_factor=scale_factor, orbitals=orbitals, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_down.plot_orbitals( ax=ax_dos_down, orbitals=orbitals, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_up.plot_orbitals( ax=ax_dos_down, orbitals=orbitals, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def band_dos_atoms_spin_polarized( band_folder, dos_folder, atoms, output='band_dos_atoms_sp.png', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a spin polarized bandstructure projected onto specified atoms in the POSCAR next to its corresponding density of states projected onto the same atoms. The top figure highlights the spin up bands and the bottom figure highlight the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states atoms (list): List of atoms to project onto. The indices should be zero indexed (first atom is 0) and the atoms are in the same order as they are in the POSCAR output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, kpath=kpath, n=n, ) band_down = Band( folder=band_folder, spin='down', projected=True, kpath=kpath, n=n, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_atoms( ax=ax_band_up, scale_factor=scale_factor, atoms=atoms, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_up.plot_atoms( ax=ax_dos_up, atoms=atoms, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_down.plot_atoms( ax=ax_dos_up, atoms=atoms, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) band_down.plot_atoms( ax=ax_band_down, scale_factor=scale_factor, atoms=atoms, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_down.plot_atoms( ax=ax_dos_down, atoms=atoms, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_up.plot_atoms( ax=ax_dos_down, atoms=atoms, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def band_dos_atom_spd_spin_polarized( band_folder, dos_folder, atom_spd_dict, output='band_dos_atom_spd_sp.png', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a spin polarized s, p, d projected band structure on a given atom next to a spin polarized s, p, d projected density of states on the same atom. The top figure highlights the spin up bands and the bottom figure highlights the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states atom_spd_dict (dict[int:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of the first atom and the p orbitals of the second atom then the dictionary would be {0:'spd', 1:'p'} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, kpath=kpath, n=n, ) band_down = Band( folder=band_folder, spin='down', projected=True, kpath=kpath, n=n, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_atom_spd( ax=ax_band_up, atom_spd_dict=atom_spd_dict, scale_factor=scale_factor, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_up.plot_atom_spd( ax=ax_dos_up, atom_spd_dict=atom_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_down.plot_atom_spd( ax=ax_dos_up, atom_spd_dict=atom_spd_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) band_down.plot_atom_spd( ax=ax_band_down, atom_spd_dict=atom_spd_dict, scale_factor=scale_factor, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_down.plot_atom_spd( ax=ax_dos_down, atom_spd_dict=atom_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_up.plot_atom_spd( ax=ax_dos_down, atom_spd_dict=atom_spd_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def band_dos_elements_spin_polarized( band_folder, dos_folder, elements, output='band_dos_elements_sp.png', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a spin polarized bandstructure projected onto specified elements in the structure next to its corresponding density of states projected onto the same elements. The top figure highlights the spin up bands and the bottom figure highlight the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states elements (list): List of elements to project onto. The list should countain the corresponding element symbols output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, kpath=kpath, n=n, ) band_down = Band( folder=band_folder, spin='down', projected=True, kpath=kpath, n=n, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_elements( ax=ax_band_up, scale_factor=scale_factor, elements=elements, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_up.plot_elements( ax=ax_dos_up, elements=elements, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_down.plot_elements( ax=ax_dos_up, elements=elements, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) band_down.plot_elements( ax=ax_band_down, scale_factor=scale_factor, elements=elements, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_down.plot_elements( ax=ax_dos_down, elements=elements, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_up.plot_elements( ax=ax_dos_down, elements=elements, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def band_dos_element_orbitals_spin_polarized( band_folder, dos_folder, element_orbital_dict, output='band_dos_element_orbitals_sp.png', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a spin polarized band structure projected onto specified [element, orbital] dict next to a spin polarized density of states projected onto the same [element, orbital] dict. The top figure highlights the spin up bands and the bottom figure highlights the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states element_orbital_dict (dict[str:list]): A dictionary that contains the individual elements and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, py, pz, and px orbitals of In and the s orbital of As for and InAs structure then the dictionary would be {'In':[0,1,2,3], 'As':[0]} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, kpath=kpath, n=n, ) band_down = Band( folder=band_folder, spin='down', projected=True, kpath=kpath, n=n, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_element_orbitals( ax=ax_band_up, scale_factor=scale_factor, element_orbital_dict=element_orbital_dict, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_up.plot_element_orbitals( ax=ax_dos_up, element_orbital_dict=element_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_down.plot_element_orbitals( ax=ax_dos_up, element_orbital_dict=element_orbital_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) band_down.plot_element_orbitals( ax=ax_band_down, scale_factor=scale_factor, element_orbital_dict=element_orbital_dict, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_down.plot_element_orbitals( ax=ax_dos_down, element_orbital_dict=element_orbital_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_up.plot_element_orbitals( ax=ax_dos_down, element_orbital_dict=element_orbital_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def band_dos_element_spd_spin_polarized( band_folder, dos_folder, element_spd_dict, output='band_dos_element_spd_sp.png', scale_factor=6, color_list=None, legend=True, linewidth=0.75, band_color='black', unprojected_band_color='gray', unprojected_linewidth=0.6, figsize=(8, 6), width_ratios=[7, 3], erange=[-6, 6], kpath=None, n=None, fontsize=8, annotations=['$\\uparrow$ ', '$\\downarrow$ '], annotation_xy=(0.0125, 0.98), save=True, fill=True, alpha=0.3, sigma=0.05, ): """ This function plots a spin polarized s, p, d projected band structure on a given element next to a spin polarized s, p, d projected density of states on the same element. The top figure highlights the spin up bands and the bottom figure highlights the spin down bands. Parameters: band_folder (str): This is the folder that contains the VASP files for the band structure dos_folder (str): This is the folder that contains the VASP files for the density of states element_spd_dict (dict[str:str]): A dictionary that contains the individual atoms and the corresponding orbitals to project onto. For example, if the user wants to project onto the s, p, d orbitals of In and the p orbitals of As for an InAs structure then the dictionary would be {'In':'spd', 'As':'p'} output (str): File name of the resulting plot. scale_factor (float): Factor to scale weights. This changes the size of the points in the scatter plot display_order (str / None): If None, the projections will be displayed in the same order the user inputs them. If 'all' the projections will be plotted from largest to smallest so every point is visable. If 'dominant' the projections will be plotted from smallest to largest so only the dominant projection is shown. color_list (list): List of colors that is the same length as the number of projections in the plot. legend (bool): Determines if the legend should be included or not. linewidth (float): Line width of the plain band structure plotted in the background band_color (string): Color of the plain band structure unprojected_band_color (str): Color of the unprojected band unprojected_linewidth (float): Line width of the unprojected bands figsize (list / tuple): Desired size of the image in inches (width, height) width_ratios (list / tuple): Width ration of the band plot and dos plot. erange (list / tuple): Range of energy to show in the plot [low, high] kpath (str): High symmetry k-point path of band structure calculation Due to the nature of the KPOINTS file for unfolded calculations this information is a required input for proper labeling of the figure for unfolded calculations. This information is extracted from the KPOINTS files for non-unfolded calculations. (G is automaticall converted to \\Gamma) n (int): Number of points between each high symmetry points. This is also only required for unfolded calculations and band unfolding. This number should be known by the user, as it was used to generate the KPOINTS file. unfold (bool): Determines if the plotted band structure is from a band unfolding calculation. M (list[list]): Transformation matrix from the primitive bulk structure to the slab structure. Only required for a band unfolding calculation. high_symm_points (list[list]): List of fractional coordinated for each high symmetry point in the band structure path. Only required for a band unfolding calculation. fontsize (float): Font size of the text in the figure. annotations (list): Annotations to put on the top and bottom (left and right) figures. By default it will show the spin up and spin down arrows. annotation_xy (list / tuple): Fractional (x, y) coordinated of the annotation location fill (bool): Determines wether or not to fill underneath the plot alpha (float): Alpha value for the fill sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ fig, ax = plt.subplots( nrows=2, ncols=2, sharey=True, figsize=figsize, dpi=400, gridspec_kw={'width_ratios': width_ratios} ) ax_band_up, ax_dos_up, ax_band_down, ax_dos_down = _figure_setup_band_dos_spin_polarized( ax=ax, fontsize=fontsize, ylim=[erange[0], erange[1]] ) band_up = Band( folder=band_folder, spin='up', projected=True, kpath=kpath, n=n, ) band_down = Band( folder=band_folder, spin='down', projected=True, kpath=kpath, n=n, ) dos_up = Dos(folder=dos_folder, spin='up') dos_down = Dos(folder=dos_folder, spin='down') bbox = dict(boxstyle='round', fc='white', edgecolor='gray', alpha=0.95, pad=0.3) ax_band_up.annotate( annotations[0], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) ax_band_down.annotate( annotations[1], xy=annotation_xy, xycoords='axes fraction', va='top', ha='left', bbox=bbox, fontsize=fontsize + 1, ) band_up.plot_element_spd( ax=ax_band_up, element_spd_dict=element_spd_dict, scale_factor=scale_factor, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_down.plot_plain( ax=ax_band_up, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_up.plot_element_spd( ax=ax_dos_up, element_spd_dict=element_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_down.plot_element_spd( ax=ax_dos_up, element_spd_dict=element_spd_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) band_down.plot_element_spd( ax=ax_band_down, element_spd_dict=element_spd_dict, scale_factor=scale_factor, color_list=color_list, legend=False, linewidth=linewidth, band_color=band_color, ) band_up.plot_plain( ax=ax_band_down, color=unprojected_band_color, linewidth=unprojected_linewidth, ) dos_down.plot_element_spd( ax=ax_dos_down, element_spd_dict=element_spd_dict, fill=fill, alpha=alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=legend, total=True, erange=erange, ) dos_up.plot_element_spd( ax=ax_dos_down, element_spd_dict=element_spd_dict, fill=fill, alpha=0.25 * alpha, alpha_line=0.25 * alpha, linewidth=linewidth, sigma=sigma, energyaxis='y', color_list=color_list, legend=False, total=True, erange=erange, ) fig.canvas.draw() nbins = len(ax_dos_down.get_xticklabels()) ax_dos_down.xaxis.set_major_locator( MaxNLocator(nbins=nbins - 1, prune='lower')) plt.tight_layout(pad=0.2) plt.subplots_adjust(wspace=0, hspace=0.05) if save: plt.savefig(output) else: return fig, ax_band_up, ax_dos_up, ax_band_down, ax_dos_down def dos_layers( folder, output='dos_layers.png', energyaxis='y', figsize=(5, 3), erange=[-3, 3], lrange=None, spin='up', combination_method='add', fontsize=7, save=True, cmap='magma', sigma=1.5, antialiased=False, show_structure=False, interface_layer=None, interface_line_color='white', interface_line_style='--', interface_line_width=2, log_scale=True, contour=False, levels=10, ): """ This function is used to plot a layer by layer density of states heat map for slab structures. It is useful for visualizing band alignment of interfaces. Parameters: folder (str): This is the folder that contains the VASP files output (str): File name of the resulting plot. energyaxis (str): Determines the axis to plot the energy on ('x' or 'y') figsize (list / tuple): Desired size of the image in inches (width, height) erange (list): Energy range for the DOS plot ([lower bound, upper bound]) spin (str): Which spin direction to parse ('up' or 'down') combination_method (str): If spin == 'both', this determines if the spin up and spin down desnities are added or subtracted. ('add' or 'sub') fontsize (float): Font size of the text in the figure. cmap (str): Matplotlib colormap. antialiased (bool): Determines if the image is antialiased or not. show_structure (bool): If true, a projected of the structure will be plotted next to the layer by later dos. This feature works best with large slab structures, and has not been fully tested. interface_layer (int / None): If an interger is passed in, a line will be drawn on the plot to represent where the interface layers is. If None, no line will be drawn. interface_line_color (str): Color of interface line. interface_line_width (str): Width of interface line. interface_line_style (str): Style of interface line. log_scale (bool): Determines is the colormap is converted to log scale. This setting is set to true by defualt and is recommened as is can help show a more accurate representation of the band gap. sigma (float): Standard deviation for gaussian filter save (bool): Determines whether to automatically save the figure or not. If not the figure and axis are return for further manipulation. Returns: If save == True, this function will return nothing and directly save the image as the output name. If save == False, the function will return the matplotlib figure and axis for further editing. """ if show_structure: if energyaxis == 'x': fig, axs = plt.subplots( nrows=1, ncols=2, gridspec_kw={'width_ratios':[1,6]}, figsize=figsize, dpi=400, ) structure_ax = axs[0] dos_ax = axs[1] elif energyaxis == 'y': fig, axs = plt.subplots( nrows=2, ncols=1, gridspec_kw={'height_ratios':[1,6], 'hspace': -0.02}, figsize=figsize, dpi=400, ) structure_ax = axs[0] sm = plt.cm.ScalarMappable() sm.set_array([]) fig.colorbar(sm, ax=structure_ax).ax.set_visible(False) dos_ax = axs[1] structure_ax.spines['left'].set_visible(False) structure_ax.spines['right'].set_visible(False) structure_ax.spines['top'].set_visible(False) structure_ax.spines['bottom'].set_visible(False) structure_ax.tick_params( left=False, bottom=False, labelleft=False, labelbottom=False, ) else: fig = plt.figure(figsize=figsize, dpi=400) dos_ax = fig.add_subplot(111) _figure_setup_layer_dos(ax=dos_ax, fontsize=fontsize, energyaxis=energyaxis) dos = Dos(folder=folder, spin=spin, combination_method=combination_method) dos.plot_layers( ax=dos_ax, sigma=sigma, cmap=cmap, erange=erange, lrange=lrange, antialiased=antialiased, fontsize=fontsize, energyaxis=energyaxis, interface_layer=interface_layer, interface_line_color=interface_line_color, interface_line_style=interface_line_style, interface_line_width=interface_line_width, log_scale=log_scale, contour=contour, levels=levels, ) if energyaxis == 'y': dos_ax.set_ylim(erange[0], erange[1]) elif energyaxis == 'x': dos_ax.set_xlim(erange[0], erange[1]) if show_structure: if energyaxis == 'y': dos.plot_structure(ax=structure_ax, rotation=[90,90,90]) elif energyaxis == 'x': dos.plot_structure(ax=structure_ax, rotation=[0,90,90]) fig.tight_layout(pad=0.2) if save: plt.savefig(output, bbox_inches='tight') else: if show_structure: return fig, dos_ax, structure_ax else: return fig, dos_ax def _main(): # band_folder = '../../vaspvis_data/InAsAl' # band_spd( # folder='../../vaspvis_data/band', # erange=[-12,12] # ) dos_ldos( folder='../../vaspvis_data/slabdos', layers=[0,1,2,3,4], fill=False, ) # dos_layers( # folder='../../vaspvis_data/slabdos', # contour=True, # output='contour.png', # # levels=25, # ) # band_folder = '../../vaspvis_data/InSb111_band' # # Transformation matrix generated from convert_slab # M = [ # [0,0,-2], # [0,-2,2], # [-25,8,8] # ] # # high_symm_points = [ # [0.3333,0.3333,0.6666], # X # [0.0,0.0,0.0], # Gamma # [0.3333,0.3333,0.6666] # X # ] # # # All other functions in the standard library work with band unfolding too. # band_elements( # folder=band_folder, # elements=['Al'], # color_list=['blue'], # erange=[-6,6], # figsize=(3,4), # unfold=True, # kpath='AGA', # high_symm_points=high_symm_points, # n=50, # M=M, # scale_factor=20, # output='band_elements_Al.png' # ) if __name__ == "__main__": _main()
36.409842
129
0.63842
38,058
281,885
4.634426
0.012428
0.012728
0.011986
0.014458
0.979442
0.974804
0.967728
0.962665
0.957285
0.952647
0
0.012317
0.283665
281,885
7,741
130
36.414546
0.861166
0.551725
0
0.886768
0
0
0.033752
0.005405
0
0
0
0
0
1
0.013296
false
0
0.001072
0
0.027021
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
4be29ae93dc6fe7fbff930a76c5a3c60fe55aec6
81,056
py
Python
blender_io/gltf_pbr_node.py
ousttrue/moldjson
eb0b5258469da689816844ac63a981dbf4a09f04
[ "MIT" ]
null
null
null
blender_io/gltf_pbr_node.py
ousttrue/moldjson
eb0b5258469da689816844ac63a981dbf4a09f04
[ "MIT" ]
null
null
null
blender_io/gltf_pbr_node.py
ousttrue/moldjson
eb0b5258469da689816844ac63a981dbf4a09f04
[ "MIT" ]
1
2019-05-16T08:40:41.000Z
2019-05-16T08:40:41.000Z
groups = [{'outputs': [{'bl_socket_idname': 'NodeSocketShader', 'name': 'Shader'}], 'name': 'AlphaMask.001', 'links': [{'to_socket': 2, 'from_node': 2, 'from_socket': 0, 'to_node': 4}, {'to_socket': 1, 'from_node': 3, 'from_socket': 0, 'to_node': 4}, {'to_socket': 0, 'from_node': 3, 'from_socket': 1, 'to_node': 1}, {'to_socket': 1, 'from_node': 3, 'from_socket': 2, 'to_node': 1}, {'to_socket': 0, 'from_node': 4, 'from_socket': 0, 'to_node': 0}, {'to_socket': 0, 'from_node': 1, 'from_socket': 0, 'to_node': 4}], 'nodes': [{'inputs': [{'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'outputs': [], 'attr': {'name': 'Group Output', 'is_active_output': True, 'bl_idname': 'NodeGroupOutput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_OUTPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Output', 'bl_width_max': 400.0, 'show_texture': False, 'location': [307.67681884765625, -58.37359619140625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_OUTPUT', 'bl_idname': 'NodeGroupOutput'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'LESS_THAN', 'use_clamp': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-117.1951675415039, 182.2685546875], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Color', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'BSDF', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Transparent BSDF', 'bl_idname': 'ShaderNodeBsdfTransparent', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'BSDF_TRANSPARENT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Transparent BSDF', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-124.3338623046875, -163.20779418945312], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'BSDF_TRANSPARENT', 'bl_idname': 'ShaderNodeBsdfTransparent'}, {'inputs': [], 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 4095, 'name': 'Alpha', 'default_value': 0.30000001192092896, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'AlphaCutoff', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'attr': {'name': 'Group Input', 'bl_idname': 'NodeGroupInput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_INPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Input', 'bl_width_max': 400.0, 'show_texture': False, 'location': [-363.5972900390625, 22.634662628173828], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_INPUT', 'bl_idname': 'NodeGroupInput'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Mix Shader', 'bl_idname': 'ShaderNodeMixShader', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_SHADER', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Mix Shader', 'bl_width_max': 700.0, 'show_texture': False, 'location': [105.29721069335938, -44.077980041503906], 'bl_width_default': 140.0, 'height': 100.0, 'select': True, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_SHADER', 'bl_idname': 'ShaderNodeMixShader'}], 'bl_idname': 'ShaderNodeTree', 'tree_attr': {'tag': False, 'bl_label': 'Shader', 'name': 'AlphaMask.001', 'bl_idname': 'ShaderNodeTree', 'bl_icon': 'MATERIAL', 'grease_pencil': None, 'bl_description': 'Shader nodes'}, 'inputs': [{'bl_socket_idname': 'NodeSocketShader', 'name': 'Shader'}, {'bl_socket_idname': 'NodeSocketFloat', 'min_value': 0.0, 'name': 'Alpha', 'default_value': 1.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketFloat', 'min_value': 0.0, 'name': 'AlphaCutoff', 'default_value': 0.5, 'max_value': 1.0}]}, {'outputs': [{'bl_socket_idname': 'NodeSocketShader', 'name': 'Emission'}], 'name': 'Emissive.001', 'links': [{'to_socket': 0, 'from_node': 3, 'from_socket': 0, 'to_node': 0}, {'to_socket': 0, 'from_node': 2, 'from_socket': 0, 'to_node': 3}, {'to_socket': 1, 'from_node': 1, 'from_socket': 0, 'to_node': 2}, {'to_socket': 2, 'from_node': 1, 'from_socket': 1, 'to_node': 2}], 'nodes': [{'inputs': [{'link_limit': 1, 'name': 'Emission', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'outputs': [], 'attr': {'name': 'Group Output', 'is_active_output': True, 'bl_idname': 'NodeGroupOutput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_OUTPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Output', 'bl_width_max': 400.0, 'show_texture': False, 'location': [260.6797180175781, -8.339085578918457], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_OUTPUT', 'bl_idname': 'NodeGroupOutput'}, {'inputs': [], 'outputs': [{'link_limit': 4095, 'name': 'Color', 'default_value': [0.800000011920929, 0.800000011920929, 0.800000011920929, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'Factor', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'attr': {'name': 'Group Input', 'bl_idname': 'NodeGroupInput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_INPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Input', 'bl_width_max': 400.0, 'show_texture': False, 'location': [-483.1720275878906, 16.678173065185547], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_INPUT', 'bl_idname': 'NodeGroupInput'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Color1', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Color2', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Color', 'default_value': [0.0, 0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'attr': {'name': 'Mix', 'bl_idname': 'ShaderNodeMixRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_RGB', 'bl_height_max': 30.0, 'mute': False, 'blend_type': 'MULTIPLY', 'width_hidden': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_clamp': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Mix', 'bl_width_max': 700.0, 'show_texture': False, 'use_alpha': False, 'location': [-211.18919372558594, 5.956470489501953], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'bl_width_min': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_RGB', 'bl_idname': 'ShaderNodeMixRGB'}, {'inputs': [{'link_limit': 1, 'name': 'Color', 'default_value': [0.800000011920929, 0.800000011920929, 0.800000011920929, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Strength', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Emission', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Emission', 'bl_idname': 'ShaderNodeEmission', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'EMISSION', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Emission', 'bl_width_max': 700.0, 'show_texture': False, 'location': [5.9489922523498535, 9.530383110046387], 'bl_width_default': 140.0, 'height': 100.0, 'select': True, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'EMISSION', 'bl_idname': 'ShaderNodeEmission'}], 'bl_idname': 'ShaderNodeTree', 'tree_attr': {'tag': False, 'bl_label': 'Shader', 'name': 'Emissive.001', 'bl_idname': 'ShaderNodeTree', 'bl_icon': 'MATERIAL', 'grease_pencil': None, 'bl_description': 'Shader nodes'}, 'inputs': [{'bl_socket_idname': 'NodeSocketColor', 'name': 'Color', 'default_value': [0.800000011920929, 0.800000011920929, 0.800000011920929, 1.0]}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'Factor', 'default_value': [0.0, 0.0, 0.0, 1.0]}]}, {'outputs': [{'bl_socket_idname': 'NodeSocketShader', 'name': 'Shader'}], 'name': 'AlphaBlend.001', 'links': [{'to_socket': 1, 'from_node': 0, 'from_socket': 0, 'to_node': 3}, {'to_socket': 0, 'from_node': 3, 'from_socket': 0, 'to_node': 2}, {'to_socket': 2, 'from_node': 1, 'from_socket': 0, 'to_node': 3}, {'to_socket': 0, 'from_node': 1, 'from_socket': 1, 'to_node': 3}], 'nodes': [{'inputs': [{'link_limit': 1, 'name': 'Color', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'BSDF', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Transparent BSDF', 'bl_idname': 'ShaderNodeBsdfTransparent', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'BSDF_TRANSPARENT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Transparent BSDF', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-146.94003295898438, -60.75620651245117], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'BSDF_TRANSPARENT', 'bl_idname': 'ShaderNodeBsdfTransparent'}, {'inputs': [], 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 4095, 'name': 'Alpha', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'attr': {'name': 'Group Input', 'bl_idname': 'NodeGroupInput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_INPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Input', 'bl_width_max': 400.0, 'show_texture': False, 'location': [-291.0195007324219, 146.52963256835938], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_INPUT', 'bl_idname': 'NodeGroupInput'}, {'inputs': [{'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'outputs': [], 'attr': {'name': 'Group Output', 'is_active_output': True, 'bl_idname': 'NodeGroupOutput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_OUTPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Output', 'bl_width_max': 400.0, 'show_texture': False, 'location': [344.5605163574219, -28.591150283813477], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_OUTPUT', 'bl_idname': 'NodeGroupOutput'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Mix Shader', 'bl_idname': 'ShaderNodeMixShader', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_SHADER', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Mix Shader', 'bl_width_max': 700.0, 'show_texture': False, 'location': [137.4217071533203, -23.825958251953125], 'bl_width_default': 140.0, 'height': 100.0, 'select': True, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_SHADER', 'bl_idname': 'ShaderNodeMixShader'}], 'bl_idname': 'ShaderNodeTree', 'tree_attr': {'tag': False, 'bl_label': 'Shader', 'name': 'AlphaBlend.001', 'bl_idname': 'ShaderNodeTree', 'bl_icon': 'MATERIAL', 'grease_pencil': None, 'bl_description': 'Shader nodes'}, 'inputs': [{'bl_socket_idname': 'NodeSocketShader', 'name': 'Shader'}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'Alpha', 'default_value': 1.0, 'max_value': 1.0}]}, {'outputs': [{'bl_socket_idname': 'NodeSocketShader', 'name': 'Shader'}], 'name': 'glTF Metallic Roughness', 'links': [{'to_socket': 1, 'from_node': 7, 'from_socket': 0, 'to_node': 5}, {'to_socket': 0, 'from_node': 31, 'from_socket': 9, 'to_node': 7}, {'to_socket': 1, 'from_node': 31, 'from_socket': 10, 'to_node': 7}, {'to_socket': 0, 'from_node': 5, 'from_socket': 0, 'to_node': 6}, {'to_socket': 1, 'from_node': 31, 'from_socket': 0, 'to_node': 27}, {'to_socket': 1, 'from_node': 31, 'from_socket': 3, 'to_node': 8}, {'to_socket': 1, 'from_node': 31, 'from_socket': 4, 'to_node': 11}, {'to_socket': 0, 'from_node': 5, 'from_socket': 0, 'to_node': 9}, {'to_socket': 1, 'from_node': 31, 'from_socket': 11, 'to_node': 6}, {'to_socket': 1, 'from_node': 31, 'from_socket': 11, 'to_node': 9}, {'to_socket': 2, 'from_node': 31, 'from_socket': 12, 'to_node': 9}, {'to_socket': 1, 'from_node': 6, 'from_socket': 0, 'to_node': 19}, {'to_socket': 2, 'from_node': 9, 'from_socket': 0, 'to_node': 19}, {'to_socket': 0, 'from_node': 31, 'from_socket': 13, 'to_node': 10}, {'to_socket': 0, 'from_node': 10, 'from_socket': 0, 'to_node': 19}, {'to_socket': 0, 'from_node': 14, 'from_socket': 0, 'to_node': 13}, {'to_socket': 1, 'from_node': 31, 'from_socket': 6, 'to_node': 16}, {'to_socket': 0, 'from_node': 17, 'from_socket': 0, 'to_node': 16}, {'to_socket': 0, 'from_node': 16, 'from_socket': 0, 'to_node': 14}, {'to_socket': 2, 'from_node': 17, 'from_socket': 2, 'to_node': 14}, {'to_socket': 1, 'from_node': 15, 'from_socket': 0, 'to_node': 14}, {'to_socket': 0, 'from_node': 17, 'from_socket': 1, 'to_node': 15}, {'to_socket': 1, 'from_node': 31, 'from_socket': 6, 'to_node': 15}, {'to_socket': 0, 'from_node': 31, 'from_socket': 2, 'to_node': 12}, {'to_socket': 0, 'from_node': 18, 'from_socket': 0, 'to_node': 17}, {'to_socket': 1, 'from_node': 31, 'from_socket': 5, 'to_node': 18}, {'to_socket': 0, 'from_node': 31, 'from_socket': 7, 'to_node': 33}, {'to_socket': 0, 'from_node': 12, 'from_socket': 1, 'to_node': 11}, {'to_socket': 0, 'from_node': 12, 'from_socket': 2, 'to_node': 8}, {'to_socket': 0, 'from_node': 31, 'from_socket': 14, 'to_node': 24}, {'to_socket': 0, 'from_node': 22, 'from_socket': 0, 'to_node': 20}, {'to_socket': 2, 'from_node': 19, 'from_socket': 0, 'to_node': 22}, {'to_socket': 1, 'from_node': 21, 'from_socket': 0, 'to_node': 22}, {'to_socket': 0, 'from_node': 24, 'from_socket': 0, 'to_node': 23}, {'to_socket': 0, 'from_node': 23, 'from_socket': 0, 'to_node': 22}, {'to_socket': 1, 'from_node': 25, 'from_socket': 0, 'to_node': 23}, {'to_socket': 1, 'from_node': 26, 'from_socket': 6, 'to_node': 25}, {'to_socket': 1, 'from_node': 31, 'from_socket': 1, 'to_node': 30}, {'to_socket': 2, 'from_node': 30, 'from_socket': 0, 'to_node': 27}, {'to_socket': 1, 'from_node': 28, 'from_socket': 0, 'to_node': 32}, {'to_socket': 2, 'from_node': 32, 'from_socket': 0, 'to_node': 30}, {'to_socket': 0, 'from_node': 31, 'from_socket': 15, 'to_node': 29}, {'to_socket': 0, 'from_node': 29, 'from_socket': 0, 'to_node': 32}, {'to_socket': 2, 'from_node': 31, 'from_socket': 16, 'to_node': 32}, {'to_socket': 17, 'from_node': 13, 'from_socket': 0, 'to_node': 34}, {'to_socket': 4, 'from_node': 8, 'from_socket': 0, 'to_node': 34}, {'to_socket': 7, 'from_node': 11, 'from_socket': 0, 'to_node': 34}, {'to_socket': 1, 'from_node': 27, 'from_socket': 0, 'to_node': 35}, {'to_socket': 0, 'from_node': 35, 'from_socket': 0, 'to_node': 34}, {'to_socket': 0, 'from_node': 34, 'from_socket': 0, 'to_node': 5}, {'to_socket': 0, 'from_node': 33, 'from_socket': 0, 'to_node': 36}, {'to_socket': 1, 'from_node': 33, 'from_socket': 0, 'to_node': 36}, {'to_socket': 2, 'from_node': 33, 'from_socket': 0, 'to_node': 36}, {'to_socket': 2, 'from_node': 36, 'from_socket': 0, 'to_node': 35}, {'to_socket': 0, 'from_node': 31, 'from_socket': 8, 'to_node': 35}], 'nodes': [{'inputs': [], 'outputs': [], 'attr': {'name': 'Frame.001', 'bl_idname': 'NodeFrame', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'FRAME', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': 'Final Metallic', 'show_texture': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Frame', 'bl_width_max': 3.4028234663852886e+38, 'label_size': 20, 'location': [-1584.0823974609375, -185.23541259765625], 'bl_width_default': 150.0, 'height': 205.93206787109375, 'select': False, 'bl_icon': 'NONE', 'width': 200.0, 'width_hidden': 100.0, 'text': None, 'bl_height_min': 30.0, 'hide': False, 'shrink': True, 'bl_description': ''}, 'type': 'FRAME', 'bl_idname': 'NodeFrame'}, {'inputs': [], 'outputs': [], 'attr': {'name': 'Frame.002', 'bl_idname': 'NodeFrame', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'FRAME', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': 'Final Rougness', 'show_texture': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Frame', 'bl_width_max': 3.4028234663852886e+38, 'label_size': 20, 'location': [-1582.4742431640625, -469.21337890625], 'bl_width_default': 150.0, 'height': 205.84051513671875, 'select': False, 'bl_icon': 'NONE', 'width': 200.0, 'width_hidden': 100.0, 'text': None, 'bl_height_min': 30.0, 'hide': False, 'shrink': True, 'bl_description': ''}, 'type': 'FRAME', 'bl_idname': 'NodeFrame'}, {'inputs': [], 'outputs': [], 'attr': {'name': 'Frame.005', 'bl_idname': 'NodeFrame', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'FRAME', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': 'Final Normal', 'show_texture': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Frame', 'bl_width_max': 3.4028234663852886e+38, 'label_size': 20, 'location': [-1752.0587158203125, 226.65196228027344], 'bl_width_default': 150.0, 'height': 387.17742919921875, 'select': False, 'bl_icon': 'NONE', 'width': 1085.137451171875, 'width_hidden': 100.0, 'text': None, 'bl_height_min': 30.0, 'hide': False, 'shrink': True, 'bl_description': ''}, 'type': 'FRAME', 'bl_idname': 'NodeFrame'}, {'inputs': [], 'outputs': [], 'attr': {'name': 'Frame', 'bl_idname': 'NodeFrame', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'FRAME', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': 'Final Base Color', 'show_texture': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Frame', 'bl_width_max': 3.4028234663852886e+38, 'label_size': 20, 'location': [-1914.0579833984375, 759.8992309570312], 'bl_width_default': 150.0, 'height': 547.2410888671875, 'select': False, 'bl_icon': 'NONE', 'width': 993.4537353515625, 'width_hidden': 100.0, 'text': None, 'bl_height_min': 30.0, 'hide': False, 'shrink': True, 'bl_description': ''}, 'type': 'FRAME', 'bl_idname': 'NodeFrame'}, {'inputs': [], 'outputs': [], 'attr': {'name': 'Frame Lambert Cook Torrance', 'bl_idname': 'NodeFrame', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'FRAME', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': 'Frame Lambert Cook Torrance', 'show_texture': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Frame', 'bl_width_max': 3.4028234663852886e+38, 'label_size': 20, 'location': [-329.4680480957031, 221.0568084716797], 'bl_width_default': 150.0, 'height': 578.1168823242188, 'select': False, 'bl_icon': 'NONE', 'width': 853.9675903320312, 'width_hidden': 100.0, 'text': None, 'bl_height_min': 30.0, 'hide': False, 'shrink': True, 'bl_description': ''}, 'type': 'FRAME', 'bl_idname': 'NodeFrame'}, {'inputs': [{'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Add Shader.001', 'bl_idname': 'ShaderNodeAddShader', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'ADD_SHADER', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Add Shader', 'bl_width_max': 700.0, 'show_texture': False, 'location': [1126.6632080078125, -150.905517578125], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'ADD_SHADER', 'bl_idname': 'ShaderNodeAddShader'}, {'attr': {'name': 'Group.001', 'bl_idname': 'ShaderNodeGroup', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 60.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group', 'bl_width_max': 400.0, 'show_texture': False, 'location': [1447.8125, -6.6367034912109375], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 224.4757080078125, 'width_hidden': 60.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'GROUP_NAME': 'AlphaBlend.001', 'bl_idname': 'ShaderNodeGroup', 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'type': 'GROUP', 'inputs': [{'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Alpha', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}]}, {'attr': {'name': 'Group.003', 'bl_idname': 'ShaderNodeGroup', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 60.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group', 'bl_width_max': 400.0, 'show_texture': False, 'location': [43.54606628417969, -487.15155029296875], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 228.6951904296875, 'width_hidden': 60.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'GROUP_NAME': 'Emissive.001', 'bl_idname': 'ShaderNodeGroup', 'outputs': [{'link_limit': 4095, 'name': 'Emission', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'type': 'GROUP', 'inputs': [{'link_limit': 1, 'name': 'Color', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Factor', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}]}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'MULTIPLY', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [12.130615234375, 14.16748046875], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'attr': {'name': 'Group.002', 'bl_idname': 'ShaderNodeGroup', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 60.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group', 'bl_width_max': 400.0, 'show_texture': False, 'location': [1552.7491455078125, -296.4447937011719], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 228.045166015625, 'width_hidden': 60.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'GROUP_NAME': 'AlphaMask.001', 'bl_idname': 'ShaderNodeGroup', 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'type': 'GROUP', 'inputs': [{'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Alpha', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'AlphaCutoff', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}]}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.002', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'GREATER_THAN', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [1293.96240234375, -206.8525390625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.001', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'MULTIPLY', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [4.8922119140625, -17.94610595703125], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Image', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'R', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'G', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'B', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Separate RGB', 'bl_idname': 'ShaderNodeSeparateRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'SEPRGB', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Separate RGB', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-1989.39453125, -150.02886962890625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'SEPRGB', 'bl_idname': 'ShaderNodeSeparateRGB'}, {'inputs': [{'link_limit': 1, 'name': 'Vector', 'default_value': [0.5, 0.5, 0.5], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 1, 'name': 'Vector', 'default_value': [0.5, 0.5, 0.5], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Vector', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Vector Math', 'bl_idname': 'ShaderNodeVectorMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'VECT_MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'NORMALIZE', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Vector Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [825.2493896484375, -110.62825775146484], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'VECT_MATH', 'bl_idname': 'ShaderNodeVectorMath'}, {'inputs': [{'link_limit': 1, 'name': 'X', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Y', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Z', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Vector', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}], 'attr': {'name': 'Combine XYZ', 'bl_idname': 'ShaderNodeCombineXYZ', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'COMBXYZ', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Combine XYZ', 'bl_width_max': 700.0, 'show_texture': False, 'location': [623.1748046875, -148.63827514648438], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'COMBXYZ', 'bl_idname': 'ShaderNodeCombineXYZ'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.004', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'MULTIPLY', 'use_clamp': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [403.1748046875, -157.00732421875], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.003', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'MULTIPLY', 'use_clamp': False, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [404.3687744140625, 23.525436401367188], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Vector', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'X', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'Y', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'Z', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Separate XYZ', 'bl_idname': 'ShaderNodeSeparateXYZ', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'SEPXYZ', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Separate XYZ', 'bl_width_max': 700.0, 'show_texture': False, 'location': [183.1748046875, -178.52780151367188], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'SEPXYZ', 'bl_idname': 'ShaderNodeSeparateXYZ'}, {'inputs': [{'link_limit': 1, 'name': 'Strength', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Color', 'default_value': [0.5, 0.5, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Normal', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}], 'attr': {'name': 'Normal Map', 'bl_idname': 'ShaderNodeNormalMap', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'NORMAL_MAP', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 120.0, 'uv_map': '', 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Normal Map', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-59.8880615234375, -148.28164672851562], 'bl_width_default': 150.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 150.0, 'width_hidden': 120.0, 'bl_height_min': 30.0, 'hide': False, 'space': 'TANGENT', 'bl_description': ''}, 'type': 'NORMAL_MAP', 'bl_idname': 'ShaderNodeNormalMap'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 0.5181818008422852, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Mix Shader.003', 'bl_idname': 'ShaderNodeMixShader', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_SHADER', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Mix Shader', 'bl_width_max': 700.0, 'show_texture': False, 'location': [1896.7586669921875, -139.0824737548828], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_SHADER', 'bl_idname': 'ShaderNodeMixShader'}, {'inputs': [{'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'outputs': [], 'attr': {'name': 'Group Output', 'is_active_output': True, 'bl_idname': 'NodeGroupOutput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_OUTPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Output', 'bl_width_max': 400.0, 'show_texture': False, 'location': [2613.734130859375, -154.20947265625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_OUTPUT', 'bl_idname': 'NodeGroupOutput'}, {'attr': {'name': 'Group', 'bl_idname': 'ShaderNodeGroup', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 60.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group', 'bl_width_max': 400.0, 'show_texture': False, 'location': [2082.906005859375, -695.5881958007812], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 60.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'GROUP_NAME': 'AlphaMask.001', 'bl_idname': 'ShaderNodeGroup', 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'type': 'GROUP', 'inputs': [{'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Alpha', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'AlphaCutoff', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}]}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}, {'link_limit': 1, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Shader', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Mix Shader.001', 'bl_idname': 'ShaderNodeMixShader', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_SHADER', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Mix Shader', 'bl_width_max': 700.0, 'show_texture': False, 'location': [2334.755126953125, -398.73394775390625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_SHADER', 'bl_idname': 'ShaderNodeMixShader'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 7.09999942779541, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.010', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'MAXIMUM', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [1866.9962158203125, -485.6181945800781], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.009', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'GREATER_THAN', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [1426.772216796875, -529.56103515625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.011', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'SUBTRACT', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [1654.940673828125, -682.8173217773438], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [], 'outputs': [{'link_limit': 4095, 'name': 'Position', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 4095, 'name': 'Normal', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 4095, 'name': 'Tangent', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 4095, 'name': 'True Normal', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 4095, 'name': 'Incoming', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 4095, 'name': 'Parametric', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 4095, 'name': 'Backfacing', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'Pointiness', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Geometry', 'bl_idname': 'ShaderNodeNewGeometry', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'NEW_GEOMETRY', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Geometry', 'bl_width_max': 700.0, 'show_texture': False, 'location': [1432.1038818359375, -730.3104858398438], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'NEW_GEOMETRY', 'bl_idname': 'ShaderNodeNewGeometry'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Color1', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Color2', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Color', 'default_value': [0.0, 0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'attr': {'name': 'Mix', 'bl_idname': 'ShaderNodeMixRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_RGB', 'bl_height_max': 30.0, 'mute': False, 'blend_type': 'MULTIPLY', 'width_hidden': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Mix', 'bl_width_max': 700.0, 'show_texture': False, 'use_alpha': False, 'location': [106.8974609375, 2.0283203125], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'bl_width_min': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_RGB', 'bl_idname': 'ShaderNodeMixRGB'}, {'inputs': [], 'outputs': [{'link_limit': 4095, 'name': 'Color', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'attr': {'name': 'RGB', 'bl_idname': 'ShaderNodeRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'RGB', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'RGB', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-686.5562744140625, 246.34185791015625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'RGB', 'bl_idname': 'ShaderNodeRGB'}, {'inputs': [{'link_limit': 1, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Value', 'default_value': 0.4000000059604645, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Value', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Math.013', 'bl_idname': 'ShaderNodeMath', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MATH', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'operation': 'GREATER_THAN', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Math', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-537.4019775390625, -93.07781982421875], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MATH', 'bl_idname': 'ShaderNodeMath'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Color1', 'default_value': [0.5, 0.5, 0.5, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Color2', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Color', 'default_value': [0.0, 0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'attr': {'name': 'Mix.001', 'bl_idname': 'ShaderNodeMixRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_RGB', 'bl_height_max': 30.0, 'mute': False, 'blend_type': 'MULTIPLY', 'width_hidden': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Mix', 'bl_width_max': 700.0, 'show_texture': False, 'use_alpha': False, 'location': [-119.661376953125, -32.52740478515625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'bl_width_min': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_RGB', 'bl_idname': 'ShaderNodeMixRGB'}, {'inputs': [], 'outputs': [{'link_limit': 4095, 'name': 'BaseColor', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'BaseColorFactor', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'MetallicRoughness', 'default_value': [0.5, 0.5, 0.5, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'MetallicFactor', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'RoughnessFactor', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'Normal', 'default_value': [0.5, 0.5, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'NormalScale', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'Occlusion', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'OcclusionStrength', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'Emissive', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'EmissiveFactor', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': 'Alpha', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'AlphaCutoff', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'AlphaMode', 'default_value': 0.5181818008422852, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'DoubleSided', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'Use COLOR_0', 'default_value': 0.5, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'COLOR_0', 'default_value': [0.5, 0.5, 0.5, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 4095, 'name': '', 'bl_idname': 'NodeSocketVirtual', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'CUSTOM', 'hide_value': False}], 'attr': {'name': 'Group Input', 'bl_idname': 'NodeGroupInput', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'GROUP_INPUT', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 80.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Group Input', 'bl_width_max': 400.0, 'show_texture': False, 'location': [-2667.22265625, -3.4456253051757812], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 80.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'GROUP_INPUT', 'bl_idname': 'NodeGroupInput'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 1.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Color1', 'default_value': [0.5, 0.5, 0.5, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Color2', 'default_value': [0.5, 0.5, 0.5, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Color', 'default_value': [0.0, 0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'attr': {'name': 'Mix.002', 'bl_idname': 'ShaderNodeMixRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_RGB', 'bl_height_max': 30.0, 'mute': False, 'blend_type': 'MULTIPLY', 'width_hidden': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Mix', 'bl_width_max': 700.0, 'show_texture': False, 'use_alpha': False, 'location': [-358.7894287109375, 103.55322265625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'bl_width_min': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_RGB', 'bl_idname': 'ShaderNodeMixRGB'}, {'inputs': [{'link_limit': 1, 'name': 'Image', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'R', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'G', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 4095, 'name': 'B', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'attr': {'name': 'Separate RGB.001', 'bl_idname': 'ShaderNodeSeparateRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'SEPRGB', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Separate RGB', 'bl_width_max': 700.0, 'show_texture': False, 'location': [-2102.466064453125, -468.2144775390625], 'bl_width_default': 140.0, 'height': 100.0, 'select': False, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'SEPRGB', 'bl_idname': 'ShaderNodeSeparateRGB'}, {'inputs': [{'link_limit': 1, 'name': 'Base Color', 'default_value': [0.800000011920929, 0.800000011920929, 0.800000011920929, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Subsurface', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Subsurface Radius', 'default_value': [1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': False}, {'link_limit': 1, 'name': 'Subsurface Color', 'default_value': [0.0, 0.0, 0.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Metallic', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Specular', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Specular Tint', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Roughness', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Anisotropic', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Anisotropic Rotation', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Sheen', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Sheen Tint', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Clearcoat', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Clearcoat Roughness', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'IOR', 'default_value': 1.4500000476837158, 'bl_idname': 'NodeSocketFloat', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Transmission', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Transmission Roughness', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Normal', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': True}, {'link_limit': 1, 'name': 'Clearcoat Normal', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': True}, {'link_limit': 1, 'name': 'Tangent', 'default_value': [0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketVector', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VECTOR', 'hide_value': True}], 'outputs': [{'link_limit': 4095, 'name': 'BSDF', 'bl_idname': 'NodeSocketShader', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'SHADER', 'hide_value': False}], 'attr': {'name': 'Principled BSDF', 'bl_idname': 'ShaderNodeBsdfPrincipled', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'BSDF_PRINCIPLED', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 120.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Principled BSDF', 'bl_width_max': 700.0, 'show_texture': False, 'location': [756.3221435546875, 321.06005859375], 'bl_width_default': 150.0, 'height': 100.0, 'select': True, 'bl_icon': 'NONE', 'width': 150.0, 'width_hidden': 120.0, 'distribution': 'GGX', 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'BSDF_PRINCIPLED', 'bl_idname': 'ShaderNodeBsdfPrincipled'}, {'inputs': [{'link_limit': 1, 'name': 'Fac', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatFactor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'Color1', 'default_value': [0.5, 0.5, 0.5, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}, {'link_limit': 1, 'name': 'Color2', 'default_value': [1.0, 1.0, 1.0, 1.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Color', 'default_value': [0.0, 0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'attr': {'name': 'Mix.003', 'bl_idname': 'ShaderNodeMixRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'MIX_RGB', 'bl_height_max': 30.0, 'mute': False, 'blend_type': 'MULTIPLY', 'width_hidden': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_clamp': True, 'show_preview': False, 'use_custom_color': False, 'bl_label': 'Mix', 'bl_width_max': 700.0, 'show_texture': False, 'use_alpha': False, 'location': [432.3741760253906, 318.28192138671875], 'bl_width_default': 140.0, 'height': 100.0, 'select': True, 'bl_icon': 'NONE', 'width': 140.0, 'bl_width_min': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'MIX_RGB', 'bl_idname': 'ShaderNodeMixRGB'}, {'inputs': [{'link_limit': 1, 'name': 'R', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatUnsigned', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'G', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatUnsigned', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}, {'link_limit': 1, 'name': 'B', 'default_value': 0.0, 'bl_idname': 'NodeSocketFloatUnsigned', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'VALUE', 'hide_value': False}], 'outputs': [{'link_limit': 4095, 'name': 'Image', 'default_value': [0.0, 0.0, 0.0, 0.0], 'bl_idname': 'NodeSocketColor', 'show_expanded': False, 'enabled': True, 'hide': False, 'type': 'RGBA', 'hide_value': False}], 'attr': {'name': 'Combine RGB', 'bl_idname': 'ShaderNodeCombineRGB', 'bl_height_default': 100.0, 'show_options': True, 'bl_static_type': 'COMBRGB', 'bl_height_max': 30.0, 'mute': False, 'bl_width_min': 100.0, 'color': [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], 'label': '', 'use_custom_color': False, 'show_preview': False, 'bl_label': 'Combine RGB', 'bl_width_max': 700.0, 'show_texture': False, 'location': [112.35455322265625, 159.4531707763672], 'bl_width_default': 140.0, 'height': 100.0, 'select': True, 'bl_icon': 'NONE', 'width': 140.0, 'width_hidden': 100.0, 'bl_height_min': 30.0, 'hide': False, 'bl_description': ''}, 'type': 'COMBRGB', 'bl_idname': 'ShaderNodeCombineRGB'}], 'bl_idname': 'ShaderNodeTree', 'tree_attr': {'tag': False, 'bl_label': 'Shader', 'name': 'glTF Metallic Roughness', 'bl_idname': 'ShaderNodeTree', 'bl_icon': 'MATERIAL', 'grease_pencil': None, 'bl_description': 'Shader nodes'}, 'inputs': [{'bl_socket_idname': 'NodeSocketColor', 'name': 'BaseColor', 'default_value': [1.0, 1.0, 1.0, 1.0]}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'BaseColorFactor', 'default_value': [1.0, 1.0, 1.0, 1.0]}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'MetallicRoughness', 'default_value': [1.0, 1.0, 1.0, 1.0]}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'MetallicFactor', 'default_value': 1.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'RoughnessFactor', 'default_value': 1.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'Normal', 'default_value': [0.5, 0.5, 1.0, 1.0]}, {'bl_socket_idname': 'NodeSocketFloat', 'min_value': -10000.0, 'name': 'NormalScale', 'default_value': 1.0, 'max_value': 10000.0}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'Occlusion', 'default_value': [1.0, 1.0, 1.0, 1.0]}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'OcclusionStrength', 'default_value': 1.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'Emissive', 'default_value': [1.0, 1.0, 1.0, 1.0]}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'EmissiveFactor', 'default_value': [0.0, 0.0, 0.0, 1.0]}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'Alpha', 'default_value': 1.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketFloat', 'min_value': 0.0, 'name': 'AlphaCutoff', 'default_value': 0.5, 'max_value': 1.100000023841858}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'AlphaMode', 'default_value': 0.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'DoubleSided', 'default_value': 0.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketFloatFactor', 'min_value': 0.0, 'name': 'Use COLOR_0', 'default_value': 0.0, 'max_value': 1.0}, {'bl_socket_idname': 'NodeSocketColor', 'name': 'COLOR_0', 'default_value': [0.0, 0.0, 0.0, 1.0]}]}]
40,528
81,055
0.670031
11,061
81,056
4.672272
0.039508
0.045046
0.060197
0.084985
0.938526
0.924342
0.916699
0.914783
0.892783
0.886087
0
0.107711
0.092047
81,056
1
81,056
81,056
0.594511
0
0
0
0
0
0.50879
0.014854
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
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
4be51330b45e533680cac8b81df69620ec67af30
17,367
py
Python
tests/verification/convolution/test_2d_m_c_coarse_weight_stationary/test_m_c_1.py
oslab-swrc/dMazeRunner
8e112de8e9b217486063b960a781f3e3b0a3e073
[ "Apache-2.0" ]
null
null
null
tests/verification/convolution/test_2d_m_c_coarse_weight_stationary/test_m_c_1.py
oslab-swrc/dMazeRunner
8e112de8e9b217486063b960a781f3e3b0a3e073
[ "Apache-2.0" ]
null
null
null
tests/verification/convolution/test_2d_m_c_coarse_weight_stationary/test_m_c_1.py
oslab-swrc/dMazeRunner
8e112de8e9b217486063b960a781f3e3b0a3e073
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: Copyright (c) 2021 Electronics and Telecommunications Research Institute # SPDX-License-Identifier: Apache-2.0 import tvm from dMazeRunner.dataflow import ConvLayer from dMazeRunner.common import expr_parameters spm_orderings = () dram_orderings = () def setup(): layer = get_sample_layer() dicts = [ {"O": 4, "I": 1, "W": 1}, {"O": 2, "I": 1, "W": 1}, {"O": 1, "I": 4, "W": 1}, {"O": 1, "I": 1, "W": 2}, {"O": 1, "I": 1, "W": 5}, {"O": 1, "I": 1, "W": 10}, ] orders = [layer.get_ordering_from_reuse_factor(d, "SPM") for d in dicts] global spm_orderings spm_orderings = tuple(orders) assert(len(spm_orderings) == 6) dicts = [ {"O": 2, "I": 1, "W": 1}, {"O": 4, "I": 1, "W": 1}, {"O": 8, "I": 1, "W": 1}, {"O": 1, "I": 2, "W": 1}, {"O": 1, "I": 1, "W": 2}, ] orders = [ layer.get_ordering_from_reuse_factor(d, "DRAM") for d in dicts ] global dram_orderings dram_orderings = tuple(orders) assert(len(dram_orderings) == 5) def get_sample_layer(): env = expr_parameters.Environment() env.pe_pipeline_stages = 1 args = { "name": "test_conv2d12_from_resnet18_v1", "channels": 64, "kernel_size": "[6, 6]", "padding": "[2, 2]", "strides": "[2, 2]", "output_shape": [1, 64, 5, 5], "input_shape": [1, 64, 10, 10], "batch_size": 8, } layer = ConvLayer(env, **args) layer.set_tiling("N", [2, 2, 2, 1]) layer.set_tiling("M", [2, 4, 2, 4]) layer.set_tiling("C", [4, 2, 2, 4]) layer.set_tiling("Ox", [1, 5, 1, 1]) layer.set_tiling("Oy", [1, 1, 5, 1]) layer.set_tiling("Fx", [1, 2, 3, 1]) layer.set_tiling("Fy", [2, 1, 3, 1]) for level in layer._loop_IVs: layer.set_ordering(level, ["N", "C", "Fx", "Fy", "M", "Ox", "Oy"]) return layer def test_commonFunctions(): layer = get_sample_layer() # Set tests to find data allocation in RF and SPM data_RF = layer.get_data_allocated_RF() assert data_RF["I"] == 132 assert data_RF["W"] == 36 assert data_RF["O"] == 20 data_PE_array = layer.get_data_allocated_PE_array() assert data_PE_array["I"] == 528 assert data_PE_array["W"] == 576 assert data_PE_array["O"] == 80 data_SPM = layer.get_data_allocated_SPM() assert data_SPM["I"] == 9856 assert data_SPM["W"] == 9216 assert data_SPM["O"] == 3200 def test_TotalEnergy(): layer = get_sample_layer() energy_ops = layer.computeEnergyCost_UsefulOps() assert abs(energy_ops - 2211840) < 1.0e-5 energy_RF = layer.computeEnergyCost_RF() assert abs(energy_RF - 113246208) < 1.0e-5 key_1_spm = spm_orderings[0] key_2_spm = spm_orderings[1] key_3_spm = spm_orderings[2] key_4_spm = spm_orderings[3] key_5_spm = spm_orderings[4] key_6_spm = spm_orderings[5] key_1_dram = dram_orderings[0] key_2_dram = dram_orderings[1] key_3_dram = dram_orderings[2] key_4_dram = dram_orderings[3] key_5_dram = dram_orderings[4] energy_SPM_pass = layer.get_Energy_One_SPM_Pass() assert abs(energy_SPM_pass[(key_1_dram, key_1_spm)] - 3391568) < 1 assert abs(energy_SPM_pass[(key_1_dram, key_2_spm)] - 3538336) < 1 assert abs(energy_SPM_pass[(key_1_dram, key_3_spm)] - 2469632) < 1 assert abs(energy_SPM_pass[(key_1_dram, key_4_spm)] - 3117632) < 1 assert abs(energy_SPM_pass[(key_1_dram, key_5_spm)] - 2689088) < 1 assert abs(energy_SPM_pass[(key_1_dram, key_6_spm)] - 2546240) < 1 assert abs(energy_SPM_pass[(key_2_dram, key_1_spm)] - 3391568) < 1 assert abs(energy_SPM_pass[(key_2_dram, key_2_spm)] - 3538336) < 1 assert abs(energy_SPM_pass[(key_2_dram, key_3_spm)] - 2469632) < 1 assert abs(energy_SPM_pass[(key_2_dram, key_4_spm)] - 3117632) < 1 assert abs(energy_SPM_pass[(key_2_dram, key_5_spm)] - 2689088) < 1 assert abs(energy_SPM_pass[(key_2_dram, key_6_spm)] - 2546240) < 1 assert abs(energy_SPM_pass[(key_3_dram, key_1_spm)] - 3391568) < 1 assert abs(energy_SPM_pass[(key_3_dram, key_2_spm)] - 3538336) < 1 assert abs(energy_SPM_pass[(key_3_dram, key_3_spm)] - 2469632) < 1 assert abs(energy_SPM_pass[(key_3_dram, key_4_spm)] - 3117632) < 1 assert abs(energy_SPM_pass[(key_3_dram, key_5_spm)] - 2689088) < 1 assert abs(energy_SPM_pass[(key_3_dram, key_6_spm)] - 2546240) < 1 assert abs(energy_SPM_pass[(key_4_dram, key_1_spm)] - 3391568) < 1 assert abs(energy_SPM_pass[(key_4_dram, key_2_spm)] - 3538336) < 1 assert abs(energy_SPM_pass[(key_4_dram, key_3_spm)] - 2469632) < 1 assert abs(energy_SPM_pass[(key_4_dram, key_4_spm)] - 3117632) < 1 assert abs(energy_SPM_pass[(key_4_dram, key_5_spm)] - 2689088) < 1 assert abs(energy_SPM_pass[(key_4_dram, key_6_spm)] - 2546240) < 1 assert abs(energy_SPM_pass[(key_5_dram, key_1_spm)] - 3391568) < 1 assert abs(energy_SPM_pass[(key_5_dram, key_2_spm)] - 3538336) < 1 assert abs(energy_SPM_pass[(key_5_dram, key_3_spm)] - 2469632) < 1 assert abs(energy_SPM_pass[(key_5_dram, key_4_spm)] - 3117632) < 1 assert abs(energy_SPM_pass[(key_5_dram, key_5_spm)] - 2689088) < 1 assert abs(energy_SPM_pass[(key_5_dram, key_6_spm)] - 2546240) < 1 total_SPM_pass = layer.get_TripCounts_all_IVs("DRAM") assert abs(total_SPM_pass - 32) == 0 energy_DRAM = layer.get_Energy_DataCommunication_DRAM() # print(layer.determine_data_reuse("DRAM")) # print(energy_DRAM[(key_1_dram, key_1_spm)]) assert abs(energy_DRAM[(key_1_dram, key_1_spm)] - 139980800) < 1 assert abs(energy_DRAM[(key_1_dram, key_2_spm)] - 139980800) < 1 assert abs(energy_DRAM[(key_1_dram, key_3_spm)] - 139980800) < 1 assert abs(energy_DRAM[(key_1_dram, key_4_spm)] - 139980800) < 1 assert abs(energy_DRAM[(key_1_dram, key_5_spm)] - 139980800) < 1 assert abs(energy_DRAM[(key_1_dram, key_6_spm)] - 139980800) < 1 assert abs(energy_DRAM[(key_2_dram, key_1_spm)] - 129740800) < 1 assert abs(energy_DRAM[(key_2_dram, key_2_spm)] - 129740800) < 1 assert abs(energy_DRAM[(key_2_dram, key_3_spm)] - 129740800) < 1 assert abs(energy_DRAM[(key_2_dram, key_4_spm)] - 129740800) < 1 assert abs(energy_DRAM[(key_2_dram, key_5_spm)] - 129740800) < 1 assert abs(energy_DRAM[(key_2_dram, key_6_spm)] - 129740800) < 1 assert abs(energy_DRAM[(key_3_dram, key_1_spm)] - 124620800) < 1 assert abs(energy_DRAM[(key_3_dram, key_2_spm)] - 124620800) < 1 assert abs(energy_DRAM[(key_3_dram, key_3_spm)] - 124620800) < 1 assert abs(energy_DRAM[(key_3_dram, key_4_spm)] - 124620800) < 1 assert abs(energy_DRAM[(key_3_dram, key_5_spm)] - 124620800) < 1 assert abs(energy_DRAM[(key_3_dram, key_6_spm)] - 124620800) < 1 assert abs(energy_DRAM[(key_4_dram, key_1_spm)] - 128921600) < 1 assert abs(energy_DRAM[(key_4_dram, key_2_spm)] - 128921600) < 1 assert abs(energy_DRAM[(key_4_dram, key_3_spm)] - 128921600) < 1 assert abs(energy_DRAM[(key_4_dram, key_4_spm)] - 128921600) < 1 assert abs(energy_DRAM[(key_4_dram, key_5_spm)] - 128921600) < 1 assert abs(energy_DRAM[(key_4_dram, key_6_spm)] - 128921600) < 1 assert abs(energy_DRAM[(key_5_dram, key_1_spm)] - 130969600) < 1 assert abs(energy_DRAM[(key_5_dram, key_2_spm)] - 130969600) < 1 assert abs(energy_DRAM[(key_5_dram, key_3_spm)] - 130969600) < 1 assert abs(energy_DRAM[(key_5_dram, key_4_spm)] - 130969600) < 1 assert abs(energy_DRAM[(key_5_dram, key_5_spm)] - 130969600) < 1 assert abs(energy_DRAM[(key_5_dram, key_6_spm)] - 130969600) < 1 energy = layer.get_Energy_One_Layer() for d in dram_orderings: for s in spm_orderings: expected_energy = round(energy_ops + energy_RF + (energy_SPM_pass[(d,s)] * total_SPM_pass) + energy_DRAM[(d,s)]) assert abs(energy[(d,s)] - expected_energy) == 0 def test_Performance(): layer = get_sample_layer() assert layer.computeExecTime_UsefulOps_One_RF_Pass() == 360 cycles = layer.calculate_Cycles_DataDistribution_NOC() assert cycles[layer._O.name] == 80 assert cycles[layer._I.name] == 528 assert cycles[layer._W.name] == 576 cycles = layer.calculate_Cycles_InterPECommunication() assert cycles[layer._I.name] == 0 assert cycles[layer._W.name] == 0 assert cycles[layer._O.name] == 240 key_1_spm = spm_orderings[0] key_2_spm = spm_orderings[1] key_3_spm = spm_orderings[2] key_4_spm = spm_orderings[3] key_5_spm = spm_orderings[4] key_6_spm = spm_orderings[5] key_1_dram = dram_orderings[0] key_2_dram = dram_orderings[1] key_3_dram = dram_orderings[2] key_4_dram = dram_orderings[3] key_5_dram = dram_orderings[4] # Check cycles for 1 RF pass comm_cycles_dict = layer.map_operands_to_NOCs() assert comm_cycles_dict[(key_1_dram, key_1_spm)][0][1] == 576 assert comm_cycles_dict[(key_1_dram, key_2_spm)][0][1] == 576 assert comm_cycles_dict[(key_1_dram, key_3_spm)][0][1] == 576 assert comm_cycles_dict[(key_1_dram, key_4_spm)][0][1] == 528 assert comm_cycles_dict[(key_1_dram, key_5_spm)][0][1] == 528 assert comm_cycles_dict[(key_1_dram, key_6_spm)][0][1] == 528 assert comm_cycles_dict[(key_2_dram, key_1_spm)][0][1] == 576 assert comm_cycles_dict[(key_2_dram, key_2_spm)][0][1] == 576 assert comm_cycles_dict[(key_2_dram, key_3_spm)][0][1] == 576 assert comm_cycles_dict[(key_2_dram, key_4_spm)][0][1] == 528 assert comm_cycles_dict[(key_2_dram, key_5_spm)][0][1] == 528 assert comm_cycles_dict[(key_2_dram, key_6_spm)][0][1] == 528 assert comm_cycles_dict[(key_3_dram, key_1_spm)][0][1] == 576 assert comm_cycles_dict[(key_3_dram, key_2_spm)][0][1] == 576 assert comm_cycles_dict[(key_3_dram, key_3_spm)][0][1] == 576 assert comm_cycles_dict[(key_3_dram, key_4_spm)][0][1] == 528 assert comm_cycles_dict[(key_3_dram, key_5_spm)][0][1] == 528 assert comm_cycles_dict[(key_3_dram, key_6_spm)][0][1] == 528 assert comm_cycles_dict[(key_4_dram, key_1_spm)][0][1] == 576 assert comm_cycles_dict[(key_4_dram, key_2_spm)][0][1] == 576 assert comm_cycles_dict[(key_4_dram, key_3_spm)][0][1] == 576 assert comm_cycles_dict[(key_4_dram, key_4_spm)][0][1] == 528 assert comm_cycles_dict[(key_4_dram, key_5_spm)][0][1] == 528 assert comm_cycles_dict[(key_4_dram, key_6_spm)][0][1] == 528 assert comm_cycles_dict[(key_5_dram, key_1_spm)][0][1] == 576 assert comm_cycles_dict[(key_5_dram, key_2_spm)][0][1] == 576 assert comm_cycles_dict[(key_5_dram, key_3_spm)][0][1] == 576 assert comm_cycles_dict[(key_5_dram, key_4_spm)][0][1] == 528 assert comm_cycles_dict[(key_5_dram, key_5_spm)][0][1] == 528 assert comm_cycles_dict[(key_5_dram, key_6_spm)][0][1] == 528 # Check stall cycles for each RF pass assert comm_cycles_dict[(key_1_dram, key_1_spm)][1][1] == 0 assert comm_cycles_dict[(key_1_dram, key_2_spm)][1][1] == 0 assert comm_cycles_dict[(key_1_dram, key_3_spm)][1][1] == 600 assert comm_cycles_dict[(key_1_dram, key_4_spm)][1][1] == 600 assert comm_cycles_dict[(key_1_dram, key_5_spm)][1][1] == 600 assert comm_cycles_dict[(key_1_dram, key_6_spm)][1][1] == 600 assert comm_cycles_dict[(key_2_dram, key_1_spm)][1][1] == 0 assert comm_cycles_dict[(key_2_dram, key_2_spm)][1][1] == 0 assert comm_cycles_dict[(key_2_dram, key_3_spm)][1][1] == 600 assert comm_cycles_dict[(key_2_dram, key_4_spm)][1][1] == 600 assert comm_cycles_dict[(key_2_dram, key_5_spm)][1][1] == 600 assert comm_cycles_dict[(key_2_dram, key_6_spm)][1][1] == 600 assert comm_cycles_dict[(key_3_dram, key_1_spm)][1][1] == 0 assert comm_cycles_dict[(key_3_dram, key_2_spm)][1][1] == 0 assert comm_cycles_dict[(key_3_dram, key_3_spm)][1][1] == 600 assert comm_cycles_dict[(key_3_dram, key_4_spm)][1][1] == 600 assert comm_cycles_dict[(key_3_dram, key_5_spm)][1][1] == 600 assert comm_cycles_dict[(key_3_dram, key_6_spm)][1][1] == 600 assert comm_cycles_dict[(key_4_dram, key_1_spm)][1][1] == 0 assert comm_cycles_dict[(key_4_dram, key_2_spm)][1][1] == 0 assert comm_cycles_dict[(key_4_dram, key_3_spm)][1][1] == 600 assert comm_cycles_dict[(key_4_dram, key_4_spm)][1][1] == 600 assert comm_cycles_dict[(key_4_dram, key_5_spm)][1][1] == 600 assert comm_cycles_dict[(key_4_dram, key_6_spm)][1][1] == 600 assert comm_cycles_dict[(key_5_dram, key_1_spm)][1][1] == 0 assert comm_cycles_dict[(key_5_dram, key_2_spm)][1][1] == 0 assert comm_cycles_dict[(key_5_dram, key_3_spm)][1][1] == 600 assert comm_cycles_dict[(key_5_dram, key_4_spm)][1][1] == 600 assert comm_cycles_dict[(key_5_dram, key_5_spm)][1][1] == 600 assert comm_cycles_dict[(key_5_dram, key_6_spm)][1][1] == 600 # Check cycles for each SPM pass dict_cycles_spm_pass = layer.get_Cycles_One_SPM_Pass() assert dict_cycles_spm_pass[(key_1_dram, key_1_spm)] == 116160 assert dict_cycles_spm_pass[(key_1_dram, key_2_spm)] == 140160 assert dict_cycles_spm_pass[(key_1_dram, key_3_spm)] == 188160 assert dict_cycles_spm_pass[(key_1_dram, key_4_spm)] == 184320 assert dict_cycles_spm_pass[(key_1_dram, key_5_spm)] == 182016 assert dict_cycles_spm_pass[(key_1_dram, key_6_spm)] == 181248 assert dict_cycles_spm_pass[(key_2_dram, key_1_spm)] == 116160 assert dict_cycles_spm_pass[(key_2_dram, key_2_spm)] == 140160 assert dict_cycles_spm_pass[(key_2_dram, key_3_spm)] == 188160 assert dict_cycles_spm_pass[(key_2_dram, key_4_spm)] == 184320 assert dict_cycles_spm_pass[(key_2_dram, key_5_spm)] == 182016 assert dict_cycles_spm_pass[(key_2_dram, key_6_spm)] == 181248 assert dict_cycles_spm_pass[(key_3_dram, key_1_spm)] == 116160 assert dict_cycles_spm_pass[(key_3_dram, key_2_spm)] == 140160 assert dict_cycles_spm_pass[(key_3_dram, key_3_spm)] == 188160 assert dict_cycles_spm_pass[(key_3_dram, key_4_spm)] == 184320 assert dict_cycles_spm_pass[(key_3_dram, key_5_spm)] == 182016 assert dict_cycles_spm_pass[(key_3_dram, key_6_spm)] == 181248 assert dict_cycles_spm_pass[(key_4_dram, key_1_spm)] == 116160 assert dict_cycles_spm_pass[(key_4_dram, key_2_spm)] == 140160 assert dict_cycles_spm_pass[(key_4_dram, key_3_spm)] == 188160 assert dict_cycles_spm_pass[(key_4_dram, key_4_spm)] == 184320 assert dict_cycles_spm_pass[(key_4_dram, key_5_spm)] == 182016 assert dict_cycles_spm_pass[(key_4_dram, key_6_spm)] == 181248 assert dict_cycles_spm_pass[(key_5_dram, key_1_spm)] == 116160 assert dict_cycles_spm_pass[(key_5_dram, key_2_spm)] == 140160 assert dict_cycles_spm_pass[(key_5_dram, key_3_spm)] == 188160 assert dict_cycles_spm_pass[(key_5_dram, key_4_spm)] == 184320 assert dict_cycles_spm_pass[(key_5_dram, key_5_spm)] == 182016 assert dict_cycles_spm_pass[(key_5_dram, key_6_spm)] == 181248 # Check DMA communication cycles dma_accesses = layer.determine_DMA_Access() assert dma_accesses["I"]["dma_invocations"] == 896 assert dma_accesses["I"]["data_accessed_dma"] == 11 assert dma_accesses["W"]["dma_invocations"] == 3072 assert dma_accesses["W"]["data_accessed_dma"] == 3 assert dma_accesses["O"]["dma_invocations"] == 4 assert dma_accesses["O"]["data_accessed_dma"] == 800 dma_cycles = layer.calculate_Cycles_DMA_Access() assert dma_cycles["I"] == 42112 assert dma_cycles["W"] == 141312 assert dma_cycles["O"] == 424 dict_cycles = layer.get_Cycles_One_Layer() assert dict_cycles[(key_1_dram, key_1_spm)] == 5883136 assert dict_cycles[(key_1_dram, key_2_spm)] == 5883136 assert dict_cycles[(key_1_dram, key_3_spm)] == 6021120 assert dict_cycles[(key_1_dram, key_4_spm)] == 5898240 assert dict_cycles[(key_1_dram, key_5_spm)] == 5883136 assert dict_cycles[(key_1_dram, key_6_spm)] == 5883136 assert dict_cycles[(key_2_dram, key_1_spm)] == 5876352 assert dict_cycles[(key_2_dram, key_2_spm)] == 5876352 assert dict_cycles[(key_2_dram, key_3_spm)] == 6021120 assert dict_cycles[(key_2_dram, key_4_spm)] == 5898240 assert dict_cycles[(key_2_dram, key_5_spm)] == 5876352 assert dict_cycles[(key_2_dram, key_6_spm)] == 5876352 assert dict_cycles[(key_3_dram, key_1_spm)] == 5872960 assert dict_cycles[(key_3_dram, key_2_spm)] == 5872960 assert dict_cycles[(key_3_dram, key_3_spm)] == 6021120 assert dict_cycles[(key_3_dram, key_4_spm)] == 5898240 assert dict_cycles[(key_3_dram, key_5_spm)] == 5872960 assert dict_cycles[(key_3_dram, key_6_spm)] == 5872960 assert dict_cycles[(key_4_dram, key_1_spm)] == 5222912 assert dict_cycles[(key_4_dram, key_2_spm)] == 5222912 assert dict_cycles[(key_4_dram, key_3_spm)] == 6021120 assert dict_cycles[(key_4_dram, key_4_spm)] == 5898240 assert dict_cycles[(key_4_dram, key_5_spm)] == 5860608 assert dict_cycles[(key_4_dram, key_6_spm)] == 5848320 assert dict_cycles[(key_5_dram, key_1_spm)] == 4806912 assert dict_cycles[(key_5_dram, key_2_spm)] == 5190912 assert dict_cycles[(key_5_dram, key_3_spm)] == 6021120 assert dict_cycles[(key_5_dram, key_4_spm)] == 5898240 assert dict_cycles[(key_5_dram, key_5_spm)] == 5860608 assert dict_cycles[(key_5_dram, key_6_spm)] == 5848320
45.344648
124
0.69062
2,999
17,367
3.568189
0.061687
0.138679
0.08831
0.112139
0.781796
0.754883
0.745538
0.719933
0.700869
0.604056
0
0.125755
0.170323
17,367
382
125
45.463351
0.616906
0.022514
0
0.109677
0
0
0.017565
0.001768
0
0
0
0
0.680645
1
0.016129
false
0.212903
0.009677
0
0.029032
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
1
0
0
0
0
0
7
4bf8131668705fc748d030e0619523ce9cb7e345
3,973
py
Python
test_add_group.py
IrinaLushkina/pyton_training
f8661428b3802ce466ec264aa1691547fb7aa4bf
[ "Apache-2.0" ]
null
null
null
test_add_group.py
IrinaLushkina/pyton_training
f8661428b3802ce466ec264aa1691547fb7aa4bf
[ "Apache-2.0" ]
null
null
null
test_add_group.py
IrinaLushkina/pyton_training
f8661428b3802ce466ec264aa1691547fb7aa4bf
[ "Apache-2.0" ]
null
null
null
{"id":"a059b4e0-ac6f-46ee-b4b8-e93c09e89f5b","name":"test_add_group","url":"https://www.rambler.ru","tests":[{"id":"7aa7a63f-a0cb-45f4-bbf3-109ab6faded8","name":"Untitled","commands":[]},{"id":"a4e30b8f-5ee7-4549-9201-cd689f8f86bc","name":"test_add_1","commands":[{"id":"c3408bd5-c890-4441-950c-cdc8d7d75480","comment":"","command":"open","target":"/","value":""},{"id":"de8888c1-be4f-4cd3-94a8-0140fd303f67","comment":"","command":"clickAt","target":"name=email","value":"41,22"},{"id":"7b10996b-895c-40f2-b654-04cb462b67c8","comment":"","command":"type","target":"name=email","value":"tomirchic"},{"id":"b8b38689-7d9b-49e4-b014-011a333467a8","comment":"","command":"clickAt","target":"css=button._3vzf > svg","value":"NaN,NaN"},{"id":"0f8b5799-9c6a-4731-a31c-1c32fafc7a74","comment":"","command":"type","target":"name=password","value":"ierusalim"},{"id":"68193e40-8a29-4642-a31a-c399a892b9f4","comment":"","command":"clickAt","target":"css=div.imyh._3EZH > button._3vzf > svg","value":"NaN,NaN"},{"id":"6bd71978-f96b-44cc-8378-f35e64135116","comment":"","command":"selectFrame","target":"index=8","value":""},{"id":"1fd5ebe5-2cbf-4a20-87fc-199d112f7ad9","comment":"","command":"clickAt","target":"css=div.recaptcha-checkbox-checkmark","value":"12,21"},{"id":"b6b66c54-19d4-4fee-a5cf-a55ee2ba0877","comment":"","command":"selectFrame","target":"relative=parent","value":""},{"id":"daa54967-fb27-4cc3-a5ff-2ba447be8f65","comment":"","command":"mouseOver","target":"//main[@id='main']/div[4]/header/div/div[3]/div/div[2]/div[2]/span/a/span[2]","value":""},{"id":"3c4d2dbb-3285-4d03-bfb0-d1d60936e0ba","comment":"","command":"clickAt","target":"//main[@id='main']/div[4]/header/div/div[3]/div/div[2]/div[2]/span/a/span[2]","value":"36,5"},{"id":"97f389d5-d8f0-4ef9-95d1-0f017a80fe7d","comment":"","command":"mouseOver","target":"//div[@id='app']/div/div[3]/div[2]/div/div/div/ul/li[2]/div/a","value":""},{"id":"7fc02f09-8048-4207-a8b1-a2dfd6a9ca37","comment":"","command":"mouseOut","target":"//div[@id='app']/div/div[3]/div[2]/div/div/div/ul/li[2]/div/a","value":""},{"id":"26912617-5048-4352-9629-6a35f1cf5ed8","comment":"","command":"mouseOver","target":"//div[@id='app']/div/div[3]/div[2]/div/div/div/ul/li[2]/div/a/span[2]","value":""},{"id":"41c027f5-3ec5-408e-9dc3-ab346d468c5e","comment":"","command":"mouseOut","target":"//div[@id='app']/div/div[3]/div[2]/div/div/div/ul/li[2]/div/a/span[2]","value":""},{"id":"bdb46510-b70b-4944-a6a9-d1c389df3b20","comment":"","command":"mouseOver","target":"css=span.Item-title-Ks","value":""},{"id":"2407fb03-f0cb-4bc5-aae2-75ac805e1933","comment":"","command":"mouseOut","target":"css=span.Item-title-Ks","value":""},{"id":"4261c681-5aa1-4174-b1ef-2b440e980cdd","comment":"","command":"mouseOver","target":"//div[@id='app']/div/div[3]/div[2]/div/div/div/ul/li[5]/div/a/span[2]","value":""},{"id":"e64e83ad-78e6-4f51-bdfc-d1c5987ff991","comment":"","command":"mouseOut","target":"//div[@id='app']/div/div[3]/div[2]/div/div/div/ul/li[5]/div/a/span[2]","value":""},{"id":"d8d05eec-0276-4c22-aedb-1e5721fcc43d","comment":"","command":"mouseOver","target":"css=span.NewFolderLink-title-3l","value":""},{"id":"0bd7be67-2f9b-4905-9a2d-383bc1e5fba2","comment":"","command":"mouseOut","target":"css=span.NewFolderLink-title-3l","value":""},{"id":"2fcf50b6-6830-49f6-9da4-afa6e8640cfd","comment":"","command":"clickAt","target":"css=span.NewFolderLink-icon--J > svg > path","value":"NaN,NaN"},{"id":"e147025d-f335-43d0-a61b-8cf46dd1a2e9","comment":"","command":"type","target":"name=folderName","value":"TestFolder"},{"id":"37f7e4ec-c71f-496e-8f82-7e336ed7e12a","comment":"","command":"clickAt","target":"//html[@id='js']/body/div[5]/div/div/form/button/div","value":"-173,-129"},{"id":"188ec513-ed4f-4825-8f26-049d7a727720","comment":"","command":"clickAt","target":"css=div.Profile-exit-2_","value":"8,11"}]}],"suites":[{"id":"3f44e6df-68e1-4ff8-b1e8-3ce0b67cf25b","name":"Default Suite","tests":[]}],"urls":["https://www.rambler.ru"]}
3,973
3,973
0.668009
557
3,973
4.750449
0.40754
0.132275
0.063492
0.081633
0.416478
0.3613
0.289872
0.270219
0.216553
0.216553
0
0.160273
0.002769
3,973
1
3,973
3,973
0.507572
0
0
0
0
9
0.774283
0.463261
0
0
0
0
0
1
0
true
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
1
0
0
0
0
0
8
ef04231863fe8058fd281c1501dc74d260978f65
68,691
py
Python
test/python/set_view/replica_index.py
comforx/couchdb
88cdd2241ed6b17b39f5e9387b503a3f300527b5
[ "Apache-2.0" ]
1
2019-01-19T15:53:50.000Z
2019-01-19T15:53:50.000Z
test/python/set_view/replica_index.py
comforx/couchdb
88cdd2241ed6b17b39f5e9387b503a3f300527b5
[ "Apache-2.0" ]
null
null
null
test/python/set_view/replica_index.py
comforx/couchdb
88cdd2241ed6b17b39f5e9387b503a3f300527b5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python try: import simplejson as json except ImportError: import json import couchdb import httplib import urllib import common import unittest import time HOST = "localhost:5984" SET_NAME = "test_suite_set_view" NUM_PARTS = 8 NUM_DOCS = 400000 DDOC = { "_id": "_design/test", "language": "javascript", "views": { "mapview": { "map": "function(doc) { emit(doc.integer, doc.string); }" }, "redview": { "map": "function(doc) { emit(doc.integer, doc.string); }", "reduce": "_count" } } } class TestReplicaIndex(unittest.TestCase): def setUp(self): self._params = { "host": HOST, "ddoc": DDOC, "nparts": NUM_PARTS, "ndocs": NUM_DOCS, "setname": SET_NAME, "server": couchdb.Server(url = "http://" + HOST) } # print "Creating databases" common.create_dbs(self._params) common.populate(self._params) # print "Databases created" # print "Configuring set view with:" # print "\tmaximum of 8 partitions" # print "\tactive partitions = [0, 1, 2, 3]" # print "\tpassive partitions = []" # print "\treplica index = True" active_parts = [0, 1, 2, 3] common.define_set_view(self._params, active_parts, [], True) def tearDown(self): # print "Deleting test data" common.create_dbs(self._params, True) def test_replica_index(self): # print "Querying map view in steady state" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(view_result["total_rows"], expected_row_count, "Query returned %d total_rows" % expected_row_count) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) # print "verifying group info" info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [], "main group has [] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(sorted(info["update_seqs"].keys()), ["0", "1", "2", "3"], "right keys in update_seqs of the main index") for i in [0, 1, 2, 3]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for partition %d" % (expected_seq, i + 1)) self.assertEqual(type(info["replica_group_info"]), dict, "group has replica_group_info") self.assertEqual(info["replica_group_info"]["max_number_partitions"], 8, "replica group defined with maximum of 8 partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["passive_partitions"], [], "replica group has no passive partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") self.assertEqual(info["replica_group_info"]["update_seqs"].keys(), [], "replica group update_seqs is empty") self.assertEqual(info["replica_group_info"]["stats"]["partial_updates"], 0, "replica group has 0 partial updates") self.assertEqual(info["replica_group_info"]["stats"]["updates"], 0, "replica group has 0 full updates") # print "defining partitions [4, 5, 6, 7] as replicas" common.add_replica_partitions(self._params, [4, 5, 6, 7]) # print "verifying group info" info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [4, 5, 6, 7], "replica group has [4, 5, 6, 7] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "waiting for replica index to update" seconds = 0 while info["replica_group_info"]["stats"]["updates"] < 1: time.sleep(5) seconds += 5 if seconds > 900: raise(Exception("timeout waiting for replica index full update")) info = common.get_set_view_info(self._params) self.assertEqual(sorted(info["replica_group_info"]["update_seqs"].keys()), ["4", "5", "6", "7"], "replica group update_seqs has keys [4, 5, 6, 7]") for i in [4, 5, 6, 7]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["replica_group_info"]["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for replica partition %d" % (expected_seq, i + 1)) # print "Querying map view after marking partitions [4, 5, 6, 7] as replicas (not yet active)" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Querying reduce view, with ?group=false, after marking partitions [4, 5, 6, 7] as replicas (not yet active)" (resp, red_view_result_nogroup) = common.query(self._params, "redview") expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after marking partitions [4, 5, 6, 7] as replicas (not yet active)" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") new_info = common.get_set_view_info(self._params) common.restart_server(self._params) # print "Querying map view again after immediately after restarting the server" (resp, view_result_after) = common.query(self._params, "mapview") self.assertEqual(view_result_after["rows"], view_result["rows"], "Same view rows after server restart") # print "Querying reduce view, with ?group=false, after restarting the server" (resp, red_view_result_nogroup_after) = common.query(self._params, "redview") self.assertEqual(red_view_result_nogroup_after["rows"], red_view_result_nogroup["rows"], "Same view result as before") # print "Querying reduce view, with ?group=true, after restarting the server" (resp, red_view_result_group_after) = common.query(self._params, "redview", {"group": "true"}) self.assertEqual(red_view_result_group_after["rows"], red_view_result_group["rows"], "Same view result as before") # print "removing partitions [5, 7] from replica set" common.remove_replica_partitions(self._params, [5, 7]) # print "verifying group info" info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [4, 6], "main group has [4, 6] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [4, 6], "replica group has [4, 6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [5, 7], "replica group has [5, 7] as cleanup partitions") # print "waiting for replica index to finish cleanup" seconds = 0 while info["replica_group_info"]["stats"]["cleanups"] < 1: time.sleep(5) seconds += 5 if seconds > 900: raise(Exception("timeout waiting for replica index cleanup")) info = common.get_set_view_info(self._params) self.assertEqual(info["replica_group_info"]["passive_partitions"], [4, 6], "replica group has [4, 6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has [] as cleanup partitions") self.assertEqual(sorted(info["replica_group_info"]["update_seqs"].keys()), ["4", "6"], "replica group update_seqs has keys [4, 6") new_info = common.get_set_view_info(self._params) self.restart_compare_info(info, new_info) info = common.get_set_view_info(self._params) updates_before = info["replica_group_info"]["stats"]["updates"] # print "defining partitions [5, 7] as replicas again" common.add_replica_partitions(self._params, [5, 7]) # print "verifying group info" info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [4, 5, 6, 7], "replica group has [4, 5, 6, 7] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "waiting for replica index to index partitions 5 and 7" seconds = 0 while info["replica_group_info"]["stats"]["updates"] < (updates_before + 1): time.sleep(5) seconds += 5 if seconds > 900: raise(Exception("timeout waiting for replica index full update")) info = common.get_set_view_info(self._params) self.assertEqual(sorted(info["replica_group_info"]["update_seqs"].keys()), ["4", "5", "6", "7"], "replica group update_seqs has keys [4, 5, 6, 7]") for i in [4, 5, 6, 7]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["replica_group_info"]["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for replica partition %d" % (expected_seq, i + 1)) # print "Querying map view after marking partitions [5, 7] as replicas again (not yet active)" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Querying reduce view, with ?group=false, after marking partitions [5, 7] as replicas again (not yet active)" (resp, red_view_result_nogroup) = common.query(self._params, "redview") expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after marking partitions [5, 7] as replicas again (not yet active)" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Marking partitions [4, 5, 7] as active (to be transferred from replica to main index)" common.set_partition_states(self._params, active = [4, 5, 7]) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [4, 5, 7], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [4, 5, 7], "main group has [4, 5, 7] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [4, 5, 7], "replica group has [4, 5, 7] as active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "Querying map view with ?stale=update_after to trigger transferral of" + \ # " replica partitions [4, 5, 7] from replica index to main index" updates_before = info["stats"]["updates"] (resp, view_result) = common.query(self._params, "mapview", {"stale": "update_after"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 7]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(7, common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]), self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") # print "Querying reduce view, with ?group=false, after triggering transfer of replica partitions [4, 5, 7]" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 7]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after triggering transfer of replica partitions [4, 5, 7]" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 7]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") # print "Waiting for transferral of replica partitions [4, 5, 7] into main index" info = common.get_set_view_info(self._params) seconds = 0 while info["stats"]["updates"] < (updates_before + 1): time.sleep(5) seconds += 5 if seconds > 900: raise(Exception("timeout waiting for transfer of replica partitions [4, 5, 7]")) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3, 4, 5, 7], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [6], "main group has [6] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has [] as active partitions") self.assertEqual(sorted(info["update_seqs"].keys()), ["0", "1", "2", "3", "4", "5", "7"], "Right list of update seqs for main group") self.assertEqual(sorted(info["replica_group_info"]["update_seqs"].keys()), ["6"], "Right list of update seqs for replica group") for i in [0, 1, 2, 3, 4, 5, 7]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for partition %d in main group" % (expected_seq, i + 1)) for i in [6]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["replica_group_info"]["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for partition %d in replica group" % (expected_seq, i + 1)) # print "Querying map view after replica partitions were transferred" (resp, view_result_after) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 7]) self.assertEqual(len(view_result_after["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) self.assertEqual(len(view_result_after["rows"]), len(view_result["rows"]), "Same number of view rows after replica partitions were transferred") for i in xrange(len(view_result_after["rows"])): self.assertEqual(view_result_after["rows"][i], view_result["rows"][i], "Row %d has same content after replica partitions were transferred" % (i + 1)) # print "Querying reduce view, with ?group=false, after replica partitions were transferred" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 7]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after replica partitions were transferred" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 7]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") # print "Marking partitions [4, 5, 7] for cleanup in the main group" common.set_partition_states(self._params, cleanup = [4, 5, 7]) # print "Waiting for cleanup (compaction) to finish" common.compact_set_view(self._params) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [6], "main group has [6] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has [] active partitions") # print "Querying map view after marking partitions [4, 5, 7] for cleanup in the main group" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Querying reduce view, with ?group=false, after marking partitions [4, 5, 7] for cleanup in the main group" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after marking partitions [4, 5, 7] for cleanup in the main group" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "defining partitions [4, 5, 7] as replicas again" common.add_replica_partitions(self._params, [4, 5, 7]) info = common.get_set_view_info(self._params) self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [4, 5, 6, 7], "replica group has [4, 5, 6, 7] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "removing partitions [4, 5, 7] from replica set again" common.remove_replica_partitions(self._params, [4, 5, 7]) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [6], "main group has [6] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [4, 5, 7], "replica group has [4, 5, 7] as cleanup partitions") # print "defining partitions [4, 5, 7] as replicas again" common.add_replica_partitions(self._params, [4, 5, 7]) info = common.get_set_view_info(self._params) self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [4, 5, 6, 7], "replica group has [4, 5, 6, 7] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "Querying map view after marking partitions [4, 5, 7] as replicas (not active)" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Querying reduce view, with ?group=false, after marking partitions [4, 5, 7] as replicas (not active)" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after marking partitions [4, 5, 7] as replicas (not active)" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Marking partitions [4, 5, 7] as active (to be transferred from replica to main index)" common.set_partition_states(self._params, active = [4, 5, 7]) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [4, 5, 7], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [4, 5, 7], "main group has [4, 5, 7] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [4, 5, 7], "replica group has [4, 5, 7] as active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "Querying view with ?stale=update_after to trigger transferral of" + \ # " replica partitions [4, 5, 7] from replica index to main index" updates_before = info["stats"]["updates"] (resp, view_result) = common.query(self._params, "mapview", {"stale": "update_after", "limit": "1"}) # print "unmarking partitions [4, 5] as replicas while partitions [4, 5, 7] are being transferred from replica to main group" common.remove_replica_partitions(self._params, [4, 5]) # print "Waiting for transferral of replica partitions [7] into main index" info = common.get_set_view_info(self._params) seconds = 0 while info["stats"]["updates"] < (updates_before + 1): time.sleep(5) seconds += 5 if seconds > 900: raise(Exception("timeout waiting for transfer of replica partitions [7]")) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3, 7], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [6], "main group has [6] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has [] as active partitions") self.assertEqual(sorted(info["update_seqs"].keys()), ["0", "1", "2", "3", "7"], "Right list of update seqs for main group") self.assertEqual(sorted(info["replica_group_info"]["update_seqs"].keys()), ["6"], "Right list of update seqs for replica group") for i in [0, 1, 2, 3, 7]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for partition %d in main group" % (expected_seq, i + 1)) for i in [6]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["replica_group_info"]["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for partition %d in replica group" % (expected_seq, i + 1)) # print "Querying map view after removing replica partitions [4, 5]" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 7]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 7 in view result") # print "Querying reduce view, with ?group=false, after removing replica partitions [4, 5]" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3, 7]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after removing replica partitions [4, 5]" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 7]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 7 in view result") # print "Marking partitions [7] for cleanup in the main group" common.set_partition_states(self._params, cleanup = [7]) # print "Waiting for cleanup (compaction) to finish" common.compact_set_view(self._params) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [6], "main group has [6] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has [] active partitions") # print "Querying map view after removing replica partitions [7]" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Querying reduce view, with ?group=false, after removing replica partitions [7]" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after removing replica partitions [7]" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "defining partitions [4, 5, 7] as replicas again" common.add_replica_partitions(self._params, [4, 5, 7]) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [4, 5, 6, 7], "replica group has [4, 5, 6, 7] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has no active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "Querying map view after marking partitions [4, 5, 7] as replicas (not yet active)" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Querying reduce view, with ?group=false, after marking partitions [4, 5, 7] as replicas (not yet active)" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after marking partitions [4, 5, 7] as replicas (not yet active)" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 7 not in view result") # print "Marking partitions [4, 5, 7] as active (to be transferred from replica to main index)" common.set_partition_states(self._params, active = [4, 5, 7]) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [4, 5, 7], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [4, 5, 6, 7], "main group has [4, 5, 6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [4, 5, 7], "main group has [4, 5, 7] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [4, 5, 7], "replica group has [4, 5, 7] as active partitions") self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [], "replica group has no cleanup partitions") # print "Querying view with ?stale=update_after to trigger transferral of" + \ # " replica partitions [4, 5, 7] from replica index to main index" updates_before = info["stats"]["updates"] (resp, view_result) = common.query(self._params, "mapview", {"stale": "update_after", "limit": "1"}) # print "marking partitions [4, 5] for cleanup while partitions [4, 5, 7] are being transferred from replica to main group" common.set_partition_states(self._params, cleanup = [4, 5]) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3], "right active partitions list") self.assertEqual(info["passive_partitions"], [7], "right passive partitions list") # Not tested due to race conditions # self.assertEqual(info["cleanup_partitions"], [4, 5], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [6, 7], "main group has [6, 7] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [7], "main group has [7] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [7], "replica group has [7] as active partitions") # Not tested due to race conditions # self.assertEqual(info["replica_group_info"]["cleanup_partitions"], [4, 5], # "replica group has [4, 5] as cleanup partitions") # print "Waiting for transferral of replica partitions [7] into main index" info = common.get_set_view_info(self._params) seconds = 0 while info["stats"]["updates"] < (updates_before + 1): time.sleep(5) seconds += 5 if seconds > 900: raise(Exception("timeout waiting for transfer of replica partitions [7]")) info = common.get_set_view_info(self._params) self.assertEqual(info["active_partitions"], [0, 1, 2, 3, 7], "right active partitions list") self.assertEqual(info["passive_partitions"], [], "right passive partitions list") self.assertEqual(info["cleanup_partitions"], [], "right cleanup partitions list") self.assertEqual(info["replica_partitions"], [6], "main group has [6] as replica partitions") self.assertEqual(info["replicas_on_transfer"], [], "main group has [] as replicas on transfer") self.assertEqual(info["replica_group_info"]["passive_partitions"], [6], "replica group has [6] as passive partitions") self.assertEqual(info["replica_group_info"]["active_partitions"], [], "replica group has [] as active partitions") self.assertEqual(sorted(info["update_seqs"].keys()), ["0", "1", "2", "3", "7"], "Right list of update seqs for main group") self.assertEqual(sorted(info["replica_group_info"]["update_seqs"].keys()), ["6"], "Right list of update seqs for replica group") for i in [0, 1, 2, 3, 7]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for partition %d in main group" % (expected_seq, i + 1)) for i in [6]: expected_seq = common.partition_update_seq(self._params, i) self.assertEqual(info["replica_group_info"]["update_seqs"][str(i)], expected_seq, "right update seq number (%d) for partition %d in replica group" % (expected_seq, i + 1)) # print "Querying map view after marking partitions [4, 5] for cleanup" (resp, view_result) = common.query(self._params, "mapview") expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 7]) self.assertEqual(len(view_result["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(view_result) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in view_result["rows"]: all_keys[row["key"]] = row["value"] for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 7 in view result") # print "Querying reduce view, with ?group=false, after marking partitions [4, 5] for cleanup" (resp, red_view_result_nogroup) = common.query(self._params, "redview", {"stale": "ok"}) expected_reduce_value = common.set_doc_count(self._params, [0, 1, 2, 3, 7]) self.assertEqual(len(red_view_result_nogroup["rows"]), 1, "Query returned 1 row") self.assertTrue(red_view_result_nogroup["rows"][0]["key"] is None, "Key is null") self.assertEqual(red_view_result_nogroup["rows"][0]["value"], expected_reduce_value, "Reduce value is %d with ?group=false" % expected_reduce_value) # print "Querying reduce view, with ?group=true, after marking partitions [4, 5] for cleanup" (resp, red_view_result_group) = common.query(self._params, "redview", {"group": "true", "stale": "ok"}) expected_row_count = common.set_doc_count(self._params, [0, 1, 2, 3, 7]) self.assertEqual(len(red_view_result_group["rows"]), expected_row_count, "Query returned %d rows" % expected_row_count) common.test_keys_sorted(red_view_result_group) doc_count = common.set_doc_count(self._params, [0, 1, 2, 3, 4, 5, 6, 7]) all_keys = {} for row in red_view_result_group["rows"]: all_keys[row["key"]] = row["value"] self.assertEqual(row["value"], 1, "Value for key %d is 1" % row["key"]) for key in xrange(1, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 0 in view result") for key in xrange(2, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 1 in view result") for key in xrange(3, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 2 in view result") for key in xrange(4, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 3 in view result") for key in xrange(5, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 4 not in view result") for key in xrange(6, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 5 not in view result") for key in xrange(7, doc_count, self._params["nparts"]): self.assertFalse(key in all_keys, "Key from partition 6 not in view result") for key in xrange(8, doc_count, self._params["nparts"]): self.assertTrue(key in all_keys, "Key from partition 7 in view result") def restart_compare_info(self, info_before, info_after): # print "Restarting server" time.sleep(1) common.restart_server(self._params) del info_before["stats"] del info_before["replica_group_info"]["stats"] del info_after["stats"] del info_after["replica_group_info"]["stats"] self.assertEqual(info_after, info_before, "same index state after server restart")
61.828083
133
0.626647
9,188
68,691
4.500327
0.022094
0.060703
0.045273
0.06791
0.960894
0.94827
0.937774
0.929648
0.915911
0.905076
0
0.022847
0.247471
68,691
1,110
134
61.883784
0.777064
0.083563
0
0.865604
0
0
0.283792
0.000334
0
0
0
0
0.370159
1
0.004556
false
0.058087
0.009112
0
0.014806
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
ef396b6786f6ac953b59378fc0a8c6561eadcdd2
121
py
Python
tests/test_root_privileges.py
R3tr074/Burn-Byte
6e82aa2d38460ffc299c387a652a1441aef49240
[ "CC0-1.0" ]
50
2020-10-04T07:25:35.000Z
2022-02-24T03:52:16.000Z
tests/test_root_privileges.py
R3tr074/Burn-Byte
6e82aa2d38460ffc299c387a652a1441aef49240
[ "CC0-1.0" ]
4
2021-06-08T13:17:18.000Z
2022-01-13T13:37:37.000Z
tests/test_root_privileges.py
R3tr074/Burn-Byte
6e82aa2d38460ffc299c387a652a1441aef49240
[ "CC0-1.0" ]
4
2020-10-05T02:32:06.000Z
2021-01-31T23:25:47.000Z
from bin.addons.utils import root_privileges def test_root_privileges(): assert root_privileges() == False or True
20.166667
45
0.77686
17
121
5.294118
0.764706
0.466667
0
0
0
0
0
0
0
0
0
0
0.14876
121
5
46
24.2
0.873786
0
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
ef44bb6bab6915bcd4d6c5cef2540784a2059337
667
py
Python
swagccg/__init__.py
erkandem/swagccg-py2py
7e388f980f5d47ac6ff202b8ed0818e50c7be574
[ "BSD-3-Clause" ]
null
null
null
swagccg/__init__.py
erkandem/swagccg-py2py
7e388f980f5d47ac6ff202b8ed0818e50c7be574
[ "BSD-3-Clause" ]
null
null
null
swagccg/__init__.py
erkandem/swagccg-py2py
7e388f980f5d47ac6ff202b8ed0818e50c7be574
[ "BSD-3-Clause" ]
null
null
null
try: from .src import ( client_point_of_execution_f, client_method_template_f, client_class_def_template_f, client_imports_f ) from .src import ( main, convert_to_snake_case, create_client_endpoints, seems_like_a_url ) except ImportError: from swagccg.src import ( client_point_of_execution_f, client_method_template_f, client_class_def_template_f, client_imports_f ) from swagccg.src import ( main, convert_to_snake_case, create_client_endpoints, seems_like_a_url ) print('Alternative import used')
21.516129
36
0.641679
79
667
4.886076
0.392405
0.108808
0.15544
0.103627
0.823834
0.823834
0.823834
0.823834
0.823834
0.823834
0
0
0.313343
667
30
37
22.233333
0.842795
0
0
0.740741
0
0
0.034586
0
0
0
0
0
0
1
0
true
0
0.296296
0
0.296296
0.037037
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
8
3269a1dd2b48b5f44fb7c594ce3fbf1688cf5099
93
py
Python
shenanigan/models/__init__.py
deepmagd/shenaniGAN
02f83aec1291c2a2a8821b3a0c162264075157bb
[ "MIT" ]
1
2019-12-13T22:32:50.000Z
2019-12-13T22:32:50.000Z
shenanigan/models/__init__.py
deepmagd/shenaniGAN
02f83aec1291c2a2a8821b3a0c162264075157bb
[ "MIT" ]
40
2020-05-05T08:16:31.000Z
2022-03-12T00:19:16.000Z
shenanigan/models/__init__.py
deepmagd/TexrayGAN
02f83aec1291c2a2a8821b3a0c162264075157bb
[ "MIT" ]
null
null
null
from .core import ConditionalGAN from .core import Generator from .core import Discriminator
23.25
32
0.83871
12
93
6.5
0.5
0.307692
0.538462
0
0
0
0
0
0
0
0
0
0.129032
93
3
33
31
0.962963
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
328f116d2d174e153ba27bd184d89acff3415118
26,509
py
Python
trainers/shadow_relight_trainer.py
NeilDG/NeuralNets-Experiment3
f0d2f788eeca49f803f65810c155491ce687cf9e
[ "MIT" ]
null
null
null
trainers/shadow_relight_trainer.py
NeilDG/NeuralNets-Experiment3
f0d2f788eeca49f803f65810c155491ce687cf9e
[ "MIT" ]
null
null
null
trainers/shadow_relight_trainer.py
NeilDG/NeuralNets-Experiment3
f0d2f788eeca49f803f65810c155491ce687cf9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Shading trainer used for training. import kornia from model import ffa_gan as ffa from model import vanilla_cycle_gan as cycle_gan from model import unet_gan import constants import torch import torch.cuda.amp as amp import itertools import numpy as np import torch.nn as nn from utils import plot_utils from utils import tensor_utils from custom_losses import ssim_loss import lpips class ShadowRelightTrainer: def __init__(self, gpu_device, opts, use_bce): self.gpu_device = gpu_device self.g_lr = opts.g_lr self.d_lr = opts.d_lr self.use_bce = use_bce self.lpips_loss = lpips.LPIPS(net='vgg').to(self.gpu_device) self.ssim_loss = ssim_loss.SSIM() self.l1_loss = nn.L1Loss() self.bce_loss = nn.BCEWithLogitsLoss() num_blocks = opts.num_blocks self.batch_size = opts.batch_size net_config = opts.net_config if (net_config == 1): self.G_A = cycle_gan.Generator(input_nc=2, output_nc=1, n_residual_blocks=num_blocks).to(self.gpu_device) elif (net_config == 2): self.G_A = unet_gan.UnetGenerator(input_nc=2, output_nc=1, num_downs=num_blocks).to(self.gpu_device) else: self.G_A = cycle_gan.Generator(input_nc=2, output_nc=1, n_residual_blocks=num_blocks, has_dropout=False).to(self.gpu_device) self.D_A = cycle_gan.Discriminator(input_nc=1, use_bce=self.use_bce).to(self.gpu_device) # use CycleGAN's discriminator self.visdom_reporter = plot_utils.VisdomReporter() self.optimizerG = torch.optim.Adam(itertools.chain(self.G_A.parameters()), lr=self.g_lr) self.optimizerD = torch.optim.Adam(itertools.chain(self.D_A.parameters()), lr=self.d_lr) self.schedulerG = torch.optim.lr_scheduler.ReduceLROnPlateau(self.optimizerG, patience=100000 / self.batch_size, threshold=0.00005) self.schedulerD = torch.optim.lr_scheduler.ReduceLROnPlateau(self.optimizerD, patience=100000 / self.batch_size, threshold=0.00005) self.initialize_dict() self.fp16_scaler = amp.GradScaler() # for automatic mixed precision def initialize_dict(self): # what to store in visdom? self.losses_dict = {} self.losses_dict[constants.G_LOSS_KEY] = [] self.losses_dict[constants.D_OVERALL_LOSS_KEY] = [] self.losses_dict[constants.LIKENESS_LOSS_KEY] = [] self.losses_dict[constants.LPIP_LOSS_KEY] = [] self.losses_dict[constants.SSIM_LOSS_KEY] = [] self.losses_dict[constants.G_ADV_LOSS_KEY] = [] self.losses_dict[constants.D_A_FAKE_LOSS_KEY] = [] self.losses_dict[constants.D_A_REAL_LOSS_KEY] = [] self.caption_dict = {} self.caption_dict[constants.G_LOSS_KEY] = "G loss per iteration" self.caption_dict[constants.D_OVERALL_LOSS_KEY] = "D loss per iteration" self.caption_dict[constants.LIKENESS_LOSS_KEY] = "L1 loss per iteration" self.caption_dict[constants.LPIP_LOSS_KEY] = "LPIPS loss per iteration" self.caption_dict[constants.SSIM_LOSS_KEY] = "SSIM loss per iteration" self.caption_dict[constants.G_ADV_LOSS_KEY] = "G adv loss per iteration" self.caption_dict[constants.D_A_FAKE_LOSS_KEY] = "D(A) fake loss per iteration" self.caption_dict[constants.D_A_REAL_LOSS_KEY] = "D(A) real loss per iteration" def normalize(self, light_angle): std = light_angle / 360.0 min = -1.0 max = 1.0 scaled = std * (max - min) + min return scaled def adversarial_loss(self, pred, target): if (self.use_bce == 0): return self.l1_loss(pred, target) else: return self.bce_loss(pred, target) def l1_loss(self, pred, target): return self.l1_loss(pred, target) def bce_loss_term(self, pred, target): return self.bce_loss(pred, target) def lpip_loss(self, pred, target): result = torch.squeeze(self.lpips_loss(pred, target)) result = torch.mean(result) return result def ssim_loss(self, pred, target): return kornia.losses.ssim_loss(pred, target) def update_penalties(self, adv_weight, l1_weight, lpip_weight, ssim_weight, bce_weight): # what penalties to use for losses? self.adv_weight = adv_weight self.l1_weight = l1_weight self.lpip_weight = lpip_weight self.ssim_weight = ssim_weight self.bce_weight = bce_weight print("Version: ", constants.SHADOWMAP_RELIGHT_CHECKPATH) print("Learning rate for G: ", str(self.g_lr)) print("Learning rate for D: ", str(self.d_lr)) print("====================================") print("Adv weight: ", str(self.adv_weight)) print("Likeness weight: ", str(self.l1_weight)) print("LPIP weight: ", str(self.lpip_weight)) print("SSIM weight: ", str(self.ssim_weight)) print("BCE weight: ", str(self.bce_weight)) def prepare_input(self, a_tensor, light_angle): # light_angle = self.normalize(light_angle) # light_angle_tensor = torch.unsqueeze(torch.full_like(a_tensor[:, 0, :, :], light_angle), 1) # print("Shapes: ", np.shape(a_tensor), np.shape(light_angle)) concat_input = torch.cat([a_tensor, light_angle], 1) return concat_input def train(self, a_tensor, b_tensor, light_angle): with amp.autocast(): a2b = self.G_A(self.prepare_input(a_tensor, light_angle)) self.D_A.train() self.optimizerD.zero_grad() prediction = self.D_A(b_tensor) real_tensor = torch.ones_like(prediction) fake_tensor = torch.zeros_like(prediction) # print("A2B shape: ", np.shape(a2b)) D_A_real_loss = self.adversarial_loss(self.D_A(b_tensor), real_tensor) * self.adv_weight D_A_fake_loss = self.adversarial_loss(self.D_A(a2b.detach()), fake_tensor) * self.adv_weight errD = D_A_real_loss + D_A_fake_loss self.fp16_scaler.scale(errD).backward() if (self.fp16_scaler.scale(errD).item() > 0.2): self.fp16_scaler.step(self.optimizerD) self.schedulerD.step(errD) self.G_A.train() self.optimizerG.zero_grad() a2b = self.G_A(self.prepare_input(a_tensor, light_angle)) likeness_loss = self.l1_loss(a2b, b_tensor) * self.l1_weight lpip_loss = self.lpip_loss(a2b, b_tensor) * self.lpip_weight ssim_loss = self.ssim_loss(a2b, b_tensor) * self.ssim_weight bce_loss_val = self.bce_loss_term(a2b, b_tensor) * self.bce_weight prediction = self.D_A(a2b) real_tensor = torch.ones_like(prediction) A_adv_loss = self.adversarial_loss(prediction, real_tensor) * self.adv_weight errG = A_adv_loss + likeness_loss + lpip_loss + ssim_loss + bce_loss_val self.fp16_scaler.scale(errG).backward() self.fp16_scaler.step(self.optimizerG) self.schedulerG.step(errG) self.fp16_scaler.update() # what to put to losses dict for visdom reporting? self.losses_dict[constants.G_LOSS_KEY].append(errG.item()) self.losses_dict[constants.D_OVERALL_LOSS_KEY].append(errD.item()) self.losses_dict[constants.LIKENESS_LOSS_KEY].append(likeness_loss.item()) self.losses_dict[constants.LPIP_LOSS_KEY].append(lpip_loss.item()) self.losses_dict[constants.SSIM_LOSS_KEY].append(ssim_loss.item()) self.losses_dict[constants.G_ADV_LOSS_KEY].append(A_adv_loss.item()) self.losses_dict[constants.D_A_FAKE_LOSS_KEY].append(D_A_fake_loss.item()) self.losses_dict[constants.D_A_REAL_LOSS_KEY].append(D_A_real_loss.item()) def test(self, a_tensor, light_angle): with torch.no_grad(): a2b = self.G_A(self.prepare_input(a_tensor, light_angle)) return a2b def visdom_plot(self, iteration): self.visdom_reporter.plot_finegrain_loss("a2b_loss", iteration, self.losses_dict, self.caption_dict, constants.SHADOWMAP_RELIGHT_CHECKPATH) def visdom_visualize(self, a_tensor, b_tensor, light_angle, a_test, b_test, light_angle_test): with torch.no_grad(): a2b = self.G_A(self.prepare_input(a_tensor, light_angle)) test_a2b = self.G_A(self.prepare_input(a_test, light_angle_test)) self.visdom_reporter.plot_image(a_tensor, "Training A images - " + constants.SHADOWMAP_RELIGHT_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(a2b, "Training A2B images - " + constants.SHADOWMAP_RELIGHT_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(b_tensor, "B images - " + constants.SHADOWMAP_RELIGHT_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(a_test, "Test A images - " + constants.SHADOWMAP_RELIGHT_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(test_a2b, "Test A2B images - " + constants.SHADOWMAP_RELIGHT_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(b_test, "Test B images - " + constants.SHADOWMAP_RELIGHT_VERSION + constants.ITERATION) def load_saved_state(self, checkpoint): self.G_A.load_state_dict(checkpoint[constants.GENERATOR_KEY + "A"]) self.D_A.load_state_dict(checkpoint[constants.DISCRIMINATOR_KEY + "A"]) self.optimizerG.load_state_dict(checkpoint[constants.GENERATOR_KEY + constants.OPTIMIZER_KEY]) self.optimizerD.load_state_dict(checkpoint[constants.DISCRIMINATOR_KEY + constants.OPTIMIZER_KEY]) self.schedulerG.load_state_dict(checkpoint[constants.GENERATOR_KEY + "scheduler"]) self.schedulerD.load_state_dict(checkpoint[constants.DISCRIMINATOR_KEY + "scheduler"]) def save_states_checkpt(self, epoch, iteration, last_metric): save_dict = {'epoch': epoch, 'iteration': iteration, constants.LAST_METRIC_KEY: last_metric} netGA_state_dict = self.G_A.state_dict() netDA_state_dict = self.D_A.state_dict() optimizerG_state_dict = self.optimizerG.state_dict() optimizerD_state_dict = self.optimizerD.state_dict() schedulerG_state_dict = self.schedulerG.state_dict() schedulerD_state_dict = self.schedulerD.state_dict() save_dict[constants.GENERATOR_KEY + "A"] = netGA_state_dict save_dict[constants.DISCRIMINATOR_KEY + "A"] = netDA_state_dict save_dict[constants.GENERATOR_KEY + constants.OPTIMIZER_KEY] = optimizerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + constants.OPTIMIZER_KEY] = optimizerD_state_dict save_dict[constants.GENERATOR_KEY + "scheduler"] = schedulerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + "scheduler"] = schedulerD_state_dict torch.save(save_dict, constants.SHADOWMAP_RELIGHT_CHECKPATH + ".checkpt") print("Saved model state: %s Epoch: %d" % (len(save_dict), (epoch + 1))) def save_states(self, epoch, iteration, last_metric): save_dict = {'epoch': epoch, 'iteration': iteration, constants.LAST_METRIC_KEY: last_metric} netGA_state_dict = self.G_A.state_dict() netDA_state_dict = self.D_A.state_dict() optimizerG_state_dict = self.optimizerG.state_dict() optimizerD_state_dict = self.optimizerD.state_dict() schedulerG_state_dict = self.schedulerG.state_dict() schedulerD_state_dict = self.schedulerD.state_dict() save_dict[constants.GENERATOR_KEY + "A"] = netGA_state_dict save_dict[constants.DISCRIMINATOR_KEY + "A"] = netDA_state_dict save_dict[constants.GENERATOR_KEY + constants.OPTIMIZER_KEY] = optimizerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + constants.OPTIMIZER_KEY] = optimizerD_state_dict save_dict[constants.GENERATOR_KEY + "scheduler"] = schedulerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + "scheduler"] = schedulerD_state_dict torch.save(save_dict, constants.SHADOWMAP_RELIGHT_CHECKPATH) print("Saved model state: %s Epoch: %d" % (len(save_dict), (epoch + 1))) class ShadowCustomGeneratorV1(cycle_gan.Generator): def __init__(self, input_nc=3, output_nc=3, downsampling_blocks = 2, n_residual_blocks=6, has_dropout = True): cycle_gan.Generator.__init__(self, input_nc, output_nc, downsampling_blocks, n_residual_blocks, has_dropout) def set_shadow_input(self, input_shadow_tensor): self.input_shadow_tensor = input_shadow_tensor def forward(self, x): return super().forward(x) * self.input_shadow_tensor class ShadowCustomGeneratorV2(unet_gan.UnetGenerator): def __init__(self, input_nc, output_nc, num_downs, ngf=64, norm_layer=nn.BatchNorm2d, use_dropout=False, gpu_ids=[]): unet_gan.UnetGenerator.__init__(self, input_nc, output_nc, num_downs, ngf, norm_layer, use_dropout, gpu_ids) def set_shadow_input(self, input_shadow_tensor): self.input_shadow_tensor = input_shadow_tensor def forward(self, x): return super().forward(x) * self.input_shadow_tensor class ShadowRelightTrainerRGB: def __init__(self, gpu_device, opts, use_bce): self.gpu_device = gpu_device self.g_lr = opts.g_lr self.d_lr = opts.d_lr self.use_bce = use_bce self.default_light_color = "255,255,255" self.lpips_loss = lpips.LPIPS(net='vgg').to(self.gpu_device) self.ssim_loss = ssim_loss.SSIM() self.l1_loss = nn.L1Loss() self.bce_loss = nn.BCEWithLogitsLoss() num_blocks = opts.num_blocks self.batch_size = opts.batch_size net_config = opts.net_config if (net_config == 1): self.G_A = cycle_gan.Generator(input_nc=5, output_nc=1, n_residual_blocks=num_blocks).to(self.gpu_device) elif (net_config == 2): self.G_A = unet_gan.UnetGenerator(input_nc=5, output_nc=1, num_downs=num_blocks).to(self.gpu_device) elif(net_config == 3): self.G_A = cycle_gan.Generator(input_nc=5, output_nc=1, n_residual_blocks=num_blocks, has_dropout=False).to(self.gpu_device) elif (net_config == 4): self.G_A = ShadowCustomGeneratorV1(input_nc=5, output_nc=1, n_residual_blocks=num_blocks, has_dropout=False).to(self.gpu_device) else: self.G_A = ShadowCustomGeneratorV2(input_nc=5, output_nc=1, num_downs=num_blocks).to(self.gpu_device) self.D_A = cycle_gan.Discriminator(input_nc=1, use_bce=self.use_bce).to(self.gpu_device) # use CycleGAN's discriminator self.visdom_reporter = plot_utils.VisdomReporter() self.optimizerG = torch.optim.Adam(itertools.chain(self.G_A.parameters()), lr=self.g_lr) self.optimizerD = torch.optim.Adam(itertools.chain(self.D_A.parameters()), lr=self.d_lr) self.schedulerG = torch.optim.lr_scheduler.ReduceLROnPlateau(self.optimizerG, patience=100000 / self.batch_size, threshold=0.00005) self.schedulerD = torch.optim.lr_scheduler.ReduceLROnPlateau(self.optimizerD, patience=100000 / self.batch_size, threshold=0.00005) self.initialize_dict() self.fp16_scaler = amp.GradScaler() # for automatic mixed precision def initialize_dict(self): # what to store in visdom? self.losses_dict = {} self.losses_dict[constants.G_LOSS_KEY] = [] self.losses_dict[constants.D_OVERALL_LOSS_KEY] = [] self.losses_dict[constants.LIKENESS_LOSS_KEY] = [] self.losses_dict[constants.LPIP_LOSS_KEY] = [] self.losses_dict[constants.SSIM_LOSS_KEY] = [] self.losses_dict[constants.G_ADV_LOSS_KEY] = [] self.losses_dict[constants.D_A_FAKE_LOSS_KEY] = [] self.losses_dict[constants.D_A_REAL_LOSS_KEY] = [] self.RGB_RECONSTRUCTION_LOSS_KEY = "RGB_RECONSTRUCTION_LOSS_KEY" self.losses_dict[self.RGB_RECONSTRUCTION_LOSS_KEY] = [] self.caption_dict = {} self.caption_dict[constants.G_LOSS_KEY] = "G loss per iteration" self.caption_dict[constants.D_OVERALL_LOSS_KEY] = "D loss per iteration" self.caption_dict[constants.LIKENESS_LOSS_KEY] = "L1 loss per iteration" self.caption_dict[constants.LPIP_LOSS_KEY] = "LPIPS loss per iteration" self.caption_dict[constants.SSIM_LOSS_KEY] = "SSIM loss per iteration" self.caption_dict[constants.G_ADV_LOSS_KEY] = "G adv loss per iteration" self.caption_dict[constants.D_A_FAKE_LOSS_KEY] = "D(A) fake loss per iteration" self.caption_dict[constants.D_A_REAL_LOSS_KEY] = "D(A) real loss per iteration" self.caption_dict[self.RGB_RECONSTRUCTION_LOSS_KEY] = "RGB Reconstruction loss per iteration" def adversarial_loss(self, pred, target): if (self.use_bce == 0): return self.l1_loss(pred, target) else: return self.bce_loss(pred, target) def l1_loss(self, pred, target): return self.l1_loss(pred, target) def bce_loss_term(self, pred, target): return self.bce_loss(pred, target) def lpip_loss(self, pred, target): result = torch.squeeze(self.lpips_loss(pred, target)) result = torch.mean(result) return result def ssim_loss(self, pred, target): return kornia.losses.ssim_loss(pred, target) def update_penalties(self, adv_weight, l1_weight, lpip_weight, ssim_weight, bce_weight): # what penalties to use for losses? self.adv_weight = adv_weight self.l1_weight = l1_weight self.lpip_weight = lpip_weight self.ssim_weight = ssim_weight self.bce_weight = bce_weight print("Version: ", constants.SHADOWMAP_RELIGHT_CHECKPATH) print("Learning rate for G: ", str(self.g_lr)) print("Learning rate for D: ", str(self.d_lr)) print("====================================") print("Adv weight: ", str(self.adv_weight)) print("Likeness weight: ", str(self.l1_weight)) print("LPIP weight: ", str(self.lpip_weight)) print("SSIM weight: ", str(self.ssim_weight)) print("BCE weight: ", str(self.bce_weight)) def prepare_input(self, input_shadow_tensor, input_rgb_tensor, light_angle): # light_angle = self.normalize(light_angle) # light_angle_tensor = torch.unsqueeze(torch.full_like(a_tensor[:, 0, :, :], light_angle), 1) # print("Shapes: ", np.shape(a_tensor), np.shape(light_angle)) concat_input = torch.cat([input_shadow_tensor, input_rgb_tensor, light_angle], 1) return concat_input def train(self, input_rgb_tensor, input_shadow_tensor, light_angle_tensor, albedo_tensor, shading_tensor, target_shadow_tensor, target_rgb_tensor): with amp.autocast(): self.G_A.set_shadow_input(input_shadow_tensor) shadow_like = self.G_A(self.prepare_input(input_shadow_tensor, input_rgb_tensor, light_angle_tensor)) self.D_A.train() self.optimizerD.zero_grad() prediction = self.D_A(target_shadow_tensor) real_tensor = torch.ones_like(prediction) fake_tensor = torch.zeros_like(prediction) # print("A2B shape: ", np.shape(a2b)) D_A_real_loss = self.adversarial_loss(self.D_A(target_shadow_tensor), real_tensor) * self.adv_weight D_A_fake_loss = self.adversarial_loss(self.D_A(shadow_like.detach()), fake_tensor) * self.adv_weight errD = D_A_real_loss + D_A_fake_loss self.fp16_scaler.scale(errD).backward() if (self.fp16_scaler.scale(errD).item() > 0.2): self.fp16_scaler.step(self.optimizerD) self.schedulerD.step(errD) self.G_A.train() self.optimizerG.zero_grad() self.G_A.set_shadow_input(input_shadow_tensor) shadow_like = self.G_A(self.prepare_input(input_shadow_tensor, input_rgb_tensor, light_angle_tensor)) likeness_loss = self.l1_loss(shadow_like, target_shadow_tensor) * self.l1_weight lpip_loss = self.lpip_loss(shadow_like, target_shadow_tensor) * self.lpip_weight ssim_loss = self.ssim_loss(shadow_like, target_shadow_tensor) * self.ssim_weight bce_loss_val = self.bce_loss_term(shadow_like, target_shadow_tensor) * self.bce_weight prediction = self.D_A(shadow_like) real_tensor = torch.ones_like(prediction) A_adv_loss = self.adversarial_loss(prediction, real_tensor) * self.adv_weight rgb_like = tensor_utils.produce_albedo(albedo_tensor, shading_tensor, self.default_light_color, shadow_like) rgb_l1_loss = self.l1_loss(rgb_like, target_rgb_tensor) * self.l1_weight errG = A_adv_loss + likeness_loss + lpip_loss + ssim_loss + bce_loss_val + rgb_l1_loss self.fp16_scaler.scale(errG).backward() self.fp16_scaler.step(self.optimizerG) self.schedulerG.step(errG) self.fp16_scaler.update() # what to put to losses dict for visdom reporting? self.losses_dict[constants.G_LOSS_KEY].append(errG.item()) self.losses_dict[constants.D_OVERALL_LOSS_KEY].append(errD.item()) self.losses_dict[constants.LIKENESS_LOSS_KEY].append(likeness_loss.item()) self.losses_dict[constants.LPIP_LOSS_KEY].append(lpip_loss.item()) self.losses_dict[constants.SSIM_LOSS_KEY].append(ssim_loss.item()) self.losses_dict[constants.G_ADV_LOSS_KEY].append(A_adv_loss.item()) self.losses_dict[constants.D_A_FAKE_LOSS_KEY].append(D_A_fake_loss.item()) self.losses_dict[constants.D_A_REAL_LOSS_KEY].append(D_A_real_loss.item()) self.losses_dict[self.RGB_RECONSTRUCTION_LOSS_KEY].append(rgb_l1_loss.item()) def test(self, input_shadow_tensor, input_rgb_tensor, light_angle): with torch.no_grad(): self.G_A.set_shadow_input(input_shadow_tensor) a2b = self.G_A(self.prepare_input(input_shadow_tensor, input_rgb_tensor, light_angle)) return a2b def visdom_plot(self, iteration): self.visdom_reporter.plot_finegrain_loss("a2b_loss", iteration, self.losses_dict, self.caption_dict, constants.SHADOWMAP_RELIGHT_CHECKPATH) def visdom_visualize(self, input_rgb_tensor, input_shadow_tensor, light_angle_tensor, albedo_tensor, shading_tensor, target_shadow_tensor, target_rgb_tensor, label="Training"): with torch.no_grad(): self.G_A.set_shadow_input(input_shadow_tensor) shadow_like = self.G_A(self.prepare_input(input_shadow_tensor, input_rgb_tensor, light_angle_tensor)) rgb_like = tensor_utils.produce_albedo(albedo_tensor, shading_tensor, self.default_light_color, shadow_like) self.visdom_reporter.plot_image(input_rgb_tensor, str(label) + " Input RGB Images - " + constants.IID_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(rgb_like, str(label) + " RGB Reconstruction - " + constants.IID_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(target_rgb_tensor, str(label) + " Target RGB Images - " + constants.IID_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(shadow_like, str(label) + " RGB2Shadow images - " + constants.IID_VERSION + constants.ITERATION) self.visdom_reporter.plot_image(target_shadow_tensor, str(label) + " Shadow images - " + constants.IID_VERSION + constants.ITERATION) def load_saved_state(self, checkpoint): self.G_A.load_state_dict(checkpoint[constants.GENERATOR_KEY + "A"]) self.D_A.load_state_dict(checkpoint[constants.DISCRIMINATOR_KEY + "A"]) self.optimizerG.load_state_dict(checkpoint[constants.GENERATOR_KEY + constants.OPTIMIZER_KEY]) self.optimizerD.load_state_dict(checkpoint[constants.DISCRIMINATOR_KEY + constants.OPTIMIZER_KEY]) self.schedulerG.load_state_dict(checkpoint[constants.GENERATOR_KEY + "scheduler"]) self.schedulerD.load_state_dict(checkpoint[constants.DISCRIMINATOR_KEY + "scheduler"]) def save_states_checkpt(self, epoch, iteration, last_metric): save_dict = {'epoch': epoch, 'iteration': iteration, constants.LAST_METRIC_KEY: last_metric} netGA_state_dict = self.G_A.state_dict() netDA_state_dict = self.D_A.state_dict() optimizerG_state_dict = self.optimizerG.state_dict() optimizerD_state_dict = self.optimizerD.state_dict() schedulerG_state_dict = self.schedulerG.state_dict() schedulerD_state_dict = self.schedulerD.state_dict() save_dict[constants.GENERATOR_KEY + "A"] = netGA_state_dict save_dict[constants.DISCRIMINATOR_KEY + "A"] = netDA_state_dict save_dict[constants.GENERATOR_KEY + constants.OPTIMIZER_KEY] = optimizerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + constants.OPTIMIZER_KEY] = optimizerD_state_dict save_dict[constants.GENERATOR_KEY + "scheduler"] = schedulerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + "scheduler"] = schedulerD_state_dict torch.save(save_dict, constants.SHADOWMAP_RELIGHT_CHECKPATH + ".checkpt") print("Saved model state: %s Epoch: %d" % (len(save_dict), (epoch + 1))) def save_states(self, epoch, iteration, last_metric): save_dict = {'epoch': epoch, 'iteration': iteration, constants.LAST_METRIC_KEY: last_metric} netGA_state_dict = self.G_A.state_dict() netDA_state_dict = self.D_A.state_dict() optimizerG_state_dict = self.optimizerG.state_dict() optimizerD_state_dict = self.optimizerD.state_dict() schedulerG_state_dict = self.schedulerG.state_dict() schedulerD_state_dict = self.schedulerD.state_dict() save_dict[constants.GENERATOR_KEY + "A"] = netGA_state_dict save_dict[constants.DISCRIMINATOR_KEY + "A"] = netDA_state_dict save_dict[constants.GENERATOR_KEY + constants.OPTIMIZER_KEY] = optimizerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + constants.OPTIMIZER_KEY] = optimizerD_state_dict save_dict[constants.GENERATOR_KEY + "scheduler"] = schedulerG_state_dict save_dict[constants.DISCRIMINATOR_KEY + "scheduler"] = schedulerD_state_dict torch.save(save_dict, constants.SHADOWMAP_RELIGHT_CHECKPATH) print("Saved model state: %s Epoch: %d" % (len(save_dict), (epoch + 1)))
50.589695
147
0.697725
3,580
26,509
4.825978
0.062291
0.043758
0.030792
0.0426
0.93037
0.921398
0.915147
0.906349
0.885339
0.86757
0
0.009358
0.19782
26,509
524
148
50.589695
0.803104
0.03214
0
0.779188
0
0
0.051059
0.003862
0
0
0
0
0
1
0.098985
false
0
0.035533
0.020305
0.192893
0.055838
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
0864f64c0397908ab0743ed293178f78f052fdb2
8,178
py
Python
terrascript/aws/d.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/aws/d.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/aws/d.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
# terrascript/aws/d.py import terrascript class aws_acm_certificate(terrascript.Data): pass class aws_acmpca_certificate_authority(terrascript.Data): pass class aws_ami(terrascript.Data): pass class aws_ami_ids(terrascript.Data): pass class aws_api_gateway_api_key(terrascript.Data): pass class aws_api_gateway_resource(terrascript.Data): pass class aws_api_gateway_rest_api(terrascript.Data): pass class aws_api_gateway_vpc_link(terrascript.Data): pass class aws_arn(terrascript.Data): pass class aws_autoscaling_group(terrascript.Data): pass class aws_autoscaling_groups(terrascript.Data): pass class aws_availability_zone(terrascript.Data): pass class aws_availability_zones(terrascript.Data): pass class aws_batch_compute_environment(terrascript.Data): pass class aws_batch_job_queue(terrascript.Data): pass class aws_billing_service_account(terrascript.Data): pass class aws_caller_identity(terrascript.Data): pass class aws_canonical_user_id(terrascript.Data): pass class aws_cloudformation_export(terrascript.Data): pass class aws_cloudformation_stack(terrascript.Data): pass class aws_cloudhsm_v2_cluster(terrascript.Data): pass class aws_cloudtrail_service_account(terrascript.Data): pass class aws_cloudwatch_log_group(terrascript.Data): pass class aws_cognito_user_pools(terrascript.Data): pass class aws_codecommit_repository(terrascript.Data): pass class aws_cur_report_definition(terrascript.Data): pass class aws_db_cluster_snapshot(terrascript.Data): pass class aws_db_event_categories(terrascript.Data): pass class aws_db_instance(terrascript.Data): pass class aws_db_snapshot(terrascript.Data): pass class aws_dx_gateway(terrascript.Data): pass class aws_dynamodb_table(terrascript.Data): pass class aws_ebs_default_kms_key(terrascript.Data): pass class aws_ebs_encryption_by_default(terrascript.Data): pass class aws_ebs_snapshot(terrascript.Data): pass class aws_ebs_snapshot_ids(terrascript.Data): pass class aws_ebs_volume(terrascript.Data): pass class aws_ec2_transit_gateway(terrascript.Data): pass class aws_ec2_transit_gateway_dx_gateway_attachment(terrascript.Data): pass class aws_ec2_transit_gateway_route_table(terrascript.Data): pass class aws_ec2_transit_gateway_vpc_attachment(terrascript.Data): pass class aws_ec2_transit_gateway_vpn_attachment(terrascript.Data): pass class aws_ecr_image(terrascript.Data): pass class aws_ecr_repository(terrascript.Data): pass class aws_ecs_cluster(terrascript.Data): pass class aws_ecs_container_definition(terrascript.Data): pass class aws_ecs_service(terrascript.Data): pass class aws_ecs_task_definition(terrascript.Data): pass class aws_customer_gateway(terrascript.Data): pass class aws_efs_file_system(terrascript.Data): pass class aws_efs_mount_target(terrascript.Data): pass class aws_eip(terrascript.Data): pass class aws_eks_cluster(terrascript.Data): pass class aws_eks_cluster_auth(terrascript.Data): pass class aws_elastic_beanstalk_application(terrascript.Data): pass class aws_elastic_beanstalk_hosted_zone(terrascript.Data): pass class aws_elastic_beanstalk_solution_stack(terrascript.Data): pass class aws_elasticache_cluster(terrascript.Data): pass class aws_elb(terrascript.Data): pass class aws_elasticache_replication_group(terrascript.Data): pass class aws_elb_hosted_zone_id(terrascript.Data): pass class aws_elb_service_account(terrascript.Data): pass class aws_glue_script(terrascript.Data): pass class aws_iam_account_alias(terrascript.Data): pass class aws_iam_group(terrascript.Data): pass class aws_iam_instance_profile(terrascript.Data): pass class aws_iam_policy(terrascript.Data): pass class aws_iam_policy_document(terrascript.Data): pass class aws_iam_role(terrascript.Data): pass class aws_iam_server_certificate(terrascript.Data): pass class aws_iam_user(terrascript.Data): pass class aws_internet_gateway(terrascript.Data): pass class aws_iot_endpoint(terrascript.Data): pass class aws_inspector_rules_packages(terrascript.Data): pass class aws_instance(terrascript.Data): pass class aws_instances(terrascript.Data): pass class aws_ip_ranges(terrascript.Data): pass class aws_kinesis_stream(terrascript.Data): pass class aws_kms_alias(terrascript.Data): pass class aws_kms_ciphertext(terrascript.Data): pass class aws_kms_key(terrascript.Data): pass class aws_kms_secret(terrascript.Data): pass class aws_kms_secrets(terrascript.Data): pass class aws_lambda_function(terrascript.Data): pass class aws_lambda_invocation(terrascript.Data): pass class aws_lambda_layer_version(terrascript.Data): pass class aws_launch_configuration(terrascript.Data): pass class aws_launch_template(terrascript.Data): pass class aws_mq_broker(terrascript.Data): pass class aws_msk_cluster(terrascript.Data): pass class aws_msk_configuration(terrascript.Data): pass class aws_nat_gateway(terrascript.Data): pass class aws_network_acls(terrascript.Data): pass class aws_network_interface(terrascript.Data): pass class aws_network_interfaces(terrascript.Data): pass class aws_organizations_organization(terrascript.Data): pass class aws_partition(terrascript.Data): pass class aws_prefix_list(terrascript.Data): pass class aws_pricing_product(terrascript.Data): pass class aws_ram_resource_share(terrascript.Data): pass class aws_rds_cluster(terrascript.Data): pass class aws_redshift_cluster(terrascript.Data): pass class aws_redshift_service_account(terrascript.Data): pass class aws_region(terrascript.Data): pass class aws_route(terrascript.Data): pass class aws_route_table(terrascript.Data): pass class aws_route_tables(terrascript.Data): pass class aws_route53_delegation_set(terrascript.Data): pass class aws_route53_zone(terrascript.Data): pass class aws_s3_bucket(terrascript.Data): pass class aws_s3_bucket_object(terrascript.Data): pass class aws_s3_bucket_objects(terrascript.Data): pass class aws_secretsmanager_secret(terrascript.Data): pass class aws_secretsmanager_secret_version(terrascript.Data): pass class aws_servicequotas_service(terrascript.Data): pass class aws_servicequotas_service_quota(terrascript.Data): pass class aws_sns_topic(terrascript.Data): pass class aws_sqs_queue(terrascript.Data): pass class aws_ssm_document(terrascript.Data): pass class aws_ssm_parameter(terrascript.Data): pass class aws_storagegateway_local_disk(terrascript.Data): pass class aws_subnet(terrascript.Data): pass class aws_subnet_ids(terrascript.Data): pass class aws_transfer_server(terrascript.Data): pass class aws_vpcs(terrascript.Data): pass class aws_security_group(terrascript.Data): pass class aws_security_groups(terrascript.Data): pass class aws_vpc(terrascript.Data): pass class aws_vpc_dhcp_options(terrascript.Data): pass class aws_vpc_endpoint(terrascript.Data): pass class aws_vpc_endpoint_service(terrascript.Data): pass class aws_vpc_peering_connection(terrascript.Data): pass class aws_vpn_gateway(terrascript.Data): pass class aws_waf_ipset(terrascript.Data): pass class aws_waf_rule(terrascript.Data): pass class aws_waf_web_acl(terrascript.Data): pass class aws_wafregional_ipset(terrascript.Data): pass class aws_wafregional_rule(terrascript.Data): pass class aws_wafregional_web_acl(terrascript.Data): pass class aws_workspaces_bundle(terrascript.Data): pass class aws_lb(terrascript.Data): pass class aws_alb(terrascript.Data): pass class aws_lb_listener(terrascript.Data): pass class aws_alb_listener(terrascript.Data): pass class aws_lb_target_group(terrascript.Data): pass class aws_alb_target_group(terrascript.Data): pass
18.460497
70
0.784422
1,087
8,178
5.578657
0.172033
0.192612
0.457454
0.573879
0.862962
0.767975
0.253133
0.039578
0.01781
0
0
0.001856
0.143678
8,178
442
71
18.502262
0.864058
0.002446
0
0.498294
0
0
0
0
0
0
0
0
0
1
0
true
0.498294
0.003413
0
0.501706
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
7
088458d803902bd64922bf951b93cad3d74a78c1
3,112
py
Python
listshuffler-be/tests/integration/test_instance.py
csiztom/listshuffler
d4fea7da3d506e93cca4a8e79c6f0ba98aebbac5
[ "MIT" ]
null
null
null
listshuffler-be/tests/integration/test_instance.py
csiztom/listshuffler
d4fea7da3d506e93cca4a8e79c6f0ba98aebbac5
[ "MIT" ]
null
null
null
listshuffler-be/tests/integration/test_instance.py
csiztom/listshuffler
d4fea7da3d506e93cca4a8e79c6f0ba98aebbac5
[ "MIT" ]
null
null
null
from lambda_client import lambda_client import json from unittest import TestCase class TestInstance(TestCase): def test_nonexistent(self): response = lambda_client().invoke(FunctionName="testGetInstance", Payload=json.dumps({"queryStringParameters": {'adminID': 'tada'}, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 404 def test_create(self): client = lambda_client() response = client.invoke(FunctionName="testPostInstance", Payload=json.dumps({"queryStringParameters": None, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 200 admin_id = json.loads(payload['body'])['adminID'] response = client.invoke(FunctionName="testGetInstance", Payload=json.dumps({"queryStringParameters": {'adminID': admin_id}, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 200 def test_edit(self): client = lambda_client() response = client.invoke(FunctionName="testPostInstance", Payload=json.dumps({"queryStringParameters": None, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 200 admin_id = json.loads(payload['body'])['adminID'] response = client.invoke(FunctionName="testPatchInstance", Payload=json.dumps({"queryStringParameters": {'adminID': admin_id, 'preset': 'christmas'}, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 200 response = client.invoke(FunctionName="testGetInstance", Payload=json.dumps({"queryStringParameters": {'adminID': admin_id}, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 200 assert json.loads(payload['body'])['preset'] == 'christmas' def test_delete(self): client = lambda_client() response = client.invoke(FunctionName="testPostInstance", Payload=json.dumps({"queryStringParameters": None, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 200 admin_id = json.loads(payload['body'])['adminID'] response = client.invoke(FunctionName="testDeleteInstance", Payload=json.dumps({"queryStringParameters": {'adminID': admin_id}, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 200 response = client.invoke(FunctionName="testGetInstance", Payload=json.dumps({"queryStringParameters": {'adminID': admin_id}, "body": None})) payload = json.loads(response['Payload'].read()) assert payload['statusCode'] == 404
54.596491
139
0.604113
280
3,112
6.65
0.142857
0.106337
0.116004
0.17884
0.858754
0.858754
0.858754
0.831364
0.831364
0.786788
0
0.011553
0.249036
3,112
56
140
55.571429
0.785195
0
0
0.72549
0
0
0.203728
0.060733
0
0
0
0
0.196078
1
0.078431
false
0
0.058824
0
0.156863
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
3eace43f20a99d7a69ab9e14492a8bf01bea415a
27,465
py
Python
sdk/python/pulumi_vault/mount.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
10
2019-10-07T17:44:18.000Z
2022-03-30T20:46:33.000Z
sdk/python/pulumi_vault/mount.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
79
2019-10-11T18:13:07.000Z
2022-03-31T21:09:41.000Z
sdk/python/pulumi_vault/mount.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
2
2019-10-28T10:08:40.000Z
2020-03-17T14:20:55.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['MountArgs', 'Mount'] @pulumi.input_type class MountArgs: def __init__(__self__, *, path: pulumi.Input[str], type: pulumi.Input[str], default_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, external_entropy_access: Optional[pulumi.Input[bool]] = None, local: Optional[pulumi.Input[bool]] = None, max_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, options: Optional[pulumi.Input[Mapping[str, Any]]] = None, seal_wrap: Optional[pulumi.Input[bool]] = None): """ The set of arguments for constructing a Mount resource. :param pulumi.Input[str] path: Where the secret backend will be mounted :param pulumi.Input[str] type: Type of the backend, such as "aws" :param pulumi.Input[int] default_lease_ttl_seconds: Default lease duration for tokens and secrets in seconds :param pulumi.Input[str] description: Human-friendly description of the mount :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[Mapping[str, Any]] options: Specifies mount type specific options that are passed to the backend :param pulumi.Input[bool] seal_wrap: Boolean flag that can be explicitly set to true to enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability """ pulumi.set(__self__, "path", path) pulumi.set(__self__, "type", type) if default_lease_ttl_seconds is not None: pulumi.set(__self__, "default_lease_ttl_seconds", default_lease_ttl_seconds) if description is not None: pulumi.set(__self__, "description", description) if external_entropy_access is not None: pulumi.set(__self__, "external_entropy_access", external_entropy_access) if local is not None: pulumi.set(__self__, "local", local) if max_lease_ttl_seconds is not None: pulumi.set(__self__, "max_lease_ttl_seconds", max_lease_ttl_seconds) if options is not None: pulumi.set(__self__, "options", options) if seal_wrap is not None: pulumi.set(__self__, "seal_wrap", seal_wrap) @property @pulumi.getter def path(self) -> pulumi.Input[str]: """ Where the secret backend will be mounted """ return pulumi.get(self, "path") @path.setter def path(self, value: pulumi.Input[str]): pulumi.set(self, "path", value) @property @pulumi.getter def type(self) -> pulumi.Input[str]: """ Type of the backend, such as "aws" """ return pulumi.get(self, "type") @type.setter def type(self, value: pulumi.Input[str]): pulumi.set(self, "type", value) @property @pulumi.getter(name="defaultLeaseTtlSeconds") def default_lease_ttl_seconds(self) -> Optional[pulumi.Input[int]]: """ Default lease duration for tokens and secrets in seconds """ return pulumi.get(self, "default_lease_ttl_seconds") @default_lease_ttl_seconds.setter def default_lease_ttl_seconds(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "default_lease_ttl_seconds", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ Human-friendly description of the mount """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="externalEntropyAccess") def external_entropy_access(self) -> Optional[pulumi.Input[bool]]: """ Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source """ return pulumi.get(self, "external_entropy_access") @external_entropy_access.setter def external_entropy_access(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "external_entropy_access", value) @property @pulumi.getter def local(self) -> Optional[pulumi.Input[bool]]: """ Boolean flag that can be explicitly set to true to enforce local mount in HA environment """ return pulumi.get(self, "local") @local.setter def local(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "local", value) @property @pulumi.getter(name="maxLeaseTtlSeconds") def max_lease_ttl_seconds(self) -> Optional[pulumi.Input[int]]: """ Maximum possible lease duration for tokens and secrets in seconds """ return pulumi.get(self, "max_lease_ttl_seconds") @max_lease_ttl_seconds.setter def max_lease_ttl_seconds(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "max_lease_ttl_seconds", value) @property @pulumi.getter def options(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ Specifies mount type specific options that are passed to the backend """ return pulumi.get(self, "options") @options.setter def options(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "options", value) @property @pulumi.getter(name="sealWrap") def seal_wrap(self) -> Optional[pulumi.Input[bool]]: """ Boolean flag that can be explicitly set to true to enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability """ return pulumi.get(self, "seal_wrap") @seal_wrap.setter def seal_wrap(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "seal_wrap", value) @pulumi.input_type class _MountState: def __init__(__self__, *, accessor: Optional[pulumi.Input[str]] = None, default_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, external_entropy_access: Optional[pulumi.Input[bool]] = None, local: Optional[pulumi.Input[bool]] = None, max_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, options: Optional[pulumi.Input[Mapping[str, Any]]] = None, path: Optional[pulumi.Input[str]] = None, seal_wrap: Optional[pulumi.Input[bool]] = None, type: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering Mount resources. :param pulumi.Input[str] accessor: The accessor for this mount. :param pulumi.Input[int] default_lease_ttl_seconds: Default lease duration for tokens and secrets in seconds :param pulumi.Input[str] description: Human-friendly description of the mount :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[Mapping[str, Any]] options: Specifies mount type specific options that are passed to the backend :param pulumi.Input[str] path: Where the secret backend will be mounted :param pulumi.Input[bool] seal_wrap: Boolean flag that can be explicitly set to true to enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability :param pulumi.Input[str] type: Type of the backend, such as "aws" """ if accessor is not None: pulumi.set(__self__, "accessor", accessor) if default_lease_ttl_seconds is not None: pulumi.set(__self__, "default_lease_ttl_seconds", default_lease_ttl_seconds) if description is not None: pulumi.set(__self__, "description", description) if external_entropy_access is not None: pulumi.set(__self__, "external_entropy_access", external_entropy_access) if local is not None: pulumi.set(__self__, "local", local) if max_lease_ttl_seconds is not None: pulumi.set(__self__, "max_lease_ttl_seconds", max_lease_ttl_seconds) if options is not None: pulumi.set(__self__, "options", options) if path is not None: pulumi.set(__self__, "path", path) if seal_wrap is not None: pulumi.set(__self__, "seal_wrap", seal_wrap) if type is not None: pulumi.set(__self__, "type", type) @property @pulumi.getter def accessor(self) -> Optional[pulumi.Input[str]]: """ The accessor for this mount. """ return pulumi.get(self, "accessor") @accessor.setter def accessor(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "accessor", value) @property @pulumi.getter(name="defaultLeaseTtlSeconds") def default_lease_ttl_seconds(self) -> Optional[pulumi.Input[int]]: """ Default lease duration for tokens and secrets in seconds """ return pulumi.get(self, "default_lease_ttl_seconds") @default_lease_ttl_seconds.setter def default_lease_ttl_seconds(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "default_lease_ttl_seconds", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ Human-friendly description of the mount """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="externalEntropyAccess") def external_entropy_access(self) -> Optional[pulumi.Input[bool]]: """ Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source """ return pulumi.get(self, "external_entropy_access") @external_entropy_access.setter def external_entropy_access(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "external_entropy_access", value) @property @pulumi.getter def local(self) -> Optional[pulumi.Input[bool]]: """ Boolean flag that can be explicitly set to true to enforce local mount in HA environment """ return pulumi.get(self, "local") @local.setter def local(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "local", value) @property @pulumi.getter(name="maxLeaseTtlSeconds") def max_lease_ttl_seconds(self) -> Optional[pulumi.Input[int]]: """ Maximum possible lease duration for tokens and secrets in seconds """ return pulumi.get(self, "max_lease_ttl_seconds") @max_lease_ttl_seconds.setter def max_lease_ttl_seconds(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "max_lease_ttl_seconds", value) @property @pulumi.getter def options(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ Specifies mount type specific options that are passed to the backend """ return pulumi.get(self, "options") @options.setter def options(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "options", value) @property @pulumi.getter def path(self) -> Optional[pulumi.Input[str]]: """ Where the secret backend will be mounted """ return pulumi.get(self, "path") @path.setter def path(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "path", value) @property @pulumi.getter(name="sealWrap") def seal_wrap(self) -> Optional[pulumi.Input[bool]]: """ Boolean flag that can be explicitly set to true to enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability """ return pulumi.get(self, "seal_wrap") @seal_wrap.setter def seal_wrap(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "seal_wrap", value) @property @pulumi.getter def type(self) -> Optional[pulumi.Input[str]]: """ Type of the backend, such as "aws" """ return pulumi.get(self, "type") @type.setter def type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "type", value) class Mount(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, default_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, external_entropy_access: Optional[pulumi.Input[bool]] = None, local: Optional[pulumi.Input[bool]] = None, max_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, options: Optional[pulumi.Input[Mapping[str, Any]]] = None, path: Optional[pulumi.Input[str]] = None, seal_wrap: Optional[pulumi.Input[bool]] = None, type: Optional[pulumi.Input[str]] = None, __props__=None): """ ## Example Usage ```python import pulumi import pulumi_vault as vault example = vault.Mount("example", description="This is an example mount", path="dummy", type="generic") ``` ```python import pulumi import pulumi_vault as vault kvv2_example = vault.Mount("kvv2-example", description="This is an example KV Version 2 secret engine mount", path="version2-example", type="kv-v2") ``` ```python import pulumi import pulumi_vault as vault transit_example = vault.Mount("transit-example", description="This is an example transit secret engine mount", options={ "convergent_encryption": False, }, path="transit-example", type="transit") ``` ```python import pulumi import pulumi_vault as vault pki_example = vault.Mount("pki-example", default_lease_ttl_seconds=3600, description="This is an example PKI mount", max_lease_ttl_seconds=86400, path="pki-example", type="pki") ``` ## Import Mounts can be imported using the `path`, e.g. ```sh $ pulumi import vault:index/mount:Mount example dummy ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[int] default_lease_ttl_seconds: Default lease duration for tokens and secrets in seconds :param pulumi.Input[str] description: Human-friendly description of the mount :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[Mapping[str, Any]] options: Specifies mount type specific options that are passed to the backend :param pulumi.Input[str] path: Where the secret backend will be mounted :param pulumi.Input[bool] seal_wrap: Boolean flag that can be explicitly set to true to enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability :param pulumi.Input[str] type: Type of the backend, such as "aws" """ ... @overload def __init__(__self__, resource_name: str, args: MountArgs, opts: Optional[pulumi.ResourceOptions] = None): """ ## Example Usage ```python import pulumi import pulumi_vault as vault example = vault.Mount("example", description="This is an example mount", path="dummy", type="generic") ``` ```python import pulumi import pulumi_vault as vault kvv2_example = vault.Mount("kvv2-example", description="This is an example KV Version 2 secret engine mount", path="version2-example", type="kv-v2") ``` ```python import pulumi import pulumi_vault as vault transit_example = vault.Mount("transit-example", description="This is an example transit secret engine mount", options={ "convergent_encryption": False, }, path="transit-example", type="transit") ``` ```python import pulumi import pulumi_vault as vault pki_example = vault.Mount("pki-example", default_lease_ttl_seconds=3600, description="This is an example PKI mount", max_lease_ttl_seconds=86400, path="pki-example", type="pki") ``` ## Import Mounts can be imported using the `path`, e.g. ```sh $ pulumi import vault:index/mount:Mount example dummy ``` :param str resource_name: The name of the resource. :param MountArgs 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(MountArgs, 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_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, external_entropy_access: Optional[pulumi.Input[bool]] = None, local: Optional[pulumi.Input[bool]] = None, max_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, options: Optional[pulumi.Input[Mapping[str, Any]]] = None, path: Optional[pulumi.Input[str]] = None, seal_wrap: Optional[pulumi.Input[bool]] = None, type: 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__ = MountArgs.__new__(MountArgs) __props__.__dict__["default_lease_ttl_seconds"] = default_lease_ttl_seconds __props__.__dict__["description"] = description __props__.__dict__["external_entropy_access"] = external_entropy_access __props__.__dict__["local"] = local __props__.__dict__["max_lease_ttl_seconds"] = max_lease_ttl_seconds __props__.__dict__["options"] = options if path is None and not opts.urn: raise TypeError("Missing required property 'path'") __props__.__dict__["path"] = path __props__.__dict__["seal_wrap"] = seal_wrap if type is None and not opts.urn: raise TypeError("Missing required property 'type'") __props__.__dict__["type"] = type __props__.__dict__["accessor"] = None super(Mount, __self__).__init__( 'vault:index/mount:Mount', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, accessor: Optional[pulumi.Input[str]] = None, default_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, external_entropy_access: Optional[pulumi.Input[bool]] = None, local: Optional[pulumi.Input[bool]] = None, max_lease_ttl_seconds: Optional[pulumi.Input[int]] = None, options: Optional[pulumi.Input[Mapping[str, Any]]] = None, path: Optional[pulumi.Input[str]] = None, seal_wrap: Optional[pulumi.Input[bool]] = None, type: Optional[pulumi.Input[str]] = None) -> 'Mount': """ Get an existing Mount 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] accessor: The accessor for this mount. :param pulumi.Input[int] default_lease_ttl_seconds: Default lease duration for tokens and secrets in seconds :param pulumi.Input[str] description: Human-friendly description of the mount :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[Mapping[str, Any]] options: Specifies mount type specific options that are passed to the backend :param pulumi.Input[str] path: Where the secret backend will be mounted :param pulumi.Input[bool] seal_wrap: Boolean flag that can be explicitly set to true to enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability :param pulumi.Input[str] type: Type of the backend, such as "aws" """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _MountState.__new__(_MountState) __props__.__dict__["accessor"] = accessor __props__.__dict__["default_lease_ttl_seconds"] = default_lease_ttl_seconds __props__.__dict__["description"] = description __props__.__dict__["external_entropy_access"] = external_entropy_access __props__.__dict__["local"] = local __props__.__dict__["max_lease_ttl_seconds"] = max_lease_ttl_seconds __props__.__dict__["options"] = options __props__.__dict__["path"] = path __props__.__dict__["seal_wrap"] = seal_wrap __props__.__dict__["type"] = type return Mount(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter def accessor(self) -> pulumi.Output[str]: """ The accessor for this mount. """ return pulumi.get(self, "accessor") @property @pulumi.getter(name="defaultLeaseTtlSeconds") def default_lease_ttl_seconds(self) -> pulumi.Output[int]: """ Default lease duration for tokens and secrets in seconds """ return pulumi.get(self, "default_lease_ttl_seconds") @property @pulumi.getter def description(self) -> pulumi.Output[Optional[str]]: """ Human-friendly description of the mount """ return pulumi.get(self, "description") @property @pulumi.getter(name="externalEntropyAccess") def external_entropy_access(self) -> pulumi.Output[Optional[bool]]: """ Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source """ return pulumi.get(self, "external_entropy_access") @property @pulumi.getter def local(self) -> pulumi.Output[Optional[bool]]: """ Boolean flag that can be explicitly set to true to enforce local mount in HA environment """ return pulumi.get(self, "local") @property @pulumi.getter(name="maxLeaseTtlSeconds") def max_lease_ttl_seconds(self) -> pulumi.Output[int]: """ Maximum possible lease duration for tokens and secrets in seconds """ return pulumi.get(self, "max_lease_ttl_seconds") @property @pulumi.getter def options(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: """ Specifies mount type specific options that are passed to the backend """ return pulumi.get(self, "options") @property @pulumi.getter def path(self) -> pulumi.Output[str]: """ Where the secret backend will be mounted """ return pulumi.get(self, "path") @property @pulumi.getter(name="sealWrap") def seal_wrap(self) -> pulumi.Output[bool]: """ Boolean flag that can be explicitly set to true to enable seal wrapping for the mount, causing values stored by the mount to be wrapped by the seal's encryption capability """ return pulumi.get(self, "seal_wrap") @property @pulumi.getter def type(self) -> pulumi.Output[str]: """ Type of the backend, such as "aws" """ return pulumi.get(self, "type")
41.613636
216
0.642163
3,321
27,465
5.103583
0.060825
0.082424
0.08856
0.042834
0.899758
0.885008
0.870907
0.852617
0.845183
0.837277
0
0.001431
0.261933
27,465
659
217
41.676783
0.83469
0.348698
0
0.774481
1
0
0.093372
0.04815
0
0
0
0
0
1
0.163205
false
0.002967
0.014837
0
0.275964
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
f5f9adc9c91c08118cab16462141ca50314cbefa
32,817
py
Python
ann_training.py
LeMuecke/SNNs_with_RNNs_in_Tensorflow_Toolbox
261f94bc58df5b8add31fe721e85bd167be2ab1d
[ "Apache-2.0" ]
null
null
null
ann_training.py
LeMuecke/SNNs_with_RNNs_in_Tensorflow_Toolbox
261f94bc58df5b8add31fe721e85bd167be2ab1d
[ "Apache-2.0" ]
null
null
null
ann_training.py
LeMuecke/SNNs_with_RNNs_in_Tensorflow_Toolbox
261f94bc58df5b8add31fe721e85bd167be2ab1d
[ "Apache-2.0" ]
null
null
null
import copy import numpy as np import tensorflow_datasets as tfds import tensorflow as tf from tensorflow import keras from os import path from conversion import spikalize_img, timealize_img def prepare_dataset_ann(experiment, dataset="mnist", split=None): if split is None: split = ["train", "test"] # split = ["train", "validation"] (ds_train, ds_test) = tfds.load( dataset, split=split, shuffle_files=True, as_supervised=True ) def resize_masked(image, label): return tf.image.resize(image, experiment.image_size_rescale), label def depth_increase_masked(image, label): return tf.image.grayscale_to_rgb(image), label # prepare ds_train and ds_test for ANN training ds_train = ds_train.map(lambda x, y: (x / 255, y), num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_size_rescale is not None: ds_train = ds_train.map( resize_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_depth_increase: ds_train = ds_train.map( depth_increase_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) #ds_train = ds_train.cache() ds_train = ds_train.shuffle(experiment.batch_size_ann_training) ds_train = ds_train.batch(experiment.batch_size_ann_training) ds_train = ds_train.prefetch(tf.data.experimental.AUTOTUNE) ds_test = ds_test.map(lambda x, y: (x / 255, y), num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_size_rescale is not None: ds_test = ds_test.map( resize_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_depth_increase: ds_test = ds_test.map( depth_increase_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) ds_test = ds_test.batch(experiment.batch_size_ann_training) #ds_test = ds_test.cache() ds_test = ds_test.prefetch(tf.data.experimental.AUTOTUNE) return ds_train, ds_test def prepare_dataset_spike(experiment, dataset="mnist", split=None, spiking=False): if split is None: split = ["train", "test"] # split = ["train", "validation"] (ds_train_spike, ds_test_spike) = tfds.load( dataset, split=split, shuffle_files=False, as_supervised=True ) print("ATTENTION DATASET SHUFFLE IS OFF!") # spikalize had no x / 255 def spikalize_img_masked(image, label): return spikalize_img(experiment, image, label) def timealize_img_masked(image, label): return timealize_img(experiment, image, label) def resize_masked(image, label): return tf.image.resize(image, experiment.image_size_rescale), label def depth_increase_masked(image, label): return tf.image.grayscale_to_rgb(image), label def add_dynthresh_dim_masked(image, label): return (image, tf.zeros((experiment.timesteps, image.shape[1], image.shape[2], image.shape[3]))), label #return (image, tf.zeros((experiment.timesteps, 28, 28, 1))), label # prepare spiking variants for SNN testing ds_train_spike = ds_train_spike.map(lambda x, y: (x / 255, y), num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_size_rescale is not None: ds_train_spike = ds_train_spike.map( resize_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_depth_increase: ds_train_spike = ds_train_spike.map( depth_increase_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) ds_train_spike = ds_train_spike.map( timealize_img_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.encoding == "ttfs_dyn_thresh": ds_train_spike = ds_train_spike.map( add_dynthresh_dim_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) ds_train_spike = ds_train_spike.shuffle(experiment.batch_size_snn_eval) ds_train_spike = ds_train_spike.batch(experiment.batch_size_snn_eval) ds_train_spike = ds_train_spike.prefetch(tf.data.experimental.AUTOTUNE) ds_test_spike = ds_test_spike.map(lambda x, y: (x / 255, y), num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_size_rescale is not None: ds_test_spike = ds_test_spike.map( resize_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.image_depth_increase: ds_test_spike = ds_test_spike.map( depth_increase_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) ds_test_spike = ds_test_spike.map( timealize_img_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) if experiment.encoding == "ttfs_dyn_thresh": ds_test_spike = ds_test_spike.map( add_dynthresh_dim_masked, num_parallel_calls=tf.data.experimental.AUTOTUNE) ds_test_spike = ds_test_spike.batch(experiment.batch_size_snn_eval) #ds_test_spike = ds_test_spike.cache() ds_test_spike = ds_test_spike.prefetch(tf.data.experimental.AUTOTUNE) return ds_train_spike, ds_test_spike def train_network_base(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelbase_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Flatten(), tf.keras.layers.Dense(784, activation=activation_function), tf.keras.layers.Dense(600, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_base_scale1(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelbasescale1_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Flatten(), tf.keras.layers.Dense(784, activation=activation_function), tf.keras.layers.Dense(500, activation=activation_function), tf.keras.layers.Dense(200, activation=activation_function), tf.keras.layers.Dense(84, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_base_scale2(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelbasescale2_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Flatten(), tf.keras.layers.Dense(784, activation=activation_function), tf.keras.layers.Dense(784, activation=activation_function), tf.keras.layers.Dense(784, activation=activation_function), tf.keras.layers.Dense(784, activation=activation_function), tf.keras.layers.Dense(500, activation=activation_function), tf.keras.layers.Dense(200, activation=activation_function), tf.keras.layers.Dense(84, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_base_conv(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelbaseconv_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Flatten(), tf.keras.layers.Dense(484, activation=activation_function), tf.keras.layers.Dense(200, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_fully_conv(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelfullyconv_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(6, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(6, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(6, 3, activation=activation_function, padding="valid"), tf.keras.layers.Flatten(), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_fully_conv_small(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelfullyconvsmall_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="valid"), tf.keras.layers.Flatten(), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_base_maxpool(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelbasemaxpool_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="same"), tf.keras.layers.MaxPool2D(pool_size=2, strides=2), tf.keras.layers.Conv2D(3, 3, activation=activation_function, padding="same"), tf.keras.layers.MaxPool2D(pool_size=2, strides=2), tf.keras.layers.Flatten(), tf.keras.layers.Dense(192, activation=activation_function), tf.keras.layers.Dense(100, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_lenet5(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modellenet5_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Conv2D(6, 5, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(6, 2, activation=activation_function, padding="valid", strides=2), tf.keras.layers.Conv2D(16, 5, activation=activation_function, padding="valid"), tf.keras.layers.Conv2D(16, 2, activation=activation_function, padding="valid", strides=2), tf.keras.layers.Flatten(), tf.keras.layers.Dense(120, activation=activation_function), tf.keras.layers.Dense(84, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_lenet5_maxpool(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modellenet5_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ tf.keras.layers.Conv2D(6, 5, activation=activation_function, padding="valid"), tf.keras.layers.MaxPool2D(pool_size=2, strides=2), tf.keras.layers.Conv2D(16, 5, activation=activation_function, padding="valid"), tf.keras.layers.MaxPool2D(pool_size=2, strides=2), tf.keras.layers.Flatten(), tf.keras.layers.Dense(120, activation=activation_function), tf.keras.layers.Dense(84, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_lenet5_maxpool_extensions(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modellenet5ext_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ # 64x64x3 tf.keras.layers.Conv2D(32, 5, activation=activation_function, padding="valid"), # 60x60x32 tf.keras.layers.MaxPool2D(pool_size=2, strides=2), # 30x30x32 tf.keras.layers.BatchNormalization(), # 30x30x32 tf.keras.layers.Conv2D(64, 5, activation=activation_function, padding="valid"), # 26x26x64 tf.keras.layers.MaxPool2D(pool_size=2, strides=2), # 13x13x64 tf.keras.layers.Conv2D(128, 3, activation=activation_function, padding="valid"), # 24x24x128 tf.keras.layers.MaxPool2D(pool_size=2, strides=2), # 12x12x128 tf.keras.layers.BatchNormalization(), # 12x12x128 tf.keras.layers.Conv2D(256, 3, activation=activation_function, padding="valid"), # 10x10x256 tf.keras.layers.MaxPool2D(pool_size=2, strides=2), # 5x5x256 tf.keras.layers.Flatten(), tf.keras.layers.Dense(4096, activation=activation_function), tf.keras.layers.Dense(2048, activation=activation_function), tf.keras.layers.Dense(10, activation='softmax') ]) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_denseonly1(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/model_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: model = tf.keras.Sequential([ tf.keras.layers.Flatten(), tf.keras.layers.Dense(784, activation='relu'), tf.keras.layers.Dense(500, activation='relu'), tf.keras.layers.Dense(200, activation='relu'), tf.keras.layers.Dense(84, activation='relu'), tf.keras.layers.Dense(10, activation='softmax') ]) model.compile(optimizer='adam', loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test) model.save(model_savefile) return model def train_network_batchnorm_etal(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/model_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: if experiment.encoding == "ttfs_clamped": def activation_function(x): return tf.keras.activations.relu(x, threshold=experiment.beta) else: activation_function = "relu" model = tf.keras.Sequential([ #tf.keras.layers.Flatten(), tf.keras.layers.InputLayer(input_shape=(32,32,3)), #tf.keras.layers.Conv2D(2, 3, activation='relu', padding='same'), #tf.keras.layers.Conv2D(2, 3, activation='relu', padding='same'), #tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Conv2D(8, 3, activation=activation_function, padding='same'), tf.keras.layers.Conv2D(8, 3, activation=activation_function, padding='same'), tf.keras.layers.Conv2D(8, 3, activation=activation_function, padding='same'), tf.keras.layers.Conv2D(8, 3, activation=activation_function, padding='same'), #tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Conv2D(16, 3, activation=activation_function, padding='same'), tf.keras.layers.Conv2D(16, 3, activation=activation_function, padding='same'), tf.keras.layers.Conv2D(16, 3, activation=activation_function, padding='same'), #tf.keras.layers.MaxPool2D(pool_size=(2, 2)), #tf.keras.layers.MaxPool2D(pool_size=(2, 2)), #tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same'), #tf.keras.layers.BatchNormalization(), #tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same'), #tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same'), #tf.keras.layers.BatchNormalization(), #tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same'), #tf.keras.layers.MaxPool2D(pool_size=(2, 2)), #tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same'), #tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same'), #tf.keras.layers.BatchNormalization(), #tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same'), #tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Flatten(), #tf.keras.layers.Dense(5000, activation='relu'), #tf.keras.layers.Dense(5000, activation='relu'), #tf.keras.layers.Dense(5000, activation='relu'), #tf.keras.layers.Dense(1000, activation='relu'), #tf.keras.layers.Dense(500, activation='relu'), #tf.keras.layers.Dense(784, activation='relu'), #tf.keras.layers.BatchNormalization(), #tf.keras.layers.Dense(500, activation='relu'), #tf.keras.layers.BatchNormalization(), #tf.keras.layers.Dense(300, activation='relu'), #tf.keras.layers.Dense(150, activation='relu'), #tf.keras.layers.Dense(84, activation='relu'), tf.keras.layers.Dense(10, activation='softmax') ]) #model = tf.keras.applications.VGG16(include_top=True, weights=None, classes=10) #model = tf.keras.applications.EfficientNetB0(include_top=True, input_shape=[224, 224, 3], weights=None, classes=100) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=f'tblogs/run{experiment.start_time}{experiment.tensorboard_title}') model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-4, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test, callbacks=[tensorboard_callback]) model.save(model_savefile) return model def train_network_vgg16(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelvgg_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: model = tf.keras.Sequential([ #tf.keras.layers.Conv2D(2, 3, activation='relu', padding='same'), #tf.keras.layers.Conv2D(2, 3, activation='relu', padding='same'), #tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Conv2D(64, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(64, 3, activation='relu', padding='same'), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same'), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same'), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same'), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same'), tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same'), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), tf.keras.layers.Flatten(), tf.keras.layers.Dense(4096, activation='relu'), tf.keras.layers.Dense(4096, activation='relu'), tf.keras.layers.Dense(1000, activation='softmax') ]) model = tf.keras.applications.VGG16(include_top=True, weights=None, classes=100) model = tf.keras.applications.EfficientNetB0(include_top=True, weights=None, classes=100) model = tf.keras.applications.ResNet50(include_top=True, weights=None, classes=100) model.compile(optimizer=keras.optimizers.SGD(lr=0.001, decay=1e-6, momentum=0.9, nesterov=True), loss=keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test) model.save(model_savefile) return model def train_network_resnet_ish(experiment, ds_train, ds_test, force_training=False): model_savefile = "./experiments/modelresnetish_" + experiment.name if path.exists(model_savefile) and not force_training: model = keras.models.load_model(model_savefile) else: model = tf.keras.Sequential([ tf.keras.layers.Conv2D(64, 7, activation='relu', padding='same', strides=2, kernel_regularizer=keras.regularizers.l2(0.001)), # 112, 112, 64 tf.keras.layers.BatchNormalization(), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), # 56, 56, 64 tf.keras.layers.Conv2D(64, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 56, 56, 64 tf.keras.layers.BatchNormalization(), tf.keras.layers.Conv2D(64, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 56, 56, 64 tf.keras.layers.BatchNormalization(), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), # 28, 28, 64 #tf.keras.layers.Dropout(0.5), tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 28, 28, 128 tf.keras.layers.BatchNormalization(), tf.keras.layers.Conv2D(128, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 28, 28, 128 tf.keras.layers.BatchNormalization(), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), # 14, 14, 128 tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 14, 14, 256 tf.keras.layers.BatchNormalization(), tf.keras.layers.Conv2D(256, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 14, 14, 256 tf.keras.layers.BatchNormalization(), tf.keras.layers.MaxPool2D(pool_size=(2, 2)), # 7, 7, 256 #tf.keras.layers.Dropout(0.5), #tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 7, 7, 512 #tf.keras.layers.BatchNormalization(), #tf.keras.layers.Conv2D(512, 3, activation='relu', padding='same', kernel_regularizer=keras.regularizers.l2(0.001)), # 7, 7, 512 #tf.keras.layers.BatchNormalization(), tf.keras.layers.Flatten(), tf.keras.layers.Dense(1000, activation='relu', kernel_regularizer=keras.regularizers.l2(0.001)), tf.keras.layers.Dense(100, activation='softmax') ]) model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-4, epsilon=1e-5), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False), metrics=['sparse_categorical_accuracy']) model.fit(ds_train, epochs=experiment.epochs, validation_data=ds_test) model.save(model_savefile) return model
56.193493
155
0.669958
3,912
32,817
5.444274
0.061094
0.075594
0.106818
0.056202
0.944455
0.933421
0.918584
0.892337
0.877547
0.866091
0
0.031377
0.21044
32,817
584
156
56.193493
0.790591
0.08651
0
0.810235
0
0
0.071832
0.047152
0
0
0
0
0
1
0.072495
false
0
0.014925
0.03838
0.136461
0.002132
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
eb3f5b8471a2108d1c9932e112d6e4d3a3b9c8de
3,683
py
Python
tests.py
ferret-guy/6-dof-simulation
2068a387fb1df76f1a89485fe117677f120fc26a
[ "MIT" ]
3
2020-03-02T02:18:02.000Z
2022-02-22T18:07:26.000Z
tests.py
ferret-guy/6-dof-simulation
2068a387fb1df76f1a89485fe117677f120fc26a
[ "MIT" ]
null
null
null
tests.py
ferret-guy/6-dof-simulation
2068a387fb1df76f1a89485fe117677f120fc26a
[ "MIT" ]
1
2019-01-26T09:16:00.000Z
2019-01-26T09:16:00.000Z
from nose.tools import raises import numpy as np from Elements import KinematicObject def test_KinematicObject_init(): obj1 = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [1.0, 1.0]) obj2 = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0], [0.0], [1.0]) obj3 = KinematicObject(np.array([0.0, 0.0]), [0.0, 0.0], 1, [0.0], np.array([0.0]), [1.0]) assert True @raises(ValueError) def test_KinematicObject_Invalid_posvel_Sizes(): obj1 = KinematicObject([0.0, 0.0], [0.0], 1, [0.0, 0.0], [0.0, 0.0], [1.0, 1.0]) obj2 = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0], [0.0, 0.0], [1.0]) obj3 = KinematicObject(np.array([0.0, 0.0]), [0.0, 0.0], 1, [0.0], np.array([0.0]), [1.0]) @raises(ValueError) def test_KinematicObject_Invalid_rotvel_Sizes(): obj2 = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0], [0.0, 0.0], [1.0]) obj3 = KinematicObject(np.array([0.0, 0.0]), [0.0, 0.0], 1, [0.0], np.array([0.0]), [1.0]) @raises(ValueError) def test_KinematicObject_Invalid_rotmom_Sizes(): obj2 = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0], [0.0], [1.0, 0.0]) def test_KinematicObject_point_dist(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [1.0, 1.0]) assert obj.dist([0.0, 1.0]) == 1.0 def test_KinematicObject_KinematicObject_dist(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [1.0, 1.0]) obj2 = KinematicObject([0.0, 1.0], [10.0, 0.0], 1, [0.0], [0.0], [1.0]) assert obj.dist(obj2) == 1.0 @raises(ValueError) def test_KinematicObject_invalid_point_dist(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [1.0, 1.0]) assert obj.dist([0.0, 1.0, 0.0]) == 1.0 def test_KinematicObject_pos_step(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [1.0, 1.0]) print obj.step([0.0, 1.0], [0.0, 0.0], 1) for i, j in zip(obj.step([0.0, 0.0], [1.0, 0.0], 1), (np.array([0., 2.]), np.array([0., 1.]), np.array([1., 0.]), np.array([1., 0.]))): print "Comparing {} and {}".format(i, j) assert (i == j).all() def test_KinematicObject_rot_step(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [0.5, 1.0]) print obj.step([0.0, 1.0], [1.0, 1.0], 1) for i, j in zip(obj.step([0.0, 0.0], [0.0, 0.0], 1), (np.array([0., 2.]), np.array([0., 1.]), np.array([4., 2.]), np.array([2., 1.]))): print "Comparing {} and {}".format(i, j) assert (i == j).all() @raises(ValueError) def test_KinematicObject_pos_exept_delt(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [0.5, 1.0]) print obj.step([0.0, 1.0], [1.0, 1.0], 1) for i, j in zip(obj.step([0.0, 0.0], [0.0, 0.0], 0), (np.array([0., 2.]), np.array([0., 1.]), np.array([4., 2.]), np.array([2., 1.]))): print "Comparing {} and {}".format(i, j) assert (i == j).all() @raises(ValueError) def test_KinematicObject_pos_exept_force(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [0.5, 1.0]) print obj.step([0.0, 1.0], [1.0, 1.0], 1) for i, j in zip(obj.step([0.0], [0.0, 0.0], 1), (np.array([0., 2.]), np.array([0., 1.]), np.array([4., 2.]), np.array([2., 1.]))): print "Comparing {} and {}".format(i, j) assert (i == j).all() @raises(ValueError) def test_KinematicObject_pos_exept_mom(): obj = KinematicObject([0.0, 0.0], [0.0, 0.0], 1, [0.0, 0.0], [0.0, 0.0], [0.5, 1.0]) print obj.step([0.0, 1.0], [1.0, 1.0], 1) for i, j in zip(obj.step([0.0, 0.0], [0.0], 1), (np.array([0., 2.]), np.array([0., 1.]), np.array([4., 2.]), np.array([2., 1.]))): print "Comparing {} and {}".format(i, j) assert (i == j).all()
38.768421
94
0.546837
769
3,683
2.564369
0.06632
0.267748
0.31643
0.336714
0.887424
0.884381
0.831136
0.829615
0.791075
0.782454
0
0.156863
0.155308
3,683
94
95
39.180851
0.477017
0
0
0.550725
0
0
0.025808
0
0
0
0
0
0.130435
0
null
null
0
0.043478
null
null
0.144928
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
11
de3b70f18890eec6b90168437e4855d8474fd1b6
2,877
py
Python
tests/tests_route.py
HakurouKen/django-auto-route
1f98ba24cb04e271b2c475524eb797a1bc12ae56
[ "MIT" ]
null
null
null
tests/tests_route.py
HakurouKen/django-auto-route
1f98ba24cb04e271b2c475524eb797a1bc12ae56
[ "MIT" ]
null
null
null
tests/tests_route.py
HakurouKen/django-auto-route
1f98ba24cb04e271b2c475524eb797a1bc12ae56
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.test import SimpleTestCase,override_settings from autoroute import Inspector from django.core.urlresolvers import resolve from app import views class DefaultTestCase(SimpleTestCase): ''' Test cases for autoroute with default params. ''' def test_auto_generated(self): resolver = resolve('/app/views/auto-generated/') self.assertEqual(resolver.func,views.auto_generated) def test_with_name(self): resolver = resolve('/app/views/with-name/') self.assertEqual(resolver.func,views.with_name) self.assertEqual(resolver.url_name,'with-name') def test_custom(self): resolver = resolve('/app/views/custom/') self.assertEqual(resolver.func,views.custom_route) self.assertEqual(resolver.url_name,'custom-name') @override_settings(ROOT_URLCONF='camel_urls') class CamelTestCase(SimpleTestCase): ''' Test cases for autoroute of `camel` style. ''' def test_auto_generated(self): resolver = resolve('/app/views/autoGenerated/') self.assertEqual(resolver.func,views.auto_generated) def test_with_name(self): resolver = resolve('/app/views/withName/') self.assertEqual(resolver.func,views.with_name) self.assertEqual(resolver.url_name,'with-name') def test_custom(self): resolver = resolve('/app/views/custom/') self.assertEqual(resolver.func,views.custom_route) self.assertEqual(resolver.url_name,'custom-name') @override_settings(ROOT_URLCONF='underscore_urls') class UnderscoreTestCase(SimpleTestCase): ''' Test cases for autoroute of `underscore` style. ''' def test_auto_generated(self): resolver = resolve('/app/views/auto_generated/') self.assertEqual(resolver.func,views.auto_generated) def test_with_name(self): resolver = resolve('/app/views/with_name/') self.assertEqual(resolver.func,views.with_name) self.assertEqual(resolver.url_name,'with-name') def test_custom(self): resolver = resolve('/app/views/custom/') self.assertEqual(resolver.func,views.custom_route) self.assertEqual(resolver.url_name,'custom-name') @override_settings(ROOT_URLCONF='transformed_urls') class TransformTestCase(SimpleTestCase): ''' Test cases for autoroute with default params. ''' def test_auto_generated(self): resolver = resolve('/app/auto-generated/') self.assertEqual(resolver.func,views.auto_generated) def test_with_name(self): resolver = resolve('/app/with-name/') self.assertEqual(resolver.func,views.with_name) self.assertEqual(resolver.url_name,'with-name') def test_custom(self): resolver = resolve('/app/custom/') self.assertEqual(resolver.func,views.custom_route) self.assertEqual(resolver.url_name,'custom-name')
36.417722
60
0.707334
341
2,877
5.815249
0.140762
0.151286
0.231972
0.133132
0.847706
0.847706
0.810388
0.810388
0.810388
0.810388
0
0.000418
0.168926
2,877
78
61
36.884615
0.828942
0.072645
0
0.636364
0
0
0.136587
0.045025
0
0
0
0
0.363636
1
0.218182
false
0
0.072727
0
0.363636
0
0
0
0
null
0
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
8
7214bea53e35937eb3383cd8d95d00ef453d2036
33,064
py
Python
Parameter_inference_real_data/python/priors.py
CardiacModelling/model-reduction-manifold-boundaries
88ccb24d0ec9d0742a4a93e820fec7fee1a65b61
[ "BSD-3-Clause" ]
null
null
null
Parameter_inference_real_data/python/priors.py
CardiacModelling/model-reduction-manifold-boundaries
88ccb24d0ec9d0742a4a93e820fec7fee1a65b61
[ "BSD-3-Clause" ]
null
null
null
Parameter_inference_real_data/python/priors.py
CardiacModelling/model-reduction-manifold-boundaries
88ccb24d0ec9d0742a4a93e820fec7fee1a65b61
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Pints Boundaries that limit the transition rates in the Beattie et al model. # from __future__ import division, print_function import numpy as np import pints class LogPrior(pints.LogPrior): """ Boundary constraints on the parameters """ def __init__(self, which_model='wang', transformation=None): super(LogPrior, self).__init__() self.which_model = which_model # Conductance limits self.lower_conductance = 1e-2 self.upper_conductance = 1e0 # Limits on p1-p8 self.lower_alpha = 1e-7 # Kylie: 1e-7 self.upper_alpha = 1e3 # Kylie: 1e3 self.upper_big_alpha = 1e6 self.lower_beta = 1e-7 # Kylie: 1e-7 self.upper_beta = 0.4 # Kylie: 0.4 self.lower_rate = 1.67e-5 self.upper_rate = 1000 # Lower and upper bounds for all parameters if self.which_model == 'mazhari': self.lower = np.array([ self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_rate, self.lower_conductance ]) self.upper = np.array([ self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_rate, self.upper_conductance ]) elif self.which_model == 'mazhari-reduced': self.lower = np.array([ self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang': self.lower = np.array([ self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang-r1': self.lower = np.array([ self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_conductance ]) self.upper = np.array([ self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_conductance ]) elif self.which_model == 'wang-r2': self.lower = np.array([ self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_big_alpha, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang-r3': self.lower = np.array([ self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang-r4': self.lower = np.array([ self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang-r5': self.lower = np.array([ self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_rate, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_big_alpha, self.upper_beta, self.upper_alpha, self.upper_rate, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang-r6': self.lower = np.array([ self.lower_beta, self.lower_alpha, self.lower_alpha, self.lower_alpha, self.lower_beta, self.lower_alpha, self.lower_beta, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_beta, self.upper_alpha, self.upper_alpha, self.upper_alpha, self.upper_beta, self.upper_alpha, self.upper_beta, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang-r7': self.lower = np.array([ self.lower_beta, self.lower_alpha, self.lower_alpha, self.lower_alpha, self.lower_beta, self.lower_rate, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_beta, self.upper_alpha, self.upper_alpha, self.upper_alpha, self.upper_beta, self.upper_rate, self.upper_beta, self.upper_conductance ]) elif self.which_model == 'wang-r8': self.lower = np.array([ self.lower_beta, self.lower_alpha, self.lower_alpha, self.lower_alpha, self.lower_beta, self.lower_beta, self.lower_conductance ]) self.upper = np.array([ self.upper_beta, self.upper_alpha, self.upper_alpha, self.upper_big_alpha, self.upper_beta, self.upper_beta, self.upper_conductance ]) else: pass self.minf = -float('inf') # Limits on maximum reaction rates self.rmin = 1e-5 # Reduced as original 1.67e-5 is not obeyed by Mazhari model self.rmax = 1000 self.super_rmax = 1e6 # Voltages used to calculate maximum rates self.vmin = -120 self.vmax = 60 # Optional transformation self.transformation = transformation # Number of parameters if self.which_model == 'mazhari': n_params = 17 elif self.which_model == 'mazhari-reduced': n_params = 11 elif self.which_model == 'wang': n_params = 15 elif self.which_model == 'wang-r1': n_params = 14 elif self.which_model == 'wang-r2': n_params = 13 elif self.which_model == 'wang-r3': n_params = 12 elif self.which_model == 'wang-r4': n_params = 11 elif self.which_model == 'wang-r5': n_params = 10 elif self.which_model == 'wang-r6': n_params = 9 elif self.which_model == 'wang-r7': n_params = 8 elif self.which_model == 'wang-r8': n_params = 7 else: pass self.n_params = n_params def n_parameters(self): return self.n_params def __call__(self, parameters): debug = True # Transform parameters back to model space if self.transformation is not None: parameters = self.transformation.detransform(parameters,self.which_model) # Check parameter boundaries if np.any(parameters < self.lower): if debug: print('Lower') return self.minf if np.any(parameters > self.upper): if debug: print('Upper') return self.minf if self.which_model == 'mazhari': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17 = parameters # Check positive signed rates r = p1 * np.exp(p2 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('r1') return self.minf r = p5 * np.exp(p6 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('r2') return self.minf r = p9 * np.exp(p10 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('r3') return self.minf r = p13 * np.exp(p14 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('r4') return self.minf # Check negative signed rates r = p3 * np.exp(-p4 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('r5') return self.minf r = p7 * np.exp(-p8 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('r6') return self.minf r = p11 * np.exp(-p12 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('r7') return self.minf elif self.which_model == 'mazhari-reduced': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11 = parameters # Check positive signed rates r = p1 * np.exp(p2 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('k23') return self.minf # Check negative signed rates r = p3 * np.exp(-p4 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k32') return self.minf r = p6 * np.exp(-p7 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k43') return self.minf r = p9 * np.exp(-p10 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k15') return self.minf elif self.which_model == 'wang': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15 = parameters # Check positive signed rates r = p1 * np.exp(p2 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('k23') return self.minf r = p7 * np.exp(p8 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('k34') return self.minf r = p11 * np.exp(p12 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('k51') return self.minf # Check negative signed rates r = p3 * np.exp(-p4 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k32') return self.minf r = p9 * np.exp(-p10 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k43') return self.minf r = p13 * np.exp(-p14 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k15') return self.minf elif self.which_model == 'wang-r1': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14 = parameters # Check positive signed rates r = p1 * np.exp(p2 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('k23') return self.minf r = p7 * np.exp(p8 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('k34') return self.minf r = p11 * np.exp(p12 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('k51') return self.minf # Check negative signed rates r = p3 * np.exp(-p4 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k32') return self.minf r = p9 * np.exp(-p10 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('k43') return self.minf elif self.which_model == 'wang-r2': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13 = parameters # Check positive signed rates r = p1 * np.exp(p2 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C3toO') return self.minf r = p7 * np.exp(p8 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('OtoI') return self.minf # Check negative signed rates r = p3 * np.exp(-p4 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('OtoC3') return self.minf r = p9 * np.exp(-p10 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('ItoO') return self.minf elif self.which_model == 'wang-r3': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12 = parameters # Check positive signed rates r = p1 * np.exp(p2 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C3toO') return self.minf r = p7 * np.exp(p8 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('OtoI') return self.minf r = p5 * np.exp(p11 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C12toC3') return self.minf # Check negative signed rates r = p3 * np.exp(-p4 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('OtoC3') return self.minf r = p9 * np.exp(-p10 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('ItoO') return self.minf elif self.which_model == 'wang-r4': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11 = parameters # Check positive signed rates r = p6 * np.exp(p7 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('OtoI') return self.minf r = p4 * np.exp(p10 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C12toC3') return self.minf # Check negative signed rates r = p2 * np.exp(-p3 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('OtoC3') return self.minf r = p8 * np.exp(-p9 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('ItoO') return self.minf elif self.which_model == 'wang-r5': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9, p10 = parameters # Check positive signed rates r = p3 * np.exp(p9 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C12toC3O') return self.minf r = p5 * np.exp(p6 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C3OtoI') return self.minf # Check negative signed rates r = p7 * np.exp(-p8 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('ItoC3O') return self.minf elif self.which_model == 'wang-r6': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8, p9 = parameters # Check positive signed rates r = p4 * np.exp(p5 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C3OtoI') return self.minf r = p2 * np.exp(p8 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C12toC3O') return self.minf # Check negative signed rates r = p3 * np.exp(-p1 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('C3OtoC12') return self.minf r = p6 * np.exp(-p7 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('ItoC3O') return self.minf elif self.which_model == 'wang-r7': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7, p8 = parameters # Check positive signed rates r = p2 * np.exp(p7 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C12toC3O') return self.minf r = p4 * np.exp(p5 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C3OtoI') return self.minf # Check negative signed rates r = p3 * np.exp(-p1 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('C3OtoC12') return self.minf elif self.which_model == 'wang-r8': # Check maximum rate constants p1, p2, p3, p4, p5, p6, p7 = parameters # Check positive signed rates r = p2 * np.exp(p6 * self.vmax) if r < self.rmin or r > self.rmax: if debug: print('C12toC3O') return self.minf # Check negative signed rates r = p3 * np.exp(-p1 * self.vmin) if r < self.rmin or r > self.rmax: if debug: print('C3OtoC12') return self.minf else: pass return True def _sample_partial(self, v): """ Sample a pair of parameters - uniformly in the transformed space - that satisfy the maximum transition rate constraints. """ for i in range(100): a = np.exp(np.random.uniform( np.log(self.lower_alpha), np.log(self.upper_alpha))) b = np.random.uniform(self.lower_beta, self.upper_beta) r = a * np.exp(b * v) if r >= self.rmin and r <= self.rmax: return a, b raise ValueError('Too many iterations') def sample(self, n=1): if n > 1: raise NotImplementedError p = np.zeros(self.n_params) if self.which_model == 'mazhari': # Sample forward rates p[0:2] = self._sample_partial(self.vmax) p[4:6] = self._sample_partial(self.vmax) p[8:10] = self._sample_partial(self.vmax) p[12:14] = self._sample_partial(self.vmax) # Sample backward rates p[2:4] = self._sample_partial(-self.vmin) p[6:8] = self._sample_partial(-self.vmin) p[10:12] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[14:16] = np.random.uniform( self.lower_rate, self.upper_rate) # Sample conductance p[16] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'mazhari-reduced': # Sample forward rates p[0:2] = self._sample_partial(self.vmax) # Sample backward rates p[2:4] = self._sample_partial(-self.vmin) p[5:7] = self._sample_partial(-self.vmin) p[8:10] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[4] = np.exp(np.random.uniform( np.log(self.lower_rate), np.log(self.upper_rate))) p[7] = np.exp(np.random.uniform( np.log(self.lower_rate), np.log(self.upper_rate))) # Sample conductance p[10] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang': # Sample forward rates p[0:2] = self._sample_partial(self.vmax) p[6:8] = self._sample_partial(self.vmax) p[10:12] = self._sample_partial(self.vmax) # Sample backward rates p[2:4] = self._sample_partial(-self.vmin) p[8:10] = self._sample_partial(-self.vmin) p[12:14] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[4:6] = np.random.uniform( self.lower_rate, self.upper_rate) # Sample conductance p[14] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r1': # Sample forward rates p[0:2] = self._sample_partial(self.vmax) p[6:8] = self._sample_partial(self.vmax) p[10:12] = self._sample_partial(self.vmax) # Sample backward rates p[2:4] = self._sample_partial(-self.vmin) p[8:10] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[4:6] = np.random.uniform( self.lower_rate, self.upper_rate) p[12] = np.random.uniform( self.lower_rate, self.upper_rate) # Sample conductance p[13] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r2': # Sample forward rates p[0:2] = self._sample_partial(self.vmax) p[6:8] = self._sample_partial(self.vmax) # Sample backward rates p[2:4] = self._sample_partial(-self.vmin) p[8:10] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[4:6] = np.random.uniform( self.lower_rate, self.upper_rate) p[10] = np.random.uniform( self.lower_alpha, self.upper_big_alpha) p[11] = np.random.uniform( self.lower_beta, self.upper_beta) # Sample conductance p[12] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r3': # Sample forward rates p[0], p[1] = self._sample_partial(self.vmax) p[4], p[10] = self._sample_partial(self.vmax) p[6], p[7] = self._sample_partial(self.vmax) # Sample backward rates p[2], p[3] = self._sample_partial(-self.vmin) p[8], p[9] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[5] = np.random.uniform( self.lower_rate, self.upper_rate) # Sample conductance p[11] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r4': # Sample forward rates p[3], p[9] = self._sample_partial(self.vmax) p[5], p[6] = self._sample_partial(self.vmax) # Sample backward rates p[1], p[2] = self._sample_partial(-self.vmin) p[7], p[8] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[0] = np.random.uniform( self.lower_rate, self.upper_rate) p[4] = np.random.uniform( self.lower_rate, self.upper_rate) # Sample conductance p[10] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r5': # Sample forward rates p[2], p[8] = self._sample_partial(self.vmax) p[4], p[5] = self._sample_partial(self.vmax) # Sample backward rates p[6], p[7] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[0] = np.random.uniform( self.lower_alpha, self.upper_big_alpha) p[1] = np.random.uniform( self.lower_beta, self.upper_beta) p[3] = np.random.uniform( self.lower_rate, self.upper_rate) # Sample conductance p[9] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r6': # Sample forward rates p[3], p[4] = self._sample_partial(self.vmax) p[1], p[7] = self._sample_partial(self.vmax) # Sample backward rates p[2], p[0] = self._sample_partial(-self.vmin) p[5], p[6] = self._sample_partial(-self.vmin) # Sample conductance p[8] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r7': # Sample forward rates p[1], p[6] = self._sample_partial(self.vmax) p[3], p[4] = self._sample_partial(self.vmax) # Sample backward rates p[2], p[0] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[5] = np.random.uniform( self.lower_rate, self.upper_rate) # Sample conductance p[7] = np.random.uniform( self.lower_conductance, self.upper_conductance) elif self.which_model == 'wang-r8': # Sample forward rates p[1], p[5] = self._sample_partial(self.vmax) # Sample backward rates p[2], p[0] = self._sample_partial(-self.vmin) # Sample voltage-independent rates p[3] = np.random.uniform( self.lower_alpha, self.upper_big_alpha) p[4] = np.random.uniform( self.lower_beta, self.upper_beta) # Sample conductance p[6] = np.random.uniform( self.lower_conductance, self.upper_conductance) else: pass # Transform from model to search space, if required if self.transformation is not None: p = self.transformation.transform(p,self.which_model) # The Boundaries interface requires a matrix ``(n, n_parameters)`` p.reshape(1, self.n_params) return p
35.744865
99
0.471328
3,691
33,064
4.083175
0.053915
0.104505
0.051092
0.060912
0.888926
0.880632
0.839891
0.821777
0.808838
0.776325
0
0.032551
0.43694
33,064
924
100
35.78355
0.776978
0.081327
0
0.83032
0
0
0.01892
0
0
0
0
0
0
1
0.006954
false
0.005563
0.004172
0.001391
0.086231
0.069541
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
a0f968488608abdb32c0c848e9a1985d94b65267
2,723
py
Python
plugin/cardtel.py
pasha00000/mbplugin
e919c7c899495ae7f4b04fc2568991bb717bed9a
[ "MIT" ]
null
null
null
plugin/cardtel.py
pasha00000/mbplugin
e919c7c899495ae7f4b04fc2568991bb717bed9a
[ "MIT" ]
null
null
null
plugin/cardtel.py
pasha00000/mbplugin
e919c7c899495ae7f4b04fc2568991bb717bed9a
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- ''' Автор ArtyLa ''' import os, sys, re, logging import requests import store re_balance = r'(?usi)Баланс.*?>.*?>(-?\d*\.\d*)<' icon = '789CB593CF4B146118C7BF61EECA2E9520DE749D50B6221044F1E0316F46467419B6123D7AA808245AEB9CE40F9A43DD0A5BC543212E1E36F1DA22F80FA46C58EDE4CECE3B3BBBCEACBBADEBCEAFDE7933117688A07AE07B795F3E3CDFF7FBBCCF956BFDA7C1AA9FEA2255F3914E81FB7971747FB21CC7F91B39FF9AAFD56C7C48963033933BD6DB771A0CC3FE2D6FDB0E24C9C0E868067D7D3B686AFA782CEE7C0A6363192C2F17619AB627AFEB16464624F8FC5B18BE2E627E5E432CA66161414334AAC0E7DB4277F7676C6E56EAF86AD506CF4B6869F984E7828AD9D9021E5246560C58968344A24C7DA4E0F7A7B0B2B25FC71362A0B757C4C0C02EF5E7401034F0912CC46F356C6C1CA0ADED0BCE9CDDC1F4F45E9D7FF7DD8FA22ADADBD3C8E54C762E083AF85B04AF5E17C17122425C1A2F5EEA9EF9B9FE22911CF52E9EE08BE06F2B085FD8452098C6DD072A0E0FBDF377FB3F7EA22114CA40967FF1FB88DC51F1744A47579784ABC30ADEAF5758165EF3DBDE36D0D343E8ECF65896825062FCD7B481A5A5EFE8E89071E932C19B5885FD0FAFFC8786F238D72C63EA5909737325DCBBAF412626F3BDB858A1D9CB686D25585BAB7ACE3F9BB5D0D9A9A2B191607C5CA76FB190CF5B28142CACAE56110810048304F1B837EFCA6506073584C379BA590A5343834267A3E2C64D0D89F5833FDA9F64B286898932D3E4641971DADF30FFCFFEFD00C3708362' login_url = 'https://my.cardtel.ru/home' login_checkers = ['<input[^>]*name="authpwd"[^>]*', '<input[^>]*name="authpwd2"[^>]*', '<input[^>]*name="authlogin"[^>]*', '<input[^>]*type="button"[^>]*'] def get_balance(login, password, storename=None, **kwargs): logging.info(f'start get_balance {login}') result = {} session = store.Session(storename) # Проверяем залогинены ли ? response3 = session.get('https://my.cardtel.ru/home') if len(re.findall(re_balance, response3.content.decode('utf8'))) > 0: logging.info('Old session is ok') else: # Нет, логинимся data = {'op': 'auth', 'login': login, 'pwd': password, 'red': '1', 'remember': 'false'} session.drop_and_create() response2 = session.post('https://my.cardtel.ru/process', data=data) if response3.status_code != 200: raise RuntimeError( f'Login error: status_code {response2.status_code}!=200') response3 = session.get('https://my.cardtel.ru/home') if response3.status_code != 200: raise RuntimeError( f'Get balance page error: status_code {response2.status_code}!=200') balance = re.findall(re_balance, response3.content.decode('utf8')) if len(balance) == 0: raise RuntimeError(f'Balance not found on page') result['Balance'] = balance[0] session.save_session() return result if __name__ == '__main__': print('This is module cardtel')
63.325581
1,060
0.755417
199
2,723
10.21608
0.452261
0.029513
0.027546
0.031481
0.170192
0.160354
0.160354
0.123955
0.040334
0
0
0.277919
0.13184
2,723
42
1,061
64.833333
0.582064
0.02791
0
0.181818
0
0
0.605547
0.485747
0
1
0
0
0
1
0.030303
false
0.060606
0.090909
0
0.151515
0.030303
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
1
0
0
0
0
0
7
9d233365d0d1af937af74719416c4e1b324f0efd
22,491
py
Python
compilesub.py
singaporezoo/codebreaker-official
1fe5792f1c36f922abd0836d8dcb42d271a9323d
[ "MIT" ]
11
2021-09-19T06:32:44.000Z
2022-03-14T19:09:46.000Z
compilesub.py
singaporezoo/codebreaker-official
1fe5792f1c36f922abd0836d8dcb42d271a9323d
[ "MIT" ]
null
null
null
compilesub.py
singaporezoo/codebreaker-official
1fe5792f1c36f922abd0836d8dcb42d271a9323d
[ "MIT" ]
1
2022-03-02T13:27:27.000Z
2022-03-02T13:27:27.000Z
import io import time from datetime import datetime import subprocess import contestmode import awstools from uuid import uuid4 MAX_ERROR_LENGTH = 500 def check(code, problem_info, userInfo): validated = problem_info["validated"] nowhitespace = code.replace(" ", "") if not validated: if (userInfo == None): return {"status":"warning","message":"Please log in."} elif (userInfo['role'] != 'admin' and userInfo['role'] != 'superadmin'): return {"status":"warning","message":"Sorry, this problem still has issues. Please contact the administrators."} else: return {"status":"danger","message":"Problem has 1 or more issues that require fixing"} if ("system" in nowhitespace and "system_" not in nowhitespace): return {"status":"danger", "message":"You have used some keywords in your code that we don't allow, please contact an admin if you believe there is an issue"} banned = [] #["fork", "popen", "popen2", "execv", "execl", "execlp", "execvpe", "execle"] for b in banned: if b in nowhitespace: return {"status":"danger", "message":"You have used some keywords in your code that we don't allow, please contact an admin if you believe there is an issue"} #print(len(code)) if len(code) > 128000: time.sleep(0.75) return {"status":"danger", "message":":snuffle: your code is longer than shuffle! At most 128000 characters or you'll get poked!"} return {"status":"success", "message":""} def compileCommunication(codeA, codeB, problem_info): timeLimit = problem_info['timeLimit'] memoryLimit = problem_info['memoryLimit'] subtaskMaxScores = problem_info['subtaskScores'] subtaskNumber = len(subtaskMaxScores) subtaskDependency = problem_info['subtaskDependency'] testcaseNumber = problem_info['testcaseCount'] customChecker = problem_info['customChecker'] source = problem_info['source'] author = problem_info['author'] title = problem_info['title'] analysisVisible = problem_info['analysisVisible'] problemType = problem_info['problem_type'] validated = problem_info['validated'] PROBLEM_NAME = problem_info['problemName'] nameA = problem_info['nameA'] nameB = problem_info['nameB'] compileError="" if problemType == 'Communication': subuuid = str(uuid4()) subprocess.run(f'mkdir tmp/submissions/{subuuid}', shell=True) sourceAName = f"tmp/submissions/{subuuid}/{nameA}.cpp" sourceBName = f"tmp/submissions/{subuuid}/{nameB}.cpp" headerAName = f"tmp/submissions/{subuuid}/{nameA}.h" headerBName = f"tmp/submissions/{subuuid}/{nameB}.h" graderName = f"tmp/submissions/{subuuid}/grader.cpp" compiledName = f"tmp/submissions/{subuuid}/{subuuid}" #Save the code with open(sourceAName,"w") as sourceFile: sourceFile.write(codeA) sourceFile.close() with open(sourceBName,"w") as sourceFile: sourceFile.write(codeB) sourceFile.close() try: # Bring from s3 awstools.getGraderFile(f'{PROBLEM_NAME}/grader.cpp', graderName) awstools.getGraderFile(f'{PROBLEM_NAME}/{nameA}.h', headerAName) awstools.getGraderFile(f'{PROBLEM_NAME}/{nameB}.h', headerBName) #compile the code cmd=f"timeout 30s g++ -O2 -o {compiledName} {graderName} {sourceAName} {sourceBName} -m64 -static -std=gnu++17 -lm -s -w -Wall" process = subprocess.run(cmd, shell=True, capture_output=True) process.check_returncode() subId = awstools.getNextSubmissionId() #Upload the compiled code to S3 uploadTarget = f"compiled/{subId}" awstools.uploadCode(compiledName,uploadTarget) # Upload the source code to S3 uploadTarget=f"source/{subId}A.cpp" awstools.uploadCode(sourceAName,uploadTarget) uploadTarget=f"source/{subId}B.cpp" awstools.uploadCode(sourceBName,uploadTarget) #delete the codes subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) username = awstools.getCurrentUserInfo()['username'] awstools.gradeSubmission(PROBLEM_NAME,subId,username) #session["lastSubmission"] = time.time() time.sleep(2) return {"status":"redirect","message":f"/submission/{subId}"} except subprocess.CalledProcessError as e: time.sleep(0.75) subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) compileError += process.stderr.decode('UTF-8') compileError = compileError.replace(f"tmp/submissions/{subuuid}", "ans") compileError = compileError.replace("<", "&lt;") compileError = compileError.replace(">", "&gt;") compileError = compileError[:MAX_ERROR_LENGTH] #delete the codes subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) return {"status":"compileError","message":compileError} else: return {'status': 'compileError', 'message': "problem isn't even communication"} return {"status":"success","message":""} def compilesub(code, problem_info, language): timeLimit = problem_info['timeLimit'] memoryLimit = problem_info['memoryLimit'] subtaskMaxScores = problem_info['subtaskScores'] subtaskNumber = len(subtaskMaxScores) subtaskDependency = problem_info['subtaskDependency'] testcaseNumber = problem_info['testcaseCount'] customChecker = problem_info['customChecker'] source = problem_info['source'] author = problem_info['author'] title = problem_info['title'] analysisVisible = problem_info['analysisVisible'] problemType = problem_info['problem_type'] validated = problem_info['validated'] PROBLEM_NAME = problem_info['problemName'] compileError="" if language == 'py': # Don't need to compile, just save # Save the code subuuid = str(uuid4()) sourceName = f"tmp/submissions/{subuuid}.py" with open(sourceName,"w") as sourceFile: sourceFile.write(code) sourceFile.close() # Upload python code to source subId = awstools.getNextSubmissionId() uploadTarget=f"source/{subId}.py" awstools.uploadCode(sourceName,uploadTarget) #delete the codes subprocess.run(f'sudo rm {sourceName}', shell=True) username = awstools.getCurrentUserInfo()['username'] awstools.gradeSubmission(PROBLEM_NAME,subId,username,language=language) time.sleep(1.5) return {"status":"redirect","message":f"/submission/{subId}"} if problemType == 'Batch': subuuid = str(uuid4()) sourceName = f"tmp/submissions/{subuuid}.cpp" compiledName = f"tmp/submissions/{subuuid}" #Save the code with open(sourceName,"w") as sourceFile: sourceFile.write(code) sourceFile.close() try: #compile the code cmd=f"timeout 50s g++ -O2 -o {compiledName} {sourceName} -m64 -static -std=gnu++17 -lm -s -w -Wall -Wshadow -fmax-errors=512" process = subprocess.run(cmd, shell=True, capture_output=True) process.check_returncode() #print(f"after compile: {datetime.now()}") subId = awstools.getNextSubmissionId() #Upload the compiled code to S3 uploadTarget = f"compiled/{subId}" awstools.uploadCode(compiledName,uploadTarget) # Upload the source code to S3 uploadTarget=f"source/{subId}.cpp" awstools.uploadCode(sourceName,uploadTarget) #delete the codes subprocess.run(f'sudo rm {sourceName}', shell=True) subprocess.run(f'sudo rm {compiledName}', shell=True) username = awstools.getCurrentUserInfo()['username'] awstools.gradeSubmission(PROBLEM_NAME,subId,username) time.sleep(1.5) return {"status":"redirect","message":f"/submission/{subId}"} except subprocess.CalledProcessError: time.sleep(0.75) subprocess.run(f'sudo rm {sourceName}', shell=True) compileError += process.stderr.decode('UTF-8') #compileError = compileError.replace("\n", "<br>") compileError = compileError.replace(f"tmp/submissions/{subuuid}", "ans") compileError = compileError.replace("<", "&lt;") compileError = compileError.replace(">", "&gt;") compileError = compileError[:MAX_ERROR_LENGTH] if compileError == "": compileError = 'Compile timed out after 30s' return {"status":"compileError","message":compileError} elif problemType == 'Interactive': subuuid = str(uuid4()) subprocess.run(f'mkdir tmp/submissions/{subuuid}', shell=True) sourceName = f"tmp/submissions/{subuuid}/{PROBLEM_NAME}.cpp" headerName = f"tmp/submissions/{subuuid}/{PROBLEM_NAME}.h" graderName = f"tmp/submissions/{subuuid}/grader.cpp" compiledName = f"tmp/submissions/{subuuid}/{subuuid}" #Save the code with open(sourceName,"w") as sourceFile: sourceFile.write(code) sourceFile.close() try: # Bring from s3 awstools.getGraderFile(f'{PROBLEM_NAME}/grader.cpp', graderName) awstools.getGraderFile(f'{PROBLEM_NAME}/{PROBLEM_NAME}.h', headerName) #compile the code cmd=f"timeout 30s g++ -O2 -o {compiledName} {graderName} {sourceName} -m64 -static -std=gnu++17 -lm -s -w -Wall" process = subprocess.run(cmd, shell=True, capture_output=True) process.check_returncode() subId = awstools.getNextSubmissionId() #Upload the compiled code to S3 uploadTarget = f"compiled/{subId}" awstools.uploadCode(compiledName,uploadTarget) # Upload the source code to S3 uploadTarget=f"source/{subId}.cpp" awstools.uploadCode(sourceName,uploadTarget) #delete the codes subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) username = awstools.getCurrentUserInfo()['username'] awstools.gradeSubmission(PROBLEM_NAME,subId,username) #session["lastSubmission"] = time.time() time.sleep(2) return {"status":"redirect","message":f"/submission/{subId}"} except subprocess.CalledProcessError as e: time.sleep(0.75) compileError += process.stderr.decode('UTF-8') compileError = compileError.replace(f"tmp/submissions/{subuuid}", "ans") compileError = compileError.replace("<", "&lt;") compileError = compileError.replace(">", "&gt;") compileError = compileError[:MAX_ERROR_LENGTH] #delete the codes subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) return {"status":"compileError","message":compileError} return {"status":"success","message":""} def regradeCommunication(subId, regrade_type=0): subInfo = awstools.getSubmission(subId,False) if subInfo is None: return {'status':"warning",'message':"This submission doesn't exist"} problemName = subInfo['problemName'] problem_info = awstools.getProblemInfo(problemName) if type(problem_info) is str: return {'status':"warning",'message':"This problem doesn't exist"} if regrade_type==1 and subInfo['totalScore'] == 0: return {'status':'warning','message':'Score is 0, skipped'} if regrade_type==2 and subInfo['totalScore'] != 100: return {'status':'warning','message':'Not AC, skipped'} timeLimit = problem_info['timeLimit'] memoryLimit = problem_info['memoryLimit'] subtaskMaxScores = problem_info['subtaskScores'] subtaskNumber = len(subtaskMaxScores) subtaskDependency = problem_info['subtaskDependency'] testcaseNumber = problem_info['testcaseCount'] customChecker = problem_info['customChecker'] source = problem_info['source'] author = problem_info['author'] title = problem_info['title'] analysisVisible = problem_info['analysisVisible'] problemType = problem_info['problem_type'] validated = problem_info['validated'] PROBLEM_NAME = problem_info['problemName'] nameA = problem_info['nameA'] nameB = problem_info['nameB'] codeA = subInfo['codeA'] codeB = subInfo['codeB'] username = subInfo['username'] submissionTime = subInfo['submissionTime'] compileError="" if problemType == 'Communication': subuuid = str(uuid4()) subprocess.run(f'mkdir tmp/submissions/{subuuid}', shell=True) sourceAName = f"tmp/submissions/{subuuid}/{nameA}.cpp" sourceBName = f"tmp/submissions/{subuuid}/{nameB}.cpp" headerAName = f"tmp/submissions/{subuuid}/{nameA}.h" headerBName = f"tmp/submissions/{subuuid}/{nameB}.h" graderName = f"tmp/submissions/{subuuid}/grader.cpp" compiledName = f"tmp/submissions/{subuuid}/{subuuid}" #Save the code with open(sourceAName,"w") as sourceFile: sourceFile.write(codeA) sourceFile.close() with open(sourceBName,"w") as sourceFile: sourceFile.write(codeB) sourceFile.close() try: # Bring from s3 awstools.getGraderFile(f'{PROBLEM_NAME}/grader.cpp', graderName) awstools.getGraderFile(f'{PROBLEM_NAME}/{nameA}.h', headerAName) awstools.getGraderFile(f'{PROBLEM_NAME}/{nameB}.h', headerBName) #compile the code cmd=f"timeout 30s g++ -O2 -o {compiledName} {graderName} {sourceAName} {sourceBName} -m64 -static -std=gnu++17 -lm -s -w -Wall" process = subprocess.run(cmd, shell=True, capture_output=True) process.check_returncode() #Upload the compiled code to S3 uploadTarget = f"compiled/{subId}" awstools.uploadCode(compiledName,uploadTarget) # Upload the source code to S3 uploadTarget=f"source/{subId}A.cpp" awstools.uploadCode(sourceAName,uploadTarget) uploadTarget=f"source/{subId}B.cpp" awstools.uploadCode(sourceBName,uploadTarget) #delete the codes subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) awstools.gradeSubmission(PROBLEM_NAME,subId,username,submissionTime,regradeall=True) #session["lastSubmission"] = time.time() time.sleep(2) return {"status":"redirect","message":f"/submission/{subId}"} except subprocess.CalledProcessError as e: time.sleep(0.75) subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) compileError += process.stderr.decode('UTF-8') compileError = compileError.replace(f"tmp/submissions/{subuuid}", "ans") compileError = compileError.replace("<", "&lt;") compileError = compileError.replace(">", "&gt;") compileError = compileError[:MAX_ERROR_LENGTH] return {"status":"compileError","message":compileError} else: return {'status': 'compileError', 'message': "problem isn't even communication"} return {"status":"success","message":""} def regradeSub(subId, regrade_type = 0, language = 'cpp'): subInfo = awstools.getSubmission(subId,False) if subInfo is None: return {'status':"warning",'message':"This submission doesn't exist"} problemName = subInfo['problemName'] problem_info = awstools.getProblemInfo(problemName) if type(problem_info) is str: return {'status':"warning",'message':"This problem doesn't exist"} if problem_info['problem_type'] == 'Communication': return regradeCommunication(subId, regrade_type) if regrade_type==1 and subInfo['totalScore'] == 0: return {'status':'warning','message':'Score is 0, skipped'} if regrade_type==2 and subInfo['totalScore'] != 100: return {'status':'warning','message':'Not AC, skipped'} timeLimit = problem_info['timeLimit'] memoryLimit = problem_info['memoryLimit'] subtaskMaxScores = problem_info['subtaskScores'] subtaskNumber = len(subtaskMaxScores) subtaskDependency = problem_info['subtaskDependency'] testcaseNumber = problem_info['testcaseCount'] customChecker = problem_info['customChecker'] source = problem_info['source'] author = problem_info['author'] title = problem_info['title'] analysisVisible = problem_info['analysisVisible'] problemType = problem_info['problem_type'] validated = problem_info['validated'] PROBLEM_NAME = problem_info['problemName'] code = subInfo['code'] username = subInfo['username'] submissionTime = subInfo['submissionTime'] compileError="" if language == 'py': # Don't need to compile, just save # Save the code subuuid = str(uuid4()) sourceName = f"tmp/submissions/{subuuid}.py" with open(sourceName,"w") as sourceFile: sourceFile.write(code) sourceFile.close() # Upload python code to source uploadTarget=f"source/{subId}.py" awstools.uploadCode(sourceName,uploadTarget) #delete the codes subprocess.run(f'sudo rm {sourceName}', shell=True) username = awstools.getCurrentUserInfo()['username'] awstools.gradeSubmission(PROBLEM_NAME,subId,username,language=language) time.sleep(1.5) return {"status":"redirect","message":f"/submission/{subId}"} if problemType == 'Batch': subuuid = str(uuid4()) sourceName = f"tmp/submissions/{subuuid}.cpp" compiledName = f"tmp/submissions/{subuuid}" #Save the code with open(sourceName,"w") as sourceFile: sourceFile.write(code) sourceFile.close() try: #compile the code cmd=f"timeout 30s g++ -O2 -o {compiledName} {sourceName} -m64 -static -std=gnu++17 -lm -s -w -Wall -Wshadow -fmax-errors=512" process = subprocess.run(cmd, shell=True, capture_output=True) process.check_returncode() #print(f"after compile: {datetime.now()}") #Upload the compiled code to S3 uploadTarget = f"compiled/{subId}" awstools.uploadCode(compiledName,uploadTarget) #delete the codes subprocess.run(f'sudo rm {sourceName}', shell=True) subprocess.run(f'sudo rm {compiledName}', shell=True) awstools.gradeSubmission(PROBLEM_NAME,subId,username,submissionTime,regradeall=True) time.sleep(1.5) return {"status":"redirect","message":f"/submission/{subId}"} except subprocess.CalledProcessError: time.sleep(0.75) subprocess.run(f'sudo rm {sourceName}', shell=True) compileError += process.stderr.decode('UTF-8') #compileError = compileError.replace("\n", "<br>") compileError = compileError.replace(f"tmp/submissions/{subuuid}", "ans") compileError = compileError.replace("<", "&lt;") compileError = compileError.replace(">", "&gt;") compileError = compilerError[:MAX_ERROR_LENGTH] if compileError == "": compileError = 'Compile timed out after 30s' return {"status":"compileError","message":compileError} elif problemType == 'Interactive': subuuid = str(uuid4()) subprocess.run(f'mkdir tmp/submissions/{subuuid}', shell=True) sourceName = f"tmp/submissions/{subuuid}/{PROBLEM_NAME}.cpp" headerName = f"tmp/submissions/{subuuid}/{PROBLEM_NAME}.h" graderName = f"tmp/submissions/{subuuid}/grader.cpp" compiledName = f"tmp/submissions/{subuuid}/{subuuid}" #Save the code with open(sourceName,"w") as sourceFile: sourceFile.write(code) sourceFile.close() try: # Bring from s3 awstools.getGraderFile(f'{PROBLEM_NAME}/grader.cpp', graderName) awstools.getGraderFile(f'{PROBLEM_NAME}/{PROBLEM_NAME}.h', headerName) #compile the code cmd=f"timeout 30s g++ -O2 -o {compiledName} {graderName} {sourceName} -m64 -static -std=gnu++17 -lm -s -w -Wall" process = subprocess.run(cmd, shell=True, capture_output=True) process.check_returncode() #Upload the compiled code to S3 uploadTarget = f"compiled/{subId}" awstools.uploadCode(compiledName,uploadTarget) #delete the codes subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) awstools.gradeSubmission(PROBLEM_NAME,subId,username,submissionTime,regradeall=True) #session["lastSubmission"] = time.time() time.sleep(2) return {"status":"redirect","message":f"/submission/{subId}"} except subprocess.CalledProcessError as e: time.sleep(0.75) compileError += process.stderr.decode('UTF-8') compileError = compileError.replace(f"tmp/submissions/{subuuid}", "ans") compileError = compileError.replace("<", "&lt;") compileError = compileError.replace(">", "&gt;") compileError = compileError[:MAX_ERROR_LENGTH] #delete the codes subprocess.run(f'sudo rm -rf tmp/submissions/{subuuid}', shell=True) return {"status":"compileError","message":"compileError"} return {"status":"success","message":""} def regradeProblem(problemName, regrade_type = 0): #Please use your discretion (or if you want to donate to codebreaker :p) submissions = awstools.getSubmissionsToProblem(problemName) for i in submissions: subId = int(i['subId']) submissionInfo = awstools.getSubmission(subId) #print(submissionInfo) regradeSub(subId, regrade_type=regrade_type, language=submissionInfo['language']) awstools.updateScores(problemName)
40.090909
170
0.633676
2,317
22,491
6.092792
0.110056
0.050648
0.066941
0.049869
0.905291
0.901112
0.901112
0.901112
0.892895
0.892895
0
0.008647
0.239029
22,491
560
171
40.1625
0.816185
0.061269
0
0.887435
0
0.02356
0.262893
0.077928
0
0
0
0
0
1
0.015707
false
0
0.018325
0
0.128272
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
9d4b85e06fd327a822cc23f8d6705570444971b3
167
py
Python
backend/vehicle/admin.py
crowdbotics-apps/zaka-28999
5c9fff173a11033fc15f3930c2665b077756d738
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/vehicle/admin.py
crowdbotics-apps/zaka-28999
5c9fff173a11033fc15f3930c2665b077756d738
[ "FTL", "AML", "RSA-MD" ]
20
2021-08-16T11:43:14.000Z
2021-12-05T15:32:28.000Z
backend/vehicle/admin.py
crowdbotics-apps/nyk-30233
d5770a0622a3af836cbd70857ef3c2751692e3ef
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.contrib import admin from .models import Vehicle, VehicleType admin.site.register(VehicleType) admin.site.register(Vehicle) # Register your models here.
20.875
40
0.814371
22
167
6.181818
0.545455
0.235294
0.294118
0.411765
0
0
0
0
0
0
0
0
0.107784
167
7
41
23.857143
0.912752
0.155689
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
c23361ff357b7db687b6cc60d45d1423a4b5bfe5
24,606
py
Python
det3d/models/detectors/voxelnet.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
47
2022-03-21T02:41:39.000Z
2022-03-30T17:25:29.000Z
det3d/models/detectors/voxelnet.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
1
2022-03-28T15:11:26.000Z
2022-03-28T16:27:40.000Z
det3d/models/detectors/voxelnet.py
Lelin-HUNUST/VISTA
7bf34132d719cb0e5e803b92cd15451df58a9a5d
[ "MIT" ]
2
2022-03-23T12:56:14.000Z
2022-03-27T14:25:50.000Z
from ..registry import DETECTORS from .single_stage import SingleStageDetector import time import pdb import torch from torch import nn import spconv import logging from .. import builder import pickle import os import numpy as np def mkdir(path): try: os.makedirs(path) except: pass @DETECTORS.register_module class VoxelNet(SingleStageDetector): def __init__( self, reader, backbone, neck, bbox_head, train_cfg=None, test_cfg=None, pretrained=None, ): super(VoxelNet, self).__init__( reader, backbone, neck, bbox_head, train_cfg, test_cfg, pretrained ) def extract_feat(self, data): input_features = self.reader(data["features"], data["num_voxels"]) x = self.backbone( input_features, data["coors"], data["batch_size"], data["input_shape"] ) if self.with_neck: x = self.neck(x) return x def forward(self, example, return_loss=True, **kwargs): voxels = example["voxels"] coordinates = example["coordinates"] num_points_in_voxel = example["num_points"] num_voxels = example["num_voxels"] batch_size = len(num_voxels) data = dict( features=voxels, num_voxels=num_points_in_voxel, coors=coordinates, batch_size=batch_size, input_shape=example["shape"][0], ) x = self.extract_feat(data) preds = self.bbox_head(x) if return_loss: return self.bbox_head.loss(example, preds) else: return self.bbox_head.predict(example, preds, self.test_cfg) @DETECTORS.register_module class VoxelNetOHS(VoxelNet): def __init__( self, reader, backbone, neck, bbox_head, train_cfg=None, test_cfg=None, pretrained=None, ): if bbox_head.mode in ['rv2bev', 'rv_bev', 'bev2rv', 'cycle']: grid_size = reader.pop('grid_size') super(VoxelNet, self).__init__( reader, backbone, neck, bbox_head, train_cfg, test_cfg, pretrained ) if train_cfg: self.bbox_head.set_train_cfg(train_cfg['assigner']) self.occupancy = train_cfg['assigner'].get('occupancy', False) else: self.bbox_head.set_train_cfg(test_cfg['assigner']) if not (self.bbox_head.mode in ['bev', 'rv']): if 'FHD' in self.backbone.name: ds_factor = 16 else: ds_factor = 8 if grid_size[0] % ds_factor: num_input_features = (grid_size[0] // ds_factor + 1) * 128 else: num_input_features = (grid_size[0] // ds_factor) * 128 # cfg_rv_neck = dict( # type=neck['type'], # layer_nums=[5, 5], # ds_layer_strides = [1, 2], # ds_num_filters=[64, 128], # us_layer_strides=[1, 2], # us_num_filters=[128, 64], # num_input_features=(grid_size[0]//8+1)*128, # norm_cfg=neck['norm_cfg'], # logger=logging.getLogger("RVRPN") # ) # import pdb; pdb.set_trace() cfg_rv_neck = dict( type=neck['type'], layer_nums=[i for i in neck['layer_nums']], ds_layer_strides=[i for i in neck['ds_layer_strides']], ds_num_filters=[i // 2 for i in neck['ds_num_filters']], us_layer_strides=[i for i in neck['us_layer_strides']], us_num_filters=[i // 2 for i in neck['us_num_filters']], num_input_features=num_input_features, norm_cfg=neck['norm_cfg'], logger=logging.getLogger("RVRPN") ) self.rv_neck = builder.build_neck(cfg_rv_neck) if backbone.mode in ['rv2bev', 'cycle']: if grid_size[0] % 8: self.rv2bev = nn.Conv2d( grid_size[-1] // 8, grid_size[0] // 8 + 1, kernel_size=1) #self.rv2bev = nn.MaxPool2d(grid_size[-1] // 8) #self.rv2bev = nn.AvgPool2d(grid_size[-1] // 8) else: self.rv2bev = nn.Conv2d(grid_size[-1] // 8, grid_size[0] // 8, kernel_size=1) #self.fuse_layer = nn.Conv2d(grid_size[-1] // 8, grid_size[0] // 8 + 1, kernel_size=1) if backbone.mode in ['bev2rv', 'cycle']: if grid_size[0] % 8: self.bev2rv = nn.Conv2d(grid_size[0] // 8 + 1, grid_size[-1] // 8, kernel_size=1) else: self.bev2rv = nn.Conv2d(grid_size[0] // 8, grid_size[-1] // 8, kernel_size=1) # self.rv_layers = nn.Sequential( # nn.Conv2d(8192, 8192//4, kernel_size=3, padding=1), # nn.BatchNorm2d(8192//4), # nn.ReLU(), # nn.Conv2d(8192//4, 192, kernel_size=3, padding=1), # nn.BatchNorm2d(192), # nn.ReLU(), # ) def extract_feat(self, data, return_loss): input_features = self.reader(data["features"], data["num_voxels"]) x = self.backbone( input_features, data["coors"], data["batch_size"], data["input_shape"] ) if (self.bbox_head.mode in ['bev', 'rv']) and self.with_neck: return self.neck(x) else: x_bev, x_rv = x # N, C, D, H, W = x.shape # x_bev = self.neck(x.view(N, C * D, H, W)) # x = x.permute(0,1,4,3,2) # x_rv = self.rv_layers(x.contiguous().view(N, C * W, H, D)) x_bev = self.neck(x_bev) if return_loss or self.backbone.mode in ['rv2bev', 'cycle']: x_rv = self.rv_neck(x_rv) return (x_bev, x_rv) return x_bev def forward(self, example, return_loss=True, **kwargs): voxels = example["voxels"] coordinates = example["coordinates"] num_points_in_voxel = example["num_points"] num_voxels = example["num_voxels"] batch_size = len(num_voxels) data = dict( features=voxels, num_voxels=num_points_in_voxel, coors=coordinates, batch_size=batch_size, input_shape=example["shape"][0], ) x = self.extract_feat(data, return_loss) grid_size = example['shape'][0] preds = self.bbox_head(x, return_loss) del data['features'] del example["voxels"] # torch.cuda.empty_cache() if self.bbox_head.mode == 'rv2bev': for i in range(len(preds)): if return_loss: preds[i]['combine_score'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) else: # for k in range(batch_size): # shabi = torch.sigmoid(preds[i]['cls_preds'][k]).cpu().numpy() # np.save(os.path.join('bev_map3', example['metadata'][k]['token']) + '_%i' % i, shabi) preds[i]['cls_preds'] = 0.2 * self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3))\ .permute(0, 2, 1, 3) + 0.8 * preds[i]['cls_preds'] # if using max/avg pooling # preds[i]['cls_preds'] = 0.2 * self.rv2bev(preds[i]['rv_cls_preds']).repeat(1,1,preds[i]['cls_preds'].shape[2],1) \ # + 0.8 * preds[i]['cls_preds'] # preds[i]['cls_preds'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3).contiguous() # preds[i]['cls_preds'] = 0.2 * self.fuse_layer(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3) + 0.8 * preds[i]['cls_preds'] if self.bbox_head.mode == 'bev2rv': for i in range(len(preds)): if return_loss: preds[i]['combine_score'] = self.bev2rv(preds[i]['cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) if self.bbox_head.mode == 'cycle': for i in range(len(preds)): if return_loss: preds[i]['combine_score'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) preds[i]['bev2rv_score'] = self.bev2rv(preds[i]['cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) else: # pass preds[i]['cls_preds'] = 0.2 * self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3))\ .permute(0, 2, 1, 3) + 0.8 * preds[i]['cls_preds'] #preds[i]['cls_preds'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) # preds[i]['combine_score'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3) # preds[i]['bev2rv_score'] = self.bev2rv(preds[i]['cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3) # for k in range(batch_size): # shabi = torch.sigmoid(preds[i]['cls_preds'][k]).cpu().numpy() # np.save(os.path.join('bev_map',example['metadata'][k]['token'])+'_%i'%i, shabi) # # shabi = torch.sigmoid(preds[i]['combine_score'][k]).cpu().numpy() # np.save(os.path.join('rv_map', example['metadata'][k]['token']) + '_%i'%i, shabi) # # shabi = torch.sigmoid(0.2 * preds[i]['combine_score'][k] + 0.8 * preds[i]['cls_preds'][k]).cpu().numpy() # np.save(os.path.join('cycle_map', example['metadata'][k]['token']) + '_%i'%i, shabi) if return_loss: if self.occupancy: occupancy = spconv.SparseConvTensor( torch.ones((len(coordinates), 1), device=coordinates.device, dtype=x.dtype), coordinates.int(), grid_size[::-1], batch_size).dense().squeeze(1) occupancy = nn.AdaptiveMaxPool2d(x.shape[-2:])(occupancy).detach() occupancy, _ = torch.max(occupancy, dim=1) occupancy = occupancy.bool() else: occupancy = None return self.bbox_head.loss(example, preds, occupancy=None) else: # self.bbox_head.loss(example, preds, occupancy=None) # print(self.bbox_head.ohs_loss[0].shabi_box[0]) # print(self.bbox_head.ohs_loss[0].shabi_loc[0]) # # for k in range(batch_size): # # for i in range(len(self.bbox_head.ohs_loss)): # # shabi = ((self.bbox_head.ohs_loss[i].shabi_score.view(preds[i]['cls_preds'].shape))[k]).cpu().numpy() # # np.save(os.path.join('gt_map', example['metadata'][k]['token']) + '_%i'%i, shabi) # for i in range(len(self.bbox_head.ohs_loss)): # preds[i]['cls_preds'] = self.bbox_head.ohs_loss[i].shabi_score.view(preds[i]['cls_preds'].shape) # preds[i]['box_preds'][self.bbox_head.ohs_loss[i].shabi_loc[:, 0], self.bbox_head.ohs_loss[i].shabi_loc[:,1], self.bbox_head.ohs_loss[i].shabi_loc[:,2], -2:]=self.bbox_head.ohs_loss[i].shabi_box[:,-2:] # #assert (preds[i]['box_preds'][self.bbox_head.ohs_loss[i].shabi_loc[:, 0], self.bbox_head.ohs_loss[i].shabi_loc[:,1], self.bbox_head.ohs_loss[i].shabi_loc[:,2],3:6]>0).all() , "size should be larger than 0" # gt_len = 0 # for i in example['annos'][0]['gt_boxes']: # gt_len += len(i) # assert (len(shabi[0]['box3d_lidar']) <= gt_len) return self.bbox_head.predict(example, preds, self.test_cfg) @DETECTORS.register_module class VoxelNetCA(VoxelNet): def __init__( self, reader, backbone, neck, bbox_head, train_cfg=None, test_cfg=None, pretrained=None, save_attention=False, rv2bev_save_attention_path=None, bev2rv_save_attention_path=None ): if bbox_head.mode in ['rv2bev', 'rv_bev', 'bev2rv', 'cycle']: grid_size = reader.pop('grid_size') super(VoxelNet, self).__init__( reader, backbone, neck, bbox_head, train_cfg, test_cfg, pretrained ) self.save_attention = save_attention self.rv2bev_save_attention_path = rv2bev_save_attention_path self.bev2rv_save_attention_path = bev2rv_save_attention_path self.double_flip = False if train_cfg: self.bbox_head.set_train_cfg(train_cfg['assigner']) self.occupancy = train_cfg['assigner'].get('occupancy', False) else: self.bbox_head.set_train_cfg(test_cfg['assigner']) self.double_flip = test_cfg.get('double_flip', False) if not (self.bbox_head.mode in ['bev', 'rv']): if 'FHD' in self.backbone.name: ds_factor = 16 else: ds_factor = 8 if grid_size[0] % ds_factor: num_input_features = (grid_size[0] // ds_factor + 1) * 128 else: num_input_features = (grid_size[0] // ds_factor) * 128 # cfg_bev_neck = dict( # type="RPNT", # layer_nums=[5, 5], # ds_layer_strides=[1, 2], # ds_num_filters=[128, 256], # us_layer_strides=[1, 2], # us_num_filters=[256, 128], # num_input_features=1792, # 0.016:1408, 0.0125:1792 ,0.01: 2304, 0.008: 2944 6144 # norm_cfg=None, # logger=logging.getLogger("RPN"), # ) # cfg_rv_neck = dict( # type=cfg_bev_neck['type'], # layer_nums=[i for i in cfg_bev_neck['layer_nums']], # ds_layer_strides=[i for i in cfg_bev_neck['ds_layer_strides']], # ds_num_filters=[i for i in cfg_bev_neck['ds_num_filters']], # us_layer_strides=[i for i in cfg_bev_neck['us_layer_strides']], # us_num_filters=[i for i in cfg_bev_neck['us_num_filters']], # num_input_features=num_input_features, # norm_cfg=cfg_bev_neck['norm_cfg'], # logger=logging.getLogger("RVRPN") # ) # self.bev_unet = builder.build_neck(cfg_bev_neck) # self.rv_unet = builder.build_neck(cfg_rv_neck) # Cross Attention Module Initialization # self.rv2bev_ca_layer = builder.build_attention(atten.rv2bev_atten) # self.bev2rv_ca_layer = builder.build_attention(atten.bev2rv_atten) if backbone.mode in ['rv2bev', 'cycle']: if grid_size[0] % 8: self.rv2bev = nn.Conv2d( grid_size[-1] // 8, grid_size[0] // 8 + 1, kernel_size=1) #self.rv2bev = nn.MaxPool2d(grid_size[-1] // 8) #self.rv2bev = nn.AvgPool2d(grid_size[-1] // 8) else: self.rv2bev = nn.Conv2d(grid_size[-1] // 8, grid_size[0] // 8, kernel_size=1) #self.fuse_layer = nn.Conv2d(grid_size[-1] // 8, grid_size[0] // 8 + 1, kernel_size=1) if backbone.mode in ['bev2rv', 'cycle']: if grid_size[0] % 8: self.bev2rv = nn.Conv2d(grid_size[0] // 8 + 1, grid_size[-1] // 8, kernel_size=1) else: self.bev2rv = nn.Conv2d(grid_size[0] // 8, grid_size[-1] // 8, kernel_size=1) # self.rv_layers = nn.Sequential( # nn.Conv2d(8192, 8192//4, kernel_size=3, padding=1), # nn.BatchNorm2d(8192//4), # nn.ReLU(), # nn.Conv2d(8192//4, 192, kernel_size=3, padding=1), # nn.BatchNorm2d(192), # nn.ReLU(), # ) def extract_feat(self, data, return_loss): input_features = self.reader(data["features"], data["num_voxels"]) x = self.backbone( input_features, data["coors"], data["batch_size"], data["input_shape"] ) if (self.bbox_head.mode in ['bev', 'rv']) and self.with_neck: return self.neck(x) else: x_bev, x_rv = x #print(x_bev.shape, x_rv.shape) # x_bev = self.bev_unet(x_bev) # x_rv = self.rv_unet(x_rv) # N, C, D, H, W = x.shape # x_bev = self.neck(x.view(N, C * D, H, W)) # x = x.permute(0,1,4,3,2) # x_rv = self.rv_layers(x.contiguous().view(N, C * W, H, D)) x_bev, x_rv, x_rv_atten_map, x_bev_atten_map = self.neck((x_bev, x_rv)) if return_loss or self.backbone.mode in ['rv2bev', 'cycle']: # x_rv = self.rv_neck(x_rv) # print(x_bev.shape, x_rv.shape) # x_bev_atten, x_bev_atten_map = self.rv2bev_ca_layer[0]((x_bev, x_rv)) # x_bev_atten = self.rv2bev_ca_layer[1](x_bev_atten) # x_rv_atten, _ = self.bev2rv_ca_layer[0]((x_rv, x_bev)) # x_rv_atten = self.bev2rv_ca_layer[1](x_rv_atten) return (x_bev, x_rv), x_rv_atten_map, x_bev_atten_map return x_bev, x_bev def forward(self, example, return_loss=True, **kwargs): voxels = example["voxels"] coordinates = example["coordinates"] num_points_in_voxel = example["num_points"] num_voxels = example["num_voxels"] batch_size = len(num_voxels) data = dict( features=voxels, num_voxels=num_points_in_voxel, coors=coordinates, batch_size=batch_size, input_shape=example["shape"][0], ) x, x_rv_atten_map, x_bev_atten_map = self.extract_feat(data, return_loss) if not return_loss: if self.save_attention: mkdir(self.rv2bev_save_attention_path) mkdir(self.bev2rv_save_attention_path) atten_map_rv = x_rv_atten_map.cpu().detach().numpy() atten_map_bev = x_bev_atten_map.cpu().detach().numpy() for index, metadata in enumerate(example['metadata']): token = metadata['token'] atten_rv = atten_map_rv[index] np.save(os.path.join(self.rv2bev_save_attention_path, '%s.npy' % token), atten_rv) atten_bev = atten_map_bev[index] np.save(os.path.join(self.bev2rv_save_attention_path, '%s.npy' % token), atten_bev) grid_size = example['shape'][0] preds = self.bbox_head(x, return_loss) del data['features'] del example["voxels"] # torch.cuda.empty_cache() if self.bbox_head.mode == 'rv2bev': for i in range(len(preds)): if return_loss: preds[i]['combine_score'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) else: # for k in range(batch_size): # shabi = torch.sigmoid(preds[i]['cls_preds'][k]).cpu().numpy() # np.save(os.path.join('bev_map3', example['metadata'][k]['token']) + '_%i' % i, shabi) preds[i]['cls_preds'] = 0.2 * self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3))\ .permute(0, 2, 1, 3) + 0.8 * preds[i]['cls_preds'] # if using max/avg pooling # preds[i]['cls_preds'] = 0.2 * self.rv2bev(preds[i]['rv_cls_preds']).repeat(1,1,preds[i]['cls_preds'].shape[2],1) \ # + 0.8 * preds[i]['cls_preds'] # preds[i]['cls_preds'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3).contiguous() # preds[i]['cls_preds'] = 0.2 * self.fuse_layer(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3) + 0.8 * preds[i]['cls_preds'] if self.bbox_head.mode == 'bev2rv': for i in range(len(preds)): if return_loss: preds[i]['combine_score'] = self.bev2rv(preds[i]['cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) if self.bbox_head.mode == 'cycle': for i in range(len(preds)): if return_loss: preds[i]['combine_score'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) preds[i]['bev2rv_score'] = self.bev2rv(preds[i]['cls_preds'].permute(0, 2, 1, 3)) \ .permute(0, 2, 1, 3) else: # pass preds[i]['cls_preds'] = 0.2 * self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3))\ .permute(0, 2, 1, 3) + 0.8 * preds[i]['cls_preds'] #preds[i]['cls_preds'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) # preds[i]['combine_score'] = self.rv2bev(preds[i]['rv_cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3) # preds[i]['bev2rv_score'] = self.bev2rv(preds[i]['cls_preds'].permute(0, 2, 1, 3)) \ # .permute(0, 2, 1, 3) # for k in range(batch_size): # shabi = torch.sigmoid(preds[i]['cls_preds'][k]).cpu().numpy() # np.save(os.path.join('bev_map',example['metadata'][k]['token'])+'_%i'%i, shabi) # # shabi = torch.sigmoid(preds[i]['combine_score'][k]).cpu().numpy() # np.save(os.path.join('rv_map', example['metadata'][k]['token']) + '_%i'%i, shabi) # # shabi = torch.sigmoid(0.2 * preds[i]['combine_score'][k] + 0.8 * preds[i]['cls_preds'][k]).cpu().numpy() # np.save(os.path.join('cycle_map', example['metadata'][k]['token']) + '_%i'%i, shabi) if return_loss: if self.occupancy: occupancy = spconv.SparseConvTensor( torch.ones((len(coordinates), 1), device=coordinates.device, dtype=x.dtype), coordinates.int(), grid_size[::-1], batch_size).dense().squeeze(1) occupancy = nn.AdaptiveMaxPool2d(x.shape[-2:])(occupancy).detach() occupancy, _ = torch.max(occupancy, dim=1) occupancy = occupancy.bool() else: occupancy = None return self.bbox_head.loss(example, preds, occupancy) else: # self.bbox_head.loss(example, preds, occupancy=None) # print(self.bbox_head.ohs_loss[0].shabi_box[0]) # print(self.bbox_head.ohs_loss[0].shabi_loc[0]) # # for k in range(batch_size): # # for i in range(len(self.bbox_head.ohs_loss)): # # shabi = ((self.bbox_head.ohs_loss[i].shabi_score.view(preds[i]['cls_preds'].shape))[k]).cpu().numpy() # # np.save(os.path.join('gt_map', example['metadata'][k]['token']) + '_%i'%i, shabi) # for i in range(len(self.bbox_head.ohs_loss)): # preds[i]['cls_preds'] = self.bbox_head.ohs_loss[i].shabi_score.view(preds[i]['cls_preds'].shape) # preds[i]['box_preds'][self.bbox_head.ohs_loss[i].shabi_loc[:, 0], self.bbox_head.ohs_loss[i].shabi_loc[:,1], self.bbox_head.ohs_loss[i].shabi_loc[:,2], -2:]=self.bbox_head.ohs_loss[i].shabi_box[:,-2:] # #assert (preds[i]['box_preds'][self.bbox_head.ohs_loss[i].shabi_loc[:, 0], self.bbox_head.ohs_loss[i].shabi_loc[:,1], self.bbox_head.ohs_loss[i].shabi_loc[:,2],3:6]>0).all() , "size should be larger than 0" # gt_len = 0 # for i in example['annos'][0]['gt_boxes']: # gt_len += len(i) # assert (len(shabi[0]['box3d_lidar']) <= gt_len) return self.bbox_head.predict(example, preds, self.test_cfg)
48.058594
224
0.521783
3,202
24,606
3.78045
0.066209
0.038662
0.050558
0.034696
0.909624
0.882528
0.867988
0.851301
0.831062
0.80727
0
0.037495
0.329066
24,606
511
225
48.152642
0.695742
0.327075
0
0.748408
0
0
0.059868
0
0
0
0
0
0
1
0.031847
false
0.003185
0.038217
0
0.121019
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
c244f05d3fe4b01971c42b1fdc595d910098abad
12,593
py
Python
src/LDPC/pyldpc/decodingfunctions.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
1
2019-04-24T15:24:48.000Z
2019-04-24T15:24:48.000Z
src/LDPC/pyldpc/decodingfunctions.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
src/LDPC/pyldpc/decodingfunctions.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
import numpy as np from .ldpcalgebra import* import scipy __all__ = ['BinaryProduct', 'InCode', 'BinaryRank','Decoding_logBP','Decoding_BP','DecodedMessage'] def Decoding_BP(H,y,SNR,max_iter=1): """ Decoding function using Belief Propagation algorithm. IMPORTANT: H can be scipy.sparse.csr_matrix object to speed up calculations if n > 1000 highly recommanded. ----------------------------------- Parameters: H: 2D-array (OR scipy.sparse.csr_matrix object) Parity check matrix, shape = (m,n) y: n-vector recieved after transmission in the channel. (In general, returned by Coding Function) Signal-Noise Ratio: SNR = 10log(1/variance) in decibels of the AWGN used in coding. max_iter: (default = 1) max iterations of the main loop. Increase if decoding is not error-free. """ m,n=H.shape if not len(y)==n: raise ValueError('Size of y must be equal to number of parity matrix\'s columns n') if m>=n: raise ValueError('H must be of shape (m,n) with m < n') sigma = 10**(-SNR/20) p0 = np.zeros(shape=n) p0 = f1(y,sigma)/(f1(y,sigma) + fM1(y,sigma)) p1 = np.zeros(shape=n) p1 = fM1(y,sigma)/(f1(y,sigma) + fM1(y,sigma)) #### ETAPE 0 : Initialization q0 = np.zeros(shape=(m,n)) q0[:] = p0 q1 = np.zeros(shape=(m,n)) q1[:] = p1 r0 = np.zeros(shape=(m,n)) r1 = np.zeros(shape=(m,n)) count=0 prod = np.prod Bits,Nodes = BitsAndNodes(H) while(True): count+=1 #### ETAPE 1 : Horizontale deltaq = q0 - q1 deltar = r0 - r1 for i in range(m): Ni=Bits[i] for j in Ni: Nij = Ni.copy() if j in Nij: Nij.remove(j) deltar[i,j] = prod(deltaq[i,Nij]) r0 = 0.5*(1+deltar) r1 = 0.5*(1-deltar) #### ETAPE 2 : Verticale for j in range(n): Mj = Nodes[j] for i in Mj: Mji = Mj.copy() if i in Mji: Mji.remove(i) q0[i,j] = p0[j]*prod(r0[Mji,j]) q1[i,j] = p1[j]*prod(r1[Mji,j]) if q0[i,j] + q1[i,j]==0: q0[i,j]=0.5 q1[i,j]=0.5 else: alpha=1/(q0[i,j]+q1[i,j]) #Constante de normalisation alpha[i,j] q0[i,j]*= alpha q1[i,j]*= alpha # Maintenant q0[i,j] + q1[i,j] = 1 q0_post = np.zeros(n) q1_post = np.zeros(n) for j in range(n): Mj=Nodes[j] q0_post[j] = p0[j]*prod(r0[Mj,j]) q1_post[j] = p1[j]*prod(r1[Mj,j]) if q0_post[j] + q1_post[j]==0: q0_post[j]=0.5 q1_post[j]=0.5 alpha = 1/(q0_post[j]+q1_post[j]) q0_post[j]*= alpha q1_post[j]*= alpha x = np.array(q1_post > q0_post).astype(int) if InCode(H,x) or count >= max_iter: break return x def Decoding_logBP(H,y,SNR,max_iter=1): """ Decoding function using Belief Propagation algorithm (logarithmic version) IMPORTANT: if H is large (n>1000), H should be scipy.sparse.csr_matrix object to speed up calculations (highly recommanded. ) ----------------------------------- Parameters: H: 2D-array (OR scipy.sparse.csr_matrix object) Parity check matrix, shape = (m,n) y: n-vector recieved after transmission in the channel. (In general, returned by Coding Function) Signal-Noise Ratio: SNR = 10log(1/variance) in decibels of the AWGN used in coding. max_iter: (default = 1) max iterations of the main loop. Increase if decoding is not error-free. """ m,n=H.shape if not len(y)==n: raise ValueError('La taille de y doit correspondre au nombre de colonnes de H') if m>=n: raise ValueError('H doit avoir plus de colonnes que de lignes') var = 10**(-SNR/10) ### ETAPE 0: initialisation Lc = 2*y/var Lq=np.zeros(shape=(m,n)) Lr = np.zeros(shape=(m,n)) count=0 prod=np.prod tanh = np.tanh log = np.log Bits,Nodes = BitsAndNodes(H) while(True): count+=1 #### ETAPE 1 : Horizontale for i in range(m): Ni = Bits[i] for j in Ni: Nij = Ni.copy() if j in Nij: Nij.remove(j) if count==1: X = prod(tanh(0.5*Lc[Nij])) else: X = prod(tanh(0.5*Lq[i,Nij])) num = 1 + X denom = 1 - X if num == 0: Lr[i,j] = -1 elif denom == 0: Lr[i,j] = 1 else: Lr[i,j] = log(num/denom) #### ETAPE 2 : Verticale for j in range(n): Mj = Nodes[j] for i in Mj: Mji = Mj.copy() if i in Mji: Mji.remove(i) Lq[i,j] = Lc[j]+sum(Lr[Mji,j]) #### LLR a posteriori: L_posteriori = np.zeros(n) for j in range(n): Mj = Nodes[j] L_posteriori[j] = Lc[j] + sum(Lr[Mj,j]) x = np.array(L_posteriori <= 0).astype(int) product = InCode(H,x) if product or count >= max_iter: break return x def Decoding_BP_ext(H,BitsNodesTuple,y,SNR,max_iter=1): """ Decoding function using Belief Propagation algorithm. IMPORTANT: H can be scipy.sparse.csr_matrix object to speed up calculations if n > 1000 highly recommanded. ----------------------------------- Parameters: H: 2D-array (OR scipy.sparse.csr_matrix object) Parity check matrix, shape = (m,n) BitsNodesTuple: Tuple returned by BitsAndNodes function. y: n-vector recieved after transmission in the channel. (In general, returned by Coding Function) Signal-Noise Ratio: SNR = 10log(1/variance) in decibels of the AWGN used in coding. max_iter: (default = 1) max iterations of the main loop. Increase if decoding is not error-free. """ m,n=H.shape if not len(y)==n: raise ValueError('Size of y must be equal to number of parity matrix\'s columns n') if m>=n: raise ValueError('H must be of shape (m,n) with m < n') sigma = 10**(-SNR/20) p0 = np.zeros(shape=n) p0 = f1(y,sigma)/(f1(y,sigma) + fM1(y,sigma)) p1 = np.zeros(shape=n) p1 = fM1(y,sigma)/(f1(y,sigma) + fM1(y,sigma)) #### ETAPE 0 : Initialization q0 = np.zeros(shape=(m,n)) q0[:] = p0 q1 = np.zeros(shape=(m,n)) q1[:] = p1 r0 = np.zeros(shape=(m,n)) r1 = np.zeros(shape=(m,n)) count=0 prod = np.prod Bits = BitsNodesTuple[0] Nodes = BitsNodesTuple[1] while(True): count+=1 #### ETAPE 1 : Horizontale deltaq = q0 - q1 deltar = r0 - r1 for i in range(m): Ni=Bits[i] for j in Ni: Nij = Ni.copy() if j in Nij: Nij.remove(j) deltar[i,j] = prod(deltaq[i,Nij]) r0 = 0.5*(1+deltar) r1 = 0.5*(1-deltar) #### ETAPE 2 : Verticale for j in range(n): Mj = Nodes[j] for i in Mj: Mji = Mj.copy() if i in Mji: Mji.remove(i) q0[i,j] = p0[j]*prod(r0[Mji,j]) q1[i,j] = p1[j]*prod(r1[Mji,j]) if q0[i,j] + q1[i,j]==0: q0[i,j]=0.5 q1[i,j]=0.5 else: alpha=1/(q0[i,j]+q1[i,j]) #Constante de normalisation alpha[i,j] q0[i,j]*= alpha q1[i,j]*= alpha # Maintenant q0[i,j] + q1[i,j] = 1 q0_post = np.zeros(n) q1_post = np.zeros(n) for j in range(n): Mj=Nodes[j] q0_post[j] = p0[j]*prod(r0[Mj,j]) q1_post[j] = p1[j]*prod(r1[Mj,j]) if q0_post[j] + q1_post[j]==0: q0_post[j]=0.5 q1_post[j]=0.5 alpha = 1/(q0_post[j]+q1_post[j]) q0_post[j]*= alpha q1_post[j]*= alpha x = np.array(q1_post > q0_post).astype(int) if InCode(H,x) or count >= max_iter: break return x def Decoding_logBP_ext(H,BitsNodesTuple,y,SNR,max_iter=1): """ Decoding function using Belief Propagation algorithm (logarithmic version) IMPORTANT: if H is large (n>1000), H should be scipy.sparse.csr_matrix object to speed up calculations (highly recommanded. ) ----------------------------------- Parameters: H: 2D-array (OR scipy.sparse.csr_matrix object) Parity check matrix, shape = (m,n) BitsNodesTuple: Tuple returned by BitsAndNodes function. y: n-vector recieved after transmission in the channel. (In general, returned by Coding Function) Signal-Noise Ratio: SNR = 10log(1/variance) in decibels of the AWGN used in coding. max_iter: (default = 1) max iterations of the main loop. Increase if decoding is not error-free. """ m,n=H.shape if not len(y)==n: raise ValueError('La taille de y doit correspondre au nombre de colonnes de H') if m>=n: raise ValueError('H doit avoir plus de colonnes que de lignes') var = 10**(-SNR/10) ### ETAPE 0: initialisation Lc = 2*y/var Lq=np.zeros(shape=(m,n)) Lr = np.zeros(shape=(m,n)) count=0 prod=np.prod tanh = np.tanh log = np.log Bits = BitsNodesTuple[0] Nodes = BitsNodesTuple[1] while(True): count+=1 #### ETAPE 1 : Horizontale for i in range(m): Ni = Bits[i] for j in Ni: Nij = Ni.copy() if j in Nij: Nij.remove(j) if count==1: X = prod(tanh(0.5*Lc[Nij])) else: X = prod(tanh(0.5*Lq[i,Nij])) num = 1 + X denom = 1 - X if num == 0: Lr[i,j] = -1 elif denom == 0: Lr[i,j] = 1 else: Lr[i,j] = log(num/denom) #### ETAPE 2 : Verticale for j in range(n): Mj = Nodes[j] for i in Mj: Mji = Mj.copy() if i in Mji: Mji.remove(i) Lq[i,j] = Lc[j]+sum(Lr[Mji,j]) #### LLR a posteriori: L_posteriori = np.zeros(n) for j in range(n): Mj = Nodes[j] L_posteriori[j] = Lc[j] + sum(Lr[Mj,j]) x = np.array(L_posteriori <= 0).astype(int) product = InCode(H,x) if product or count >= max_iter: break return x def DecodedMessage(tG,x): """ Let G be a coding matrix. tG its transposed matrix. x a n-vector received after decoding. DecodedMessage Solves the equation on k-bits message v: x = v.G => G'v'= x' by applying GaussElimination on G'. ------------------------------------- Parameters: tG: Transposed Coding Matrix. Must have more rows than columns to solve the linear system. Must be full rank. x: n-array. Must be in the Code (in Ker(H)). """ n,k = tG.shape if n < k: raise ValueError('Coding matrix G must have more columns than rows to solve the linear system on v\': G\'v\' = x\'') rtG, rx = GaussElimination(tG,x) rank = sum([a.any() for a in rtG]) if rank!= k: raise ValueError('Coding matrix G must have full rank = k to solve G\'v\' = x\'') message=np.zeros(k).astype(int) message[k-1]=rx[k-1] for i in reversed(range(k-1)): message[i]=abs(rx[i]-BinaryProduct(rtG[i,list(range(i+1,k))],message[list(range(i+1,k))])) return message
25.186
124
0.483046
1,759
12,593
3.420694
0.116543
0.011966
0.020941
0.025927
0.897457
0.886156
0.886156
0.886156
0.873857
0.872528
0
0.034114
0.383149
12,593
499
125
25.236473
0.740474
0.271262
0
0.912863
0
0.008299
0.065965
0
0
0
0
0
0
1
0.020747
false
0
0.012448
0
0.053942
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
dfbde58ec0f3393370a7d08988e17ebf6cf5bb07
476
py
Python
temboo/core/Library/KhanAcademy/Topics/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/KhanAcademy/Topics/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/KhanAcademy/Topics/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.KhanAcademy.Topics.GetTopicExercises import GetTopicExercises, GetTopicExercisesInputSet, GetTopicExercisesResultSet, GetTopicExercisesChoreographyExecution from temboo.Library.KhanAcademy.Topics.GetTopicVideos import GetTopicVideos, GetTopicVideosInputSet, GetTopicVideosResultSet, GetTopicVideosChoreographyExecution from temboo.Library.KhanAcademy.Topics.TopicData import TopicData, TopicDataInputSet, TopicDataResultSet, TopicDataChoreographyExecution
119
176
0.911765
33
476
13.151515
0.545455
0.069124
0.117512
0.193548
0.235023
0
0
0
0
0
0
0
0.044118
476
3
177
158.666667
0.953846
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
5f3981848b95894c1e0468c878d67eb70389fb49
159
py
Python
tests/test_romt_crate.py
hehaoqian/romt
02d5d3f10f22883e277a319e19c199e349b1c8e5
[ "MIT" ]
29
2020-05-09T17:06:06.000Z
2022-03-30T16:18:01.000Z
tests/test_romt_crate.py
hehaoqian/romt
02d5d3f10f22883e277a319e19c199e349b1c8e5
[ "MIT" ]
12
2020-05-23T13:10:51.000Z
2022-03-27T21:48:18.000Z
tests/test_romt_crate.py
hehaoqian/romt
02d5d3f10f22883e277a319e19c199e349b1c8e5
[ "MIT" ]
9
2020-10-15T17:07:13.000Z
2022-03-13T18:47:25.000Z
#!/usr/bin/env python3 # coding=utf-8 import romt.crate def test_crate_prefix_from_name() -> None: assert romt.crate.crate_prefix_from_name("a") == "1"
17.666667
56
0.716981
26
159
4.115385
0.730769
0.168224
0.280374
0.35514
0
0
0
0
0
0
0
0.021739
0.132075
159
8
57
19.875
0.753623
0.213836
0
0
0
0
0.01626
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
8
a069900496db2b0d18d89ade9bfb8dae11d12cad
326
py
Python
tools/world_tools.py
ttw4-mud/server
bb49b89669a2b54e3ae449c382a20d75401b17ee
[ "MIT" ]
null
null
null
tools/world_tools.py
ttw4-mud/server
bb49b89669a2b54e3ae449c382a20d75401b17ee
[ "MIT" ]
6
2020-04-29T05:52:35.000Z
2021-09-22T19:00:46.000Z
tools/world_tools.py
Sara-DLC/mud-server
11d1ea5dc8aab69ac64a6e0572f918a58a076894
[ "MIT" ]
null
null
null
############################################################ from .delete_world import delete_world from .create_simple_world import create_simple_world from .create_naive_grid_world import create_naive_grid_world from .create_grid_world import create_grid_world ############################################################
36.222222
60
0.558282
32
326
5.1875
0.25
0.26506
0.271084
0.240964
0
0
0
0
0
0
0
0
0.06135
326
8
61
40.75
0.542484
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
a081a3b56414d1ff0e045446bc9d902dbb25c166
3,437
py
Python
knx_stack/tests/test_doctests.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
2
2021-07-28T07:42:28.000Z
2022-01-25T18:56:05.000Z
knx_stack/tests/test_doctests.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
6
2021-07-25T21:36:01.000Z
2022-02-20T21:11:31.000Z
knx_stack/tests/test_doctests.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
null
null
null
import unittest import doctest import knx_stack tests = list() tests.append(doctest.DocTestSuite(knx_stack.datapointtypes)) tests.append(doctest.DocTestSuite(knx_stack.layer.link.ldata)) tests.append(doctest.DocTestSuite(knx_stack.layer.network.address_table)) tests.append(doctest.DocTestSuite(knx_stack.layer.transport.association_table)) tests.append(doctest.DocTestSuite(knx_stack.layer.application.groupobject_table)) tests.append(doctest.DocTestSuite(knx_stack.layer.application.a_property_value)) tests.append(doctest.DocTestSuite(knx_stack.msg)) tests.append(doctest.DocTestSuite(knx_stack.state)) tests.append(doctest.DocTestSuite(knx_stack.address)) tests.append( doctest.DocTestSuite(knx_stack.encode.layer.application.a_group_value_read.req) ) tests.append( doctest.DocTestSuite(knx_stack.encode.layer.application.a_group_value_write.req) ) tests.append( doctest.DocTestSuite(knx_stack.encode.layer.application.a_property_value_read.req) ) tests.append( doctest.DocTestSuite(knx_stack.encode.layer.application.a_property_value_write.req) ) tests.append(doctest.DocTestSuite(knx_stack.encode.layer.transport.t_connect.req)) tests.append( doctest.DocTestSuite(knx_stack.decode.usb_hid.report_header.report_identifier) ) tests.append(doctest.DocTestSuite(knx_stack.encode.knxnet_ip.core.connect.req)) tests.append(doctest.DocTestSuite(knx_stack.encode.knxnet_ip.core.disconnect.req)) tests.append(doctest.DocTestSuite(knx_stack.encode.knxnet_ip.core.connectionstate.req)) tests.append(doctest.DocTestSuite(knx_stack.encode.knxnet_ip.core.search.req)) tests.append(doctest.DocTestSuite(knx_stack.encode.knxnet_ip.tunneling.req)) tests.append(doctest.DocTestSuite(knx_stack.encode.knxnet_ip.tunneling.ack)) tests.append(doctest.DocTestSuite(knx_stack.encode.knxnet_ip.header)) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_group_value_read.ind) ) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_group_value_read.con) ) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_group_value_write.ind) ) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_group_value_write.con) ) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_property_value_read.ind) ) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_property_value_read.con) ) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_property_value_write.ind) ) tests.append( doctest.DocTestSuite(knx_stack.decode.layer.application.a_property_value_write.con) ) tests.append(doctest.DocTestSuite(knx_stack.decode.knxnet_ip.core.search.res)) tests.append(doctest.DocTestSuite(knx_stack.decode.knxnet_ip.core.connect.res)) tests.append(doctest.DocTestSuite(knx_stack.decode.knxnet_ip.core.disconnect.res)) tests.append(doctest.DocTestSuite(knx_stack.decode.knxnet_ip.core.connectionstate.res)) tests.append(doctest.DocTestSuite(knx_stack.decode.knxnet_ip.tunneling.req)) tests.append(doctest.DocTestSuite(knx_stack.decode.knxnet_ip.tunneling.ack)) # tests.append(doctest.DocFileSuite('../docs/source/intro.rst', package=knx_stack)) def load_tests(loader, suite, ignore): for test in tests: suite.addTests(test) return suite suite = unittest.TestSuite() [suite.addTests(test) for test in tests] runner = unittest.TextTestRunner(verbosity=2) runner.run(suite)
41.409639
87
0.830957
474
3,437
5.820675
0.149789
0.110185
0.241392
0.391446
0.828561
0.823487
0.768394
0.728525
0.689018
0.627401
0
0.000306
0.050044
3,437
82
88
41.914634
0.844717
0.023567
0
0.175676
0
0
0
0
0
0
0
0
0
1
0.013514
false
0
0.040541
0
0.067568
0
0
0
0
null
0
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
a0aa6c126066c39d4ad08eeffefb872bd9fac2fd
92
py
Python
boltiot/__init__.py
oam-mit/bolt-api-python
f4a62db5bfa99816bbbba590aca4d2450514eb4b
[ "MIT" ]
13
2017-08-09T06:51:37.000Z
2022-01-26T14:00:58.000Z
boltiot/__init__.py
oam-mit/bolt-api-python
f4a62db5bfa99816bbbba590aca4d2450514eb4b
[ "MIT" ]
5
2017-09-28T18:03:23.000Z
2021-07-11T14:33:06.000Z
boltiot/__init__.py
oam-mit/bolt-api-python
f4a62db5bfa99816bbbba590aca4d2450514eb4b
[ "MIT" ]
9
2017-08-09T06:53:59.000Z
2020-10-01T02:29:34.000Z
from boltiot.bolt import Bolt from boltiot.alert import Sms from boltiot.alert import Email
23
31
0.836957
15
92
5.133333
0.466667
0.428571
0.415584
0.571429
0
0
0
0
0
0
0
0
0.130435
92
3
32
30.666667
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
1
0
0
8
265c6565defabdd8feb4cb67cc5a5f06ac736e0f
66
py
Python
turf/polygon_to_line/__init__.py
malroc/pyturf
c89b6ea7094bd5ca26cf589d9dcd15bd819d82e9
[ "MIT" ]
11
2020-08-26T11:04:55.000Z
2022-01-26T14:53:10.000Z
turf/polygon_to_line/__init__.py
malroc/pyturf
c89b6ea7094bd5ca26cf589d9dcd15bd819d82e9
[ "MIT" ]
36
2020-04-09T16:49:05.000Z
2020-06-01T14:39:37.000Z
turf/polygon_to_line/__init__.py
malroc/pyturf
c89b6ea7094bd5ca26cf589d9dcd15bd819d82e9
[ "MIT" ]
5
2020-07-30T23:37:35.000Z
2021-08-24T08:10:28.000Z
from turf.polygon_to_line._polygon_to_line import polygon_to_line
33
65
0.909091
12
66
4.416667
0.5
0.509434
0.735849
0
0
0
0
0
0
0
0
0
0.060606
66
1
66
66
0.854839
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
266378695439aeb0929c7848b03ba1272110936e
176
py
Python
algebra_utilities/objects/__init__.py
computational-group-the-golden-ticket/AlgebraUtilities
d5c7c2806b6bd394564ae4146a2c5164f4ebe882
[ "MIT" ]
null
null
null
algebra_utilities/objects/__init__.py
computational-group-the-golden-ticket/AlgebraUtilities
d5c7c2806b6bd394564ae4146a2c5164f4ebe882
[ "MIT" ]
null
null
null
algebra_utilities/objects/__init__.py
computational-group-the-golden-ticket/AlgebraUtilities
d5c7c2806b6bd394564ae4146a2c5164f4ebe882
[ "MIT" ]
null
null
null
from algebra_utilities.objects.baseobjects import * from algebra_utilities.objects.permutations import KCycle from algebra_utilities.objects.permutations import Permutation
44
63
0.875
20
176
7.55
0.45
0.218543
0.397351
0.536424
0.596026
0.596026
0
0
0
0
0
0
0.085227
176
3
64
58.666667
0.937888
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
2684a2fea025d466bca01b5f00cc3dfd88d887a6
9,152
py
Python
jcatalog/models.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/models.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/models.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from mongoengine import * import datetime connect('journals-catalog') class Scielo(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() extraction_date = DateTimeField() issn_list = ListField() date_of_the_first_document = DateTimeField() date_of_the_last_document = DateTimeField() scholarone = IntField(required=True, min_value=0, default=0) ojs_scielo = IntField(required=True, min_value=0, default=0) is_submissions = IntField(required=True, min_value=0, default=0) is_scielo = IntField(required=True, min_value=1, default=1) is_scimago = IntField(required=True, min_value=0, default=0) is_scopus = IntField(required=True, min_value=0, default=0) is_jcr = IntField(required=True, min_value=0, default=0) is_cwts = IntField(required=True, min_value=0, default=0) is_doaj = IntField(required=True, min_value=0, default=0) is_capes = IntField(required=True, min_value=0, default=0) is_pubmed = IntField(required=True, min_value=0, default=0) is_pmc = IntField(required=True, min_value=0, default=0) is_wos = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country' ] } class Scielobk1(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() extraction_date = DateTimeField() issn_list = ListField() date_of_the_first_document = DateTimeField() date_of_the_last_document = DateTimeField() scholarone = IntField(required=True, min_value=0, default=0) ojs_scielo = IntField(required=True, min_value=0, default=0) is_submissions = IntField(required=True, min_value=0, default=0) is_scielo = IntField(required=True, min_value=1, default=1) is_scimago = IntField(required=True, min_value=0, default=0) is_scopus = IntField(required=True, min_value=0, default=0) is_jcr = IntField(required=True, min_value=0, default=0) is_cwts = IntField(required=True, min_value=0, default=0) is_doaj = IntField(required=True, min_value=0, default=0) is_capes = IntField(required=True, min_value=0, default=0) is_pubmed = IntField(required=True, min_value=0, default=0) is_pmc = IntField(required=True, min_value=0, default=0) is_wos = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'pid', 'collection' ] } class Scimago(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() is_scielo = IntField(required=True, min_value=0, default=0) is_scimago = IntField(required=True, min_value=1, default=1) is_scopus = IntField(required=True, min_value=0, default=0) is_jcr = IntField(required=True, min_value=0, default=0) is_wos = IntField(required=True, min_value=0, default=0) inscielo = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country' ] } class Scopus(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() is_scielo = IntField(required=True, min_value=0, default=0) is_scimago = IntField(required=True, min_value=0, default=0) is_scopus = IntField(required=True, min_value=1, default=1) is_jcr = IntField(required=True, min_value=0, default=0) is_wos = IntField(required=True, min_value=0, default=0) is_cwts = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country', 'sourcerecord_id', 'asjc_code_list', 'oecd' ] } class Jcr(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() is_scielo = IntField(required=True, min_value=0, default=0) is_scimago = IntField(required=True, min_value=0, default=0) is_scopus = IntField(required=True, min_value=0, default=0) is_jcr = IntField(required=True, min_value=1, default=1) is_wos = IntField(required=True, min_value=0, default=0) is_cwts = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country' ] } class Wos(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() is_scielo = IntField(required=True, min_value=0, default=0) is_scimago = IntField(required=True, min_value=0, default=0) is_scopus = IntField(required=True, min_value=0, default=0) is_jcr = IntField(required=True, min_value=0, default=0) is_wos = IntField(required=True, min_value=1, default=1) is_cwts = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country' ] } class Jcr_scielo(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() is_scielo = IntField(required=True, min_value=0, default=0) is_scimago = IntField(required=True, min_value=0, default=0) is_scopus = IntField(required=True, min_value=0, default=0) is_jcr = IntField(required=True, min_value=1, default=1) is_wos = IntField(required=True, min_value=0, default=0) is_cwts = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country' ] } class Oecd(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() # Indexes meta = { 'indexes': [ 'oecd_description', 'wos_description' ] } class Cwts(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() is_cwts = IntField(required=True, min_value=1, default=1) is_scielo = IntField(required=True, min_value=0, default=0) is_scimago = IntField(required=True, min_value=0, default=0) is_scopus = IntField(required=True, min_value=0, default=0) is_jcr = IntField(required=True, min_value=0, default=0) is_wos = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country' ] } class Submissions(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() scholarone = IntField(required=True, min_value=0, default=0) ojs_scielo = IntField(required=True, min_value=0, default=0) ojs_outro = IntField(required=True, min_value=0, default=0) outro = IntField(required=True, min_value=0, default=0) class Doaj(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() class Doajapi(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() class Pubmedapi(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() class Noscielo(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() class Capes(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() # Indexes meta = { 'indexes': [ 'issn', 'title', 'area_avaliacao' ] } class Wosindexes(DynamicDocument): creation_date = DateTimeField(default=datetime.datetime.now) updated_at = DateTimeField() issn_list = ListField() is_scielo = IntField(required=True, min_value=0, default=0) is_wos = IntField(required=True, min_value=0, default=0) # Indexes meta = { 'indexes': [ 'issn_list', 'title_country' ] } class Ztests(DynamicDocument): pass class Scielodates(DynamicDocument): # creation_date = DateTimeField(default=datetime.datetime.now) # updated_at = DateTimeField() issn_list = ListField() # Indexes meta = { 'indexes': [ 'issn_list', 'issn_scielo', 'pid' ] }
33.40146
69
0.651442
1,076
9,152
5.333643
0.067844
0.18958
0.236975
0.272521
0.939711
0.93518
0.93518
0.934483
0.934483
0.908172
0
0.019799
0.238418
9,152
273
70
33.52381
0.803587
0.021744
0
0.7
0
0
0.046053
0
0
0
0
0
0
1
0
false
0.004545
0.009091
0
0.695455
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
1
0
0
9
cd2420343a2aeaa3135b4abdc16094cda0125b17
10,351
py
Python
variance-networks-tf/nets/utils.py
AlliedToasters/elko_den
4e69f7f5c0dc7ffad54c7e190a2b75aba2eab7d2
[ "Apache-2.0" ]
38
2018-07-14T23:09:27.000Z
2021-11-30T08:26:56.000Z
variance-networks-tf/nets/utils.py
AlliedToasters/elko_den
4e69f7f5c0dc7ffad54c7e190a2b75aba2eab7d2
[ "Apache-2.0" ]
1
2019-06-19T07:42:58.000Z
2019-06-19T07:42:58.000Z
variance-networks-tf/nets/utils.py
AlliedToasters/elko_den
4e69f7f5c0dc7ffad54c7e190a2b75aba2eab7d2
[ "Apache-2.0" ]
7
2018-07-15T15:16:59.000Z
2020-04-10T09:21:41.000Z
import tensorflow as tf def build_graph(images, labels, loss_function, inference_function, learning_rate, global_step): optimizer_net = tf.train.AdamOptimizer(learning_rate=learning_rate, beta1=0.95) tf.summary.scalar('learning_rate', learning_rate) with tf.variable_scope(tf.get_variable_scope()) as scope: logits_train = inference_function(images, reuse=False, is_training=True, stohastic=True) probs_train = tf.nn.softmax(logits_train) train_loss = loss_function(logits_train, labels) tf.get_variable_scope().reuse_variables() logits_test_det = inference_function(images, reuse=True, is_training=False, stohastic=False) probs_test_det = tf.nn.softmax(logits_test_det) logits_test_stoh = inference_function(images, reuse=True, is_training=False, stohastic=True) probs_test_stoh = tf.nn.softmax(logits_test_stoh) update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS) with tf.control_dependencies(update_ops): train_op = optimizer_net.minimize(train_loss, global_step=global_step) return train_op, probs_train, probs_test_det, probs_test_stoh, train_loss def build_graph_stoch(images, labels, loss_function, inference_function, learning_rate, global_step): optimizer_net = tf.train.AdamOptimizer(learning_rate=learning_rate, beta1=0.95) tf.summary.scalar('learning_rate', learning_rate) with tf.variable_scope(tf.get_variable_scope()) as scope: logits_stoch = inference_function(images, stochastic=True, reuse=False) probs_stoch = tf.nn.softmax(logits_stoch) tf.get_variable_scope().reuse_variables() logits_det = inference_function(images, stochastic=False, reuse=True) probs_det = tf.nn.softmax(logits_det) train_loss = loss_function(logits_stoch, labels) train_op = optimizer_net.minimize(train_loss, global_step=global_step) return train_op, probs_det, probs_stoch def average_gradients(tower_grads): average_grads = [] for grad_and_vars in zip(*tower_grads): grads = [] for g, _ in grad_and_vars: # Add 0 dimension to the gradients to represent the tower. expanded_g = tf.expand_dims(g, 0) # Append on a 'tower' dimension which we will average over below. grads.append(expanded_g) # Average over the 'tower' dimension. grad = tf.concat(grads, 0) grad = tf.reduce_mean(grad, 0) # Keep in mind that the Variables are redundant because they are shared # across towers. So .. we will just return the first tower's pointer to # the Variable. v = grad_and_vars[0][1] grad_and_var = (grad, v) average_grads.append(grad_and_var) return average_grads def build_graph_multigpu(images_train, labels_train, images_test, labels_test, global_step, loss_function, accuracy_function, inference_function, learning_rate, devices): optimizer = tf.train.AdamOptimizer(learning_rate=learning_rate, beta1=0.95) train_queue = tf.contrib.slim.prefetch_queue.prefetch_queue([images_train, labels_train], capacity=20 * len(devices), num_threads=len(devices)) test_queue = tf.contrib.slim.prefetch_queue.prefetch_queue([images_test, labels_test], capacity=20 * len(devices), num_threads=len(devices)) tower_grads = [] train_loss_arr = [] train_acc_arr = [] test_loss_arr = [] test_acc_arr = [] with tf.variable_scope(tf.get_variable_scope()) as scope: for dev_id in range(len(devices)): with tf.device(devices[dev_id]): with tf.name_scope('tower_%s' % devices[dev_id][-1]) as scope: # train ops batch_images_train, batch_labels_train = train_queue.dequeue() train_preds = inference_function(batch_images_train, reuse=dev_id != 0, is_training=True) train_loss = loss_function(train_preds, batch_labels_train, reuse=dev_id != 0) train_loss_arr.append(train_loss) train_acc_arr.append(accuracy_function(train_preds, batch_labels_train)) variables = filter(lambda v: 'optimizer' not in v.name.lower(), tf.trainable_variables()) grads = optimizer.compute_gradients(train_loss, variables) tower_grads.append(grads) tf.get_variable_scope().reuse_variables() # test ops batch_images_test, batch_labels_test = test_queue.dequeue() test_preds = inference_function(batch_images_test, reuse=True, is_training=False) test_loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=test_preds, labels=batch_labels_test) test_loss = tf.reduce_mean(test_loss) test_loss_arr.append(test_loss) test_acc_arr.append(accuracy_function(test_preds, batch_labels_test)) tf.get_variable_scope().reuse_variables() grads = average_gradients(tower_grads) update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS) train_loss_op = tf.add_n(train_loss_arr)/len(devices) tf.summary.scalar('train loss', train_loss_op) train_acc_op = tf.add_n(train_acc_arr)/len(devices) tf.summary.scalar('train accuracy', train_acc_op) test_loss_op = tf.add_n(test_loss_arr)/len(devices) test_acc_op = tf.add_n(test_acc_arr)/len(devices) with tf.control_dependencies(update_ops): train_op = optimizer.apply_gradients(grads, global_step=global_step) return train_op, test_acc_op, test_loss_op def build_graph_multigpu_stoch(images_train, labels_train, images_test, labels_test, global_step, loss_function, accuracy_function, inference_function, learning_rate, devices): optimizer = tf.train.AdamOptimizer(learning_rate=learning_rate, beta1=0.95) train_queue = tf.contrib.slim.prefetch_queue.prefetch_queue([images_train, labels_train], capacity=20 * len(devices), num_threads=len(devices)) test_queue = tf.contrib.slim.prefetch_queue.prefetch_queue([images_test, labels_test], capacity=20 * len(devices), num_threads=len(devices)) tower_grads = [] train_loss_arr = [] train_acc_arr = [] test_loss_arr = [] test_acc_arr = [] with tf.variable_scope(tf.get_variable_scope()) as scope: for dev_id in range(len(devices)): with tf.device(devices[dev_id]): with tf.name_scope('tower_%s' % devices[dev_id][-1]) as scope: # train ops batch_images_train, batch_labels_train = train_queue.dequeue() train_preds = inference_function(batch_images_train, reuse=dev_id != 0, is_training=True) train_loss = loss_function(train_preds, batch_labels_train, reuse=dev_id != 0) train_loss_arr.append(train_loss) train_acc_arr.append(accuracy_function(train_preds, batch_labels_train)) variables = filter(lambda v: 'optimizer' not in v.name.lower(), tf.trainable_variables()) grads = optimizer.compute_gradients(train_loss, variables) tower_grads.append(grads) tf.get_variable_scope().reuse_variables() # test ops batch_images_test, batch_labels_test = test_queue.dequeue() test_preds = inference_function(batch_images_test, reuse=True, is_training=False) test_loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=test_preds, labels=batch_labels_test) test_loss = tf.reduce_mean(test_loss) test_loss_arr.append(test_loss) test_acc_arr.append(accuracy_function(test_preds, batch_labels_test)) tf.get_variable_scope().reuse_variables() grads = average_gradients(tower_grads) update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS) train_loss_op = tf.add_n(train_loss_arr)/len(devices) tf.summary.scalar('train loss', train_loss_op) train_acc_op = tf.add_n(train_acc_arr)/len(devices) tf.summary.scalar('train accuracy', train_acc_op) test_loss_op = tf.add_n(test_loss_arr)/len(devices) test_acc_op = tf.add_n(test_acc_arr)/len(devices) with tf.control_dependencies(update_ops): train_op = optimizer.apply_gradients(grads, global_step=global_step) return train_op, test_acc_op, test_loss_op def get_weights(): variables = tf.get_collection('variables') # variables = filter(lambda v: 'conv_2' in v.name.lower() or 'dense_1' in v.name.lower(), variables) variables = filter(lambda v: 'dense_1' in v.name.lower(), variables) variables = filter(lambda v: 'W' in v.name or 'kernel' in v.name, variables) return variables def build_graph_with_hess(images, labels, loss_function, inference_function, learning_rate, global_step): optimizer_net = tf.train.AdamOptimizer(learning_rate=learning_rate, beta1=0.95) tf.summary.scalar('learning_rate', learning_rate) with tf.variable_scope(tf.get_variable_scope()) as scope: logits_stoch = inference_function(images, stochastic=True, reuse=False) probs_stoch = tf.nn.softmax(logits_stoch) tf.get_variable_scope().reuse_variables() logits_det = inference_function(images, stochastic=False, reuse=True) probs_det = tf.nn.softmax(logits_det) train_loss = loss_function(logits_stoch, labels) # weights = get_weights() # for v in weights: # hess = tf.diag_part(tf.squeeze(tf.hessians(logits_det, v))) # tf.summary.histogram(v.name + 'hessian', hess) # print v.name, v.get_shape(), hess.get_shape() train_op = optimizer_net.minimize(train_loss, global_step=global_step) return train_op, probs_det, probs_stoch
55.352941
117
0.66467
1,337
10,351
4.801795
0.112939
0.035047
0.024299
0.033645
0.83567
0.819626
0.819626
0.813707
0.813707
0.784112
0
0.005502
0.245
10,351
186
118
55.650538
0.815995
0.063182
0
0.782313
0
0
0.014876
0
0
0
0
0
0
1
0.047619
false
0
0.006803
0
0.102041
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
cd3dc7866ca74a852eeefd8b0bbed5cc009c8a18
101
py
Python
Python/text-wrap.py
DacioRomero/HackerRank
d1d43bd23e319bf8015a741eca70ba471a13c045
[ "MIT" ]
1
2020-07-28T00:08:38.000Z
2020-07-28T00:08:38.000Z
Python/text-wrap.py
DacioRomero/HackerRank
d1d43bd23e319bf8015a741eca70ba471a13c045
[ "MIT" ]
null
null
null
Python/text-wrap.py
DacioRomero/HackerRank
d1d43bd23e319bf8015a741eca70ba471a13c045
[ "MIT" ]
null
null
null
import textwrap def wrap(string, max_width): return "\n".join(textwrap.wrap(string, max_width))
20.2
54
0.732673
15
101
4.8
0.666667
0.277778
0.361111
0.5
0
0
0
0
0
0
0
0
0.128713
101
4
55
25.25
0.818182
0
0
0
0
0
0.019802
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
9
cd7378db00f9a6e962eb1083d2a5105695703176
49
py
Python
app/instance/config.py
vicky-eve/NewsHighlight
ecaa668bc3b67aa84af4bf76d6ed6bd1d07207cb
[ "MIT" ]
null
null
null
app/instance/config.py
vicky-eve/NewsHighlight
ecaa668bc3b67aa84af4bf76d6ed6bd1d07207cb
[ "MIT" ]
null
null
null
app/instance/config.py
vicky-eve/NewsHighlight
ecaa668bc3b67aa84af4bf76d6ed6bd1d07207cb
[ "MIT" ]
null
null
null
NEWS_API_KEY = 'aa251654e1b04b0d9917f813d99cb1a9'
49
49
0.897959
4
49
10.5
1
0
0
0
0
0
0
0
0
0
0
0.446809
0.040816
49
1
49
49
0.446809
0
0
0
0
0
0.64
0.64
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
cd9a2020ec20ebe4b0dbfad69d533a88e12c9faa
46
py
Python
Pay.py
ivan-2020-vip/firstGit
f1b49c4d5e774208c96f036719e3fb14fd08c76b
[ "MIT" ]
null
null
null
Pay.py
ivan-2020-vip/firstGit
f1b49c4d5e774208c96f036719e3fb14fd08c76b
[ "MIT" ]
null
null
null
Pay.py
ivan-2020-vip/firstGit
f1b49c4d5e774208c96f036719e3fb14fd08c76b
[ "MIT" ]
null
null
null
num1=100 #2020-11-09 num2=200 #2020-11-09/2
15.333333
23
0.673913
11
46
2.818182
0.727273
0.387097
0.516129
0
0
0
0
0
0
0
0
0.625
0.130435
46
3
23
15.333333
0.15
0.478261
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
1
1
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
0
0
0
0
0
0
0
7
f8632b87f95fcce1381a0ba94eaaab01d40801d6
125
py
Python
sagemaker/source/preprocessing/__init__.py
Otarkia/aws-fleet-predictive-maintenance
d6633bb49acd357d0c760c431368070e9680617f
[ "Apache-2.0" ]
37
2020-07-14T19:01:09.000Z
2022-03-04T20:58:03.000Z
sagemaker/source/preprocessing/__init__.py
IronOnet/aws-fleet-predictive-maintenance
d6633bb49acd357d0c760c431368070e9680617f
[ "Apache-2.0" ]
null
null
null
sagemaker/source/preprocessing/__init__.py
IronOnet/aws-fleet-predictive-maintenance
d6633bb49acd357d0c760c431368070e9680617f
[ "Apache-2.0" ]
17
2020-07-15T00:04:29.000Z
2022-02-06T05:29:58.000Z
from .preprocessing import pivot_data from .preprocessing import sample_dataset from .dataframewriter import DataFrameWriter
31.25
44
0.88
14
125
7.714286
0.571429
0.314815
0.425926
0
0
0
0
0
0
0
0
0
0.096
125
3
45
41.666667
0.955752
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
f87b57a42a46f20e7307a88e01b5ac7f3c99b8ae
39,117
py
Python
tsf_nmt/decoders.py
giancds/tsf_nmt
82d6fb338ec1395159dfee154b96761750304848
[ "Apache-2.0" ]
71
2016-01-26T03:14:55.000Z
2022-02-27T20:27:00.000Z
tsf_nmt/decoders.py
afcarl/tsf_nmt
82d6fb338ec1395159dfee154b96761750304848
[ "Apache-2.0" ]
2
2016-05-16T06:54:06.000Z
2017-01-01T12:59:01.000Z
tsf_nmt/decoders.py
afcarl/tsf_nmt
82d6fb338ec1395159dfee154b96761750304848
[ "Apache-2.0" ]
19
2016-05-11T09:48:12.000Z
2018-08-05T16:50:15.000Z
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops, embedding_ops, math_ops, nn_ops from tensorflow.python.ops import variable_scope as vs import cells from attention import global_attention from content_functions import decoder_type_2, vinyals_kaiser, mod_bahdanau # from six.moves import xrange _SEED = 1234 # TODO: finish pydocs def _embed_inputs(decoder_inputs, num_symbols, input_size, input_feeding=False): with ops.device("/cpu:0"): if input_feeding: embedding = vs.get_variable("embedding", [num_symbols, input_size / 2]) else: embedding = vs.get_variable("embedding", [num_symbols, input_size]) emb_inp = [embedding_ops.embedding_lookup(embedding, i) for i in decoder_inputs] return emb_inp def attention_decoder(decoder_inputs, initial_state, attention_states, cell, num_symbols, attention_f=global_attention, window_size=10, content_function=vinyals_kaiser, decoder_attention_f=decoder_type_2, combine_inp_attn=False, input_feeding=False, dropout=None, initializer=None, decoder_states=None, step_num=None, dtype=tf.float32, scope=None): """ Helper function implementing a RNN decoder with global, local or hybrid attention for the sequence-to-sequence model. Parameters ---------- decoder_inputs: list a list of 2D Tensors [batch_size x cell.input_size]. initial_state: tensor 2d Tensor [batch_size x (number of decoder layers * hidden_layer_size * 2)] if LSTM or [batch_size x (number of decoder layers * hidden_layer_size)] if GRU representing the initial state (usually, we take the states of the encoder) to be used when running the decoder. The '2' on the LSTM formula mean that we have to set the hidden state and the cell state. attention_states: tensor 3D tensor [batch_size x attn_length (time) x attn_size (hidden_layer_size)] representing the encoder hidden states that will be used to derive the context (attention) vector. cell: RNNCell rnn_cell.RNNCell defining the cell function and size. batch_size: tensor tensor representing the batch size used when training the model attention_f: function function indicating which type of attention to use. Default to global_attention. loop_function: if not None, this function will be applied to i-th output in order to generate i+1-th input, and decoder_inputs will be ignored, except for the first element ("GO" symbol). This can be used for decoding, but also for training to emulate http://arxiv.org/pdf/1506.03099v2.pdf. Signature -- loop_function(prev, i) = next * prev is a 2D Tensor of shape [batch_size x cell.output_size], * i is an integer, the step number (when advanced control is needed), * next is a 2D Tensor of shape [batch_size x cell.input_size]. window_size: int size of the window to apply on local attention.Default to 10. input_feeding : boolean Flag indicating where to use the "input feeding approach" proposed by Luong et al. (2015). Default to False. content_function: string dtype: The dtype to use for the RNN initial state (default: tf.float32). scope: VariableScope for the created subgraph; default: "attention_decoder". Returns ------- outputs: A list of the same length as decoder_inputs of 2D Tensors of shape [batch_size x output_size]. These represent the generated outputs. Output i is computed from input i (which is either i-th decoder_inputs or loop_function(output {i-1}, i)) as follows. First, we run the cell on a combination of the input and previous attention masks: cell_output, new_state = cell(linear(input, prev_attn), prev_state). Then, we calculate new attention masks: new_attn = softmax(V^T * tanh(W * attention_states + U * new_state)) and then we calculate the output: output = linear(cell_output, new_attn). states: The state of each decoder cell in each time-step. This is a list with length len(decoder_inputs) -- one item for each time-step. Each item is a 2D Tensor of shape [batch_size x cell.state_size]. """ assert attention_f is not None output_size = cell.output_size if dropout is not None: for c in cell._cells: c.input_keep_prob = 1.0 - dropout if initializer is None: initializer = tf.random_uniform_initializer(minval=-0.1, maxval=0.1, seed=_SEED) tf.name_scope() with vs.variable_scope(scope or "embedding_attention_decoder", initializer=initializer): emb_inp = _embed_inputs(decoder_inputs, num_symbols, cell.input_size, input_feeding=input_feeding) batch = array_ops.shape(emb_inp[0])[0] # Needed for reshaping. attn_length = attention_states.get_shape()[1].value attn_size = attention_states.get_shape()[2].value # To calculate W1 * h_t we use a 1-by-1 convolution, need to reshape before. hidden = array_ops.reshape(attention_states, [-1, attn_length, 1, attn_size]) cell_states = initial_state cell_outputs = [] outputs = [] batch_attn_size = array_ops.pack([batch, attn_size]) # initial attention state ct = array_ops.zeros(batch_attn_size, dtype=dtype) ct.set_shape([None, attn_size]) for i in xrange(len(emb_inp)): if i > 0: vs.get_variable_scope().reuse_variables() if input_feeding: # if using input_feeding, concatenate previous attention with input to layers inp = array_ops.concat(1, [emb_inp[i], ct]) else: inp = emb_inp[i] if combine_inp_attn: # Merge input and previous attentions into one vector of the right size. x = cells.linear([inp] + [ct], cell.input_size, True) else: x = inp # Run the RNN. cell_output, new_state = cell(x, cell_states) cell_states = new_state cell_outputs.append(cell_output) # dt = new_state if content_function is mod_bahdanau: dt = cell_outputs[-2] else: dt = cell_output ct = attention_f(decoder_hidden_state=dt, hidden_attn=hidden, initializer=initializer, window_size=window_size, content_function=content_function, dtype=dtype) # with vs.variable_scope("AttnOutputProjection", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 output = cells.linear([ct] + [cell_output], output_size, True) output = tf.tanh(output) outputs.append(output) return outputs, cell_states, None def attention_decoder_informed(decoder_inputs, initial_state, attention_states, cell, num_symbols, attention_f=global_attention, window_size=10, content_function=vinyals_kaiser, decoder_attention_f=decoder_type_2, combine_inp_attn=False, input_feeding=False, dropout=None, initializer=None, decoder_states=None, step_num=None, dtype=tf.float32, scope=None): """ Helper function implementing a RNN decoder with global, local or hybrid attention for the sequence-to-sequence model. Parameters ---------- decoder_inputs: list a list of 2D Tensors [batch_size x cell.input_size]. initial_state: tensor 2d Tensor [batch_size x (number of decoder layers * hidden_layer_size * 2)] if LSTM or [batch_size x (number of decoder layers * hidden_layer_size)] if GRU representing the initial state (usually, we take the states of the encoder) to be used when running the decoder. The '2' on the LSTM formula mean that we have to set the hidden state and the cell state. attention_states: tensor 3D tensor [batch_size x attn_length (time) x attn_size (hidden_layer_size)] representing the encoder hidden states that will be used to derive the context (attention) vector. cell: RNNCell rnn_cell.RNNCell defining the cell function and size. batch_size: tensor tensor representing the batch size used when training the model attention_f: function function indicating which type of attention to use. Default to global_attention. loop_function: if not None, this function will be applied to i-th output in order to generate i+1-th input, and decoder_inputs will be ignored, except for the first element ("GO" symbol). This can be used for decoding, but also for training to emulate http://arxiv.org/pdf/1506.03099v2.pdf. Signature -- loop_function(prev, i) = next * prev is a 2D Tensor of shape [batch_size x cell.output_size], * i is an integer, the step number (when advanced control is needed), * next is a 2D Tensor of shape [batch_size x cell.input_size]. window_size: int size of the window to apply on local attention.Default to 10. input_feeding : boolean Flag indicating where to use the "input feeding approach" proposed by Luong et al. (2015). Default to False. content_function: string dtype: The dtype to use for the RNN initial state (default: tf.float32). scope: VariableScope for the created subgraph; default: "attention_decoder". Returns ------- outputs: A list of the same length as decoder_inputs of 2D Tensors of shape [batch_size x output_size]. These represent the generated outputs. Output i is computed from input i (which is either i-th decoder_inputs or loop_function(output {i-1}, i)) as follows. First, we run the cell on a combination of the input and previous attention masks: cell_output, new_state = cell(linear(input, prev_attn), prev_state). Then, we calculate new attention masks: new_attn = softmax(V^T * tanh(W * attention_states + U * new_state)) and then we calculate the output: output = linear(cell_output, new_attn). states: The state of each decoder cell in each time-step. This is a list with length len(decoder_inputs) -- one item for each time-step. Each item is a 2D Tensor of shape [batch_size x cell.state_size]. """ assert attention_f is not None output_size = cell.output_size if dropout is not None: for c in cell._cells: c.input_keep_prob = 1.0 - dropout if initializer is None: initializer = tf.random_uniform_initializer(minval=-0.1, maxval=0.1, seed=_SEED) with vs.variable_scope(scope or "embedding_attention_decoder", initializer=initializer): emb_inp = _embed_inputs(decoder_inputs, num_symbols, cell.input_size, input_feeding=input_feeding) batch = array_ops.shape(emb_inp[0])[0] # Needed for reshaping. attn_length = attention_states.get_shape()[1].value attn_size = attention_states.get_shape()[2].value # To calculate W1 * h_t we use a 1-by-1 convolution, need to reshape before. hidden = array_ops.reshape(attention_states, [-1, attn_length, 1, attn_size]) cell_states = initial_state cell_outputs = [] outputs = [] batch_attn_size = array_ops.pack([batch, attn_size]) # initial attention state ct = array_ops.zeros(batch_attn_size, dtype=dtype) ct.set_shape([None, attn_size]) for i in xrange(len(emb_inp)): if i > 0: vs.get_variable_scope().reuse_variables() if input_feeding: # if using input_feeding, concatenate previous attention with input to layers inp = array_ops.concat(1, [emb_inp[i], ct]) else: inp = emb_inp[i] if combine_inp_attn: # Merge input and previous attentions into one vector of the right size. x = cells.linear([inp] + [ct], cell.input_size, True) else: x = inp # Run the RNN. cell_output, new_state = cell(x, cell_states) cell_states = new_state cell_outputs.append(cell_output) # dt = new_state if content_function is mod_bahdanau: dt = cell_outputs[-2] else: dt = cell_output ct = attention_f(decoder_hidden_state=dt, hidden_attn=hidden, initializer=initializer, window_size=window_size, content_function=content_function, dtype=dtype) # with vs.variable_scope("AttnOutputProjection", initializer=initializer): with vs.variable_scope("AttnOutputProjection_logit_lstm", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_lstm = cells.linear([cell_output], output_size, True) with vs.variable_scope("AttnOutputProjection_logit_ctx", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_ctx = cells.linear([ct], output_size, True) with vs.variable_scope("AttnOutputProjection_logit_emb", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_prev = cells.linear([x], output_size, True) output = tf.tanh(logit_lstm + logit_prev + logit_ctx) outputs.append(output) return outputs, cell_states, None def attention_decoder_output(decoder_inputs, initial_state, attention_states, cell, num_symbols, attention_f=global_attention, window_size=10, content_function=vinyals_kaiser, decoder_attention_f=decoder_type_2, combine_inp_attn=False, input_feeding=False, dropout=None, initializer=None, decoder_states=None, step_num=None, dtype=tf.float32, scope=None): """ Helper function implementing a RNN decoder with global, local or hybrid attention for the sequence-to-sequence model. Parameters ---------- decoder_inputs: list a list of 2D Tensors [batch_size x cell.input_size]. initial_state: tensor 3D Tensor [batch_size x attn_length x attn_size]. attention_states: cell: RNNCell rnn_cell.RNNCell defining the cell function and size. batch_size: int batch size when training the model attention_f: function function indicating which type of attention to use. Default to global_attention. output_size: int size of the output vectors; if None, we use cell.output_size. loop_function: if not None, this function will be applied to i-th output in order to generate i+1-th input, and decoder_inputs will be ignored, except for the first element ("GO" symbol). This can be used for decoding, but also for training to emulate http://arxiv.org/pdf/1506.03099v2.pdf. Signature -- loop_function(prev, i) = next * prev is a 2D Tensor of shape [batch_size x cell.output_size], * i is an integer, the step number (when advanced control is needed), * next is a 2D Tensor of shape [batch_size x cell.input_size]. window_size: int size of the window to apply on local attention input_feeding: boolean whether or not to use the input feeding approach by Luong et al., 2015. content_function: string dtype: The dtype to use for the RNN initial state (default: tf.float32). scope: VariableScope for the created subgraph; default: "attention_decoder". Returns ------- outputs: A list of the same length as decoder_inputs of 2D Tensors of shape [batch_size x output_size]. These represent the generated outputs. Output i is computed from input i (which is either i-th decoder_inputs or loop_function(output {i-1}, i)) as follows. First, we run the cell on a combination of the input and previous attention masks: cell_output, new_state = cell(linear(input, prev_attn), prev_state). Then, we calculate new attention masks: new_attn = softmax(V^T * tanh(W * attention_states + U * new_state)) and then we calculate the output: output = linear(cell_output, new_attn). states: The state of each decoder cell in each time-step. This is a list with length len(decoder_inputs) -- one item for each time-step. Each item is a 2D Tensor of shape [batch_size x cell.state_size]. """ assert attention_f is not None output_size = cell.output_size if dropout is not None: for c in cell._cells: c.input_keep_prob = 1.0 - dropout if initializer is None: initializer = tf.random_uniform_initializer(minval=-0.1, maxval=0.1, seed=_SEED) with vs.variable_scope(scope or "attention_decoder", initializer=initializer): emb_inp = _embed_inputs(decoder_inputs, num_symbols, cell.input_size, input_feeding=input_feeding) batch = array_ops.shape(emb_inp[0])[0] # Needed for reshaping. attn_length = attention_states.get_shape()[1].value attn_size = attention_states.get_shape()[2].value # To calculate W1 * h_t we use a 1-by-1 convolution, need to reshape before. hidden = array_ops.reshape(attention_states, [-1, attn_length, 1, attn_size]) cell_state = initial_state outputs = [] batch_attn_size = array_ops.pack([batch, attn_size]) # initial attention state ct = array_ops.zeros(batch_attn_size, dtype=dtype) ct.set_shape([None, attn_size]) if decoder_states is None: cell_outputs = [] else: cell_outputs = decoder_states for i in xrange(len(emb_inp)): if i > 0: vs.get_variable_scope().reuse_variables() if input_feeding: # if using input_feeding, concatenate previous attention with input to layers inp = array_ops.concat(1, [emb_inp[i], ct]) else: inp = emb_inp[i] if combine_inp_attn: # Merge input and previous attentions into one vector of the right size. x = cells.linear([inp] + [ct], cell.input_size, True) else: x = inp # Run the RNN. cell_output, new_state = cell(x, cell_state) cell_state = new_state if decoder_states is None: # states.append(new_state) # new_state = dt# cell_outputs.append(cell_output) else: reshaped = tf.reshape(cell_output, [-1, 1, 1, attn_size]) decoder_states = tf.concat(1, [decoder_states, reshaped]) # dt = new_state if content_function is mod_bahdanau: dt = cell_outputs[-2] else: dt = cell_output ct = attention_f(decoder_hidden_state=dt, hidden_attn=hidden, initializer=initializer, window_size=window_size, content_function=content_function, dtype=dtype) with vs.variable_scope("AttnOutputProjection", initializer=initializer): if decoder_states is None: shape1 = len(cell_outputs) top_states = [tf.reshape(o, [-1, 1, attn_size]) for o in cell_outputs] output_attention_states = tf.concat(1, top_states) decoder_hidden = array_ops.reshape(output_attention_states, [-1, shape1, 1, attn_size]) ht_hat = decoder_output_attention(decoder_hidden, attn_size, decoder_attention_f, initializer=initializer) else: decoder_hidden = decoder_states ht_hat = decoder_output_attention(decoder_hidden, attn_size, decoder_attention_f, initializer=initializer, step_num=step_num) output = cells.linear([ct] + [ht_hat], output_size, True) output = tf.tanh(output) outputs.append(output) if decoder_states is None: cell_outs = [tf.reshape(o, [-1, 1, 1, attn_size]) for o in cell_outputs] cell_outputs = tf.concat(1, cell_outs) else: cell_outputs = decoder_states return outputs, cell_state, cell_outputs def decoder_output_attention(decoder_hidden, attn_size, decoder_attention_f, initializer=None, step_num=None): """ Parameters ---------- decoder_states attn_size Returns ------- """ assert initializer is not None with vs.variable_scope("decoder_output_attention", initializer=initializer): s = decoder_attention_f(decoder_hidden, attn_size) # beta will be (?, timesteps) beta = nn_ops.softmax(s) if step_num is None: # step_num is None when training shape = decoder_hidden.get_shape() timesteps = shape[1].value b = array_ops.reshape(beta, [-1, timesteps, 1, 1]) else: b = array_ops.reshape(beta, tf.pack([-1, step_num, 1, 1])) # b and decoder_hidden will be (?, timesteps, 1, 1) d = math_ops.reduce_sum(b * decoder_hidden, [1, 2]) # d will be (?, decoder_size) ds = tf.reshape(d, [-1, attn_size]) _ = tf.histogram_summary('attention_decoder_context', ds) # ds is (?, decoder_size) return ds def attention_decoder_output_informed(decoder_inputs, initial_state, attention_states, cell, num_symbols, attention_f=global_attention, window_size=10, content_function=vinyals_kaiser, decoder_attention_f=decoder_type_2, combine_inp_attn=False, input_feeding=False, dropout=None, initializer=None, decoder_states=None, step_num=None, dtype=tf.float32, scope=None): """ Helper function implementing a RNN decoder with global, local or hybrid attention for the sequence-to-sequence model. Parameters ---------- decoder_inputs: list a list of 2D Tensors [batch_size x cell.input_size]. initial_state: tensor 3D Tensor [batch_size x attn_length x attn_size]. attention_states: cell: RNNCell rnn_cell.RNNCell defining the cell function and size. batch_size: int batch size when training the model attention_f: function function indicating which type of attention to use. Default to global_attention. output_size: int size of the output vectors; if None, we use cell.output_size. loop_function: if not None, this function will be applied to i-th output in order to generate i+1-th input, and decoder_inputs will be ignored, except for the first element ("GO" symbol). This can be used for decoding, but also for training to emulate http://arxiv.org/pdf/1506.03099v2.pdf. Signature -- loop_function(prev, i) = next * prev is a 2D Tensor of shape [batch_size x cell.output_size], * i is an integer, the step number (when advanced control is needed), * next is a 2D Tensor of shape [batch_size x cell.input_size]. window_size: int size of the window to apply on local attention input_feeding: boolean whether or not to use the input feeding approach by Luong et al., 2015. content_function: string dtype: The dtype to use for the RNN initial state (default: tf.float32). scope: VariableScope for the created subgraph; default: "attention_decoder". Returns ------- outputs: A list of the same length as decoder_inputs of 2D Tensors of shape [batch_size x output_size]. These represent the generated outputs. Output i is computed from input i (which is either i-th decoder_inputs or loop_function(output {i-1}, i)) as follows. First, we run the cell on a combination of the input and previous attention masks: cell_output, new_state = cell(linear(input, prev_attn), prev_state). Then, we calculate new attention masks: new_attn = softmax(V^T * tanh(W * attention_states + U * new_state)) and then we calculate the output: output = linear(cell_output, new_attn). states: The state of each decoder cell in each time-step. This is a list with length len(decoder_inputs) -- one item for each time-step. Each item is a 2D Tensor of shape [batch_size x cell.state_size]. """ assert attention_f is not None output_size = cell.output_size if dropout is not None: for c in cell._cells: c.input_keep_prob = 1.0 - dropout if initializer is None: initializer = tf.random_uniform_initializer(minval=-0.1, maxval=0.1, seed=_SEED) with vs.variable_scope(scope or "attention_decoder", initializer=initializer): emb_inp = _embed_inputs(decoder_inputs, num_symbols, cell.input_size, input_feeding=input_feeding) batch = array_ops.shape(emb_inp[0])[0] # Needed for reshaping. attn_length = attention_states.get_shape()[1].value attn_size = attention_states.get_shape()[2].value # To calculate W1 * h_t we use a 1-by-1 convolution, need to reshape before. hidden = array_ops.reshape(attention_states, [-1, attn_length, 1, attn_size]) cell_state = initial_state outputs = [] batch_attn_size = array_ops.pack([batch, attn_size]) # initial attention state ct = array_ops.zeros(batch_attn_size, dtype=dtype) ct.set_shape([None, attn_size]) if decoder_states is None: cell_outputs = [] else: cell_outputs = decoder_states for i in xrange(len(emb_inp)): if i > 0: vs.get_variable_scope().reuse_variables() if input_feeding: # if using input_feeding, concatenate previous attention with input to layers inp = array_ops.concat(1, [emb_inp[i], ct]) else: inp = emb_inp[i] if combine_inp_attn: # Merge input and previous attentions into one vector of the right size. x = cells.linear([inp] + [ct], cell.input_size, True) else: x = inp # Run the RNN. cell_output, new_state = cell(x, cell_state) cell_state = new_state if decoder_states is None: # states.append(new_state) # new_state = dt# cell_outputs.append(cell_output) else: reshaped = tf.reshape(cell_output, [-1, 1, 1, attn_size]) decoder_states = tf.concat(1, [decoder_states, reshaped]) # dt = new_state if content_function is mod_bahdanau: dt = cell_outputs[-2] else: dt = cell_output ct = attention_f(decoder_hidden_state=dt, hidden_attn=hidden, initializer=initializer, window_size=window_size, content_function=content_function, dtype=dtype) with vs.variable_scope("AttnOutputProjection", initializer=initializer): if decoder_states is None: shape1 = len(cell_outputs) top_states = [tf.reshape(o, [-1, 1, attn_size]) for o in cell_outputs] output_attention_states = tf.concat(1, top_states) decoder_hidden = array_ops.reshape(output_attention_states, [-1, shape1, 1, attn_size]) ht_hat = decoder_output_attention(decoder_hidden, attn_size, decoder_attention_f, initializer=initializer) else: decoder_hidden = decoder_states ht_hat = decoder_output_attention(decoder_hidden, attn_size, decoder_attention_f, initializer=initializer, step_num=step_num) with vs.variable_scope("AttnOutputProjection_logit_lstm", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_lstm = cells.linear([ht_hat], output_size, True) with vs.variable_scope("AttnOutputProjection_logit_ctx", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_ctx = cells.linear([ct], output_size, True) with vs.variable_scope("AttnOutputProjection_logit_emb", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_prev = cells.linear([x], output_size, True) output = tf.tanh(logit_lstm + logit_prev + logit_ctx) outputs.append(output) if decoder_states is None: cell_outs = [tf.reshape(o, [-1, 1, 1, attn_size]) for o in cell_outputs] cell_outputs = tf.concat(1, cell_outs) else: cell_outputs = decoder_states return outputs, cell_state, cell_outputs def attention_decoder_nmt(decoder_inputs, initial_state, attention_states, cell, num_symbols, attention_f=global_attention, window_size=10, content_function=vinyals_kaiser, decoder_attention_f=decoder_type_2, combine_inp_attn=False, input_feeding=False, dropout=None, initializer=None, dtype=tf.float32, scope=None): """ Helper function implementing a RNN decoder with global, local or hybrid attention for the sequence-to-sequence model. Parameters ---------- decoder_inputs: list a list of 2D Tensors [batch_size x cell.input_size]. initial_state: tensor 2d Tensor [batch_size x (number of decoder layers * hidden_layer_size * 2)] if LSTM or [batch_size x (number of decoder layers * hidden_layer_size)] if GRU representing the initial state (usually, we take the states of the encoder) to be used when running the decoder. The '2' on the LSTM formula mean that we have to set the hidden state and the cell state. attention_states: tensor 3D tensor [batch_size x attn_length (time) x attn_size (hidden_layer_size)] representing the encoder hidden states that will be used to derive the context (attention) vector. cell: RNNCell rnn_cell.RNNCell defining the cell function and size. batch_size: tensor tensor representing the batch size used when training the model attention_f: function function indicating which type of attention to use. Default to global_attention. loop_function: if not None, this function will be applied to i-th output in order to generate i+1-th input, and decoder_inputs will be ignored, except for the first element ("GO" symbol). This can be used for decoding, but also for training to emulate http://arxiv.org/pdf/1506.03099v2.pdf. Signature -- loop_function(prev, i) = next * prev is a 2D Tensor of shape [batch_size x cell.output_size], * i is an integer, the step number (when advanced control is needed), * next is a 2D Tensor of shape [batch_size x cell.input_size]. window_size: int size of the window to apply on local attention.Default to 10. input_feeding : boolean Flag indicating where to use the "input feeding approach" proposed by Luong et al. (2015). Default to False. content_function: string dtype: The dtype to use for the RNN initial state (default: tf.float32). scope: VariableScope for the created subgraph; default: "attention_decoder". Returns ------- outputs: A list of the same length as decoder_inputs of 2D Tensors of shape [batch_size x output_size]. These represent the generated outputs. Output i is computed from input i (which is either i-th decoder_inputs or loop_function(output {i-1}, i)) as follows. First, we run the cell on a combination of the input and previous attention masks: cell_output, new_state = cell(linear(input, prev_attn), prev_state). Then, we calculate new attention masks: new_attn = softmax(V^T * tanh(W * attention_states + U * new_state)) and then we calculate the output: output = linear(cell_output, new_attn). states: The state of each decoder cell in each time-step. This is a list with length len(decoder_inputs) -- one item for each time-step. Each item is a 2D Tensor of shape [batch_size x cell.state_size]. """ assert attention_f is not None output_size = cell.output_size if dropout is not None: cell.input_keep_prob = 1.0 - dropout if initializer is None: initializer = tf.random_uniform_initializer(minval=-0.1, maxval=0.1, seed=_SEED) with vs.variable_scope(scope or "embedding_attention_decoder", initializer=initializer): emb_inp = _embed_inputs(decoder_inputs, num_symbols, cell.input_size, input_feeding=input_feeding) batch = array_ops.shape(emb_inp[0])[0] # Needed for reshaping. attn_length = attention_states.get_shape()[1].value attn_size = attention_states.get_shape()[2].value # To calculate W1 * h_t we use a 1-by-1 convolution, need to reshape before. hidden = array_ops.reshape(attention_states, [-1, attn_length, 1, attn_size]) cell_states = initial_state initial_state_decoder = tf.zeros_like(initial_state) initial_state_decoder.set_shape([None, initial_state.get_shape()[1].value]) cell_outputs = [initial_state_decoder] outputs = [] batch_attn_size = array_ops.pack([batch, attn_size]) # initial attention state ct = array_ops.zeros(batch_attn_size, dtype=dtype) ct.set_shape([None, attn_size]) for i in xrange(len(emb_inp)): if i > 0: vs.get_variable_scope().reuse_variables() if input_feeding: # if using input_feeding, concatenate previous attention with input to layers inp = array_ops.concat(1, [emb_inp[i], ct]) else: inp = emb_inp[i] if combine_inp_attn: # Merge input and previous attentions into one vector of the right size. x = cells.linear([inp] + [ct], cell.input_size, True) else: x = inp dt = cell_outputs[-1] ct = attention_f(decoder_hidden_state=dt, hidden_attn=hidden, initializer=initializer, window_size=window_size, content_function=content_function, dtype=dtype) # Run the RNN. cell_output, new_state = cell(x, cell_states, context=ct) cell_states = new_state cell_outputs.append(cell_output) # with vs.variable_scope("AttnOutputProjection", initializer=initializer): with vs.variable_scope("AttnOutputProjection_logit_lstm", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_lstm = cells.linear([cell_output], output_size, True) with vs.variable_scope("AttnOutputProjection_logit_ctx", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_ctx = cells.linear([ct], output_size, True) with vs.variable_scope("AttnOutputProjection_logit_emb", initializer=initializer): # if we pass a list of tensors, linear will first concatenate them over axis 1 logit_prev = cells.linear([x], output_size, True) # if we pass a list of tensors, linear will first concatenate them over axis 1 output = tf.tanh(logit_lstm + logit_prev + logit_ctx) outputs.append(output) return outputs, cell_states
40.037871
118
0.611754
4,963
39,117
4.628048
0.05541
0.017763
0.015673
0.01219
0.948496
0.943707
0.93944
0.93944
0.93944
0.933127
0
0.011716
0.319196
39,117
976
119
40.078893
0.850775
0.447862
0
0.866477
0
0
0.027573
0.019807
0
0
0
0.001025
0.017045
1
0.019886
false
0
0.025568
0
0.065341
0.002841
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
f88af59569ce90931096d9ab372bd7b58b4af38c
30,901
py
Python
sdk/python/pulumi_artifactory/group.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
4
2021-11-17T15:06:59.000Z
2022-03-21T02:36:15.000Z
sdk/python/pulumi_artifactory/group.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
113
2021-11-09T14:14:50.000Z
2022-03-31T23:18:29.000Z
sdk/python/pulumi_artifactory/group.py
pulumi/terraform-provider-artifactory
4f217f2e6bc2f7e5395a148cd3b3b7b5aaa66372
[ "ECL-2.0", "Apache-2.0" ]
2
2021-11-22T11:19:48.000Z
2021-12-17T01:39:20.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__ = ['GroupArgs', 'Group'] @pulumi.input_type class GroupArgs: def __init__(__self__, *, admin_privileges: Optional[pulumi.Input[bool]] = None, auto_join: Optional[pulumi.Input[bool]] = None, description: Optional[pulumi.Input[str]] = None, detach_all_users: Optional[pulumi.Input[bool]] = None, external_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, policy_manager: Optional[pulumi.Input[bool]] = None, realm: Optional[pulumi.Input[str]] = None, realm_attributes: Optional[pulumi.Input[str]] = None, reports_manager: Optional[pulumi.Input[bool]] = None, users_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, watch_manager: Optional[pulumi.Input[bool]] = None): """ The set of arguments for constructing a Group resource. :param pulumi.Input[bool] admin_privileges: Any users added to this group will automatically be assigned with admin privileges in the system. :param pulumi.Input[bool] auto_join: When this parameter is set, any new users defined in the system are automatically assigned to this group. :param pulumi.Input[str] description: A description for the group :param pulumi.Input[bool] detach_all_users: When this override is set, an empty or missing usernames array will detach all users from the group :param pulumi.Input[str] external_id: New external group ID used to configure the corresponding group in Azure AD. :param pulumi.Input[str] name: Name of the group :param pulumi.Input[bool] policy_manager: When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'. :param pulumi.Input[str] realm: The realm for the group. :param pulumi.Input[str] realm_attributes: The realm attributes for the group. :param pulumi.Input[bool] reports_manager: When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'. :param pulumi.Input[Sequence[pulumi.Input[str]]] users_names: List of users assigned to the group. If missing or empty, tf will not manage group membership :param pulumi.Input[bool] watch_manager: When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'. """ if admin_privileges is not None: pulumi.set(__self__, "admin_privileges", admin_privileges) if auto_join is not None: pulumi.set(__self__, "auto_join", auto_join) if description is not None: pulumi.set(__self__, "description", description) if detach_all_users is not None: pulumi.set(__self__, "detach_all_users", detach_all_users) if external_id is not None: pulumi.set(__self__, "external_id", external_id) if name is not None: pulumi.set(__self__, "name", name) if policy_manager is not None: pulumi.set(__self__, "policy_manager", policy_manager) if realm is not None: pulumi.set(__self__, "realm", realm) if realm_attributes is not None: pulumi.set(__self__, "realm_attributes", realm_attributes) if reports_manager is not None: pulumi.set(__self__, "reports_manager", reports_manager) if users_names is not None: pulumi.set(__self__, "users_names", users_names) if watch_manager is not None: pulumi.set(__self__, "watch_manager", watch_manager) @property @pulumi.getter(name="adminPrivileges") def admin_privileges(self) -> Optional[pulumi.Input[bool]]: """ Any users added to this group will automatically be assigned with admin privileges in the system. """ return pulumi.get(self, "admin_privileges") @admin_privileges.setter def admin_privileges(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "admin_privileges", value) @property @pulumi.getter(name="autoJoin") def auto_join(self) -> Optional[pulumi.Input[bool]]: """ When this parameter is set, any new users defined in the system are automatically assigned to this group. """ return pulumi.get(self, "auto_join") @auto_join.setter def auto_join(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "auto_join", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ A description for the group """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="detachAllUsers") def detach_all_users(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, an empty or missing usernames array will detach all users from the group """ return pulumi.get(self, "detach_all_users") @detach_all_users.setter def detach_all_users(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "detach_all_users", value) @property @pulumi.getter(name="externalId") def external_id(self) -> Optional[pulumi.Input[str]]: """ New external group ID used to configure the corresponding group in Azure AD. """ return pulumi.get(self, "external_id") @external_id.setter def external_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "external_id", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Name of the group """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="policyManager") def policy_manager(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'. """ return pulumi.get(self, "policy_manager") @policy_manager.setter def policy_manager(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "policy_manager", value) @property @pulumi.getter def realm(self) -> Optional[pulumi.Input[str]]: """ The realm for the group. """ return pulumi.get(self, "realm") @realm.setter def realm(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "realm", value) @property @pulumi.getter(name="realmAttributes") def realm_attributes(self) -> Optional[pulumi.Input[str]]: """ The realm attributes for the group. """ return pulumi.get(self, "realm_attributes") @realm_attributes.setter def realm_attributes(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "realm_attributes", value) @property @pulumi.getter(name="reportsManager") def reports_manager(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'. """ return pulumi.get(self, "reports_manager") @reports_manager.setter def reports_manager(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "reports_manager", value) @property @pulumi.getter(name="usersNames") def users_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ List of users assigned to the group. If missing or empty, tf will not manage group membership """ return pulumi.get(self, "users_names") @users_names.setter def users_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "users_names", value) @property @pulumi.getter(name="watchManager") def watch_manager(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'. """ return pulumi.get(self, "watch_manager") @watch_manager.setter def watch_manager(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "watch_manager", value) @pulumi.input_type class _GroupState: def __init__(__self__, *, admin_privileges: Optional[pulumi.Input[bool]] = None, auto_join: Optional[pulumi.Input[bool]] = None, description: Optional[pulumi.Input[str]] = None, detach_all_users: Optional[pulumi.Input[bool]] = None, external_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, policy_manager: Optional[pulumi.Input[bool]] = None, realm: Optional[pulumi.Input[str]] = None, realm_attributes: Optional[pulumi.Input[str]] = None, reports_manager: Optional[pulumi.Input[bool]] = None, users_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, watch_manager: Optional[pulumi.Input[bool]] = None): """ Input properties used for looking up and filtering Group resources. :param pulumi.Input[bool] admin_privileges: Any users added to this group will automatically be assigned with admin privileges in the system. :param pulumi.Input[bool] auto_join: When this parameter is set, any new users defined in the system are automatically assigned to this group. :param pulumi.Input[str] description: A description for the group :param pulumi.Input[bool] detach_all_users: When this override is set, an empty or missing usernames array will detach all users from the group :param pulumi.Input[str] external_id: New external group ID used to configure the corresponding group in Azure AD. :param pulumi.Input[str] name: Name of the group :param pulumi.Input[bool] policy_manager: When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'. :param pulumi.Input[str] realm: The realm for the group. :param pulumi.Input[str] realm_attributes: The realm attributes for the group. :param pulumi.Input[bool] reports_manager: When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'. :param pulumi.Input[Sequence[pulumi.Input[str]]] users_names: List of users assigned to the group. If missing or empty, tf will not manage group membership :param pulumi.Input[bool] watch_manager: When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'. """ if admin_privileges is not None: pulumi.set(__self__, "admin_privileges", admin_privileges) if auto_join is not None: pulumi.set(__self__, "auto_join", auto_join) if description is not None: pulumi.set(__self__, "description", description) if detach_all_users is not None: pulumi.set(__self__, "detach_all_users", detach_all_users) if external_id is not None: pulumi.set(__self__, "external_id", external_id) if name is not None: pulumi.set(__self__, "name", name) if policy_manager is not None: pulumi.set(__self__, "policy_manager", policy_manager) if realm is not None: pulumi.set(__self__, "realm", realm) if realm_attributes is not None: pulumi.set(__self__, "realm_attributes", realm_attributes) if reports_manager is not None: pulumi.set(__self__, "reports_manager", reports_manager) if users_names is not None: pulumi.set(__self__, "users_names", users_names) if watch_manager is not None: pulumi.set(__self__, "watch_manager", watch_manager) @property @pulumi.getter(name="adminPrivileges") def admin_privileges(self) -> Optional[pulumi.Input[bool]]: """ Any users added to this group will automatically be assigned with admin privileges in the system. """ return pulumi.get(self, "admin_privileges") @admin_privileges.setter def admin_privileges(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "admin_privileges", value) @property @pulumi.getter(name="autoJoin") def auto_join(self) -> Optional[pulumi.Input[bool]]: """ When this parameter is set, any new users defined in the system are automatically assigned to this group. """ return pulumi.get(self, "auto_join") @auto_join.setter def auto_join(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "auto_join", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ A description for the group """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="detachAllUsers") def detach_all_users(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, an empty or missing usernames array will detach all users from the group """ return pulumi.get(self, "detach_all_users") @detach_all_users.setter def detach_all_users(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "detach_all_users", value) @property @pulumi.getter(name="externalId") def external_id(self) -> Optional[pulumi.Input[str]]: """ New external group ID used to configure the corresponding group in Azure AD. """ return pulumi.get(self, "external_id") @external_id.setter def external_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "external_id", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Name of the group """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="policyManager") def policy_manager(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'. """ return pulumi.get(self, "policy_manager") @policy_manager.setter def policy_manager(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "policy_manager", value) @property @pulumi.getter def realm(self) -> Optional[pulumi.Input[str]]: """ The realm for the group. """ return pulumi.get(self, "realm") @realm.setter def realm(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "realm", value) @property @pulumi.getter(name="realmAttributes") def realm_attributes(self) -> Optional[pulumi.Input[str]]: """ The realm attributes for the group. """ return pulumi.get(self, "realm_attributes") @realm_attributes.setter def realm_attributes(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "realm_attributes", value) @property @pulumi.getter(name="reportsManager") def reports_manager(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'. """ return pulumi.get(self, "reports_manager") @reports_manager.setter def reports_manager(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "reports_manager", value) @property @pulumi.getter(name="usersNames") def users_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ List of users assigned to the group. If missing or empty, tf will not manage group membership """ return pulumi.get(self, "users_names") @users_names.setter def users_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "users_names", value) @property @pulumi.getter(name="watchManager") def watch_manager(self) -> Optional[pulumi.Input[bool]]: """ When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'. """ return pulumi.get(self, "watch_manager") @watch_manager.setter def watch_manager(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "watch_manager", value) class Group(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, admin_privileges: Optional[pulumi.Input[bool]] = None, auto_join: Optional[pulumi.Input[bool]] = None, description: Optional[pulumi.Input[str]] = None, detach_all_users: Optional[pulumi.Input[bool]] = None, external_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, policy_manager: Optional[pulumi.Input[bool]] = None, realm: Optional[pulumi.Input[str]] = None, realm_attributes: Optional[pulumi.Input[str]] = None, reports_manager: Optional[pulumi.Input[bool]] = None, users_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, watch_manager: Optional[pulumi.Input[bool]] = None, __props__=None): """ ## Import Groups can be imported using their name, e.g. ```sh $ pulumi import artifactory:index/group:Group terraform-group mygroup ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] admin_privileges: Any users added to this group will automatically be assigned with admin privileges in the system. :param pulumi.Input[bool] auto_join: When this parameter is set, any new users defined in the system are automatically assigned to this group. :param pulumi.Input[str] description: A description for the group :param pulumi.Input[bool] detach_all_users: When this override is set, an empty or missing usernames array will detach all users from the group :param pulumi.Input[str] external_id: New external group ID used to configure the corresponding group in Azure AD. :param pulumi.Input[str] name: Name of the group :param pulumi.Input[bool] policy_manager: When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'. :param pulumi.Input[str] realm: The realm for the group. :param pulumi.Input[str] realm_attributes: The realm attributes for the group. :param pulumi.Input[bool] reports_manager: When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'. :param pulumi.Input[Sequence[pulumi.Input[str]]] users_names: List of users assigned to the group. If missing or empty, tf will not manage group membership :param pulumi.Input[bool] watch_manager: When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'. """ ... @overload def __init__(__self__, resource_name: str, args: Optional[GroupArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ ## Import Groups can be imported using their name, e.g. ```sh $ pulumi import artifactory:index/group:Group terraform-group mygroup ``` :param str resource_name: The name of the resource. :param GroupArgs 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(GroupArgs, 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, admin_privileges: Optional[pulumi.Input[bool]] = None, auto_join: Optional[pulumi.Input[bool]] = None, description: Optional[pulumi.Input[str]] = None, detach_all_users: Optional[pulumi.Input[bool]] = None, external_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, policy_manager: Optional[pulumi.Input[bool]] = None, realm: Optional[pulumi.Input[str]] = None, realm_attributes: Optional[pulumi.Input[str]] = None, reports_manager: Optional[pulumi.Input[bool]] = None, users_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, watch_manager: Optional[pulumi.Input[bool]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = GroupArgs.__new__(GroupArgs) __props__.__dict__["admin_privileges"] = admin_privileges __props__.__dict__["auto_join"] = auto_join __props__.__dict__["description"] = description __props__.__dict__["detach_all_users"] = detach_all_users __props__.__dict__["external_id"] = external_id __props__.__dict__["name"] = name __props__.__dict__["policy_manager"] = policy_manager __props__.__dict__["realm"] = realm __props__.__dict__["realm_attributes"] = realm_attributes __props__.__dict__["reports_manager"] = reports_manager __props__.__dict__["users_names"] = users_names __props__.__dict__["watch_manager"] = watch_manager super(Group, __self__).__init__( 'artifactory:index/group:Group', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, admin_privileges: Optional[pulumi.Input[bool]] = None, auto_join: Optional[pulumi.Input[bool]] = None, description: Optional[pulumi.Input[str]] = None, detach_all_users: Optional[pulumi.Input[bool]] = None, external_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, policy_manager: Optional[pulumi.Input[bool]] = None, realm: Optional[pulumi.Input[str]] = None, realm_attributes: Optional[pulumi.Input[str]] = None, reports_manager: Optional[pulumi.Input[bool]] = None, users_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, watch_manager: Optional[pulumi.Input[bool]] = None) -> 'Group': """ Get an existing Group 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[bool] admin_privileges: Any users added to this group will automatically be assigned with admin privileges in the system. :param pulumi.Input[bool] auto_join: When this parameter is set, any new users defined in the system are automatically assigned to this group. :param pulumi.Input[str] description: A description for the group :param pulumi.Input[bool] detach_all_users: When this override is set, an empty or missing usernames array will detach all users from the group :param pulumi.Input[str] external_id: New external group ID used to configure the corresponding group in Azure AD. :param pulumi.Input[str] name: Name of the group :param pulumi.Input[bool] policy_manager: When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'. :param pulumi.Input[str] realm: The realm for the group. :param pulumi.Input[str] realm_attributes: The realm attributes for the group. :param pulumi.Input[bool] reports_manager: When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'. :param pulumi.Input[Sequence[pulumi.Input[str]]] users_names: List of users assigned to the group. If missing or empty, tf will not manage group membership :param pulumi.Input[bool] watch_manager: When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _GroupState.__new__(_GroupState) __props__.__dict__["admin_privileges"] = admin_privileges __props__.__dict__["auto_join"] = auto_join __props__.__dict__["description"] = description __props__.__dict__["detach_all_users"] = detach_all_users __props__.__dict__["external_id"] = external_id __props__.__dict__["name"] = name __props__.__dict__["policy_manager"] = policy_manager __props__.__dict__["realm"] = realm __props__.__dict__["realm_attributes"] = realm_attributes __props__.__dict__["reports_manager"] = reports_manager __props__.__dict__["users_names"] = users_names __props__.__dict__["watch_manager"] = watch_manager return Group(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="adminPrivileges") def admin_privileges(self) -> pulumi.Output[bool]: """ Any users added to this group will automatically be assigned with admin privileges in the system. """ return pulumi.get(self, "admin_privileges") @property @pulumi.getter(name="autoJoin") def auto_join(self) -> pulumi.Output[bool]: """ When this parameter is set, any new users defined in the system are automatically assigned to this group. """ return pulumi.get(self, "auto_join") @property @pulumi.getter def description(self) -> pulumi.Output[Optional[str]]: """ A description for the group """ return pulumi.get(self, "description") @property @pulumi.getter(name="detachAllUsers") def detach_all_users(self) -> pulumi.Output[Optional[bool]]: """ When this override is set, an empty or missing usernames array will detach all users from the group """ return pulumi.get(self, "detach_all_users") @property @pulumi.getter(name="externalId") def external_id(self) -> pulumi.Output[Optional[str]]: """ New external group ID used to configure the corresponding group in Azure AD. """ return pulumi.get(self, "external_id") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ Name of the group """ return pulumi.get(self, "name") @property @pulumi.getter(name="policyManager") def policy_manager(self) -> pulumi.Output[Optional[bool]]: """ When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'. """ return pulumi.get(self, "policy_manager") @property @pulumi.getter def realm(self) -> pulumi.Output[str]: """ The realm for the group. """ return pulumi.get(self, "realm") @property @pulumi.getter(name="realmAttributes") def realm_attributes(self) -> pulumi.Output[Optional[str]]: """ The realm attributes for the group. """ return pulumi.get(self, "realm_attributes") @property @pulumi.getter(name="reportsManager") def reports_manager(self) -> pulumi.Output[Optional[bool]]: """ When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'. """ return pulumi.get(self, "reports_manager") @property @pulumi.getter(name="usersNames") def users_names(self) -> pulumi.Output[Optional[Sequence[str]]]: """ List of users assigned to the group. If missing or empty, tf will not manage group membership """ return pulumi.get(self, "users_names") @property @pulumi.getter(name="watchManager") def watch_manager(self) -> pulumi.Output[Optional[bool]]: """ When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'. """ return pulumi.get(self, "watch_manager")
45.644018
167
0.653636
3,820
30,901
5.092932
0.048429
0.097815
0.105474
0.06384
0.920894
0.912053
0.906862
0.902801
0.90018
0.879157
0
0.000043
0.245785
30,901
676
168
45.711538
0.834721
0.315362
0
0.871605
1
0
0.091777
0.001473
0
0
0
0
0
1
0.165432
false
0.002469
0.012346
0
0.276543
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
3e1339c560e663bc91c236ea2a83964c1aac0a08
146
py
Python
apps/site/tests/test_site.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
9
2015-05-29T22:22:20.000Z
2022-02-01T20:39:00.000Z
apps/site/tests/test_site.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
143
2015-01-22T15:03:40.000Z
2020-06-27T01:55:29.000Z
apps/site/tests/test_site.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
5
2015-03-16T20:51:49.000Z
2017-02-07T20:48:49.000Z
from localground.apps.site.api.tests import * from localground.apps.site.tests.security import * from localground.apps.site.tests.models import *
36.5
50
0.815068
21
146
5.666667
0.428571
0.378151
0.478992
0.579832
0.571429
0.571429
0
0
0
0
0
0
0.082192
146
3
51
48.666667
0.88806
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
e41df3060987ac457151212f06f0752960aeee4a
127
py
Python
antiblock_scrapy_selenium/__init__.py
elvesrodrigues/antiblock_scrapy_selenium
33dc40fc6e28af932f561227aa8bedcdc96ff19b
[ "MIT" ]
1
2021-05-06T14:28:48.000Z
2021-05-06T14:28:48.000Z
antiblock_scrapy_selenium/__init__.py
elvesrodrigues/antiblock-scrapy-selenium
33dc40fc6e28af932f561227aa8bedcdc96ff19b
[ "MIT" ]
null
null
null
antiblock_scrapy_selenium/__init__.py
elvesrodrigues/antiblock-scrapy-selenium
33dc40fc6e28af932f561227aa8bedcdc96ff19b
[ "MIT" ]
null
null
null
from antiblock_scrapy_selenium.middlewares import SeleniumMiddleware from antiblock_scrapy_selenium.http import SeleniumRequest
63.5
68
0.929134
14
127
8.142857
0.642857
0.22807
0.333333
0.473684
0
0
0
0
0
0
0
0
0.055118
127
2
69
63.5
0.95
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
e4d8148e8b13592c9224ecb2ba594231cd63ee58
4,192
py
Python
tests/fields/test_constructors.py
BK-Modding/galois
5da4db84d90083e337ebe2c1838df5c6db88fd3f
[ "MIT" ]
null
null
null
tests/fields/test_constructors.py
BK-Modding/galois
5da4db84d90083e337ebe2c1838df5c6db88fd3f
[ "MIT" ]
null
null
null
tests/fields/test_constructors.py
BK-Modding/galois
5da4db84d90083e337ebe2c1838df5c6db88fd3f
[ "MIT" ]
null
null
null
""" A pytest module to test instantiation of new Galois field arrays through alternate constructors. """ import random import pytest import numpy as np import galois DTYPES = galois.dtypes.DTYPES + [np.object_] @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_zeros(field, shape): a = field.Zeros(shape) assert np.all(a == 0) assert type(a) is field assert a.dtype == field.dtypes[0] assert a.shape == shape @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_zeros_valid_dtype(field, shape): dtype = valid_dtype(field) a = field.Zeros(shape, dtype=dtype) assert np.all(a == 0) assert type(a) is field assert a.dtype == dtype assert a.shape == shape @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_zeros_invalid_dtype(field, shape): dtype = invalid_dtype(field) with pytest.raises(TypeError): a = field.Zeros(shape, dtype=dtype) @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_ones(field, shape): a = field.Ones(shape) assert np.all(a == 1) assert type(a) is field assert a.dtype == field.dtypes[0] assert a.shape == shape @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_ones_valid_dtype(field, shape): dtype = valid_dtype(field) a = field.Ones(shape, dtype=dtype) assert np.all(a == 1) assert type(a) is field assert a.dtype == dtype assert a.shape == shape @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_ones_invalid_dtype(field, shape): dtype = invalid_dtype(field) with pytest.raises(TypeError): a = field.Ones(shape, dtype=dtype) def test_eye(field): size = 4 a = field.Identity(size) for i in range(size): for j in range(size): assert a[i,j] == 1 if i == j else a[i,j] == 0 assert type(a) is field assert a.dtype == field.dtypes[0] assert a.shape == (size,size) def test_eye_valid_dtype(field): dtype = valid_dtype(field) size = 4 a = field.Identity(size, dtype=dtype) for i in range(size): for j in range(size): assert a[i,j] == 1 if i == j else a[i,j] == 0 assert type(a) is field assert a.dtype == dtype assert a.shape == (size,size) def test_eye_invalid_dtype(field): dtype = invalid_dtype(field) size = 4 with pytest.raises(TypeError): a = field.Identity(size, dtype=dtype) @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_random(field, shape): a = field.Random(shape) assert np.all(a >= 0) and np.all(a < field.order) assert type(a) is field assert a.dtype == field.dtypes[0] assert a.shape == shape @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_random_valid_dtype(field, shape): dtype = valid_dtype(field) a = field.Random(shape, dtype=dtype) assert np.all(a >= 0) and np.all(a < field.order) assert type(a) is field assert a.dtype == dtype assert a.shape == shape @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_random_invalid_dtype(field, shape): dtype = invalid_dtype(field) with pytest.raises(TypeError): a = field.Random(shape, dtype=dtype) @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_vector_valid_dtype(field, shape): v_dtype = valid_dtype(field.prime_subfield) v_shape = list(shape) + [field.degree] v = field.prime_subfield.Random(v_shape, dtype=v_dtype) dtype = valid_dtype(field) a = field.Vector(v, dtype=dtype) assert np.all(a >= 0) and np.all(a < field.order) assert type(a) is field assert a.dtype == dtype assert a.shape == shape @pytest.mark.parametrize("shape", [(), (4,), (4,4)]) def test_vector_invalid_dtype(field, shape): v_dtype = valid_dtype(field.prime_subfield) v_shape = list(shape) + [field.degree] v = field.prime_subfield.Random(v_shape, dtype=v_dtype) dtype = invalid_dtype(field) with pytest.raises(TypeError): a = field.Vector(v, dtype=dtype) def valid_dtype(field): return random.choice(field.dtypes) def invalid_dtype(field): return random.choice([dtype for dtype in DTYPES if dtype not in field.dtypes])
27.761589
96
0.645277
635
4,192
4.16378
0.096063
0.1059
0.073752
0.108169
0.849849
0.826778
0.768911
0.742057
0.720877
0.720877
0
0.015228
0.201097
4,192
150
97
27.946667
0.774261
0.022901
0
0.758929
0
0
0.013454
0
0
0
0
0
0.321429
1
0.142857
false
0
0.035714
0.017857
0.196429
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
5f8944d678eee0c5c5ac918076a03c9ccea52df7
37
py
Python
easy_init/__init__.py
ebrush/easy_init
f7aee08d04390d02819cd73c27f0432170bd4239
[ "MIT" ]
null
null
null
easy_init/__init__.py
ebrush/easy_init
f7aee08d04390d02819cd73c27f0432170bd4239
[ "MIT" ]
null
null
null
easy_init/__init__.py
ebrush/easy_init
f7aee08d04390d02819cd73c27f0432170bd4239
[ "MIT" ]
null
null
null
from easy_init.easy_init import init
18.5
36
0.864865
7
37
4.285714
0.571429
0.533333
0
0
0
0
0
0
0
0
0
0
0.108108
37
1
37
37
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
5f8ccb16757c4eb69a95fcbc6b250afc656d0985
18,882
py
Python
src/models/CNNArchitectures.py
ianscottknight/leaf-count
bfefadfdb6aaab141d526ad3bbdfc5f89138c60c
[ "FTL" ]
null
null
null
src/models/CNNArchitectures.py
ianscottknight/leaf-count
bfefadfdb6aaab141d526ad3bbdfc5f89138c60c
[ "FTL" ]
null
null
null
src/models/CNNArchitectures.py
ianscottknight/leaf-count
bfefadfdb6aaab141d526ad3bbdfc5f89138c60c
[ "FTL" ]
3
2021-01-28T19:55:59.000Z
2022-03-19T06:12:57.000Z
#!/usr/bin/env python # coding: utf-8 import numpy as np import os import csv import datetime import pickle from PIL import Image import torch import torch.nn as nn from torch.utils.data import DataLoader, Dataset from torchvision import transforms class Conv4Net_1Channel_Narrow(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(1, 16, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(16), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(16, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(64, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(16384, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv4Net_1Channel_Wide(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(1, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(32768, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv5Net_1Channel_Narrow(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(1, 16, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(16), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(16, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(8192, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv5Net_1Channel_Wide(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(1, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(128, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(256, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(16384, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv5Net_3Channel_Narrow(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(3, 16, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(16), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(16, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(8192, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv5Net_3Channel_Wide(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(3, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(128, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(256, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(16384, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv6Net_3Channel_Narrow(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(3, 16, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(16), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(16, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer6 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(2048, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = self.layer6(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv6Net_3Channel_Wide(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(3, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(128, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(256, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer6 = nn.Sequential( nn.Conv2d(256, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(4096, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = self.layer6(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv7Net_3Channel_Narrow(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(3, 16, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(16), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(16, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer6 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer7 = nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(512, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = self.layer6(out) out = self.layer7(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out class Conv7Net_3Channel_Wide(nn.Module): def __init__(self, dropout): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(3, 32, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(32), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer2 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(64), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer3 = nn.Sequential( nn.Conv2d(64, 128, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer4 = nn.Sequential( nn.Conv2d(128, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer5 = nn.Sequential( nn.Conv2d(256, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer6 = nn.Sequential( nn.Conv2d(256, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.MaxPool2d(kernel_size=2, stride=2)) self.layer7 = nn.Sequential( nn.Conv2d(256, 256, kernel_size=5, stride=1, padding=2), nn.BatchNorm2d(256), nn.ReLU(), nn.AvgPool2d(kernel_size=2, stride=2)) self.fc1 = nn.Linear(1024, 2000) self.dropout1 = nn.Dropout(dropout) self.fc2 = nn.Linear(2000, 100) self.dropout2 = nn.Dropout(dropout) self.fc3 = nn.Linear(100, 1) def forward(self, x): out = self.layer1(x) out = self.layer2(out) out = self.layer3(out) out = self.layer4(out) out = self.layer5(out) out = self.layer6(out) out = self.layer7(out) out = out.reshape(out.size(0), -1) out = self.fc1(out) out = self.dropout1(out) out = self.fc2(out) out = self.dropout2(out) out = self.fc3(out) return out
35.761364
68
0.544487
2,445
18,882
4.119836
0.035992
0.107217
0.073464
0.107217
0.975975
0.975975
0.975975
0.975975
0.975975
0.975975
0
0.098143
0.318451
18,882
527
69
35.829222
0.684591
0.001801
0
0.947368
0
0
0
0
0
0
0
0
0
1
0.040486
false
0
0.020243
0
0.101215
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
5fc42731ddf921ff76427364c81780a0e982f2eb
137
py
Python
httpx_cache/cache/__init__.py
obendidi/httpx-cache
897dd8da5bb377ed7f61b367716976bdc0d581b1
[ "BSD-3-Clause" ]
16
2021-12-13T01:27:44.000Z
2022-02-28T02:58:46.000Z
httpx_cache/cache/__init__.py
obendidi/httpx-cache
897dd8da5bb377ed7f61b367716976bdc0d581b1
[ "BSD-3-Clause" ]
23
2022-01-03T15:57:39.000Z
2022-03-28T22:25:08.000Z
httpx_cache/cache/__init__.py
obendidi/httpx-cache
897dd8da5bb377ed7f61b367716976bdc0d581b1
[ "BSD-3-Clause" ]
2
2022-01-21T17:57:19.000Z
2022-01-21T18:18:47.000Z
from httpx_cache.cache.base import BaseCache from httpx_cache.cache.file import FileCache from httpx_cache.cache.memory import DictCache
34.25
46
0.868613
21
137
5.52381
0.47619
0.232759
0.362069
0.491379
0
0
0
0
0
0
0
0
0.087591
137
3
47
45.666667
0.928
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
5fc63394adaa20a4574067b3804aa88bbc0a7777
114,525
py
Python
code/python/FactSetEstimatesReportBuilder/v1/fds/sdk/FactSetEstimatesReportBuilder/api/all_estimates_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetEstimatesReportBuilder/v1/fds/sdk/FactSetEstimatesReportBuilder/api/all_estimates_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetEstimatesReportBuilder/v1/fds/sdk/FactSetEstimatesReportBuilder/api/all_estimates_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Estimates Report Builder No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from multiprocessing.pool import ApplyResult import typing from fds.sdk.FactSetEstimatesReportBuilder.api_client import ApiClient, Endpoint as _Endpoint from fds.sdk.FactSetEstimatesReportBuilder.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from fds.sdk.FactSetEstimatesReportBuilder.exceptions import ApiException from fds.sdk.FactSetEstimatesReportBuilder.model.error_response import ErrorResponse from fds.sdk.FactSetEstimatesReportBuilder.model.response import Response class AllEstimatesApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client self.get_estimates_balance_sheet_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/balance-sheet', 'operation_id': 'get_estimates_balance_sheet', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_estimates_cash_flow_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/cash-flow', 'operation_id': 'get_estimates_cash_flow', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_estimates_geographic_segments_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/geographic-segments', 'operation_id': 'get_estimates_geographic_segments', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_estimates_income_statement_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/income-statement', 'operation_id': 'get_estimates_income_statement', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_estimates_industry_metrics_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/industry-metrics', 'operation_id': 'get_estimates_industry_metrics', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_estimates_per_share_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/per-share', 'operation_id': 'get_estimates_per_share', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_estimates_product_segments_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/product-segments', 'operation_id': 'get_estimates_product_segments', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_estimates_valuation_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (Response,), 400: (ErrorResponse,), 403: (ErrorResponse,), 404: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/valuation', 'operation_id': 'get_estimates_valuation', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', 'periodicity', 'schema', ], 'required': [ 'id', ], 'nullable': [ ], 'enum': [ 'periodicity', 'schema', ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { ('periodicity',): { "ANN": "ANN", "QTR": "QTR", "SEMI": "SEMI", "CAL": "CAL" }, ('schema',): { "GROUP_LEVEL": "table_group_level", "PARENT_CHILD_COLUMNS": "table_parent_child_columns" }, }, 'openapi_types': { 'id': (str,), 'periodicity': (str,), 'schema': (str,), }, 'attribute_map': { 'id': 'id', 'periodicity': 'periodicity', 'schema': 'schema', }, 'location_map': { 'id': 'query', 'periodicity': 'query', 'schema': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) @staticmethod def apply_kwargs_defaults(kwargs, return_http_data_only, async_req): kwargs["async_req"] = async_req kwargs["_return_http_data_only"] = return_http_data_only kwargs["_preload_content"] = kwargs.get("_preload_content", True) kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") def get_estimates_balance_sheet( self, id, **kwargs ) -> Response: """Balance Sheet # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Balance Sheet line items. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_balance_sheet_endpoint.call_with_http_info(**kwargs) def get_estimates_balance_sheet_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Balance Sheet # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Balance Sheet line items. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_balance_sheet_endpoint.call_with_http_info(**kwargs) def get_estimates_balance_sheet_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Balance Sheet # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Balance Sheet line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_balance_sheet_endpoint.call_with_http_info(**kwargs) def get_estimates_balance_sheet_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Balance Sheet # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Balance Sheet line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_balance_sheet_endpoint.call_with_http_info(**kwargs) def get_estimates_cash_flow( self, id, **kwargs ) -> Response: """Cash Flow # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Cash Flow line items. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_cash_flow_endpoint.call_with_http_info(**kwargs) def get_estimates_cash_flow_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Cash Flow # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Cash Flow line items. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_cash_flow_endpoint.call_with_http_info(**kwargs) def get_estimates_cash_flow_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Cash Flow # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Cash Flow line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_cash_flow_endpoint.call_with_http_info(**kwargs) def get_estimates_cash_flow_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Cash Flow # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Cash Flow line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_cash_flow_endpoint.call_with_http_info(**kwargs) def get_estimates_geographic_segments( self, id, **kwargs ) -> Response: """Geographic Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down geographically. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_geographic_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_geographic_segments_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Geographic Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down geographically. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_geographic_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_geographic_segments_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Geographic Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down geographically. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_geographic_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_geographic_segments_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Geographic Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down geographically. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_geographic_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_income_statement( self, id, **kwargs ) -> Response: """Income Statement # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Income Statement line items. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_income_statement_endpoint.call_with_http_info(**kwargs) def get_estimates_income_statement_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Income Statement # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Income Statement line items. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_income_statement_endpoint.call_with_http_info(**kwargs) def get_estimates_income_statement_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Income Statement # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Income Statement line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_income_statement_endpoint.call_with_http_info(**kwargs) def get_estimates_income_statement_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Income Statement # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Income Statement line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_income_statement_endpoint.call_with_http_info(**kwargs) def get_estimates_industry_metrics( self, id, **kwargs ) -> Response: """Industry Metrics # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for industry-specific metrics. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_industry_metrics_endpoint.call_with_http_info(**kwargs) def get_estimates_industry_metrics_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Industry Metrics # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for industry-specific metrics. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_industry_metrics_endpoint.call_with_http_info(**kwargs) def get_estimates_industry_metrics_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Industry Metrics # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for industry-specific metrics. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_industry_metrics_endpoint.call_with_http_info(**kwargs) def get_estimates_industry_metrics_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Industry Metrics # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for industry-specific metrics. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_industry_metrics_endpoint.call_with_http_info(**kwargs) def get_estimates_per_share( self, id, **kwargs ) -> Response: """Per Share # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Per Share line items. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_per_share_endpoint.call_with_http_info(**kwargs) def get_estimates_per_share_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Per Share # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Per Share line items. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_per_share_endpoint.call_with_http_info(**kwargs) def get_estimates_per_share_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Per Share # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Per Share line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_per_share_endpoint.call_with_http_info(**kwargs) def get_estimates_per_share_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Per Share # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for Per Share line items. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_per_share_endpoint.call_with_http_info(**kwargs) def get_estimates_product_segments( self, id, **kwargs ) -> Response: """Product Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down by product and business. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_product_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_product_segments_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Product Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down by product and business. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_product_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_product_segments_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Product Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down by product and business. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_product_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_product_segments_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Product Segments # noqa: E501 Returns historical and future period broker estimate consensus in a statement format for line items broken down by product and business. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_product_segments_endpoint.call_with_http_info(**kwargs) def get_estimates_valuation( self, id, **kwargs ) -> Response: """Valuation # noqa: E501 Returns valuation ratios in a statement format calculated from historical and future period broker estimate consensus. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['id'] = \ id return self.get_estimates_valuation_endpoint.call_with_http_info(**kwargs) def get_estimates_valuation_with_http_info( self, id, **kwargs ) -> typing.Tuple[Response, int, typing.MutableMapping]: """Valuation # noqa: E501 Returns valuation ratios in a statement format calculated from historical and future period broker estimate consensus. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: Response Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) kwargs['id'] = \ id return self.get_estimates_valuation_endpoint.call_with_http_info(**kwargs) def get_estimates_valuation_async( self, id, **kwargs ) -> "ApplyResult[Response]": """Valuation # noqa: E501 Returns valuation ratios in a statement format calculated from historical and future period broker estimate consensus. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[Response] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['id'] = \ id return self.get_estimates_valuation_endpoint.call_with_http_info(**kwargs) def get_estimates_valuation_with_http_info_async( self, id, **kwargs ) -> "ApplyResult[typing.Tuple[Response, int, typing.MutableMapping]]": """Valuation # noqa: E501 Returns valuation ratios in a statement format calculated from historical and future period broker estimate consensus. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: id (str): Company Ticker Keyword Args: periodicity (str): Periodicity or frequency of the fiscal periods.. [optional] if omitted the server will use the default value of "ANN" schema (str): The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns . [optional] if omitted the server will use the default value of "table_parent_child_columns" _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(Response, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['id'] = \ id return self.get_estimates_valuation_endpoint.call_with_http_info(**kwargs)
51.081624
506
0.592805
12,977
114,525
5.101256
0.020267
0.026103
0.030454
0.025015
0.976571
0.972009
0.968338
0.966978
0.966978
0.966978
0
0.006604
0.34547
114,525
2,241
507
51.104418
0.876521
0.630168
0
0.785486
1
0
0.156612
0.038545
0
0
0
0
0
1
0.036286
false
0
0.009605
0
0.08111
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
39e018a0f90109112738197bb40a69395d5ae60d
11,317
py
Python
ScienceVisuals/MapGraph/Scripts/plot_hadisst2_montly.py
XinZhou90D/ClimatePython
6634d60c620c77a48245d6a8de0eba8ce599a7e3
[ "MIT" ]
27
2018-09-14T03:57:01.000Z
2022-03-23T16:58:57.000Z
ScienceVisuals/MapGraph/Scripts/plot_hadisst2_montly.py
zmlabe/ClimatePython
149fe38dc91a3580cbb5711db63c94340f643304
[ "MIT" ]
null
null
null
ScienceVisuals/MapGraph/Scripts/plot_hadisst2_montly.py
zmlabe/ClimatePython
149fe38dc91a3580cbb5711db63c94340f643304
[ "MIT" ]
10
2019-02-02T09:59:40.000Z
2022-02-21T12:33:12.000Z
""" HadISST2 plot of a particularly month time series Website : http://apps.ecmwf.int/data-catalogues/era5/?class=ea Author : Zachary M. Labe Date : 30 March 2018 """ from netCDF4 import Dataset import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap, addcyclic, shiftgrid import numpy as np import datetime import cmocean ### Define constants directorydata = '/home/zlabe/dataall/SST/HadISST2/ERA5/' directoryfigure = '/home/zlabe/Documents/Projects/ClimatePython/' \ 'ScienceVisuals/MapGraph/Figures/' now = datetime.datetime.now() month = now.month filename = directorydata + 'SST_ERA5.nc' data = Dataset(filename) lats = data.variables['latitude'][:] lons = data.variables['longitude'][:] var = data.variables['sst'][5,:,:] data.close() years = np.arange(2010,2017+1,1) yearsq = np.repeat(years,12) #### Convert var = var - 273.15 ### Define parameters (dark) def setcolor(x, color): for m in x: for t in x[m][1]: t.set_color(color) ############################################################################### ############################################################################### ############################################################################### ### Define figure 1 #plt.rc('text',usetex=True) #plt.rc('font',**{'family':'sans-serif','sans-serif':['Avant Garde']}) plt.rc('savefig',facecolor='black') plt.rc('axes',edgecolor='k') plt.rc('xtick',color='white') plt.rc('ytick',color='white') plt.rc('axes',labelcolor='white') plt.rc('axes',facecolor='black') m = Basemap(projection='merc',llcrnrlat=-84,urcrnrlat=84,\ llcrnrlon=-180,urcrnrlon=180,lat_ts=20,resolution='l') fig = plt.figure() ax = plt.subplot(111) for txt in fig.texts: txt.set_visible(False) m.drawmapboundary(fill_color='k') m.drawlsmask(land_color='w',ocean_color='k') m.drawcoastlines(color='k',linewidth=0.4) # Make the plot continuous barlim = np.arange(0,32,30) var, lons_cyclic = addcyclic(var, lons) var, lons_cyclic = shiftgrid(180., var, lons_cyclic, start=False) lon2d, lat2d = np.meshgrid(lons_cyclic, lats) x, y = m(lon2d, lat2d) cs = m.contourf(x,y,var,np.arange(-1.8,31.5,2), extend='both', alpha=1) cs.set_cmap('jet') t5 = plt.annotate(r'Sea Surface Temperature', textcoords='axes fraction', xy=(0,0),xytext=(.5,-0.07), fontsize=16,color='w',alpha=1,rotation=0, va='center',ha='center') # t6 = plt.annotate(r'\textbf{$\bf{^\circ}$\textbf{C}}', # textcoords='axes fraction', # xy=(0,0), xytext=(.78,-0.164), # fontsize=15,color='w',alpha=1,rotation=0,va='center',ha='center') m.fillcontinents(color='w') cbar = plt.colorbar(cs,drawedges=False,orientation='horizontal',pad = 0.1, fraction=0.035) cbar.set_ticks(barlim) cbar.set_ticklabels(list(map(str,barlim))) cbar.ax.tick_params(axis='x', size=.01) cbar.ax.tick_params(labelsize=6) plt.savefig(directoryfigure + 'sst_01.png',dpi=300) ############################################################################### ############################################################################### ############################################################################### ### Define figure 2 #plt.rc('text',usetex=True) #plt.rc('font',**{'family':'sans-serif','sans-serif':['Avant Garde']}) plt.rc('savefig',facecolor='black') plt.rc('axes',edgecolor='k') plt.rc('xtick',color='white') plt.rc('ytick',color='white') plt.rc('axes',labelcolor='white') plt.rc('axes',facecolor='black') m = Basemap(projection='robin',lon_0=0,resolution='l') fig = plt.figure() ax = plt.subplot(111) for txt in fig.texts: txt.set_visible(False) m.drawmapboundary(fill_color='k') m.drawlsmask(land_color='w',ocean_color='k') m.drawcoastlines(color='k',linewidth=0.4) # Make the plot continuous barlim = np.arange(0,32,30) var, lons_cyclic = addcyclic(var, lons) var, lons_cyclic = shiftgrid(180., var, lons_cyclic, start=False) lon2d, lat2d = np.meshgrid(lons_cyclic, lats) x, y = m(lon2d, lat2d) cs = m.contourf(x,y,var,np.arange(-1.8,31.5,0.2), extend='both', alpha=1) cs.set_cmap('jet') t5 = plt.annotate(r'Sea Surface Temperature', textcoords='axes fraction', xy=(0,0),xytext=(.5,-0.07), fontsize=16,color='w',alpha=1,rotation=0, va='center',ha='center') # t6 = plt.annotate(r'\textbf{$\bf{^\circ}$\textbf{C}}', # textcoords='axes fraction', # xy=(0,0), xytext=(.78,-0.164), # fontsize=15,color='w',alpha=1,rotation=0,va='center',ha='center') m.fillcontinents(color='k') cbar = plt.colorbar(cs,drawedges=False,orientation='horizontal',pad = 0.1, fraction=0.035) cbar.set_ticks(barlim) cbar.set_ticklabels(list(map(str,barlim))) cbar.ax.tick_params(axis='x', size=.01) cbar.ax.tick_params(labelsize=6) plt.savefig(directoryfigure + 'sst_02.png',dpi=300) ############################################################################### ############################################################################### ############################################################################### ### Define figure 3 plt.rc('text',usetex=True) plt.rc('font',**{'family':'sans-serif','sans-serif':['Avant Garde']}) plt.rc('savefig',facecolor='black') plt.rc('axes',edgecolor='k') plt.rc('xtick',color='darkgrey') plt.rc('ytick',color='darkgrey') plt.rc('axes',labelcolor='darkgrey') plt.rc('axes',facecolor='black') m = Basemap(projection='robin',lon_0=0,resolution='l') fig = plt.figure() ax = plt.subplot(111) for txt in fig.texts: txt.set_visible(False) m.drawmapboundary(fill_color='k') m.drawlsmask(land_color='w',ocean_color='k') m.drawcoastlines(color='k',linewidth=0.4) # Make the plot continuous barlim = np.arange(0,32,30) var, lons_cyclic = addcyclic(var, lons) var, lons_cyclic = shiftgrid(180., var, lons_cyclic, start=False) lon2d, lat2d = np.meshgrid(lons_cyclic, lats) x, y = m(lon2d, lat2d) cs = m.contourf(x,y,var,np.arange(-1.8,31.5,0.2), extend='both', alpha=1) cs.set_cmap('jet') t5 = plt.annotate(r'\textbf{SEA SURFACE TEMPERATURE}', textcoords='axes fraction', xy=(0,0),xytext=(.5,-0.07), fontsize=16,color='darkgrey',alpha=1,rotation=0, va='center',ha='center') t6 = plt.annotate(r'\textbf{$\bf{^\circ}$\textbf{C}}', textcoords='axes fraction', xy=(0,0), xytext=(.78,-0.164), fontsize=15,color='darkgrey',alpha=1,rotation=0,va='center',ha='center') m.fillcontinents(color='k') cbar = plt.colorbar(cs,drawedges=False,orientation='horizontal',pad = 0.1, fraction=0.035) cbar.set_ticks(barlim) cbar.set_ticklabels(list(map(str,barlim))) cbar.ax.tick_params(axis='x', size=.01) cbar.ax.tick_params(labelsize=11) plt.savefig(directoryfigure + 'sst_03.png',dpi=300) ############################################################################### ############################################################################### ############################################################################### ### Define figure 4 plt.rc('text',usetex=True) plt.rc('font',**{'family':'sans-serif','sans-serif':['Avant Garde']}) plt.rc('savefig',facecolor='black') plt.rc('axes',edgecolor='k') plt.rc('xtick',color='darkgrey') plt.rc('ytick',color='darkgrey') plt.rc('axes',labelcolor='darkgrey') plt.rc('axes',facecolor='black') m = Basemap(projection='robin',lon_0=0,resolution='l') fig = plt.figure() ax = plt.subplot(111) for txt in fig.texts: txt.set_visible(False) m.drawmapboundary(fill_color='k') m.drawlsmask(land_color='w',ocean_color='k') m.drawcoastlines(color='k',linewidth=0.4) # Make the plot continuous barlim = np.arange(0,32,30) var, lons_cyclic = addcyclic(var, lons) var, lons_cyclic = shiftgrid(180., var, lons_cyclic, start=False) lon2d, lat2d = np.meshgrid(lons_cyclic, lats) x, y = m(lon2d, lat2d) cs = m.contourf(x,y,var,np.arange(-1.8,31.5,0.2), extend='both', alpha=1) cs.set_cmap(cmocean.cm.thermal) t5 = plt.annotate(r'\textbf{SEA SURFACE TEMPERATURE}', textcoords='axes fraction', xy=(0,0),xytext=(.5,-0.07), fontsize=16,color='darkgrey',alpha=1,rotation=0, va='center',ha='center') t6 = plt.annotate(r'\textbf{$\bf{^\circ}$\textbf{C}}', textcoords='axes fraction', xy=(0,0), xytext=(.78,-0.164), fontsize=15,color='darkgrey',alpha=1,rotation=0,va='center',ha='center') m.fillcontinents(color='k') cbar = plt.colorbar(cs,drawedges=False,orientation='horizontal',pad = 0.1, fraction=0.035) cbar.set_ticks(barlim) cbar.set_ticklabels(list(map(str,barlim))) cbar.ax.tick_params(axis='x', size=.01) cbar.ax.tick_params(labelsize=11) plt.savefig(directoryfigure + 'sst_04.png',dpi=300) ############################################################################### ############################################################################### ############################################################################### ### Define figure 5 plt.rc('text',usetex=True) plt.rc('font',**{'family':'sans-serif','sans-serif':['Avant Garde']}) plt.rc('savefig',facecolor='black') plt.rc('axes',edgecolor='k') plt.rc('xtick',color='darkgrey') plt.rc('ytick',color='darkgrey') plt.rc('axes',labelcolor='darkgrey') plt.rc('axes',facecolor='black') m = Basemap(projection='moll',lon_0=0,resolution='l',area_thresh=10000) fig = plt.figure() ax = plt.subplot(111) for txt in fig.texts: txt.set_visible(False) m.drawmapboundary(fill_color='k') m.drawlsmask(land_color='k',ocean_color='k') m.drawcoastlines(color='k',linewidth=0.4) # Make the plot continuous barlim = np.arange(0,32,30) var, lons_cyclic = addcyclic(var, lons) var, lons_cyclic = shiftgrid(180., var, lons_cyclic, start=False) lon2d, lat2d = np.meshgrid(lons_cyclic, lats) x, y = m(lon2d, lat2d) cs = m.contourf(x,y,var,np.arange(-1.8,31.5,0.2), extend='both', alpha=1) cs.set_cmap(cmocean.cm.thermal) t5 = plt.annotate(r'\textbf{SEA SURFACE TEMPERATURE}', textcoords='axes fraction', xy=(0,0),xytext=(.5,-0.07), fontsize=16,color='darkgrey',alpha=1,rotation=0, va='center',ha='center') t6 = plt.annotate(r'\textbf{$\bf{^\circ}$\textbf{C}}', textcoords='axes fraction', xy=(0,0), xytext=(.78,-0.164), fontsize=15,color='darkgrey',alpha=1,rotation=0,va='center',ha='center') m.fillcontinents(color='k') cbar = plt.colorbar(cs,drawedges=False,orientation='horizontal',pad = 0.1, fraction=0.035) cbar.set_ticks(barlim) cbar.set_ticklabels(list(map(str,barlim))) cbar.ax.tick_params(axis='x', size=.01) cbar.ax.tick_params(labelsize=11) plt.savefig(directoryfigure + 'sst_05.png',dpi=300)
33.482249
84
0.565874
1,474
11,317
4.291045
0.151967
0.031621
0.021344
0.037945
0.870672
0.854862
0.854862
0.854862
0.854862
0.854862
0
0.039748
0.159671
11,317
338
85
33.482249
0.625342
0.093753
0
0.843049
0
0
0.139421
0.023385
0
0
0
0
0
1
0.004484
false
0
0.026906
0
0.03139
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