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
0a8aa249385eec27be33b69b874f9121117a7915
120
py
Python
icevision/models/efficientdet/fastai/__init__.py
RibenaMapleSyrup/icevision
6cbd6d103cb3f76bc21ae7651e9d958efe8c3a64
[ "Apache-2.0" ]
88
2020-05-02T12:28:02.000Z
2021-09-30T07:17:03.000Z
icevision/models/efficientdet/fastai/__init__.py
RibenaMapleSyrup/icevision
6cbd6d103cb3f76bc21ae7651e9d958efe8c3a64
[ "Apache-2.0" ]
248
2020-05-01T18:46:31.000Z
2020-07-31T20:55:01.000Z
icevision/models/efficientdet/fastai/__init__.py
RibenaMapleSyrup/icevision
6cbd6d103cb3f76bc21ae7651e9d958efe8c3a64
[ "Apache-2.0" ]
15
2020-06-07T15:59:56.000Z
2021-02-27T09:46:39.000Z
from icevision.models.efficientdet.fastai.callbacks import * from icevision.models.efficientdet.fastai.learner import *
40
60
0.85
14
120
7.285714
0.571429
0.254902
0.372549
0.607843
0.72549
0
0
0
0
0
0
0
0.066667
120
2
61
60
0.910714
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
0aac5352a7d314b6ceabbc9caa96cf47767c4140
12,925
py
Python
pychron/experiment/tests/frequency_test.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/experiment/tests/frequency_test.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/experiment/tests/frequency_test.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import unittest from pychron.experiment.utilities.frequency_generator import frequency_index_gen, parse_frequency_template, \ validate_frequency_template from six.moves import range class FrequencyTemplateTestCase(unittest.TestCase): def test_parse1(self): self._test_parse('s', (True, False, False, None)) def test_parse2(self): self._test_parse('s,e', (True, True, False, None)) def test_parse3(self): self._test_parse('s,3,4,e', (True, True, False, [3, 4])) def test_parse4(self): self._test_parse('s,E', (True, True, True, None)) def _test_parse(self, v, args): pargs = parse_frequency_template(v) self.assertTupleEqual(args, pargs) def test_pass_validate1(self): self._test_pass('s') def test_pass_validate2(self): self._test_pass('s,e') def test_pass_validate3(self): self._test_pass('s,3,e') def test_pass_validate4(self): self._test_pass('s,3,4,e') def test_pass_validate5(self): self._test_pass('3') def test_pass_validate6(self): self._test_pass('3,4') def test_pass_validate7(self): self._test_pass('3,4,e') def test_pass_validate8(self): self._test_pass('e') def test_pass_validate9(self): self._test_pass('s,E') def test_pass_validate10(self): self._test_pass('s,3,E') def test_fail_validate1(self): self._test_fail('s,') def test_fail_validate2(self): self._test_fail('s,x') def test_fail_validate3(self): self._test_fail('s,3e') def test_fail_validate4(self): self._test_fail('s,3e,4') def test_fail_validate5(self): self._test_fail('3e') def test_fail_validate6(self): self._test_fail('3,') def test_fail_validate7(self): self._test_fail('3,4,') def test_fail_validate8(self): self._test_fail('e,') def test_fail_validate9(self): self._test_fail(',e') def _test_pass(self, v): self.assertTrue(validate_frequency_template(v)) def _test_fail(self, v): self.assertIsNone(validate_frequency_template(v)) def test_template_start(self): self._test_template('s', ['blank', 'unknown', 'unknown', 'unknown']) def test_template_end(self): self._test_template('e', ['unknown', 'unknown', 'unknown', 'blank']) def test_template_start_end(self): self._test_template('s,e', ['blank', 'unknown', 'unknown', 'unknown', 'blank']) def test_template_start_idx(self): self._test_template('s,2', ['blank', 'unknown', 'unknown', 'blank', 'unknown']) def test_template_start_end_idx(self): self._test_template('s,2,e', ['blank', 'unknown', 'unknown', 'blank', 'unknown', 'blank']) def test_template_start_idx2(self): self._test_template('s,2', ['blank', 'unknown', 'unknown', 'blank', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown'], runs=self._get_runs()) def test_template_start_end_idx2(self): self._test_template('s,2,e', ['blank', 'unknown', 'unknown', 'blank', 'unknown', 'blank', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'blank'], runs=self._get_runs()) def test_template_start_idx3(self): self._test_template('s,2,10', ['blank', 'unknown', 'unknown', 'blank', 'unknown','blank']) def test_template_start2(self): self._test_template('s', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', ], runs=self._get_runs()) def test_template_start_end2(self): self._test_template('s,e', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'blank', 'unknown', 'unknown', 'unknown', 'blank'], runs=self._get_runs()) def test_template_end2(self): self._test_template('e', ['unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'blank'], runs=self._get_runs()) def test_template_compress(self): self._test_template('e', ['unknown', 'unknown', 'unknown', 'blank', 'air', 'unknown', 'unknown', 'unknown', 'blank'], runs=self._get_runs2()) def test_template_start_end_ex(self): self._test_template('s,E', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'blank'], runs=self._get_runs()) def test_template_start_end_ex2(self): self._test_template('s,E', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'air', 'blank', 'unknown', 'unknown', 'unknown', 'blank'], runs=self._get_runs2()) def test_template_start_end_ex3(self): self._test_template('s,E', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'air', 'blank', 'unknown', 'unknown', 'unknown', 'blank', 'air', 'blank', 'unknown', 'unknown', 'unknown', 'blank'], runs=self._get_runs3()) def test_template_start_end2(self): self._test_template('s,e', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'blank', 'unknown', 'unknown', 'unknown', 'blank', 'blank', 'unknown', 'unknown', 'unknown', 'blank'], runs=self._get_runs4()) def test_template_start_idx3(self): runs = [Run() for i in range(4)] runs[1].skip=True self._test_template('s,2', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown'], runs=runs) def test_template_start_idx4(self): runs = [Run() for i in range(4)]+[Run(aliquot=1) for i in range(4)] runs[1].skip=True runs[5].skip=True self._test_template('s,2', ['blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown'], runs=runs) def _get_runs(self): return [Run() for i in range(3)] + [Run(aliquot=1) for i in range(3)] def _get_runs2(self): return [Run() for i in range(3)] + [Run(analysis_type='air')] + \ [Run(aliquot=1) for i in range(3)] def _get_runs3(self): return [Run() for i in range(3)] + [Run(analysis_type='air')] + \ [Run(aliquot=1) for i in range(3)]+[Run(analysis_type='air')]+\ [Run(aliquot=2) for i in range(3)] def _get_runs4(self): return [Run() for i in range(3)] + \ [Run(aliquot=1) for i in range(3)]+\ [Run(aliquot=2) for i in range(3)] def _test_template(self, temp, exp, runs=None): if runs is None: runs = [Run() for i in range(3)] for i in reversed(list(frequency_index_gen(runs, temp, ('unknown', ), False, False))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] # print 'exception', exp # print atypes self.assertListEqual(atypes, exp) class Run(object): analysis_type = 'unknown' aliquot = 0 skip = False def __init__(self, aliquot=0, analysis_type='unknown'): self.aliquot = aliquot self.analysis_type = analysis_type class FrequencyTestCase(unittest.TestCase): def setUp(self): self.runs=[Run() for i in range(10)] def test_before(self): runs = self.runs for i in reversed(list(frequency_index_gen(runs, 2, ('unknown', ), True, False))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', ]) def test_after(self): runs = self.runs for i in reversed(list(frequency_index_gen(runs, 2, ('unknown', ), False, True))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', ]) def test_before_and_after(self): runs = self.runs for i in reversed(list(frequency_index_gen(runs, 2, ('unknown', ), True, True))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', ]) def test_not_before_or_after(self): runs = self.runs for i in reversed(list(frequency_index_gen(runs, 2, ('unknown', ), False, False))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'blank', 'unknown', 'unknown']) def test_not_before_or_after3(self): runs = self.runs for i in reversed(list(frequency_index_gen(runs, 3, ('unknown', ), False, False))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown']) def test_after_subset1(self): runs = self.runs for i in reversed(list(frequency_index_gen(runs[:7], 3, ('unknown', ), False, False))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'unknown']) def test_after_subset2(self): runs = self.runs sidx = 3 for i in reversed(list(frequency_index_gen(runs[sidx:], 3, ('unknown', ), False, True, sidx=sidx))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['unknown', 'unknown', 'unknown', 'unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'blank', 'unknown']) def test_after_subset3(self): runs = self.runs sidx = 3 for i in reversed(list(frequency_index_gen(runs[sidx:], 3, ('unknown', ), False, False, sidx=sidx))): r = Run() r.analysis_type = 'blank' runs.insert(i, r) atypes = [ri.analysis_type for ri in runs] self.assertListEqual(atypes, ['unknown', 'unknown', 'unknown', 'unknown', 'unknown', 'unknown', 'blank', 'unknown', 'unknown', 'unknown', 'unknown']) if __name__ == '__main__': unittest.main()
39.166667
109
0.518221
1,409
12,925
4.536551
0.084457
0.225594
0.163486
0.150501
0.801001
0.765801
0.720119
0.701815
0.676627
0.582916
0
0.013233
0.333462
12,925
330
110
39.166667
0.728729
0.002708
0
0.435294
0
0
0.150062
0
0
0
0
0
0.047059
1
0.231373
false
0.082353
0.015686
0.015686
0.286275
0
0
0
0
null
1
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
7
0ac6bf85ac8d1146e41e551e46755b27e25e2cfe
13,475
py
Python
tests/test_notifier.py
heston/ding-dong-ditch
0aa3c749f6155dd17653f8273a6f40cc31b7ee01
[ "0BSD" ]
6
2017-05-26T15:56:39.000Z
2020-02-19T17:41:55.000Z
tests/test_notifier.py
heston/ding-dong-ditch
0aa3c749f6155dd17653f8273a6f40cc31b7ee01
[ "0BSD" ]
24
2017-07-02T02:54:29.000Z
2021-06-01T22:30:52.000Z
tests/test_notifier.py
heston/ding-dong-ditch
0aa3c749f6155dd17653f8273a6f40cc31b7ee01
[ "0BSD" ]
3
2018-02-19T21:12:51.000Z
2020-02-19T17:41:57.000Z
from dingdongditch import notifier, system_settings, user_settings def test_get_sms_body(mocker): datetime_mock = mocker.patch('dingdongditch.notifier.datetime') datetime_mock.now.return_value.strftime.return_value = 'TIMESTAMP' result = notifier.get_sms_body() assert 'Ding dong! Your doorbell rang TIMESTAMP' == result def test_parse_phone_number__with_delimiter(): number = '+14155551000::p' result = notifier.parse_phone_number(number) assert '+14155551000' == result def test_parse_phone_number__no_delimiter(): number = '+14155551000' result = notifier.parse_phone_number(number) assert '+14155551000' == result def test__notify_by_phone__success(mocker): client_mock = mocker.patch('dingdongditch.notifier.get_twilio_client').return_value log_mock = mocker.patch('dingdongditch.notifier.logger') result = notifier.notify_by_phone('1234', '+14155551001') client_mock.calls.create.assert_called_with( to='+14155551001', from_=system_settings.FROM_NUMBER, url=mocker.ANY, if_machine='Hangup' ) assert result is client_mock.calls.create.return_value.sid log_mock.info.assert_any_call( 'Notifying unit "%s" by phone "%s"', '1234', '+14155551001' ) def test__notify_by_phone__failure(mocker): client_mock = mocker.patch('dingdongditch.notifier.get_twilio_client').return_value log_mock = mocker.patch('dingdongditch.notifier.logger') client_mock.calls.create.side_effect = Exception result = notifier.notify_by_phone('1234', '+14155551001') assert log_mock.exception.called assert result is False def test__notify_by_sms__success(mocker): client_mock = mocker.patch('dingdongditch.notifier.get_twilio_client').return_value log_mock = mocker.patch('dingdongditch.notifier.logger') result = notifier.notify_by_sms('1234', '+14155551001') client_mock.messages.create.assert_called_with( to='+14155551001', from_=system_settings.FROM_NUMBER, body=mocker.ANY ) assert result is client_mock.messages.create.return_value.sid log_mock.info.assert_any_call( 'Notifying unit "%s" by SMS "%s"', '1234', '+14155551001' ) def test__notify_by_sms__failure(mocker): client_mock = mocker.patch('dingdongditch.notifier.get_twilio_client').return_value log_mock = mocker.patch('dingdongditch.notifier.logger') client_mock.messages.create.side_effect = Exception result = notifier.notify_by_sms('1234', '+14155551001') assert log_mock.exception.called assert result is False def test__notify_by_push__success__no_event_id(mocker): service_mock = mocker.patch('dingdongditch.notifier.get_push_service').return_value log_mock = mocker.patch('dingdongditch.notifier.logger') result = notifier.notify_by_push('1234', 'asdf1234=') service_mock.single_device_data_message.assert_called_with( registration_id='asdf1234=', time_to_live=0, data_message={ 'title': notifier.PUSH_MSG_TITLE, 'body': notifier.PUSH_MSG_BODY, 'event_id': None, } ) log_mock.info.assert_any_call( 'Notifying unit "%s" by push "%s"', '1234', 'asdf1234=' ) def test__notify_by_push__success__with_event_id(mocker): service_mock = mocker.patch('dingdongditch.notifier.get_push_service').return_value log_mock = mocker.patch('dingdongditch.notifier.logger') result = notifier.notify_by_push('1234', 'asdf1234=', 'jkl;') service_mock.single_device_data_message.assert_called_with( registration_id='asdf1234=', time_to_live=0, data_message={ 'title': notifier.PUSH_MSG_TITLE, 'body': notifier.PUSH_MSG_BODY, 'event_id': 'jkl;', } ) log_mock.info.assert_any_call( 'Notifying unit "%s" by push "%s"', '1234', 'asdf1234=' ) def test__notify_recipients__unknown_unit_id(mocker): log_mock = mocker.patch('dingdongditch.notifier.logger') notifier.notify_recipients('1234') log_mock.warning.assert_called_with('Unknown unit id: %s', '1234') def test__notify_recipients__unconfigured_unit(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) notifier.notify_recipients('1234') log_mock.warning.assert_called_with('Unit found but not yet configured: %s', '1234') def test__notify_recipients__should_not_ring_bell(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) get_unit_by_id_mock = mocker.patch('dingdongditch.user_settings.get_unit_by_id') get_unit_by_id_mock.return_value = user_settings.Unit( should_ring_bell=False, recipients={} ) notify_mock = mocker.patch('dingdongditch.notifier.notify') ring_mock = mocker.patch('dingdongditch.notifier.ring') notifier.notify_recipients('1234') assert not log_mock.warning.called assert not ring_mock.called def test__notify_recipients__should_ring_bell(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) get_unit_by_id_mock = mocker.patch('dingdongditch.user_settings.get_unit_by_id') get_unit_by_id_mock.return_value = user_settings.Unit( should_ring_bell=True, recipients={} ) ring_mock = mocker.patch('dingdongditch.notifier.ring') notifier.notify_recipients('1234') assert not log_mock.warning.called ring_mock.assert_called_with('1234') def test__notify_recipients__should_call_recipients(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) get_unit_by_id_mock = mocker.patch('dingdongditch.user_settings.get_unit_by_id') get_unit_by_id_mock.return_value = user_settings.Unit( should_ring_bell=False, recipients={'+14155551001': notifier.RecipientType.PHONE.value} ) notify_mock = mocker.patch('dingdongditch.notifier.notify') notifier.notify_recipients('1234') assert not log_mock.warning.called notify_mock.assert_called_with('1234', '+14155551001', notifier.RecipientType.PHONE.value, None) def test__notify_recipients__should_push_to_recipients(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) get_unit_by_id_mock = mocker.patch('dingdongditch.user_settings.get_unit_by_id') get_unit_by_id_mock.return_value = user_settings.Unit( should_ring_bell=False, recipients={'asdf1234=': notifier.RecipientType.PUSH.value} ) notify_mock = mocker.patch('dingdongditch.notifier.notify') notifier.notify_recipients('1234') assert not log_mock.warning.called notify_mock.assert_called_with('1234', 'asdf1234=', notifier.RecipientType.PUSH.value, None) def test__notify_recipients__should_push_to_recipients__with_event_id(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) get_unit_by_id_mock = mocker.patch('dingdongditch.user_settings.get_unit_by_id') get_unit_by_id_mock.return_value = user_settings.Unit( should_ring_bell=False, recipients={'asdf1234=': notifier.RecipientType.PUSH.value} ) notify_mock = mocker.patch('dingdongditch.notifier.notify') notifier.notify_recipients('1234', 'jkl;') assert not log_mock.warning.called notify_mock.assert_called_with('1234', 'asdf1234=', notifier.RecipientType.PUSH.value, 'jkl;') def test__notify_recipients__no_network__no_fallback(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( RING_FALLBACK=False, UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) get_unit_by_id_mock = mocker.patch('dingdongditch.user_settings.get_unit_by_id') get_unit_by_id_mock.return_value = user_settings.Unit( should_ring_bell=False, recipients={'+14155551001': notifier.RecipientType.PHONE.value} ) notify_mock = mocker.patch('dingdongditch.notifier.notify') notify_mock.return_value = False ring_mock = mocker.patch('dingdongditch.notifier.ring') notifier.notify_recipients('1234') log_mock.error.assert_called_with( 'All notifications failed!' ) assert not ring_mock.called def test__notify_recipients__no_network__with_fallback(mocker, settings): log_mock = mocker.patch('dingdongditch.notifier.logger') settings( RING_FALLBACK=True, UNIT_1=system_settings.Unit( id='1234', buzzer=None, bell=None, strike=None ) ) get_unit_by_id_mock = mocker.patch('dingdongditch.user_settings.get_unit_by_id') get_unit_by_id_mock.return_value = user_settings.Unit( should_ring_bell=False, recipients={'+14155551001': notifier.RecipientType.PHONE.value} ) notify_mock = mocker.patch('dingdongditch.notifier.notify') notify_mock.return_value = False ring_mock = mocker.patch('dingdongditch.notifier.ring') notifier.notify_recipients('1234') log_mock.error.assert_called_with( 'All notifications failed!' ) assert ring_mock.called def test__notify__recipient_type__phone(mocker): log_mock = mocker.patch('dingdongditch.notifier.logger') notify_by_phone_mock = mocker.patch('dingdongditch.notifier.notify_by_phone') notify_by_push_mock = mocker.patch('dingdongditch.notifier.notify_by_push') notifier.notify('1234', '+14155551001::p', notifier.RecipientType.PHONE.value) notify_by_phone_mock.assert_called_with('1234', '+14155551001') assert not log_mock.error.called assert not notify_by_push_mock.called def test__notify__recipient_type__sms(mocker): log_mock = mocker.patch('dingdongditch.notifier.logger') notify_by_phone_mock = mocker.patch('dingdongditch.notifier.notify_by_phone') notify_by_sms_mock = mocker.patch('dingdongditch.notifier.notify_by_sms') notify_by_push_mock = mocker.patch('dingdongditch.notifier.notify_by_push') notifier.notify('1234', '+14155551001::s', notifier.RecipientType.SMS.value) notify_by_sms_mock.assert_called_with('1234', '+14155551001') assert not log_mock.error.called assert not notify_by_push_mock.called assert not notify_by_phone_mock.called def test__notify__recipient_type__push(mocker): log_mock = mocker.patch('dingdongditch.notifier.logger') notify_by_phone_mock = mocker.patch('dingdongditch.notifier.notify_by_phone') notify_by_push_mock = mocker.patch('dingdongditch.notifier.notify_by_push') notifier.notify('1234', 'asdf1234=', notifier.RecipientType.PUSH.value) notify_by_push_mock.assert_called_with('1234', 'asdf1234=', None) assert not notify_by_phone_mock.called assert not log_mock.error.called def test__notify__recipient_type__push__with_event_id(mocker): log_mock = mocker.patch('dingdongditch.notifier.logger') notify_by_phone_mock = mocker.patch('dingdongditch.notifier.notify_by_phone') notify_by_push_mock = mocker.patch('dingdongditch.notifier.notify_by_push') notifier.notify('1234', 'asdf1234=', notifier.RecipientType.PUSH.value, 'jkl;') notify_by_push_mock.assert_called_with('1234', 'asdf1234=', 'jkl;') assert not notify_by_phone_mock.called assert not log_mock.error.called def test__notify__recipient_type__unknown(mocker): log_mock = mocker.patch('dingdongditch.notifier.logger') notify_by_phone_mock = mocker.patch('dingdongditch.notifier.notify_by_phone') notify_by_push_mock = mocker.patch('dingdongditch.notifier.notify_by_push') result = notifier.notify('1234', 'o hai', 99) assert result is False assert log_mock.error.called assert not notify_by_phone_mock.called assert not notify_by_push_mock.called def test_notify_with_future(mocker): executor_mock = mocker.patch('dingdongditch.notifier.executor') notifier.notify_with_future('1234', 'asdf1234=', notifier.RecipientType.PUSH.value) executor_mock.submit.assert_called_with( notifier.notify, '1234', 'asdf1234=', notifier.RecipientType.PUSH.value, None ) def test_notify_with_future__with_event_id(mocker): executor_mock = mocker.patch('dingdongditch.notifier.executor') notifier.notify_with_future('1234', 'asdf1234=', notifier.RecipientType.PUSH.value, 'jkl;') executor_mock.submit.assert_called_with( notifier.notify, '1234', 'asdf1234=', notifier.RecipientType.PUSH.value, 'jkl;' ) def test_get_sorted_recipients(): recipients = {'+1415': 1, 'asdf=': 2, '+1510': 1, 'jkl=': 2, '+1650': 3} result = notifier._get_sorted_recipients(recipients) result_values = [a[1] for a in result] assert [3, 2, 2, 1, 1] == result_values
34.819121
100
0.730019
1,702
13,475
5.415394
0.074031
0.061842
0.092763
0.173158
0.9106
0.887057
0.863947
0.832917
0.817294
0.787132
0
0.045205
0.161113
13,475
386
101
34.909326
0.77017
0
0
0.591549
0
0
0.213432
0.140853
0
0
0
0
0.18662
1
0.091549
false
0
0.003521
0
0.09507
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
0ad9d179ab3a2b1a0364c3cc540de338deb931c4
14,169
py
Python
examples/lsc/pcqm4m/conv.py
edwardelson/ogb
c783060c5ada3641c0f08527acd1d53626f9f9c9
[ "MIT" ]
2
2021-04-15T10:36:13.000Z
2021-04-17T05:45:12.000Z
examples/lsc/pcqm4m/conv.py
edwardelson/ogb
c783060c5ada3641c0f08527acd1d53626f9f9c9
[ "MIT" ]
null
null
null
examples/lsc/pcqm4m/conv.py
edwardelson/ogb
c783060c5ada3641c0f08527acd1d53626f9f9c9
[ "MIT" ]
1
2021-04-10T17:46:25.000Z
2021-04-10T17:46:25.000Z
import torch from torch_geometric.nn import MessagePassing import torch.nn.functional as F from torch_geometric.nn import global_mean_pool, global_add_pool from ogb.graphproppred.mol_encoder import AtomEncoder,BondEncoder from torch_geometric.utils import degree import math import torchbnn as bnn ### GIN convolution along the graph structure class GINConv(MessagePassing): def __init__(self, emb_dim): ''' emb_dim (int): node embedding dimensionality ''' super(GINConv, self).__init__(aggr = "add") self.mlp = torch.nn.Sequential(torch.nn.Linear(emb_dim, emb_dim), torch.nn.BatchNorm1d(emb_dim), torch.nn.ReLU(), torch.nn.Linear(emb_dim, emb_dim)) self.eps = torch.nn.Parameter(torch.Tensor([0])) self.bond_encoder = BondEncoder(emb_dim = emb_dim) def forward(self, x, edge_index, edge_attr): edge_embedding = self.bond_encoder(edge_attr) out = self.mlp((1 + self.eps) *x + self.propagate(edge_index, x=x, edge_attr=edge_embedding)) return out def message(self, x_j, edge_attr): return F.relu(x_j + edge_attr) def update(self, aggr_out): return aggr_out ### Bayesian GIN convolution along the graph structure class BayesianGINConv(MessagePassing): def __init__(self, emb_dim): ''' emb_dim (int): node embedding dimensionality ''' super(BayesianGINConv, self).__init__(aggr = "add") self.mlp = torch.nn.Sequential( bnn.BayesLinear(prior_mu=0, prior_sigma=0.1, in_features=emb_dim, out_features=emb_dim), torch.nn.BatchNorm1d(emb_dim), torch.nn.ReLU(), bnn.BayesLinear(prior_mu=0, prior_sigma=0.1, in_features=emb_dim, out_features=emb_dim) ) self.eps = torch.nn.Parameter(torch.Tensor([0])) self.bond_encoder = BondEncoder(emb_dim = emb_dim) def forward(self, x, edge_index, edge_attr): edge_embedding = self.bond_encoder(edge_attr) out = self.mlp((1 + self.eps) *x + self.propagate(edge_index, x=x, edge_attr=edge_embedding)) return out def message(self, x_j, edge_attr): return F.relu(x_j + edge_attr) def update(self, aggr_out): return aggr_out ### GCN convolution along the graph structure class GCNConv(MessagePassing): def __init__(self, emb_dim): super(GCNConv, self).__init__(aggr='add') self.linear = torch.nn.Linear(emb_dim, emb_dim) self.root_emb = torch.nn.Embedding(1, emb_dim) self.bond_encoder = BondEncoder(emb_dim = emb_dim) def forward(self, x, edge_index, edge_attr): x = self.linear(x) edge_embedding = self.bond_encoder(edge_attr) row, col = edge_index #edge_weight = torch.ones((edge_index.size(1), ), device=edge_index.device) deg = degree(row, x.size(0), dtype = x.dtype) + 1 deg_inv_sqrt = deg.pow(-0.5) deg_inv_sqrt[deg_inv_sqrt == float('inf')] = 0 norm = deg_inv_sqrt[row] * deg_inv_sqrt[col] return self.propagate(edge_index, x=x, edge_attr = edge_embedding, norm=norm) + F.relu(x + self.root_emb.weight) * 1./deg.view(-1,1) def message(self, x_j, edge_attr, norm): return norm.view(-1, 1) * F.relu(x_j + edge_attr) def update(self, aggr_out): return aggr_out ### GNN to generate node embedding class GNN_node(torch.nn.Module): """ Output: node representations """ def __init__(self, num_layers, emb_dim, drop_ratio = 0.5, JK = "last", residual = False, gnn_type = 'gin'): ''' emb_dim (int): node embedding dimensionality num_layers (int): number of GNN message passing layers ''' super(GNN_node, self).__init__() self.num_layers = num_layers self.drop_ratio = drop_ratio self.JK = JK ### add residual connection or not self.residual = residual if self.num_layers < 2: raise ValueError("Number of GNN layers must be greater than 1.") self.atom_encoder = AtomEncoder(emb_dim) ###List of GNNs self.convs = torch.nn.ModuleList() self.batch_norms = torch.nn.ModuleList() for layer in range(num_layers): if gnn_type == 'gin': self.convs.append(GINConv(emb_dim)) elif gnn_type == 'gcn': self.convs.append(GCNConv(emb_dim)) else: ValueError('Undefined GNN type called {}'.format(gnn_type)) self.batch_norms.append(torch.nn.BatchNorm1d(emb_dim)) def forward(self, batched_data): x, edge_index, edge_attr, batch = batched_data.x, batched_data.edge_index, batched_data.edge_attr, batched_data.batch ### computing input node embedding h_list = [self.atom_encoder(x)] for layer in range(self.num_layers): h = self.convs[layer](h_list[layer], edge_index, edge_attr) h = self.batch_norms[layer](h) if layer == self.num_layers - 1: #remove relu for the last layer h = F.dropout(h, self.drop_ratio, training = self.training) else: h = F.dropout(F.relu(h), self.drop_ratio, training = self.training) if self.residual: h += h_list[layer] h_list.append(h) ### Different implementations of Jk-concat if self.JK == "last": node_representation = h_list[-1] elif self.JK == "sum": node_representation = 0 for layer in range(self.num_layers): node_representation += h_list[layer] return node_representation ### Virtual GNN to generate node embedding class GNN_node_Virtualnode(torch.nn.Module): """ Output: node representations """ def __init__(self, num_layers, emb_dim, drop_ratio = 0.5, JK = "last", residual = False, gnn_type = 'gin'): ''' emb_dim (int): node embedding dimensionality ''' super(GNN_node_Virtualnode, self).__init__() self.num_layers = num_layers self.drop_ratio = drop_ratio self.JK = JK ### add residual connection or not self.residual = residual if self.num_layers < 2: raise ValueError("Number of GNN layers must be greater than 1.") self.atom_encoder = AtomEncoder(emb_dim) ### set the initial virtual node embedding to 0. self.virtualnode_embedding = torch.nn.Embedding(1, emb_dim) torch.nn.init.constant_(self.virtualnode_embedding.weight.data, 0) ### List of GNNs self.convs = torch.nn.ModuleList() ### batch norms applied to node embeddings self.batch_norms = torch.nn.ModuleList() ### List of MLPs to transform virtual node at every layer self.mlp_virtualnode_list = torch.nn.ModuleList() for layer in range(num_layers): if gnn_type == 'gin': self.convs.append(GINConv(emb_dim)) elif gnn_type == 'gcn': self.convs.append(GCNConv(emb_dim)) else: ValueError('Undefined GNN type called {}'.format(gnn_type)) self.batch_norms.append(torch.nn.BatchNorm1d(emb_dim)) for layer in range(num_layers - 1): self.mlp_virtualnode_list.append(torch.nn.Sequential(torch.nn.Linear(emb_dim, emb_dim), torch.nn.BatchNorm1d(emb_dim), torch.nn.ReLU(), \ torch.nn.Linear(emb_dim, emb_dim), torch.nn.BatchNorm1d(emb_dim), torch.nn.ReLU())) def forward(self, batched_data): x, edge_index, edge_attr, batch = batched_data.x, batched_data.edge_index, batched_data.edge_attr, batched_data.batch ### virtual node embeddings for graphs virtualnode_embedding = self.virtualnode_embedding(torch.zeros(batch[-1].item() + 1).to(edge_index.dtype).to(edge_index.device)) h_list = [self.atom_encoder(x)] for layer in range(self.num_layers): ### add message from virtual nodes to graph nodes h_list[layer] = h_list[layer] + virtualnode_embedding[batch] ### Message passing among graph nodes h = self.convs[layer](h_list[layer], edge_index, edge_attr) h = self.batch_norms[layer](h) if layer == self.num_layers - 1: #remove relu for the last layer h = F.dropout(h, self.drop_ratio, training = self.training) else: h = F.dropout(F.relu(h), self.drop_ratio, training = self.training) if self.residual: h = h + h_list[layer] h_list.append(h) ### update the virtual nodes if layer < self.num_layers - 1: ### add message from graph nodes to virtual nodes virtualnode_embedding_temp = global_add_pool(h_list[layer], batch) + virtualnode_embedding ### transform virtual nodes using MLP if self.residual: virtualnode_embedding = virtualnode_embedding + F.dropout(self.mlp_virtualnode_list[layer](virtualnode_embedding_temp), self.drop_ratio, training = self.training) else: virtualnode_embedding = F.dropout(self.mlp_virtualnode_list[layer](virtualnode_embedding_temp), self.drop_ratio, training = self.training) ### Different implementations of Jk-concat if self.JK == "last": node_representation = h_list[-1] elif self.JK == "sum": node_representation = 0 for layer in range(self.num_layers): node_representation += h_list[layer] return node_representation ### Virtual GNN to generate node embedding class Bayesian_GNN_node_Virtualnode(torch.nn.Module): """ Output: node representations """ def __init__(self, num_layers, emb_dim, drop_ratio = 0.5, JK = "last", residual = False, gnn_type = 'gin'): ''' emb_dim (int): node embedding dimensionality ''' super(Bayesian_GNN_node_Virtualnode, self).__init__() self.num_layers = num_layers self.drop_ratio = drop_ratio self.JK = JK ### add residual connection or not self.residual = residual if self.num_layers < 2: raise ValueError("Number of GNN layers must be greater than 1.") self.atom_encoder = AtomEncoder(emb_dim) ### set the initial virtual node embedding to 0. self.virtualnode_embedding = torch.nn.Embedding(1, emb_dim) torch.nn.init.constant_(self.virtualnode_embedding.weight.data, 0) ### List of GNNs self.convs = torch.nn.ModuleList() ### batch norms applied to node embeddings self.batch_norms = torch.nn.ModuleList() ### List of MLPs to transform virtual node at every layer self.mlp_virtualnode_list = torch.nn.ModuleList() for layer in range(num_layers): if gnn_type == 'gin': self.convs.append(BayesianGINConv(emb_dim)) elif gnn_type == 'gcn': raise Exception("not implemented yet") else: ValueError('Undefined GNN type called {}'.format(gnn_type)) self.batch_norms.append(torch.nn.BatchNorm1d(emb_dim)) for layer in range(num_layers - 1): self.mlp_virtualnode_list.append(torch.nn.Sequential( bnn.BayesLinear(prior_mu=0, prior_sigma=0.1, in_features=emb_dim, out_features=emb_dim), torch.nn.BatchNorm1d(emb_dim), torch.nn.ReLU(), bnn.BayesLinear(prior_mu=0, prior_sigma=0.1, in_features=emb_dim, out_features=emb_dim), torch.nn.BatchNorm1d(emb_dim), torch.nn.ReLU())) def forward(self, batched_data): x, edge_index, edge_attr, batch = batched_data.x, batched_data.edge_index, batched_data.edge_attr, batched_data.batch ### virtual node embeddings for graphs virtualnode_embedding = self.virtualnode_embedding(torch.zeros(batch[-1].item() + 1).to(edge_index.dtype).to(edge_index.device)) h_list = [self.atom_encoder(x)] for layer in range(self.num_layers): ### add message from virtual nodes to graph nodes h_list[layer] = h_list[layer] + virtualnode_embedding[batch] ### Message passing among graph nodes h = self.convs[layer](h_list[layer], edge_index, edge_attr) h = self.batch_norms[layer](h) if layer == self.num_layers - 1: #remove relu for the last layer h = F.dropout(h, self.drop_ratio, training = self.training) else: h = F.dropout(F.relu(h), self.drop_ratio, training = self.training) if self.residual: h = h + h_list[layer] h_list.append(h) ### update the virtual nodes if layer < self.num_layers - 1: ### add message from graph nodes to virtual nodes virtualnode_embedding_temp = global_add_pool(h_list[layer], batch) + virtualnode_embedding ### transform virtual nodes using MLP if self.residual: virtualnode_embedding = virtualnode_embedding + F.dropout(self.mlp_virtualnode_list[layer](virtualnode_embedding_temp), self.drop_ratio, training = self.training) else: virtualnode_embedding = F.dropout(self.mlp_virtualnode_list[layer](virtualnode_embedding_temp), self.drop_ratio, training = self.training) ### Different implementations of Jk-concat if self.JK == "last": node_representation = h_list[-1] elif self.JK == "sum": node_representation = 0 for layer in range(self.num_layers): node_representation += h_list[layer] return node_representation if __name__ == "__main__": pass
37.885027
182
0.617898
1,809
14,169
4.614151
0.096186
0.039535
0.031149
0.021804
0.916138
0.907631
0.892536
0.875524
0.860669
0.855397
0
0.007056
0.279836
14,169
374
183
37.885027
0.810956
0.125768
0
0.795349
0
0
0.02608
0
0
0
0
0
0
1
0.083721
false
0.023256
0.037209
0.027907
0.204651
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
e4019213d3dc9db4e3fde55abe24edeed0909f01
47,392
py
Python
infoblox_netmri/api/broker/v3_8_0/best_origin_route_broker.py
infobloxopen/infoblox_netmri
aa1c744df7e439dbe163bb9edd165e4e85a9771b
[ "Apache-2.0" ]
12
2016-02-19T12:37:54.000Z
2022-03-04T20:11:08.000Z
infoblox_netmri/api/broker/v3_8_0/best_origin_route_broker.py
infobloxopen/infoblox_netmri
aa1c744df7e439dbe163bb9edd165e4e85a9771b
[ "Apache-2.0" ]
18
2015-11-12T18:37:00.000Z
2021-05-19T07:59:55.000Z
infoblox_netmri/api/broker/v3_8_0/best_origin_route_broker.py
infobloxopen/infoblox_netmri
aa1c744df7e439dbe163bb9edd165e4e85a9771b
[ "Apache-2.0" ]
18
2016-01-07T12:04:34.000Z
2022-03-31T11:05:41.000Z
from ..broker import Broker class BestOriginRouteBroker(Broker): controller = "best_origin_routes" def show(self, **kwargs): """Shows the details for the specified best origin route. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` True | ``default:`` None :param DeviceRouteID: The internal NetMRI identifier of the device routing table entry. :type DeviceRouteID: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of best origin route methods. The listed methods will be called on each best origin route returned and included in the output. Available methods are: device, infradevice. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device. :type include: Array of String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return best_origin_route: The best origin route identified by the specified DeviceRouteID. :rtype best_origin_route: BestOriginRoute """ return self.api_request(self._get_method_fullname("show"), kwargs) def index(self, **kwargs): """Lists the available best origin routes. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this method is most efficient. **Inputs** | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param DeviceID: The internal NetMRI identifier for the device from which this route was collected. :type DeviceID: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param DeviceID: The internal NetMRI identifier for the device from which this route was collected. :type DeviceID: Array of Integer | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param DeviceRouteID: The internal NetMRI identifier of the device routing table entry. :type DeviceRouteID: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param DeviceRouteID: The internal NetMRI identifier of the device routing table entry. :type DeviceRouteID: Array of Integer | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param RouteCIDR: The route, in CIDR notation. :type RouteCIDR: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param RouteCIDR: The route, in CIDR notation. :type RouteCIDR: Array of String | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param VirtualNetworkMemberID: The internal NetMRI identifier for the Virtual Network Member for this route. :type VirtualNetworkMemberID: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param VirtualNetworkMemberID: The internal NetMRI identifier for the Virtual Network Member for this route. :type VirtualNetworkMemberID: Array of Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param DeviceGroupID: The internal NetMRI identifier of the device groups to which to limit the results. :type DeviceGroupID: Array of Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param timestamp: The data returned will represent the best origin routes as of this date and time. If omitted, the result will indicate the most recently collected data. :type timestamp: DateTime | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of best origin route methods. The listed methods will be called on each best origin route returned and included in the output. Available methods are: device, infradevice. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device. :type include: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 0 :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information. :type start: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 1000 :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000. :type limit: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` DeviceRouteID :param sort: The data field(s) to use for sorting the output. Default is DeviceRouteID. Valid values are DeviceRouteID, BORouteStartTime, BORouteEndTime, BORouteChangedCols, BORouteTimestamp, DeviceID, RouteCIDR, RouteProto, RouteType, RouteLocation, VirtualNetworkMemberID. :type sort: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` asc :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'. :type dir: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param select: The list of attributes to return for each BestOriginRoute. Valid values are DeviceRouteID, BORouteStartTime, BORouteEndTime, BORouteChangedCols, BORouteTimestamp, DeviceID, RouteCIDR, RouteProto, RouteType, RouteLocation, VirtualNetworkMemberID. If empty or omitted, all attributes will be returned. :type select: Array | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records. :type goto_field: String | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records. :type goto_value: String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return best_origin_routes: An array of the BestOriginRoute objects that match the specified input criteria. :rtype best_origin_routes: Array of BestOriginRoute """ return self.api_list_request(self._get_method_fullname("index"), kwargs) def search(self, **kwargs): """Lists the available best origin routes matching the input criteria. This method provides a more flexible search interface than the index method, but searching using this method is more demanding on the system and will not perform to the same level as the index method. The input fields listed below will be used as in the index method, to filter the result, along with the optional query string and XML filter described below. **Inputs** | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param BORouteChangedCols: The fields that changed between this revision of the record and the previous revision. :type BORouteChangedCols: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param BORouteChangedCols: The fields that changed between this revision of the record and the previous revision. :type BORouteChangedCols: Array of String | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param BORouteEndTime: The ending effective time of this record, or empty if still in effect. :type BORouteEndTime: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param BORouteEndTime: The ending effective time of this record, or empty if still in effect. :type BORouteEndTime: Array of DateTime | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param BORouteStartTime: The starting effective time of this record. :type BORouteStartTime: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param BORouteStartTime: The starting effective time of this record. :type BORouteStartTime: Array of DateTime | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param BORouteTimestamp: The date and time this record was collected or calculated. :type BORouteTimestamp: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param BORouteTimestamp: The date and time this record was collected or calculated. :type BORouteTimestamp: Array of DateTime | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param DeviceID: The internal NetMRI identifier for the device from which this route was collected. :type DeviceID: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param DeviceID: The internal NetMRI identifier for the device from which this route was collected. :type DeviceID: Array of Integer | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param DeviceRouteID: The internal NetMRI identifier of the device routing table entry. :type DeviceRouteID: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param DeviceRouteID: The internal NetMRI identifier of the device routing table entry. :type DeviceRouteID: Array of Integer | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param RouteCIDR: The route, in CIDR notation. :type RouteCIDR: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param RouteCIDR: The route, in CIDR notation. :type RouteCIDR: Array of String | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param RouteLocation: The route location, either Internal or External. Internal routes are those within the NetMRI discovery ranges. :type RouteLocation: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param RouteLocation: The route location, either Internal or External. Internal routes are those within the NetMRI discovery ranges. :type RouteLocation: Array of String | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param RouteProto: The routing protocol through which this route was learned. :type RouteProto: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param RouteProto: The routing protocol through which this route was learned. :type RouteProto: Array of String | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param RouteType: The route type as reported by the device. :type RouteType: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param RouteType: The route type as reported by the device. :type RouteType: Array of String | ``api version min:`` 2.4 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param VirtualNetworkMemberID: The internal NetMRI identifier for the Virtual Network Member for this route. :type VirtualNetworkMemberID: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param VirtualNetworkMemberID: The internal NetMRI identifier for the Virtual Network Member for this route. :type VirtualNetworkMemberID: Array of Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param DeviceGroupID: The internal NetMRI identifier of the device groups to which to limit the results. :type DeviceGroupID: Array of Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param timestamp: The data returned will represent the best origin routes as of this date and time. If omitted, the result will indicate the most recently collected data. :type timestamp: DateTime | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of best origin route methods. The listed methods will be called on each best origin route returned and included in the output. Available methods are: device, infradevice. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device. :type include: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 0 :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information. :type start: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 1000 :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000. :type limit: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` DeviceRouteID :param sort: The data field(s) to use for sorting the output. Default is DeviceRouteID. Valid values are DeviceRouteID, BORouteStartTime, BORouteEndTime, BORouteChangedCols, BORouteTimestamp, DeviceID, RouteCIDR, RouteProto, RouteType, RouteLocation, VirtualNetworkMemberID. :type sort: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` asc :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'. :type dir: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param select: The list of attributes to return for each BestOriginRoute. Valid values are DeviceRouteID, BORouteStartTime, BORouteEndTime, BORouteChangedCols, BORouteTimestamp, DeviceID, RouteCIDR, RouteProto, RouteType, RouteLocation, VirtualNetworkMemberID. If empty or omitted, all attributes will be returned. :type select: Array | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records. :type goto_field: String | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records. :type goto_value: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param query: This value will be matched against best origin routes, looking to see if one or more of the listed attributes contain the passed value. You may also surround the value with '/' and '/' to perform a regular expression search rather than a containment operation. Any record that matches will be returned. The attributes searched are: BORouteChangedCols, BORouteEndTime, BORouteStartTime, BORouteTimestamp, DeviceID, DeviceRouteID, RouteCIDR, RouteLocation, RouteProto, RouteType, VirtualNetworkMemberID. :type query: String | ``api version min:`` 2.3 | ``api version max:`` None | ``required:`` False | ``default:`` None :param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering. :type xml_filter: String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return best_origin_routes: An array of the BestOriginRoute objects that match the specified input criteria. :rtype best_origin_routes: Array of BestOriginRoute """ return self.api_list_request(self._get_method_fullname("search"), kwargs) def find(self, **kwargs): """Lists the available best origin routes matching the input specification. This provides the most flexible search specification of all the query mechanisms, enabling searching using comparison operations other than equality. However, it is more complex to use and will not perform as efficiently as the index or search methods. In the input descriptions below, 'field names' refers to the following fields: BORouteChangedCols, BORouteEndTime, BORouteStartTime, BORouteTimestamp, DeviceID, DeviceRouteID, RouteCIDR, RouteLocation, RouteProto, RouteType, VirtualNetworkMemberID. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_BORouteChangedCols: The operator to apply to the field BORouteChangedCols. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. BORouteChangedCols: The fields that changed between this revision of the record and the previous revision. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_BORouteChangedCols: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_BORouteChangedCols: If op_BORouteChangedCols is specified, the field named in this input will be compared to the value in BORouteChangedCols using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_BORouteChangedCols must be specified if op_BORouteChangedCols is specified. :type val_f_BORouteChangedCols: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_BORouteChangedCols: If op_BORouteChangedCols is specified, this value will be compared to the value in BORouteChangedCols using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_BORouteChangedCols must be specified if op_BORouteChangedCols is specified. :type val_c_BORouteChangedCols: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_BORouteEndTime: The operator to apply to the field BORouteEndTime. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. BORouteEndTime: The ending effective time of this record, or empty if still in effect. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_BORouteEndTime: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_BORouteEndTime: If op_BORouteEndTime is specified, the field named in this input will be compared to the value in BORouteEndTime using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_BORouteEndTime must be specified if op_BORouteEndTime is specified. :type val_f_BORouteEndTime: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_BORouteEndTime: If op_BORouteEndTime is specified, this value will be compared to the value in BORouteEndTime using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_BORouteEndTime must be specified if op_BORouteEndTime is specified. :type val_c_BORouteEndTime: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_BORouteStartTime: The operator to apply to the field BORouteStartTime. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. BORouteStartTime: The starting effective time of this record. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_BORouteStartTime: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_BORouteStartTime: If op_BORouteStartTime is specified, the field named in this input will be compared to the value in BORouteStartTime using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_BORouteStartTime must be specified if op_BORouteStartTime is specified. :type val_f_BORouteStartTime: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_BORouteStartTime: If op_BORouteStartTime is specified, this value will be compared to the value in BORouteStartTime using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_BORouteStartTime must be specified if op_BORouteStartTime is specified. :type val_c_BORouteStartTime: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_BORouteTimestamp: The operator to apply to the field BORouteTimestamp. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. BORouteTimestamp: The date and time this record was collected or calculated. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_BORouteTimestamp: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_BORouteTimestamp: If op_BORouteTimestamp is specified, the field named in this input will be compared to the value in BORouteTimestamp using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_BORouteTimestamp must be specified if op_BORouteTimestamp is specified. :type val_f_BORouteTimestamp: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_BORouteTimestamp: If op_BORouteTimestamp is specified, this value will be compared to the value in BORouteTimestamp using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_BORouteTimestamp must be specified if op_BORouteTimestamp is specified. :type val_c_BORouteTimestamp: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_DeviceID: The operator to apply to the field DeviceID. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceID: The internal NetMRI identifier for the device from which this route was collected. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_DeviceID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_DeviceID: If op_DeviceID is specified, the field named in this input will be compared to the value in DeviceID using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceID must be specified if op_DeviceID is specified. :type val_f_DeviceID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_DeviceID: If op_DeviceID is specified, this value will be compared to the value in DeviceID using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceID must be specified if op_DeviceID is specified. :type val_c_DeviceID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_DeviceRouteID: The operator to apply to the field DeviceRouteID. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceRouteID: The internal NetMRI identifier of the device routing table entry. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_DeviceRouteID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_DeviceRouteID: If op_DeviceRouteID is specified, the field named in this input will be compared to the value in DeviceRouteID using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceRouteID must be specified if op_DeviceRouteID is specified. :type val_f_DeviceRouteID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_DeviceRouteID: If op_DeviceRouteID is specified, this value will be compared to the value in DeviceRouteID using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceRouteID must be specified if op_DeviceRouteID is specified. :type val_c_DeviceRouteID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_RouteCIDR: The operator to apply to the field RouteCIDR. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. RouteCIDR: The route, in CIDR notation. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_RouteCIDR: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_RouteCIDR: If op_RouteCIDR is specified, the field named in this input will be compared to the value in RouteCIDR using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_RouteCIDR must be specified if op_RouteCIDR is specified. :type val_f_RouteCIDR: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_RouteCIDR: If op_RouteCIDR is specified, this value will be compared to the value in RouteCIDR using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_RouteCIDR must be specified if op_RouteCIDR is specified. :type val_c_RouteCIDR: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_RouteLocation: The operator to apply to the field RouteLocation. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. RouteLocation: The route location, either Internal or External. Internal routes are those within the NetMRI discovery ranges. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_RouteLocation: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_RouteLocation: If op_RouteLocation is specified, the field named in this input will be compared to the value in RouteLocation using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_RouteLocation must be specified if op_RouteLocation is specified. :type val_f_RouteLocation: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_RouteLocation: If op_RouteLocation is specified, this value will be compared to the value in RouteLocation using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_RouteLocation must be specified if op_RouteLocation is specified. :type val_c_RouteLocation: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_RouteProto: The operator to apply to the field RouteProto. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. RouteProto: The routing protocol through which this route was learned. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_RouteProto: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_RouteProto: If op_RouteProto is specified, the field named in this input will be compared to the value in RouteProto using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_RouteProto must be specified if op_RouteProto is specified. :type val_f_RouteProto: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_RouteProto: If op_RouteProto is specified, this value will be compared to the value in RouteProto using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_RouteProto must be specified if op_RouteProto is specified. :type val_c_RouteProto: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_RouteType: The operator to apply to the field RouteType. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. RouteType: The route type as reported by the device. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_RouteType: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_RouteType: If op_RouteType is specified, the field named in this input will be compared to the value in RouteType using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_RouteType must be specified if op_RouteType is specified. :type val_f_RouteType: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_RouteType: If op_RouteType is specified, this value will be compared to the value in RouteType using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_RouteType must be specified if op_RouteType is specified. :type val_c_RouteType: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_VirtualNetworkMemberID: The operator to apply to the field VirtualNetworkMemberID. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. VirtualNetworkMemberID: The internal NetMRI identifier for the Virtual Network Member for this route. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_VirtualNetworkMemberID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_VirtualNetworkMemberID: If op_VirtualNetworkMemberID is specified, the field named in this input will be compared to the value in VirtualNetworkMemberID using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_VirtualNetworkMemberID must be specified if op_VirtualNetworkMemberID is specified. :type val_f_VirtualNetworkMemberID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_VirtualNetworkMemberID: If op_VirtualNetworkMemberID is specified, this value will be compared to the value in VirtualNetworkMemberID using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_VirtualNetworkMemberID must be specified if op_VirtualNetworkMemberID is specified. :type val_c_VirtualNetworkMemberID: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param DeviceGroupID: The internal NetMRI identifier of the device groups to which to limit the results. :type DeviceGroupID: Array of Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param timestamp: The data returned will represent the best origin routes as of this date and time. If omitted, the result will indicate the most recently collected data. :type timestamp: DateTime | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of best origin route methods. The listed methods will be called on each best origin route returned and included in the output. Available methods are: device, infradevice. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device. :type include: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 0 :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information. :type start: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 1000 :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000. :type limit: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` DeviceRouteID :param sort: The data field(s) to use for sorting the output. Default is DeviceRouteID. Valid values are DeviceRouteID, BORouteStartTime, BORouteEndTime, BORouteChangedCols, BORouteTimestamp, DeviceID, RouteCIDR, RouteProto, RouteType, RouteLocation, VirtualNetworkMemberID. :type sort: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` asc :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'. :type dir: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param select: The list of attributes to return for each BestOriginRoute. Valid values are DeviceRouteID, BORouteStartTime, BORouteEndTime, BORouteChangedCols, BORouteTimestamp, DeviceID, RouteCIDR, RouteProto, RouteType, RouteLocation, VirtualNetworkMemberID. If empty or omitted, all attributes will be returned. :type select: Array | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records. :type goto_field: String | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records. :type goto_value: String | ``api version min:`` 2.3 | ``api version max:`` None | ``required:`` False | ``default:`` None :param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering. :type xml_filter: String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return best_origin_routes: An array of the BestOriginRoute objects that match the specified input criteria. :rtype best_origin_routes: Array of BestOriginRoute """ return self.api_list_request(self._get_method_fullname("find"), kwargs)
52.775056
585
0.610019
5,685
47,392
5.040633
0.052595
0.073981
0.048088
0.077889
0.943851
0.942106
0.917295
0.906547
0.903231
0.901766
0
0.00515
0.307626
47,392
897
586
52.833891
0.868162
0.82286
0
0
0
0
0.062712
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
9
7c229f369e8fc57a4d95c59334de5b2c4140a224
12,252
py
Python
Definitivi/self_vs_non/swimmer500/sn/analysis.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
2
2017-12-18T12:35:09.000Z
2021-04-29T03:11:12.000Z
Definitivi/self_vs_non/swimmer500/sn/analysis.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
null
null
null
Definitivi/self_vs_non/swimmer500/sn/analysis.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
7
2018-09-11T01:33:34.000Z
2021-12-15T01:53:53.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt def flatten(l): return flatten(l[0]) + (flatten(l[1:]) if len(l) > 1 else []) if type(l) is list else [l] #load the data n_sub_iter=pd.read_csv("n_sub_iter_vA_swimmer_sn.csv") rewards_snapshot=pd.read_csv("rewards_snapshot_swimmer_vA_sn.csv") rewards_subiter=pd.read_csv("rewards_subiter_swimmer_vA_sn.csv") variance_sgd=pd.read_csv("variance_sgd_vA_swimmer_sn.csv") variance_svrg=pd.read_csv("variance_svrg_vA_swimmer_sn.csv") importance_weights=pd.read_csv("importance_weights_vA_swimmer_sn.csv") #gpomdp_rewards=pd.read_csv("GPOMDP_AVAR_rewards2.csv") #analize #x=rewards_snapshot["rewardsSnapshot0"] np.array(x[0][1:-1].split()) crea un array contenete i rewards nel primo snapshot #per trajectories analysis avg_traj_rewards=list() for col_name_s,col_name_si,col_name_nsi in zip(rewards_snapshot,rewards_subiter,n_sub_iter): first = np.insert(np.array(np.cumsum(n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])])),0,0) #np.cumsum(n_sub_iter["nSubIter0"][~np.isnan(n_sub_iter["nSubIter0"])]) ranges = n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])] traj_rewards = list() for i,k,s in zip(first[0:-1],ranges,range(len(ranges))): traj_rewards.append(list(rewards_snapshot[col_name_s][s][1:-1].split())[:100]) for j in range(np.int(k)): traj_rewards.append(list(rewards_subiter[col_name_si][i+j][1:-1].split())[:10]) if(len(ranges)<len(rewards_snapshot[col_name_s][rewards_snapshot[col_name_s]==rewards_snapshot[col_name_s]])): traj_rewards.append(list(rewards_snapshot[col_name_s][np.int(s+1)][1:-1].split())) traj_rewards=flatten(traj_rewards) avg_traj_rewards.append(traj_rewards) lenghts=list() for i in avg_traj_rewards: lenghts.append(len(i)) min_len=min(lenghts) temp=list() for i in avg_traj_rewards: temp.append(i[:min_len]) avg_traj_rewards=temp avg_traj_rewards=np.asarray(np.mean(np.matrix(avg_traj_rewards,dtype=np.float64),axis=0)).flatten() plt.plot(avg_traj_rewards) plt.legend(["Average Reward"],loc="lower right") plt.savefig("per_tra_analisis.jpg", figsize=(32, 24), dpi=160) plt.show() #per update analysis avg_traj_rewards=list() for col_name_s,col_name_si,col_name_nsi in zip(rewards_snapshot,rewards_subiter,n_sub_iter): first = np.insert(np.array(np.cumsum(n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])])),0,0) #np.cumsum(n_sub_iter["nSubIter0"][~np.isnan(n_sub_iter["nSubIter0"])]) ranges = n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])] traj_rewards = list() for i,k,s in zip(first[0:-1],ranges,range(len(ranges))): traj_rewards.append(np.mean(np.asarray(rewards_snapshot[col_name_s][s][1:-1].split(),dtype=np.float64))) for j in range(np.int(k)): traj_rewards.append(np.mean(np.asarray(rewards_subiter[col_name_si][i+j][1:-1].split(),dtype=np.float64))) if(len(ranges)<len(rewards_snapshot[col_name_s][rewards_snapshot[col_name_s]==rewards_snapshot[col_name_s]])): traj_rewards.append(np.mean(np.asarray(rewards_snapshot[col_name_s][np.int(s+1)][1:-1].split(),dtype=np.float64))) avg_traj_rewards.append(traj_rewards) lenghts=list() for i in avg_traj_rewards: lenghts.append(len(i)) min_len=min(lenghts) temp=list() for i in avg_traj_rewards: temp.append(i[:min_len]) avg_traj_rewards=temp avg_traj_rewards=np.asarray(np.mean(np.matrix(avg_traj_rewards,dtype=np.float64),axis=0)).flatten() plt.plot(avg_traj_rewards) plt.legend(["Average Reward"],loc="lower right") plt.savefig("per_upd_analisis.jpg", figsize=(32, 24), dpi=160) plt.show() #per trajectory comparison reward=list() for col in gpomdp_rewards: x=gpomdp_rewards[col][gpomdp_rewards[col]==gpomdp_rewards[col]] rew=list() for i in x: rew.append(list(i[1:-1].split())) reward.append(flatten(rew[0:500])+flatten(rew[500:])) reward=np.asarray(np.mean(np.matrix(reward,dtype=np.float64),axis=0)).flatten() plt.plot(reward) avg_traj_rewards=list() for col_name_s,col_name_si,col_name_nsi in zip(rewards_snapshot,rewards_subiter,n_sub_iter): first = np.insert(np.array(np.cumsum(n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])])),0,0) #np.cumsum(n_sub_iter["nSubIter0"][~np.isnan(n_sub_iter["nSubIter0"])]) ranges = n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])] traj_rewards = list() for i,k,s in zip(first[0:-1],ranges,range(len(ranges))): traj_rewards.append(list(rewards_snapshot[col_name_s][s][1:-1].split())[:100]) for j in range(np.int(k)): traj_rewards.append(list(rewards_subiter[col_name_si][i+j][1:-1].split())[:10]) if(len(ranges)<len(rewards_snapshot[col_name_s][rewards_snapshot[col_name_s]==rewards_snapshot[col_name_s]])): traj_rewards.append(list(rewards_snapshot[col_name_s][np.int(s+1)][1:-1].split())) traj_rewards=flatten(traj_rewards) avg_traj_rewards.append(traj_rewards) lenghts=list() for i in avg_traj_rewards: lenghts.append(len(i)) min_len=min(lenghts) temp=list() for i in avg_traj_rewards: temp.append(i[:min_len]) avg_traj_rewards=temp avg_traj_rewards=np.asarray(np.mean(np.matrix(avg_traj_rewards,dtype=np.float64),axis=0)).flatten() plt.plot(avg_traj_rewards) plt.legend(["Average Reward SGD","Average Reward SVRG"],loc="lower right") plt.savefig("per_tra_comparison.jpg", figsize=(32, 24), dpi=160) plt.show() #per trajectory comparison mean reward=list() for col in gpomdp_rewards: x=gpomdp_rewards[col][gpomdp_rewards[col]==gpomdp_rewards[col]] rew=list() for i in x: rew.append(list(np.repeat(np.mean(np.array(i[1:-1].split(),dtype = np.float)),10))) reward.append(flatten(rew[0:500])+flatten(rew[500:])) reward=np.asarray(np.mean(np.matrix(reward,dtype=np.float64),axis=0)).flatten() plt.plot(reward) avg_traj_rewards=list() for col_name_s,col_name_si,col_name_nsi in zip(rewards_snapshot,rewards_subiter,n_sub_iter): first = np.insert(np.array(np.cumsum(n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])])),0,0) #np.cumsum(n_sub_iter["nSubIter0"][~np.isnan(n_sub_iter["nSubIter0"])]) ranges = n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])] traj_rewards = list() for i,k,s in zip(first[0:-1],ranges,range(len(ranges))): traj_rewards.append(list(np.repeat(np.mean(np.array(rewards_snapshot[col_name_s][s][1:-1].split(),dtype = np.float)),100))) for j in range(np.int(k)): traj_rewards.append(list(np.repeat(np.mean(np.array(rewards_subiter[col_name_si][i+j][1:-1].split(),dtype = np.float)),10))) # traj_rewards.append(list(rewards_subiter[col_name_si][i+j][1:-1].split())) if(len(ranges)<len(rewards_snapshot[col_name_s][rewards_snapshot[col_name_s]==rewards_snapshot[col_name_s]])): traj_rewards.append(list(rewards_snapshot[col_name_s][np.int(s+1)][1:-1].split())) traj_rewards=flatten(traj_rewards) avg_traj_rewards.append(traj_rewards) lenghts=list() for i in avg_traj_rewards: lenghts.append(len(i)) min_len=min(lenghts) temp=list() for i in avg_traj_rewards: temp.append(i[:min_len]) avg_traj_rewards=temp avg_traj_rewards=np.asarray(np.mean(np.matrix(avg_traj_rewards,dtype=np.float64),axis=0)).flatten() plt.plot(avg_traj_rewards) plt.legend(["Average Reward SGD","Average Reward SVRG"],loc="lower right") plt.savefig("per_tra_comparison_mean.jpg", figsize=(32, 24), dpi=160) plt.show() #per update comparison reward=list() for col in gpomdp_rewards: x=gpomdp_rewards[col][gpomdp_rewards[col]==gpomdp_rewards[col]] rew=list() for i in x: rew.append(np.mean(np.array(i[1:-1].split(),dtype=np.float64))) reward.append(rew) reward=np.asarray(np.mean(np.matrix(reward,dtype=np.float64),axis=0)).flatten() plt.plot(reward) avg_traj_rewards=list() for col_name_s,col_name_si,col_name_nsi in zip(rewards_snapshot,rewards_subiter,n_sub_iter): first = np.insert(np.array(np.cumsum(n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])])),0,0) #np.cumsum(n_sub_iter["nSubIter0"][~np.isnan(n_sub_iter["nSubIter0"])]) ranges = n_sub_iter[col_name_nsi][~np.isnan(n_sub_iter[col_name_nsi])] traj_rewards = list() for i,k,s in zip(first[0:-1],ranges,range(len(ranges))): traj_rewards.append(np.mean(np.asarray(rewards_snapshot[col_name_s][s][1:-1].split(),dtype=np.float64))) for j in range(np.int(k)): traj_rewards.append(np.mean(np.asarray(rewards_subiter[col_name_si][i+j][1:-1].split(),dtype=np.float64))) if(len(ranges)<len(rewards_snapshot[col_name_s][rewards_snapshot[col_name_s]==rewards_snapshot[col_name_s]])): traj_rewards.append(np.mean(np.asarray(rewards_snapshot[col_name_s][np.int(s+1)][1:-1].split(),dtype=np.float64))) avg_traj_rewards.append(traj_rewards) lenghts=list() for i in avg_traj_rewards: lenghts.append(len(i)) min_len=min(lenghts) temp=list() for i in avg_traj_rewards: temp.append(i[:min_len]) avg_traj_rewards=temp avg_traj_rewards=np.asarray(np.mean(np.matrix(avg_traj_rewards,dtype=np.float64),axis=0)).flatten() plt.plot(avg_traj_rewards) plt.legend(["Average Reward SGD","Average Reward SVRG"],loc="lower right") plt.savefig("per_update_analisis.jpg", figsize=(32, 24), dpi=160) plt.show() # variance sgd analysis variance_sgd_l=list() for col in variance_sgd: variance_sgd_l.append(variance_sgd[col][variance_sgd[col]==variance_sgd[col]]) lenghts=list() for i in variance_sgd_l: lenghts.append(len(i)) min_len=min(lenghts) variance_sgd=list() for i in variance_sgd_l: variance_sgd.append(i[:min_len]) variance_sgd=np.asarray(np.mean(np.matrix(variance_sgd,dtype=np.float64),axis=0)).flatten() plt.plot(variance_sgd) #variance svrg analysis variance_svrg_l=list() for col in variance_svrg: variance_svrg_l.append(variance_svrg[col][variance_svrg[col]==variance_svrg[col]]) lenghts=list() for i in variance_svrg_l: lenghts.append(len(i)) min_len=min(lenghts) variance_svrg=list() for i in variance_svrg_l: variance_svrg.append(i[:min_len]) variance_svrg=np.asarray(np.mean(np.matrix(variance_svrg,dtype=np.float64),axis=0)).flatten() plt.plot(variance_svrg) legend=["SGD Variance","SVRG Variance"] plt.legend(legend,loc="upper left") plt.savefig("var_svrg_analisis.jpg", figsize=(32, 24), dpi=160) plt.show() #sub iterations analysis sub_iter_l=list() for col in n_sub_iter: sub_iter_l.append(n_sub_iter[col][n_sub_iter[col]==n_sub_iter[col]]) lenghts=list() for i in sub_iter_l: lenghts.append(len(i)) min_len=min(lenghts) n_sub_iter=list() for i in sub_iter_l: n_sub_iter.append(i[:min_len]) n_sub_iter=np.asarray(np.mean(np.matrix(n_sub_iter,dtype=np.float64),axis=0)).flatten() plt.plot(n_sub_iter) plt.legend(["Sub Iterations Performed"],loc="upper right") plt.savefig("sub_iter_analisis.jpg", figsize=(32, 24), dpi=160) plt.show() #importance weights analysis i_w_list=list() for col in importance_weights: i_w_list.append(importance_weights[col][importance_weights[col]==importance_weights[col]]) lenghts=list() for i in i_w_list: lenghts.append(len(i)) min_len=min(lenghts) importance_weights=list() for i in i_w_list: importance_weights.append(i[:min_len]) importance_weights=np.asarray(np.mean(np.matrix(importance_weights,dtype=np.float64),axis=0)).flatten() plt.plot(importance_weights) plt.legend(["Average Importance Weights"],loc="upper right") plt.savefig("imp_we_analisis.jpg", figsize=(32, 24), dpi=160) plt.show() #per trajectory analysis GPOMDP reward=list() for col in gpomdp_rewards: x=gpomdp_rewards[col][gpomdp_rewards[col]==gpomdp_rewards[col]] rew=list() for i in x: rew.append(list(i[1:-1].split())) reward.append(flatten(rew[0:500])+flatten(rew[500:])) reward=np.asarray(np.mean(np.matrix(reward,dtype=np.float64),axis=0)).flatten() plt.plot(reward) plt.legend(["Average Reward GPOMDP"],loc="lower right") plt.savefig("per_tra_analisis_GPOMDP.jpg", figsize=(32, 24), dpi=160) plt.show() #per update analysis GPOMDP reward=list() for col in gpomdp_rewards: x=gpomdp_rewards[col][gpomdp_rewards[col]==gpomdp_rewards[col]] rew=list() for i in x: rew.append(np.mean(np.array(i[1:-1].split(),dtype=np.float64))) reward.append(rew) reward=np.asarray(np.mean(np.matrix(reward,dtype=np.float64),axis=0)).flatten() plt.plot(reward) plt.legend(["Average Reward GPOMDP"],loc="lower right") plt.savefig("per_update_GPOMDP.jpg", figsize=(32, 24), dpi=160) plt.show()
41.673469
181
0.755713
2,174
12,252
4.012879
0.056118
0.090784
0.042182
0.063044
0.865658
0.854081
0.825653
0.795507
0.777854
0.748051
0
0.022124
0.074029
12,252
293
182
41.8157
0.746849
0.073539
0
0.777328
0
0
0.068667
0.031244
0
0
0
0
0
1
0.004049
false
0
0.044534
0.004049
0.048583
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
7c460d44d5d6ebd3763b420ed8295c2cbe374102
14,258
py
Python
compiler/tests/test_controllers.py
cul-it/arxiv-compiler
b4aaca17a08a752d8b5c12224edabd011a8920f7
[ "MIT" ]
5
2019-05-26T22:47:35.000Z
2021-11-05T12:30:07.000Z
compiler/tests/test_controllers.py
arXiv/arxiv-compiler
b4aaca17a08a752d8b5c12224edabd011a8920f7
[ "MIT" ]
16
2019-02-12T23:25:04.000Z
2021-04-30T15:04:48.000Z
compiler/tests/test_controllers.py
cul-it/arxiv-compiler
b4aaca17a08a752d8b5c12224edabd011a8920f7
[ "MIT" ]
3
2019-01-10T22:01:50.000Z
2020-12-06T16:29:51.000Z
"""Tests for :mod:`compiler.controllers`.""" from unittest import TestCase, mock import io from http import HTTPStatus as status from flask import Flask from werkzeug.datastructures import MultiDict from werkzeug.exceptions import NotFound, BadRequest from ..domain import Task, Product, Format, Status from .. import controllers, compiler from ..services import store, filemanager def mock_url_for(endpoint, **kwargs): """Simple mock for :func:`flask.url_for`.""" params = '/'.join(map(str, kwargs.values())) return f'http://{endpoint}/{params}' def raise_store_does_not_exist(*args, **kwargs): raise store.DoesNotExist('Nope!') def raise_no_such_task(*args, **kwargs): raise compiler.NoSuchTask('Nope!') class TestRequestCompilation(TestCase): """Tests for :func:`controllers.compile`.""" def setUp(self): """Create an app.""" self.app = Flask(__name__) filemanager.FileManager.init_app(self.app) def test_request_missing_parameter(self): """Request for a new compilation with missing parameter.""" with self.assertRaises(BadRequest): controllers.compile( MultiDict({'checksum': 'as12345'}), 'footoken', mock.MagicMock() ) with self.assertRaises(BadRequest): controllers.compile( MultiDict({'source_id': '1234'}), 'footoken', mock.MagicMock() ) def test_bad_checksum(self): """Request for a new compilation with a bad checksum value.""" request_params = MultiDict({ 'source_id': '1234', 'checksum': 'as12345!@#$', 'output_format': 'pdf' }) with self.assertRaises(BadRequest): controllers.compile(request_params, 'footoken', mock.MagicMock()) def test_bad_source_id(self): """Request for a new compilation with a bad source_id value.""" request_params = MultiDict({ 'source_id': '1234!@#$', 'checksum': 'as12345=', 'output_format': 'pdf' }) with self.assertRaises(BadRequest): controllers.compile(request_params, 'footoken', mock.MagicMock()) def test_bad_format(self): """Request for a new compilation with a bad output_format value.""" request_params = MultiDict({ 'source_id': '1234', 'checksum': 'as12345=', 'output_format': 'fdp' }) with self.assertRaises(BadRequest): controllers.compile(request_params, 'footoken', mock.MagicMock()) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') @mock.patch(f'{controllers.__name__}.Store') @mock.patch(f'{controllers.__name__}.filemanager.FileManager') def test_compile_de_novo(self, mock_fm, mock_store, mock_compiler): """Request for a new compilation.""" mock_fm.current_session.return_value.owner.return_value = None mock_compiler.NoSuchTask = compiler.NoSuchTask mock_compiler.get_task.side_effect = compiler.NoSuchTask task_id = '123::asdf12345zxcv::pdf' token = 'footoken' mock_compiler.start_compilation.return_value = task_id request_data = MultiDict({ 'source_id': '1234', 'checksum': 'asdf12345zxcv', 'output_format': 'pdf' }) with self.app.app_context(): response_data = controllers.compile( request_data, token, mock.MagicMock() ) data, code, headers = response_data self.assertEqual(code, status.ACCEPTED) self.assertIn('Location', headers) self.assertIn(str(request_data['source_id']), headers['Location']) self.assertIn(request_data['checksum'], headers['Location']) self.assertIn(request_data['output_format'], headers['Location']) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') @mock.patch(f'{controllers.__name__}.Store') def test_compile_exists(self, mock_store, mock_compiler): """Request for a compilation that already exists.""" task_id = '123::asdf12345zxcv::pdf' source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' token = "footoken" mock_compiler.get_task.return_value \ = Task(source_id=source_id, output_format=Format.PDF, status=Status.COMPLETED, task_id=task_id, checksum=checksum) request_data = MultiDict({'source_id': source_id, 'checksum': checksum, 'output_format': output_format}) mock_session = mock.MagicMock() response_data = controllers.compile(request_data, token, mock_session) data, code, headers = response_data self.assertEqual(code, status.SEE_OTHER) self.assertIn('Location', headers) self.assertIn(str(request_data['source_id']), headers['Location']) self.assertIn(request_data['checksum'], headers['Location']) self.assertIn(request_data['output_format'], headers['Location']) class TestGetTask(TestCase): """Tests for :func:`controllers.get_status`.""" def test_bad_checksum(self): """Request for status with a bad checksum value.""" with self.assertRaises(BadRequest): controllers.get_status('1234', 'as12345!@#$', 'pdf') def test_bad_source_id(self): """Request for status with a bad source_id value.""" with self.assertRaises(BadRequest): controllers.get_status('1234!@#$', 'as12345=', 'pdf') def test_bad_format(self): """Request for status with a bad output_format value.""" with self.assertRaises(BadRequest): controllers.get_status('1234', 'as12345=', 'fdp') @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') def test_get_info_completed(self, mock_compiler): """Request for a completed compilation.""" task_id = '123::asdf12345zxcv::pdf' source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' mock_compiler.get_task.return_value \ = Task(source_id=source_id, output_format=Format.PDF, status=Status.COMPLETED, task_id=task_id, checksum=checksum) response_data = controllers.get_status(source_id, checksum, output_format) data, code, headers = response_data self.assertEqual(code, status.OK) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') def test_get_info_in_progress(self, mock_compiler): """Request for a compilation in progress.""" task_id = 'task1234' source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' mock_compiler.get_task.return_value \ = Task(source_id=source_id, output_format=Format.PDF, status=Status.IN_PROGRESS, task_id=task_id, checksum=checksum) response_data = controllers.get_status(source_id, checksum, output_format) data, code, headers = response_data self.assertEqual(code, status.OK) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') def test_get_info_nonexistant(self, mock_compiler): """Request for a nonexistant compilation.""" mock_compiler.NoSuchTask = compiler.NoSuchTask source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' mock_compiler.get_task.side_effect = compiler.NoSuchTask with self.assertRaises(NotFound): controllers.get_status(source_id, checksum, output_format) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') def test_get_status_completed(self, mock_compiler): """Request for a completed compilation.""" task_id = 'task1234' source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' mock_compiler.get_task.return_value \ = Task(source_id=source_id, output_format=Format.PDF, status=Status.COMPLETED, task_id=task_id, checksum=checksum) response_data = controllers.get_status(source_id, checksum, output_format) data, code, headers = response_data self.assertEqual(code, status.OK) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') def test_get_status_in_progress(self, mock_compiler): """Request for a completed compilation.""" task_id = 'task1234' source_id = '1234' checksum = 'asdf12345zxcv' output_format = Format.PDF mock_compiler.get_task.return_value \ = Task(source_id=source_id, output_format=Format.PDF, status=Status.IN_PROGRESS, task_id=task_id, checksum=checksum) response_data = controllers.get_status(source_id, checksum, output_format.value) data, code, headers = response_data self.assertEqual(code, status.OK) class TestGetProduct(TestCase): """Tests for :func:`controllers.get_product`.""" def test_bad_checksum(self): """Request with a bad checksum value.""" with self.assertRaises(BadRequest): controllers.get_product('1234', 'as12345!@#$', 'pdf') def test_bad_source_id(self): """Request with a bad source_id value.""" with self.assertRaises(BadRequest): controllers.get_product('1234!@#$', 'as12345=', 'pdf') def test_bad_format(self): """Request with a bad output_format value.""" with self.assertRaises(BadRequest): controllers.get_product('1234', 'as12345=', 'fdp') @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler', mock.MagicMock()) @mock.patch(f'{controllers.__name__}.Store') def test_get_product_completed(self, mock_store): """Request for a completed compilation product.""" task_id = 'task1234' source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' product_checksum = 'thechecksumoftheproduct' mock_store.current_session.return_value.retrieve.return_value \ = Product(stream=io.BytesIO(b'foocontent'), checksum=product_checksum) response_data = controllers.get_product( source_id, checksum, output_format ) data, code, headers = response_data self.assertEqual(code, status.OK) self.assertEqual(headers['ETag'], product_checksum) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') @mock.patch(f'{controllers.__name__}.Store') def test_get_product_nonexistant(self, mock_store, mock_compiler): """Request for a nonexistant compilation product.""" mock_compiler.NoSuchTask = compiler.NoSuchTask source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' mock_compiler.get_task.side_effect = compiler.NoSuchTask with self.assertRaises(NotFound): controllers.get_product(source_id, checksum, output_format) class TestGetCompilationLog(TestCase): """Tests for :func:`controllers.get_log`.""" def test_bad_checksum(self): """Request with a bad checksum value.""" with self.assertRaises(BadRequest): controllers.get_log('1234', 'as12345!@#$', 'pdf') def test_bad_source_id(self): """Request with a bad source_id value.""" with self.assertRaises(BadRequest): controllers.get_log('1234!@#$', 'as12345=', 'pdf') def test_bad_format(self): """Request with a bad output_format value.""" with self.assertRaises(BadRequest): controllers.get_log('1234', 'as12345=', 'fdp') @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler', mock.MagicMock()) @mock.patch(f'{controllers.__name__}.Store') def test_get_log_completed(self, mock_store): """Request log for a completed compilation.""" task_id = 'task1234' source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' product_checksum = 'thechecksumoftheproduct' mock_store.current_session.return_value.retrieve_log.return_value \ = Product(stream=io.BytesIO(b'foolog'), checksum=product_checksum) response_data = controllers.get_log( source_id, checksum, output_format ) data, code, headers = response_data self.assertEqual(code, status.OK) self.assertEqual(headers['ETag'], product_checksum) @mock.patch(f'{controllers.__name__}.url_for', mock_url_for) @mock.patch(f'{controllers.__name__}.compiler') @mock.patch(f'{controllers.__name__}.Store') def test_get_log_nonexistant(self, mock_store, mock_compiler): """Request for a nonexistant compilation log.""" mock_compiler.NoSuchTask = compiler.NoSuchTask source_id = '1234' checksum = 'asdf12345zxcv' output_format = 'pdf' mock_compiler.get_task.side_effect = compiler.NoSuchTask with self.assertRaises(NotFound): controllers.get_log(source_id, checksum, output_format)
39.715877
79
0.626806
1,535
14,258
5.526384
0.085342
0.043381
0.034186
0.071791
0.862784
0.82518
0.805258
0.753507
0.703171
0.675822
0
0.024554
0.257329
14,258
358
80
39.826816
0.776561
0.090826
0
0.707143
0
0
0.147107
0.078082
0
0
0
0
0.125
1
0.1
false
0
0.032143
0
0.15
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
7cd72d91376faf519f654b4192ccc06045fa366f
2,818
py
Python
tests/commands/test_apply.py
blakeNaccarato/pdpcli
ad3ca6c2eccb552bfb4450b5cce02b30c5087282
[ "MIT" ]
15
2021-02-24T18:22:45.000Z
2022-01-06T22:08:46.000Z
tests/commands/test_apply.py
blakeNaccarato/pdpcli
ad3ca6c2eccb552bfb4450b5cce02b30c5087282
[ "MIT" ]
1
2022-01-07T08:13:07.000Z
2022-01-07T08:13:07.000Z
tests/commands/test_apply.py
blakeNaccarato/pdpcli
ad3ca6c2eccb552bfb4450b5cce02b30c5087282
[ "MIT" ]
1
2022-01-06T22:08:44.000Z
2022-01-06T22:08:44.000Z
import tempfile from pathlib import Path import pandas from pdpcli.commands import create_parser from pdpcli.commands.apply import ApplyCommand def test_apply_from_config(): fixture_path = Path("tests/fixture") config_path = fixture_path / "configs" / "config.yml" input_file = fixture_path / "data" / "data.csv" with tempfile.TemporaryDirectory() as tempdir: tempdir = Path(tempdir) output_file = tempdir / "output.csv" parser = create_parser() args = parser.parse_args( [ "apply", str(config_path), str(input_file), "-o", str(output_file), ] ) args.func(args) assert output_file.is_file() input_df = pandas.read_csv(input_file) output_df = pandas.read_csv(output_file) assert len(input_df) == len(output_df) assert "name" not in output_df.columns assert "job" not in output_df.columns def test_apply_from_pickled_model(): fixture_path = Path("tests/fixture") pipeline_path = fixture_path / "data" / "pipeline.pkl" input_file = fixture_path / "data" / "data.csv" with tempfile.TemporaryDirectory() as tempdir: tempdir = Path(tempdir) output_file = tempdir / "output.csv" parser = create_parser() args = parser.parse_args( [ "apply", str(pipeline_path), str(input_file), "-o", str(output_file), ] ) args.func(args) assert output_file.is_file() input_df = pandas.read_csv(input_file) output_df = pandas.read_csv(output_file) assert len(input_df) == len(output_df) assert "name" not in output_df.columns assert "job" not in output_df.columns def test_apply_with_cli_args(): fixture_path = Path("tests/fixture") config_path = fixture_path / "configs" / "config.yml" input_file = fixture_path / "data" / "data.csv" with tempfile.TemporaryDirectory() as tempdir: tempdir = Path(tempdir) output_file = tempdir / "output.csv" parser = create_parser() args = parser.parse_args( [ "apply", str(config_path), str(input_file), "pipeline.stages.drop_columns.columns=[name]", "-o", str(output_file), ] ) args.func(args) assert output_file.is_file() input_df = pandas.read_csv(input_file) output_df = pandas.read_csv(output_file) assert len(input_df) == len(output_df) assert "name" not in output_df.columns assert "job" in output_df.columns
26.838095
62
0.579134
321
2,818
4.82866
0.155763
0.077419
0.046452
0.058065
0.824516
0.807097
0.807097
0.807097
0.807097
0.807097
0
0
0.322924
2,818
104
63
27.096154
0.812369
0
0
0.730769
0
0
0.085167
0.015259
0
0
0
0
0.153846
1
0.038462
false
0
0.064103
0
0.102564
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
7ceb6269b5529d16f78279cd2e7706aa9febb4af
99
py
Python
localhttps/cert/__init__.py
Tarik02/localhttps
5c0e375b379a9ed2ec6129b7fd7930a5f2404c0e
[ "MIT" ]
2
2022-01-20T15:35:37.000Z
2022-02-04T09:05:20.000Z
localhttps/cert/__init__.py
Tarik02/localhttps
5c0e375b379a9ed2ec6129b7fd7930a5f2404c0e
[ "MIT" ]
null
null
null
localhttps/cert/__init__.py
Tarik02/localhttps
5c0e375b379a9ed2ec6129b7fd7930a5f2404c0e
[ "MIT" ]
null
null
null
from localhttps.cert.ca import CertificationAuthority from localhttps.cert.cert import Certificate
33
53
0.878788
12
99
7.25
0.583333
0.321839
0.413793
0
0
0
0
0
0
0
0
0
0.080808
99
2
54
49.5
0.956044
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
6b1048d3c41636b5f688479aa771562736c44d03
7,554
py
Python
cvap/data/image/transform.py
zhaoyanpeng/lvamodel
93b06ff43ae6a76323cecea4c10cf457945c2711
[ "MIT" ]
6
2021-12-20T06:01:56.000Z
2022-03-25T06:44:50.000Z
cvap/data/image/transform.py
zhaoyanpeng/vipant
93b06ff43ae6a76323cecea4c10cf457945c2711
[ "MIT" ]
null
null
null
cvap/data/image/transform.py
zhaoyanpeng/vipant
93b06ff43ae6a76323cecea4c10cf457945c2711
[ "MIT" ]
null
null
null
import random import torch import numpy as np import torchvision import torchvision.transforms as transforms from PIL import Image, ImageOps, ImageFilter from torchvision.transforms import ( InterpolationMode, Compose, Resize, CenterCrop, ToTensor, Normalize ) def make_clip_image_transform(n_px): return Compose([ Resize(n_px, interpolation=InterpolationMode.BICUBIC), CenterCrop(n_px), lambda image: image.convert("RGB"), ToTensor(), Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)), ]) class GaussianBlur(object): def __init__(self, p): self.p = p def __call__(self, image): if random.random() < self.p: sigma = random.random() * 1.9 + 0.1 return image.filter(ImageFilter.GaussianBlur(sigma)) else: return image class Solarization(object): def __init__(self, p): self.p = p def __call__(self, image): if random.random() < self.p: return ImageOps.solarize(image) else: return image class SharedImageTransform: def __init__(self, n_px): self.transform = transforms.Compose([ transforms.RandomResizedCrop( n_px, interpolation=InterpolationMode.BICUBIC ), transforms.RandomHorizontalFlip(p=0.5), transforms.RandomApply([ transforms.ColorJitter( brightness=0.4, contrast=0.4, saturation=0.2, hue=0.1 ) ], p=0.8), transforms.RandomGrayscale(p=0.2), ]) def __call__(self, x): return self.transform(x) class SecretImageTransform: def __init__(self, p_g, p_s): self.transform = transforms.Compose([ GaussianBlur(p=p_g), Solarization(p=p_s), transforms.ToTensor(), transforms.Normalize( #mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711] ) ]) def __call__(self, x): return self.transform(x) class AuthenticCLIPImageTransform: def __init__(self, n_px): self.transform = transforms.Compose([ transforms.Resize(n_px, interpolation=InterpolationMode.BICUBIC), transforms.CenterCrop(n_px), transforms.ToTensor(), transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)), ]) self.transform_prime = transforms.Compose([ transforms.Resize(n_px, interpolation=InterpolationMode.BICUBIC), transforms.CenterCrop(n_px), transforms.ToTensor(), transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)), ]) self.transform_eval = self.transform_prime def __call__(self, x, both, train): x = x.convert("RGB") if not train: return self.transform_eval(x), np.array([[[1]]]) else: y1 = self.transform_prime(x) y2 = self.transform(x) if both else np.array([[[1]]]) return y1, y2 class CLIPImageTransform: def __init__(self, n_px): self.transform = transforms.Compose([ transforms.Resize(n_px, interpolation=InterpolationMode.BICUBIC), transforms.CenterCrop(n_px), transforms.RandomHorizontalFlip(p=0.5), transforms.RandomApply([ transforms.ColorJitter( brightness=0.4, contrast=0.4, saturation=0.2, hue=0.1 ) ], p=0.8), transforms.RandomGrayscale(p=0.2), GaussianBlur(p=1.0), Solarization(p=0.0), transforms.ToTensor(), transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)), ]) self.transform_prime = transforms.Compose([ transforms.Resize(n_px, interpolation=InterpolationMode.BICUBIC), transforms.CenterCrop(n_px), transforms.RandomHorizontalFlip(p=0.5), transforms.RandomApply([ transforms.ColorJitter( brightness=0.4, contrast=0.4, saturation=0.2, hue=0.1 ) ], p=0.8), transforms.RandomGrayscale(p=0.2), GaussianBlur(p=0.1), Solarization(p=0.2), transforms.ToTensor(), transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)), ]) self.transform_eval = transforms.Compose([ transforms.Resize(n_px, interpolation=InterpolationMode.BICUBIC), transforms.CenterCrop(n_px), transforms.ToTensor(), transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)), ]) def __call__(self, x, both, train): x = x.convert("RGB") if not train: return self.transform_eval(x), np.array([[[1]]]) else: y1 = self.transform_prime(x) y2 = self.transform(x) if both else np.array([[[1]]]) return y1, y2 class BarlowImageTransform: def __init__(self, n_px): self.transform = transforms.Compose([ transforms.RandomResizedCrop( n_px, interpolation=InterpolationMode.BICUBIC ), transforms.RandomHorizontalFlip(p=0.5), transforms.RandomApply([ transforms.ColorJitter( brightness=0.4, contrast=0.4, saturation=0.2, hue=0.1 ) ], p=0.8), transforms.RandomGrayscale(p=0.2), GaussianBlur(p=1.0), Solarization(p=0.0), transforms.ToTensor(), transforms.Normalize( #mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711] ) ]) self.transform_prime = transforms.Compose([ transforms.RandomResizedCrop( n_px, interpolation=InterpolationMode.BICUBIC ), transforms.RandomHorizontalFlip(p=0.5), transforms.RandomApply([ transforms.ColorJitter( brightness=0.4, contrast=0.4, saturation=0.2, hue=0.1 ) ], p=0.8), transforms.RandomGrayscale(p=0.2), GaussianBlur(p=0.1), Solarization(p=0.2), transforms.ToTensor(), transforms.Normalize( #mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711] ) ]) self.transform_eval = transforms.Compose([ transforms.Resize(n_px, interpolation=InterpolationMode.BICUBIC), transforms.CenterCrop(n_px), transforms.ToTensor(), transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711)), ]) def __call__(self, x, both, train): x = x.convert("RGB") if not train: return self.transform_eval(x), np.array([[[1]]]) else: y1 = self.transform_prime(x) y2 = self.transform(x) if both else np.array([[[1]]]) return y1, y2
37.58209
108
0.571485
817
7,554
5.164015
0.110159
0.07087
0.037924
0.078218
0.841906
0.841906
0.831003
0.831003
0.831003
0.816307
0
0.135212
0.304872
7,554
200
109
37.77
0.668254
0.021048
0
0.79235
0
0
0.001623
0
0
0
0
0
0
1
0.081967
false
0
0.038251
0.016393
0.229508
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
6b1dbf7a6f8c1e8615c1c292c164b00454cbd4e1
7,809
py
Python
SpaceHabitRPG/Tests/Frontend/LoginPageNewUserTests.py
joelliusp/SpaceHabit
5656ef4d9c57f3e58d0ed756a3aa754c8a7dd6a5
[ "MIT" ]
null
null
null
SpaceHabitRPG/Tests/Frontend/LoginPageNewUserTests.py
joelliusp/SpaceHabit
5656ef4d9c57f3e58d0ed756a3aa754c8a7dd6a5
[ "MIT" ]
13
2016-07-19T04:13:20.000Z
2016-08-17T06:06:47.000Z
SpaceHabitRPG/Tests/Frontend/LoginPageNewUserTests.py
joelliusp/SpaceHabit
5656ef4d9c57f3e58d0ed756a3aa754c8a7dd6a5
[ "MIT" ]
null
null
null
from SpaceUnitTest import SpaceUnitTest from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import SeleniumHelper import SpaceHabitServer import threading import cherrypy import time import requests import DatabaseLayer import DatabaseTestSetupCleanup as dbHelp class Test_LoginPageNewUserTests(SpaceUnitTest): @classmethod def setUpClass(cls): DatabaseLayer.isUnitTestMode = True dbHelp.clean_up() cls.server = SpaceHabitServer.HabitServer() cls.server.start() ticks = 0 while cherrypy.engine.state != cherrypy.engine.states.STARTED: time.sleep(1) ticks += 1 if ticks >= 10: raise TimeoutError("ran out of time") return super().setUpClass() @classmethod def tearDownClass(cls): cls.server.stop() ticks = 0 while cherrypy.engine.state != cherrypy.engine.states.STOPPED: time.sleep(1) ticks += 1 if ticks >= 10: raise TimeoutError("ran out of time") return super().tearDownClass() def setUp(self): self.driver = SeleniumHelper.get_customized_firefox_driver() self.driver.implicitly_wait(5) self.driver.get("http://127.0.0.1:8080") self.open_new_user_box() self.input1 = self.driver.find_element_by_xpath("//input[@name='email_input_1']") self.input2 = self.driver.find_element_by_xpath("//input[@name='email_input_2']") self.pw1 = self.driver.find_element_by_xpath("//input[@name='pw_input_1']") self.pw2 = self.driver.find_element_by_xpath("//input[@name='pw_input_2']") self.modal = self.driver.find_element_by_id("new_user_box") return super().setUp() def tearDown(self): dbHelp.clean_up() self.driver.quit() return super().tearDown() def open_new_user_box(self): clickElem = self.driver.find_element_by_id("create_account") clickElem.click() def test_bad_email(self): self.input1.send_keys("aaaa") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertFalse(elem.is_displayed()) def test_taken_email(self): dbHelp.create_login_using_test_values() self.input1.send_keys("a@b.c") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertFalse(elem.is_displayed()) def test_good_email(self): self.input1.send_keys("a@b.c") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertFalse(elem.is_displayed()) def test_mismatched_email(self): self.input1.send_keys("a@b.c") self.input2.send_keys("b@c.d") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertFalse(elem.is_displayed()) def test_bad_pw(self): self.pw1.click() self.pw1.send_keys("123") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertFalse(elem.is_displayed()) def test_mismatch_pw(self): self.pw1.send_keys("123456") self.pw2.send_keys("abcded") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertTrue(elem.is_displayed()) def test_bad_then_good_email(self): self.input1.send_keys("aaaa") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertFalse(elem.is_displayed()) self.input1.send_keys("a@b.c") self.modal.click() elem = self.driver.find_element_by_id("bad_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("taken_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_email") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("good_email") self.assertTrue(elem.is_displayed()) elem = self.driver.find_element_by_id("short_pw") self.assertFalse(elem.is_displayed()) elem = self.driver.find_element_by_id("mismatched_pw") self.assertFalse(elem.is_displayed()) if __name__ == '__main__': unittest.main()
31.111554
86
0.703163
1,051
7,809
4.919125
0.114177
0.112186
0.146228
0.219342
0.801741
0.794778
0.777756
0.776209
0.776209
0.756867
0
0.007571
0.171213
7,809
250
87
31.236
0.791255
0
0
0.696629
0
0
0.103585
0.015081
0
0
0
0
0.269663
1
0.067416
false
0
0.061798
0
0.157303
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
862bbedca87bc293629b26df6858eae3946af45f
8,258
py
Python
evaluation/k_thinning/hyperparameters.py
varikakasandor/dissertation-balls-into-bins
fba69dd5ffd0b4984795c9a5ec119bf8c6f47d9e
[ "Apache-2.0" ]
null
null
null
evaluation/k_thinning/hyperparameters.py
varikakasandor/dissertation-balls-into-bins
fba69dd5ffd0b4984795c9a5ec119bf8c6f47d9e
[ "Apache-2.0" ]
null
null
null
evaluation/k_thinning/hyperparameters.py
varikakasandor/dissertation-balls-into-bins
fba69dd5ffd0b4984795c9a5ec119bf8c6f47d9e
[ "Apache-2.0" ]
null
null
null
import torch.optim from k_thinning.full_knowledge.RL.DQN.constants import * def get_dqn_hyperparameters(n, m, k): if n == 5 and m == 25 and k == 2: return { "batch_size": 32, "eps_start": 0.21, "eps_end": 0.035, "eps_decay": 3000, "num_episodes": 1000, # TODO: set back to 1000 "pre_train_episodes": 60, # TODO "target_update_freq": 18, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": True, "print_progress": True, "optimise_freq": 10, "max_threshold": 8, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.MSELoss(), "lr": 0.004, "nn_hidden_size": 128, "nn_rnn_num_layers": 2, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.SGD, "potential_fun": STD_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } elif n == 5 and m == 25 and k == 3: return { "batch_size": 32, "eps_start": 0.21, "eps_end": 0.035, "eps_decay": 3000, "num_episodes": 1000, # TODO: set back to 1000 "pre_train_episodes": 60, # TODO "target_update_freq": 18, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": False, "print_progress": True, "optimise_freq": 10, "max_threshold": 7, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.MSELoss(), "lr": 0.004, "nn_hidden_size": 128, "nn_rnn_num_layers": 2, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.SGD, "potential_fun": STD_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } elif n == 5 and m == 25 and k == 5: return { "batch_size": 32, "eps_start": 0.15, "eps_end": 0.06, "eps_decay": 3000, "num_episodes": 1000, # TODO: set back to 1000 "pre_train_episodes": 20, # TODO "target_update_freq": 20, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": False, "print_progress": True, "optimise_freq": 10, "max_threshold": 6, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.SmoothL1Loss(), "lr": 0.005, "nn_hidden_size": 128, "nn_rnn_num_layers": 2, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.Adam, "potential_fun": EXPONENTIAL_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } elif n == 5 and m == 25 and k == 10: return { "batch_size": 32, "eps_start": 0.26, "eps_end": 0.09, "eps_decay": 2500, "num_episodes": 1000, # TODO: set back to 1000 "pre_train_episodes": 20, # TODO "target_update_freq": 18, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": False, "print_progress": True, "optimise_freq": 30, "max_threshold": 6, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.SmoothL1Loss(), "lr": 0.005, "nn_hidden_size": 128, "nn_rnn_num_layers": 2, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.Adam, "potential_fun": STD_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } elif n == 20 and m == 50 and k == 2: return { "batch_size": 32, "eps_start": 0.4, "eps_end": 0.055, "eps_decay": 3200, "num_episodes": 1000, # TODO "pre_train_episodes": 40, # TODO "target_update_freq": 28, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": True, "print_progress": True, "optimise_freq": 30, "max_threshold": 4, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.SmoothL1Loss(), "lr": 0.005, "nn_hidden_size": 128, "nn_rnn_num_layers": 2, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.Adam, "potential_fun": EXPONENTIAL_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } elif n == 20 and m == 50 and k == 3: return { "batch_size": 32, "eps_start": 0.4, "eps_end": 0.055, "eps_decay": 3200, "num_episodes": 1000, # TODO: set back to 1000 "pre_train_episodes": 40, # TODO "target_update_freq": 28, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": False, "print_progress": True, "optimise_freq": 30, "max_threshold": 3, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.SmoothL1Loss(), "lr": 0.005, "nn_hidden_size": 128, "nn_rnn_num_layers": 2, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.Adam, "potential_fun": EXPONENTIAL_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } elif n == 20 and m == 50 and k == 5: return { "batch_size": 32, "eps_start": 0.2, "eps_end": 0.06, "eps_decay": 4300, "num_episodes": 1000, # TODO: set back to 1000 "pre_train_episodes": 40, # TODO "target_update_freq": 24, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": False, "print_progress": True, "optimise_freq": 40, "max_threshold": 3, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.SmoothL1Loss(), "lr": 0.005, "nn_hidden_size": 200, "nn_rnn_num_layers": 3, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.Adam, "potential_fun": STD_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } elif n == 20 and m == 50 and k == 10: return { "batch_size": 64, "eps_start": 0.2, "eps_end": 0.06, "eps_decay": 3000, "num_episodes": 1000, # TODO "pre_train_episodes": 10, # TODO "target_update_freq": 10, "memory_capacity": 650, "eval_runs": 10, "eval_parallel_batch_size": 64, "patience": 1000, "use_normalised": True, "print_progress": True, "optimise_freq": 15, "max_threshold": 4, "nn_model": GeneralNet, "nn_type": "general_net", "loss_function": nn.SmoothL1Loss(), "lr": 0.005, "nn_hidden_size": 128, "nn_rnn_num_layers": 2, "nn_num_lin_layers": 3, "optimizer_method": torch.optim.Adam, "potential_fun": EXPONENTIAL_POTENTIAL, "pacing_fun": EVEN_PACING_FUN } def get_threshold_hyperparameters(n, m, k): d = { "episodes": 10000, "epsilon": 0.1, "initial_q_value": 0 } return d
33.164659
59
0.488375
894
8,258
4.180089
0.135347
0.038534
0.026492
0.040674
0.932834
0.932834
0.92775
0.91437
0.910088
0.910088
0
0.083499
0.390894
8,258
248
60
33.298387
0.659443
0.022645
0
0.820513
0
0
0.322573
0.023839
0
0
0
0.004032
0
1
0.008547
false
0
0.008547
0
0.055556
0.034188
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
8642c823acca4db3ebf91ee66a8a446df6a868a9
55,071
py
Python
coverage_test_proxy.py
urbas/CoAPthon3
f6a3c25cde5371fb003a18b94a8f8e8bee5c534a
[ "MIT" ]
51
2018-01-26T16:47:38.000Z
2022-01-18T08:44:20.000Z
coverage_test_proxy.py
urbas/CoAPthon3
f6a3c25cde5371fb003a18b94a8f8e8bee5c534a
[ "MIT" ]
28
2018-02-21T12:24:21.000Z
2021-08-03T15:50:06.000Z
coverage_test_proxy.py
urbas/CoAPthon3
f6a3c25cde5371fb003a18b94a8f8e8bee5c534a
[ "MIT" ]
48
2018-01-29T08:55:53.000Z
2021-10-17T00:38:19.000Z
# -*- coding: utf-8 -*- from queue import Queue import random import socket import threading import unittest from coapclient import HelperClient from coapforwardproxy import CoAPForwardProxy from coapserver import CoAPServer from coapthon import defines from coapthon.messages.option import Option from coapthon.messages.request import Request from coapthon.messages.response import Response from coapthon.serializer import Serializer __author__ = 'Giacomo Tanganelli' __version__ = "2.0" class Tests(unittest.TestCase): def setUp(self): self.server_address = ("127.0.0.1", 5683) self.current_mid = random.randint(1, 1000) self.server_mid = random.randint(1000, 2000) self.server = CoAPServer("127.0.0.1", 5684) self.server_thread = threading.Thread(target=self.server.listen, args=(1,)) self.server_thread.start() self.proxy = CoAPForwardProxy("127.0.0.1", 5683) self.proxy_thread = threading.Thread(target=self.proxy.listen, args=(1,)) self.proxy_thread.start() self.queue = Queue() def tearDown(self): self.proxy.close() self.proxy_thread.join(timeout=25) self.proxy = None self.server.close() self.server_thread.join(timeout=25) self.server = None def _test_with_client(self, message_list): # pragma: no cover client = HelperClient(self.server_address) for message, expected in message_list: if message is not None: received_message = client.send_request(message) if expected is not None: if expected.type is not None: self.assertEqual(received_message.type, expected.type) if expected.mid is not None: self.assertEqual(received_message.mid, expected.mid) self.assertEqual(received_message.code, expected.code) if expected.source is not None: self.assertEqual(received_message.source, self.server_address) if expected.token is not None: self.assertEqual(received_message.token, expected.token) if expected.payload is not None: self.assertEqual(received_message.payload, expected.payload) if expected.options: self.assertEqual(len(received_message.options), len(expected.options)) for o in expected.options: assert isinstance(o, Option) option_value = getattr(expected, o.name.lower().replace("-", "_")) option_value_rec = getattr(received_message, o.name.lower().replace("-", "_")) self.assertEqual(option_value, option_value_rec) client.stop() def _test_with_client_observe(self, message_list): # pragma: no cover client = HelperClient(self.server_address) for message, expected in message_list: if message is not None: client.send_request(message, self.client_callback) if expected is not None: received_message = self.queue.get() if expected.type is not None: self.assertEqual(received_message.type, expected.type) if expected.mid is not None: self.assertEqual(received_message.mid, expected.mid) self.assertEqual(received_message.code, expected.code) if expected.source is not None: self.assertEqual(received_message.source, self.server_address) if expected.token is not None: self.assertEqual(received_message.token, expected.token) if expected.payload is not None: self.assertEqual(received_message.payload, expected.payload) if expected.options: self.assertEqual(len(received_message.options), len(expected.options)) for o in expected.options: assert isinstance(o, Option) option_value = getattr(expected, o.name.lower().replace("-", "_")) option_value_rec = getattr(received_message, o.name.lower().replace("-", "_")) self.assertEqual(option_value, option_value_rec) client.stop() def client_callback(self, response): print("Callback") self.queue.put(response) def _test_plugtest(self, message_list): # pragma: no cover serializer = Serializer() sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) for message, expected in message_list: if message is not None: datagram = serializer.serialize(message) sock.sendto(datagram, message.destination) if expected is not None: datagram, source = sock.recvfrom(4096) received_message = serializer.deserialize(datagram, source) print(received_message.pretty_print()) print(expected.pretty_print()) if expected.type is not None: self.assertEqual(received_message.type, expected.type) if expected.mid is not None: self.assertEqual(received_message.mid, expected.mid) self.assertEqual(received_message.code, expected.code) if expected.source is not None: self.assertEqual(received_message.source, source) if expected.token is not None: self.assertEqual(received_message.token, expected.token) if expected.payload is not None: self.assertEqual(received_message.payload, expected.payload) if expected.options is not None: self.assertEqual(received_message.options, expected.options) for o in expected.options: assert isinstance(o, Option) option_value = getattr(expected, o.name.lower().replace("-", "_")) option_value_rec = getattr(received_message, o.name.lower().replace("-", "_")) self.assertEqual(option_value, option_value_rec) sock.close() def _test_datagram(self, message_list): # pragma: no cover serializer = Serializer() sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) for message, expected in message_list: if message is not None: datagram, destination = message sock.sendto(datagram, destination) if expected is not None: datagram, source = sock.recvfrom(4096) received_message = serializer.deserialize(datagram, source) if expected.type is not None: self.assertEqual(received_message.type, expected.type) if expected.mid is not None: self.assertEqual(received_message.mid, expected.mid) self.assertEqual(received_message.code, expected.code) if expected.source is not None: self.assertEqual(received_message.source, source) if expected.token is not None: self.assertEqual(received_message.token, expected.token) if expected.payload is not None: self.assertEqual(received_message.payload, expected.payload) if expected.options is not None: self.assertEqual(received_message.options, expected.options) for o in expected.options: assert isinstance(o, Option) option_value = getattr(expected, o.name.lower().replace("-", "_")) option_value_rec = getattr(received_message, o.name.lower().replace("-", "_")) self.assertEqual(option_value, option_value_rec) sock.close() def test_get_forward(self): print("TEST_GET_FORWARD") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/basic" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "Basic Resource" exchange1 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1]) def test_separate(self): print("TEST_SEPARATE") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/separate" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["CON"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.max_age = 60 exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/separate" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "POST" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CHANGED.number expected.token = None expected.options = None exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.PUT.number req.proxy_uri = "coap://127.0.0.1:5684/separate" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "PUT" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CHANGED.number expected.token = None expected.options = None exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.DELETE.number req.proxy_uri = "coap://127.0.0.1:5684/separate" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.DELETED.number expected.token = None exchange4 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1, exchange2, exchange3, exchange4]) def test_post(self): print("TEST_POST") req = Request() req.code = defines.Codes.POST.number req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "test" req.add_if_none_match() req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res?id=1" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CREATED.number expected.token = None expected.payload = None expected.location_path = "storage/new_res" expected.location_query = "id=1" exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.if_match = ["test", "not"] expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "test" exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.PUT.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.if_match = ["not"] req.payload = "not" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.PRECONDITION_FAILED.number expected.token = None exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.if_match = ["not"] req.payload = "not" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.PRECONDITION_FAILED.number expected.token = None exchange4 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.PUT.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req._mid = self.current_mid req.destination = self.server_address req.add_if_none_match() req.payload = "not" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.PRECONDITION_FAILED.number expected.token = None exchange5 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1, exchange2, exchange3, exchange4, exchange5]) def test_post_block(self): print("TEST_POST_BLOCK") req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sollicitudin fermentum ornare. " \ "Cras accumsan tellus quis dui lacinia eleifend. Proin ultrices rutrum orci vitae luctus. " \ "Nullam malesuada pretium elit, at aliquam odio vehicula in. Etiam nec maximus elit. " \ "Etiam at erat ac ex ornare feugiat. Curabitur sed malesuada orci, id aliquet nunc. Phasellus " \ "nec leo luctus, blandit lorem sit amet, interdum metus. Duis efficitur volutpat magna, ac " \ "ultricies nibh aliquet sit amet. Etiam tempor egestas augue in hendrerit. Nunc eget augue " \ "ultricies, dignissim lacus et, vulputate dolor. Nulla eros odio, fringilla vel massa ut, " \ "facilisis cursus quam. Fusce faucibus lobortis congue. Fusce consectetur porta neque, id " \ "sollicitudin velit maximus eu. Sed pharetra leo quam, vel finibus turpis cursus ac. " \ "Aenean ac nisi massa. Cras commodo arcu nec ante tristique ullamcorper. Quisque eu hendrerit" \ " urna. Cras fringilla eros ut nunc maximus, non porta nisl mollis. Aliquam in rutrum massa." \ " Praesent tristique turpis dui, at ultri" req.block1 = (1, 1, 1024) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.REQUEST_ENTITY_INCOMPLETE.number expected.token = None expected.payload = None exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sollicitudin fermentum ornare. " \ "Cras accumsan tellus quis dui lacinia eleifend. Proin ultrices rutrum orci vitae luctus. " \ "Nullam malesuada pretium elit, at aliquam odio vehicula in. Etiam nec maximus elit. " \ "Etiam at erat ac ex ornare feugiat. Curabitur sed malesuada orci, id aliquet nunc. Phasellus " \ "nec leo luctus, blandit lorem sit amet, interdum metus. Duis efficitur volutpat magna, ac " \ "ultricies nibh aliquet sit amet. Etiam tempor egestas augue in hendrerit. Nunc eget augue " \ "ultricies, dignissim lacus et, vulputate dolor. Nulla eros odio, fringilla vel massa ut, " \ "facilisis cursus quam. Fusce faucibus lobortis congue. Fusce consectetur porta neque, id " \ "sollicitudin velit maximus eu. Sed pharetra leo quam, vel finibus turpis cursus ac. " \ "Aenean ac nisi massa. Cras commodo arcu nec ante tristique ullamcorper. Quisque eu hendrerit" \ " urna. Cras fringilla eros ut nunc maximus, non porta nisl mollis. Aliquam in rutrum massa." \ " Praesent tristique turpis dui, at ultri" req.block1 = (0, 1, 1024) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (0, 1, 1024) exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "a imperdiet nisl. Quisque a iaculis libero, id tempus lacus. Aenean convallis est non justo " \ "consectetur, a hendrerit enim consequat. In accumsan ante a egestas luctus. Etiam quis neque " \ "nec eros vestibulum faucibus. Nunc viverra ipsum lectus, vel scelerisque dui dictum a. Ut orci " \ "enim, ultrices a ultrices nec, pharetra in quam. Donec accumsan sit amet eros eget fermentum." req.block1 = (1, 1, 64) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (1, 1, 64) exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "a imperdiet nisl. Quisque a iaculis libero, id tempus lacus. Aenean convallis est non justo " \ "consectetur, a hendrerit enim consequat. In accumsan ante a egestas luctus. Etiam quis neque " \ "nec eros vestibulum faucibus. Nunc viverra ipsum lectus, vel scelerisque dui dictum a. Ut orci " \ "enim, ultrices a ultrices nec, pharetra in quam. Donec accumsan sit amet eros eget fermentum." req.block1 = (3, 1, 64) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.REQUEST_ENTITY_INCOMPLETE.number expected.token = None expected.payload = None exchange4 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "a imperdiet nisl. Quisque a iaculis libero, id tempus lacus. Aenean convallis est non justo " \ "consectetur, a hendrerit enim consequat. In accumsan ante a egestas luctus. Etiam quis neque " \ "nec eros vestibulum faucibus. Nunc viverra ipsum lectus, vel scelerisque dui dictum a. Ut orci " \ "enim, ultrices a ultrices nec, pharetra in quam. Donec accumsan sit amet eros eget fermentum." req.block1 = (2, 0, 64) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CREATED.number expected.token = None expected.payload = None expected.location_path = "storage/new_res" exchange5 = (req, expected) self.current_mid += 1 self._test_plugtest([exchange1, exchange2, exchange3, exchange4, exchange5]) def test_get_block(self): print("TEST_GET_BLOCK") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (0, 0, 512) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (0, 1, 512) expected.size2 = 2041 exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (1, 0, 256) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (1, 1, 256) expected.size2 = 2041 exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (2, 0, 128) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (2, 1, 128) expected.size2 = 2041 exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (3, 0, 64) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (3, 1, 64) expected.size2 = 2041 exchange4 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (4, 0, 32) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (4, 1, 32) expected.size2 = 2041 exchange5 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (5, 0, 16) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (5, 1, 16) expected.size2 = 2041 exchange6 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (6, 0, 1024) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (6, 0, 1024) expected.size2 = 2041 exchange7 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = None req.block2 = (7, 0, 1024) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None expected.block2 = (7, 0, 1024) expected.size2 = 2041 exchange8 = (req, expected) self.current_mid += 1 self._test_plugtest([exchange1, exchange2, exchange3, exchange4, exchange5, exchange6, exchange7, exchange8]) def test_post_block_big(self): print("TEST_POST_BLOCK_BIG") req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "Lorem ipsum dolo" req.block1 = (0, 1, 16) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (0, 1, 16) exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "r sit amet, consectetur adipisci" req.block1 = (1, 1, 32) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (1, 1, 32) exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "ng elit. Sed ut ultrices ligula. Pellentesque purus augue, cursu" req.block1 = (2, 1, 64) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (2, 1, 64) exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "s ultricies est in, vehicula congue metus. Vestibulum vel justo lacinia, porttitor quam vitae, " \ "feugiat sapien. Quisque finibus, " req.block1 = (3, 1, 128) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (3, 1, 128) exchange4 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "nisi vitae rhoncus malesuada, augue mauris dapibus tellus, sit amet venenatis libero" \ " libero sed lorem. In pharetra turpis sed eros porta mollis. Quisque dictum dolor nisl," \ " imperdiet tincidunt augue malesuada vitae. Donec non felis urna. Suspendisse at hend" req.block1 = (4, 1, 256) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (4, 1, 256) exchange5 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "rerit ex, quis aliquet ante. Vivamus ultrices dolor at elit tincidunt, eget fringilla " \ "ligula vestibulum. In molestie sagittis nibh, ut efficitur tellus faucibus non. Maecenas " \ "posuere elementum faucibus. Morbi nisi diam, molestie non feugiat et, elementum eget magna." \ " Donec vel sem facilisis quam viverra ultrices nec eu lacus. Sed molestie nisi id ultrices " \ "interdum. Curabitur pharetra sed tellus in dignissim. Duis placerat aliquam metus, volutpat " \ "elementum augue aliquam a. Nunc sed dolor at orci maximus portt" req.block1 = (5, 1, 512) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTINUE.number expected.token = None expected.payload = None expected.block1 = (5, 1, 512) exchange6 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "itor ac sit amet eros. Mauris et nisi in tortor pharetra rhoncus sit amet hendrerit metus. " \ "Integer laoreet placerat cursus. Nam a nulla ex. Donec laoreet sagittis libero quis " \ "imperdiet. Vivamus facilisis turpis nec rhoncus venenatis. Duis pulvinar tellus vel quam " \ "maximus imperdiet. Mauris eget nibh orci. Duis ut cursus nibh. Nulla sed commodo elit. " \ "Suspendisse ac eros lacinia, mattis turpis at, porttitor justo. Vivamus molestie " \ "tincidunt libero. Etiam porttitor lacus odio, at lobortis tortor scelerisque nec. " \ "Nullam non ante vel nisi ultrices consectetur. Maecenas massa felis, tempor eget " \ "malesuada eget, pretium eu sapien. Vivamus dapibus ante erat, non faucibus orci sodales " \ "sit amet. Cras magna felis, sodales eget magna sed, eleifend rutrum ligula. Vivamus interdum " \ "enim enim, eu facilisis tortor dignissim quis. Ut metus nulla, mattis non lorem et, " \ "elementum ultrices orci. Quisque eleifend, arcu vitae ullamcorper pulvinar, ipsum ex " \ "sodales arcu, eget consectetur mauris metus ac tortor. Donec id sem felis. Maur" req.block1 = (6, 0, 1024) expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CHANGED.number expected.token = None expected.payload = None exchange7 = (req, expected) self.current_mid += 1 self._test_plugtest([exchange1, exchange2, exchange3, exchange4, exchange5, exchange6, exchange7]) def test_options(self): print("TEST_OPTIONS") path = "/storage/new_res" req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address option = Option() option.number = defines.OptionRegistry.ETAG.number option.value = "test" req.add_option(option) req.del_option(option) req.payload = "test" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CREATED.number expected.token = None expected.payload = None expected.location_path = "storage/new_res" exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address option = Option() option.number = defines.OptionRegistry.ETAG.number option.value = "test" req.add_option(option) req.del_option_by_name("ETag") req.payload = "test" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CREATED.number expected.token = None expected.payload = None expected.location_path = "storage/new_res" exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address option = Option() option.number = defines.OptionRegistry.ETAG.number option.value = "test" req.add_option(option) del req.etag req.payload = "test" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CREATED.number expected.token = None expected.payload = None expected.location_path = "storage/new_res" exchange3 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1, exchange2, exchange3]) def test_content_type(self): print("TEST_CONTENT_TYPE") req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "<value>test</value>" req.content_type = defines.Content_types["application/xml"] expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CREATED.number expected.token = None expected.payload = None expected.location_path = "storage/new_res" exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "Basic Resource" exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.PUT.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "test" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CHANGED.number expected.token = None expected.payload = None exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "test" exchange4 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.accept = defines.Content_types["application/xml"] expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "<value>test</value>" exchange5 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/storage/new_res" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.accept = defines.Content_types["application/json"] expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.NOT_ACCEPTABLE.number expected.token = None expected.payload = None # expected.content_type = defines.Content_types["application/json"] exchange6 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/xml" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "<value>0</value>" expected.content_type = defines.Content_types["application/xml"] print(expected.pretty_print()) exchange7 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1, exchange2, exchange3, exchange4, exchange5, exchange6, exchange7]) def test_ETAG(self): print("TEST_ETAG") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/etag" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "ETag resource" expected.etag = "0" exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/etag" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "test" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CHANGED.number expected.token = None expected.payload = None expected.etag = "1" exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/etag" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.etag = "1" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.VALID.number expected.token = None expected.payload = None expected.etag = "1" exchange3 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1, exchange2, exchange3]) def test_child(self): print("TEST_CHILD") req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/child" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "test" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CREATED.number expected.token = None expected.payload = None expected.location_path = "child" exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/child" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = "test" exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.PUT.number req.proxy_uri = "coap://127.0.0.1:5684/child" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "testPUT" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CHANGED.number expected.token = None expected.payload = None exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.DELETE.number req.proxy_uri = "coap://127.0.0.1:5684/child" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.DELETED.number expected.token = None expected.payload = None exchange4 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1, exchange2, exchange3, exchange4]) def test_not_found(self): print("TEST_not_found") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/not_found" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.token = 100 expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.NOT_FOUND.number expected.token = 100 expected.payload = None exchange1 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/not_found" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "testPOST" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.METHOD_NOT_ALLOWED.number expected.token = None exchange2 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.PUT.number req.proxy_uri = "coap://127.0.0.1:5684/not_found" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "testPUT" expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.NOT_FOUND.number expected.token = None expected.payload = None exchange3 = (req, expected) self.current_mid += 1 req = Request() req.code = defines.Codes.DELETE.number req.proxy_uri = "coap://127.0.0.1:5684/not_found" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.NOT_FOUND.number expected.token = None expected.payload = None exchange4 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1, exchange2, exchange3, exchange4]) def test_invalid(self): print("TEST_INVALID") # version req = (b'\x00\x01\x8c\xda', self.server_address) expected = Response() expected.type = defines.Types["RST"] expected._mid = None expected.code = defines.Codes.BAD_REQUEST.number exchange1 = (req, expected) # version req = (b'\x40', self.server_address) expected = Response() expected.type = defines.Types["RST"] expected._mid = None expected.code = defines.Codes.BAD_REQUEST.number exchange2 = (req, expected) # code req = (b'\x40\x05\x8c\xda', self.server_address) expected = Response() expected.type = defines.Types["RST"] expected._mid = None expected.code = defines.Codes.BAD_REQUEST.number exchange3 = (req, expected) # option req = (b'\x40\x01\x8c\xda\x94', self.server_address) expected = Response() expected.type = defines.Types["RST"] expected._mid = None expected.code = defines.Codes.BAD_REQUEST.number exchange4 = (req, expected) # payload marker req = (b'\x40\x02\x8c\xda\x75\x62\x61\x73\x69\x63\xff', self.server_address) expected = Response() expected.type = defines.Types["RST"] expected._mid = None expected.code = defines.Codes.BAD_REQUEST.number exchange5 = (req, expected) self._test_datagram([exchange1, exchange2, exchange3, exchange4, exchange5]) def test_post_block_big_client(self): print("TEST_POST_BLOCK_BIG_CLIENT") req = Request() req.code = defines.Codes.POST.number req.proxy_uri = "coap://127.0.0.1:5684/big" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.payload = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sollicitudin fermentum ornare. " \ "Cras accumsan tellus quis dui lacinia eleifend. Proin ultrices rutrum orci vitae luctus. " \ "Nullam malesuada pretium elit, at aliquam odio vehicula in. Etiam nec maximus elit. " \ "Etiam at erat ac ex ornare feugiat. Curabitur sed malesuada orci, id aliquet nunc. Phasellus " \ "nec leo luctus, blandit lorem sit amet, interdum metus. Duis efficitur volutpat magna, ac " \ "ultricies nibh aliquet sit amet. Etiam tempor egestas augue in hendrerit. Nunc eget augue " \ "ultricies, dignissim lacus et, vulputate dolor. Nulla eros odio, fringilla vel massa ut, " \ "facilisis cursus quam. Fusce faucibus lobortis congue. Fusce consectetur porta neque, id " \ "sollicitudin velit maximus eu. Sed pharetra leo quam, vel finibus turpis cursus ac. " \ "Aenean ac nisi massa. Cras commodo arcu nec ante tristique ullamcorper. Quisque eu hendrerit" \ " urna. Cras fringilla eros ut nunc maximus, non porta nisl mollis. Aliquam in rutrum massa." \ " Praesent tristique turpis dui, at ultricies lorem fermentum at. Vivamus sit amet ornare neque, " \ "a imperdiet nisl. Quisque a iaculis libero, id tempus lacus. Aenean convallis est non justo " \ "consectetur, a hendrerit enim consequat. In accumsan ante a egestas luctus. Etiam quis neque " \ "nec eros vestibulum faucibus. Nunc viverra ipsum lectus, vel scelerisque dui dictum a. Ut orci " \ "enim, ultrices a ultrices nec, pharetra in quam. Donec accumsan sit amet eros eget fermentum." \ "Vivamus ut odio ac odio malesuada accumsan. Aenean vehicula diam at tempus ornare. Phasellus " \ "dictum mauris a mi consequat, vitae mattis nulla fringilla. Ut laoreet tellus in nisl efficitur," \ " a luctus justo tempus. Fusce finibus libero eget velit finibus iaculis. Morbi rhoncus purus " \ "vel vestibulum ullamcorper. Sed ac metus in urna fermentum feugiat. Nulla nunc diam, sodales " \ "aliquam mi id, varius porta nisl. Praesent vel nibh ac turpis rutrum laoreet at non odio. " \ "Phasellus ut posuere mi. Suspendisse malesuada velit nec mauris convallis porta. Vivamus " \ "sed ultrices sapien, at cras amet." expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CHANGED.number expected.token = None expected.payload = None exchange1 = (req, expected) self.current_mid += 1 self._test_with_client([exchange1]) def test_observe_client(self): print("TEST_OBSERVE_CLIENT") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/basic" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address req.observe = 0 expected = Response() expected.type = defines.Types["ACK"] expected._mid = None expected.code = defines.Codes.CONTENT.number expected.token = None expected.payload = None exchange1 = (req, expected) self.current_mid += 1 self._test_with_client_observe([exchange1]) def test_duplicate(self): print("TEST_DUPLICATE") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/basic" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = defines.Codes.CONTENT.number expected.token = None self.current_mid += 1 self._test_plugtest([(req, expected), (req, expected)]) def test_duplicate_not_completed(self): print("TEST_DUPLICATE_NOT_COMPLETED") req = Request() req.code = defines.Codes.GET.number req.proxy_uri = "coap://127.0.0.1:5684/long" req.type = defines.Types["CON"] req._mid = self.current_mid req.destination = self.server_address expected = Response() expected.type = defines.Types["ACK"] expected._mid = self.current_mid expected.code = None expected.token = None expected2 = Response() expected2.type = defines.Types["CON"] expected2._mid = None expected2.code = defines.Codes.CONTENT.number expected2.token = None self.current_mid += 1 self._test_plugtest([(req, None), (req, expected), (None, expected2)]) if __name__ == '__main__': unittest.main()
38.727848
123
0.603348
6,402
55,071
5.083411
0.057013
0.048335
0.061517
0.045446
0.8581
0.848421
0.845071
0.840708
0.839172
0.833518
0
0.028031
0.295836
55,071
1,421
124
38.755102
0.811186
0.003595
0
0.825464
0
0.000843
0.183445
0.032227
0
0
0
0
0.030354
1
0.019393
false
0
0.010961
0
0.031197
0.016863
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
86d04532d2a5130806efabce1c847eaefec9430f
121
py
Python
hardware/demo_cpu.py
Afantor/MaixCAM
de351ffa2252cf77b185b0ac10ba45a1157e5e99
[ "MIT" ]
1
2019-12-16T01:57:47.000Z
2019-12-16T01:57:47.000Z
hardware/demo_cpu.py
Afantor/MaixCAM
de351ffa2252cf77b185b0ac10ba45a1157e5e99
[ "MIT" ]
null
null
null
hardware/demo_cpu.py
Afantor/MaixCAM
de351ffa2252cf77b185b0ac10ba45a1157e5e99
[ "MIT" ]
null
null
null
from Maix import freq cpu_freq, kpu_freq = freq.get() print(cpu_freq, kpu_freq) print(freq.get_cpu(), freq.get_kpu())
15.125
37
0.735537
22
121
3.772727
0.363636
0.253012
0.240964
0.337349
0
0
0
0
0
0
0
0
0.123967
121
7
38
17.285714
0.783019
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0.5
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
7
86f65d71e78c1d5d6d8ec925d606921eb1b248ec
9,822
py
Python
rally/plugins/openstack/scenarios/neutron/security_groups.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/neutron/security_groups.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/neutron/security_groups.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from rally import consts from rally.plugins.openstack import scenario from rally.plugins.openstack.scenarios.neutron import utils from rally.task import validation """Scenarios for Neutron Security Groups.""" @validation.add("required_services", services=[consts.Service.NEUTRON]) @validation.add("required_platform", platform="openstack", users=True) @scenario.configure( context={"cleanup@openstack": ["neutron"]}, name="NeutronSecurityGroup.create_and_list_security_groups", platform="openstack") class CreateAndListSecurityGroups(utils.NeutronScenario): def run(self, security_group_create_args=None): """Create and list Neutron security-groups. Measure the "neutron security-group-create" and "neutron security-group-list" command performance. :param security_group_create_args: dict, POST /v2.0/security-groups request options """ security_group_create_args = security_group_create_args or {} self._create_security_group(**security_group_create_args) self._list_security_groups() @validation.add("required_services", services=[consts.Service.NEUTRON]) @validation.add("required_platform", platform="openstack", users=True) @scenario.configure( context={"cleanup@openstack": ["neutron"]}, name="NeutronSecurityGroup.create_and_show_security_group", platform="openstack") class CreateAndShowSecurityGroup(utils.NeutronScenario): def run(self, security_group_create_args=None): """Create and show Neutron security-group. Measure the "neutron security-group-create" and "neutron security-group-show" command performance. :param security_group_create_args: dict, POST /v2.0/security-groups request options """ security_group_create_args = security_group_create_args or {} security_group = self._create_security_group( **security_group_create_args) msg = "security_group isn't created" self.assertTrue(security_group, err_msg=msg) self._show_security_group(security_group) @validation.add("required_services", services=[consts.Service.NEUTRON]) @validation.add("required_platform", platform="openstack", users=True) @scenario.configure( context={"cleanup@openstack": ["neutron"]}, name="NeutronSecurityGroup.create_and_delete_security_groups", platform="openstack") class CreateAndDeleteSecurityGroups(utils.NeutronScenario): def run(self, security_group_create_args=None): """Create and delete Neutron security-groups. Measure the "neutron security-group-create" and "neutron security-group-delete" command performance. :param security_group_create_args: dict, POST /v2.0/security-groups request options """ security_group_create_args = security_group_create_args or {} security_group = self._create_security_group( **security_group_create_args) self._delete_security_group(security_group) @validation.add("required_services", services=[consts.Service.NEUTRON]) @validation.add("required_platform", platform="openstack", users=True) @scenario.configure( context={"cleanup@openstack": ["neutron"]}, name="NeutronSecurityGroup.create_and_update_security_groups", platform="openstack") class CreateAndUpdateSecurityGroups(utils.NeutronScenario): def run(self, security_group_create_args=None, security_group_update_args=None): """Create and update Neutron security-groups. Measure the "neutron security-group-create" and "neutron security-group-update" command performance. :param security_group_create_args: dict, POST /v2.0/security-groups request options :param security_group_update_args: dict, PUT /v2.0/security-groups update options """ security_group_create_args = security_group_create_args or {} security_group_update_args = security_group_update_args or {} security_group = self._create_security_group( **security_group_create_args) self._update_security_group(security_group, **security_group_update_args) @validation.add("required_services", services=[consts.Service.NEUTRON]) @validation.add("required_platform", platform="openstack", users=True) @scenario.configure( context={"cleanup@openstack": ["neutron"]}, name="NeutronSecurityGroup.create_and_list_security_group_rules", platform="openstack") class CreateAndListSecurityGroupRules(utils.NeutronScenario): def run(self, security_group_args=None, security_group_rule_args=None): """Create and list Neutron security-group-rules. Measure the "neutron security-group-rule-create" and "neutron security-group-rule-list" command performance. :param security_group_args: dict, POST /v2.0/security-groups request options :param security_group_rule_args: dict, POST /v2.0/security-group-rules request options """ security_group_args = security_group_args or {} security_group_rule_args = security_group_rule_args or {} security_group = self._create_security_group(**security_group_args) msg = "security_group isn't created" self.assertTrue(security_group, err_msg=msg) security_group_rule = self._create_security_group_rule( security_group["security_group"]["id"], **security_group_rule_args) msg = "security_group_rule isn't created" self.assertTrue(security_group_rule, err_msg=msg) security_group_rules = self._list_security_group_rules() self.assertIn(security_group_rule["security_group_rule"]["id"], [sgr["id"] for sgr in security_group_rules["security_group_rules"]]) @validation.add("required_services", services=[consts.Service.NEUTRON]) @validation.add("required_platform", platform="openstack", users=True) @scenario.configure( context={"cleanup@openstack": ["neutron"]}, name="NeutronSecurityGroup.create_and_show_security_group_rule", platform="openstack") class CreateAndShowSecurityGroupRule(utils.NeutronScenario): def run(self, security_group_args=None, security_group_rule_args=None): """Create and show Neutron security-group-rule. Measure the "neutron security-group-rule-create" and "neutron security-group-rule-show" command performance. :param security_group_args: dict, POST /v2.0/security-groups request options :param security_group_rule_args: dict, POST /v2.0/security-group-rules request options """ security_group_args = security_group_args or {} security_group_rule_args = security_group_rule_args or {} security_group = self._create_security_group(**security_group_args) msg = "security_group isn't created" self.assertTrue(security_group, err_msg=msg) security_group_rule = self._create_security_group_rule( security_group["security_group"]["id"], **security_group_rule_args) msg = "security_group_rule isn't created" self.assertTrue(security_group_rule, err_msg=msg) self._show_security_group_rule( security_group_rule["security_group_rule"]["id"]) @validation.add("required_services", services=[consts.Service.NEUTRON]) @validation.add("required_platform", platform="openstack", users=True) @scenario.configure( context={"cleanup@openstack": ["neutron"]}, name="NeutronSecurityGroup.create_and_delete_security_group_rule", platform="openstack") class CreateAndDeleteSecurityGroupRule(utils.NeutronScenario): def run(self, security_group_args=None, security_group_rule_args=None): """Create and delete Neutron security-group-rule. Measure the "neutron security-group-rule-create" and "neutron security-group-rule-delete" command performance. :param security_group_args: dict, POST /v2.0/security-groups request options :param security_group_rule_args: dict, POST /v2.0/security-group-rules request options """ security_group_args = security_group_args or {} security_group_rule_args = security_group_rule_args or {} security_group = self._create_security_group(**security_group_args) msg = "security_group isn't created" self.assertTrue(security_group, err_msg=msg) security_group_rule = self._create_security_group_rule( security_group["security_group"]["id"], **security_group_rule_args) msg = "security_group_rule isn't created" self.assertTrue(security_group_rule, err_msg=msg) self._delete_security_group_rule( security_group_rule["security_group_rule"]["id"]) self._delete_security_group(security_group)
41.443038
79
0.699348
1,110
9,822
5.898198
0.112613
0.276004
0.116847
0.070261
0.828318
0.81228
0.792882
0.780205
0.775928
0.768291
0
0.003341
0.207799
9,822
236
80
41.618644
0.838067
0.275606
0
0.746032
0
0
0.188493
0.057237
0
0
0
0
0.063492
1
0.055556
false
0
0.031746
0
0.142857
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8110af3d73fa8ffdf481593a1bbc7f270feb8cf4
221
py
Python
example/dj/apps/issue_tracker/tests/__init__.py
matllubos/django-is-core
774c5548b7cae207d7c7f315c68f625e95b33a07
[ "BSD-3-Clause" ]
16
2015-06-25T20:00:30.000Z
2021-11-24T17:27:02.000Z
example/dj/apps/issue_tracker/tests/__init__.py
matllubos/django-is-core
774c5548b7cae207d7c7f315c68f625e95b33a07
[ "BSD-3-Clause" ]
65
2015-01-17T09:41:39.000Z
2022-02-24T14:30:14.000Z
example/dj/apps/issue_tracker/tests/__init__.py
matllubos/django-is-core
774c5548b7cae207d7c7f315c68f625e95b33a07
[ "BSD-3-Clause" ]
19
2016-01-14T14:30:21.000Z
2021-12-30T17:46:23.000Z
from .http_exceptions import * from .rest_permissions import * from .ui_ordering import * from .ui_permissions import * from .permissions import * from .rest import * from .field_permissions import * from .utils import *
24.555556
32
0.782805
29
221
5.793103
0.344828
0.416667
0.5
0
0
0
0
0
0
0
0
0
0.144796
221
8
33
27.625
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
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
812cc23ab9623269f4c01b047cd5fbd0226ebef2
17,514
py
Python
tests/console/commands/test_init.py
m0rcq/poetry
9f593f60c7c0129797a7ea63039d277c5f516744
[ "MIT" ]
null
null
null
tests/console/commands/test_init.py
m0rcq/poetry
9f593f60c7c0129797a7ea63039d277c5f516744
[ "MIT" ]
2
2020-12-05T18:59:09.000Z
2020-12-05T22:10:00.000Z
tests/console/commands/test_init.py
m0rcq/poetry
9f593f60c7c0129797a7ea63039d277c5f516744
[ "MIT" ]
null
null
null
import os import shutil import sys from pathlib import Path import pytest from cleo import CommandTester from poetry.repositories import Pool from poetry.utils._compat import decode from tests.helpers import TestApplication from tests.helpers import get_package @pytest.fixture def source_dir(tmp_path): # type: (...) -> Path cwd = os.getcwd() try: os.chdir(str(tmp_path)) yield Path(tmp_path.as_posix()) finally: os.chdir(cwd) @pytest.fixture def patches(mocker, source_dir, repo): mocker.patch("pathlib.Path.cwd", return_value=source_dir) mocker.patch( "poetry.console.commands.init.InitCommand._get_pool", return_value=Pool([repo]) ) @pytest.fixture def tester(patches): # we need a test application without poetry here. app = TestApplication(None) return CommandTester(app.find("init")) @pytest.fixture def init_basic_inputs(): return "\n".join( [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "n", # Interactive packages "n", # Interactive dev packages "\n", # Generate ] ) @pytest.fixture() def init_basic_toml(): return """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" [tool.poetry.dev-dependencies] """ def test_basic_interactive(tester, init_basic_inputs, init_basic_toml): tester.execute(inputs=init_basic_inputs) assert init_basic_toml in tester.io.fetch_output() def test_interactive_with_dependencies(tester, repo): repo.add_package(get_package("django-pendulum", "0.1.6-pre4")) repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pytest", "3.6.0")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "pendulu", # Search for package "1", # Second option is pendulum "", # Do not set constraint "", # Stop searching for packages "", # Interactive dev packages "pytest", # Search for package "0", "", "", "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" pendulum = "^2.0.0" [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_empty_license(tester): inputs = [ "my-package", # Package name "1.2.3", # Version "", # Description "n", # Author "", # License "", # Python "n", # Interactive packages "n", # Interactive dev packages "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "" authors = ["Your Name <you@example.com>"] [tool.poetry.dependencies] python = "^{python}" [tool.poetry.dev-dependencies] """.format( python=".".join(str(c) for c in sys.version_info[:2]) ) assert expected in tester.io.fetch_output() def test_interactive_with_git_dependencies(tester, repo): repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pytest", "3.6.0")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "git+https://github.com/demo/demo.git", # Search for package "", # Stop searching for packages "", # Interactive dev packages "pytest", # Search for package "0", "", "", "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" demo = {git = "https://github.com/demo/demo.git"} [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_interactive_with_git_dependencies_with_reference(tester, repo): repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pytest", "3.6.0")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "git+https://github.com/demo/demo.git@develop", # Search for package "", # Stop searching for packages "", # Interactive dev packages "pytest", # Search for package "0", "", "", "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" demo = {git = "https://github.com/demo/demo.git", rev = "develop"} [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_interactive_with_git_dependencies_and_other_name(tester, repo): repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pytest", "3.6.0")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "git+https://github.com/demo/pyproject-demo.git", # Search for package "", # Stop searching for packages "", # Interactive dev packages "pytest", # Search for package "0", "", "", "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" demo = {git = "https://github.com/demo/pyproject-demo.git"} [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_interactive_with_directory_dependency(tester, repo, source_dir, fixture_dir): repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pytest", "3.6.0")) demo = fixture_dir("git") / "github.com" / "demo" / "demo" shutil.copytree(str(demo), str(source_dir / "demo")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "./demo", # Search for package "", # Stop searching for packages "", # Interactive dev packages "pytest", # Search for package "0", "", "", "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" demo = {path = "demo"} [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_interactive_with_directory_dependency_and_other_name( tester, repo, source_dir, fixture_dir ): repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pytest", "3.6.0")) demo = fixture_dir("git") / "github.com" / "demo" / "pyproject-demo" shutil.copytree(str(demo), str(source_dir / "pyproject-demo")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "./pyproject-demo", # Search for package "", # Stop searching for packages "", # Interactive dev packages "pytest", # Search for package "0", "", "", "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" demo = {path = "pyproject-demo"} [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_interactive_with_file_dependency(tester, repo, source_dir, fixture_dir): repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pytest", "3.6.0")) demo = fixture_dir("distributions") / "demo-0.1.0-py2.py3-none-any.whl" shutil.copyfile(str(demo), str(source_dir / demo.name)) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "./demo-0.1.0-py2.py3-none-any.whl", # Search for package "", # Stop searching for packages "", # Interactive dev packages "pytest", # Search for package "0", "", "", "\n", # Generate ] tester.execute(inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" demo = {path = "demo-0.1.0-py2.py3-none-any.whl"} [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_python_option(tester): inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "n", # Interactive packages "n", # Interactive dev packages "\n", # Generate ] tester.execute("--python '~2.7 || ^3.6'", inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" [tool.poetry.dev-dependencies] """ assert expected in tester.io.fetch_output() def test_predefined_dependency(tester, repo): repo.add_package(get_package("pendulum", "2.0.0")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "n", # Interactive packages "n", # Interactive dev packages "\n", # Generate ] tester.execute("--dependency pendulum", inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" pendulum = "^2.0.0" [tool.poetry.dev-dependencies] """ assert expected in tester.io.fetch_output() def test_predefined_and_interactive_dependencies(tester, repo): repo.add_package(get_package("pendulum", "2.0.0")) repo.add_package(get_package("pyramid", "1.10")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "", # Interactive packages "pyramid", # Search for package "0", # First option "", # Do not set constraint "", # Stop searching for packages "n", # Interactive dev packages "\n", # Generate ] tester.execute("--dependency pendulum", inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" """ output = tester.io.fetch_output() assert expected in output assert 'pendulum = "^2.0.0"' in output assert 'pyramid = "^1.10"' in output def test_predefined_dev_dependency(tester, repo): repo.add_package(get_package("pytest", "3.6.0")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "n", # Interactive packages "n", # Interactive dev packages "\n", # Generate ] tester.execute("--dev-dependency pytest", inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" [tool.poetry.dev-dependencies] pytest = "^3.6.0" """ assert expected in tester.io.fetch_output() def test_predefined_and_interactive_dev_dependencies(tester, repo): repo.add_package(get_package("pytest", "3.6.0")) repo.add_package(get_package("pytest-requests", "0.2.0")) inputs = [ "my-package", # Package name "1.2.3", # Version "This is a description", # Description "n", # Author "MIT", # License "~2.7 || ^3.6", # Python "n", # Interactive packages "", # Interactive dev packages "pytest-requests", # Search for package "0", # Select first option "", # Do not set constraint "", # Stop searching for dev packages "\n", # Generate ] tester.execute("--dev-dependency pytest", inputs="\n".join(inputs)) expected = """\ [tool.poetry] name = "my-package" version = "1.2.3" description = "This is a description" authors = ["Your Name <you@example.com>"] license = "MIT" [tool.poetry.dependencies] python = "~2.7 || ^3.6" [tool.poetry.dev-dependencies] """ output = tester.io.fetch_output() assert expected in output assert 'pytest-requests = "^0.2.0"' in output assert 'pytest = "^3.6.0"' in output def test_add_package_with_extras_and_whitespace(tester): result = tester._command._parse_requirements(["databases[postgresql, sqlite]"]) assert result[0]["name"] == "databases" assert len(result[0]["extras"]) == 2 assert "postgresql" in result[0]["extras"] assert "sqlite" in result[0]["extras"] def test_init_existing_pyproject_simple( tester, source_dir, init_basic_inputs, init_basic_toml ): pyproject_file = source_dir / "pyproject.toml" existing_section = """ [tool.black] line-length = 88 """ pyproject_file.write_text(decode(existing_section)) tester.execute(inputs=init_basic_inputs) assert ( "{}\n{}".format(existing_section, init_basic_toml) in pyproject_file.read_text() ) def test_init_non_interactive_existing_pyproject_add_dependency( tester, source_dir, init_basic_inputs, repo ): pyproject_file = source_dir / "pyproject.toml" existing_section = """ [tool.black] line-length = 88 """ pyproject_file.write_text(decode(existing_section)) repo.add_package(get_package("foo", "1.19.2")) tester.execute( "--author 'Your Name <you@example.com>' " "--name 'my-package' " "--python '^3.6' " "--dependency foo", interactive=False, ) expected = """\ [tool.poetry] name = "my-package" version = "0.1.0" description = "" authors = ["Your Name <you@example.com>"] [tool.poetry.dependencies] python = "^3.6" foo = "^1.19.2" [tool.poetry.dev-dependencies] """ assert "{}\n{}".format(existing_section, expected) in pyproject_file.read_text() def test_init_existing_pyproject_with_build_system_fails( tester, source_dir, init_basic_inputs ): pyproject_file = source_dir / "pyproject.toml" existing_section = """ [build-system] requires = ["setuptools >= 40.6.0", "wheel"] build-backend = "setuptools.build_meta" """ pyproject_file.write_text(decode(existing_section)) tester.execute(inputs=init_basic_inputs) assert ( tester.io.fetch_output().strip() == "A pyproject.toml file with a defined build-system already exists." ) assert "{}".format(existing_section) in pyproject_file.read_text()
25.870015
88
0.59992
2,163
17,514
4.754045
0.082755
0.008947
0.008169
0.045512
0.835068
0.802392
0.787416
0.776913
0.747156
0.728289
0
0.026062
0.237581
17,514
676
89
25.908284
0.744028
0.130467
0
0.765455
0
0.003636
0.397678
0.06649
0
0
0
0
0.047273
1
0.041818
false
0
0.018182
0.003636
0.065455
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
be141c2a5594faeedf8f23aa5e7ef72b3a713fe6
7,026
py
Python
relation/models.py
johnson7788/PURE
ee40915026602ee34110375192b5e6571ae06c24
[ "MIT" ]
null
null
null
relation/models.py
johnson7788/PURE
ee40915026602ee34110375192b5e6571ae06c24
[ "MIT" ]
null
null
null
relation/models.py
johnson7788/PURE
ee40915026602ee34110375192b5e6571ae06c24
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import CrossEntropyLoss from transformers import BertModel, BertPreTrainedModel from transformers import AlbertModel, AlbertPreTrainedModel from allennlp.modules import FeedForward from allennlp.nn.util import batched_index_select import torch.nn.functional as F BertLayerNorm = torch.nn.LayerNorm class BertForRelation(BertPreTrainedModel): def __init__(self, config, num_rel_labels): super(BertForRelation, self).__init__(config) self.num_labels = num_rel_labels self.bert = BertModel(config) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.layer_norm = BertLayerNorm(config.hidden_size * 2) self.classifier = nn.Linear(config.hidden_size * 2, self.num_labels) self.init_weights() def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, sub_idx=None, obj_idx=None, input_position=None): outputs = self.bert(input_ids, token_type_ids=token_type_ids, attention_mask=attention_mask, output_hidden_states=False, output_attentions=False, position_ids=input_position) sequence_output = outputs[0] sub_output = torch.cat([a[i].unsqueeze(0) for a, i in zip(sequence_output, sub_idx)]) obj_output = torch.cat([a[i].unsqueeze(0) for a, i in zip(sequence_output, obj_idx)]) rep = torch.cat((sub_output, obj_output), dim=1) rep = self.layer_norm(rep) rep = self.dropout(rep) logits = self.classifier(rep) if labels is not None: loss_fct = CrossEntropyLoss() loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1)) return loss else: return logits class AlbertForRelation(AlbertPreTrainedModel): def __init__(self, config, num_rel_labels): super(AlbertForRelation, self).__init__(config) self.num_labels = num_rel_labels self.albert = AlbertModel(config) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.layer_norm = BertLayerNorm(config.hidden_size * 2) self.classifier = nn.Linear(config.hidden_size * 2, self.num_labels) self.init_weights() def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, sub_idx=None, obj_idx=None): outputs = self.albert(input_ids, token_type_ids=token_type_ids, attention_mask=attention_mask, output_hidden_states=False, output_attentions=False) sequence_output = outputs[0] sub_output = torch.cat([a[i].unsqueeze(0) for a, i in zip(sequence_output, sub_idx)]) obj_output = torch.cat([a[i].unsqueeze(0) for a, i in zip(sequence_output, obj_idx)]) rep = torch.cat((sub_output, obj_output), dim=1) rep = self.layer_norm(rep) rep = self.dropout(rep) logits = self.classifier(rep) if labels is not None: loss_fct = CrossEntropyLoss() loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1)) return loss else: return logits class BertForRelationApprox(BertPreTrainedModel): def __init__(self, config, num_rel_labels): super(BertForRelationApprox, self).__init__(config) self.num_labels = num_rel_labels self.bert = BertModel(config) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.layer_norm = BertLayerNorm(config.hidden_size * 2) self.classifier = nn.Linear(config.hidden_size * 2, self.num_labels) self.init_weights() def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, sub_obj_ids=None, sub_obj_masks=None, input_position=None): """ attention_mask: [batch_size, from_seq_length, to_seq_length] """ batch_size = input_ids.size(0) outputs = self.bert(input_ids, token_type_ids=token_type_ids, attention_mask=attention_mask, output_hidden_states=False, output_attentions=False, position_ids=input_position, return_dict=False) sequence_output = outputs[0] sub_ids = sub_obj_ids[:, :, 0].view(batch_size, -1) sub_embeddings = batched_index_select(sequence_output, sub_ids) obj_ids = sub_obj_ids[:, :, 1].view(batch_size, -1) obj_embeddings = batched_index_select(sequence_output, obj_ids) rep = torch.cat((sub_embeddings, obj_embeddings), dim=-1) rep = self.layer_norm(rep) rep = self.dropout(rep) logits = self.classifier(rep) if labels is not None: loss_fct = CrossEntropyLoss() active_loss = (sub_obj_masks.view(-1) == 1) active_logits = logits.view(-1, logits.shape[-1]) active_labels = torch.where( active_loss, labels.view(-1), torch.tensor(loss_fct.ignore_index).type_as(labels) ) loss = loss_fct(active_logits, active_labels) return loss else: return logits class AlbertForRelationApprox(BertPreTrainedModel): """ ALBERT approximation model is not supported by the current implementation, as Huggingface's Transformers ALBERT doesn't support an attention mask with a shape of [batch_size, from_seq_length, to_seq_length]." """ def __init__(self, config, num_rel_labels): super(AlbertForRelationApprox, self).__init__(config) self.num_labels = num_rel_labels self.albert = AlbertModel(config) self.dropout = nn.Dropout(config.hidden_dropout_prob) self.layer_norm = BertLayerNorm(config.hidden_size * 2) self.classifier = nn.Linear(config.hidden_size * 2, self.num_labels) self.init_weights() def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, sub_obj_ids=None, sub_obj_masks=None, input_position=None): batch_size = input_ids.size(0) outputs = self.albert(input_ids, token_type_ids=token_type_ids, attention_mask=attention_mask, output_hidden_states=False, output_attentions=False, position_ids=input_position,return_dict=False) sequence_output = outputs[0] sub_ids = sub_obj_ids[:, :, 0].view(batch_size, -1) sub_embeddings = batched_index_select(sequence_output, sub_ids) obj_ids = sub_obj_ids[:, :, 1].view(batch_size, -1) obj_embeddings = batched_index_select(sequence_output, obj_ids) rep = torch.cat((sub_embeddings, obj_embeddings), dim=-1) rep = self.layer_norm(rep) rep = self.dropout(rep) logits = self.classifier(rep) if labels is not None: loss_fct = CrossEntropyLoss() active_loss = (sub_obj_masks.view(-1) == 1) active_logits = logits.view(-1, logits.shape[-1]) active_labels = torch.where( active_loss, labels.view(-1), torch.tensor(loss_fct.ignore_index).type_as(labels) ) loss = loss_fct(active_logits, active_labels) return loss else: return logits
48.455172
202
0.685169
924
7,026
4.915584
0.121212
0.04007
0.031704
0.03963
0.854469
0.854469
0.853369
0.853369
0.814179
0.790841
0
0.007993
0.216482
7,026
144
203
48.791667
0.817075
0.038429
0
0.793388
0
0
0
0
0
0
0
0
0
1
0.066116
false
0
0.066116
0
0.231405
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
be15fa64938dfb316473a0fd0adfbfab30cd7d1c
6,618
gyp
Python
third_party/sfntly/sfntly.gyp
Scopetta197/chromium
b7bf8e39baadfd9089de2ebdc0c5d982de4a9820
[ "BSD-3-Clause" ]
212
2015-01-31T11:55:58.000Z
2022-02-22T06:35:11.000Z
third_party/sfntly/sfntly.gyp
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5
2015-03-27T14:29:23.000Z
2019-09-25T13:23:12.000Z
third_party/sfntly/sfntly.gyp
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
221
2015-01-07T06:21:24.000Z
2022-02-11T02:51:12.000Z
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { 'target_name': 'sfntly', 'type': 'static_library', 'sources': [ 'cpp/src/sfntly/data/byte_array.cc', 'cpp/src/sfntly/data/byte_array.h', 'cpp/src/sfntly/data/font_data.cc', 'cpp/src/sfntly/data/font_data.h', 'cpp/src/sfntly/data/font_input_stream.cc', 'cpp/src/sfntly/data/font_input_stream.h', 'cpp/src/sfntly/data/font_output_stream.cc', 'cpp/src/sfntly/data/font_output_stream.h', 'cpp/src/sfntly/data/growable_memory_byte_array.cc', 'cpp/src/sfntly/data/growable_memory_byte_array.h', 'cpp/src/sfntly/data/memory_byte_array.cc', 'cpp/src/sfntly/data/memory_byte_array.h', 'cpp/src/sfntly/data/readable_font_data.cc', 'cpp/src/sfntly/data/readable_font_data.h', 'cpp/src/sfntly/data/writable_font_data.cc', 'cpp/src/sfntly/data/writable_font_data.h', 'cpp/src/sfntly/font.cc', 'cpp/src/sfntly/font.h', 'cpp/src/sfntly/font_factory.cc', 'cpp/src/sfntly/font_factory.h', 'cpp/src/sfntly/math/fixed1616.h', 'cpp/src/sfntly/math/font_math.h', 'cpp/src/sfntly/port/atomic.h', 'cpp/src/sfntly/port/config.h', 'cpp/src/sfntly/port/endian.h', 'cpp/src/sfntly/port/exception_type.h', 'cpp/src/sfntly/port/file_input_stream.cc', 'cpp/src/sfntly/port/file_input_stream.h', 'cpp/src/sfntly/port/input_stream.h', 'cpp/src/sfntly/port/lock.cc', 'cpp/src/sfntly/port/lock.h', 'cpp/src/sfntly/port/memory_input_stream.cc', 'cpp/src/sfntly/port/memory_input_stream.h', 'cpp/src/sfntly/port/memory_output_stream.cc', 'cpp/src/sfntly/port/memory_output_stream.h', 'cpp/src/sfntly/port/output_stream.h', 'cpp/src/sfntly/port/refcount.h', 'cpp/src/sfntly/port/type.h', 'cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc', 'cpp/src/sfntly/table/bitmap/big_glyph_metrics.h', 'cpp/src/sfntly/table/bitmap/bitmap_glyph.cc', 'cpp/src/sfntly/table/bitmap/bitmap_glyph.h', 'cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc', 'cpp/src/sfntly/table/bitmap/bitmap_glyph_info.h', 'cpp/src/sfntly/table/bitmap/bitmap_size_table.cc', 'cpp/src/sfntly/table/bitmap/bitmap_size_table.h', 'cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc', 'cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.h', 'cpp/src/sfntly/table/bitmap/ebdt_table.cc', 'cpp/src/sfntly/table/bitmap/ebdt_table.h', 'cpp/src/sfntly/table/bitmap/eblc_table.cc', 'cpp/src/sfntly/table/bitmap/eblc_table.h', 'cpp/src/sfntly/table/bitmap/ebsc_table.cc', 'cpp/src/sfntly/table/bitmap/ebsc_table.h', 'cpp/src/sfntly/table/bitmap/glyph_metrics.cc', 'cpp/src/sfntly/table/bitmap/glyph_metrics.h', 'cpp/src/sfntly/table/bitmap/index_sub_table.cc', 'cpp/src/sfntly/table/bitmap/index_sub_table.h', 'cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc', 'cpp/src/sfntly/table/bitmap/index_sub_table_format1.h', 'cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc', 'cpp/src/sfntly/table/bitmap/index_sub_table_format2.h', 'cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc', 'cpp/src/sfntly/table/bitmap/index_sub_table_format3.h', 'cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc', 'cpp/src/sfntly/table/bitmap/index_sub_table_format4.h', 'cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc', 'cpp/src/sfntly/table/bitmap/index_sub_table_format5.h', 'cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc', 'cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.h', 'cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc', 'cpp/src/sfntly/table/bitmap/small_glyph_metrics.h', 'cpp/src/sfntly/table/byte_array_table_builder.cc', 'cpp/src/sfntly/table/byte_array_table_builder.h', 'cpp/src/sfntly/table/core/cmap_table.cc', 'cpp/src/sfntly/table/core/cmap_table.h', 'cpp/src/sfntly/table/core/font_header_table.cc', 'cpp/src/sfntly/table/core/font_header_table.h', 'cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc', 'cpp/src/sfntly/table/core/horizontal_device_metrics_table.h', 'cpp/src/sfntly/table/core/horizontal_header_table.cc', 'cpp/src/sfntly/table/core/horizontal_header_table.h', 'cpp/src/sfntly/table/core/horizontal_metrics_table.cc', 'cpp/src/sfntly/table/core/horizontal_metrics_table.h', 'cpp/src/sfntly/table/core/maximum_profile_table.cc', 'cpp/src/sfntly/table/core/maximum_profile_table.h', 'cpp/src/sfntly/table/core/name_table.cc', 'cpp/src/sfntly/table/core/name_table.h', 'cpp/src/sfntly/table/core/os2_table.cc', 'cpp/src/sfntly/table/core/os2_table.h', 'cpp/src/sfntly/table/font_data_table.cc', 'cpp/src/sfntly/table/font_data_table.h', 'cpp/src/sfntly/table/generic_table_builder.cc', 'cpp/src/sfntly/table/generic_table_builder.h', 'cpp/src/sfntly/table/header.cc', 'cpp/src/sfntly/table/header.h', 'cpp/src/sfntly/table/subtable.cc', 'cpp/src/sfntly/table/subtable.h', 'cpp/src/sfntly/table/subtable_container_table.h', 'cpp/src/sfntly/table/table.cc', 'cpp/src/sfntly/table/table.h', 'cpp/src/sfntly/table/table_based_table_builder.cc', 'cpp/src/sfntly/table/table_based_table_builder.h', 'cpp/src/sfntly/table/truetype/glyph_table.cc', 'cpp/src/sfntly/table/truetype/glyph_table.h', 'cpp/src/sfntly/table/truetype/loca_table.cc', 'cpp/src/sfntly/table/truetype/loca_table.h', 'cpp/src/sfntly/tag.cc', 'cpp/src/sfntly/tag.h', 'cpp/src/sample/chromium/font_subsetter.cc', 'cpp/src/sample/chromium/font_subsetter.h', 'cpp/src/sample/chromium/subsetter_impl.cc', 'cpp/src/sample/chromium/subsetter_impl.h', ], 'include_dirs': [ 'cpp/src', '../..', ], # This macro must be define to suppress the use of exception 'defines': [ 'SFNTLY_NO_EXCEPTION', ], 'dependencies' : [ '../icu/icu.gyp:icuuc', ], }, ] }
46.93617
72
0.660623
965
6,618
4.344041
0.118135
0.163168
0.312023
0.279819
0.906489
0.834447
0.776718
0.452767
0.171756
0
0
0.003879
0.181928
6,618
140
73
47.271429
0.77041
0.03294
0
0.02963
0
0
0.754027
0.726974
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
8
be19e355ad9c371528e1a47f45ab3413f167a57b
153
py
Python
python/dask_cudf/dask_cudf/io/__init__.py
ofaz/cudf
9fff633eabb75301437439e374d2419f0ca41ec0
[ "Apache-2.0" ]
1
2020-07-31T04:35:46.000Z
2020-07-31T04:35:46.000Z
python/dask_cudf/dask_cudf/io/__init__.py
ofaz/cudf
9fff633eabb75301437439e374d2419f0ca41ec0
[ "Apache-2.0" ]
17
2018-11-14T20:57:01.000Z
2019-02-19T22:42:23.000Z
python/dask_cudf/dask_cudf/io/__init__.py
ofaz/cudf
9fff633eabb75301437439e374d2419f0ca41ec0
[ "Apache-2.0" ]
null
null
null
from .csv import read_csv from .json import read_json from .orc import read_orc try: from .parquet import read_parquet except ImportError: pass
17
37
0.771242
24
153
4.75
0.458333
0.350877
0
0
0
0
0
0
0
0
0
0
0.189542
153
8
38
19.125
0.919355
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.142857
0.714286
0
0.714286
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
076cd89890786090fb2f7ce38fcc83c8844fcfe9
311
py
Python
txkoji/tests/test_messages.py
ktdreyer/txkoji
5feaaa5479d1cf42b81bc28ee1cbc1b9c19523fb
[ "MIT" ]
5
2017-12-13T02:44:02.000Z
2020-12-07T22:23:28.000Z
txkoji/tests/test_messages.py
ktdreyer/txkoji
5feaaa5479d1cf42b81bc28ee1cbc1b9c19523fb
[ "MIT" ]
5
2018-07-26T22:48:42.000Z
2020-06-05T19:52:32.000Z
txkoji/tests/test_messages.py
ktdreyer/txkoji
5feaaa5479d1cf42b81bc28ee1cbc1b9c19523fb
[ "MIT" ]
1
2020-01-31T10:49:23.000Z
2020-01-31T10:49:23.000Z
from txkoji.messages import TaskStateChange from txkoji.messages import BuildStateChange from txkoji.messages import TagUntag # TODO: write real tests def test_taskstatechange(): assert TaskStateChange def test_buildstatechange(): assert BuildStateChange def test_taguntag(): assert TagUntag
17.277778
44
0.800643
34
311
7.235294
0.411765
0.121951
0.219512
0.292683
0
0
0
0
0
0
0
0
0.154341
311
17
45
18.294118
0.935361
0.07074
0
0
0
0
0
0
0
0
0
0.058824
0.333333
1
0.333333
true
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
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
1
0
1
0
1
0
0
7
077c4424a1181a380321115acd27d7c5dc6bf051
21,136
py
Python
routelift_api/message_templates/views.py
BitMask-Technologies/route-lift-api
7ac78c6cce523fc5a3852dca7b289fe3a5f3afa8
[ "MIT" ]
null
null
null
routelift_api/message_templates/views.py
BitMask-Technologies/route-lift-api
7ac78c6cce523fc5a3852dca7b289fe3a5f3afa8
[ "MIT" ]
7
2021-06-24T16:12:09.000Z
2021-08-05T16:09:22.000Z
routelift_api/message_templates/views.py
BitMask-Technologies/route-lift-api
7ac78c6cce523fc5a3852dca7b289fe3a5f3afa8
[ "MIT" ]
null
null
null
import json from Users.utils import getUserByAccessToken from api_utils.validators import validateKeys, validateRole from api_utils.views import (badRequestResponse, internalServerErrorResponse, request_response, resourceNotFoundResponse, successResponse, unAuthenticatedResponse, unAuthorizedResponse, ) # import the logging library import logging from data_transformer.json_serializer import (transformMessageSetting, transformMessageSettings, transformMessageTemplate, transformMessageTemplates, transformNotificationTypes, ) from errors.views import ErrorCodes from message_templates.models import NotificationType from message_templates.utils import (create_message_template_type, create_template_setting, delete_message_setting, delete_messages_template, get_all_message_template, get_all_template_setting, get_message_setting_by_company, get_message_template_by_id, get_message_template_by_type, update_message_template_type, update_template_setting, valid_boolean_values, validate_message_template, ) logger = logging.getLogger(__name__) """Get an instance of a logger""" # Create your views here. def get_all_notification_types(request): """get all notification types so as to update tags""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get driver with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") notification_type = NotificationType.objects.all() if not notification_type: try: p = open("message_templates/notification_types.json", mode="r").read() except Exception as e: return request_response(resourceNotFoundResponse, ErrorCodes.FILE_DOES_NOT_EXISTS, "could not load notification types because " + str(e)) file = json.loads(p) # convert it to list of dictionary for rec in file: c = NotificationType(**rec) # insert each record to the db c.save() notification_type = NotificationType.objects.all() # fetch all saved records return successResponse(message="Feedback record found", body=transformNotificationTypes(notification_type)) def create_message_template(request): """create message template""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message_template" operation = "create" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") body = json.loads(request.body) # check if required fields are present in request payload missing_keys = validateKeys(payload=body, requiredKeys=['message', 'type']) if missing_keys: return request_response(badRequestResponse, ErrorCodes.MISSING_FIELDS, "The following key(s) are missing in the " f"request payload: {missing_keys}") message = body.get('message') notification_type = body.get('type') company = user.company_id if not validate_message_template(message, notification_type): return request_response(badRequestResponse, ErrorCodes.GENERIC_ERROR, "Wrong tags used") message_template, err = create_message_template_type(message, notification_type, company) if not message_template: return request_response(internalServerErrorResponse, ErrorCodes.MESSAGE_TEMPLATE_CREATION_FAILED, err) return successResponse(message="Message Template successfully created", body=transformMessageTemplate(message_template)) def get_all_message_templates(request): """retrieve single or all message template""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get driver with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message_template" operation = "read" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") message_templates, msg = get_all_message_template() if not message_templates: return request_response(resourceNotFoundResponse, ErrorCodes.NO_RECORD_FOUND, msg) return successResponse(message="{} RECORDS FOUND".format(len(message_templates)), body=transformMessageTemplates(message_templates)) def update_message_templates(request, message_template_id): """update driver record""" body = json.loads(request.body) # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message" operation = "update" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") # check if required fields are present in request payload missing_keys = validateKeys(payload=body, requiredKeys=['message', ]) if missing_keys: return request_response(badRequestResponse, ErrorCodes.MISSING_FIELDS, "The following key(s) are missing in the " f"request payload: {missing_keys}") message = body.get('message') notification_type = body.get('type') company = user.company_id message_template, msg = get_message_template_by_id(message_template_id) if message_template is None: return request_response(resourceNotFoundResponse, ErrorCodes.DRIVER_DOES_NOT_EXIST, msg) # validate input format if not validate_message_template(message, notification_type): return request_response(badRequestResponse, ErrorCodes.GENERIC_ERROR, "Wrong tags used") updated_message_template, err = update_message_template_type(message, notification_type, company, message_template) if not updated_message_template: return request_response(internalServerErrorResponse, ErrorCodes.MESSAGE_TEMPLATE_UPDATE_FAILED, err) return successResponse(message="Successfully updated Message template", body=transformMessageTemplate(updated_message_template)) def retrieve_message_template(request, message_template_id): """retrieve single message template""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token message_template = getUserByAccessToken(token) if message_template is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message" operation = "read" role = validateRole(message_template, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") message_template, msg = get_message_template_by_id(message_template_id) if not message_template: return request_response(resourceNotFoundResponse, ErrorCodes.DRIVER_DOES_NOT_EXIST, msg) return successResponse(message="Message template found", body=transformMessageTemplate(message_template)) def retrieve_message_template_by_type(request): """retrieve single message template by type""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token message_template = getUserByAccessToken(token) if message_template is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message" operation = "read" role = validateRole(message_template, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") type = request.GET.get('type') if not type: return request_response(badRequestResponse(), ErrorCodes.GENERIC_ERROR, "No message type selected") message_template, msg = get_message_template_by_type(type) if not message_template: return request_response(resourceNotFoundResponse, ErrorCodes.MESSAGE_TEMPLATE_DOES_NOT_EXIST, msg) return successResponse(message="Message template found", body=transformMessageTemplate(message_template)) def delete_message_template(request, message_template_id): """delete message template""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token message_template = getUserByAccessToken(token) if message_template is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message" operation = "read" role = validateRole(message_template, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") message_template, msg = get_message_template_by_id(message_template_id) if not message_template: return request_response(resourceNotFoundResponse, ErrorCodes.DRIVER_DOES_NOT_EXIST, msg) deleted_message_template, errmsg = delete_messages_template(message_template) if not deleted_message_template: return request_response(internalServerErrorResponse, ErrorCodes.DRIVER_DELETION_FAILED, errmsg) return successResponse(message="Message template deleted successfully.", body={}) def create_message_settings(request): """create message template settings for companny""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message_template" operation = "create" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") body = json.loads(request.body) # check if required fields are present in request payload missing_keys = validateKeys(payload=body, requiredKeys=['planned', 'ongoing', 'after', 'cancelled']) if missing_keys: return request_response(badRequestResponse, ErrorCodes.MISSING_FIELDS, "The following key(s) are missing in the " f"request payload: {missing_keys}") planned = body.get('planned') ongoing = body.get('ongoing') after = body.get('after') cancelled = body.get('cancelled') company = user.company_id if not valid_boolean_values([planned, ongoing, after, cancelled]): return request_response(badRequestResponse, ErrorCodes.GENERIC_ERROR, "Please select true/false") message_setting, err = create_template_setting(planned, ongoing, after, cancelled, company) if not message_setting: return request_response(internalServerErrorResponse, ErrorCodes.MESSAGE_SETTINGS_CREATION_FAILED, err) return successResponse(message="Message Template successfully created", body=transformMessageSetting(message_setting)) def get_all_message_settings(request): """retrieve single or all message settings""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get driver with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message_template" operation = "read" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") message_settings, msg = get_all_template_setting() if not message_settings: return request_response(resourceNotFoundResponse, ErrorCodes.NO_RECORD_FOUND, msg) return successResponse(message="{} RECORDS FOUND".format(len(message_settings)), body=transformMessageSettings(message_settings)) def update_message_settings(request): """update message settings for current company""" # TODO # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message" operation = "update" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") body = json.loads(request.body) # check if required fields are present in request payload missing_keys = validateKeys(payload=body, requiredKeys=['planned', 'ongoing', 'after', 'cancelled']) if missing_keys: return request_response(badRequestResponse, ErrorCodes.MISSING_FIELDS, "The following key(s) are missing in the " f"request payload: {missing_keys}") planned = body.get('planned') ongoing = body.get('ongoing') after = body.get('after') cancelled = body.get('cancelled') company = user.company_id if not valid_boolean_values([planned, ongoing, after, cancelled]): return request_response(badRequestResponse, ErrorCodes.GENERIC_ERROR, "Please select true/false") message_setting, msg = get_message_setting_by_company(company) if message_setting is None: return request_response(resourceNotFoundResponse, ErrorCodes.DRIVER_DOES_NOT_EXIST, msg) updated_message_setting, err = update_template_setting(planned, ongoing, after, cancelled, company, message_setting) if not updated_message_setting: return request_response(internalServerErrorResponse, ErrorCodes.MESSAGE_TEMPLATE_UPDATE_FAILED, err) return successResponse(message="Successfully updated Message template", body=transformMessageSetting(updated_message_setting)) def retrieve_message_settings(request): """retrieve single message template settings for current company""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message" operation = "read" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") message_settings, msg = get_message_setting_by_company(user.company_id) if not message_settings: return request_response(resourceNotFoundResponse, ErrorCodes.MESSAGE_SETTINGS_DOES_NOT_EXIST, msg) return successResponse(message="Message setting found", body=transformMessageSetting(message_settings)) def delete_message_settings(request): """delete message template""" # verify that the calling driver has a valid token token = request.headers.get('Token') if token is None: return request_response(badRequestResponse, ErrorCodes.INVALID_CREDENTIALS, "Token is missing in the request headers") # get user with access token user = getUserByAccessToken(token) if user is None: return request_response(unAuthenticatedResponse, ErrorCodes.UNAUTHENTICATED_REQUEST, "Your session has expired. " "Please login.") resource = "message" operation = "read" role = validateRole(user, resource, operation) if role is False: return request_response(unAuthorizedResponse, ErrorCodes.UNAUTHORIZED_REQUEST, "Unauthorized to perform the operation") message_setting, msg = get_message_setting_by_company(user.company_id) if not message_setting: return request_response(resourceNotFoundResponse, ErrorCodes.MESSAGE_SETTINGS_DOES_NOT_EXIST, msg) deleted_message_settings, errmsg = delete_message_setting(message_setting) if not deleted_message_settings: return request_response(internalServerErrorResponse, ErrorCodes.MESSAGE_SETTINGS_DELETION_FAILED, errmsg) return successResponse(message="Message template settings deleted successfully.", body={})
47.819005
127
0.691096
2,155
21,136
6.59536
0.083063
0.082319
0.088651
0.034757
0.82706
0.799057
0.783508
0.754872
0.72884
0.714346
0
0
0.242761
21,136
441
128
47.927438
0.888035
0.082939
0
0.713311
0
0
0.132173
0.002129
0
0
0
0.002268
0
1
0.040956
false
0
0.030717
0
0.317406
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
0790cc8caaa7097ce0cbef94d482c8bd7981a467
74
py
Python
gnn/models/models.py
cwfparsonson/gnn
ed41968b7253382d0a791608e042c64b97168071
[ "Apache-2.0" ]
null
null
null
gnn/models/models.py
cwfparsonson/gnn
ed41968b7253382d0a791608e042c64b97168071
[ "Apache-2.0" ]
null
null
null
gnn/models/models.py
cwfparsonson/gnn
ed41968b7253382d0a791608e042c64b97168071
[ "Apache-2.0" ]
1
2021-11-20T18:44:43.000Z
2021-11-20T18:44:43.000Z
from gnn.models.graph_conv import GCN from gnn.models.gat_conv import GAT
24.666667
37
0.837838
14
74
4.285714
0.571429
0.233333
0.433333
0
0
0
0
0
0
0
0
0
0.108108
74
2
38
37
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
07e5b34e8dbe74501906720e647e969bc74f4e6a
36,812
py
Python
integration_tests/data_wofs_summary.py
BuildJet/datacube-explorer
b3f7aae31a50f429bd97385fe62aefb77bbf6444
[ "Apache-2.0" ]
null
null
null
integration_tests/data_wofs_summary.py
BuildJet/datacube-explorer
b3f7aae31a50f429bd97385fe62aefb77bbf6444
[ "Apache-2.0" ]
null
null
null
integration_tests/data_wofs_summary.py
BuildJet/datacube-explorer
b3f7aae31a50f429bd97385fe62aefb77bbf6444
[ "Apache-2.0" ]
null
null
null
from collections import Counter from datetime import datetime from pathlib import Path import shapely.wkt from psycopg2.tz import FixedOffsetTimezone from cubedash.summary import TimePeriodOverview from datacube.model import Range # # This is a dump of the wofs_summary overview for all-time. # It was consistently failing because the valid footprint becomes invalid when # projected to wgs84. # (perhaps the non-footprint data can be thrown away in the future if too unmaintable) # wofs_time_summary = TimePeriodOverview( product_name="wofs_summary", year=None, month=None, day=None, dataset_count=1244, timeline_dataset_counts=Counter( { datetime( 1970, 1, 1, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 1244, datetime( 1970, 1, 2, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 3, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 4, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 5, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 6, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 7, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 8, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 9, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 10, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 11, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 12, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 13, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 14, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 15, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 16, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 17, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 18, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 19, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 20, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 21, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 22, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 23, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 24, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 25, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 26, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 27, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 28, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 29, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 30, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, datetime( 1970, 1, 31, 0, 0, tzinfo=FixedOffsetTimezone(offset=600, name=None) ): 0, } ), region_dataset_counts=Counter( { "-10_-11": 1, "-10_-12": 1, "-10_-13": 1, "-10_-14": 1, "-10_-15": 1, "-10_-16": 1, "-10_-17": 1, "-10_-18": 1, "-10_-19": 1, "-10_-20": 1, "-10_-21": 1, "-10_-22": 1, "-10_-23": 1, "-10_-24": 1, "-10_-25": 1, "-10_-26": 1, "-10_-27": 1, "-10_-28": 1, "-10_-29": 1, "-10_-30": 1, "-10_-31": 1, "-10_-32": 1, "-10_-33": 1, "-10_-34": 1, "-10_-35": 1, "-10_-36": 1, "-10_-37": 1, "-10_-38": 1, "-10_-39": 1, "-10_-40": 1, "-11_-11": 1, "-11_-12": 1, "-11_-13": 1, "-11_-14": 1, "-11_-15": 1, "-11_-16": 1, "-11_-17": 1, "-11_-18": 1, "-11_-19": 1, "-11_-20": 1, "-11_-21": 1, "-11_-22": 1, "-11_-23": 1, "-11_-24": 1, "-11_-25": 1, "-11_-26": 1, "-11_-27": 1, "-11_-28": 1, "-11_-29": 1, "-11_-30": 1, "-11_-31": 1, "-11_-32": 1, "-11_-33": 1, "-11_-34": 1, "-11_-35": 1, "-11_-36": 1, "-11_-37": 1, "-11_-38": 1, "-11_-39": 1, "-11_-40": 1, "-12_-11": 1, "-12_-12": 1, "-12_-13": 1, "-12_-14": 1, "-12_-15": 1, "-12_-16": 1, "-12_-17": 1, "-12_-18": 1, "-12_-19": 1, "-12_-20": 1, "-12_-21": 1, "-12_-22": 1, "-12_-23": 1, "-12_-24": 1, "-12_-25": 1, "-12_-26": 1, "-12_-27": 1, "-12_-28": 1, "-12_-29": 1, "-12_-30": 1, "-12_-31": 1, "-12_-32": 1, "-12_-33": 1, "-12_-34": 1, "-12_-35": 1, "-12_-36": 1, "-12_-37": 1, "-12_-38": 1, "-12_-39": 1, "-12_-40": 1, "-12_-41": 1, "-12_-42": 1, "-13_-11": 1, "-13_-12": 1, "-13_-13": 1, "-13_-14": 1, "-13_-15": 1, "-13_-16": 1, "-13_-17": 1, "-13_-19": 1, "-13_-20": 1, "-13_-21": 1, "-13_-22": 1, "-13_-23": 1, "-13_-24": 1, "-13_-25": 1, "-13_-26": 1, "-13_-27": 1, "-13_-28": 1, "-13_-29": 1, "-13_-30": 1, "-13_-31": 1, "-13_-32": 1, "-13_-33": 1, "-13_-34": 1, "-13_-35": 1, "-13_-36": 1, "-13_-37": 1, "-13_-38": 1, "-13_-39": 1, "-13_-40": 1, "-13_-41": 1, "-13_-42": 1, "-14_-12": 1, "-14_-13": 1, "-14_-15": 1, "-14_-16": 1, "-14_-17": 1, "-14_-18": 1, "-14_-19": 1, "-14_-20": 1, "-14_-21": 1, "-14_-22": 1, "-14_-23": 1, "-14_-24": 1, "-14_-25": 1, "-14_-26": 1, "-14_-27": 1, "-14_-28": 1, "-14_-29": 1, "-14_-30": 1, "-14_-31": 1, "-14_-32": 1, "-14_-33": 1, "-14_-34": 1, "-14_-35": 1, "-14_-36": 1, "-14_-37": 1, "-14_-38": 1, "-14_-39": 1, "-14_-40": 1, "-14_-41": 1, "-15_-12": 1, "-15_-13": 1, "-15_-19": 1, "-15_-20": 1, "-15_-21": 1, "-15_-22": 1, "-15_-23": 1, "-15_-24": 1, "-15_-25": 1, "-15_-26": 1, "-15_-27": 1, "-15_-28": 1, "-15_-29": 1, "-15_-30": 1, "-15_-31": 1, "-15_-32": 1, "-15_-33": 1, "-15_-34": 1, "-15_-35": 1, "-15_-36": 1, "-15_-37": 1, "-15_-38": 1, "-15_-39": 1, "-15_-40": 1, "-16_-12": 1, "-16_-13": 1, "-16_-19": 1, "-16_-20": 1, "-16_-21": 1, "-16_-22": 1, "-16_-23": 1, "-16_-24": 1, "-16_-25": 1, "-16_-26": 1, "-16_-27": 1, "-16_-28": 1, "-16_-29": 1, "-16_-30": 1, "-16_-31": 1, "-16_-32": 1, "-16_-33": 1, "-16_-34": 1, "-16_-35": 1, "-16_-36": 1, "-16_-37": 1, "-16_-38": 1, "-16_-39": 1, "-16_-40": 1, "-17_-12": 1, "-17_-13": 1, "-17_-22": 1, "-17_-23": 1, "-17_-24": 1, "-17_-25": 1, "-17_-26": 1, "-17_-27": 1, "-17_-28": 1, "-17_-29": 1, "-17_-30": 1, "-17_-31": 1, "-17_-32": 1, "-17_-33": 1, "-17_-34": 1, "-17_-35": 1, "-17_-36": 1, "-17_-37": 1, "-17_-38": 1, "-17_-39": 1, "-17_-40": 1, "-18_-22": 1, "-18_-23": 1, "-18_-24": 1, "-18_-25": 1, "-18_-26": 1, "-18_-27": 1, "-18_-28": 1, "-18_-29": 1, "-18_-30": 1, "-18_-31": 1, "-18_-32": 1, "-18_-33": 1, "-18_-34": 1, "-18_-35": 1, "-18_-36": 1, "-18_-37": 1, "-18_-38": 1, "-18_-39": 1, "-18_-40": 1, "-19_-22": 1, "-19_-23": 1, "-19_-24": 1, "-19_-25": 1, "-19_-26": 1, "-19_-27": 1, "-19_-28": 1, "-19_-29": 1, "-19_-30": 1, "-19_-31": 1, "-19_-32": 1, "-19_-33": 1, "-19_-34": 1, "-19_-35": 1, "-1_-11": 1, "-1_-12": 1, "-1_-13": 1, "-1_-14": 1, "-1_-15": 1, "-1_-16": 1, "-1_-17": 1, "-1_-18": 1, "-1_-19": 1, "-1_-20": 1, "-1_-21": 1, "-1_-22": 1, "-1_-23": 1, "-1_-24": 1, "-1_-25": 1, "-1_-26": 1, "-1_-27": 1, "-1_-28": 1, "-1_-29": 1, "-1_-30": 1, "-1_-31": 1, "-1_-32": 1, "-1_-33": 1, "-1_-34": 1, "-1_-35": 1, "-1_-36": 1, "-1_-37": 1, "-20_-24": 1, "-20_-25": 1, "-20_-26": 1, "-20_-27": 1, "-20_-28": 1, "-2_-11": 1, "-2_-12": 1, "-2_-13": 1, "-2_-14": 1, "-2_-15": 1, "-2_-16": 1, "-2_-17": 1, "-2_-18": 1, "-2_-19": 1, "-2_-20": 1, "-2_-21": 1, "-2_-22": 1, "-2_-23": 1, "-2_-24": 1, "-2_-25": 1, "-2_-26": 1, "-2_-27": 1, "-2_-28": 1, "-2_-29": 1, "-2_-30": 1, "-2_-31": 1, "-2_-32": 1, "-2_-33": 1, "-2_-34": 1, "-2_-35": 1, "-2_-36": 1, "-3_-11": 1, "-3_-12": 1, "-3_-13": 1, "-3_-14": 1, "-3_-15": 1, "-3_-16": 1, "-3_-17": 1, "-3_-18": 1, "-3_-19": 1, "-3_-20": 1, "-3_-21": 1, "-3_-22": 1, "-3_-23": 1, "-3_-24": 1, "-3_-25": 1, "-3_-26": 1, "-3_-27": 1, "-3_-28": 1, "-3_-29": 1, "-3_-30": 1, "-3_-31": 1, "-3_-32": 1, "-3_-33": 1, "-3_-34": 1, "-3_-35": 1, "-3_-36": 1, "-4_-14": 1, "-4_-15": 1, "-4_-16": 1, "-4_-17": 1, "-4_-18": 1, "-4_-19": 1, "-4_-20": 1, "-4_-21": 1, "-4_-22": 1, "-4_-23": 1, "-4_-24": 1, "-4_-25": 1, "-4_-26": 1, "-4_-27": 1, "-4_-28": 1, "-4_-29": 1, "-4_-30": 1, "-4_-31": 1, "-4_-32": 1, "-4_-33": 1, "-4_-34": 1, "-4_-35": 1, "-4_-36": 1, "-4_-37": 1, "-4_-38": 1, "-5_-13": 1, "-5_-14": 1, "-5_-15": 1, "-5_-16": 1, "-5_-17": 1, "-5_-18": 1, "-5_-19": 1, "-5_-20": 1, "-5_-21": 1, "-5_-22": 1, "-5_-23": 1, "-5_-24": 1, "-5_-25": 1, "-5_-26": 1, "-5_-27": 1, "-5_-28": 1, "-5_-29": 1, "-5_-30": 1, "-5_-31": 1, "-5_-32": 1, "-5_-33": 1, "-5_-34": 1, "-5_-35": 1, "-5_-36": 1, "-5_-37": 1, "-5_-38": 1, "-6_-13": 1, "-6_-14": 1, "-6_-15": 1, "-6_-16": 1, "-6_-17": 1, "-6_-18": 1, "-6_-19": 1, "-6_-20": 1, "-6_-21": 1, "-6_-22": 1, "-6_-23": 1, "-6_-24": 1, "-6_-25": 1, "-6_-26": 1, "-6_-27": 1, "-6_-28": 1, "-6_-29": 1, "-6_-30": 1, "-6_-31": 1, "-6_-32": 1, "-6_-33": 1, "-6_-34": 1, "-6_-35": 1, "-6_-36": 1, "-6_-37": 1, "-6_-38": 1, "-7_-11": 1, "-7_-12": 1, "-7_-13": 1, "-7_-14": 1, "-7_-15": 1, "-7_-16": 1, "-7_-17": 1, "-7_-18": 1, "-7_-19": 1, "-7_-20": 1, "-7_-21": 1, "-7_-22": 1, "-7_-23": 1, "-7_-24": 1, "-7_-25": 1, "-7_-26": 1, "-7_-27": 1, "-7_-28": 1, "-7_-29": 1, "-7_-30": 1, "-7_-31": 1, "-7_-32": 1, "-7_-33": 1, "-7_-34": 1, "-7_-35": 1, "-7_-36": 1, "-7_-37": 1, "-7_-38": 1, "-7_-39": 1, "-7_-40": 1, "-8_-11": 1, "-8_-12": 1, "-8_-13": 1, "-8_-14": 1, "-8_-15": 1, "-8_-16": 1, "-8_-17": 1, "-8_-18": 1, "-8_-19": 1, "-8_-20": 1, "-8_-21": 1, "-8_-22": 1, "-8_-23": 1, "-8_-24": 1, "-8_-25": 1, "-8_-26": 1, "-8_-27": 1, "-8_-28": 1, "-8_-29": 1, "-8_-30": 1, "-8_-31": 1, "-8_-32": 1, "-8_-33": 1, "-8_-34": 1, "-8_-35": 1, "-8_-36": 1, "-8_-37": 1, "-8_-38": 1, "-8_-39": 1, "-8_-40": 1, "-9_-11": 1, "-9_-12": 1, "-9_-13": 1, "-9_-14": 1, "-9_-15": 1, "-9_-16": 1, "-9_-17": 1, "-9_-18": 1, "-9_-19": 1, "-9_-20": 1, "-9_-21": 1, "-9_-22": 1, "-9_-23": 1, "-9_-24": 1, "-9_-25": 1, "-9_-26": 1, "-9_-27": 1, "-9_-28": 1, "-9_-29": 1, "-9_-30": 1, "-9_-31": 1, "-9_-32": 1, "-9_-33": 1, "-9_-34": 1, "-9_-35": 1, "-9_-36": 1, "-9_-37": 1, "-9_-38": 1, "-9_-39": 1, "-9_-40": 1, "0_-11": 1, "0_-12": 1, "0_-13": 1, "0_-14": 1, "0_-15": 1, "0_-16": 1, "0_-17": 1, "0_-18": 1, "0_-19": 1, "0_-20": 1, "0_-21": 1, "0_-22": 1, "0_-23": 1, "0_-24": 1, "0_-25": 1, "0_-26": 1, "0_-27": 1, "0_-28": 1, "0_-29": 1, "0_-30": 1, "0_-31": 1, "0_-32": 1, "0_-33": 1, "0_-34": 1, "0_-35": 1, "0_-36": 1, "0_-37": 1, "0_-38": 1, "0_-39": 1, "10_-11": 1, "10_-12": 1, "10_-13": 1, "10_-14": 1, "10_-15": 1, "10_-16": 1, "10_-17": 1, "10_-18": 1, "10_-19": 1, "10_-20": 1, "10_-21": 1, "10_-22": 1, "10_-23": 1, "10_-24": 1, "10_-25": 1, "10_-26": 1, "10_-27": 1, "10_-28": 1, "10_-29": 1, "10_-30": 1, "10_-31": 1, "10_-32": 1, "10_-33": 1, "10_-34": 1, "10_-35": 1, "10_-36": 1, "10_-37": 1, "10_-38": 1, "10_-39": 1, "10_-40": 1, "10_-41": 1, "10_-42": 1, "10_-43": 1, "10_-44": 1, "10_-45": 1, "10_-46": 1, "10_-47": 1, "10_-48": 1, "10_-49": 1, "11_-11": 1, "11_-12": 1, "11_-13": 1, "11_-14": 1, "11_-15": 1, "11_-16": 1, "11_-17": 1, "11_-18": 1, "11_-19": 1, "11_-20": 1, "11_-21": 1, "11_-22": 1, "11_-23": 1, "11_-24": 1, "11_-25": 1, "11_-26": 1, "11_-27": 1, "11_-28": 1, "11_-29": 1, "11_-30": 1, "11_-31": 1, "11_-32": 1, "11_-33": 1, "11_-34": 1, "11_-35": 1, "11_-36": 1, "11_-37": 1, "11_-38": 1, "11_-39": 1, "11_-40": 1, "11_-41": 1, "11_-42": 1, "11_-43": 1, "11_-44": 1, "11_-45": 1, "11_-46": 1, "11_-47": 1, "11_-48": 1, "11_-49": 1, "12_-11": 1, "12_-12": 1, "12_-13": 1, "12_-14": 1, "12_-15": 1, "12_-16": 1, "12_-17": 1, "12_-18": 1, "12_-19": 1, "12_-20": 1, "12_-21": 1, "12_-22": 1, "12_-23": 1, "12_-24": 1, "12_-25": 1, "12_-26": 1, "12_-27": 1, "12_-28": 1, "12_-29": 1, "12_-30": 1, "12_-31": 1, "12_-32": 1, "12_-33": 1, "12_-34": 1, "12_-35": 1, "12_-36": 1, "12_-37": 1, "12_-38": 1, "12_-39": 1, "12_-40": 1, "12_-41": 1, "12_-42": 1, "12_-43": 1, "12_-44": 1, "12_-45": 1, "12_-46": 1, "12_-47": 1, "12_-48": 1, "12_-49": 1, "13_-12": 1, "13_-13": 1, "13_-14": 1, "13_-15": 1, "13_-16": 1, "13_-17": 1, "13_-18": 1, "13_-19": 1, "13_-20": 1, "13_-21": 1, "13_-22": 1, "13_-23": 1, "13_-24": 1, "13_-25": 1, "13_-26": 1, "13_-27": 1, "13_-28": 1, "13_-29": 1, "13_-30": 1, "13_-31": 1, "13_-32": 1, "13_-33": 1, "13_-34": 1, "13_-35": 1, "13_-36": 1, "13_-37": 1, "13_-38": 1, "13_-39": 1, "13_-40": 1, "13_-41": 1, "13_-42": 1, "13_-43": 1, "13_-44": 1, "13_-45": 1, "13_-46": 1, "13_-47": 1, "13_-48": 1, "13_-49": 1, "14_-12": 1, "14_-13": 1, "14_-14": 1, "14_-15": 1, "14_-16": 1, "14_-17": 1, "14_-18": 1, "14_-19": 1, "14_-20": 1, "14_-21": 1, "14_-22": 1, "14_-23": 1, "14_-24": 1, "14_-25": 1, "14_-26": 1, "14_-27": 1, "14_-28": 1, "14_-29": 1, "14_-30": 1, "14_-31": 1, "14_-32": 1, "14_-33": 1, "14_-34": 1, "14_-35": 1, "14_-36": 1, "14_-37": 1, "14_-38": 1, "14_-39": 1, "14_-40": 1, "14_-41": 1, "14_-42": 1, "14_-43": 1, "14_-44": 1, "14_-45": 1, "14_-46": 1, "14_-47": 1, "14_-48": 1, "14_-49": 1, "14_-50": 1, "15_-12": 1, "15_-13": 1, "15_-14": 1, "15_-15": 1, "15_-16": 1, "15_-17": 1, "15_-18": 1, "15_-19": 1, "15_-20": 1, "15_-21": 1, "15_-22": 1, "15_-23": 1, "15_-24": 1, "15_-25": 1, "15_-26": 1, "15_-27": 1, "15_-28": 1, "15_-29": 1, "15_-30": 1, "15_-31": 1, "15_-32": 1, "15_-33": 1, "15_-34": 1, "15_-35": 1, "15_-36": 1, "15_-37": 1, "15_-38": 1, "15_-39": 1, "15_-40": 1, "15_-41": 1, "15_-42": 1, "15_-43": 1, "15_-44": 1, "15_-45": 1, "15_-46": 1, "15_-47": 1, "15_-48": 1, "15_-49": 1, "16_-12": 1, "16_-13": 1, "16_-14": 1, "16_-15": 1, "16_-16": 1, "16_-17": 1, "16_-18": 1, "16_-19": 1, "16_-20": 1, "16_-21": 1, "16_-22": 1, "16_-23": 1, "16_-24": 1, "16_-25": 1, "16_-26": 1, "16_-27": 1, "16_-28": 1, "16_-29": 1, "16_-30": 1, "16_-31": 1, "16_-32": 1, "16_-33": 1, "16_-34": 1, "16_-35": 1, "16_-36": 1, "16_-37": 1, "16_-38": 1, "16_-39": 1, "16_-40": 1, "16_-41": 1, "16_-42": 1, "16_-43": 1, "16_-44": 1, "16_-45": 1, "16_-46": 1, "17_-12": 1, "17_-13": 1, "17_-16": 1, "17_-17": 1, "17_-18": 1, "17_-19": 1, "17_-20": 1, "17_-21": 1, "17_-22": 1, "17_-23": 1, "17_-24": 1, "17_-25": 1, "17_-26": 1, "17_-27": 1, "17_-28": 1, "17_-29": 1, "17_-30": 1, "17_-31": 1, "17_-32": 1, "17_-33": 1, "17_-34": 1, "17_-35": 1, "17_-36": 1, "17_-37": 1, "17_-38": 1, "17_-39": 1, "17_-40": 1, "17_-41": 1, "17_-42": 1, "17_-43": 1, "17_-44": 1, "18_-12": 1, "18_-13": 1, "18_-18": 1, "18_-19": 1, "18_-20": 1, "18_-21": 1, "18_-22": 1, "18_-23": 1, "18_-24": 1, "18_-25": 1, "18_-26": 1, "18_-27": 1, "18_-28": 1, "18_-29": 1, "18_-30": 1, "18_-31": 1, "18_-32": 1, "18_-33": 1, "18_-34": 1, "18_-35": 1, "18_-36": 1, "18_-37": 1, "18_-38": 1, "18_-39": 1, "18_-40": 1, "18_-41": 1, "18_-42": 1, "19_-12": 1, "19_-13": 1, "19_-14": 1, "19_-15": 1, "19_-18": 1, "19_-19": 1, "19_-20": 1, "19_-21": 1, "19_-22": 1, "19_-23": 1, "19_-24": 1, "19_-25": 1, "19_-26": 1, "19_-27": 1, "19_-28": 1, "19_-29": 1, "19_-30": 1, "19_-31": 1, "19_-32": 1, "19_-33": 1, "19_-34": 1, "19_-35": 1, "19_-36": 1, "19_-37": 1, "19_-38": 1, "19_-39": 1, "19_-40": 1, "1_-11": 1, "1_-12": 1, "1_-13": 1, "1_-14": 1, "1_-15": 1, "1_-16": 1, "1_-17": 1, "1_-18": 1, "1_-19": 1, "1_-20": 1, "1_-21": 1, "1_-22": 1, "1_-23": 1, "1_-24": 1, "1_-25": 1, "1_-26": 1, "1_-27": 1, "1_-28": 1, "1_-29": 1, "1_-30": 1, "1_-31": 1, "1_-32": 1, "1_-33": 1, "1_-34": 1, "1_-35": 1, "1_-36": 1, "1_-37": 1, "1_-38": 1, "1_-39": 1, "1_-40": 1, "1_-41": 1, "20_-12": 1, "20_-13": 1, "20_-14": 1, "20_-15": 1, "20_-18": 1, "20_-19": 1, "20_-20": 1, "20_-21": 1, "20_-22": 1, "20_-23": 1, "20_-24": 1, "20_-25": 1, "20_-26": 1, "20_-27": 1, "20_-28": 1, "20_-29": 1, "20_-30": 1, "20_-31": 1, "20_-32": 1, "20_-33": 1, "20_-34": 1, "20_-35": 1, "20_-36": 1, "20_-37": 1, "20_-38": 1, "20_-39": 1, "20_-40": 1, "21_-13": 1, "21_-14": 1, "21_-15": 1, "21_-20": 1, "21_-21": 1, "21_-22": 1, "21_-23": 1, "21_-24": 1, "21_-25": 1, "21_-26": 1, "21_-27": 1, "21_-28": 1, "21_-29": 1, "21_-30": 1, "21_-31": 1, "21_-32": 1, "21_-33": 1, "21_-34": 1, "22_-13": 1, "22_-14": 1, "22_-15": 1, "22_-16": 1, "22_-20": 1, "22_-21": 1, "22_-22": 1, "22_-23": 1, "22_-25": 1, "22_-26": 1, "22_-27": 1, "22_-28": 1, "22_-29": 1, "23_-13": 1, "23_-14": 1, "23_-15": 1, "23_-16": 1, "23_-20": 1, "24_-13": 1, "24_-14": 1, "24_-15": 1, "24_-16": 1, "2_-12": 1, "2_-13": 1, "2_-14": 1, "2_-15": 1, "2_-16": 1, "2_-17": 1, "2_-18": 1, "2_-19": 1, "2_-20": 1, "2_-21": 1, "2_-22": 1, "2_-23": 1, "2_-24": 1, "2_-25": 1, "2_-26": 1, "2_-27": 1, "2_-28": 1, "2_-29": 1, "2_-30": 1, "2_-31": 1, "2_-32": 1, "2_-33": 1, "2_-34": 1, "2_-35": 1, "2_-36": 1, "2_-37": 1, "2_-38": 1, "2_-39": 1, "2_-40": 1, "2_-41": 1, "3_-12": 1, "3_-13": 1, "3_-14": 1, "3_-15": 1, "3_-16": 1, "3_-17": 1, "3_-18": 1, "3_-19": 1, "3_-20": 1, "3_-21": 1, "3_-22": 1, "3_-23": 1, "3_-24": 1, "3_-25": 1, "3_-26": 1, "3_-27": 1, "3_-28": 1, "3_-29": 1, "3_-30": 1, "3_-31": 1, "3_-32": 1, "3_-33": 1, "3_-34": 1, "3_-35": 1, "3_-36": 1, "3_-37": 1, "3_-38": 1, "3_-39": 1, "3_-40": 1, "3_-41": 1, "4_-11": 1, "4_-12": 1, "4_-13": 1, "4_-14": 1, "4_-15": 1, "4_-16": 1, "4_-17": 1, "4_-18": 1, "4_-19": 1, "4_-20": 1, "4_-21": 1, "4_-22": 1, "4_-23": 1, "4_-24": 1, "4_-25": 1, "4_-26": 1, "4_-27": 1, "4_-28": 1, "4_-29": 1, "4_-30": 1, "4_-31": 1, "4_-32": 1, "4_-33": 1, "4_-34": 1, "4_-35": 1, "4_-36": 1, "4_-37": 1, "4_-38": 1, "4_-39": 1, "4_-40": 1, "4_-41": 1, "5_-11": 1, "5_-12": 1, "5_-13": 1, "5_-14": 1, "5_-15": 1, "5_-16": 1, "5_-17": 1, "5_-18": 1, "5_-19": 1, "5_-20": 1, "5_-21": 1, "5_-22": 1, "5_-23": 1, "5_-24": 1, "5_-25": 1, "5_-26": 1, "5_-27": 1, "5_-28": 1, "5_-29": 1, "5_-30": 1, "5_-31": 1, "5_-32": 1, "5_-33": 1, "5_-34": 1, "5_-35": 1, "5_-36": 1, "5_-37": 1, "5_-38": 1, "5_-39": 1, "5_-40": 1, "5_-41": 1, "5_-42": 1, "6_-12": 1, "6_-13": 1, "6_-14": 1, "6_-15": 1, "6_-16": 1, "6_-17": 1, "6_-18": 1, "6_-19": 1, "6_-20": 1, "6_-21": 1, "6_-22": 1, "6_-23": 1, "6_-24": 1, "6_-25": 1, "6_-26": 1, "6_-27": 1, "6_-28": 1, "6_-29": 1, "6_-30": 1, "6_-31": 1, "6_-32": 1, "6_-33": 1, "6_-34": 1, "6_-35": 1, "6_-36": 1, "6_-37": 1, "6_-38": 1, "6_-39": 1, "6_-40": 1, "6_-41": 1, "6_-42": 1, "6_-43": 1, "6_-44": 1, "7_-15": 1, "7_-16": 1, "7_-17": 1, "7_-18": 1, "7_-19": 1, "7_-20": 1, "7_-21": 1, "7_-22": 1, "7_-23": 1, "7_-24": 1, "7_-25": 1, "7_-26": 1, "7_-27": 1, "7_-28": 1, "7_-29": 1, "7_-30": 1, "7_-31": 1, "7_-32": 1, "7_-33": 1, "7_-34": 1, "7_-35": 1, "7_-36": 1, "7_-37": 1, "7_-38": 1, "7_-39": 1, "7_-40": 1, "7_-41": 1, "7_-42": 1, "7_-43": 1, "7_-44": 1, "8_-14": 1, "8_-15": 1, "8_-16": 1, "8_-17": 1, "8_-18": 1, "8_-19": 1, "8_-20": 1, "8_-21": 1, "8_-22": 1, "8_-23": 1, "8_-24": 1, "8_-25": 1, "8_-26": 1, "8_-27": 1, "8_-28": 1, "8_-29": 1, "8_-30": 1, "8_-31": 1, "8_-32": 1, "8_-33": 1, "8_-34": 1, "8_-35": 1, "8_-36": 1, "8_-37": 1, "8_-38": 1, "8_-39": 1, "8_-40": 1, "8_-41": 1, "8_-42": 1, "8_-43": 1, "8_-44": 1, "8_-45": 1, "8_-46": 1, "8_-48": 1, "8_-49": 1, "9_-11": 1, "9_-12": 1, "9_-13": 1, "9_-14": 1, "9_-15": 1, "9_-16": 1, "9_-17": 1, "9_-18": 1, "9_-19": 1, "9_-20": 1, "9_-21": 1, "9_-22": 1, "9_-23": 1, "9_-24": 1, "9_-25": 1, "9_-26": 1, "9_-27": 1, "9_-28": 1, "9_-29": 1, "9_-30": 1, "9_-31": 1, "9_-32": 1, "9_-33": 1, "9_-34": 1, "9_-35": 1, "9_-36": 1, "9_-37": 1, "9_-38": 1, "9_-39": 1, "9_-40": 1, "9_-41": 1, "9_-42": 1, "9_-43": 1, "9_-44": 1, "9_-45": 1, "9_-46": 1, "9_-47": 1, "9_-48": 1, "9_-49": 1, } ), timeline_period="day", time_range=Range( begin=datetime( 1970, 1, 1, 0, 30, tzinfo=FixedOffsetTimezone(offset=600, name=None) ), end=datetime( 1970, 2, 1, 0, 30, tzinfo=FixedOffsetTimezone(offset=600, name=None) ), ), footprint_geometry=( shapely.wkt.load( Path(__file__) .parent.joinpath("data/wofs-summary-odd-footprint.wkt") .open("r") ) ), footprint_crs="EPSG:3577", footprint_count=1244, newest_dataset_creation_time=datetime( 2018, 7, 4, 11, 24, 25, 392_500, tzinfo=FixedOffsetTimezone(offset=600, name=None), ), crses={"EPSG:3577"}, size_bytes=0, summary_gen_time=datetime( 2019, 2, 22, 21, 46, 16, 853_756, tzinfo=FixedOffsetTimezone(offset=660, name=None), ), product_refresh_time=datetime( 2019, 2, 22, 21, 22, 16, 853_756, tzinfo=FixedOffsetTimezone(offset=660, name=None), ), )
25.942213
86
0.268825
4,348
36,812
1.982981
0.034269
0.025748
0.129436
0.134076
0.764208
0.761076
0.751334
0.751334
0.736024
0.708536
0
0.356833
0.53105
36,812
1,418
87
25.960508
0.142617
0.006492
0
0.060326
0
0
0.204343
0.000957
0
0
0
0
0
1
0
false
0
0.004968
0
0.004968
0.002839
0
0
1
null
0
0
0
0
1
1
1
1
1
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
07f1bbbf89e744ec6f178ca57b4c0125f54c397c
7,681
py
Python
IfxPy/tests/test_156_FetchAssocNestedSelects_01.py
deokershesh/IfxPy
7c44a2aea85c115b6f595ffa82c038f660fbf1ad
[ "Apache-2.0" ]
null
null
null
IfxPy/tests/test_156_FetchAssocNestedSelects_01.py
deokershesh/IfxPy
7c44a2aea85c115b6f595ffa82c038f660fbf1ad
[ "Apache-2.0" ]
null
null
null
IfxPy/tests/test_156_FetchAssocNestedSelects_01.py
deokershesh/IfxPy
7c44a2aea85c115b6f595ffa82c038f660fbf1ad
[ "Apache-2.0" ]
null
null
null
# # # # This test will use a lot of the heap size allocated # increase the application heap size. import unittest, sys import IfxPy import config from testfunctions import IfxPyTestFunctions class IfxPyTestCase(unittest.TestCase): def test_156_FetchAssocNestedSelects_01(self): obj = IfxPyTestFunctions() obj.assert_expect(self.run_test_156) def run_test_156(self): conn = IfxPy.connect(config.ConnStr, config.user, config.password) server = IfxPy.server_info( conn ) if (server.DBMS_NAME[0:3] == 'Inf'): op = {IfxPy.ATTR_CASE: IfxPy.CASE_UPPER} IfxPy.set_option(conn, op, 1) result = IfxPy.exec_immediate(conn, "select * from staff") row = IfxPy.fetch_assoc(result) count = 1 while ( row ): if (row['YEARS'] == None): row['YEARS'] = '' if (row['COMM'] == None): row['COMM'] = '' print row['ID'],row['NAME'],row['JOB'],row['YEARS'], row['SALARY'], row['COMM'] row = IfxPy.fetch_assoc(result) result2 = IfxPy.exec_immediate(conn,"select * from department where substr(deptno,1,1) in ('A','B','C','D','E')") row2 = IfxPy.fetch_assoc(result2) while ( row2 ): if (row2['MGRNO'] == None): row2['MGRNO'] = '' print row2['DEPTNO'], row2['DEPTNAME'], row2['MGRNO'], row2['ADMRDEPT'], row2['LOCATION'] row2 = IfxPy.fetch_assoc(result2) #__END__ #__LUW_EXPECTED__ #10 Sanders Mgr 7 18357.50 #20 Pernal Sales 8 18171.25 612.45 #30 Marenghi Mgr 5 17506.75 #40 OBrien Sales 6 18006.00 846.55 #50 Hanes Mgr 10 20659.80 #60 Quigley Sales 16808.30 650.25 #70 Rothman Sales 7 16502.83 1152.00 #80 James Clerk 13504.60 128.20 #90 Koonitz Sales 6 18001.75 1386.70 #100 Plotz Mgr 7 18352.80 #110 Ngan Clerk 5 12508.20 206.60 #120 Naughton Clerk 12954.75 180.00 #130 Yamaguchi Clerk 6 10505.90 75.60 #140 Fraye Mgr 6 21150.00 #150 Williams Sales 6 19456.50 637.65 #160 Molinare Mgr 7 22959.20 #170 Kermisch Clerk 4 12258.50 110.10 #180 Abrahams Clerk 3 12009.75 236.50 #190 Sneider Clerk 8 14252.75 126.50 #200 Scoutten Clerk 11508.60 84.20 #210 Lu Mgr 10 20010.00 #220 Smith Sales 7 17654.50 992.80 #230 Lundquist Clerk 3 13369.80 189.65 #240 Daniels Mgr 5 19260.25 #250 Wheeler Clerk 6 14460.00 513.30 #260 Jones Mgr 12 21234.00 #270 Lea Mgr 9 18555.50 #280 Wilson Sales 9 18674.50 811.50 #290 Quill Mgr 10 19818.00 #300 Davis Sales 5 15454.50 806.10 #310 Graham Sales 13 21000.00 200.30 #320 Gonzales Sales 4 16858.20 844.00 #330 Burke Clerk 1 10988.00 55.50 #340 Edwards Sales 7 17844.00 1285.00 #350 Gafney Clerk 5 13030.50 188.00 #A00 SPIFFY COMPUTER SERVICE DIV. 000010 A00 None #B01 PLANNING 000020 A00 None #C01 INFORMATION CENTER 000030 A00 None #D01 DEVELOPMENT CENTER A00 None #D11 MANUFACTURING SYSTEMS 000060 D01 None #D21 ADMINISTRATION SYSTEMS 000070 D01 None #E01 SUPPORT SERVICES 000050 A00 None #E11 OPERATIONS 000090 E01 None #E21 SOFTWARE SUPPORT 000100 E01 None #__ZOS_EXPECTED__ #10 Sanders Mgr 7 18357.50 #20 Pernal Sales 8 18171.25 612.45 #30 Marenghi Mgr 5 17506.75 #40 OBrien Sales 6 18006.00 846.55 #50 Hanes Mgr 10 20659.80 #60 Quigley Sales 16808.30 650.25 #70 Rothman Sales 7 16502.83 1152.00 #80 James Clerk 13504.60 128.20 #90 Koonitz Sales 6 18001.75 1386.70 #100 Plotz Mgr 7 18352.80 #110 Ngan Clerk 5 12508.20 206.60 #120 Naughton Clerk 12954.75 180.00 #130 Yamaguchi Clerk 6 10505.90 75.60 #140 Fraye Mgr 6 21150.00 #150 Williams Sales 6 19456.50 637.65 #160 Molinare Mgr 7 22959.20 #170 Kermisch Clerk 4 12258.50 110.10 #180 Abrahams Clerk 3 12009.75 236.50 #190 Sneider Clerk 8 14252.75 126.50 #200 Scoutten Clerk 11508.60 84.20 #210 Lu Mgr 10 20010.00 #220 Smith Sales 7 17654.50 992.80 #230 Lundquist Clerk 3 13369.80 189.65 #240 Daniels Mgr 5 19260.25 #250 Wheeler Clerk 6 14460.00 513.30 #260 Jones Mgr 12 21234.00 #270 Lea Mgr 9 18555.50 #280 Wilson Sales 9 18674.50 811.50 #290 Quill Mgr 10 19818.00 #300 Davis Sales 5 15454.50 806.10 #310 Graham Sales 13 21000.00 200.30 #320 Gonzales Sales 4 16858.20 844.00 #330 Burke Clerk 1 10988.00 55.50 #340 Edwards Sales 7 17844.00 1285.00 #350 Gafney Clerk 5 13030.50 188.00 #A00 SPIFFY COMPUTER SERVICE DIV. 000010 A00 None #B01 PLANNING 000020 A00 None #C01 INFORMATION CENTER 000030 A00 None #D01 DEVELOPMENT CENTER A00 None #D11 MANUFACTURING SYSTEMS 000060 D01 None #D21 ADMINISTRATION SYSTEMS 000070 D01 None #E01 SUPPORT SERVICES 000050 A00 None #E11 OPERATIONS 000090 E01 None #E21 SOFTWARE SUPPORT 000100 E01 None #__SYSTEMI_EXPECTED__ #10 Sanders Mgr 7 18357.50 #20 Pernal Sales 8 18171.25 612.45 #30 Marenghi Mgr 5 17506.75 #40 OBrien Sales 6 18006.00 846.55 #50 Hanes Mgr 10 20659.80 #60 Quigley Sales 16808.30 650.25 #70 Rothman Sales 7 16502.83 1152.00 #80 James Clerk 13504.60 128.20 #90 Koonitz Sales 6 18001.75 1386.70 #100 Plotz Mgr 7 18352.80 #110 Ngan Clerk 5 12508.20 206.60 #120 Naughton Clerk 12954.75 180.00 #130 Yamaguchi Clerk 6 10505.90 75.60 #140 Fraye Mgr 6 21150.00 #150 Williams Sales 6 19456.50 637.65 #160 Molinare Mgr 7 22959.20 #170 Kermisch Clerk 4 12258.50 110.10 #180 Abrahams Clerk 3 12009.75 236.50 #190 Sneider Clerk 8 14252.75 126.50 #200 Scoutten Clerk 11508.60 84.20 #210 Lu Mgr 10 20010.00 #220 Smith Sales 7 17654.50 992.80 #230 Lundquist Clerk 3 13369.80 189.65 #240 Daniels Mgr 5 19260.25 #250 Wheeler Clerk 6 14460.00 513.30 #260 Jones Mgr 12 21234.00 #270 Lea Mgr 9 18555.50 #280 Wilson Sales 9 18674.50 811.50 #290 Quill Mgr 10 19818.00 #300 Davis Sales 5 15454.50 806.10 #310 Graham Sales 13 21000.00 200.30 #320 Gonzales Sales 4 16858.20 844.00 #330 Burke Clerk 1 10988.00 55.50 #340 Edwards Sales 7 17844.00 1285.00 #350 Gafney Clerk 5 13030.50 188.00 #A00 SPIFFY COMPUTER SERVICE DIV. 000010 A00 None #B01 PLANNING 000020 A00 None #C01 INFORMATION CENTER 000030 A00 None #D01 DEVELOPMENT CENTER A00 None #D11 MANUFACTURING SYSTEMS 000060 D01 None #D21 ADMINISTRATION SYSTEMS 000070 D01 None #E01 SUPPORT SERVICES 000050 A00 None #E11 OPERATIONS 000090 E01 None #E21 SOFTWARE SUPPORT 000100 E01 None #__IDS_EXPECTED__ #10 Sanders Mgr 7 18357.50 #20 Pernal Sales 8 18171.25 612.45 #30 Marenghi Mgr 5 17506.75 #40 OBrien Sales 6 18006.00 846.55 #50 Hanes Mgr 10 20659.80 #60 Quigley Sales 16808.30 650.25 #70 Rothman Sales 7 16502.83 1152.00 #80 James Clerk 13504.60 128.20 #90 Koonitz Sales 6 18001.75 1386.70 #100 Plotz Mgr 7 18352.80 #110 Ngan Clerk 5 12508.20 206.60 #120 Naughton Clerk 12954.75 180.00 #130 Yamaguchi Clerk 6 10505.90 75.60 #140 Fraye Mgr 6 21150.00 #150 Williams Sales 6 19456.50 637.65 #160 Molinare Mgr 7 22959.20 #170 Kermisch Clerk 4 12258.50 110.10 #180 Abrahams Clerk 3 12009.75 236.50 #190 Sneider Clerk 8 14252.75 126.50 #200 Scoutten Clerk 11508.60 84.20 #210 Lu Mgr 10 20010.00 #220 Smith Sales 7 17654.50 992.80 #230 Lundquist Clerk 3 13369.80 189.65 #240 Daniels Mgr 5 19260.25 #250 Wheeler Clerk 6 14460.00 513.30 #260 Jones Mgr 12 21234.00 #270 Lea Mgr 9 18555.50 #280 Wilson Sales 9 18674.50 811.50 #290 Quill Mgr 10 19818.00 #300 Davis Sales 5 15454.50 806.10 #310 Graham Sales 13 21000.00 200.30 #320 Gonzales Sales 4 16858.20 844.00 #330 Burke Clerk 1 10988.00 55.50 #340 Edwards Sales 7 17844.00 1285.00 #350 Gafney Clerk 5 13030.50 188.00 #A00 SPIFFY COMPUTER SERVICE DIV. 000010 A00 None #B01 PLANNING 000020 A00 None #C01 INFORMATION CENTER 000030 A00 None #D01 DEVELOPMENT CENTER A00 None #D11 MANUFACTURING SYSTEMS 000060 D01 None #D21 ADMINISTRATION SYSTEMS 000070 D01 None #E01 SUPPORT SERVICES 000050 A00 None #E11 OPERATIONS 000090 E01 None #E21 SOFTWARE SUPPORT 000100 E01 None
33.541485
117
0.726077
1,417
7,681
3.905434
0.187015
0.025298
0.010842
0.014456
0.871702
0.853632
0.842067
0.842067
0.842067
0.842067
0
0.378639
0.1906
7,681
229
118
33.541485
0.511501
0.780888
0
0.129032
0
0.032258
0.122326
0.014037
0
0
0
0
0.032258
0
null
null
0.032258
0.129032
null
null
0.064516
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
8
07f34a7b4dacbdddae37cee5abae17fbcfa3b174
31,727
py
Python
spark_fhir_schemas/r4/resources/substancesourcematerial.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
2
2020-10-31T23:25:01.000Z
2021-06-09T14:12:42.000Z
spark_fhir_schemas/r4/resources/substancesourcematerial.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/resources/substancesourcematerial.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType # This file is auto-generated by generate_schema so do not edit it manually # noinspection PyPep8Naming class SubstanceSourceMaterialSchema: """ Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex. """ # noinspection PyDefaultArgument @staticmethod def get_schema( max_nesting_depth: Optional[int] = 6, nesting_depth: int = 0, nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, extension_fields: Optional[List[str]] = [ "valueBoolean", "valueCode", "valueDate", "valueDateTime", "valueDecimal", "valueId", "valueInteger", "valuePositiveInt", "valueString", "valueTime", "valueUnsignedInt", "valueUri", "valueUrl", ], extension_depth: int = 0, max_extension_depth: Optional[int] = 2, include_modifierExtension: Optional[bool] = False, ) -> Union[StructType, DataType]: """ Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex. resourceType: This is a SubstanceSourceMaterial resource id: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. meta: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. implicitRules: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc. language: The base language in which the resource is written. text: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety. contained: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope. extension: May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. modifierExtension: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). sourceMaterialClass: General high level classification of the source material specific to the origin of the material. sourceMaterialType: The type of the source material shall be specified based on a controlled vocabulary. For vaccines, this subclause refers to the class of infectious agent. sourceMaterialState: The state of the source material when extracted. organismId: The unique identifier associated with the source material parent organism shall be specified. organismName: The organism accepted Scientific name shall be provided based on the organism taxonomy. parentSubstanceId: The parent of the herbal drug Ginkgo biloba, Leaf is the substance ID of the substance (fresh) of Ginkgo biloba L. or Ginkgo biloba L. (Whole plant). parentSubstanceName: The parent substance of the Herbal Drug, or Herbal preparation. countryOfOrigin: The country where the plant material is harvested or the countries where the plasma is sourced from as laid down in accordance with the Plasma Master File. For “Plasma-derived substances” the attribute country of origin provides information about the countries used for the manufacturing of the Cryopoor plama or Crioprecipitate. geographicalLocation: The place/region where the plant is harvested or the places/regions where the animal source material has its habitat. developmentStage: Stage of life for animals, plants, insects and microorganisms. This information shall be provided only when the substance is significantly different in these stages (e.g. foetal bovine serum). fractionDescription: Many complex materials are fractions of parts of plants, animals, or minerals. Fraction elements are often necessary to define both Substances and Specified Group 1 Substances. For substances derived from Plants, fraction information will be captured at the Substance information level ( . Oils, Juices and Exudates). Additional information for Extracts, such as extraction solvent composition, will be captured at the Specified Substance Group 1 information level. For plasma-derived products fraction information will be captured at the Substance and the Specified Substance Group 1 levels. organism: This subclause describes the organism which the substance is derived from. For vaccines, the parent organism shall be specified based on these subclause elements. As an example, full taxonomy will be described for the Substance Name: ., Leaf. partDescription: To do. """ from spark_fhir_schemas.r4.simple_types.id import idSchema from spark_fhir_schemas.r4.complex_types.meta import MetaSchema from spark_fhir_schemas.r4.simple_types.uri import uriSchema from spark_fhir_schemas.r4.simple_types.code import codeSchema from spark_fhir_schemas.r4.complex_types.narrative import NarrativeSchema from spark_fhir_schemas.r4.complex_types.resourcelist import ResourceListSchema from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema from spark_fhir_schemas.r4.complex_types.codeableconcept import ( CodeableConceptSchema, ) from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema from spark_fhir_schemas.r4.complex_types.substancesourcematerial_fractiondescription import ( SubstanceSourceMaterial_FractionDescriptionSchema, ) from spark_fhir_schemas.r4.complex_types.substancesourcematerial_organism import ( SubstanceSourceMaterial_OrganismSchema, ) from spark_fhir_schemas.r4.complex_types.substancesourcematerial_partdescription import ( SubstanceSourceMaterial_PartDescriptionSchema, ) if ( max_recursion_limit and nesting_list.count("SubstanceSourceMaterial") >= max_recursion_limit ) or (max_nesting_depth and nesting_depth >= max_nesting_depth): return StructType([StructField("id", StringType(), True)]) # add my name to recursion list for later my_nesting_list: List[str] = nesting_list + ["SubstanceSourceMaterial"] schema = StructType( [ # This is a SubstanceSourceMaterial resource StructField("resourceType", StringType(), True), # The logical id of the resource, as used in the URL for the resource. Once # assigned, this value never changes. StructField( "id", idSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # The metadata about the resource. This is content that is maintained by the # infrastructure. Changes to the content might not always be associated with # version changes to the resource. StructField( "meta", MetaSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # A reference to a set of rules that were followed when the resource was # constructed, and which must be understood when processing the content. Often, # this is a reference to an implementation guide that defines the special rules # along with other profiles etc. StructField( "implicitRules", uriSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # The base language in which the resource is written. StructField( "language", codeSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # A human-readable narrative that contains a summary of the resource and can be # used to represent the content of the resource to a human. The narrative need # not encode all the structured data, but is required to contain sufficient # detail to make it "clinically safe" for a human to just read the narrative. # Resource definitions may define what content should be represented in the # narrative to ensure clinical safety. StructField( "text", NarrativeSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # These resources do not have an independent existence apart from the resource # that contains them - they cannot be identified independently, and nor can they # have their own independent transaction scope. StructField( "contained", ArrayType( ResourceListSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ) ), True, ), # May be used to represent additional information that is not part of the basic # definition of the resource. To make the use of extensions safe and manageable, # there is a strict set of governance applied to the definition and use of # extensions. Though any implementer can define an extension, there is a set of # requirements that SHALL be met as part of the definition of the extension. StructField( "extension", ArrayType( ExtensionSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ) ), True, ), # May be used to represent additional information that is not part of the basic # definition of the resource and that modifies the understanding of the element # that contains it and/or the understanding of the containing element's # descendants. Usually modifier elements provide negation or qualification. To # make the use of extensions safe and manageable, there is a strict set of # governance applied to the definition and use of extensions. Though any # implementer is allowed to define an extension, there is a set of requirements # that SHALL be met as part of the definition of the extension. Applications # processing a resource are required to check for modifier extensions. # # Modifier extensions SHALL NOT change the meaning of any elements on Resource # or DomainResource (including cannot change the meaning of modifierExtension # itself). StructField( "modifierExtension", ArrayType( ExtensionSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ) ), True, ), # General high level classification of the source material specific to the # origin of the material. StructField( "sourceMaterialClass", CodeableConceptSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # The type of the source material shall be specified based on a controlled # vocabulary. For vaccines, this subclause refers to the class of infectious # agent. StructField( "sourceMaterialType", CodeableConceptSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # The state of the source material when extracted. StructField( "sourceMaterialState", CodeableConceptSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # The unique identifier associated with the source material parent organism # shall be specified. StructField( "organismId", IdentifierSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # The organism accepted Scientific name shall be provided based on the organism # taxonomy. StructField("organismName", StringType(), True), # The parent of the herbal drug Ginkgo biloba, Leaf is the substance ID of the # substance (fresh) of Ginkgo biloba L. or Ginkgo biloba L. (Whole plant). StructField( "parentSubstanceId", ArrayType( IdentifierSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ) ), True, ), # The parent substance of the Herbal Drug, or Herbal preparation. StructField("parentSubstanceName", ArrayType(StringType()), True), # The country where the plant material is harvested or the countries where the # plasma is sourced from as laid down in accordance with the Plasma Master File. # For “Plasma-derived substances” the attribute country of origin provides # information about the countries used for the manufacturing of the Cryopoor # plama or Crioprecipitate. StructField( "countryOfOrigin", ArrayType( CodeableConceptSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ) ), True, ), # The place/region where the plant is harvested or the places/regions where the # animal source material has its habitat. StructField("geographicalLocation", ArrayType(StringType()), True), # Stage of life for animals, plants, insects and microorganisms. This # information shall be provided only when the substance is significantly # different in these stages (e.g. foetal bovine serum). StructField( "developmentStage", CodeableConceptSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # Many complex materials are fractions of parts of plants, animals, or minerals. # Fraction elements are often necessary to define both Substances and Specified # Group 1 Substances. For substances derived from Plants, fraction information # will be captured at the Substance information level ( . Oils, Juices and # Exudates). Additional information for Extracts, such as extraction solvent # composition, will be captured at the Specified Substance Group 1 information # level. For plasma-derived products fraction information will be captured at # the Substance and the Specified Substance Group 1 levels. StructField( "fractionDescription", ArrayType( SubstanceSourceMaterial_FractionDescriptionSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ) ), True, ), # This subclause describes the organism which the substance is derived from. For # vaccines, the parent organism shall be specified based on these subclause # elements. As an example, full taxonomy will be described for the Substance # Name: ., Leaf. StructField( "organism", SubstanceSourceMaterial_OrganismSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth + 1, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ), True, ), # To do. StructField( "partDescription", ArrayType( SubstanceSourceMaterial_PartDescriptionSchema.get_schema( max_nesting_depth=max_nesting_depth, nesting_depth=nesting_depth + 1, nesting_list=my_nesting_list, max_recursion_limit=max_recursion_limit, include_extension=include_extension, extension_fields=extension_fields, extension_depth=extension_depth, max_extension_depth=max_extension_depth, include_modifierExtension=include_modifierExtension, ) ), True, ), ] ) if not include_extension: schema.fields = [ c if c.name != "extension" else StructField("extension", StringType(), True) for c in schema.fields ] if not include_modifierExtension: schema.fields = [ c if c.name != "modifierExtension" else StructField("modifierExtension", StringType(), True) for c in schema.fields ] return schema
54.891003
107
0.587197
3,040
31,727
5.95
0.129934
0.051084
0.032342
0.047766
0.855318
0.848297
0.846086
0.825796
0.812085
0.807607
0
0.002778
0.376052
31,727
577
108
54.986135
0.910942
0.378101
0
0.701657
1
0
0.027922
0.002437
0
0
0
0
0
1
0.002762
false
0
0.038674
0
0.049724
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
580190a8fef355e36716a591b89e01aca81b2360
113
py
Python
analisador_sintatico/blueprints/web/views.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
analisador_sintatico/blueprints/web/views.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
analisador_sintatico/blueprints/web/views.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
from flask import abort, render_template, url_for, jsonify def index(): return render_template("index.html")
28.25
58
0.769912
16
113
5.25
0.8125
0.333333
0
0
0
0
0
0
0
0
0
0
0.132743
113
4
59
28.25
0.857143
0
0
0
0
0
0.087719
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
8
ed0dc52aa29c660075f8809d840b15df0607e543
25,637
py
Python
simulation/classifier_models/classifier_models.py
HickmannLautaro/DL-for-autonomous-cars
cf97788a8c2e12c451537ba4fd2c9ba88cb36827
[ "BSD-3-Clause" ]
3
2021-07-12T07:59:09.000Z
2021-07-17T09:10:22.000Z
simulation/classifier_models/classifier_models.py
HickmannLautaro/DL-for-autonomous-cars
cf97788a8c2e12c451537ba4fd2c9ba88cb36827
[ "BSD-3-Clause" ]
null
null
null
simulation/classifier_models/classifier_models.py
HickmannLautaro/DL-for-autonomous-cars
cf97788a8c2e12c451537ba4fd2c9ba88cb36827
[ "BSD-3-Clause" ]
null
null
null
# import the necessary packages from torch import flatten from torch.nn import Conv2d, Linear, LogSoftmax, MaxPool2d, Module, ReLU, Dropout, BatchNorm2d from torchvision.transforms import Resize class LeNet(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(LeNet, self).__init__() # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=20, kernel_size=(5, 5)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=20, out_channels=50, kernel_size=(5, 5)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers if dim == 256: self.fc1 = Linear(in_features=186050, out_features=500) # 288x256 4950 , 256x256 4050 else: self.fc1 = Linear(in_features=210450, out_features=500) self.relu3 = ReLU() # initialize our softmax classifier self.fc2 = Linear(in_features=500, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu3(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc2(x) output = self.logSoftmax(x) # return the output predictions return output class Nvidia_model(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(Nvidia_model, self).__init__() # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=3, kernel_size=(5, 5)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=3, out_channels=24, kernel_size=(5, 5)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv3 = Conv2d(in_channels=24, out_channels=36, kernel_size=(5, 5)) self.relu3 = ReLU() self.maxpool3 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv4 = Conv2d(in_channels=36, out_channels=48, kernel_size=(3, 3)) self.relu4 = ReLU() self.maxpool4 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv5 = Conv2d(in_channels=48, out_channels=64, kernel_size=(3, 3)) self.relu5 = ReLU() self.maxpool5 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers if dim == 256: self.fc1 = Linear(in_features=1600, out_features=100) # 288x256 4950 , 256x256 4050 else: self.fc1 = Linear(in_features=1920, out_features=100) self.relu6 = ReLU() # initialize first (and only) set of FC => RELU layers self.fc2 = Linear(in_features=100, out_features=50) self.relu7 = ReLU() # initialize our softmax classifier self.fc3 = Linear(in_features=50, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv3(x) x = self.relu3(x) x = self.maxpool3(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv4(x) x = self.relu4(x) x = self.maxpool4(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv5(x) x = self.relu5(x) x = self.maxpool5(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu6(x) x = self.fc2(x) x = self.relu7(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc3(x) output = self.logSoftmax(x) # return the output predictions return output class LeNet_mod(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(LeNet_mod, self).__init__() # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=5, kernel_size=(10, 10), dilation=(5, 5)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(5, 5), stride=(2, 2)) self.bn = BatchNorm2d(5) # initialize first set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=5, out_channels=10, kernel_size=(5, 5)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) self.bn2 = BatchNorm2d(10) # initialize first set of CONV => RELU => POOL layers self.conv3 = Conv2d(in_channels=10, out_channels=20, kernel_size=(5, 5)) self.relu3 = ReLU() self.maxpool3 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) self.bn3 = BatchNorm2d(20) # initialize second set of CONV => RELU => POOL layers self.conv4 = Conv2d(in_channels=20, out_channels=50, kernel_size=(5, 5)) self.relu4 = ReLU() self.maxpool4 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) self.bn4 = BatchNorm2d(50) self.drop_layer = Dropout(p=0.4) # initialize first (and only) set of FC => RELU layers if dim == 256: self.fc1 = Linear(in_features=4050, out_features=500) # 288x256 4950 , 256x256 4050 else: self.fc1 = Linear(in_features=4950, out_features=500) self.relu3 = ReLU() # initialize our softmax classifier self.fc2 = Linear(in_features=500, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) x = self.bn(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) x = self.bn2(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv3(x) x = self.relu3(x) x = self.maxpool3(x) x = self.bn3(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv4(x) x = self.relu4(x) x = self.maxpool4(x) x = self.bn4(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.drop_layer(x) x = self.fc1(x) x = self.relu3(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc2(x) output = self.logSoftmax(x) # return the output predictions return output class LeNet_resized(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(LeNet_resized, self).__init__() if dim == 256: self.resize = Resize((96, 96)) else: self.resize = Resize((108, 96)) # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=20, kernel_size=(5, 5)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=20, out_channels=50, kernel_size=(5, 5)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers if dim == 256: self.fc1 = Linear(in_features=22050, out_features=500) # 288x256 4950 , 256x256 4050 else: self.fc1 = Linear(in_features=25200, out_features=500) self.relu3 = ReLU() # initialize our softmax classifier self.fc2 = Linear(in_features=500, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): x = self.resize(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu3(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc2(x) output = self.logSoftmax(x) # return the output predictions return output class Nvidia_model_resized(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(Nvidia_model_resized, self).__init__() if dim == 256: self.resize = Resize((96, 96)) else: self.resize = Resize((108, 96)) # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=3, kernel_size=(3, 3)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=3, out_channels=24, kernel_size=(3, 3)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv3 = Conv2d(in_channels=24, out_channels=36, kernel_size=(3, 3)) self.relu3 = ReLU() self.maxpool3 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv4 = Conv2d(in_channels=36, out_channels=48, kernel_size=(3, 3)) self.relu4 = ReLU() self.maxpool4 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv5 = Conv2d(in_channels=48, out_channels=64, kernel_size=(3, 3)) self.relu5 = ReLU() self.maxpool5 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers self.fc1 = Linear(in_features=64, out_features=32) # 288x256 4950 , 256x256 4050 self.relu6 = ReLU() # initialize our softmax classifier self.fc3 = Linear(in_features=32, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): x = self.resize(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv3(x) x = self.relu3(x) x = self.maxpool3(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv4(x) x = self.relu4(x) x = self.maxpool4(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv5(x) x = self.relu5(x) x = self.maxpool5(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu6(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc3(x) output = self.logSoftmax(x) # return the output predictions return output class LeNet_resized_cons(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(LeNet_resized_cons, self).__init__() if dim == 256: self.resize = Resize((96, 96)) else: self.resize = Resize((108, 96)) # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=20, kernel_size=(5, 5)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) self.bn = BatchNorm2d(20) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=20, out_channels=50, kernel_size=(5, 5)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers if dim == 256: self.fc1 = Linear(in_features=22050, out_features=500) # 288x256 4950 , 256x256 4050 else: self.fc1 = Linear(in_features=25200, out_features=500) self.relu3 = ReLU() self.do = Dropout(p=0.4) # initialize our softmax classifier self.fc2 = Linear(in_features=500, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): x = self.resize(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) x= self.bn(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu3(x) x = self.do(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc2(x) output = self.logSoftmax(x) # return the output predictions return output class Nvidia_model_resized_cons(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(Nvidia_model_resized_cons, self).__init__() if dim == 256: self.resize = Resize((96, 96)) else: self.resize = Resize((108, 96)) # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=3, kernel_size=(3, 3)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) self.bn = BatchNorm2d(3) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=3, out_channels=24, kernel_size=(3, 3)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv3 = Conv2d(in_channels=24, out_channels=36, kernel_size=(3, 3)) self.relu3 = ReLU() self.maxpool3 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv4 = Conv2d(in_channels=36, out_channels=48, kernel_size=(3, 3)) self.relu4 = ReLU() self.maxpool4 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv5 = Conv2d(in_channels=48, out_channels=64, kernel_size=(3, 3)) self.relu5 = ReLU() self.maxpool5 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers self.fc1 = Linear(in_features=64, out_features=32) # 288x256 4950 , 256x256 4050 self.relu6 = ReLU() self.do = Dropout(p=0.4) # initialize our softmax classifier self.fc3 = Linear(in_features=32, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): x = self.resize(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) x= self.bn(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv3(x) x = self.relu3(x) x = self.maxpool3(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv4(x) x = self.relu4(x) x = self.maxpool4(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv5(x) x = self.relu5(x) x = self.maxpool5(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu6(x) x = self.do(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc3(x) output = self.logSoftmax(x) # return the output predictions return output class LeNet_resized_cons_no_bn(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(LeNet_resized_cons_no_bn, self).__init__() if dim == 256: self.resize = Resize((96, 96)) else: self.resize = Resize((108, 96)) # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=20, kernel_size=(5, 5)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=20, out_channels=50, kernel_size=(5, 5)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers if dim == 256: self.fc1 = Linear(in_features=22050, out_features=500) # 288x256 4950 , 256x256 4050 else: self.fc1 = Linear(in_features=25200, out_features=500) self.relu3 = ReLU() self.do = Dropout(p=0.4) # initialize our softmax classifier self.fc2 = Linear(in_features=500, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): x = self.resize(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu3(x) x = self.do(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc2(x) output = self.logSoftmax(x) # return the output predictions return output class Nvidia_model_resized_cons_no_bn(Module): def __init__(self, numChannels, classes, dim): # call the parent constructor super(Nvidia_model_resized_cons_no_bn, self).__init__() if dim == 256: self.resize = Resize((96, 96)) else: self.resize = Resize((108, 96)) # initialize first set of CONV => RELU => POOL layers self.conv1 = Conv2d(in_channels=numChannels, out_channels=3, kernel_size=(3, 3)) self.relu1 = ReLU() self.maxpool1 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv2 = Conv2d(in_channels=3, out_channels=24, kernel_size=(3, 3)) self.relu2 = ReLU() self.maxpool2 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv3 = Conv2d(in_channels=24, out_channels=36, kernel_size=(3, 3)) self.relu3 = ReLU() self.maxpool3 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv4 = Conv2d(in_channels=36, out_channels=48, kernel_size=(3, 3)) self.relu4 = ReLU() self.maxpool4 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize second set of CONV => RELU => POOL layers self.conv5 = Conv2d(in_channels=48, out_channels=64, kernel_size=(3, 3)) self.relu5 = ReLU() self.maxpool5 = MaxPool2d(kernel_size=(2, 2), stride=(2, 2)) # initialize first (and only) set of FC => RELU layers self.fc1 = Linear(in_features=64, out_features=32) # 288x256 4950 , 256x256 4050 self.relu6 = ReLU() self.do = Dropout(p=0.4) # initialize our softmax classifier self.fc3 = Linear(in_features=32, out_features=classes) self.logSoftmax = LogSoftmax(dim=1) def forward(self, x): x = self.resize(x) # pass the input through our first set of CONV => RELU => # POOL layers x = self.conv1(x) x = self.relu1(x) x = self.maxpool1(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv2(x) x = self.relu2(x) x = self.maxpool2(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv3(x) x = self.relu3(x) x = self.maxpool3(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv4(x) x = self.relu4(x) x = self.maxpool4(x) # pass the output from the previous layer through the second # set of CONV => RELU => POOL layers x = self.conv5(x) x = self.relu5(x) x = self.maxpool5(x) # flatten the output from the previous layer and pass it # through our only set of FC => RELU layers x = flatten(x, 1) x = self.fc1(x) x = self.relu6(x) x = self.do(x) # pass the output to our softmax classifier to get our output # predictions x = self.fc3(x) output = self.logSoftmax(x) # return the output predictions return output
34.504711
98
0.572727
3,401
25,637
4.231991
0.038224
0.04933
0.038352
0.057806
0.971375
0.96936
0.967623
0.967623
0.96672
0.963802
0
0.061723
0.321918
25,637
742
99
34.551213
0.766222
0.295159
0
0.880668
0
0
0
0
0
0
0
0
0
1
0.042959
false
0
0.00716
0
0.093079
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
ed858ee933cf1567f6a916c8892e041e3e9aebff
640
py
Python
nd_mlp_mixer/layers.py
sradc/nd-mlp-mixer
eda349eb8583698d1d37ab78e6cf253723556ac1
[ "Apache-2.0" ]
3
2021-06-06T15:04:09.000Z
2022-01-20T06:56:23.000Z
nd_mlp_mixer/layers.py
sradc/nd-mlp-mixer
eda349eb8583698d1d37ab78e6cf253723556ac1
[ "Apache-2.0" ]
null
null
null
nd_mlp_mixer/layers.py
sradc/nd-mlp-mixer
eda349eb8583698d1d37ab78e6cf253723556ac1
[ "Apache-2.0" ]
1
2021-05-19T02:23:55.000Z
2021-05-19T02:23:55.000Z
import tensorflow as tf class Layers(tf.keras.layers.Layer): def __init__(self, num_layers, make_layer): super().__init__() self.layers = [make_layer() for _ in range(num_layers)] def call(self, inputs): h = inputs for layer in self.layers: h = layer(h) return h class ResidualLayers(tf.keras.layers.Layer): def __init__(self, num_layers, make_layer): super().__init__() self.layers = [make_layer() for _ in range(num_layers)] def call(self, inputs): h = inputs for layer in self.layers: h = h + layer(h) return h
24.615385
63
0.595313
85
640
4.176471
0.258824
0.090141
0.169014
0.101408
0.859155
0.783099
0.783099
0.783099
0.783099
0.783099
0
0
0.296875
640
25
64
25.6
0.788889
0
0
0.736842
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.473684
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
8
9c514738ffbc3a8672e1bd39b9b8a6c98caf9b7f
16,932
py
Python
src/genie/libs/parser/iosxe/tests/ShowIsisNode/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowIsisNode/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowIsisNode/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "tag": { "1": { "level": { "level-1": { "hosts": { "R1-asr1k-43.00": { "ip_router_id": "1.1.1.1", "ip_router_lsp": 0, "ip_interface_address": "1.1.1.1", "ip_interface_address_lsp": 0, "adj_sid": { 16: { "lsp": 0, "to_host": "R3-asr1k-53", "from_host": "R1-asr1k-43.00" } }, "lsp_index": 38, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 0 }, "flex_algo": { 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } }, "R3-asr1k-53.00": { "ip_router_id": "3.3.3.3", "ip_router_lsp": 0, "ip_interface_address": "3.3.3.3", "ip_interface_address_lsp": 0, "adj_sid": { 372: { "lsp": 1, "to_host": "R1-asr1k-43", "from_host": "R3-asr1k-53.00" }, 125: { "lsp": 1, "to_host": "R5-asr1k-11", "from_host": "R3-asr1k-53.00" } }, "lsp_index": 36, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 0 }, "flex_algo": { 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } }, "R5-asr1k-11.00": { "ip_router_id": "5.5.5.5", "ip_router_lsp": 0, "ip_interface_address": "5.5.5.5", "ip_interface_address_lsp": 0, "adj_sid": { 16: { "lsp": 0, "to_host": "R3-asr1k-53", "from_host": "R5-asr1k-11.00" }, 55: { "lsp": 1, "to_host": "R6-asr1k-20", "from_host": "R5-asr1k-11.00" }, 57: { "lsp": 1, "to_host": "R6-asr1k-20", "from_host": "R5-asr1k-11.00" } }, "lsp_index": 4, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 0 }, "flex_algo": { 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } }, "R6-asr1k-20.00": { "ip_router_id": "6.6.6.6", "ip_router_lsp": 0, "ip_interface_address": "6.6.6.6", "ip_interface_address_lsp": 0, "adj_sid": { 238: { "lsp": 0, "to_host": "R5-asr1k-11", "from_host": "R6-asr1k-20.00" }, 240: { "lsp": 0, "to_host": "R5-asr1k-11", "from_host": "R6-asr1k-20.00" } }, "lsp_index": 16, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 0 }, "flex_algo": { 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } } } }, "level-2": { "hosts": { "R1-asr1k-43.00": { "ip_router_id": "1.1.1.1", "ip_router_lsp": 0, "ip_interface_address": "1.1.1.1", "ip_interface_address_lsp": 0, "adj_sid": { 17: { "lsp": 0, "to_host": "R3-asr1k-53", "from_host": "R1-asr1k-43.00" } }, "lsp_index": 39, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 1 }, "flex_algo": { 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } }, "R3-asr1k-53.00": { "ip_router_id": "3.3.3.3", "ip_router_lsp": 0, "ip_interface_address": "3.3.3.3", "ip_interface_address_lsp": 0, "adj_sid": { 373: { "lsp": 0, "to_host": "R1-asr1k-43", "from_host": "R3-asr1k-53.00" }, 227: { "lsp": 4, "to_host": "R5-asr1k-11", "from_host": "R3-asr1k-53.00" } }, "lsp_index": 37, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 0 }, "flex_algo": { 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } }, "R5-asr1k-11.00": { "ip_router_id": "5.5.5.5", "ip_router_lsp": 0, "ip_interface_address": "5.5.5.5", "ip_interface_address_lsp": 0, "adj_sid": { 17: { "lsp": 0, "to_host": "R3-asr1k-53", "from_host": "R5-asr1k-11.00" }, 56: { "lsp": 1, "to_host": "R6-asr1k-20", "from_host": "R5-asr1k-11.00" }, 58: { "lsp": 1, "to_host": "R6-asr1k-20", "from_host": "R5-asr1k-11.00" } }, "lsp_index": 11, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 0 }, "flex_algo": { 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } }, "R6-asr1k-20.00": { "ip_router_id": "6.6.6.6", "ip_router_lsp": 0, "ip_interface_address": "6.6.6.6", "ip_interface_address_lsp": 0, "adj_sid": { 239: { "lsp": 1, "to_host": "R5-asr1k-11", "from_host": "R6-asr1k-20.00" }, 241: { "lsp": 1, "to_host": "R5-asr1k-11", "from_host": "R6-asr1k-20.00" } }, "lsp_index": 21, "srgb": { "start": 16000, "range": 8000, "lsp": 0 }, "srlb": { "start": 15000, "range": 1000, "lsp": 0 }, "capability": { "sr": "No", "strict_spf": "No", "lsp": 2 }, "flex_algo": { 128: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 }, 129: { "metric_type": "IGP", "alg_type": "SPF", "priority": 131 } } } } } } } } }
44.09375
65
0.17464
827
16,932
3.371221
0.091898
0.064562
0.1033
0.091822
0.962697
0.962697
0.962697
0.962697
0.962697
0.946915
0
0.138864
0.733759
16,932
384
66
44.09375
0.479592
0
0
0.695313
0
0
0.162109
0.011339
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
9c706e4360394036527233cc569c354a4e96333d
43,179
py
Python
hash.py
haijuga7/Dec-Enc-Hash
3a64feb73940c955419d97ddd5001f77aa19dba9
[ "Apache-2.0" ]
3
2018-06-29T00:36:54.000Z
2020-04-12T00:53:50.000Z
hash.py
haijuga7/Dec-Enc-Hash
3a64feb73940c955419d97ddd5001f77aa19dba9
[ "Apache-2.0" ]
null
null
null
hash.py
haijuga7/Dec-Enc-Hash
3a64feb73940c955419d97ddd5001f77aa19dba9
[ "Apache-2.0" ]
null
null
null
#Created By Mr.A_S import marshal exec(marshal.loads('''c\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00@\x00\x00\x00s\x11\x02\x00\x00yd\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x00\x00d\x01\x00l\x03\x00Z\x03\x00d\x00\x00d\x01\x00l\x04\x00Z\x04\x00d\x00\x00d\x01\x00l\x05\x00Z\x05\x00d\x00\x00d\x01\x00l\x06\x00Z\x06\x00d\x00\x00d\x01\x00l\x07\x00Z\x07\x00Wn@\x00\x04e\x08\x00k\n\x00r\xa6\x00\x01Z\t\x00\x01e\n\x00d\x02\x00\x17e\x0b\x00\x17d\x03\x00\x17e\x0c\x00e\t\x00\x83\x01\x00\x17e\n\x00\x17d\x04\x00\x17GHe\x03\x00j\r\x00\x83\x00\x00\x01n\x01\x00Xd\x05\x00Z\x0e\x00d\x06\x00Z\x0f\x00d\x07\x00Z\x10\x00d\x08\x00Z\x11\x00d\t\x00Z\n\x00d\n\x00Z\x0b\x00d\x0b\x00Z\x12\x00d\x0c\x00Z\x13\x00d\r\x00Z\x14\x00d\x0e\x00Z\x15\x00d\x0f\x00Z\x16\x00d\x10\x00j\x17\x00e\x0f\x00\x83\x01\x00Z\x18\x00d\x11\x00j\x17\x00e\x0b\x00\x83\x01\x00Z\x19\x00d\x12\x00j\x17\x00e\x0b\x00\x83\x01\x00Z\x1a\x00d\x13\x00j\x17\x00e\x0b\x00e\n\x00\x83\x02\x00Z\x1b\x00d\x14\x00\x84\x00\x00Z\x1c\x00d\x15\x00\x84\x00\x00Z\x1d\x00d\x16\x00\x84\x00\x00Z\x1e\x00d\x17\x00\x84\x00\x00Z\x1f\x00d\x18\x00\x84\x00\x00Z \x00d\x19\x00\x84\x00\x00Z!\x00d\x1a\x00\x84\x00\x00Z"\x00d\x1b\x00\x84\x00\x00Z#\x00d\x1c\x00\x84\x00\x00Z$\x00d\x1d\x00\x84\x00\x00Z%\x00d\x1e\x00\x84\x00\x00Z&\x00d\x1f\x00\x84\x00\x00Z\'\x00d \x00\x84\x00\x00Z(\x00d!\x00\x84\x00\x00Z)\x00d"\x00\x84\x00\x00Z*\x00d#\x00\x84\x00\x00Z+\x00d$\x00\x84\x00\x00Z,\x00d%\x00\x84\x00\x00Z-\x00d&\x00\x84\x00\x00Z.\x00d\'\x00\x84\x00\x00Z/\x00d(\x00\x84\x00\x00Z0\x00d)\x00\x84\x00\x00Z1\x00d*\x00\x84\x00\x00Z2\x00e3\x00d+\x00k\x02\x00r\r\x02e2\x00\x83\x00\x00\x01n\x00\x00d\x01\x00S(,\x00\x00\x00i\xff\xff\xff\xffNt\x01\x00\x00\x00[s\x08\x00\x00\x00Error : t\x01\x00\x00\x00]s\x07\x00\x00\x00\x1b[32;1ms\x07\x00\x00\x00\x1b[0;32ms\x07\x00\x00\x00\x1b[34;1ms\x07\x00\x00\x00\x1b[36;1ms\x07\x00\x00\x00\x1b[31;1ms\x04\x00\x00\x00\x1b[0ms\x07\x00\x00\x00\x1b[35;1ms\x06\x00\x00\x00\x1b[3;1ms\x07\x00\x00\x00\x1b[33;1ms\x07\x00\x00\x00\x1b[0;33ms\x07\x00\x00\x00\x1b[30;1ms\x81\x02\x00\x00 {0}@@@ @@@ @@@@@@ @@@@@@ @@@ @@@\n {0}@@! @@@ @@! @@@ !@@ @@! @@@\t \n {0}@!@!@!@! @!@!@!@! !@@!! @!@!@!@!\tAuthor : Mr.A_S\n {0}!!: !!! !!: !!! !:! !!: !!!\tgit hub : https://giithub.com/haijuga7\n {0} : : : : : : ::.: : : : :\tTeam : Androsec1337 Cyber Team\n {0} @@@@@@@ @@@@@@ @@@@@@@ @@@@@@@@\tDate : 31/05/2018\n {0}!@@ @@! @@@ @@! @@@ @@! \tTools : Hash Code\n {0}!@! @!@ !@! @!@ !@! @!!!:! \tVersi : 1.0\n {0}:!! !!: !!! !!: !!! !!: \n {0}:: :: : : :. : :: : : : :: :::\n{0}______________________________________________________________________________sk\x00\x00\x00\n{0}Select from the menu :\n \n 01) Encrypt Hash\n 02) Decrypt Hash\n 03) Hash Finder\n 00) Exit\ns\x83\x00\x00\x00\n{0}Select from Encrypt menu :\n \n 01) Md4\n 02) Md5\n 03) Sha1\n 04) Sha256\n 05) Sha384\n 06) Sha512\n 00) Exit\ns\xd3\x00\x00\x00\n{0}Select from Decrypt menu :\n \n 01) Md4\n 02) Md5\n 03) Sha1\n 04) Sha256\n 05) Sha384\n 06) Sha512\n 00) Exit\n \n{1}[{0}*{1}] {0}Note : If you won\'t use decrypt hash turn on your data !!!\nc\x02\x00\x00\x00\x08\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00sB\x01\x00\x00d\x01\x00|\x01\x00\x17}\x02\x00t\x00\x00j\x01\x00i\x02\x00|\x00\x00d\x02\x006d\x03\x00d\x04\x006\x83\x01\x00}\x03\x00t\x02\x00j\x03\x00|\x02\x00\x83\x01\x00}\x04\x00y\xb8\x00t\x02\x00j\x04\x00|\x04\x00|\x03\x00\x83\x02\x00}\x05\x00|\x05\x00j\x05\x00\x83\x00\x00}\x06\x00t\x06\x00j\x07\x00d\x05\x00|\x06\x00\x83\x02\x00}\x07\x00|\x07\x00r\xb4\x00t\x08\x00d\x06\x00\x17t\t\x00\x17d\x07\x00\x17t\x08\x00\x17d\x08\x00\x17t\n\x00\x17d\t\x00\x17t\t\x00\x17|\x02\x00\x17t\n\x00\x17d\n\x00\x17t\t\x00\x17|\x07\x00j\x0b\x00d\x0b\x00\x83\x01\x00\x17GHn9\x00t\x0c\x00d\x06\x00\x17t\t\x00\x17d\x0c\x00\x17t\x0c\x00\x17d\x08\x00\x17t\n\x00\x17d\t\x00\x17t\t\x00\x17|\x02\x00\x17t\n\x00\x17d\n\x00\x17t\x0c\x00\x17d\r\x00\x17GHWnM\x00\x04t\x02\x00j\r\x00k\n\x00r=\x01\x01\x01\x01t\t\x00d\x06\x00\x17t\x0c\x00\x17d\x0c\x00\x17t\t\x00\x17d\x08\x00\x17t\n\x00\x17d\t\x00\x17t\t\x00\x17|\x02\x00\x17t\x0c\x00\x17d\x0e\x00\x17t\t\x00\x17d\x0f\x00\x17GHn\x01\x00Xd\x00\x00S(\x10\x00\x00\x00Ns\x19\x00\x00\x00http://md5decrypt.net/en/t\x04\x00\x00\x00hasht\x07\x00\x00\x00Decryptt\x07\x00\x00\x00decrypts!\x00\x00\x00( : <b>)(.+)(</b><br/><br/>Found)s\x02\x00\x00\x00 [t\x01\x00\x00\x00iR\x01\x00\x00\x00s\x07\x00\x00\x00 Site: s\r\x00\x00\x00\t\t Password: i\x02\x00\x00\x00t\x01\x00\x00\x00!s\t\x00\x00\x00Not founds\t\x00\x00\x00\t\tError: s\x10\x00\x00\x00seems to be down(\x0e\x00\x00\x00t\x06\x00\x00\x00urllibt\t\x00\x00\x00urlencodet\x07\x00\x00\x00urllib2t\x07\x00\x00\x00Requestt\x07\x00\x00\x00urlopent\x04\x00\x00\x00readt\x02\x00\x00\x00ret\x06\x00\x00\x00searcht\x01\x00\x00\x00gt\x01\x00\x00\x00pt\x02\x00\x00\x00ktt\x05\x00\x00\x00groupt\x01\x00\x00\x00mt\x08\x00\x00\x00URLError(\x08\x00\x00\x00t\x06\x00\x00\x00scriptt\x03\x00\x00\x00webt\x07\x00\x00\x00websitet\x06\x00\x00\x00weburlt\x03\x00\x00\x00reqt\x02\x00\x00\x00fdt\x04\x00\x00\x00datat\x05\x00\x00\x00match(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x05\x00\x00\x00MultiJ\x00\x00\x00s\x18\x00\x00\x00\x00\x01\n\x01\x1d\x01\x0f\x01\x03\x01\x12\x01\x0c\x01\x12\x01\x06\x01E\x02=\x01\x10\x01c\x01\x00\x00\x00\x07\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s>\x01\x00\x00d\x01\x00}\x01\x00t\x00\x00j\x01\x00i\x02\x00|\x00\x00d\x02\x006d\x03\x00d\x04\x006\x83\x01\x00}\x02\x00t\x02\x00j\x03\x00|\x01\x00\x83\x01\x00}\x03\x00y\xb8\x00t\x02\x00j\x04\x00|\x03\x00|\x02\x00\x83\x02\x00}\x04\x00|\x04\x00j\x05\x00\x83\x00\x00}\x05\x00t\x06\x00j\x07\x00d\x05\x00|\x05\x00\x83\x02\x00}\x06\x00|\x06\x00r\xb0\x00t\x08\x00d\x06\x00\x17t\t\x00\x17d\x07\x00\x17t\x08\x00\x17d\x08\x00\x17t\n\x00\x17d\t\x00\x17t\t\x00\x17|\x01\x00\x17t\n\x00\x17d\n\x00\x17t\t\x00\x17|\x06\x00j\x0b\x00d\x0b\x00\x83\x01\x00\x17GHn9\x00t\x0c\x00d\x06\x00\x17t\t\x00\x17d\x0c\x00\x17t\x0c\x00\x17d\x08\x00\x17t\n\x00\x17d\t\x00\x17t\t\x00\x17|\x01\x00\x17t\n\x00\x17d\n\x00\x17t\t\x00\x17d\r\x00\x17GHWnM\x00\x04t\x02\x00j\r\x00k\n\x00r9\x01\x01\x01\x01t\x0c\x00d\x06\x00\x17t\t\x00\x17d\x0c\x00\x17t\x0c\x00\x17d\x08\x00\x17t\n\x00\x17d\t\x00\x17t\t\x00\x17|\x01\x00\x17t\x0c\x00\x17d\x0e\x00\x17t\t\x00\x17d\x0f\x00\x17GHn\x01\x00Xd\x00\x00S(\x10\x00\x00\x00Ns\x19\x00\x00\x00http://md5decrypt.net/en/R\x02\x00\x00\x00R\x03\x00\x00\x00R\x04\x00\x00\x00s!\x00\x00\x00( : <b>)(.+)(</b><br/><br/>Found)s\x02\x00\x00\x00 [R\x05\x00\x00\x00R\x01\x00\x00\x00s\x07\x00\x00\x00 Site: s\r\x00\x00\x00\t\t Password: i\x02\x00\x00\x00R\x06\x00\x00\x00s\t\x00\x00\x00Not founds\t\x00\x00\x00\t\tError: s\x10\x00\x00\x00seems to be down(\x0e\x00\x00\x00R\x07\x00\x00\x00R\x08\x00\x00\x00R\t\x00\x00\x00R\n\x00\x00\x00R\x0b\x00\x00\x00R\x0c\x00\x00\x00R\r\x00\x00\x00R\x0e\x00\x00\x00R\x0f\x00\x00\x00R\x10\x00\x00\x00R\x11\x00\x00\x00R\x12\x00\x00\x00R\x13\x00\x00\x00R\x14\x00\x00\x00(\x07\x00\x00\x00R\x15\x00\x00\x00R\x17\x00\x00\x00R\x18\x00\x00\x00R\x19\x00\x00\x00R\x1a\x00\x00\x00R\x1b\x00\x00\x00R\x1c\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x06\x00\x00\x00Multi2Y\x00\x00\x00s\x18\x00\x00\x00\x00\x01\x06\x01\x1d\x01\x0f\x01\x03\x01\x12\x01\x0c\x01\x12\x01\x06\x01E\x02=\x01\x10\x01c\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00C\x00\x00\x00sO\x00\x00\x00t\x00\x00j\x01\x00d\x01\x00k\x02\x00r\x1f\x00t\x02\x00j\x03\x00d\x02\x00\x83\x01\x00\x01n,\x00t\x00\x00j\x01\x00d\x03\x00k\x02\x00r>\x00t\x02\x00j\x03\x00d\x04\x00\x83\x01\x00\x01n\r\x00t\x02\x00j\x03\x00d\x02\x00\x83\x01\x00\x01d\x00\x00S(\x05\x00\x00\x00Nt\x06\x00\x00\x00linux2t\x05\x00\x00\x00cleart\x05\x00\x00\x00win32t\x03\x00\x00\x00cls(\x04\x00\x00\x00t\x03\x00\x00\x00syst\x08\x00\x00\x00platformt\x02\x00\x00\x00ost\x06\x00\x00\x00system(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R \x00\x00\x00h\x00\x00\x00s\n\x00\x00\x00\x00\x02\x0f\x03\x10\x03\x0f\x03\x10\x06c\x02\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xd9\x00\x00\x00y]\x00t\x00\x00|\x00\x00\x83\x01\x00}\x02\x00|\x02\x00d\x01\x00k\x02\x00r,\x00t\x01\x00\x83\x00\x00\x01|\x01\x00\x83\x00\x00\x01n\x00\x00|\x02\x00d\x02\x00k\x02\x00rO\x00t\x02\x00j\x03\x00d\x03\x00\x83\x01\x00\x01t\x04\x00\x83\x00\x00\x01n\r\x00t\x05\x00|\x00\x00|\x01\x00\x83\x02\x00\x01Wnu\x00\x04t\x06\x00k\n\x00r\xd4\x00\x01\x01\x01t\x07\x00d\x04\x00t\x08\x00\x17d\x05\x00\x17t\x07\x00\x17d\x06\x00\x17t\x07\x00\x17d\x07\x00\x17t\x08\x00\x17d\x08\x00\x17\x17GHt\x07\x00d\x04\x00t\x08\x00\x17d\t\x00\x17t\x07\x00\x17d\x06\x00\x17t\t\x00\x17d\n\x00\x17\x17GHt\x02\x00j\x03\x00d\x03\x00\x83\x01\x00\x01t\x05\x00|\x00\x00|\x01\x00\x83\x02\x00\x01n\x01\x00Xd\x00\x00S(\x0b\x00\x00\x00Nt\x01\x00\x00\x00yt\x01\x00\x00\x00ni\x01\x00\x00\x00s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...t\x01\x00\x00\x00*s$\x00\x00\x00Thank For Using my Pentest Tools ^~^(\n\x00\x00\x00t\t\x00\x00\x00raw_inputR \x00\x00\x00t\x04\x00\x00\x00timet\x05\x00\x00\x00sleept\x07\x00\x00\x00encryptt\x03\x00\x00\x00mkst\x11\x00\x00\x00KeyboardInterruptR\x13\x00\x00\x00R\x10\x00\x00\x00R\x0f\x00\x00\x00(\x03\x00\x00\x00t\x05\x00\x00\x00fraset\x04\x00\x00\x00callt\x05\x00\x00\x00Ardi1(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R.\x00\x00\x00{\x00\x00\x00s\x1c\x00\x00\x00\x00\x02\x03\x02\x0c\x02\x0c\x02\x07\x01\n\x02\x0c\x02\r\x02\n\x03\x11\x02\r\x01)\x01!\x01\r\x01c\x02\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xd9\x00\x00\x00y]\x00t\x00\x00|\x00\x00\x83\x01\x00}\x02\x00|\x02\x00d\x01\x00k\x02\x00r,\x00t\x01\x00\x83\x00\x00\x01|\x01\x00\x83\x00\x00\x01n\x00\x00|\x02\x00d\x02\x00k\x02\x00rO\x00t\x02\x00j\x03\x00d\x03\x00\x83\x01\x00\x01t\x04\x00\x83\x00\x00\x01n\r\x00t\x05\x00|\x00\x00|\x01\x00\x83\x02\x00\x01Wnu\x00\x04t\x06\x00k\n\x00r\xd4\x00\x01\x01\x01t\x07\x00d\x04\x00t\x08\x00\x17d\x05\x00\x17t\x07\x00\x17d\x06\x00\x17t\x07\x00\x17d\x07\x00\x17t\x08\x00\x17d\x08\x00\x17\x17GHt\x07\x00d\x04\x00t\x08\x00\x17d\t\x00\x17t\x07\x00\x17d\x06\x00\x17t\t\x00\x17d\n\x00\x17\x17GHt\x02\x00j\x03\x00d\x03\x00\x83\x01\x00\x01t\x05\x00|\x00\x00|\x01\x00\x83\x02\x00\x01n\x01\x00Xd\x00\x00S(\x0b\x00\x00\x00NR\'\x00\x00\x00R(\x00\x00\x00i\x01\x00\x00\x00s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^(\n\x00\x00\x00R*\x00\x00\x00R \x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R\x04\x00\x00\x00t\x03\x00\x00\x00masR/\x00\x00\x00R\x13\x00\x00\x00R\x10\x00\x00\x00R\x0f\x00\x00\x00(\x03\x00\x00\x00R0\x00\x00\x00R1\x00\x00\x00t\x04\x00\x00\x00Ardi(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R3\x00\x00\x00\x95\x00\x00\x00s\x1c\x00\x00\x00\x00\x02\x03\x02\x0c\x02\x0c\x02\x07\x01\n\x02\x0c\x02\r\x02\n\x04\x11\x02\r\x01)\x01!\x01\r\x01c\x02\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xd9\x00\x00\x00y]\x00t\x00\x00|\x00\x00\x83\x01\x00}\x02\x00|\x02\x00d\x01\x00k\x02\x00r,\x00t\x01\x00\x83\x00\x00\x01|\x01\x00\x83\x00\x00\x01n\x00\x00|\x02\x00d\x02\x00k\x02\x00rO\x00t\x02\x00j\x03\x00d\x03\x00\x83\x01\x00\x01t\x04\x00\x83\x00\x00\x01n\r\x00t\x05\x00|\x00\x00|\x01\x00\x83\x02\x00\x01Wnu\x00\x04t\x06\x00k\n\x00r\xd4\x00\x01\x01\x01t\x07\x00d\x04\x00t\x08\x00\x17d\x05\x00\x17t\x07\x00\x17d\x06\x00\x17t\x07\x00\x17d\x07\x00\x17t\x08\x00\x17d\x08\x00\x17\x17GHt\x07\x00d\x04\x00t\x08\x00\x17d\t\x00\x17t\x07\x00\x17d\x06\x00\x17t\t\x00\x17d\n\x00\x17\x17GHt\x02\x00j\x03\x00d\x03\x00\x83\x01\x00\x01t\x05\x00|\x00\x00|\x01\x00\x83\x02\x00\x01n\x01\x00Xd\x00\x00S(\x0b\x00\x00\x00NR\'\x00\x00\x00R(\x00\x00\x00i\x01\x00\x00\x00s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^(\n\x00\x00\x00R*\x00\x00\x00R \x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00t\x04\x00\x00\x00maint\x03\x00\x00\x00mosR/\x00\x00\x00R\x13\x00\x00\x00R\x10\x00\x00\x00R\x0f\x00\x00\x00(\x03\x00\x00\x00R0\x00\x00\x00R1\x00\x00\x00R2\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R6\x00\x00\x00\xb0\x00\x00\x00s\x1c\x00\x00\x00\x00\x02\x03\x02\x0c\x02\x0c\x02\x07\x01\n\x02\x0c\x02\r\x02\n\x03\x11\x02\r\x01)\x01!\x01\r\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s>\x01\x00\x00y\xc8\x00t\x00\x00\x83\x00\x00\x01t\x01\x00GHt\x02\x00GHt\x03\x00d\x01\x00\x83\x01\x00}\x00\x00|\x00\x00d\x02\x00k\x02\x00s8\x00|\x00\x00d\x03\x00k\x02\x00rB\x00t\x04\x00\x83\x00\x00\x01n\x85\x00|\x00\x00d\x04\x00k\x02\x00sZ\x00|\x00\x00d\x05\x00k\x02\x00rd\x00t\x05\x00\x83\x00\x00\x01nc\x00|\x00\x00d\x06\x00k\x02\x00s|\x00|\x00\x00d\x07\x00k\x02\x00r\x86\x00t\x06\x00\x83\x00\x00\x01nA\x00|\x00\x00d\x08\x00k\x02\x00s\x9e\x00|\x00\x00d\t\x00k\x02\x00r\xae\x00t\x07\x00j\x08\x00d\n\x00\x83\x01\x00\x01n\x19\x00d\x0b\x00GHt\t\x00j\n\x00d\x0c\x00\x83\x01\x00\x01t\x0b\x00\x83\x00\x00\x01Wno\x00\x04t\x0c\x00k\n\x00r9\x01\x01\x01\x01t\r\x00d\r\x00t\x0e\x00\x17d\x0e\x00\x17t\r\x00\x17d\x0f\x00\x17t\r\x00\x17d\x10\x00\x17t\x0e\x00\x17d\x11\x00\x17\x17GHt\r\x00d\r\x00t\x0e\x00\x17d\x12\x00\x17t\r\x00\x17d\x0f\x00\x17t\x0f\x00\x17d\x13\x00\x17\x17GHt\t\x00j\n\x00d\x0c\x00\x83\x01\x00\x01t\x0b\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x14\x00\x00\x00Ns\t\x00\x00\x00[Hash] > t\x02\x00\x00\x0001t\x01\x00\x00\x001t\x02\x00\x00\x0002t\x01\x00\x00\x002t\x02\x00\x00\x0003t\x01\x00\x00\x003t\x02\x00\x00\x0000t\x01\x00\x00\x000t\x04\x00\x00\x00exits\r\x00\x00\x00Wrong Commandi\x01\x00\x00\x00s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^(\x10\x00\x00\x00R \x00\x00\x00t\x06\x00\x00\x00bannert\x04\x00\x00\x00menuR*\x00\x00\x00R-\x00\x00\x00R\x04\x00\x00\x00t\x06\x00\x00\x00finderR%\x00\x00\x00R&\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R5\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x10\x00\x00\x00R\x0f\x00\x00\x00(\x01\x00\x00\x00t\x02\x00\x00\x00mi(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R5\x00\x00\x00\xca\x00\x00\x00s*\x00\x00\x00\x00\x01\x03\x01\x07\x01\x05\x01\x05\x01\x0c\x01\x18\x01\n\x01\x18\x01\n\x01\x18\x01\n\x01\x18\x01\x10\x02\x05\x01\r\x01\x0b\x01\r\x01)\x01!\x01\r\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xc8\x01\x00\x00yR\x01t\x00\x00\x83\x00\x00\x01t\x01\x00GHt\x02\x00GHt\x03\x00d\x01\x00\x83\x01\x00}\x00\x00|\x00\x00d\x02\x00k\x02\x00s8\x00|\x00\x00d\x03\x00k\x02\x00rI\x00t\x00\x00\x83\x00\x00\x01t\x04\x00\x83\x00\x00\x01n\x08\x01|\x00\x00d\x04\x00k\x02\x00sa\x00|\x00\x00d\x05\x00k\x02\x00rr\x00t\x00\x00\x83\x00\x00\x01t\x05\x00\x83\x00\x00\x01n\xdf\x00|\x00\x00d\x06\x00k\x02\x00s\x8a\x00|\x00\x00d\x07\x00k\x02\x00r\x9b\x00t\x00\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\xb6\x00|\x00\x00d\x08\x00k\x02\x00s\xb3\x00|\x00\x00d\t\x00k\x02\x00r\xc4\x00t\x00\x00\x83\x00\x00\x01t\x07\x00\x83\x00\x00\x01n\x8d\x00|\x00\x00d\n\x00k\x02\x00s\xdc\x00|\x00\x00d\x0b\x00k\x02\x00r\xed\x00t\x00\x00\x83\x00\x00\x01t\x08\x00\x83\x00\x00\x01nd\x00|\x00\x00d\x0c\x00k\x02\x00s\x05\x01|\x00\x00d\r\x00k\x02\x00r\x16\x01t\x00\x00\x83\x00\x00\x01t\t\x00\x83\x00\x00\x01n;\x00|\x00\x00d\x0e\x00k\x02\x00s.\x01|\x00\x00d\x0f\x00k\x02\x00r8\x01t\n\x00\x83\x00\x00\x01n\x19\x00d\x10\x00GHt\x0b\x00j\x0c\x00d\x11\x00\x83\x01\x00\x01t\r\x00\x83\x00\x00\x01Wno\x00\x04t\x0e\x00k\n\x00r\xc3\x01\x01\x01\x01t\x0f\x00d\x12\x00t\x10\x00\x17d\x13\x00\x17t\x0f\x00\x17d\x14\x00\x17t\x0f\x00\x17d\x15\x00\x17t\x10\x00\x17d\x16\x00\x17\x17GHt\x0f\x00d\x12\x00t\x10\x00\x17d\x17\x00\x17t\x0f\x00\x17d\x14\x00\x17t\x11\x00\x17d\x18\x00\x17\x17GHt\x0b\x00j\x0c\x00d\x11\x00\x83\x01\x00\x01t\r\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x19\x00\x00\x00Ns\x11\x00\x00\x00[Hash/Encrypt] > R7\x00\x00\x00R8\x00\x00\x00R9\x00\x00\x00R:\x00\x00\x00R;\x00\x00\x00R<\x00\x00\x00t\x02\x00\x00\x0004t\x01\x00\x00\x004t\x02\x00\x00\x0005t\x01\x00\x00\x005t\x02\x00\x00\x0006t\x01\x00\x00\x006R=\x00\x00\x00R>\x00\x00\x00s\r\x00\x00\x00Wrong Commandi\x01\x00\x00\x00s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^(\x12\x00\x00\x00R \x00\x00\x00R@\x00\x00\x00t\x03\x00\x00\x00opqR*\x00\x00\x00t\x06\x00\x00\x00md4enct\x06\x00\x00\x00md5enct\x07\x00\x00\x00sha1enct\t\x00\x00\x00sha256enct\t\x00\x00\x00sha384enct\t\x00\x00\x00sha512encR5\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R-\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x10\x00\x00\x00R\x0f\x00\x00\x00(\x01\x00\x00\x00t\x03\x00\x00\x00enc(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R-\x00\x00\x00\xe2\x00\x00\x00sB\x00\x00\x00\x00\x01\x03\x01\x07\x01\x05\x01\x05\x01\x0c\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\n\x02\x05\x01\r\x01\x0b\x02\r\x01)\x01!\x01\r\x01c\x00\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\x00\x01\x00\x00y\x83\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00t\x04\x00j\x05\x00d\x04\x00\x83\x01\x00}\x01\x00|\x01\x00j\x06\x00|\x00\x00\x83\x01\x00\x01|\x01\x00j\x07\x00\x83\x00\x00}\x02\x00t\x03\x00d\x05\x00\x17t\x01\x00\x17G|\x02\x00GHt\x03\x00d\x06\x00\x17GHt\x08\x00t\x01\x00d\x07\x00\x17t\t\x00\x83\x02\x00\x01Wnv\x00\x04t\n\x00k\n\x00r\xfb\x00\x01\x01\x01t\x0b\x00d\x08\x00t\x01\x00\x17d\t\x00\x17t\x0b\x00\x17d\n\x00\x17t\x0b\x00\x17d\x0b\x00\x17t\x01\x00\x17d\x0c\x00\x17\x17GHt\x0b\x00d\x08\x00t\x01\x00\x17d\r\x00\x17t\x0b\x00\x17d\n\x00\x17t\x0c\x00\x17d\x0e\x00\x17\x17GHt\r\x00j\x0e\x00d\x0f\x00\x83\x01\x00\x01t\x0f\x00\x83\x00\x00\x01t\t\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x10\x00\x00\x00Nt\x00\x00\x00\x00s\x0b\x00\x00\x00Encrypt Md4s\r\x00\x00\x00Input text : t\x03\x00\x00\x00md4s\x0c\x00\x00\x00Md4 code >>tN\x00\x00\x00______________________________________________________________________________s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x10\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00t\x02\x00\x00\x00gtt\x07\x00\x00\x00hashlibt\x03\x00\x00\x00newt\x06\x00\x00\x00updatet\t\x00\x00\x00hexdigestR.\x00\x00\x00RK\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x03\x00\x00\x00t\x03\x00\x00\x00ha1t\x01\x00\x00\x00bRS\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>RK\x00\x00\x00\x07\x01\x00\x00s$\x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x0f\x01\r\x01\x0c\x01\x11\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xf3\x00\x00\x00yv\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00t\x04\x00j\x05\x00|\x00\x00j\x06\x00\x83\x00\x00\x83\x01\x00}\x01\x00t\x03\x00d\x04\x00\x17t\x01\x00\x17G|\x01\x00j\x07\x00\x83\x00\x00GHt\x03\x00d\x05\x00\x17GHt\x08\x00t\x01\x00d\x06\x00\x17t\t\x00\x83\x02\x00\x01Wnv\x00\x04t\n\x00k\n\x00r\xee\x00\x01\x01\x01t\x0b\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0b\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x0b\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0c\x00\x17d\r\x00\x17\x17GHt\r\x00j\x0e\x00d\x0e\x00\x83\x01\x00\x01t\x0f\x00\x83\x00\x00\x01t\t\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0b\x00\x00\x00Encrypt Md5s\r\x00\x00\x00Input text : s\x0c\x00\x00\x00Md5 code >>RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x10\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00RV\x00\x00\x00t\x03\x00\x00\x00md5t\x06\x00\x00\x00encodeRY\x00\x00\x00R.\x00\x00\x00RL\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00t\x03\x00\x00\x00ha2R\\\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>RL\x00\x00\x00\x1b\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x15\x01\x17\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xef\x00\x00\x00yr\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00t\x04\x00j\x05\x00|\x00\x00j\x06\x00\x83\x00\x00\x83\x01\x00}\x01\x00t\x03\x00d\x04\x00\x17t\x01\x00\x17G|\x01\x00j\x07\x00\x83\x00\x00GHd\x05\x00GHt\x08\x00t\x01\x00d\x06\x00\x17t\t\x00\x83\x02\x00\x01Wnv\x00\x04t\n\x00k\n\x00r\xea\x00\x01\x01\x01t\x0b\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0b\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x0b\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0c\x00\x17d\r\x00\x17\x17GHt\r\x00j\x0e\x00d\x0e\x00\x83\x01\x00\x01t\x0f\x00\x83\x00\x00\x01t\t\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0c\x00\x00\x00Encrypt Sha1s\r\x00\x00\x00Input text : s\x0c\x00\x00\x00Sha1 code >>RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x10\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00RV\x00\x00\x00t\x04\x00\x00\x00sha1R]\x00\x00\x00RY\x00\x00\x00R.\x00\x00\x00RM\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00t\x03\x00\x00\x00ha3R_\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>RM\x00\x00\x00-\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x15\x01\x17\x01\x05\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xf3\x00\x00\x00yv\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00t\x04\x00j\x05\x00|\x00\x00j\x06\x00\x83\x00\x00\x83\x01\x00}\x01\x00t\x03\x00d\x04\x00\x17t\x01\x00\x17G|\x01\x00j\x07\x00\x83\x00\x00GHt\x03\x00d\x05\x00\x17GHt\x08\x00t\x01\x00d\x06\x00\x17t\t\x00\x83\x02\x00\x01Wnv\x00\x04t\n\x00k\n\x00r\xee\x00\x01\x01\x01t\x0b\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0b\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x0b\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0c\x00\x17d\r\x00\x17\x17GHt\r\x00j\x0e\x00d\x0e\x00\x83\x01\x00\x01t\x0f\x00\x83\x00\x00\x01t\x10\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0e\x00\x00\x00Encrypt Sha256s\r\x00\x00\x00Input text : s\x0e\x00\x00\x00Sha265 code >>RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x11\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00RV\x00\x00\x00t\x06\x00\x00\x00sha256R]\x00\x00\x00RY\x00\x00\x00R.\x00\x00\x00RN\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00t\t\x00\x00\x00sha265enc(\x02\x00\x00\x00t\x03\x00\x00\x00ha4Ra\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>RN\x00\x00\x00?\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x15\x01\x17\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xf3\x00\x00\x00yv\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00t\x04\x00j\x05\x00|\x00\x00j\x06\x00\x83\x00\x00\x83\x01\x00}\x01\x00t\x03\x00d\x04\x00\x17t\x01\x00\x17G|\x01\x00j\x07\x00\x83\x00\x00GHt\x03\x00d\x05\x00\x17GHt\x08\x00t\x01\x00d\x06\x00\x17t\t\x00\x83\x02\x00\x01Wnv\x00\x04t\n\x00k\n\x00r\xee\x00\x01\x01\x01t\x0b\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0b\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x0b\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0c\x00\x17d\r\x00\x17\x17GHt\r\x00j\x0e\x00d\x0e\x00\x83\x01\x00\x01t\x0f\x00\x83\x00\x00\x01t\t\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0e\x00\x00\x00Encrypt Sha384s\r\x00\x00\x00Input text : s\x0e\x00\x00\x00Sha384 code >>RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x10\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00RV\x00\x00\x00t\x06\x00\x00\x00sha384R]\x00\x00\x00RY\x00\x00\x00R.\x00\x00\x00RO\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00t\x03\x00\x00\x00ha5Rd\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>RO\x00\x00\x00Q\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x15\x01\x17\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xf3\x00\x00\x00yv\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00t\x04\x00j\x05\x00|\x00\x00j\x06\x00\x83\x00\x00\x83\x01\x00}\x01\x00t\x03\x00d\x04\x00\x17t\x01\x00\x17G|\x01\x00j\x07\x00\x83\x00\x00GHt\x03\x00d\x05\x00\x17GHt\x08\x00t\x01\x00d\x06\x00\x17t\t\x00\x83\x02\x00\x01Wnv\x00\x04t\n\x00k\n\x00r\xee\x00\x01\x01\x01t\x0b\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0b\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x0b\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x0b\x00\x17d\t\x00\x17t\x0c\x00\x17d\r\x00\x17\x17GHt\r\x00j\x0e\x00d\x0e\x00\x83\x01\x00\x01t\x0f\x00\x83\x00\x00\x01t\t\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0e\x00\x00\x00Encrypt Sha512s\r\x00\x00\x00Input text : s\x0e\x00\x00\x00Sha512 code >>RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x10\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00RV\x00\x00\x00t\x06\x00\x00\x00sha512R]\x00\x00\x00RY\x00\x00\x00R.\x00\x00\x00RP\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00t\x03\x00\x00\x00ha6Rf\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>RP\x00\x00\x00c\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x15\x01\x17\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xc2\x01\x00\x00yL\x01t\x00\x00\x83\x00\x00\x01t\x01\x00GHt\x02\x00GHt\x03\x00d\x01\x00\x83\x01\x00}\x00\x00|\x00\x00d\x02\x00k\x02\x00s8\x00|\x00\x00d\x03\x00k\x02\x00rI\x00t\x00\x00\x83\x00\x00\x01t\x04\x00\x83\x00\x00\x01n\x02\x01|\x00\x00d\x04\x00k\x02\x00sa\x00|\x00\x00d\x05\x00k\x02\x00rr\x00t\x00\x00\x83\x00\x00\x01t\x05\x00\x83\x00\x00\x01n\xd9\x00|\x00\x00d\x06\x00k\x02\x00s\x8a\x00|\x00\x00d\x07\x00k\x02\x00r\x9b\x00t\x00\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\xb0\x00|\x00\x00d\x08\x00k\x02\x00s\xb3\x00|\x00\x00d\t\x00k\x02\x00r\xc4\x00t\x00\x00\x83\x00\x00\x01t\x07\x00\x83\x00\x00\x01n\x87\x00|\x00\x00d\n\x00k\x02\x00s\xdc\x00|\x00\x00d\x0b\x00k\x02\x00r\xed\x00t\x00\x00\x83\x00\x00\x01t\x08\x00\x83\x00\x00\x01n^\x00|\x00\x00d\x0c\x00k\x02\x00s\x05\x01|\x00\x00d\r\x00k\x02\x00r\x16\x01t\x00\x00\x83\x00\x00\x01t\t\x00\x83\x00\x00\x01n5\x00|\x00\x00d\x0e\x00k\x02\x00s.\x01|\x00\x00d\x0f\x00k\x02\x00r?\x01t\x00\x00\x83\x00\x00\x01t\n\x00\x83\x00\x00\x01n\x0c\x00d\x10\x00GHt\x0b\x00\x83\x00\x00\x01Wno\x00\x04t\x0c\x00k\n\x00r\xbd\x01\x01\x01\x01t\r\x00d\x11\x00t\x0e\x00\x17d\x12\x00\x17t\r\x00\x17d\x13\x00\x17t\r\x00\x17d\x14\x00\x17t\x0e\x00\x17d\x15\x00\x17\x17GHt\r\x00d\x11\x00t\x0e\x00\x17d\x16\x00\x17t\r\x00\x17d\x13\x00\x17t\x0f\x00\x17d\x17\x00\x17\x17GHt\x10\x00j\x11\x00d\x18\x00\x83\x01\x00\x01t\x0b\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x19\x00\x00\x00Ns\x11\x00\x00\x00[Hash/Decrypt] > R7\x00\x00\x00R8\x00\x00\x00R9\x00\x00\x00R:\x00\x00\x00R;\x00\x00\x00R<\x00\x00\x00RD\x00\x00\x00RE\x00\x00\x00RF\x00\x00\x00RG\x00\x00\x00RH\x00\x00\x00RI\x00\x00\x00R=\x00\x00\x00R>\x00\x00\x00s\r\x00\x00\x00Wrong Commands\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x12\x00\x00\x00R \x00\x00\x00R@\x00\x00\x00t\x03\x00\x00\x00pqrR*\x00\x00\x00t\x06\x00\x00\x00md4dect\x06\x00\x00\x00md5dect\x07\x00\x00\x00sha1dect\t\x00\x00\x00sha256dect\t\x00\x00\x00sha384dect\t\x00\x00\x00sha512decR5\x00\x00\x00R\x04\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x10\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00(\x01\x00\x00\x00t\x03\x00\x00\x00dec(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>R\x04\x00\x00\x00u\x01\x00\x00sB\x00\x00\x00\x00\x01\x03\x01\x07\x01\x05\x01\x05\x01\x0c\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x01\x18\x01\x07\x01\n\x02\x05\x01\x0b\x01\r\x01)\x01!\x01\r\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xda\x00\x00\x00y]\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00d\x04\x00}\x01\x00t\x04\x00|\x00\x00|\x01\x00\x83\x02\x00\x01t\x03\x00d\x05\x00\x17GHt\x05\x00t\x01\x00d\x06\x00\x17t\x06\x00\x83\x02\x00\x01Wnv\x00\x04t\x07\x00k\n\x00r\xd5\x00\x01\x01\x01t\x08\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x08\x00\x17d\t\x00\x17t\x08\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x08\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x08\x00\x17d\t\x00\x17t\t\x00\x17d\r\x00\x17\x17GHt\n\x00j\x0b\x00d\x0e\x00\x83\x01\x00\x01t\x0c\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0b\x00\x00\x00Decrypt Md4s\x11\x00\x00\x00Input Md4 code > s\x04\x00\x00\x00Md4/RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\r\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00R\x1d\x00\x00\x00R3\x00\x00\x00Ri\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00R\x15\x00\x00\x00R\x16\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>Ri\x00\x00\x00\x99\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x06\x01\r\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xd1\x00\x00\x00yT\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00t\x04\x00|\x00\x00\x83\x01\x00\x01t\x03\x00d\x04\x00\x17GHt\x05\x00t\x01\x00d\x05\x00\x17t\x06\x00\x83\x02\x00\x01Wnv\x00\x04t\x07\x00k\n\x00r\xcc\x00\x01\x01\x01t\x08\x00d\x06\x00t\x01\x00\x17d\x07\x00\x17t\x08\x00\x17d\x08\x00\x17t\x08\x00\x17d\t\x00\x17t\x01\x00\x17d\n\x00\x17\x17GHt\x08\x00d\x06\x00t\x01\x00\x17d\x0b\x00\x17t\x08\x00\x17d\x08\x00\x17t\t\x00\x17d\x0c\x00\x17\x17GHt\n\x00j\x0b\x00d\r\x00\x83\x01\x00\x01t\x0c\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0e\x00\x00\x00NRR\x00\x00\x00s\x0b\x00\x00\x00Decrypt Md5s\x11\x00\x00\x00Input Md5 code > RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\r\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00R\x1e\x00\x00\x00R3\x00\x00\x00Rj\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x01\x00\x00\x00R\x15\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>Rj\x00\x00\x00\xab\x01\x00\x00s\x1e\x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\n\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xda\x00\x00\x00y]\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00d\x04\x00}\x01\x00t\x04\x00|\x00\x00|\x01\x00\x83\x02\x00\x01t\x03\x00d\x05\x00\x17GHt\x05\x00t\x01\x00d\x06\x00\x17t\x06\x00\x83\x02\x00\x01Wnv\x00\x04t\x07\x00k\n\x00r\xd5\x00\x01\x01\x01t\x08\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x08\x00\x17d\t\x00\x17t\x08\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x08\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x08\x00\x17d\t\x00\x17t\t\x00\x17d\r\x00\x17\x17GHt\n\x00j\x0b\x00d\x0e\x00\x83\x01\x00\x01t\x0c\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0c\x00\x00\x00Decrypt Sha1s\x12\x00\x00\x00Input Sha1 code > s\x05\x00\x00\x00Sha1/RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\r\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00R\x1d\x00\x00\x00R3\x00\x00\x00Rk\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00R\x15\x00\x00\x00R\x16\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>Rk\x00\x00\x00\xbc\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x06\x01\r\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xda\x00\x00\x00y]\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00d\x04\x00}\x01\x00t\x04\x00|\x00\x00|\x01\x00\x83\x02\x00\x01t\x03\x00d\x05\x00\x17GHt\x05\x00t\x01\x00d\x06\x00\x17t\x06\x00\x83\x02\x00\x01Wnv\x00\x04t\x07\x00k\n\x00r\xd5\x00\x01\x01\x01t\x08\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x08\x00\x17d\t\x00\x17t\x08\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x08\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x08\x00\x17d\t\x00\x17t\t\x00\x17d\r\x00\x17\x17GHt\n\x00j\x0b\x00d\x0e\x00\x83\x01\x00\x01t\x0c\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0e\x00\x00\x00Decrypt Sha256s\x14\x00\x00\x00Input Sha256 code > s\x07\x00\x00\x00Sha256/RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\r\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00R\x1d\x00\x00\x00R3\x00\x00\x00Rl\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00R\x15\x00\x00\x00R\x16\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>Rl\x00\x00\x00\xce\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x06\x01\r\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xda\x00\x00\x00y]\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00d\x04\x00}\x01\x00t\x04\x00|\x00\x00|\x01\x00\x83\x02\x00\x01t\x03\x00d\x05\x00\x17GHt\x05\x00t\x01\x00d\x06\x00\x17t\x06\x00\x83\x02\x00\x01Wnv\x00\x04t\x07\x00k\n\x00r\xd5\x00\x01\x01\x01t\x08\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x08\x00\x17d\t\x00\x17t\x08\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x08\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x08\x00\x17d\t\x00\x17t\t\x00\x17d\r\x00\x17\x17GHt\n\x00j\x0b\x00d\x0e\x00\x83\x01\x00\x01t\x0c\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0e\x00\x00\x00Decrypt Sha384s\x14\x00\x00\x00Input Sha384 code > s\x07\x00\x00\x00Sha384/RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\r\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00R\x1d\x00\x00\x00R3\x00\x00\x00Rm\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00R\x15\x00\x00\x00R\x16\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>Rm\x00\x00\x00\xe0\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x06\x01\r\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xda\x00\x00\x00y]\x00t\x00\x00GHd\x01\x00GHt\x01\x00d\x02\x00\x17GHd\x01\x00GHt\x02\x00t\x03\x00d\x03\x00\x17t\x01\x00\x17\x83\x01\x00}\x00\x00d\x04\x00}\x01\x00t\x04\x00|\x00\x00|\x01\x00\x83\x02\x00\x01t\x03\x00d\x05\x00\x17GHt\x05\x00t\x01\x00d\x06\x00\x17t\x06\x00\x83\x02\x00\x01Wnv\x00\x04t\x07\x00k\n\x00r\xd5\x00\x01\x01\x01t\x08\x00d\x07\x00t\x01\x00\x17d\x08\x00\x17t\x08\x00\x17d\t\x00\x17t\x08\x00\x17d\n\x00\x17t\x01\x00\x17d\x0b\x00\x17\x17GHt\x08\x00d\x07\x00t\x01\x00\x17d\x0c\x00\x17t\x08\x00\x17d\t\x00\x17t\t\x00\x17d\r\x00\x17\x17GHt\n\x00j\x0b\x00d\x0e\x00\x83\x01\x00\x01t\x0c\x00\x83\x00\x00\x01t\x06\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0e\x00\x00\x00Decrypt Sha512s\x14\x00\x00\x00Input Sha512 code > s\x07\x00\x00\x00Sha512/RT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\r\x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00R\x1d\x00\x00\x00R3\x00\x00\x00Rn\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00R \x00\x00\x00(\x02\x00\x00\x00R\x15\x00\x00\x00R\x16\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>Rn\x00\x00\x00\xf2\x01\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x06\x01\r\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xdf\x00\x00\x00yb\x00t\x00\x00\x83\x00\x00\x01t\x01\x00GHd\x01\x00GHt\x02\x00d\x02\x00\x17GHd\x01\x00GHt\x03\x00t\x04\x00d\x03\x00\x17t\x02\x00\x17\x83\x01\x00}\x00\x00t\x05\x00j\x06\x00d\x04\x00|\x00\x00\x16\x83\x01\x00\x01t\x04\x00d\x05\x00\x17GHt\x07\x00t\x02\x00d\x06\x00\x17t\x08\x00\x83\x02\x00\x01Wnv\x00\x04t\t\x00k\n\x00r\xda\x00\x01\x01\x01t\n\x00d\x07\x00t\x02\x00\x17d\x08\x00\x17t\n\x00\x17d\t\x00\x17t\n\x00\x17d\n\x00\x17t\x02\x00\x17d\x0b\x00\x17\x17GHt\n\x00d\x07\x00t\x02\x00\x17d\x0c\x00\x17t\n\x00\x17d\t\x00\x17t\x0b\x00\x17d\r\x00\x17\x17GHt\x0c\x00j\r\x00d\x0e\x00\x83\x01\x00\x01t\x00\x00\x83\x00\x00\x01t\x08\x00\x83\x00\x00\x01n\x01\x00Xd\x00\x00S(\x0f\x00\x00\x00NRR\x00\x00\x00s\x0b\x00\x00\x00Hash Finders\x13\x00\x00\x00Input hash code >> s\x0f\x00\x00\x00python2 a.py %sRT\x00\x00\x00s\'\x00\x00\x00Do you want to repeat it again (Y/n) : s\x06\x00\x00\x00 [R\x06\x00\x00\x00s\x02\x00\x00\x00] s\x16\x00\x00\x00(Ctrl + C ) Detected, s\x12\x00\x00\x00Trying To Back ...R)\x00\x00\x00s$\x00\x00\x00Thank For Using my Pentest Tools ^~^i\x01\x00\x00\x00(\x0e\x00\x00\x00R \x00\x00\x00R@\x00\x00\x00R\x10\x00\x00\x00R*\x00\x00\x00RU\x00\x00\x00R%\x00\x00\x00R&\x00\x00\x00R6\x00\x00\x00RB\x00\x00\x00R/\x00\x00\x00R\x13\x00\x00\x00R\x0f\x00\x00\x00R+\x00\x00\x00R,\x00\x00\x00(\x01\x00\x00\x00t\x02\x00\x00\x00sc(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>RB\x00\x00\x00\x04\x02\x00\x00s \x00\x00\x00\x00\x01\x03\x01\x07\x01\x05\x01\x05\x01\t\x01\x05\x01\x14\x01\x11\x01\t\x01\x15\x01\r\x01)\x01!\x01\r\x01\x07\x01c\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00C\x00\x00\x00s\x0b\x00\x00\x00t\x00\x00\x83\x00\x00\x01d\x00\x00S(\x01\x00\x00\x00N(\x01\x00\x00\x00R5\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x05\x00\x00\x00start\x16\x02\x00\x00s\x02\x00\x00\x00\x00\x01t\x08\x00\x00\x00__main__(4\x00\x00\x00R\x07\x00\x00\x00R\t\x00\x00\x00R\r\x00\x00\x00R#\x00\x00\x00R%\x00\x00\x00R+\x00\x00\x00t\x07\x00\x00\x00pathlibRV\x00\x00\x00t\t\x00\x00\x00Exceptiont\x03\x00\x00\x00errR\x13\x00\x00\x00R\x10\x00\x00\x00t\x03\x00\x00\x00strR?\x00\x00\x00R\x0f\x00\x00\x00RU\x00\x00\x00t\x02\x00\x00\x00btR[\x00\x00\x00t\x01\x00\x00\x00ut\x01\x00\x00\x00Mt\x01\x00\x00\x00kR\x11\x00\x00\x00t\x01\x00\x00\x00at\x06\x00\x00\x00formatR@\x00\x00\x00RA\x00\x00\x00RJ\x00\x00\x00Rh\x00\x00\x00R\x1d\x00\x00\x00R\x1e\x00\x00\x00R \x00\x00\x00R.\x00\x00\x00R3\x00\x00\x00R6\x00\x00\x00R5\x00\x00\x00R-\x00\x00\x00RK\x00\x00\x00RL\x00\x00\x00RM\x00\x00\x00RN\x00\x00\x00RO\x00\x00\x00RP\x00\x00\x00R\x04\x00\x00\x00Ri\x00\x00\x00Rj\x00\x00\x00Rk\x00\x00\x00Rl\x00\x00\x00Rm\x00\x00\x00Rn\x00\x00\x00RB\x00\x00\x00Rq\x00\x00\x00t\x08\x00\x00\x00__name__(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x03\x00\x00\x00<s>t\x08\x00\x00\x00<module>\x01\x00\x00\x00sf\x00\x00\x00\x03\x01\x0c\x01\x0c\x01\x0c\x01\x0c\x01\x0c\x01\x0c\x01\x0c\x01\x10\x02\x0f\x01#\x01\x0e\x02\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\x01\x06\r\x0f\t\x0f\x0c\x0f\r\x12\x02\t\x0f\t\x0f\t\x13\t\x1a\t\x1b\t\x1a\t\x18\t%\t\x14\t\x12\t\x12\t\x12\t\x12\t\x12\t$\t\x12\t\x11\t\x12\t\x12\t\x12\t\x12\t\x12\t\x03\x0c\x01'''))
14,393
43,145
0.738901
9,675
43,179
3.28031
0.046098
0.317421
0.14094
0.082049
0.848883
0.816303
0.783344
0.748495
0.731008
0.720831
0
0.401673
0.022418
43,179
3
43,145
14,393
0.350193
0.000394
0
0
0
0.5
0.998981
0.854432
0
0
0
0
0
1
0
true
0.5
0.5
0
0.5
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
1
0
0
1
1
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
1
1
0
0
0
0
18
92c041c425f91042b5732e55bb7f62301bc74da3
12,277
py
Python
dataset.py
yjs1224/TextSteganalysis
3b391f67c37cf2dea964639d201ea5f65fdcf9ba
[ "MIT" ]
6
2021-12-17T13:39:04.000Z
2022-03-09T09:12:39.000Z
dataset.py
yjs1224/TextSteganalysis
3b391f67c37cf2dea964639d201ea5f65fdcf9ba
[ "MIT" ]
1
2022-01-17T09:52:49.000Z
2022-01-22T14:05:10.000Z
dataset.py
yjs1224/TextSteganalysis
3b391f67c37cf2dea964639d201ea5f65fdcf9ba
[ "MIT" ]
null
null
null
import numpy as np import collections from sklearn.model_selection import train_test_split from transformers import AutoTokenizer class BertDataHelper(object): def __init__(self, raw, word_drop=5, ratio=0.8, use_label=True, use_length=False, tokenizer_config=None): assert (use_label and (len(raw) == 2)) or ((not use_label) and (len(raw) == 1)) self._word_drop = word_drop self.use_label = use_label self.use_length = use_length self.tokenizer_config= tokenizer_config self.train = None self.train_num = 0 self.val = None self.val_num = None self.test = None self.test_num = 0 if self.use_label: self.label_train = None self.label_test = None self.label_val = None if self.use_length: self.train_length = None self.test_length = None self.val_length = None self.max_sentence_length = 0 self.min_sentence_length = 0 self.vocab_size = 0 self.vocab_size_raw = 0 self.sentence_num = 0 self.word_num = 0 self.w2i = {} self.i2w = {} sentences = [] for _ in raw: sentences += _ self._build_vocabulary(sentences) corpus_length = None label = None if self.use_length: corpus, corpus_length = self._build_corpus(sentences) else: corpus = self._build_corpus(sentences) if self.use_label: label = self._build_label(raw) self._split(corpus, ratio, corpus_length=corpus_length, label=label) # self._split(corpus, ratio, corpus_length=corpus_length, label=label,sentences=sentences) def _build_label(self, raw): label = [0]*len(raw[0]) + [1]*len(raw[1]) return np.array(label) def _build_vocabulary(self, sentences): self.sentence_num = len(sentences) words = [] for sentence in sentences: words += sentence.split(' ') self.word_num = len(words) word_distribution = sorted(collections.Counter(words).items(), key=lambda x: x[1], reverse=True) self.vocab_size_raw = len(word_distribution) self.w2i['_PAD'] = 0 self.w2i['_UNK'] = 1 self.w2i['_BOS'] = 2 self.w2i['_EOS'] = 3 self.i2w[0] = '_PAD' self.i2w[1] = '_UNK' self.i2w[2] = '_BOS' self.i2w[3] = '_EOS' for (word, value) in word_distribution: if value > self._word_drop: self.w2i[word] = len(self.w2i) self.i2w[len(self.i2w)] = word self.vocab_size = len(self.i2w) def _build_corpus(self, sentences): self.tokenizer = AutoTokenizer.from_pretrained(self.tokenizer_config.model_name_or_path) self.vocab_size = self.tokenizer.vocab_size corpus = self.tokenizer(sentences)["input_ids"] if self.use_length: corpus_length = np.array([len(i) for i in corpus]) self.max_sentence_length = corpus_length.max() self.min_sentence_length = corpus_length.min() return np.array(corpus), np.array(corpus_length) else: return np.array(corpus) def _split(self, corpus, ratio, corpus_length=None, label=None, sentences=None): self.train, self.test, self.label_train, self.label_test = train_test_split(corpus, label, test_size=1-ratio, shuffle=True, random_state=42) self.train, self.val, self.label_train, self.label_val = train_test_split(self.train, self.label_train, test_size=(1-ratio)/ratio) indices = list(range(self.sentence_num)) self.train_num = len(self.train) self.val_num = len(self.val) self.test_num = len(self.test) def _padding(self, batch_data): max_length = max([len(i) for i in batch_data]) for i in range(len(batch_data)): batch_data[i] += [self.tokenizer.pad_token_id] * (max_length - len(batch_data[i])) return np.array(list(batch_data)) def train_generator(self, batch_size, shuffle=True): indices = list(range(self.train_num)) if shuffle: np.random.shuffle(indices) while True: batch_indices = indices[0:batch_size] # 产生一个batch的index indices = indices[batch_size:] # 去掉本次index if len(batch_indices) == 0: return True batch_data = self.train[batch_indices] batch_data = self._padding(batch_data) result = [batch_data] if self.use_length: batch_length = self.train_length[batch_indices] result.append(batch_length) if self.use_label: batch_label = self.label_train[batch_indices] result.append(batch_label) yield tuple(result) def val_generator(self, batch_size, shuffle=True): indices = list(range(self.val_num)) if shuffle: np.random.shuffle(indices) while True: batch_indices = indices[0:batch_size] # 产生一个batch的index indices = indices[batch_size:] # 去掉本次index if len(batch_indices) == 0: return True batch_data = self.val[batch_indices] batch_data = self._padding(batch_data) result = [batch_data] if self.use_length: batch_length = self.val_length[batch_indices] result.append(batch_length) if self.use_label: batch_label = self.label_val[batch_indices] result.append(batch_label) yield tuple(result) def test_generator(self, batch_size, shuffle=True): indices = list(range(self.test_num)) if shuffle: np.random.shuffle(indices) while True: batch_indices = indices[0:batch_size] # 产生一个batch的index indices = indices[batch_size:] # 去掉本次index if len(batch_indices) == 0: return True batch_data = self.test[batch_indices] batch_data = self._padding(batch_data) result = [batch_data] if self.use_length: batch_length = self.test_length[batch_indices] result.append(batch_length) if self.use_label: batch_label = self.label_test[batch_indices] result.append(batch_label) yield tuple(result) pass class DataHelper(object): def __init__(self, raw, word_drop=5, ratio=0.8, use_label=False, use_length=False, do_lower=True, max_length=60): assert (use_label and (len(raw) == 2)) or ((not use_label) and (len(raw) == 1)) self._word_drop = word_drop self.use_label = use_label self.use_length = use_length self.do_lower = do_lower self.max_length = max_length self.train = None self.train_num = 0 self.val = None self.val_num = None self.test = None self.test_num = 0 if self.use_label: self.label_train = None self.label_test = None self.label_val = None if self.use_length: self.train_length = None self.test_length = None self.val_length = None self.max_sentence_length = 0 self.min_sentence_length = 0 self.vocab_size = 0 self.vocab_size_raw = 0 self.sentence_num = 0 self.word_num = 0 self.w2i = {} self.i2w = {} sentences = [] for _ in raw: sentences += _ self._build_vocabulary(sentences) corpus_length = None label = None if self.use_length: corpus, corpus_length = self._build_corpus(sentences) else: corpus = self._build_corpus(sentences) if self.use_label: label = self._build_label(raw) self._split(corpus, ratio, corpus_length=corpus_length, label=label) # self._split(corpus, ratio, corpus_length=corpus_length, label=label,sentences=sentences) def _build_label(self, raw): label = [0]*len(raw[0]) + [1]*len(raw[1]) return np.array(label) def _build_vocabulary(self, sentences): self.sentence_num = len(sentences) words = [] for sentence in sentences: if self.do_lower: words += sentence.lower().split(' ') else: words += sentence.split(' ') self.word_num = len(words) word_distribution = sorted(collections.Counter(words).items(), key=lambda x: x[1], reverse=True) self.vocab_size_raw = len(word_distribution) self.w2i['_PAD'] = 0 self.w2i['_UNK'] = 1 self.w2i['_BOS'] = 2 self.w2i['_EOS'] = 3 self.i2w[0] = '_PAD' self.i2w[1] = '_UNK' self.i2w[2] = '_BOS' self.i2w[3] = '_EOS' for (word, value) in word_distribution: if value > self._word_drop: self.w2i[word] = len(self.w2i) self.i2w[len(self.i2w)] = word self.vocab_size = len(self.i2w) def _build_corpus(self, sentences): def _transfer(word): try: return self.w2i[word] except: return self.w2i['_UNK'] sentences = [" ".join(sentence.split(" ")[:self.max_length-2]) for sentence in sentences] corpus = [[self.w2i["_BOS"]] + list(map(_transfer, sentence.split(' '))) + [self.w2i["_EOS"]] for sentence in sentences] if self.use_length: corpus_length = np.array([len(i) for i in corpus]) self.max_sentence_length = corpus_length.max() self.min_sentence_length = corpus_length.min() return np.array(corpus), np.array(corpus_length) else: return np.array(corpus) def _split(self, corpus, ratio, corpus_length=None, label=None, sentences=None): self.train, self.test, self.label_train, self.label_test = train_test_split(corpus, label, test_size=1-ratio, shuffle=True, random_state=42) self.train, self.val, self.label_train, self.label_val = train_test_split(self.train, self.label_train, test_size=(1-ratio)/ratio) indices = list(range(self.sentence_num)) # np.random.shuffle(indices) # self.train = corpus[indices[:int(self.sentence_num * ratio)]] self.train_num = len(self.train) self.val_num = len(self.val) # self.test = corpus[indices[int(self.sentence_num * ratio):]] self.test_num = len(self.test) # if sentences is not None: # sentences = np.array(sentences) # self.train_org = sentences[indices[:int(self.sentence_num * ratio)]] # self.test_org = sentences[indices[int(self.sentence_num * ratio):]] # if self.use_length: # self.train_length = corpus_length[indices[:int(self.sentence_num * ratio)]] # self.test_length = corpus_length[indices[int(self.sentence_num * ratio):]] # if self.use_label: # # self.label_train = label[indices[:int(self.sentence_num * ratio)]] # # self.label_test = label[indices[int(self.sentence_num*ratio):]] def _padding(self, batch_data): max_length = max([len(i) for i in batch_data]) for i in range(len(batch_data)): batch_data[i] += [self.w2i["_PAD"]] * (max_length - len(batch_data[i])) return np.array(list(batch_data)) def train_generator(self, batch_size, shuffle=True): indices = list(range(self.train_num)) if shuffle: np.random.shuffle(indices) while True: batch_indices = indices[0:batch_size] # 产生一个batch的index indices = indices[batch_size:] # 去掉本次index if len(batch_indices) == 0: return True batch_data = self.train[batch_indices] batch_data = self._padding(batch_data) result = [batch_data] if self.use_length: batch_length = self.train_length[batch_indices] result.append(batch_length) if self.use_label: batch_label = self.label_train[batch_indices] result.append(batch_label) yield tuple(result) def val_generator(self, batch_size, shuffle=True): indices = list(range(self.val_num)) if shuffle: np.random.shuffle(indices) while True: batch_indices = indices[0:batch_size] # 产生一个batch的index indices = indices[batch_size:] # 去掉本次index if len(batch_indices) == 0: return True batch_data = self.val[batch_indices] batch_data = self._padding(batch_data) result = [batch_data] if self.use_length: batch_length = self.val_length[batch_indices] result.append(batch_length) if self.use_label: batch_label = self.label_val[batch_indices] result.append(batch_label) yield tuple(result) def test_generator(self, batch_size, shuffle=True): indices = list(range(self.test_num)) if shuffle: np.random.shuffle(indices) while True: batch_indices = indices[0:batch_size] # 产生一个batch的index indices = indices[batch_size:] # 去掉本次index if len(batch_indices) == 0: return True batch_data = self.test[batch_indices] batch_data = self._padding(batch_data) result = [batch_data] if self.use_length: batch_length = self.test_length[batch_indices] result.append(batch_length) if self.use_label: batch_label = self.label_test[batch_indices] result.append(batch_label) yield tuple(result) pass
34.00831
144
0.678423
1,730
12,277
4.572832
0.066474
0.040956
0.027304
0.024649
0.903805
0.903805
0.896726
0.883074
0.864113
0.845911
0
0.011258
0.204122
12,277
360
145
34.102778
0.798383
0.082105
0
0.918301
0
0
0.008738
0
0
0
0
0
0.006536
1
0.062092
false
0.006536
0.013072
0
0.133987
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
92e6d7a0420d614ddcbee3b563ad7f499127bd98
228,314
py
Python
tests/test_typechecker.py
bhavints/pytypes
6291a2d078b1f2406511f15d66921637c7ebb3f2
[ "Apache-2.0" ]
null
null
null
tests/test_typechecker.py
bhavints/pytypes
6291a2d078b1f2406511f15d66921637c7ebb3f2
[ "Apache-2.0" ]
null
null
null
tests/test_typechecker.py
bhavints/pytypes
6291a2d078b1f2406511f15d66921637c7ebb3f2
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, 2018, 2021 Stefan Richthofer # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Created on 25.08.2016 import abc import sys import unittest import warnings import collections from abc import abstractmethod from numbers import Real import pytypes from pytypes import typechecked, override, auto_override, no_type_check, get_types, \ get_type_hints, TypeCheckError, InputTypeError, ReturnTypeError, OverrideError, \ TypeSyntaxError, check_argument_types, annotations, get_member_types, resolve_fw_decl, \ TypeChecker, restore_profiler, is_subtype, is_of_type, type_bases pytypes.clean_traceback = False import typing from typing import Tuple, List, Union, Any, Dict, Generator, TypeVar, Generic, Iterable, \ Iterator, Sequence, Callable, Mapping, Set, Optional, \ T_co, V_co, VT_co, T_contra, KT, T, VT pytypes.check_override_at_class_definition_time = False pytypes.check_override_at_runtime = True pytypes.always_check_parent_types = False class testClass(str): @typechecked def testmeth(self, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), self)) @typechecked def testmeth2(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) @typechecked @classmethod def testmeth_class(cls, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), str(cls))) @typechecked @classmethod def testmeth_class2(cls, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), str(cls))) @typechecked @classmethod def testmeth_class2_err(cls, a, b): # type: (int, Real) -> int return '-'.join((str(a), str(b), str(cls))) @typechecked @staticmethod def testmeth_static( a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), 'static')) @staticmethod def testmeth_static_raw(a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), 'static')) @classmethod def testmeth_class_raw(cls, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), 'static')) @typechecked @staticmethod def testmeth_static2(a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), 'static')) @typechecked def testmeth_forward(self, a, b): # type: (int, testClass2) -> int assert b.__class__ is testClass2 return len(str(a)+str(b)+str(self)) class testClass2Base(str): # actually methods here should be abstract def __repr__(self): return super(testClass2Base, self).__repr__() def testmeth(self, a, b): # type: (int, Real) -> Union[str, int] pass def testmeth2(self, a, b): # type: (int, Real) -> Union[str, int] pass def testmeth2b(self, a, b): # type: (int, Real) -> Union[str, int] pass def testmeth3(self, a, b): # type: (int, Real) -> Union[str, int] pass def testmeth3b(self, a, b): # type: (int, Real) -> Union[str, int] pass def testmeth3_err(self, a, b): # type: (int, Real) -> Union[str, int] pass def testmeth4(self, a, # type: int b # type: Real ): # type: (...) -> str pass def testmeth5(self, a, # type: int b # type: Real ): # type: (...) -> str pass # testmeth6 intentionally not defined def testmeth7(self, a): # type:(int) -> testClass2 pass class testClass2(testClass2Base): @override def __repr__(self, a): # Should fail because of arg-count mismatch return super(testClass2, self).__repr__() def testmeth0(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) @typechecked @override def testmeth(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) @override def testmeth2(self, a, b): # type: (str, Real) -> Union[str, int] return '-'.join((str(a), str(b), self)) @override def testmeth2b(self, a, b): # type: (int, Real) -> Union[str, Real] return '-'.join((str(a), str(b), self)) def testmeth2c(self, a, b): # type: (int, Real) -> Union[str, Real] return '-'.join((str(a), str(b), self)) @typechecked @override def testmeth3(self, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), self)) @typechecked @override def testmeth3_err(self, a, b): # type: (int, Real) -> int return '-'.join((str(a), str(b), self)) @override def testmeth4(self, a, b): return '-'.join((str(a), str(b), self)) @override def testmeth5(self, a, b): # type: (...) -> str return '-'.join((str(a), str(b), self)) @override def testmeth6(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) @typechecked def testmeth_err(self, a, b): # type: (int, Real) -> int return '-'.join((str(a), str(b), self)) class testClass2_init_ov(testClass2Base): @override def __init__(self): # should fail because of invalid use of @override pass class testClass3Base(): __metaclass__ = abc.ABCMeta @abstractmethod def testmeth(self, a, b): # type: (int, Real) -> Union[str, int] pass class testClass3(testClass3Base): @typechecked @override def testmeth(self, a, b): return '-'.join((str(a), str(b), str(type(self)))) class testClass3_no_override(testClass3Base): @typechecked def testmeth(self, a, b): return '-'.join((str(a), str(b), str(type(self)))) class testClass3_no_override_err(testClass3Base): @typechecked def testmeth(self, a, b): return 7.5 class testClass3_no_override_check_argtypes(testClass3Base): def testmeth(self, a, b): check_argument_types() return '-'.join((str(a), str(b), str(type(self)))) @typechecked class testClass4(str): def testmeth(self, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), self)) def testmeth_err(self, a, b): # type: (int, Real) -> int return '-'.join((str(a), str(b), self)) @no_type_check def testmeth_raw(self, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), self)) def testmeth2(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) @classmethod def testmeth_class(cls, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), str(cls))) @classmethod def testmeth_class2(cls, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), str(cls))) @classmethod def testmeth_class2_err(cls, a, b): # type: (int, Real) -> int return '-'.join((str(a), str(b), str(cls))) @staticmethod def testmeth_static( a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), 'static')) @no_type_check @staticmethod def testmeth_static_raw(a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), 'static')) @no_type_check @classmethod def testmeth_class_raw(cls, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), str(cls))) @staticmethod def testmeth_static2(a, q): # type: (int, Real) -> str return '-'.join((str(a), str(q), 'static')) class testClass5_base(object): def testmeth_cls5(self, a, b): # type: (int, Real) -> str return 'Dummy implementation 5' @typechecked class testClass5(testClass5_base): @override def testmeth_cls5(self, a, b): return '-'.join((str(a), str(b))) def testmeth2_cls5(self, a, b): return '-'.join((str(a), str(b))) def testClass2_defTimeCheck(): class testClass2b(testClass2Base): def testmeth0(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) @typechecked @override def testmeth(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) def testmeth2c(self, a, b): # type: (int, Real) -> Union[str, Real] return '-'.join((str(a), str(b), self)) @typechecked @override def testmeth3(self, a, b): # type: (int, Real) -> str return '-'.join((str(a), str(b), self)) @typechecked @override def testmeth3b(self, a, b): return '-'.join((str(a), str(b), self)) @typechecked @override def testmeth3_err(self, a, b): # type: (int, Real) -> int return '-'.join((str(a), str(b), self)) @override def testmeth4(self, a, b): return '-'.join((str(a), str(b), self)) @override def testmeth5(self, a, b): # type: (...) -> str return '-'.join((str(a), str(b), self)) @typechecked def testmeth_err(self, a, b): # type: (int, Real) -> int return '-'.join((str(a), str(b), self)) return testClass2b() def testClass2_defTimeCheck2(): class testClass2b(testClass2Base): @override def testmeth2(self, a, b): # type: (str, Real) -> Union[str, int] return '-'.join((str(a), str(b), self)) def testClass2_defTimeCheck3(): class testClass2b(testClass2Base): @override def testmeth2b(self, a, b): # type: (int, Real) -> Union[str, Real] return '-'.join((str(a), str(b), self)) def testClass2_defTimeCheck4(): class testClass2b(testClass2Base): @override def testmeth6(self, a, # type: int b # type: Real ): # type: (...) -> str return '-'.join((str(a), str(b), self)) def testClass3_defTimeCheck(): class testClass3b(testClass3Base): @typechecked @override def testmeth(self, a, b): return '-'.join((str(a), str(b), str(type(self)))) def testClass2_defTimeCheck_init_ov(): class testClass2_defTime_init_ov(testClass2Base): @override def __init__(self): # should fail because of invalid use of @override pass @typechecked def testfunc(a, # type: int b, # type: Real c # type: str ): # type: (...) -> Tuple[int, Real] return a*a, a*b @typechecked def testfunc_err( a, # type: int b, # type: Real c # type: str ): # type: (...) -> Tuple[str, Real] return a*a, a*b @typechecked def testfunc2(a, b, c): # type: (int, Real, testClass) -> Tuple[int, float] return a*a, a*b @typechecked def testfunc4(a, b, c): return a*a, a*b @typechecked def testfunc_None_ret(a, b): # type: (int, Real) -> None pass @typechecked def testfunc_None_ret_err(a, b): # type: (int, Real) -> None return 7 @typechecked def testfunc_None_arg(a, b): # type: (int, None) -> int return a*a @typechecked def testfunc_Dict_arg(a, b): # type: (int, Dict[str, Union[int, str]]) -> None assert isinstance(b[str(a)], str) or isinstance(b[str(a)], int) @typechecked def testfunc_Mapping_arg(a, b): # type: (int, Mapping[str, Union[int, str]]) -> None assert isinstance(b[str(a)], str) or isinstance(b[str(a)], int) @typechecked def testfunc_Dict_ret(a): # type: (str) -> Dict[str, Union[int, str]] return {a: len(a), 2*a: a} @typechecked def testfunc_Dict_ret_err(a): # type: (int) -> Dict[str, Union[int, str]] return {a: str(a), 2*a: a} @typechecked def testfunc_Seq_arg(a): # type: (Sequence[Tuple[int, str]]) -> int return len(a) @typechecked def testfunc_Seq_ret_List(a, b): # type: (int, str) -> Sequence[Union[int, str]] return [a, b] @typechecked def testfunc_Seq_ret_Tuple(a, b): # type: (int, str) -> Sequence[Union[int, str]] return a, b @typechecked def testfunc_Seq_ret_err(a, b): # type: (int, str) -> Sequence[Union[int, str]] return {a: str(a), b: str(b)} @typechecked def testfunc_Iter_arg(a, b): # type: (Iterable[int], str) -> List[int] return [r for r in a] @typechecked def testfunc_Iter_str_arg(a): # type: (Iterable[str]) -> List[int] return [ord(r) for r in a] @typechecked def testfunc_Iter_ret(): # type: () -> Iterable[int] return [1, 2, 3, 4, 5] @typechecked def testfunc_Iter_ret_err(): # type: () -> Iterable[str] return [1, 2, 3, 4, 5] @typechecked def testfunc_Callable_arg(a, b): # type: (Callable[[str, int], str], str) -> str return a(b, len(b)) @typechecked def testfunc_Callable_call_err(a, b): # type: (Callable[[str, int], str], str) -> str return a(b, b) @typechecked def testfunc_Callable_ret(a, b): # type: (int, str) -> Callable[[str, int], str] def m(x, y): # type: (str, int) -> str return x+str(y)+b*a return m # Todo: Test regarding wrong-typed Callables @typechecked def testfunc_Callable_ret_err(): # type: () -> Callable[[str, int], str] return 5 @typechecked def testfunc_Generator(): # type: () -> Generator[int, Union[str, None], Any] s = yield while not s is None: if s == 'fail': s = yield 'bad yield' s = yield len(s) @typechecked def testfunc_Generator_arg(gen): # type: (Generator[int, Union[str, None], Any]) -> List[int] # should raise error because of illegal use of typing.Generator lst = ('ab', 'nmrs', 'u') res = [gen.send(x) for x in lst] return res @typechecked def testfunc_Generator_ret(): # type: () -> Generator[int, Union[str, None], Any] # should raise error because of illegal use of typing.Generator res = testfunc_Generator() return res T_1 = TypeVar('T_1') class Custom_Generic(Generic[T_1]): def __init__(self, val): # type: (T_1) -> None self.val = val def v(self): # type: () -> T_1 return self.val @typechecked def testfunc_Generic_arg(x): # type: (Custom_Generic[str]) -> str return x.v() @typechecked def testfunc_Generic_ret(x): # type: (int) -> Custom_Generic[int] return Custom_Generic[int](x) @typechecked def testfunc_Generic_ret_err(x): # type: (int) -> Custom_Generic[int] return Custom_Generic[str](str(x)) @typechecked def testfunc_numeric_tower_float(x): # type: (float) -> str return str(x) @typechecked def testfunc_numeric_tower_complex(x): # type: (complex) -> str return str(x) @typechecked def testfunc_numeric_tower_tuple(x): # type: (Tuple[float, str]) -> str return str(x) @typechecked def testfunc_numeric_tower_return(x): # type: (str) -> float return len(x) @typechecked def testfunc_numeric_tower_return_err(x): # type: (str) -> int return len(x)*1.5 class test_iter(): def __init__(self, itrbl): self.itrbl = itrbl self.pos = 0 def __iter__(self): return self def __next__(self): if self.pos == len(self.itrbl.tpl): raise StopIteration() else: res = self.itrbl.tpl[self.pos] self.pos += 1 return res def next(self): if self.pos == len(self.itrbl.tpl): raise StopIteration() else: res = self.itrbl.tpl[self.pos] self.pos += 1 return res class test_iterable(): def __init__(self, tpl): self.tpl = tpl def __iter__(self): return test_iter(self) class test_iterable_annotated(): def __init__(self, tpl): self.tpl = tpl def __iter__(self): # type: () -> Iterator[int] return test_iter(self) class testClass_check_argument_types(object): def testMeth_check_argument_types(self, a): # type: (int) -> None check_argument_types() @classmethod def testClassmeth_check_argument_types(cls, a): # type: (int) -> None check_argument_types() @staticmethod def testStaticmeth_check_argument_types(a): # type: (int) -> None check_argument_types() def testfunc_check_argument_types(a, b, c): # type: (int, float, str) -> None check_argument_types() def testfunc_check_argument_types2(a): # type: (Sequence[float]) -> None check_argument_types() def testfunc_check_argument_types_empty(): # type: () -> None check_argument_types() class testClass_property(object): @typechecked @property def testprop(self): # type: () -> int return self._testprop @typechecked @testprop.setter def testprop(self, value): # type: (int) -> None self._testprop = value @typechecked @property def testprop2(self): # type: () -> str return self._testprop2 @testprop2.setter def testprop2(self, value): # type: (str) -> None self._testprop2 = value @typechecked @property def testprop3(self): # type: () -> Tuple[int, str] return self._testprop3 @testprop3.setter def testprop3(self, value): # type: (Tuple[int, str]) -> None check_argument_types() self._testprop3 = value @typechecked class testClass_property_class_check(object): @property def testprop(self): # type: () -> int return self._testprop @testprop.setter def testprop(self, value): # type: (int) -> None self._testprop = value @property def testprop2(self): # type: () -> float return 'abc' @testprop2.setter def testprop2(self, value): # type: (float) -> None pass def testfunc_custom_annotations_plain(a, b): # type: (str, float) -> float check_argument_types() return len(a)/float(b) def testfunc_custom_annotations(a, b): check_argument_types() return len(a)/float(b) testfunc_custom_annotations.__annotations__ = {'a': str, 'b': float, 'return': float} @typechecked def testfunc_custom_annotations_typechecked(a, b): return len(a)/float(b) testfunc_custom_annotations_typechecked.__annotations__ = \ {'a': str, 'b': int, 'return': float} @typechecked def testfunc_custom_annotations_typechecked_err(a, b): return a+str(b) testfunc_custom_annotations_typechecked_err.__annotations__ = \ {'a': str, 'b': float, 'return': int} @annotations def testfunc_annotations_from_tpstring_by_decorator(a, b): # type: (str, int) -> int return len(a)/b def testfunc_annotations_from_tpstring(a, b): # type: (str, int) -> int return len(a)/b @typechecked def testfunc_varargs1(*argss): # type: (*float) -> Tuple[int, float] res = 1.0 for arg in argss: res *= arg return len(argss), res @typechecked def testfunc_varargs2(a, b, c, *varg): # type: (str, int, None, *int) -> Tuple[int, str] res = 1 for arg in varg: res *= arg return res, a*b @typechecked def testfunc_varargs3(*args, **kwds): # type: (*int, **float) -> Tuple[str, float] longest = '' for key in kwds: if len(key) > len(longest): longest = key return longest*(args[0]//len(args)), \ 0 if longest == '' else kwds[longest] @typechecked def testfunc_varargs4(**kwds): # type: (**float) -> float longest = '' for key in kwds: if len(key) > len(longest): longest = key return 0 if longest == '' else kwds[longest] @typechecked def testfunc_varargs5(a1, a2, *vargss, **vkwds): # type: (int, str, *float, **int) -> List[int] return [len(vargss), len(str(vargss[a1])), vkwds[a2]] @typechecked def testfunc_varargs_err(a1, a2, *vargss, **vkwds): # type: (int, str, *float, **int) -> List[int] return [len(vargss), str(vargss[a1]), vkwds[a2]] @typechecked class testclass_vararg(object): def testmeth_varargs1(self, *vargs): # type: (*Tuple[str, int]) -> int res = 1 for arg in vargs: res += len(arg[0])*arg[1] return res-len(self.__class__.__name__) def testmeth_varargs2(self, q1, q2, *varargs, **varkw): # type: (int, str, *float, **int) -> List[int] return [len(varargs), len(str(varargs[q1])), varkw[q2], len(self.__class__.__name__)] @staticmethod def testmeth_varargs_static1(*vargs_st): # type: (*float) -> Tuple[int, float] res = 1.0 for arg in vargs_st: res *= arg return len(vargs_st), res @staticmethod def testmeth_varargs_static2(q1_st, q2_st, *varargs_st, **varkw_st): # type: (int, str, *float, **int) -> List[int] return [len(varargs_st), len(str(varargs_st[q1_st])), varkw_st[q2_st]] @classmethod def testmeth_varargs_class1(cls, *vargs_cls): # type: (*Tuple[str, int]) -> int res = 1 for arg in vargs_cls: res += len(arg[0])*arg[1] return res-len(cls.__name__) @classmethod def testmeth_varargs_class2(cls, q1_cls, q2_cls, *varargs_cls, **varkw_cls): # type: (int, str, *float, **int) -> List[int] return [len(varargs_cls), len(str(varargs_cls[q1_cls])), varkw_cls[q2_cls], len(cls.__name__)] @property def prop1(self): # type: () -> str return self._prop1 @prop1.setter def prop1(self, *vargs_prop): # type: (*str) -> None self._prop1 = vargs_prop[0] def testfunc_varargs_ca1(*argss): # type: (*float) -> Tuple[int, float] check_argument_types() res = 1.0 for arg in argss: res *= arg return len(argss), res def testfunc_varargs_ca2(a, b, c, *varg): # type: (str, int, None, *int) -> Tuple[int, str] check_argument_types() res = 1 for arg in varg: res *= arg return res, a*b def testfunc_varargs_ca3(*args, **kwds): # type: (*int, **float) -> Tuple[str, float] check_argument_types() longest = '' for key in kwds: if len(key) > len(longest): longest = key return longest*(args[0]//len(args)), kwds[longest] def testfunc_varargs_ca4(**kwds): # type: (**float) -> float check_argument_types() longest = '' for key in kwds: if len(key) > len(longest): longest = key return 0 if longest == '' else kwds[longest] def testfunc_varargs_ca5(a1, a2, *vargss, **vkwds): # type: (int, str, *float, **int) -> List[int] check_argument_types() return [len(vargss), len(str(vargss[a1])), vkwds[a2]] class testclass_vararg_ca(object): def testmeth_varargs_ca1(self, *vargs): # type: (*Tuple[str, int]) -> int check_argument_types() res = 1 for arg in vargs: res += len(arg[0])*arg[1] return res-len(self.__class__.__name__) def testmeth_varargs_ca2(self, q1, q2, *varargs, **varkw): # type: (int, str, *float, **int) -> List[int] check_argument_types() return [len(varargs), len(str(varargs[q1])), varkw[q2], len(self.__class__.__name__)] @staticmethod def testmeth_varargs_static_ca1(*vargs_st): # type: (*float) -> Tuple[int, float] check_argument_types() res = 1.0 for arg in vargs_st: res *= arg return len(vargs_st), res @staticmethod def testmeth_varargs_static_ca2(q1_st, q2_st, *varargs_st, **varkw_st): # type: (int, str, *float, **int) -> List[int] check_argument_types() return [len(varargs_st), len(str(varargs_st[q1_st])), varkw_st[q2_st]] @classmethod def testmeth_varargs_class_ca1(cls, *vargs_cls): # type: (*Tuple[str, int]) -> int check_argument_types() res = 1 for arg in vargs_cls: res += len(arg[0])*arg[1] return res-len(cls.__name__) @classmethod def testmeth_varargs_class_ca2(cls, q1_cls, q2_cls, *varargs_cls, **varkw_cls): # type: (int, str, *float, **int) -> List[int] check_argument_types() return [len(varargs_cls), len(str(varargs_cls[q1_cls])), varkw_cls[q2_cls], len(cls.__name__)] @property def prop_ca1(self): # type: () -> str check_argument_types() return self._prop_ca1 @prop_ca1.setter def prop_ca1(self, *vargs_prop): # type: (*str) -> None check_argument_types() self._prop_ca1 = vargs_prop[0] @typechecked def func_defaults_typecheck(a, b, c=4, d=2.5): # type: (str) -> str try: return a+b*c except TypeError: return 'invalid' @typechecked def func_defaults_typecheck2(a, b, c=1, d=False): # type: (str, float, Optional[int], bool) -> str try: return a+str(b*c)+str(d) except TypeError: return 'invalid' def func_defaults_checkargs(a, b, c=4, d=2.5): # type: (str) -> str check_argument_types() try: return a+b*c except TypeError: return 'invalid' @annotations def func_defaults_annotations(a, b, c=4): # type: (str) -> str b = 'abc' return a+b*c class override_varargs_class_base(object): # var-arg tests: def method_vararg1(self, a, b, *args): # type: (int, int, *int) -> int return a+b def method_vararg2(self, a, b): # type: (int, int) -> int return a+b def method_vararg3(self, a, b, c): # type: (int, int, float) -> int return a+b def method_vararg1_err(self, a, b, *args): # type: (int, int, *float) -> int return a+b def method_vararg2_err(self, a, b): # type: (float, int) -> int return a+b def method_vararg3_err(self, a, b, c): # type: (int, int, float) -> int return a+b # var-kw tests: def method_varkw1(self, a, b, **kw): # type: (int, int, **int) -> int return a+b def method_varkw2(self, a, b, *arg, **kw): # type: (int, int, *str, **int) -> int return a+b def method_varkw1_err(self, a, b, **kw): # type: (int, int, **float) -> int return a+b def method_varkw2_err(self, a, b, *arg, **kw): # type: (int, int, *str, **float) -> int return a+b def method_varkw3_err(self, a, b, *arg, **kw): # type: (int, int, *str, **str) -> int return a+b # default tests: def method_defaults1(self, a, b): # type: (int, int) -> int return a+b def method_defaults2(self, a, b, *vargs): # type: (int, int, *int) -> int return a+b def method_defaults1_err(self, a, b): # type: (int, float) -> int return a+b def method_defaults2_err(self, a, b, *vargs): # type: (int, int, *float) -> int return a+b class override_varargs_class(override_varargs_class_base): @override def method_vararg1(self, a, b, *args): # type: (int, float, *int) -> int return len(args) @override def method_vararg2(self, a, b, *vargs): # type: (int, float, *str) -> int return a+len(str(b))+len(vargs) @override def method_vararg3(self, a, *vgs): # type: (int, *float) -> int return a+len(vgs) @override def method_vararg1_err(self, a, b, *args): # type: (int, float, *int) -> int return len(args) @override def method_vararg2_err(self, a, b, *vargs): # type: (int, float, *str) -> int return a+len(str(b))+len(vargs) @override def method_vararg3_err(self, a, *vgs): # type: (int, *int) -> int return a+len(vgs) # var-kw tests: @override def method_varkw1(self, a, b, **kw): # type: (int, int, **float) -> int return a+b @override def method_varkw2(self, a, b, *arg, **kw): # type: (int, int, *str, **float) -> int return a+b @override def method_varkw1_err(self, a, b, **kw): # type: (int, int, **int) -> int return a+b @override def method_varkw2_err(self, a, b, *arg, **kw): # type: (int, int, *str, **int) -> int return a+b @override def method_varkw3_err(self, a, b, *arg): # type: (int, int, *str) -> int return a+b # default tests: @override def method_defaults1(self, a, b, c=4.6): # type: (int, int) -> int return a+b @override def method_defaults2(self, a, b, c=4, *args): # type: (int, int, float, *int) -> int return a+b @override def method_defaults1_err(self, a, b, c=2): # type: (int, int) -> int return a+b @override def method_defaults2_err(self, a, b, c=3, *vargs): # type: (int, int, int, *float) -> int return a+b class varagrs_call_class_base(object): def testmeth1(self, a, b): # type: (int, float) -> float return a+b def testmeth2(self, a, b): # type: (int, float) -> float return a+b def testmeth3(self, a, b): # type: (int, float) -> float return a+b def testmeth4(self, a, b): # type: (int, float) -> float return a+b @typechecked class varagrs_call_class(varagrs_call_class_base): @override def testmeth1(self, a, b, *vargs): return a+b @override def testmeth2(self, a, b, **kw): return a+b @override def testmeth3(self, a, b, *args, **kwords): return a+b @override def testmeth4(self, a, b, c, *varargs): return a+b def func_bad_typestring1(a, b, c): # type: (int, *int, float) -> None pass def func_bad_typestring2(a, b, c): # type: (int, int, **float) -> None pass def func_bad_typestring3(a, b, *c): # type: (int, *int, *float) -> None pass def func_bad_typestring4(a, b, *c): # type: (int, **int, **float) -> None pass def func_bad_typestring5(a, *b, **c): # type: (int, *int, float) -> None pass def func_bad_typestring6(a, b, *c): # type: (int, int, float) -> None pass def func_bad_typestring7(a, b, **c): # type: (int, int, float) -> None pass def func_bad_typestring8(a, *b, **c): # type: (int, int, float) -> None pass def func_bad_typestring9(a, b, *c): # type: (int, *int, float) -> None pass def func_bad_typestring10(a, *b, **c): # type: (int, **int, *float) -> None pass class A_check_parent_types(object): def meth1(self, a): # type: (int) -> int return len(str(a)) class B_override_check_arg(A_check_parent_types): @override def meth1(self, a): check_argument_types() return len(str(a)) class B_no_override_check_arg(A_check_parent_types): def meth1(self, a): check_argument_types() return len(str(a)) class B_override_typechecked(A_check_parent_types): @typechecked @override def meth1(self, a): check_argument_types() return len(str(a)) class B_no_override_typechecked(A_check_parent_types): @typechecked def meth1(self, a): check_argument_types() return len(str(a)) class B_override_with_type_check_arg(A_check_parent_types): @override def meth1(self, a): # type: (float) -> int check_argument_types() return len(str(a)) class B_override_with_type_typechecked(A_check_parent_types): @typechecked @override def meth1(self, a): # type: (float) -> int check_argument_types() return len(str(a)) class A_diamond_override(object): def meth1(self, a): # type: (Tuple[int, int]) -> int return len(str(a)) class B_diamond_override(A_diamond_override): @override def meth1(self, a): # type: (Tuple[int, float]) -> int return len(str(a)) class C_diamond_override(A_diamond_override): @override def meth1(self, a): # type: (Tuple[float, int]) -> int return len(str(a)) class D_diamond_override(B_diamond_override, C_diamond_override): @override def meth1(self, a): # type: (Tuple[float, float]) -> int check_argument_types() return len(str(a)) class D_diamond_override_err1(B_diamond_override, C_diamond_override): @override def meth1(self, a): # type: (Tuple[float, int]) -> int return len(str(a)) class D_diamond_override_err2(B_diamond_override, C_diamond_override): @override def meth1(self, a): # type: (Tuple[int, float]) -> int return len(str(a)) class D_diamond_override_err3(B_diamond_override, C_diamond_override): @override def meth1(self, a): # type: (Tuple[int, int]) -> int return len(str(a)) class A_auto_override(object): def meth_1(self, a, b): # type: (str, Tuple[int, float]) -> int pass @auto_override class B_auto_override(A_auto_override): def meth_1(self, a, b): # type: (str, Tuple[float, float]) -> int return len(str(len(a)+b[0]-b[1])) def meth_2(self, c): # type: (str) -> int return 3*len(c) @auto_override class B_auto_override_err(A_auto_override): def meth_1(self, a, b): # type: (str, Tuple[int, int]) -> int return len(str(len(a)+b[0]-b[1])) def meth_2(self, c): # type: (str) -> int return 3*len(c) @typechecked class GetAttrDictWrapper(object): """Test a plausible use of __getattr__ - A class that wraps a dict, enabling the values to be accessed as if they were attributes (`d.abc` instead of `d['abc']`) For example, the `pyrsistent` library does this on its dict replacement. >>> o = GetAttrDictWrapper({'a': 5, 'b': 10}) >>> o.a 5 >>> o.b 10 >>> o.nonexistent Traceback (most recent call last): ... AttributeError('nonexistent') """ def __init__(self, dct): # type: (dict) -> None self.__dct = dct def __getattr__(self, attr): # type: (str) -> typing.Any dct = self.__dct # can safely access the attribute because it exists so it won't trigger __getattr__ try: return dct[attr] except KeyError: raise AttributeError(attr) class TestTypecheck(unittest.TestCase): def test_function(self): self.assertEqual(testfunc(3, 2.5, 'abcd'), (9, 7.5)) self.assertEqual(testfunc(7, b=12.5, c='cdef'), (49, 87.5)) self.assertRaises(InputTypeError, lambda: testfunc('string', 2.5, 'abcd')) tc = testClass('efgh') self.assertEqual(testfunc2(12, 3.5, tc), (144, 42.0)) self.assertRaises(InputTypeError, lambda: testfunc2(12, 2.5, 'abcd')) self.assertRaises(ReturnTypeError, lambda: testfunc_err(12, 2.5, 'abcd')) self.assertEqual(testfunc4(12, 3.5, tc), (144, 42.0)) self.assertIsNone(testfunc_None_ret(2, 3.0)) self.assertEqual(testfunc_None_arg(4, None), 16) self.assertRaises(InputTypeError, lambda: testfunc_None_arg(4, 'vvv')) self.assertRaises(ReturnTypeError, lambda: testfunc_None_ret_err(2, 3.0)) def test_classmethod(self): tc = testClass('efgh') self.assertEqual(tc.testmeth_class(23, 1.1), "23-1.1-<class '%s.testClass'>"%self.__module__) self.assertRaises(InputTypeError, lambda: tc.testmeth_class(23, '1.1')) self.assertEqual(tc.testmeth_class2(23, 1.1), "23-1.1-<class '%s.testClass'>"%self.__module__) self.assertRaises(InputTypeError, lambda: tc.testmeth_class2(23, '1.1')) self.assertRaises(ReturnTypeError, lambda: tc.testmeth_class2_err(23, 1.1)) def test_method(self): tc2 = testClass2('ijkl') self.assertEqual(tc2.testmeth(1, 2.5), '1-2.5-ijkl') self.assertRaises(InputTypeError, lambda: tc2.testmeth(1, 2.5, 7)) self.assertRaises(ReturnTypeError, lambda: tc2.testmeth_err(1, 2.5)) def test_method_forward(self): tc = testClass('ijkl2') tc2 = testClass2('ijkl3') self.assertEqual(tc.testmeth_forward(5, tc2), 11) self.assertRaises(InputTypeError, lambda: tc.testmeth_forward(5, 7)) self.assertRaises(InputTypeError, lambda: tc.testmeth_forward(5, tc)) def test_staticmethod(self): tc = testClass('efgh') self.assertEqual(tc.testmeth_static(12, 0.7), '12-0.7-static') self.assertRaises(InputTypeError, lambda: tc.testmeth_static(12, [3])) self.assertEqual(tc.testmeth_static2(11, 1.9), '11-1.9-static') self.assertRaises(InputTypeError, lambda: tc.testmeth_static2(11, ('a', 'b'), 1.9)) def test_parent_typecheck_no_override(self): tmp = pytypes.always_check_parent_types pytypes.always_check_parent_types = False cl3 = testClass3_no_override() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertTrue(cl3.testmeth(3, '5').startswith('3-5-')) cl3 = testClass3_no_override_err() self.assertEqual(cl3.testmeth(3, 5), 7.5) self.assertEqual(cl3.testmeth(3, '5'), 7.5) cl3 = testClass3_no_override_check_argtypes() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertTrue(cl3.testmeth(3, '5').startswith('3-5-')) pytypes.always_check_parent_types = True cl3 = testClass3_no_override() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertRaises(InputTypeError, lambda: cl3.testmeth(3, '5')) cl3 = testClass3_no_override_err() self.assertRaises(ReturnTypeError, lambda: cl3.testmeth(3, 5)) self.assertRaises(InputTypeError, lambda: cl3.testmeth(3, '5')) cl3 = testClass3_no_override_check_argtypes() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertRaises(InputTypeError, lambda: cl3.testmeth(3, '5')) pytypes.always_check_parent_types = tmp def test_parent_typecheck_other_signature(self): vcc = varagrs_call_class() self.assertRaises(InputTypeError, lambda: vcc.testmeth1(1, '2', 'a')) self.assertEqual(vcc.testmeth1(1, 2, 'a'), 3) self.assertRaises(InputTypeError, lambda: vcc.testmeth2('3', 4, q = 'b')) self.assertEqual(vcc.testmeth2(3, 4, q = 'b'), 7) self.assertRaises(InputTypeError, lambda: vcc.testmeth3(5.7, 6, 'c', k = 'd')) self.assertEqual(vcc.testmeth3(5, 6, 'c', k = 'd'), 11) self.assertRaises(InputTypeError, lambda: vcc.testmeth4(7, 8, 9, 'e', 'f')) def test_abstract_override(self): tc3 = testClass3() self.assertEqual(tc3.testmeth(1, 2.5), "1-2.5-<class '%s.testClass3'>"%self.__module__) def test_get_types(self): tc = testClass('mnop') tc2 = testClass2('qrst') tc3 = testClass3() self.assertEqual(get_types(testfunc), (Tuple[int, Real, str], Tuple[int, Real])) self.assertEqual(get_types(testfunc2), (Tuple[int, Real, testClass], Tuple[int, float])) self.assertEqual(get_types(testfunc4), (Any, Any)) self.assertEqual(get_types(tc2.testmeth), (Tuple[int, Real], str)) self.assertEqual(get_types(testClass2.testmeth), (Tuple[int, Real], str)) self.assertEqual(get_types(tc3.testmeth), (Any, Any)) self.assertEqual(get_types(testClass3Base.testmeth), (Tuple[int, Real], Union[str, int])) self.assertEqual(get_types(tc.testmeth2), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_class), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_class2), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_static), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_static2), (Tuple[int, Real], str)) self.assertEqual(get_types(testfunc), (Tuple[int, Real, str], Tuple[int, Real])) def test_sequence(self): self.assertEqual(testfunc_Seq_arg(((3, 'ab'), (8, 'qvw'))), 2) self.assertEqual(testfunc_Seq_arg([(3, 'ab'), (8, 'qvw'), (4, 'cd')]), 3) self.assertRaises(InputTypeError, lambda: testfunc_Seq_arg({(3, 'ab'), (8, 'qvw')})) self.assertRaises(InputTypeError, lambda: testfunc_Seq_arg(((3, 'ab'), (8, 'qvw', 2)))) self.assertRaises(InputTypeError, lambda: testfunc_Seq_arg([(3, 1), (8, 'qvw'), (4, 'cd')])) self.assertEqual(testfunc_Seq_ret_List(7, 'mno'), [7, 'mno']) self.assertEqual(testfunc_Seq_ret_Tuple(3, 'mno'), (3, 'mno')) self.assertRaises(ReturnTypeError, lambda: testfunc_Seq_ret_err(29, 'def')) def test_iterable(self): self.assertEqual(testfunc_Iter_arg((9, 8, 7, 6), 'vwxy'), [9, 8, 7, 6]) self.assertEqual(testfunc_Iter_str_arg('defg'), [100, 101, 102, 103]) self.assertRaises(InputTypeError, lambda: testfunc_Iter_arg((9, '8', 7, 6), 'vwxy')) self.assertRaises(InputTypeError, lambda: testfunc_Iter_arg(7, 'vwxy')) self.assertRaises(InputTypeError, lambda: testfunc_Iter_arg([9, 8, 7, '6'], 'vwxy')) self.assertEqual(testfunc_Iter_arg([9, 8, 7, 6], 'vwxy'), [9, 8, 7, 6]) res = testfunc_Iter_arg({9, 8, 7, 6}, 'vwxy'); res.sort() self.assertEqual(res, [6, 7, 8, 9]) res = testfunc_Iter_arg({19: 'a', 18: 'b', 17: 'c', 16: 'd'}, 'vwxy') res.sort() self.assertEqual(res, [16, 17, 18, 19]) self.assertEqual(testfunc_Iter_ret(), [1, 2, 3, 4, 5]) self.assertRaises(ReturnTypeError, lambda: testfunc_Iter_ret_err()) ti = test_iterable((2, 4, 6, 'a')) self.assertRaises(ReturnTypeError, lambda: testfunc_Iter_arg(ti, 'vwxy')) tia = test_iterable_annotated((3, 6, 9)) self.assertEqual(testfunc_Iter_arg(tia, 'vwxy'), [3, 6, 9]) def test_iterable_subclass(self): # See https://github.com/Stewori/pytypes/issues/57 T_it = TypeVar('T_it') class TypList(Generic[T_it], list): @typechecked def extend(self, itb): # type: (Iterator[T_it]) -> None super(TypList, self).extend(itb) class IntList(TypList[int]): pass il = IntList() il.extend(iter([1, 2, 3])) self.assertRaises(ReturnTypeError, lambda: il.extend(iter(['a', 'b', 'c']))) self.assertRaises(InputTypeError, lambda: il.extend(['d', 'e', 'f'])) il.extend([4, 5, 6]) self.assertEqual(il, [1, 2, 3, 4, 5, 6]) def test_dict(self): self.assertIsNone(testfunc_Dict_arg(5, {'5': 4, 'c': '8'})) self.assertIsNone(testfunc_Dict_arg(5, {'5': 'A', 'c': '8'})) self.assertIsNone(testfunc_Mapping_arg(7, {'7': 4, 'c': '8'})) self.assertIsNone(testfunc_Mapping_arg(5, {'5': 'A', 'c': '8'})) self.assertRaises(InputTypeError, lambda: testfunc_Dict_arg(5, {4: 4, 3: '8'})) self.assertRaises(InputTypeError, lambda: testfunc_Dict_arg(5, {'5': (4,), 'c': '8'})) self.assertEqual( testfunc_Dict_ret('defg'), {'defgdefg': 'defg', 'defg': 4}) self.assertRaises(ReturnTypeError, lambda: testfunc_Dict_ret_err(6)) def test_callable(self): def clb(s, i): # type: (str, int) -> str return '_'+s+'*'*i def clb2(s, i): # type: (str, str) -> str return '_'+s+'*'*i def clb3(s, i): # type: (str, int) -> int return '_'+s+'*'*i self.assertTrue( is_of_type(clb, typing.Callable[[str, int], str])) self.assertFalse( is_of_type(clb, typing.Callable[[str, str], str])) self.assertFalse( is_of_type(clb, typing.Callable[[str, int], float])) self.assertEqual(testfunc_Callable_arg(clb, 'pqrs'), '_pqrs****') self.assertRaises(InputTypeError, lambda: testfunc_Callable_arg(clb2, 'pqrs')) self.assertRaises(InputTypeError, lambda: testfunc_Callable_arg(clb3, 'pqrs')) self.assertRaises(InputTypeError, lambda: testfunc_Callable_call_err(clb, 'tuvw')) self.assertEqual(testfunc_Callable_arg( lambda s, i: '__'+s+'-'*i, 'pqrs'), '__pqrs----') self.assertRaises(InputTypeError, lambda: testfunc_Callable_call_err(lambda s, i: '__'+s+'-'*i, 'tuvw')) fnc = testfunc_Callable_ret(5, 'qvwx') self.assertEqual(fnc.__class__.__name__, 'function') self.assertEqual(fnc.__name__, 'm') self.assertRaises(ReturnTypeError, lambda: testfunc_Callable_ret_err()) def test_generator(self): test_gen = testfunc_Generator() self.assertIsNone(test_gen.send(None)) self.assertEqual(test_gen.send('abc'), 3) self.assertEqual(test_gen.send('ddffd'), 5) self.assertRaises(InputTypeError, lambda: test_gen.send(7)) test_gen2 = testfunc_Generator() self.assertIsNone(test_gen2.next() if hasattr(test_gen2, 'next') else test_gen2.__next__()) self.assertEqual(test_gen2.send('defg'), 4) self.assertRaises(ReturnTypeError, lambda: test_gen2.send('fail')) self.assertRaises(TypeCheckError, lambda: testfunc_Generator_arg(test_gen)) self.assertRaises(TypeCheckError, lambda: testfunc_Generator_ret()) self.assertEqual(pytypes.deep_type(test_gen), Generator[int, Union[str, None], Any]) def test_custom_generic(self): self.assertEqual(testfunc_Generic_arg(Custom_Generic[str]('abc')), 'abc') self.assertEqual(testfunc_Generic_ret(5).v(), 5) self.assertRaises(InputTypeError, lambda: testfunc_Generic_arg(Custom_Generic[int](9))) self.assertRaises(InputTypeError, lambda: testfunc_Generic_arg(Custom_Generic(7))) self.assertRaises(ReturnTypeError, lambda: testfunc_Generic_ret_err(8)) def test_various(self): self.assertEqual(get_type_hints(testfunc), {'a': int, 'c': str, 'b': Real, 'return': Tuple[int, Real]}) self.assertEqual(pytypes.deep_type(('abc', [3, 'a', 7], 4.5)), Tuple[str, List[Union[int, str]], float]) tc2 = testClass2('bbb') self.assertEqual(pytypes.get_class_that_defined_method( tc2.testmeth2c), testClass2) self.assertEqual(pytypes.get_class_that_defined_method( testClass2.testmeth2c), testClass2) self.assertEqual(pytypes.get_class_that_defined_method( tc2.testmeth2b), testClass2) self.assertEqual(pytypes.get_class_that_defined_method( testClass2.testmeth2b), testClass2) self.assertEqual(pytypes.get_class_that_defined_method( tc2.testmeth3), testClass2) self.assertEqual(pytypes.get_class_that_defined_method( testClass2.testmeth3), testClass2) self.assertRaises(ValueError, lambda: pytypes.get_class_that_defined_method(testfunc)) # old-style: tc3 = testClass3() self.assertEqual(pytypes.get_class_that_defined_method( tc3.testmeth), testClass3) self.assertEqual(pytypes.get_class_that_defined_method( testClass3.testmeth), testClass3) @unittest.skipIf(sys.version_info.major >= 3 and sys.version_info.minor >= 7, 'Currently fails in Python >= 3.7') def test_unparameterized(self): # invariant type-vars self.assertFalse(is_subtype(List, List[str])) self.assertFalse(is_subtype(List, List[Any])) self.assertFalse(is_subtype(List[str], List)) self.assertFalse(is_subtype(list, List[str])) self.assertFalse(is_subtype(list, List[Any])) self.assertFalse(is_subtype(List[str], list)) self.assertTrue(is_subtype(List, list)) self.assertTrue(is_subtype(list, List)) self.assertFalse(is_subtype(List[str], List[Any])) self.assertFalse(is_subtype(List[Any], List[str])) # covariant self.assertTrue(is_subtype(Sequence[str], Sequence[Any])) self.assertFalse(is_subtype(Sequence[Any], Sequence[str])) self.assertTrue(is_subtype(Sequence[str], Sequence)) self.assertFalse(is_subtype(Sequence, Sequence[str])) # special case Tuple self.assertFalse(is_subtype(Tuple, Tuple[str])) self.assertTrue(is_subtype(Tuple[str], Tuple)) self.assertFalse(is_subtype(tuple, Tuple[str])) self.assertTrue(is_subtype(Tuple[str], tuple)) self.assertTrue(is_subtype(Tuple, tuple)) self.assertTrue(is_subtype(tuple, Tuple)) self.assertTrue(is_subtype(Tuple, Sequence)) self.assertTrue(is_subtype(Tuple, Sequence[Any])) self.assertTrue(is_subtype(tuple, Sequence)) self.assertTrue(is_subtype(tuple, Sequence[Any])) def test_empty(self): asg = {Dict, List, Set, pytypes.Empty} empty_dict = pytypes.Empty[Dict] self.assertEqual(pytypes.deep_type({}), empty_dict) self.assertEqual(pytypes.type_str(empty_dict, asg), 'Empty[Dict]') self.assertTrue(is_subtype(empty_dict, pytypes.Empty)) #self.assertFalse(is_subtype(Dict[str, int], empty_dict)) self.assertTrue(is_subtype(empty_dict, Dict[str, int])) self.assertTrue(is_subtype(empty_dict, Dict)) empty_lst = pytypes.Empty[List] self.assertEqual(pytypes.deep_type([]), empty_lst) self.assertEqual(pytypes.type_str(empty_lst, asg), 'Empty[List]') self.assertTrue(is_subtype(empty_lst, pytypes.Empty)) #self.assertFalse(is_subtype(List[str], empty_lst)) self.assertTrue(is_subtype(empty_lst, List[int])) self.assertTrue(is_subtype(empty_lst, List)) self.assertFalse(is_subtype(empty_lst, empty_dict)) self.assertFalse(is_subtype(empty_dict, empty_lst)) empty_seq = pytypes.Empty[Sequence] empty_con = pytypes.Empty[typing.Container] self.assertTrue(is_subtype(Dict[str, int], typing.Container[str])) self.assertFalse(is_subtype(empty_dict, empty_seq)) self.assertTrue(is_subtype(empty_dict, empty_con)) self.assertTrue(is_subtype(empty_lst, empty_seq)) self.assertFalse(is_subtype(empty_seq, empty_lst)) empty_set = pytypes.Empty[Set] self.assertEqual(pytypes.deep_type(set()), empty_set) self.assertEqual(pytypes.type_str(empty_set, asg), 'Empty[Set]') self.assertTrue(is_subtype(empty_set, pytypes.Empty)) #self.assertFalse(is_subtype(Set[int], empty_set)) self.assertTrue(is_subtype(empty_set, Set[int])) self.assertTrue(is_subtype(empty_set, Set)) def test_numeric_tower(self): num_tow_tmp = pytypes.apply_numeric_tower pytypes.apply_numeric_tower = True self.assertTrue(is_subtype(int, float)) self.assertTrue(is_subtype(int, complex)) self.assertTrue(is_subtype(float, complex)) self.assertFalse(is_subtype(float, int)) self.assertFalse(is_subtype(complex, int)) self.assertFalse(is_subtype(complex, float)) self.assertTrue(is_subtype(Union[int, float], float)) self.assertTrue(is_subtype(Sequence[int], Sequence[float])) self.assertTrue(is_subtype(List[int], Sequence[float])) self.assertTrue(is_subtype(Tuple[int, float], Tuple[float, complex])) self.assertTrue(is_subtype(Tuple[int, float], Sequence[float])) self.assertTrue(is_subtype(Tuple[List[int]], Tuple[Sequence[float]])) self.assertEqual(testfunc_numeric_tower_float(3), '3') self.assertEqual(testfunc_numeric_tower_float(1.7), '1.7') self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_float(1+3j)) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_float('abc')) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_float(True)) self.assertEqual(testfunc_numeric_tower_complex(5), '5') self.assertEqual(testfunc_numeric_tower_complex(8.7), '8.7') self.assertEqual(testfunc_numeric_tower_complex(1+3j), '(1+3j)') self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_complex('abc')) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_complex(True)) self.assertEqual( testfunc_numeric_tower_tuple((3, 'abc')), "(3, 'abc')") self.assertEqual( testfunc_numeric_tower_tuple((1.7, 'abc')), "(1.7, 'abc')") self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple((1+3j, 'abc'))) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple(('abc', 'def'))) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple((True, 'abc'))) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple(True)) self.assertEqual(testfunc_numeric_tower_return('defg'), 4) self.assertRaises(ReturnTypeError, lambda: testfunc_numeric_tower_return_err('defg')) self.assertIsNone(testfunc_check_argument_types(2, 3, 'qvwx')) self.assertIsNone(testfunc_check_argument_types2([3, 2., 1])) self.assertIsNone(testfunc_check_argument_types_empty()) pytypes.apply_numeric_tower = False self.assertFalse(is_subtype(int, float)) self.assertFalse(is_subtype(int, complex)) self.assertFalse(is_subtype(float, complex)) self.assertFalse(is_subtype(float, int)) self.assertFalse(is_subtype(complex, int)) self.assertFalse(is_subtype(complex, float)) self.assertFalse(is_subtype(Union[int, float], float)) self.assertFalse(is_subtype(Sequence[int], Sequence[float])) self.assertFalse(is_subtype(List[int], Sequence[float])) self.assertFalse(is_subtype(Tuple[int, float], Tuple[float, complex])) self.assertFalse(is_subtype(Tuple[int, float], Sequence[float])) self.assertFalse(is_subtype(Tuple[List[int]], Tuple[Sequence[float]])) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_float(3)) self.assertEqual(testfunc_numeric_tower_float(1.7), '1.7') self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_float(1+3j)) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_float('abc')) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_float(True)) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_complex(5)) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_complex(8.7)) self.assertEqual(testfunc_numeric_tower_complex(1+3j), '(1+3j)') self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_complex('abc')) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_complex(True)) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple((3, 'abc'))) self.assertEqual( testfunc_numeric_tower_tuple((1.7, 'abc')), "(1.7, 'abc')") self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple((1+3j, 'abc'))) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple(('abc', 'def'))) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple((True, 'abc'))) self.assertRaises(InputTypeError, lambda: testfunc_numeric_tower_tuple(True)) self.assertRaises(ReturnTypeError, lambda: testfunc_numeric_tower_return('defg')) self.assertRaises(ReturnTypeError, lambda: testfunc_numeric_tower_return_err('defg')) self.assertRaises(InputTypeError, lambda: testfunc_check_argument_types(2, 3, 'qvwx')) self.assertRaises(InputTypeError, lambda: testfunc_check_argument_types2([3, 2., 1])) pytypes.apply_numeric_tower = num_tow_tmp def test_subtype_class_extends_generic(self): class Lint(List[int]): pass class Lint2(Lint): pass class Lfloat(List[float]): pass self.assertTrue(is_subtype(List[int], Sequence[int])) self.assertFalse(is_subtype(Iterable[int], Sequence[int])) self.assertTrue(is_subtype(Lint, Sequence[float])) self.assertFalse(is_subtype(Lint, List[float])) # False because mutable list is invariant self.assertTrue(is_subtype(Lint, List[int])) self.assertTrue(is_subtype(Lint2, Sequence[float])) self.assertFalse(is_subtype(Lint2, List[float])) # False because mutable list is invariant self.assertTrue(is_subtype(Lint2, List[int])) self.assertTrue(is_subtype(Lint2, Lint)) self.assertTrue(is_subtype(Lfloat, Sequence[float])) self.assertTrue(is_subtype(Lfloat, List[float])) self.assertFalse(is_subtype(Lfloat, Sequence[int])) self.assertFalse(is_subtype(Lfloat, List[int])) self.assertFalse(is_subtype(Lfloat, Lint)) self.assertFalse(is_subtype(Lint, Lfloat)) def test_typevar_func(self): T_ct = TypeVar('T_ct', contravariant=True) T_cv = TypeVar('T_cv', covariant=True) T_ = TypeVar('T_') @typechecked def tpvar_test1(a, b): # type: (T_, T_) -> str return 'hello' @typechecked def tpvar_test2(a, b): # type: (T_cv, T_cv) -> str return 'hello' @typechecked def tpvar_test3(a, b): # type: (T_ct, T_ct) -> str return 'hello' @typechecked def tpvar_test4(lst, idx): # type: (List[T_], int) -> T_ return lst[idx] @typechecked def tpvar_test5(lst, idx): # type: (List[T_], int) -> T_ return str(lst[idx]) self.assertEqual(tpvar_test1(2, 3), 'hello') self.assertRaises(InputTypeError, lambda: tpvar_test1(2, '3')) self.assertRaises(InputTypeError, lambda: tpvar_test1(2, 3.5)) self.assertRaises(InputTypeError, lambda: tpvar_test1(2.5, 3)) self.assertEqual(tpvar_test2(2, 3), 'hello') self.assertRaises(InputTypeError, lambda: tpvar_test2(2, '3')) self.assertRaises(InputTypeError, lambda: tpvar_test2(2, 3.5)) self.assertEqual(tpvar_test2(2.5, 3), 'hello') self.assertEqual(tpvar_test3(2, 3), 'hello') self.assertRaises(InputTypeError, lambda: tpvar_test3(2, '3')) self.assertEqual(tpvar_test3(2, 3.5), 'hello') self.assertRaises(InputTypeError, lambda: tpvar_test3(2.5, 3)) self.assertEqual(tpvar_test4([1.2, 2.6, 3.2], 1), 2.6) self.assertRaises(ReturnTypeError, lambda: tpvar_test5([1.2, 2.6, 3.2], 2)) self.assertEqual(tpvar_test5(['a', 'b', 'c'], 1), 'b') def test_typevar_class(self): T2 = TypeVar('T2', covariant=True) @typechecked class A(Generic[T2]): def __init__(self, obj): # type: (T2) -> None super(A, self).__init__() self.obj = obj class IntA(A[int]): pass class IntB(IntA): pass self.assertIsNotNone(IntA(5)) self.assertRaises(InputTypeError, lambda: IntA(4.5)) self.assertRaises(InputTypeError, lambda: IntA('acb')) self.assertIsNotNone(A[int](5)) self.assertRaises(InputTypeError, lambda: A[int](4.5)) self.assertRaises(InputTypeError, lambda: A[int]('acb')) self.assertIsNotNone(A[float](5)) self.assertIsNotNone(A[float](4.5)) self.assertRaises(InputTypeError, lambda: A[float]('acb')) self.assertRaises(InputTypeError, lambda: A[str](5)) self.assertRaises(InputTypeError, lambda: A[str](4.5)) self.assertIsNotNone(A[str]('acb')) @typechecked def test_typevar_A(x): # type: (A[int]) -> None pass self.assertIsNone(test_typevar_A(IntA(5))) self.assertRaises(InputTypeError, lambda: test_typevar_A(IntA(5.7))) self.assertIsNone(test_typevar_A(IntB(5))) self.assertRaises(InputTypeError, lambda: test_typevar_A(IntB(5.7))) @unittest.skipIf(sys.version_info.major >= 3 and sys.version_info.minor >= 7, 'Tests with MRO that is invalid in Python >= 3.7') def test_get_generic_parameters_pre3_7(self): class sub_List(List[str]): pass class sub_List5(Generic[T_1], sub_List): pass class sub_Dict(Dict[str, int]): pass class sub_Dict5(Generic[T_1], sub_Dict): pass self.assertEqual(pytypes.get_Generic_itemtype(sub_List5), str) self.assertEqual(pytypes.get_Generic_itemtype(sub_List5[complex]), str) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict5), str) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict5[complex]), str) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict5), (str, int)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict5[complex]), (str, int)) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_List5[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, sub_List5[complex]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T_co, sub_List5[complex]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_Dict5[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict5[float]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict5[float]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict5[float]), int) def test_get_generic_parameters(self): class sub_List(List[str]): pass class sub_List2(List[float], Generic[T_1]): pass class sub_List3(Generic[T_1], List[int]): pass class sub_List4(sub_List, Generic[T_1]): pass class sub_List6(List[T_1]): pass class sub_List7(Generic[T_1], List[T_1]): pass class sub_Dict(Dict[str, int]): pass class sub_Dict2(Dict[float, str], Generic[T_1]): pass class sub_Dict3(Generic[T_1], Dict[int, complex]): pass class sub_Dict4(sub_Dict, Generic[T_1]): pass class sub_Dict6(Dict[T_1, int]): pass class sub_Dict7(Dict[int, T_1]): pass class sub_Dict8(Generic[T_1], Dict[float, T_1]): pass self.assertEqual(pytypes.get_Generic_itemtype(Tuple[int, float, str]), Union[str, float]) self.assertEqual(pytypes.get_Generic_itemtype(Dict[float, str]), float) self.assertEqual(pytypes.get_Generic_itemtype(Set[str]), str) self.assertEqual(pytypes.get_Generic_itemtype(List[complex]), complex) self.assertRaises(TypeError, lambda: pytypes.get_Generic_itemtype(Callable[[str, int], str])) self.assertEqual(pytypes.get_Generic_itemtype(sub_List), str) self.assertEqual(pytypes.get_Generic_itemtype(sub_List2), float) self.assertEqual(pytypes.get_Generic_itemtype(sub_List3), int) self.assertEqual(pytypes.get_Generic_itemtype(sub_List4), str) self.assertRaises(TypeError, lambda: pytypes.get_Generic_itemtype(sub_List6)) self.assertRaises(TypeError, lambda: pytypes.get_Generic_itemtype(sub_List7)) self.assertEqual(pytypes.get_Generic_itemtype(sub_List2[str]), float) self.assertEqual(pytypes.get_Generic_itemtype(sub_List3[complex]), int) self.assertEqual(pytypes.get_Generic_itemtype(sub_List4[float]), str) self.assertEqual(pytypes.get_Generic_itemtype(sub_List6[Union[int, str]]), Union[int, str]) self.assertEqual(pytypes.get_Generic_itemtype(sub_List7[Union[complex, str]]), Union[complex, str]) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict), str) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict2), float) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict3), int) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict4), str) self.assertRaises(TypeError, lambda: pytypes.get_Generic_itemtype(sub_Dict6)) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict7), int) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict8), float) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict2[str]), float) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict3[complex]), int) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict4[float]), str) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict6[Union[int, str]]), Union[int, str]) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict7[Union[complex, str]]), int) self.assertEqual(pytypes.get_Generic_itemtype(sub_Dict8[Union[float, str]]), float) self.assertEqual(pytypes.get_Mapping_key_value(Dict[complex, int]), (complex, int)) self.assertEqual(pytypes.get_Mapping_key_value(typing.MutableMapping[str, int]), (str, int)) self.assertEqual(pytypes.get_Mapping_key_value(typing.Mapping[float, str]), (float, str)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict), (str, int)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict2), (float, str)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict3), (int, complex)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict4), (str, int)) self.assertRaises(TypeError, lambda: pytypes.get_Mapping_key_value(sub_Dict6)) self.assertRaises(TypeError, lambda: pytypes.get_Mapping_key_value(sub_Dict7)) self.assertRaises(TypeError, lambda: pytypes.get_Mapping_key_value(sub_Dict8)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict2[str]), (float, str)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict3[int]), (int, complex)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict4[float]), (str, int)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict6[str]), (str, int)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict7[str]), (int, str)) self.assertEqual(pytypes.get_Mapping_key_value(sub_Dict8[Union[complex, str]]), (float, Union[complex, str])) self.assertEqual(pytypes.get_Generic_parameters(sub_List, List)[0], str) self.assertEqual(pytypes.get_Generic_parameters(sub_List2[str], List)[0], float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, List[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T_co, List[float]), float) self.assertIsNone(pytypes.get_arg_for_TypeVar(typing.T, typing.Container[float])) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T_co, typing.Container[float]), float) self.assertIsNone(pytypes.get_arg_for_TypeVar(typing.T, Dict[float, str])) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, Dict[float, str]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, Dict[float, str]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, Dict[float, str]), str) self.assertIsNone(pytypes.get_arg_for_TypeVar(typing.T, typing.MutableMapping[float, str])) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, typing.MutableMapping[float, str]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, typing.MutableMapping[float, str]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, typing.MutableMapping[float, str]), str) self.assertIsNone(pytypes.get_arg_for_TypeVar(typing.T, typing.Mapping[float, str])) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, typing.Mapping[float, str]), float) self.assertIsNone(pytypes.get_arg_for_TypeVar(typing.VT, typing.Mapping[float, str])) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, typing.Mapping[float, str]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, sub_List), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, sub_List2), float) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_List3[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, sub_List3[str]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T_co, sub_List3[str]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_List4[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, sub_List4[complex]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T_co, sub_List4[complex]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_List6[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, sub_List6[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T_co, sub_List6[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_List7[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T, sub_List7[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.T_co, sub_List7[complex]), complex) self.assertIsNone(pytypes.get_arg_for_TypeVar(T_1, sub_Dict)) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict), int) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict), int) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_Dict2[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict2[complex]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict2[complex]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict2[complex]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_Dict3[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict3[float]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict3[float]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict3[float]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_Dict4[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict4[float]), str) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict4[float]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict4[float]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_Dict6[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict6[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict6[float]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict6[float]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_Dict7[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict7[float]), int) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict7[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict7[float]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(T_1, sub_Dict8[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.KT, sub_Dict8[complex]), float) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT, sub_Dict8[complex]), complex) self.assertEqual(pytypes.get_arg_for_TypeVar(typing.VT_co, sub_Dict8[complex]), complex) def test_typevar_collision(self): # See: https://github.com/Stewori/pytypes/issues/62 T1 = typing.TypeVar("T1") T2 = typing.TypeVar("T2") class D0(Dict[T1, T2]): def show_types(self): gt = pytypes.get_Generic_type(self) return gt, pytypes.get_Generic_parameters(gt, D0) class D1(D0[int, T1]): pass class D2(D1[str]): pass self.assertEqual(D0[int, str]().show_types(), (D0[int, str], (int, str))) self.assertEqual(D1[str]().show_types(), (D1[str], (int, str))) self.assertEqual(D2().show_types(), (D2, (int, str))) # was (str, str) before the fix def test_property(self): tcp = testClass_property() tcp.testprop = 7 self.assertEqual(tcp.testprop, 7) def tcp_prop1(): tcp.testprop = 7.2 self.assertRaises(InputTypeError, tcp_prop1) tcp._testprop = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp.testprop) tcp.testprop2 = 'def' self.assertEqual(tcp.testprop2, 'def') tcp.testprop2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp.testprop2) tcp.testprop3 = (22, 'ghi') self.assertEqual(tcp.testprop3, (22, 'ghi')) def tcp_prop3(): tcp.testprop3 = 9 self.assertRaises(InputTypeError, tcp_prop3) tcp._testprop3 = 9 self.assertRaises(ReturnTypeError, lambda: tcp.testprop3) tcp_ch = testClass_property_class_check() tcp_ch.testprop = 17 self.assertEqual(tcp_ch.testprop, 17) def tcp_ch_prop(): tcp_ch.testprop = 71.2 self.assertRaises(InputTypeError, tcp_ch_prop) tcp_ch._testprop = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop) tcp_ch.testprop2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop2) self.assertEqual(get_member_types(tcp, 'testprop'), (Tuple[int], type(None))) self.assertEqual(get_member_types(tcp, 'testprop', True), (Tuple[()], int)) def test_custom_annotations(self): annotations_override_typestring_tmp = pytypes.annotations_override_typestring hnts = testfunc_custom_annotations.__annotations__ self.assertEqual(hnts['a'], str) self.assertEqual(hnts['b'], float) self.assertEqual(hnts['return'], float) if sys.version_info.major >= 3: hnts = typing.get_type_hints(testfunc_custom_annotations) self.assertEqual(hnts['a'], str) self.assertEqual(hnts['b'], float) self.assertEqual(hnts['return'], float) else: self.assertIsNone(typing.get_type_hints(testfunc_custom_annotations)) hnts = pytypes.get_type_hints(testfunc_custom_annotations) self.assertEqual(hnts['a'], str) self.assertEqual(hnts['b'], float) self.assertEqual(hnts['return'], float) self.assertEqual(pytypes.get_types(testfunc_custom_annotations), (typing.Tuple[str, float], float)) self.assertEqual(testfunc_custom_annotations('abc', 2.5), 1.2) self.assertRaises(InputTypeError, lambda: testfunc_custom_annotations('abc', 'd')) self.assertEqual(testfunc_custom_annotations_typechecked('qvw', 2), 1.5) self.assertRaises(InputTypeError, lambda: testfunc_custom_annotations_typechecked('qvw', 2.2)) self.assertRaises(InputTypeError, lambda: testfunc_custom_annotations_typechecked_err(7, 1.5)) self.assertRaises(ReturnTypeError, lambda: testfunc_custom_annotations_typechecked_err('hij', 1.5)) if sys.version_info.major >= 3: self.assertTrue( hasattr(testfunc_custom_annotations_plain, '__annotations__')) self.assertEqual( len(testfunc_custom_annotations_plain.__annotations__), 0) self.assertEqual( len(typing.get_type_hints(testfunc_custom_annotations_plain)), 0) else: self.assertFalse( hasattr(testfunc_custom_annotations_plain, '__annotations__')) self.assertIsNone( typing.get_type_hints(testfunc_custom_annotations_plain)) hnts = pytypes.get_type_hints(testfunc_custom_annotations_plain) self.assertEqual(hnts['a'], str) self.assertEqual(hnts['b'], float) self.assertEqual(hnts['return'], float) self.assertEqual(get_types(testfunc_custom_annotations_plain), (Tuple[str, float], float)) pytypes.annotations_override_typestring = False self.assertEqual(get_types(testfunc_custom_annotations_plain), (Tuple[str, float], float)) self.assertEqual(testfunc_custom_annotations_plain('abc', 1.5), 2.0) testfunc_custom_annotations_plain.__annotations__ = \ {'a': str, 'b': int, 'return': 'float'} self.assertRaises(TypeError, lambda: testfunc_custom_annotations_plain('abc', 1.5)) pytypes.annotations_override_typestring = True self.assertEqual(testfunc_custom_annotations_plain('abc', 1), 3.0) self.assertRaises(InputTypeError, lambda: testfunc_custom_annotations_plain('abc', 1.5)) hnts = pytypes.get_type_hints(testfunc_custom_annotations_plain) self.assertEqual(hnts['a'], str) self.assertEqual(hnts['b'], int) self.assertEqual(hnts['return'], float) hnts = testfunc_custom_annotations_plain.__annotations__ self.assertEqual(hnts['a'], str) self.assertEqual(hnts['b'], int) self.assertEqual(hnts['return'], 'float') pytypes.annotations_override_typestring = False self.assertRaises(TypeError, lambda: pytypes.get_type_hints(testfunc_custom_annotations_plain)) pytypes.annotations_override_typestring = annotations_override_typestring_tmp def test_annotations_from_typestring(self): # via decorator annt = testfunc_annotations_from_tpstring_by_decorator.__annotations__ self.assertEqual(annt['a'], str) self.assertEqual(annt['b'], int) self.assertEqual(annt['return'], int) # via pytypes-flag annotations_from_typestring_tmp = pytypes.annotations_from_typestring self.assertTrue(not hasattr( testfunc_annotations_from_tpstring, '__annotations__') or len(testfunc_annotations_from_tpstring.__annotations__) == 0) pytypes.annotations_from_typestring = False self.assertEqual(pytypes.get_types(testfunc_annotations_from_tpstring), (Tuple[str, int],int)) self.assertTrue(not hasattr( testfunc_annotations_from_tpstring, '__annotations__') or len(testfunc_annotations_from_tpstring.__annotations__) == 0) pytypes.annotations_from_typestring = True self.assertEqual(pytypes.get_types(testfunc_annotations_from_tpstring), (Tuple[str, int],int)) annt = testfunc_annotations_from_tpstring.__annotations__ self.assertEqual(annt['a'], str) self.assertEqual(annt['b'], int) self.assertEqual(annt['return'], int) pytypes.annotations_from_typestring = annotations_from_typestring_tmp def test_varargs(self): self.assertEqual(testfunc_varargs1(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(testfunc_varargs1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: testfunc_varargs1((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: testfunc_varargs1(16.4, '2', 3.2)) self.assertEqual(testfunc_varargs2('cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: testfunc_varargs2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: testfunc_varargs2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: testfunc_varargs2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(testfunc_varargs3(14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: testfunc_varargs3(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: testfunc_varargs3((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: testfunc_varargs3(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(testfunc_varargs4(cx = 7, d = 9), 7) self.assertEqual(testfunc_varargs4(cx = 7.5, d = 9), 7.5) self.assertEqual(testfunc_varargs4(), 0) self.assertRaises(InputTypeError, lambda: testfunc_varargs4(2, 3)) self.assertRaises(InputTypeError, lambda: testfunc_varargs4(cx = 7.1, d = '9')) self.assertEqual(testfunc_varargs5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: testfunc_varargs5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: testfunc_varargs5( 3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: testfunc_varargs5( 3, 'qvw', (3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: testfunc_varargs5()) self.assertRaises(InputTypeError, lambda: testfunc_varargs_err( 3.0, 'qvw', 3.3, 9, v=6, x=-8, qvw=9.9)) self.assertRaises(ReturnTypeError, lambda: testfunc_varargs_err( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) tcv = testclass_vararg() self.assertEqual(tcv.testmeth_varargs1( ('k', 7), ('bxx', 19), ('bxy', 27)), 130) self.assertEqual(tcv.testmeth_varargs1(), -15) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs1(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs2( 2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 16]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(testclass_vararg.testmeth_varargs_static1( 10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual(testclass_vararg.testmeth_varargs_static1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_static1((10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_static1('10, 4', 1.0, -4.2)) self.assertEqual(testclass_vararg.testmeth_varargs_static2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_static2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual(testclass_vararg.testmeth_varargs_class1(), -15) self.assertEqual(testclass_vararg.testmeth_varargs_class1( ('abc', -12), ('txxt', 2)), -43) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class1( ('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class1( ('abc', -12), 'txxt')) self.assertEqual(testclass_vararg.testmeth_varargs_class2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 16]) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class2()) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop1 = 'test_prop1' self.assertEqual(tcv.prop1, 'test_prop1') def _set_prop1(): tcv.prop1 = 8 self.assertRaises(InputTypeError, _set_prop1) tcv._prop1 = 8 self.assertRaises(ReturnTypeError, lambda: tcv.prop1) def test_varargs_check_argument_types(self): self.assertEqual(testfunc_varargs_ca1(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(testfunc_varargs_ca1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca1((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca1(16.4, '2', 3.2)) self.assertEqual(testfunc_varargs_ca2('cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(testfunc_varargs_ca3(14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca3(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca3((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca3(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(testfunc_varargs_ca4(cx = 7, d = 9), 7) self.assertEqual(testfunc_varargs_ca4(cx = 7.5, d = 9), 7.5) self.assertEqual(testfunc_varargs_ca4(), 0) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: testfunc_varargs_ca4(2, 3)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca4(cx = 7.1, d = '9')) self.assertEqual(testfunc_varargs_ca5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca5( 3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: testfunc_varargs_ca5( 3, 'qvw', (3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: testfunc_varargs_ca5()) tcv = testclass_vararg_ca() self.assertEqual(tcv.testmeth_varargs_ca1( ('k', 7), ('bxx', 19), ('bxy', 27)), 127) self.assertEqual(tcv.testmeth_varargs_ca1(), -18) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca1(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs_ca2(2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 19]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_static_ca1( 10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_static_ca1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_static_ca1((10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_static_ca1('10, 4', 1.0, -4.2)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_static_ca2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_static_ca2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_class_ca1(), -18) self.assertEqual(testclass_vararg_ca.testmeth_varargs_class_ca1( ('abc', -12), ('txxt', 2)), -46) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca1( ('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca1(('abc', -12), 'txxt')) self.assertEqual(testclass_vararg_ca.testmeth_varargs_class_ca2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 19]) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca2()) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop_ca1 = 'test_prop1' self.assertEqual(tcv.prop_ca1, 'test_prop1') def _set_prop1(): tcv.prop_ca1 = 8 self.assertRaises(InputTypeError, _set_prop1) # No point in checking for ReturnTypeError here; # check_argument_types wouldn't catch it. def test_defaults_inferred_types(self): tmp = pytypes.infer_default_value_types pytypes.infer_default_value_types = True self.assertEqual(get_types(func_defaults_typecheck), (Tuple[str, Any, int, float], str)) self.assertEqual(pytypes.get_type_hints(func_defaults_typecheck), {'a': str, 'c': int, 'return': str, 'd': float}) self.assertEqual(func_defaults_typecheck('qvw', 'abc', 2, 1.5), 'qvwabcabc') self.assertRaises(InputTypeError, lambda: func_defaults_typecheck('qvw', 'abc', 3.5)) self.assertEqual(func_defaults_typecheck2('test', 12.2, 123), 'test1500.6False') self.assertRaises(InputTypeError, lambda: func_defaults_typecheck2('test', 12.2, 123, 3.5)) self.assertRaises(InputTypeError, lambda: func_defaults_typecheck('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: func_defaults_typecheck(7, 'qvw')) self.assertEqual(func_defaults_checkargs('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertRaises(InputTypeError, lambda: func_defaults_checkargs('qvw', 'abc', 3.5)) self.assertRaises(InputTypeError, lambda: func_defaults_checkargs('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: func_defaults_checkargs(7, 'qvw')) self.assertEqual(get_types(func_defaults_annotations), (Tuple[str, Any, int], str)) self.assertEqual(pytypes.get_type_hints(func_defaults_annotations), {'a': str, 'c': int, 'return': str}) self.assertEqual(func_defaults_annotations.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = False self.assertEqual(get_types(func_defaults_typecheck), (Tuple[str, Any, Any, Any], str)) self.assertEqual(pytypes.get_type_hints(func_defaults_typecheck), {'a': str, 'return': str}) self.assertEqual(func_defaults_typecheck('qvw', 'abc', 3.5), 'invalid') self.assertEqual(func_defaults_typecheck('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: func_defaults_typecheck(7, 'qvw')) self.assertEqual(func_defaults_checkargs('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertEqual(func_defaults_checkargs('qvw', 'abc', 3.5), 'invalid') self.assertEqual(func_defaults_checkargs('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: func_defaults_checkargs(7, 'qvw')) self.assertEqual(get_types(func_defaults_annotations), (Tuple[str, Any, Any], str)) self.assertEqual(pytypes.get_type_hints(func_defaults_annotations), {'a': str, 'return': str}) self.assertEqual(func_defaults_annotations.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = tmp def test_typestring_varargs_syntax(self): self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring1)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring2)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring3)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring4)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring5)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring6)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring7)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring8)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring9)) self.assertRaises(TypeSyntaxError, lambda: pytypes.get_types(func_bad_typestring10)) def test_typecheck_parent_type(self): always_check_parent_types_tmp = pytypes.always_check_parent_types pytypes.always_check_parent_types = False self.assertRaises(InputTypeError, lambda: B_override_check_arg().meth1(17.7)) self.assertEqual(B_no_override_check_arg().meth1(17.7), 4) self.assertRaises(InputTypeError, lambda: B_override_typechecked().meth1(17.7)) self.assertEqual(B_no_override_typechecked().meth1(17.7), 4) self.assertEqual(B_override_with_type_check_arg().meth1(17.7), 4) self.assertEqual(B_override_with_type_typechecked().meth1(17.7), 4) pytypes.always_check_parent_types = True self.assertRaises(InputTypeError, lambda: B_override_check_arg().meth1(17.7)) self.assertRaises(InputTypeError, lambda: B_no_override_check_arg().meth1(17.7)) self.assertRaises(InputTypeError, lambda: B_override_typechecked().meth1(17.7)) self.assertRaises(InputTypeError, lambda: B_no_override_typechecked().meth1(17.7)) self.assertEqual(B_override_with_type_check_arg().meth1(17.7), 4) self.assertEqual(B_override_with_type_typechecked().meth1(17.7), 4) pytypes.always_check_parent_types = always_check_parent_types_tmp class TestTypecheck_class(unittest.TestCase): def test_classmethod(self): tc = testClass4('efghi') self.assertEqual(tc.testmeth_class(23, 1.1), "23-1.1-<class '%s.testClass4'>"%self.__module__) self.assertRaises(InputTypeError, lambda: tc.testmeth_class(23, '1.1')) # Tests @no_type_check: self.assertEqual(tc.testmeth_class_raw('23', 1.1), "23-1.1-<class '%s.testClass4'>"%self.__module__) self.assertEqual(tc.testmeth_class2(23, 1.1), "23-1.1-<class '%s.testClass4'>"%self.__module__) self.assertRaises(InputTypeError, lambda: tc.testmeth_class2(23, '1.1')) self.assertRaises(ReturnTypeError, lambda: tc.testmeth_class2_err(23, 1.1)) def test_method(self): tc = testClass4('ijklm') self.assertEqual(tc.testmeth(1, 2.5), '1-2.5-ijklm') self.assertRaises(InputTypeError, lambda: tc.testmeth(1, 2.5, 7)) self.assertRaises(ReturnTypeError, lambda: tc.testmeth_err(1, 2.5)) # Tests @no_type_check: self.assertEqual(tc.testmeth_raw('1', 2.5), '1-2.5-ijklm') def test_staticmethod(self): tc = testClass4('efghj') self.assertEqual(tc.testmeth_static(12, 0.7), '12-0.7-static') self.assertRaises(InputTypeError, lambda: tc.testmeth_static(12, [3])) # Tests @no_type_check: self.assertEqual(tc.testmeth_static_raw('12', 0.7), '12-0.7-static') self.assertEqual(tc.testmeth_static2(11, 1.9), '11-1.9-static') self.assertRaises(InputTypeError, lambda: tc.testmeth_static2(11, ('a', 'b'), 1.9)) class TestTypecheck_class_with_getattr(unittest.TestCase): """ See pull request: https://github.com/Stewori/pytypes/pull/53 commit #: e2523b347e52707f87d7078daad1a93940c12e2e """ def test_valid_access(self): obj = GetAttrDictWrapper({'a': 5, 'b': 10}) self.assertEqual(obj.a, 5) self.assertEqual(obj.b, 10) def test_invalid_access(self): obj = GetAttrDictWrapper({'a': 5, 'b': 10}) self.assertRaises(AttributeError, lambda: obj.nonexistent) class TestTypecheck_module(unittest.TestCase): def test_function_py2(self): from testhelpers import modulewide_typecheck_testhelper_py2 as mth self.assertEqual(mth.testfunc(3, 2.5, 'abcd'), (9, 7.5)) with self.assertRaises(KeyError): pytypes.typechecked_module('nonexistent123') self.assertEqual(mth.testfunc(3, 2.5, 7), (9, 7.5)) # would normally fail module_name = 'testhelpers.modulewide_typecheck_testhelper_py2' returned_mth = pytypes.typechecked_module(module_name) self.assertEqual(returned_mth, module_name) returned_mth = pytypes.typechecked_module(mth) self.assertEqual(returned_mth, mth) self.assertEqual(mth.testfunc(3, 2.5, 'abcd'), (9, 7.5)) self.assertRaises(InputTypeError, lambda: mth.testfunc(3, 2.5, 7)) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_function_py3(self): from testhelpers import modulewide_typecheck_testhelper as mth self.assertEqual(mth.testfunc(3, 2.5, 'abcd'), (9, 7.5)) self.assertEqual(mth.testfunc(3, 2.5, 7), (9, 7.5)) # would normally fail returned_mth = pytypes.typechecked_module(mth) self.assertEqual(returned_mth, mth) self.assertEqual(mth.testfunc(3, 2.5, 'abcd'), (9, 7.5)) self.assertRaises(InputTypeError, lambda: mth.testfunc(3, 2.5, 7)) class Test_check_argument_types(unittest.TestCase): def test_function(self): self.assertIsNone(testfunc_check_argument_types(2, 3.0, 'qvwx')) self.assertRaises(InputTypeError, lambda: testfunc_check_argument_types(2.7, 3.0, 'qvwx')) def test_methods(self): cl = testClass_check_argument_types() self.assertIsNone(cl.testMeth_check_argument_types(7)) self.assertIsNone(cl.testClassmeth_check_argument_types(8)) self.assertIsNone(cl.testStaticmeth_check_argument_types(9)) self.assertRaises(InputTypeError, lambda: cl.testMeth_check_argument_types('7')) self.assertRaises(InputTypeError, lambda: cl.testClassmeth_check_argument_types(8.5)) self.assertRaises(InputTypeError, lambda: cl.testStaticmeth_check_argument_types((9,))) def test_inner_method(self): def testf1(): def testf2(x): # type: (Tuple[int, float]) -> str pytypes.check_argument_types() return str(x) return testf2((3, 6)) self.assertEqual(testf1(), '(3, 6)') def testf1_err(): def testf2(x): # type: (Tuple[int, float]) -> str pytypes.check_argument_types() return str(x) return testf2((3, '6')) self.assertRaises(InputTypeError, lambda: testf1_err()) def test_inner_class(self): def testf1(): class test_class_in_func(object): def testm1(self, x): # type: (int) -> str pytypes.check_argument_types() return str(x) return test_class_in_func().testm1(99) self.assertEqual(testf1(), '99') def testf1_err(): class test_class_in_func(object): def testm1(self, x): # type: (int) -> str pytypes.check_argument_types() return str(x) return test_class_in_func().testm1(99.5) self.assertRaises(InputTypeError, lambda: testf1_err()) class TestOverride(unittest.TestCase): def test_override(self): tc2 = testClass2('uvwx') self.assertRaises(OverrideError, lambda: tc2.testmeth2(1, 2.5)) self.assertRaises(OverrideError, lambda: tc2.testmeth2b(3, 1.1)) self.assertRaises(OverrideError, lambda: tc2.testmeth6(1, 2.5)) self.assertRaises(OverrideError, lambda: tc2.__repr__()) # i.e. no builtins-issue self.assertRaises(OverrideError, lambda: testClass2_init_ov()) def test_override_typecheck(self): tc2 = testClass2('uvwx') self.assertEqual(tc2.testmeth(1, 2.5), '1-2.5-uvwx') self.assertEqual(tc2.testmeth3(1, 2.5), '1-2.5-uvwx') self.assertRaises(ReturnTypeError, lambda: tc2.testmeth3_err(1, 2.5)) self.assertEqual(tc2.testmeth4(1, 2.5), '1-2.5-uvwx') self.assertEqual(tc2.testmeth5(1, 2.5), '1-2.5-uvwx') self.assertRaises(InputTypeError, lambda: tc2.testmeth3('1', 2.5)) def test_override_typecheck_class(self): tc5 = testClass5() self.assertEqual(tc5.testmeth_cls5(3, 7), '3-7') self.assertRaises(InputTypeError, lambda: tc5.testmeth_cls5(3, '8')) self.assertTrue(hasattr(tc5.testmeth_cls5, 'ch_func')) self.assertFalse(hasattr(tc5.testmeth2_cls5, 'ch_func')) def test_override_vararg(self): cl = override_varargs_class() self.assertEqual(cl.method_vararg1(1, 2.3, 4, 5), 2) self.assertEqual(cl.method_vararg2(6, 7.8, 'a', 'b', 'c'), 12) self.assertEqual(cl.method_vararg3(9, 10.1, 11.2, 12.3), 12) self.assertRaises(OverrideError, lambda: cl.method_vararg1_err(3, 4.5, 6, 7)) self.assertRaises(OverrideError, lambda: cl.method_vararg2_err(8, 9.01, 'd', 'e', 'f')) self.assertRaises(OverrideError, lambda: cl.method_vararg3_err(4, 5, 6)) self.assertEqual(cl.method_varkw1(7, 8, m=1.1, n=2.2, x=3.3), 15) self.assertEqual(cl.method_varkw2(9, 10, 'g', 'h', x=2.3, y=3.4, z=7.7), 19) self.assertRaises(OverrideError, lambda: cl.method_varkw1_err(11, 12, q=22, v=33, w=44)) self.assertRaises(OverrideError, lambda: cl.method_varkw2_err(4, 5, 'i', 'j', g=3, h=7)) self.assertRaises(OverrideError, lambda: cl.method_varkw3_err(14, 15, 'k', 'l')) self.assertEqual(cl.method_defaults1(21, 22), 43) self.assertEqual(cl.method_defaults2(23, 24, 31, 32, 33, 34), 47) self.assertRaises(OverrideError, lambda: cl.method_defaults1_err(101, 102)) self.assertRaises(OverrideError, lambda: cl.method_defaults2_err(201, 202, 55.1, 55.2, 55.3)) def test_override_diamond(self): self.assertEqual(D_diamond_override().meth1((12.4, 17.7)), 12) self.assertRaises(OverrideError, lambda: D_diamond_override_err1().meth1((12, 17))) self.assertRaises(OverrideError, lambda: D_diamond_override_err2().meth1((12, 17))) self.assertRaises(OverrideError, lambda: D_diamond_override_err3().meth1((12, 17))) def test_auto_override(self): self.assertEqual(B_auto_override().meth_1('abc', (4, 2)), 1) obj = B_auto_override_err() self.assertRaises(OverrideError, lambda: obj.meth_1('abc', (4, 2))) self.assertEqual(obj.meth_2('defg'), 12) def test_override_at_definition_time(self): tmp = pytypes.check_override_at_class_definition_time pytypes.check_override_at_class_definition_time = True tc2 = testClass2_defTimeCheck() self.assertRaises(InputTypeError, lambda: tc2.testmeth3b(1, '2.5')) self.assertRaises(OverrideError, lambda: testClass2_defTimeCheck2()) self.assertRaises(OverrideError, lambda: testClass2_defTimeCheck3()) self.assertRaises(OverrideError, lambda: testClass2_defTimeCheck4()) testClass3_defTimeCheck() self.assertRaises(OverrideError, lambda: testClass2_defTimeCheck_init_ov()) pytypes.check_override_at_class_definition_time = tmp def test_override_at_definition_time_with_forward_decl(self): # This can only be sufficiently tested at import-time, so # we import helper-modules during this test. tmp = pytypes.check_override_at_class_definition_time pytypes.check_override_at_class_definition_time = True from testhelpers import override_testhelper # shall not raise error def _test_err(): from testhelpers import override_testhelper_err def _test_err2(): from testhelpers import override_testhelper_err2 self.assertRaises(OverrideError, _test_err) self.assertRaises(NameError, _test_err2) pytypes.check_override_at_class_definition_time = tmp class TestStubfile(unittest.TestCase): """ Planned Test-cases: - each should test func-access, class-access, method, static method, classmethod [ Ok ] plain 2.7-stub [ToDo] plain 2.7-stub in search-dir Skip if 3.5 or no suitable Python3 executable registered: - each with stub from search-dir and source-dir [ToDo] generate 2.7-stub in tmp-dir [ToDo] generate 2.7-stub in stub-dir [ToDo] reuse 2.7-stub from stub-dir [ToDo] recreate outdated 2.7-stub in stub-dir [ToDo] Python 2-override of a 3.5-stub Skip if 2.7: [ Ok ] plain 3.5-stub [ToDo] plain 3.5-stub in search-dir [ToDo] 3.5-stub with Python 2-override """ def test_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 # Test function: self.assertEqual(stub_py2.testfunc1_py2(1, 7), 'testfunc1_1 -- 7') self.assertRaises(InputTypeError, lambda: stub_py2.testfunc1_py2(1, '7')) hints = get_type_hints(stub_py2.testfunc1_py2) self.assertEqual(hints['a'], int) self.assertEqual(hints['b'], Real) self.assertEqual(hints['return'], str) # Test method: cl1 = stub_py2.class1_py2() self.assertEqual(cl1.meth1_py2(0.76, 'abc'), 'abc----0.76') self.assertRaises(InputTypeError, lambda: cl1.meth1_py2('0.76', 'abc')) hints = get_type_hints(cl1.meth1_py2) self.assertEqual(hints['a'], float) self.assertEqual(hints['b'], str) self.assertEqual(hints['return'], str) self.assertRaises(ReturnTypeError, lambda: cl1.meth2_py2(4.9, 'cde')) # Test method of nested class: cl1b = cl1.class1_inner_py2() cl1b.inner_meth1_py2(3.4, 'inn') self.assertRaises(InputTypeError, lambda: cl1b.inner_meth1_py2('3', 'in2')) # Test static method: self.assertEqual(5, stub_py2.class1_py2.static_meth_py2(66, 'efg')) self.assertRaises(InputTypeError, lambda: stub_py2.class1_py2.static_meth_py2(66, ('efg',))) hints = get_type_hints(stub_py2.class1_py2.static_meth_py2) self.assertEqual(hints['c'], str) self.assertEqual(hints['d'], Any) self.assertEqual(hints['return'], int) # Test static method on instance: self.assertEqual(5, cl1.static_meth_py2(66, 'efg')) self.assertRaises(InputTypeError, lambda: cl1.static_meth_py2(66, ('efg',))) hints = get_type_hints(cl1.static_meth_py2) self.assertEqual(hints['c'], str) self.assertEqual(hints['d'], Any) self.assertEqual(hints['return'], int) # Test staticmethod with nested classes/instances: self.assertEqual(7, stub_py2.class1_py2.class1_inner_py2.inner_static_meth_py2(66.1, 'efg')) self.assertRaises(InputTypeError, lambda: stub_py2.class1_py2.class1_inner_py2.inner_static_meth_py2(66, ('efg',))) hints = get_type_hints( stub_py2.class1_py2.class1_inner_py2.inner_static_meth_py2) self.assertEqual(hints['c'], str) self.assertEqual(hints['d'], float) self.assertEqual(hints['return'], int) self.assertEqual(7, cl1.class1_inner_py2.inner_static_meth_py2(66.1, 'efg')) self.assertRaises(InputTypeError, lambda: cl1.class1_inner_py2.inner_static_meth_py2(66, ('efg',))) self.assertEqual( hints, get_type_hints(cl1.class1_inner_py2.inner_static_meth_py2)) cl1_inner = stub_py2.class1_py2.class1_inner_py2() self.assertEqual(7, cl1_inner.inner_static_meth_py2(66.1, 'efg')) self.assertRaises(InputTypeError, lambda: cl1_inner.inner_static_meth_py2(66, ('efg',))) self.assertEqual(hints, get_type_hints(cl1_inner.inner_static_meth_py2)) # Test classmethod: self.assertEqual(462.0, stub_py2.class1_py2.class_meth_py2('ghi', 77)) self.assertRaises(InputTypeError, lambda: stub_py2.class1_py2.class_meth_py2(99, 77)) # Test subclass and class-typed parameter: cl2 = stub_py2.class2_py2() hints = get_type_hints(cl2.meth2b_py2) self.assertEqual(hints['b'], stub_py2.class1_py2) self.assertTrue(cl2.meth2b_py2(cl1).startswith( '<testhelpers.stub_testhelper_py2.class1_py2')) self.assertRaises(InputTypeError, lambda: cl2.meth2b_py2('cl1')) self.assertIsNone(stub_py2.testfunc_None_ret_py2(2, 3.0)) self.assertEqual(stub_py2.testfunc_None_arg_py2(4, None), 16) self.assertEqual(stub_py2.testfunc_class_in_list_py2([cl1]), 1) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_class_in_list_py2((cl1,))) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_class_in_list_py2(cl1)) # Todo: Add some of these tests for stubfile # def test_get_types_plain_2_7_stub(self): # from testhelpers import stub_testhelper_py2 as stub_py2 # tc = testClass('mnop') # tc2 = testClass2('qrst') # tc3 = testClass3() # self.assertEqual(get_types(testfunc), (Tuple[int, Real, str], Tuple[int, Real])) # self.assertEqual(get_types(testfunc2), (Tuple[int, Real, testClass], Tuple[int, float])) # self.assertEqual(get_types(testfunc4), (Any, Any)) # self.assertEqual(get_types(tc2.testmeth), (Tuple[int, Real], str)) # self.assertEqual(get_types(testClass2.testmeth), (Tuple[int, Real], str)) # self.assertEqual(get_types(tc3.testmeth), (Any, Any)) # self.assertEqual(get_types(testClass3Base.testmeth), (Tuple[int, Real], Union[str, int])) # self.assertEqual(get_types(tc.testmeth2), (Tuple[int, Real], str)) # self.assertEqual(get_types(tc.testmeth_class), (Tuple[int, Real], str)) # self.assertEqual(get_types(tc.testmeth_class2), (Tuple[int, Real], str)) # self.assertEqual(get_types(tc.testmeth_static), (Tuple[int, Real], str)) # self.assertEqual(get_types(tc.testmeth_static2), (Tuple[int, Real], str)) # self.assertEqual(get_types(testfunc), (Tuple[int, Real, str], Tuple[int, Real])) def test_sequence_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(stub_py2.testfunc_Seq_arg_py2(((3, 'ab'), (8, 'qvw'))), 2) self.assertEqual( stub_py2.testfunc_Seq_arg_py2([(3, 'ab'), (8, 'qvw'), (4, 'cd')]), 3) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Seq_arg_py2({(3, 'ab'), (8, 'qvw')})) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Seq_arg_py2(((3, 'ab'), (8, 'qvw', 2)))) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Seq_arg_py2([(3, 1), (8, 'qvw'), (4, 'cd')])) self.assertEqual(stub_py2.testfunc_Seq_ret_List_py2(7, 'mno'), [7, 'mno']) self.assertEqual(stub_py2.testfunc_Seq_ret_Tuple_py2(3, 'mno'), (3, 'mno')) self.assertRaises(ReturnTypeError, lambda: stub_py2.testfunc_Seq_ret_err_py2(29, 'def')) def test_iterable_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(stub_py2.testfunc_Iter_arg_py2((9, 8, 7, 6), 'vwxy'), [9, 8, 7, 6]) self.assertEqual(stub_py2.testfunc_Iter_str_arg_py2('defg'), [100, 101, 102, 103]) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Iter_arg_py2((9, '8', 7, 6), 'vwxy')) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Iter_arg_py2(7, 'vwxy')) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Iter_arg_py2([9, 8, 7, '6'], 'vwxy')) self.assertEqual(stub_py2.testfunc_Iter_arg_py2([9, 8, 7, 6], 'vwxy'), [9, 8, 7, 6]) res = stub_py2.testfunc_Iter_arg_py2({9, 8, 7, 6}, 'vwxy'); res.sort() self.assertEqual(res, [6, 7, 8, 9]) res = stub_py2.testfunc_Iter_arg_py2( {19: 'a', 18: 'b', 17: 'c', 16: 'd'}, 'vwxy') res.sort() self.assertEqual(res, [16, 17, 18, 19]) self.assertEqual(stub_py2.testfunc_Iter_ret_py2(), [1, 2, 3, 4, 5]) self.assertRaises(ReturnTypeError, lambda: stub_py2.testfunc_Iter_ret_err_py2()) ti = test_iterable((2, 4, 6, 'a')) self.assertRaises(ReturnTypeError, lambda: stub_py2.testfunc_Iter_arg_py2(ti, 'vwxy')) # tia = stub_py2.test_iterable_annotated_py2((3, 6, 9)) # self.assertEqual(stub_py2.testfunc_Iter_arg_py2(tia, 'vwxy'), [3, 6, 9]) def test_dict_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertIsNone(stub_py2.testfunc_Dict_arg_py2(5, {'5': 4, 'c': '8'})) self.assertIsNone(stub_py2.testfunc_Dict_arg_py2(5, {'5': 'A', 'c': '8'})) self.assertIsNone(stub_py2.testfunc_Mapping_arg_py2(7, {'7': 4, 'c': '8'})) self.assertIsNone(stub_py2.testfunc_Mapping_arg_py2(5, {'5': 'A', 'c': '8'})) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Dict_arg_py2(5, {4: 4, 3: '8'})) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Dict_arg_py2(5, {'5': (4,), 'c': '8'})) self.assertEqual(stub_py2.testfunc_Dict_ret_py2('defg'), {'defgdefg': 'defg', 'defg': 4}) self.assertRaises(ReturnTypeError, lambda: stub_py2.testfunc_Dict_ret_err_py2(6)) def test_callable_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 def clb(s, i): # type: (str, int) -> str return '_'+s+'*'*i def clb2(s, i): # type: (str, str) -> str return '_'+s+'*'*i def clb3(s, i): # type: (str, int) -> int return '_'+s+'*'*i self.assertTrue(is_of_type(clb, typing.Callable[[str, int], str])) self.assertFalse(is_of_type(clb, typing.Callable[[str, str], str])) self.assertFalse(is_of_type(clb, typing.Callable[[str, int], float])) self.assertEqual( stub_py2.testfunc_Callable_arg_py2(clb, 'pqrs'), '_pqrs****') self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Callable_arg_py2(clb2, 'pqrs')) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Callable_arg_py2(clb3, 'pqrs')) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Callable_call_err_py2(clb, 'tuvw')) self.assertEqual(stub_py2.testfunc_Callable_arg_py2( lambda s, i: '__'+s+'-'*i, 'pqrs'), '__pqrs----') self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Callable_call_err_py2( lambda s, i: '__'+s+'-'*i, 'tuvw')) fnc = stub_py2.testfunc_Callable_ret_py2(5, 'qvwx') self.assertEqual(fnc.__class__.__name__, 'function') self.assertEqual(fnc.__name__, 'm') self.assertRaises(ReturnTypeError, lambda: stub_py2.testfunc_Callable_ret_err_py2()) def test_generator_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 test_gen = stub_py2.testfunc_Generator_py2() self.assertIsNone(test_gen.send(None)) self.assertEqual(test_gen.send('abc'), 3) self.assertEqual(test_gen.send('ddffd'), 5) self.assertRaises(InputTypeError, lambda: test_gen.send(7)) test_gen2 = stub_py2.testfunc_Generator_py2() self.assertIsNone(test_gen2.next() if hasattr(test_gen2, 'next') else test_gen2.__next__()) self.assertEqual(test_gen2.send('defg'), 4) self.assertRaises(ReturnTypeError, lambda: test_gen2.send('fail')) self.assertRaises(TypeCheckError, lambda: stub_py2.testfunc_Generator_arg_py2(test_gen)) self.assertRaises(TypeCheckError, lambda: stub_py2.testfunc_Generator_ret_py2()) def test_custom_generic_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(stub_py2.testfunc_Generic_arg_py2( stub_py2.Custom_Generic_py2[str]('abc')), 'abc') self.assertEqual(stub_py2.testfunc_Generic_ret_py2(5).v(), 5) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Generic_arg_py2(Custom_Generic[int](9))) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_Generic_arg_py2(Custom_Generic(7))) self.assertRaises(ReturnTypeError, lambda: stub_py2.testfunc_Generic_ret_err_py2(8)) def test_property_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 tcp = stub_py2.testClass_property_py2() tcp.testprop_py2 = 7 self.assertEqual(tcp.testprop_py2, 7) def tcp_prop1_py2(): tcp.testprop_py2 = 7.2 self.assertRaises(InputTypeError, tcp_prop1_py2) tcp._testprop_py2 = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp.testprop_py2) tcp.testprop2_py2 = 'def' self.assertEqual(tcp.testprop2_py2, 'def') tcp.testprop2_py2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp.testprop2_py2) tcp.testprop3_py2 = (22, 'ghi') self.assertEqual(tcp.testprop3_py2, (22, 'ghi')) def tcp_prop3_py2(): tcp.testprop3_py2 = 9 self.assertRaises(InputTypeError, tcp_prop3_py2) tcp._testprop3_py2 = 9 self.assertRaises(ReturnTypeError, lambda: tcp.testprop3_py2) tcp_ch = stub_py2.testClass_property_class_check_py2() tcp_ch.testprop_py2 = 17 self.assertEqual(tcp_ch.testprop_py2, 17) def tcp_ch_prop_py2(): tcp_ch.testprop_py2 = 71.2 self.assertRaises(InputTypeError, tcp_ch_prop_py2) tcp_ch._testprop_py2 = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop_py2) tcp_ch.testprop2_py2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop2_py2) self.assertEqual(get_member_types(tcp, 'testprop_py2'), (Tuple[int], type(None))) self.assertEqual(get_member_types(tcp, 'testprop_py2', True), (Tuple[()], int)) def test_varargs_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(stub_py2.testfunc_varargs1_py2(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(stub_py2.testfunc_varargs1_py2(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs1_py2((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs1_py2(16.4, '2', 3.2)) self.assertEqual(stub_py2.testfunc_varargs2_py2('cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs2_py2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs2_py2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs2_py2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(stub_py2.testfunc_varargs3_py2( 14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs3_py2(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs3_py2((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs3_py2(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(stub_py2.testfunc_varargs4_py2(cx = 7, d = 9), 7) self.assertEqual(stub_py2.testfunc_varargs4_py2(cx = 7.5, d = 9), 7.5) self.assertEqual(stub_py2.testfunc_varargs4_py2(), 0) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs4_py2(2, 3)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs4_py2(cx = 7.1, d = '9')) self.assertEqual(stub_py2.testfunc_varargs5_py2( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs5_py2( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs5_py2( 3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs5_py2( 3, 'qvw', (3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs5_py2()) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_err_py2( 3.0, 'qvw', 3.3, 9, v=6, x=-8, qvw=9.9)) self.assertRaises(ReturnTypeError, lambda: stub_py2.testfunc_varargs_err_py2( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) tcv = stub_py2.testclass_vararg_py2() self.assertEqual(tcv.testmeth_varargs1_py2( ('k', 7), ('bxx', 19), ('bxy', 27)), 126) self.assertEqual(tcv.testmeth_varargs1_py2(), -19) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs1_py2(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs2_py2( 2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 20]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs2_py2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(stub_py2.testclass_vararg_py2.testmeth_varargs_static1_py2( 10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual(stub_py2.testclass_vararg_py2.testmeth_varargs_static1_py2(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_py2.testmeth_varargs_static1_py2( (10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_py2.testmeth_varargs_static1_py2( '10, 4', 1.0, -4.2)) self.assertEqual(stub_py2.testclass_vararg_py2.testmeth_varargs_static2_py2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_py2.testmeth_varargs_static2_py2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual( stub_py2.testclass_vararg_py2.testmeth_varargs_class1_py2(), -19) self.assertEqual(stub_py2.testclass_vararg_py2.testmeth_varargs_class1_py2( ('abc', -12), ('txxt', 2)), -47) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_py2.testmeth_varargs_class1_py2( ('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_py2.testmeth_varargs_class1_py2( ('abc', -12), 'txxt')) self.assertEqual(stub_py2.testclass_vararg_py2.testmeth_varargs_class2_py2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 20]) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_py2.testmeth_varargs_class2_py2()) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_py2.testmeth_varargs_class2_py2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop1_py2 = 'test_prop1' self.assertEqual(tcv.prop1_py2, 'test_prop1') def _set_prop1_py2(): tcv.prop1_py2 = 8 self.assertRaises(InputTypeError, _set_prop1_py2) tcv._prop1_py2 = 8 self.assertRaises(ReturnTypeError, lambda: tcv.prop1_py2) def test_varargs_check_argument_types_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(stub_py2.testfunc_varargs_ca1_py2(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(stub_py2.testfunc_varargs_ca1_py2(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca1_py2((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca1_py2(16.4, '2', 3.2)) self.assertEqual(stub_py2.testfunc_varargs_ca2_py2( 'cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca2_py2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca2_py2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca2_py2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(stub_py2.testfunc_varargs_ca3_py2( 14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca3_py2(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca3_py2((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca3_py2(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(stub_py2.testfunc_varargs_ca4_py2(cx = 7, d = 9), 7) self.assertEqual(stub_py2.testfunc_varargs_ca4_py2(cx = 7.5, d = 9), 7.5) self.assertEqual(stub_py2.testfunc_varargs_ca4_py2(), 0) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py2.testfunc_varargs_ca4_py2(2, 3)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca4_py2(cx = 7.1, d = '9')) self.assertEqual(stub_py2.testfunc_varargs_ca5_py2( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca5_py2( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca5_py2( 3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py2.testfunc_varargs_ca5_py2( 3, 'qvw', (3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py2.testfunc_varargs_ca5_py2()) tcv = stub_py2.testclass_vararg_ca_py2() self.assertEqual(tcv.testmeth_varargs_ca1_py2( ('k', 7), ('bxx', 19), ('bxy', 27)), 123) self.assertEqual(tcv.testmeth_varargs_ca1_py2(), -22) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca1_py2(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs_ca2_py2(2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 23]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca2_py2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(stub_py2.testclass_vararg_ca_py2.testmeth_varargs_static_ca1_py2( 10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual(stub_py2.testclass_vararg_ca_py2.testmeth_varargs_static_ca1_py2(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_ca_py2.testmeth_varargs_static_ca1_py2( (10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_ca_py2.testmeth_varargs_static_ca1_py2( '10, 4', 1.0, -4.2)) self.assertEqual(stub_py2.testclass_vararg_ca_py2.testmeth_varargs_static_ca2_py2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_ca_py2.testmeth_varargs_static_ca2_py2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual( stub_py2.testclass_vararg_ca_py2.testmeth_varargs_class_ca1_py2(), -22) self.assertEqual(stub_py2.testclass_vararg_ca_py2.testmeth_varargs_class_ca1_py2( ('abc', -12), ('txxt', 2)), -50) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_ca_py2.testmeth_varargs_class_ca1_py2( ('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_ca_py2.testmeth_varargs_class_ca1_py2( ('abc', -12), 'txxt')) self.assertEqual(stub_py2.testclass_vararg_ca_py2.testmeth_varargs_class_ca2_py2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 23]) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py2.testclass_vararg_ca_py2.testmeth_varargs_class_ca2_py2()) self.assertRaises(InputTypeError, lambda: stub_py2.testclass_vararg_ca_py2.testmeth_varargs_class_ca2_py2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop_ca1_py2 = 'test_prop1' self.assertEqual(tcv.prop_ca1_py2, 'test_prop1') def _set_prop1_py2(): tcv.prop_ca1_py2 = 8 self.assertRaises(InputTypeError, _set_prop1_py2) # No point in checking for ReturnTypeError here; # check_argument_types wouldn't catch it. def test_defaults_inferred_types_plain_2_7_stub(self): tmp = pytypes.infer_default_value_types pytypes.infer_default_value_types = True from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(get_types(stub_py2.func_defaults_typecheck_py2), (Tuple[str, Any, int, float], str)) self.assertEqual(pytypes.get_type_hints(stub_py2.func_defaults_typecheck_py2), {'a': str, 'c': int, 'return': str, 'd': float}) self.assertEqual(stub_py2.func_defaults_typecheck_py2('qvw', 'abc', 2, 1.5), 'qvwabcabc') self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_typecheck_py2('qvw', 'abc', 3.5)) self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_typecheck_py2('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_typecheck_py2(7, 'qvw')) self.assertEqual(stub_py2.func_defaults_checkargs_py2('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_checkargs_py2('qvw', 'abc', 3.5)) self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_checkargs_py2('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_checkargs_py2(7, 'qvw')) self.assertEqual(get_types(stub_py2.func_defaults_annotations_py2), (Tuple[str, Any, int], str)) self.assertEqual(pytypes.get_type_hints(stub_py2.func_defaults_annotations_py2), {'a': str, 'c': int, 'return': str}) self.assertEqual(stub_py2.func_defaults_annotations_py2.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = False self.assertEqual(get_types(stub_py2.func_defaults_typecheck_py2), (Tuple[str, Any, Any, Any], str)) self.assertEqual(pytypes.get_type_hints(stub_py2.func_defaults_typecheck_py2), {'a': str, 'return': str}) self.assertEqual(stub_py2.func_defaults_typecheck_py2('qvw', 'abc', 3.5), 'invalid') self.assertEqual(stub_py2.func_defaults_typecheck_py2('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_typecheck_py2(7, 'qvw')) self.assertEqual(stub_py2.func_defaults_checkargs_py2('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertEqual(stub_py2.func_defaults_checkargs_py2('qvw', 'abc', 3.5), 'invalid') self.assertEqual(stub_py2.func_defaults_checkargs_py2('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: stub_py2.func_defaults_checkargs_py2(7, 'qvw')) self.assertEqual(get_types(stub_py2.func_defaults_annotations_py2), (Tuple[str, Any, Any], str)) self.assertEqual(pytypes.get_type_hints( stub_py2.func_defaults_annotations_py2), {'a': str, 'return': str}) self.assertEqual(stub_py2.func_defaults_annotations_py2.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = tmp def test_annotations_from_stubfile_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(stub_py2.func_defaults_annotations_py2.__annotations__, {'a': str, 'return': str}) self.assertEqual(stub_py2.testfunc_annotations_from_stubfile_by_decorator_py2. __annotations__, {'a': str, 'b': int, 'return': int}) def test_typecheck_parent_type_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 always_check_parent_types_tmp = pytypes.always_check_parent_types pytypes.always_check_parent_types = False self.assertRaises(InputTypeError, lambda: stub_py2.B_override_check_arg_py2().meth1_py2(17.7)) self.assertEqual(stub_py2.B_no_override_check_arg_py2().meth1_py2(17.7), 4) self.assertRaises(InputTypeError, lambda: stub_py2.B_override_typechecked_py2().meth1_py2(17.7)) self.assertEqual(stub_py2.B_no_override_typechecked_py2().meth1_py2(17.7), 4) self.assertEqual(stub_py2.B_override_with_type_check_arg_py2().meth1_py2(17.7), 4) self.assertEqual(stub_py2.B_override_with_type_typechecked_py2().meth1_py2(17.7), 4) pytypes.always_check_parent_types = True self.assertRaises(InputTypeError, lambda: stub_py2.B_override_check_arg_py2().meth1_py2(17.7)) self.assertRaises(InputTypeError, lambda: stub_py2.B_no_override_check_arg_py2().meth1_py2(17.7)) self.assertRaises(InputTypeError, lambda: stub_py2.B_override_typechecked_py2().meth1_py2(17.7)) self.assertRaises(InputTypeError, lambda: stub_py2.B_no_override_typechecked_py2().meth1_py2(17.7)) self.assertEqual(stub_py2.B_override_with_type_check_arg_py2().meth1_py2(17.7), 4) self.assertEqual(stub_py2.B_override_with_type_typechecked_py2().meth1_py2(17.7), 4) pytypes.always_check_parent_types = always_check_parent_types_tmp def test_override_diamond_plain_2_7_stub(self): from testhelpers import stub_testhelper_py2 as stub_py2 self.assertEqual(stub_py2.D_diamond_override_py2().meth1_py2((12.4, 17.7)), 12) self.assertRaises(OverrideError, lambda: stub_py2.D_diamond_override_err1_py2().meth1_py2((12, 17))) self.assertRaises(OverrideError, lambda: stub_py2.D_diamond_override_err2_py2().meth1_py2((12, 17))) self.assertRaises(OverrideError, lambda: stub_py2.D_diamond_override_err3_py2().meth1_py2((12, 17))) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_plain_3_5_stub(self): from testhelpers import stub_testhelper as stub_py3 # Test function: self.assertEqual(stub_py3.testfunc1(1, 7), 'testfunc1_1 -- 7') self.assertRaises(InputTypeError, lambda: stub_py3.testfunc1(1, '7')) hints = get_type_hints(stub_py3.testfunc1) self.assertEqual(hints['a'], int) self.assertEqual(hints['b'], Real) self.assertEqual(hints['return'], str) # Test method: cl1 = stub_py3.class1() self.assertEqual(cl1.meth1(0.76, 'abc'), 'abc----0.76') self.assertRaises(InputTypeError, lambda: cl1.meth1('0.76', 'abc')) hints = get_type_hints(cl1.meth1) self.assertEqual(hints['a'], float) self.assertEqual(hints['b'], str) self.assertEqual(hints['return'], str) self.assertRaises(ReturnTypeError, lambda: cl1.meth2(4.9, 'cde')) # Test method of nested class: cl1b = cl1.class1_inner() cl1b.inner_meth1(3.4, 'inn') self.assertRaises(InputTypeError, lambda: cl1b.inner_meth1('3', 'in2')) # Test static method: self.assertEqual(5, stub_py3.class1.static_meth(66, 'efg')) self.assertRaises(InputTypeError, lambda: stub_py3.class1.static_meth(66, ('efg',))) hints = get_type_hints(stub_py3.class1.static_meth) self.assertEqual(hints['c'], str) self.assertEqual(hints['return'], int) # Test static method on instance: self.assertEqual(5, cl1.static_meth(66, 'efg')) self.assertRaises(InputTypeError, lambda: cl1.static_meth(66, ('efg',))) hints = get_type_hints(cl1.static_meth) self.assertEqual(hints['c'], str) self.assertEqual(hints['return'], int) # Test staticmethod with nested classes/instances: self.assertEqual(7, stub_py3.class1.class1_inner.inner_static_meth(66.1, 'efg')) self.assertRaises(InputTypeError, lambda: stub_py3.class1.class1_inner.inner_static_meth(66, ('efg',))) hints = get_type_hints(stub_py3.class1.class1_inner.inner_static_meth) self.assertEqual(hints['c'], str) self.assertEqual(hints['d'], float) self.assertEqual(hints['return'], int) self.assertEqual(7, cl1.class1_inner.inner_static_meth(66.1, 'efg')) self.assertRaises(InputTypeError, lambda: cl1.class1_inner.inner_static_meth(66, ('efg',))) self.assertEqual(hints, get_type_hints(cl1.class1_inner.inner_static_meth)) cl1_inner = stub_py3.class1.class1_inner() self.assertEqual(7, cl1_inner.inner_static_meth(66.1, 'efg')) self.assertRaises(InputTypeError, lambda: cl1_inner.inner_static_meth(66, ('efg',))) self.assertEqual(hints, get_type_hints(cl1_inner.inner_static_meth)) # Test classmethod: self.assertEqual(277.2, stub_py3.class1.class_meth('ghi', 77)) self.assertRaises(InputTypeError, lambda: stub_py3.class1.class_meth(99, 77)) # Test subclass and class-typed parameter: cl2 = stub_py3.class2() hints = get_type_hints(cl2.meth2b) self.assertEqual(hints['b'], stub_py3.class1) self.assertTrue(cl2.meth2b(cl1).startswith( '<testhelpers.stub_testhelper.class1 object at ')) self.assertRaises(InputTypeError, lambda: cl2.meth2b('cl1')) self.assertEqual(stub_py3.testfunc_class_in_list([cl1]), 1) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_class_in_list((cl1,))) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_class_in_list(cl1)) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_property_plain_3_5_stub(self): from testhelpers import stub_testhelper as stub_py3 tcp = stub_py3.testClass_property() tcp.testprop = 7 self.assertEqual(tcp.testprop, 7) def tcp_prop1_py3(): tcp.testprop = 7.2 self.assertRaises(InputTypeError, tcp_prop1_py3) tcp._testprop = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp.testprop) tcp.testprop2 = 'def' self.assertEqual(tcp.testprop2, 'def') tcp.testprop2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp.testprop2) tcp.testprop3 = (22, 'ghi') self.assertEqual(tcp.testprop3, (22, 'ghi')) def tcp_prop3_py3(): tcp.testprop3 = 9 self.assertRaises(InputTypeError, tcp_prop3_py3) tcp._testprop3 = 9 self.assertRaises(ReturnTypeError, lambda: tcp.testprop3) tcp_ch = stub_py3.testClass_property_class_check() tcp_ch.testprop = 17 self.assertEqual(tcp_ch.testprop, 17) def tcp_ch_prop_py3(): tcp_ch.testprop = 71.2 self.assertRaises(InputTypeError, tcp_ch_prop_py3) tcp_ch._testprop = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop) tcp_ch.testprop2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop2) self.assertEqual(get_member_types(tcp, 'testprop'), (Tuple[int], type(None))) self.assertEqual(get_member_types(tcp, 'testprop', True), (Tuple[()], int)) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_varargs_plain_3_5_stub(self): from testhelpers import stub_testhelper as stub_py3 self.assertEqual(stub_py3.testfunc_varargs1(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(stub_py3.testfunc_varargs1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs1((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs1(16.4, '2', 3.2)) self.assertEqual(stub_py3.testfunc_varargs2('cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(stub_py3.testfunc_varargs3(14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs3(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs3((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs3(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(stub_py3.testfunc_varargs4(cx = 7, d = 9), 7) self.assertEqual(stub_py3.testfunc_varargs4(cx = 7.5, d = 9), 7.5) self.assertEqual(stub_py3.testfunc_varargs4(), 0) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs4(2, 3)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs4(cx = 7.1, d = '9')) self.assertEqual(stub_py3.testfunc_varargs5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs5( 3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs5( 3, 'qvw', (3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs5()) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_err( 3.0, 'qvw', 3.3, 9, v=6, x=-8, qvw=9.9)) self.assertRaises(ReturnTypeError, lambda: stub_py3.testfunc_varargs_err( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) # Python 3 specific: kw-only args: self.assertEqual(stub_py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(stub_py3.testfunc_varargs6(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6()) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) self.assertEqual(stub_py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(stub_py3.testfunc_varargs6b(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6b(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6b()) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6b(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) tcv = stub_py3.testclass_vararg() self.assertEqual(tcv.testmeth_varargs1(('k', 7), ('bxx', 19), ('bxy', 27)), 130) self.assertEqual(tcv.testmeth_varargs1(), -15) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs1(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs2(2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 16]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(stub_py3.testclass_vararg.testmeth_varargs_static1( 10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual(stub_py3.testclass_vararg.testmeth_varargs_static1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg.testmeth_varargs_static1((10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg.testmeth_varargs_static1('10, 4', 1.0, -4.2)) self.assertEqual(stub_py3.testclass_vararg.testmeth_varargs_static2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg.testmeth_varargs_static2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual(stub_py3.testclass_vararg.testmeth_varargs_class1(), -15) self.assertEqual(stub_py3.testclass_vararg.testmeth_varargs_class1( ('abc', -12), ('txxt', 2)), -43) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg.testmeth_varargs_class1( ('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg.testmeth_varargs_class1(('abc', -12), 'txxt')) self.assertEqual(stub_py3.testclass_vararg.testmeth_varargs_class2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 16]) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg.testmeth_varargs_class2()) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg.testmeth_varargs_class2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop1 = 'test_prop1' self.assertEqual(tcv.prop1, 'test_prop1') def _set_prop1(): tcv.prop1 = 8 self.assertRaises(InputTypeError, _set_prop1) tcv._prop1 = 8 self.assertRaises(ReturnTypeError, lambda: tcv.prop1) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_varargs_check_argument_types_plain_3_5_stub(self): from testhelpers import stub_testhelper as stub_py3 self.assertEqual(stub_py3.testfunc_varargs_ca1(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(stub_py3.testfunc_varargs_ca1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca1((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca1(16.4, '2', 3.2)) self.assertEqual(stub_py3.testfunc_varargs_ca2('cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(stub_py3.testfunc_varargs_ca3(14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca3(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca3((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca3(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(stub_py3.testfunc_varargs_ca4(cx = 7, d = 9), 7) self.assertEqual(stub_py3.testfunc_varargs_ca4(cx = 7.5, d = 9), 7.5) self.assertEqual(stub_py3.testfunc_varargs_ca4(), 0) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py3.testfunc_varargs_ca4(2, 3)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca4(cx = 7.1, d = '9')) self.assertEqual(stub_py3.testfunc_varargs_ca5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca5( 3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca5( 3, 'qvw', (3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py3.testfunc_varargs_ca5()) # Python 3 specific: kw-only args: self.assertEqual(stub_py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(stub_py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py3.testfunc_varargs_ca6()) self.assertRaises(TypeError, lambda: stub_py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) self.assertEqual(stub_py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(stub_py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6b(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py3.testfunc_varargs_ca6b()) self.assertRaises(TypeError, lambda: stub_py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6b(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: stub_py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) tcv = stub_py3.testclass_vararg_ca() self.assertEqual( tcv.testmeth_varargs_ca1(('k', 7), ('bxx', 19), ('bxy', 27)), 127) self.assertEqual(tcv.testmeth_varargs_ca1(), -18) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca1(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs_ca2(2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 19]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(stub_py3.testclass_vararg_ca.testmeth_varargs_static_ca1( 10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual( stub_py3.testclass_vararg_ca.testmeth_varargs_static_ca1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg_ca.testmeth_varargs_static_ca1( (10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg_ca.testmeth_varargs_static_ca1( '10, 4', 1.0, -4.2)) self.assertEqual(stub_py3.testclass_vararg_ca.testmeth_varargs_static_ca2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg_ca.testmeth_varargs_static_ca2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual(stub_py3.testclass_vararg_ca.testmeth_varargs_class_ca1(), -18) self.assertEqual(stub_py3.testclass_vararg_ca.testmeth_varargs_class_ca1( ('abc', -12), ('txxt', 2)), -46) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg_ca.testmeth_varargs_class_ca1( ('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg_ca.testmeth_varargs_class_ca1( ('abc', -12), 'txxt')) self.assertEqual(stub_py3.testclass_vararg_ca.testmeth_varargs_class_ca2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 19]) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: stub_py3.testclass_vararg_ca.testmeth_varargs_class_ca2()) self.assertRaises(InputTypeError, lambda: stub_py3.testclass_vararg_ca.testmeth_varargs_class_ca2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop_ca1 = 'test_prop1' self.assertEqual(tcv.prop_ca1, 'test_prop1') def _set_prop1(): tcv.prop_ca1 = 8 self.assertRaises(InputTypeError, _set_prop1) # No point in checking for ReturnTypeError here; check_argument_types wouldn't catch it. @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_defaults_inferred_types_plain_3_5_stub(self): tmp = pytypes.infer_default_value_types pytypes.infer_default_value_types = True from testhelpers import stub_testhelper as stub_py3 self.assertEqual(get_types(stub_py3.func_defaults_typecheck), (Tuple[str, Any, int, float], str)) self.assertEqual(pytypes.get_type_hints(stub_py3.func_defaults_typecheck), {'a': str, 'c': int, 'return': str, 'd': float}) self.assertEqual(stub_py3.func_defaults_typecheck('qvw', 'abc', 2, 1.5), 'qvwabcabc') self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_typecheck('qvw', 'abc', 3.5)) self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_typecheck('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_typecheck(7, 'qvw')) self.assertEqual(stub_py3.func_defaults_checkargs('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_checkargs('qvw', 'abc', 3.5)) self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_checkargs('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_checkargs(7, 'qvw')) self.assertEqual(get_types(stub_py3.func_defaults_annotations), (Tuple[str, Any, int], str)) self.assertEqual(pytypes.get_type_hints(stub_py3.func_defaults_annotations), {'a': str, 'c': int, 'return': str}) self.assertEqual(stub_py3.func_defaults_annotations.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = False self.assertEqual(get_types(stub_py3.func_defaults_typecheck), (Tuple[str, Any, Any, Any], str)) self.assertEqual(pytypes.get_type_hints(stub_py3.func_defaults_typecheck), {'a': str, 'return': str}) self.assertEqual(stub_py3.func_defaults_typecheck('qvw', 'abc', 3.5), 'invalid') self.assertEqual(stub_py3.func_defaults_typecheck('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_typecheck(7, 'qvw')) self.assertEqual(stub_py3.func_defaults_checkargs('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertEqual(stub_py3.func_defaults_checkargs('qvw', 'abc', 3.5), 'invalid') self.assertEqual(stub_py3.func_defaults_checkargs('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: stub_py3.func_defaults_checkargs(7, 'qvw')) self.assertEqual(get_types(stub_py3.func_defaults_annotations), (Tuple[str, Any, Any], str)) self.assertEqual(pytypes.get_type_hints( stub_py3.func_defaults_annotations), {'a': str, 'return': str}) self.assertEqual(stub_py3.func_defaults_annotations.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = tmp @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_annotations_from_stubfile_plain_3_5_stub(self): from testhelpers import stub_testhelper as stub_py3 self.assertEqual(stub_py3.func_defaults_annotations.__annotations__, {'a': str, 'return': str}) self.assertEqual(stub_py3.testfunc_annotations_from_stubfile_by_decorator. __annotations__, {'a': str, 'b': int, 'return': int}) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_typecheck_parent_type_plain_3_5_stub(self): from testhelpers import stub_testhelper as stub_py3 always_check_parent_types_tmp = pytypes.always_check_parent_types pytypes.always_check_parent_types = False self.assertRaises(InputTypeError, lambda: stub_py3.B_override_check_arg().meth1(17.7)) self.assertEqual(stub_py3.B_no_override_check_arg().meth1(17.7), 4) self.assertRaises(InputTypeError, lambda: stub_py3.B_override_typechecked().meth1(17.7)) self.assertEqual(stub_py3.B_no_override_typechecked().meth1(17.7), 4) self.assertEqual(stub_py3.B_override_with_type_check_arg().meth1(17.7), 4) self.assertEqual(stub_py3.B_override_with_type_typechecked().meth1(17.7), 4) pytypes.always_check_parent_types = True self.assertRaises(InputTypeError, lambda: stub_py3.B_override_check_arg().meth1(17.7)) self.assertRaises(InputTypeError, lambda: stub_py3.B_no_override_check_arg().meth1(17.7)) self.assertRaises(InputTypeError, lambda: stub_py3.B_override_typechecked().meth1(17.7)) self.assertRaises(InputTypeError, lambda: stub_py3.B_no_override_typechecked().meth1(17.7)) self.assertEqual(stub_py3.B_override_with_type_check_arg().meth1(17.7), 4) self.assertEqual(stub_py3.B_override_with_type_typechecked().meth1(17.7), 4) pytypes.always_check_parent_types = always_check_parent_types_tmp @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') def test_override_diamond_plain_3_5_stub(self): from testhelpers import stub_testhelper as stub_py3 self.assertEqual(stub_py3.D_diamond_override().meth1((12.4, 17.7)), 12) self.assertRaises(OverrideError, lambda: stub_py3.D_diamond_override_err1().meth1((12, 17))) self.assertRaises(OverrideError, lambda: stub_py3.D_diamond_override_err2().meth1((12, 17))) self.assertRaises(OverrideError, lambda: stub_py3.D_diamond_override_err3().meth1((12, 17))) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') class TestTypecheck_Python3_5(unittest.TestCase): @classmethod def setUpClass(cls): global py3 from testhelpers import typechecker_testhelper_py3 as py3 def test_function_py3(self): self.assertEqual(py3.testfunc(3, 2.5, 'abcd'), (9, 7.5)) self.assertEqual(py3.testfunc(7, 12.5, c='cdef'), (49, 87.5)) self.assertRaises(InputTypeError, lambda: py3.testfunc('string', 2.5, 'abcd')) tc = py3.testClass('efgh') self.assertEqual(py3.testfunc2(12, 3.5, tc), (144, 42.0)) self.assertRaises(InputTypeError, lambda: py3.testfunc2(12, 2.5, 'abcd')) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_err(12, 2.5, 'abcd')) self.assertIsNone(py3.testfunc_None_ret(2, 3.0)) self.assertEqual(py3.testfunc_None_arg(4, None), 16) self.assertRaises(InputTypeError, lambda: py3.testfunc_None_arg(4, 'vvv')) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_None_ret_err(2, 3.0)) def test_classmethod_py3(self): tc = py3.testClass('efgh') self.assertEqual(tc.testmeth_class(23, 1.1), "23-1.1-<class 'testhelpers.typechecker_testhelper_py3.testClass'>") self.assertRaises(InputTypeError, lambda: tc.testmeth_class(23, '1.1')) self.assertEqual(tc.testmeth_class2(23, 1.1), "23-1.1-<class 'testhelpers.typechecker_testhelper_py3.testClass'>") self.assertRaises(InputTypeError, lambda: tc.testmeth_class2(23, '1.1')) self.assertRaises(ReturnTypeError, lambda: tc.testmeth_class2_err(23, 1.1)) def test_method_py3(self): tc2 = py3.testClass2('ijkl') self.assertEqual(tc2.testmeth(1, 2.5), '1-2.5-ijkl') self.assertRaises(InputTypeError, lambda: tc2.testmeth(1, 2.5, 7)) self.assertRaises(ReturnTypeError, lambda: tc2.testmeth_err(1, 2.5)) def test_method_forward_py3(self): tc = py3.testClass('ijkl2') tc2 = py3.testClass2('ijkl3') self.assertEqual(tc.testmeth_forward(5, tc2), 11) self.assertEqual(typing.get_type_hints(tc.testmeth_forward), get_type_hints(tc.testmeth_forward)) self.assertRaises(InputTypeError, lambda: tc.testmeth_forward(5, 7)) self.assertRaises(InputTypeError, lambda: tc.testmeth_forward(5, tc)) def test_staticmethod_py3(self): tc = py3.testClass('efgh') self.assertEqual(tc.testmeth_static(12, 0.7), '12-0.7-static') self.assertRaises(InputTypeError, lambda: tc.testmeth_static(12, [3])) self.assertEqual(tc.testmeth_static2(11, 1.9), '11-1.9-static') self.assertRaises(InputTypeError, lambda: tc.testmeth_static2(11, ('a', 'b'), 1.9)) def test_parent_typecheck_no_override_py3(self): tmp = pytypes.always_check_parent_types pytypes.always_check_parent_types = False cl3 = py3.testClass3_no_override() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertTrue(cl3.testmeth(3, '5').startswith('3-5-')) cl3 = py3.testClass3_no_override_err() self.assertEqual(cl3.testmeth(3, 5), 7.5) self.assertEqual(cl3.testmeth(3, '5'), 7.5) cl3 = py3.testClass3_no_override_check_argtypes() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertTrue(cl3.testmeth(3, '5').startswith('3-5-')) pytypes.always_check_parent_types = True cl3 = py3.testClass3_no_override() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertRaises(InputTypeError, lambda: cl3.testmeth(3, '5')) cl3 = py3.testClass3_no_override_err() self.assertRaises(ReturnTypeError, lambda: cl3.testmeth(3, 5)) self.assertRaises(InputTypeError, lambda: cl3.testmeth(3, '5')) cl3 = py3.testClass3_no_override_check_argtypes() self.assertTrue(cl3.testmeth(3, 5).startswith('3-5-')) self.assertRaises(InputTypeError, lambda: cl3.testmeth(3, '5')) pytypes.always_check_parent_types = tmp def test_parent_typecheck_other_signature_py3(self): vcc = py3.varagrs_call_class() self.assertRaises(InputTypeError, lambda: vcc.testmeth1(1, '2', 'a')) self.assertEqual(vcc.testmeth1(1, 2, 'a'), 3) self.assertRaises(InputTypeError, lambda: vcc.testmeth2('3', 4, q = 'b')) self.assertEqual(vcc.testmeth2(3, 4, q = 'b'), 7) self.assertRaises(InputTypeError, lambda: vcc.testmeth3(5.7, 6, 'c', k = 'd')) self.assertEqual(vcc.testmeth3(5, 6, 'c', k = 'd'), 11) self.assertRaises(InputTypeError, lambda: vcc.testmeth4(7, 8, 9, 'e', 'f')) def test_abstract_override_py3(self): tc3 = py3.testClass3() self.assertEqual(tc3.testmeth(1, 2.5), "1-2.5-<class 'testhelpers.typechecker_testhelper_py3.testClass3'>") def test_get_types_py3(self): tc = py3.testClass('mnop') tc2 = py3.testClass2('qrst') tc3 = py3.testClass3() self.assertEqual(get_types(py3.testfunc), (Tuple[int, Real, str], Tuple[int, Real])) self.assertEqual(get_types(py3.testfunc2), (Tuple[int, Real, py3.testClass], Tuple[int, float])) self.assertEqual(get_types(tc2.testmeth), (Tuple[int, Real], str)) self.assertEqual(get_types(py3.testClass2.testmeth), (Tuple[int, Real], str)) self.assertEqual(get_types(tc3.testmeth), (Any, Any)) self.assertEqual(get_types(py3.testClass3Base.testmeth), (Tuple[int, Real], Union[str, int])) self.assertEqual(get_types(tc.testmeth2), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_class), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_class2), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_static), (Tuple[int, Real], str)) self.assertEqual(get_types(tc.testmeth_static2), (Tuple[int, Real], str)) self.assertEqual(get_types(py3.testfunc), (Tuple[int, Real, str], Tuple[int, Real])) def test_sequence_py3(self): self.assertEqual(py3.testfunc_Seq_arg(((3, 'ab'), (8, 'qvw'))), 2) self.assertEqual(py3.testfunc_Seq_arg([(3, 'ab'), (8, 'qvw'), (4, 'cd')]), 3) self.assertRaises(InputTypeError, lambda: py3.testfunc_Seq_arg({(3, 'ab'), (8, 'qvw')})) self.assertRaises(InputTypeError, lambda: py3.testfunc_Seq_arg(((3, 'ab'), (8, 'qvw', 2)))) self.assertRaises(InputTypeError, lambda: py3.testfunc_Seq_arg([(3, 1), (8, 'qvw'), (4, 'cd')])) self.assertEqual(py3.testfunc_Seq_ret_List(7, 'mno'), [7, 'mno']) self.assertEqual(py3.testfunc_Seq_ret_Tuple(3, 'mno'), (3, 'mno')) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_Seq_ret_err(29, 'def')) def test_iterable_py3(self): self.assertEqual(py3.testfunc_Iter_arg((9, 8, 7, 6), 'vwxy'), [9, 8, 7, 6]) self.assertEqual(py3.testfunc_Iter_str_arg('defg'), [100, 101, 102, 103]) self.assertRaises(InputTypeError, lambda: py3.testfunc_Iter_arg((9, '8', 7, 6), 'vwxy')) self.assertRaises(InputTypeError, lambda: py3.testfunc_Iter_arg(7, 'vwxy')) self.assertRaises(InputTypeError, lambda: py3.testfunc_Iter_arg([9, 8, 7, '6'], 'vwxy')) self.assertEqual(py3.testfunc_Iter_arg([9, 8, 7, 6], 'vwxy'), [9, 8, 7, 6]) res = py3.testfunc_Iter_arg({9, 8, 7, 6}, 'vwxy'); res.sort() self.assertEqual(res, [6, 7, 8, 9]) res = py3.testfunc_Iter_arg({19: 'a', 18: 'b', 17: 'c', 16: 'd'}, 'vwxy') res.sort() self.assertEqual(res, [16, 17, 18, 19]) self.assertEqual(py3.testfunc_Iter_ret(), [1, 2, 3, 4, 5]) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_Iter_ret_err()) ti = py3.test_iterable((2, 4, 6, 'a')) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_Iter_arg(ti, 'vwxy')) tia = py3.test_iterable_annotated((3, 6, 9)) self.assertEqual(py3.testfunc_Iter_arg(tia, 'vwxy'), [3, 6, 9]) def test_iterable_subclass_py3(self): # See https://github.com/Stewori/pytypes/issues/57 class IntList(py3.test_iterable_subclass_TypList[int]): pass il = IntList() il.extend(iter([1, 2, 3])) self.assertRaises(ReturnTypeError, lambda: il.extend(iter(['a', 'b', 'c']))) self.assertRaises(InputTypeError, lambda: il.extend(['d', 'e', 'f'])) il.extend([4, 5, 6]) self.assertEqual(il, [1, 2, 3, 4, 5, 6]) def test_dict_py3(self): self.assertIsNone(py3.testfunc_Dict_arg(5, {'5': 4, 'c': '8'})) self.assertIsNone(py3.testfunc_Dict_arg(5, {'5': 'A', 'c': '8'})) self.assertIsNone(py3.testfunc_Mapping_arg(7, {'7': 4, 'c': '8'})) self.assertIsNone(py3.testfunc_Mapping_arg(5, {'5': 'A', 'c': '8'})) self.assertRaises(InputTypeError, lambda: py3.testfunc_Dict_arg(5, {4: 4, 3: '8'})) self.assertRaises(InputTypeError, lambda: py3.testfunc_Dict_arg(5, {'5': (4,), 'c': '8'})) self.assertEqual(py3.testfunc_Dict_ret('defg'), {'defgdefg': 'defg', 'defg': 4}) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_Dict_ret_err(6)) def test_callable_py3(self): self.assertTrue(is_of_type(py3.pclb, typing.Callable[[str, int], str])) self.assertFalse(is_of_type(py3.pclb, typing.Callable[[str, str], str])) self.assertFalse(is_of_type(py3.pclb, typing.Callable[[str, int], float])) self.assertEqual(py3.testfunc_Callable_arg(py3.pclb, 'pqrs'), '_pqrs****') self.assertRaises(InputTypeError, lambda: py3.testfunc_Callable_arg(py3.pclb2, 'pqrs')) self.assertRaises(InputTypeError, lambda: py3.testfunc_Callable_arg(py3.pclb3, 'pqrs')) self.assertRaises(InputTypeError, lambda: py3.testfunc_Callable_call_err(py3.pclb, 'tuvw')) self.assertEqual(py3.testfunc_Callable_arg( lambda s, i: '__'+s+'-'*i, 'pqrs'), '__pqrs----') self.assertRaises(InputTypeError, lambda: py3.testfunc_Callable_call_err(lambda s, i: '__'+s+'-'*i, 'tuvw')) fnc = py3.testfunc_Callable_ret(5, 'qvwx') self.assertEqual(fnc.__class__.__name__, 'function') self.assertEqual(fnc.__name__, 'm') self.assertRaises(ReturnTypeError, lambda: py3.testfunc_Callable_ret_err()) def test_generator_py3(self): test_gen = py3.testfunc_Generator() self.assertEqual(pytypes.deep_type(test_gen), Generator[int, Union[str, None], float]) self.assertIsNone(test_gen.send(None)) self.assertEqual(test_gen.send('abc'), 3) self.assertEqual(test_gen.send('ddffd'), 5) self.assertRaises(InputTypeError, lambda: test_gen.send(7)) test_gen2 = py3.testfunc_Generator() self.assertIsNone(test_gen2.__next__()) self.assertEqual(test_gen2.send('defg'), 4) self.assertRaises(ReturnTypeError, lambda: test_gen2.send('fail')) self.assertRaises(TypeCheckError, lambda: testfunc_Generator_arg(test_gen)) self.assertRaises(TypeCheckError, lambda: testfunc_Generator_ret()) test_gen3 = py3.testfunc_Generator() self.assertIsNone(test_gen3.send(None)) self.assertEqual(test_gen3.send('abcxyz'), 6) self.assertRaises(StopIteration, lambda: test_gen3.send('ret')) test_gen4 = py3.testfunc_Generator() self.assertIsNone(test_gen4.send(None)) self.assertEqual(test_gen4.send('abcdefgh'), 8) self.assertRaises(ReturnTypeError, lambda: test_gen4.send('ret_fail')) def test_custom_generic_py3(self): self.assertEqual(py3.testfunc_Generic_arg(py3.Custom_Generic[str]('abc')), 'abc') self.assertEqual(py3.testfunc_Generic_ret(5).v(), 5) self.assertRaises(InputTypeError, lambda: py3.testfunc_Generic_arg(py3.Custom_Generic[int](9))) self.assertRaises(InputTypeError, lambda: py3.testfunc_Generic_arg(py3.Custom_Generic(7))) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_Generic_ret_err(8)) def test_various_py3(self): self.assertEqual(get_type_hints(testfunc), {'a': int, 'c': str, 'b': Real, 'return': Tuple[int, Real]}) self.assertEqual(pytypes.deep_type(('abc', [3, 'a', 7], 4.5)), Tuple[str, List[Union[int, str]], float]) def test_property(self): tcp = py3.testClass_property() tcp.testprop = 7 self.assertEqual(tcp.testprop, 7) def tcp_prop1(): tcp.testprop = 7.2 self.assertRaises(InputTypeError, tcp_prop1) tcp._testprop = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp.testprop) tcp.testprop2 = 'def' self.assertEqual(tcp.testprop2, 'def') tcp.testprop2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp.testprop2) tcp.testprop3 = (22, 'ghi') self.assertEqual(tcp.testprop3, (22, 'ghi')) def tcp_prop3(): tcp.testprop3 = 9 self.assertRaises(InputTypeError, tcp_prop3) tcp._testprop3 = 9 self.assertRaises(ReturnTypeError, lambda: tcp.testprop3) tcp_ch = py3.testClass_property_class_check() tcp_ch.testprop = 17 self.assertEqual(tcp_ch.testprop, 17) def tcp_ch_prop(): tcp_ch.testprop = 71.2 self.assertRaises(InputTypeError, tcp_ch_prop) tcp_ch._testprop = 'abc' self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop) tcp_ch.testprop2 = 7.2 self.assertRaises(ReturnTypeError, lambda: tcp_ch.testprop2) self.assertEqual(get_member_types(tcp, 'testprop'), (Tuple[int], type(None))) self.assertEqual(get_member_types(tcp, 'testprop', True), (Tuple[()], int)) def test_varargs(self): self.assertEqual(py3.testfunc_varargs1(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(py3.testfunc_varargs1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs1((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs1(16.4, '2', 3.2)) self.assertEqual(py3.testfunc_varargs2('cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(py3.testfunc_varargs3(14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs3(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs3((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs3(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(py3.testfunc_varargs4(cx = 7, d = 9), 7) self.assertEqual(py3.testfunc_varargs4(cx = 7.5, d = 9), 7.5) self.assertEqual(py3.testfunc_varargs4(), 0) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs4(2, 3)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs4(cx = 7.1, d = '9')) self.assertEqual(py3.testfunc_varargs5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs5(3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs5(3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs5(3, 'qvw', (3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs5()) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_err(3.0, 'qvw', 3.3, 9, v=6, x=-8, qvw=9.9)) self.assertRaises(ReturnTypeError, lambda: py3.testfunc_varargs_err(3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) # Python 3 specific: kw-only args: self.assertEqual(py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(py3.testfunc_varargs6(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda:py3.testfunc_varargs6()) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) self.assertEqual(py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(py3.testfunc_varargs6b(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6b(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6b()) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6b(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) tcv = py3.testclass_vararg() self.assertEqual(tcv.testmeth_varargs1(('k', 7), ('bxx', 19), ('bxy', 27)), 130) self.assertEqual(tcv.testmeth_varargs1(), -15) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs1(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs2(2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 16]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(testclass_vararg.testmeth_varargs_static1(10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual(testclass_vararg.testmeth_varargs_static1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_static1((10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_static1('10, 4', 1.0, -4.2)) self.assertEqual(testclass_vararg.testmeth_varargs_static2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_static2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual(testclass_vararg.testmeth_varargs_class1(), -15) self.assertEqual(testclass_vararg.testmeth_varargs_class1( ('abc', -12), ('txxt', 2)), -43) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class1(('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class1(('abc', -12), 'txxt')) self.assertEqual(testclass_vararg.testmeth_varargs_class2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 16]) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class2()) self.assertRaises(InputTypeError, lambda: testclass_vararg.testmeth_varargs_class2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop1 = 'test_prop1' self.assertEqual(tcv.prop1, 'test_prop1') def _set_prop1(): tcv.prop1 = 8 self.assertRaises(InputTypeError, _set_prop1) tcv._prop1 = 8 self.assertRaises(ReturnTypeError, lambda: tcv.prop1) def test_varargs_check_argument_types(self): self.assertEqual(py3.testfunc_varargs_ca1(16.4, 2, 3.2), (3, 104.96)) self.assertEqual(py3.testfunc_varargs_ca1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca1((16.4, 2, 3.2))) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca1(16.4, '2', 3.2)) self.assertEqual(py3.testfunc_varargs_ca2('cdef', 3, None, 5, 4, 7, 17, -2), (-4760, 'cdefcdefcdef')) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca2('cdef', 3, 'a', 5, 4, 7, 17, -2)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca2('cdef', 3, None, (5, 4, 7, 17, -2))) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca2('cdef', 3, None, 5, 4, 7.1, 17, -2)) self.assertEqual(py3.testfunc_varargs_ca3(14, 3, -4, a=8, ab=7.7, q=-3.2), ('abababab', 7.7)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca3(14, 3.2, -4, a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca3((14, 3, -4), a=8, b=7.7, q=-3.2)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca3(14, 3, -4, a=8, b='7.7', q=-3.2)) self.assertEqual(py3.testfunc_varargs_ca4(cx = 7, d = 9), 7) self.assertEqual(py3.testfunc_varargs_ca4(cx = 7.5, d = 9), 7.5) self.assertEqual(py3.testfunc_varargs_ca4(), 0) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: py3.testfunc_varargs_ca4(2, 3)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca4(cx = 7.1, d = '9')) self.assertEqual(py3.testfunc_varargs_ca5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99), [4, 1, 99]) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca5( 3, 'qvw', 3.3, 3.1, 2.778, 9, v=6.2, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca5(3, 3, 3.3, 3.1, 2.778, 9, v=6, x=-8, qvw=99)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca5(3, 'qvw', ( 3.3, 3.1, 2.778, 9), v=6, x=-8, qvw=99)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: py3.testfunc_varargs_ca5()) # Python 3 specific: kw-only args: self.assertEqual(py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: py3.testfunc_varargs_ca6()) self.assertRaises(TypeError, lambda: py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) self.assertEqual(py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 3, 19, 27, 3]) self.assertEqual(py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3, 4, 6.7, a=2, b=3, b1=27, b2='abc', ac=19), [4, 1, 19, 27, 3]) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6b(2.1, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=27, b2='abc', ac=19)) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: py3.testfunc_varargs_ca6b()) self.assertRaises(TypeError, lambda: py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6b(2, 'ac', 1.2, (3.4, 4.5, 6.7), a=2, b=3, b1=1.5, b2='abc', ac=19)) self.assertRaises(InputTypeError, lambda: py3.testfunc_varargs_ca6b(2, 'ac', 1.2, 3.4, 4.5, 6.7, a=2, b=3.5, b1=1.5, b2='abc', ac=19)) tcv = py3.testclass_vararg_ca() self.assertEqual(tcv.testmeth_varargs_ca1( ('k', 7), ('bxx', 19), ('bxy', 27)), 127) self.assertEqual(tcv.testmeth_varargs_ca1(), -18) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca1(('k', 7), 19, ('bxy', 27))) self.assertEqual(tcv.testmeth_varargs_ca2(2, 'xt', 1.2, 1.4, -9.2, cx=8, xt=7), [3, 4, 7, 19]) self.assertRaises(InputTypeError, lambda: tcv.testmeth_varargs_ca2(2, 'xt', 1.2, 1.4, -9.2, cx=8.2, xt=7)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_static_ca1( 10, 4, 1.0, -4.2), (4, -168.0)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_static_ca1(), (0, 1.0)) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_static_ca1((10, 4, 1.0, -4.2))) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_static_ca1('10, 4', 1.0, -4.2)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_static_ca2( 0, 'cx', 1.2, -9.2, cx=2, xt=7), [2, 3, 2]) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_static_ca2( 0, 'cx', 1.2, -9.2, cx=2.1, xt=7)) self.assertEqual(testclass_vararg_ca.testmeth_varargs_class_ca1(), -18) self.assertEqual(testclass_vararg_ca.testmeth_varargs_class_ca1( ('abc', -12), ('txxt', 2)), -46) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca1( ('abc', -12.1), ('txxt', 2))) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca1(('abc', -12), 'txxt')) self.assertEqual(testclass_vararg_ca.testmeth_varargs_class_ca2( 1, 'xt', .2, -92, cx=2, xt=7), [2, 3, 7, 19]) # In this case it's an ordinary type-error, because Python catches it before # pytypes gets hands on it to make a more sophisticated InputTypeError: self.assertRaises(TypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca2()) self.assertRaises(InputTypeError, lambda: testclass_vararg_ca.testmeth_varargs_class_ca2( 0, 'cx', 1.2, -9.2, cx=2, xt=.7)) tcv.prop_ca1 = 'test_prop1' self.assertEqual(tcv.prop_ca1, 'test_prop1') def _set_prop1(): tcv.prop_ca1 = 8 self.assertRaises(InputTypeError, _set_prop1) # No point in checking for ReturnTypeError here; # check_argument_types wouldn't catch it. def test_defaults_inferred_types(self): tmp = pytypes.infer_default_value_types pytypes.infer_default_value_types = True self.assertEqual(get_types(py3.func_defaults_typecheck), (Tuple[str, Any, int, float], str)) self.assertEqual(pytypes.get_type_hints(py3.func_defaults_typecheck), {'a': str, 'c': int, 'return': str, 'd': float}) self.assertEqual(py3.func_defaults_typecheck('qvw', 'abc', 2, 1.5), 'qvwabcabc') self.assertRaises(InputTypeError, lambda: py3.func_defaults_typecheck('qvw', 'abc', 3.5)) self.assertEqual(py3.func_defaults_typecheck2('test', 12.2, 323), 'test3940.6False') self.assertRaises(InputTypeError, lambda: py3.func_defaults_typecheck2('test', 12.2, 323, 3.5)) self.assertRaises(InputTypeError, lambda: py3.func_defaults_typecheck('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: py3.func_defaults_typecheck(7, 'qvw')) self.assertEqual(py3.func_defaults_checkargs('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertRaises(InputTypeError, lambda: py3.func_defaults_checkargs('qvw', 'abc', 3.5)) self.assertRaises(InputTypeError, lambda: py3.func_defaults_checkargs('qvw', 'abc', 3.5, 4.1)) self.assertRaises(InputTypeError, lambda: py3.func_defaults_checkargs(7, 'qvw')) self.assertEqual(get_types(py3.func_defaults_annotations), (Tuple[str, Any, int], str)) self.assertEqual(pytypes.get_type_hints(py3.func_defaults_annotations), {'a': str, 'c': int, 'return': str}) self.assertEqual(py3.func_defaults_annotations.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = False self.assertEqual(get_types(py3.func_defaults_typecheck), (Tuple[str, Any, Any, Any], str)) self.assertEqual(pytypes.get_type_hints(py3.func_defaults_typecheck), {'a': str, 'return': str}) self.assertEqual(py3.func_defaults_typecheck('qvw', 'abc', 3.5), 'invalid') self.assertEqual(py3.func_defaults_typecheck('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: py3.func_defaults_typecheck(7, 'qvw')) self.assertEqual(py3.func_defaults_checkargs('qvw', 'abc', 3, 1.5), 'qvwabcabcabc') self.assertEqual(py3.func_defaults_checkargs('qvw', 'abc', 3.5), 'invalid') self.assertEqual(py3.func_defaults_checkargs('qvw', 'abc', 3.5, 4.1), 'invalid') self.assertRaises(InputTypeError, lambda: py3.func_defaults_checkargs(7, 'qvw')) self.assertEqual(get_types(py3.func_defaults_annotations), (Tuple[str, Any, Any], str)) self.assertEqual(pytypes.get_type_hints(py3.func_defaults_annotations), {'a': str, 'return': str}) self.assertEqual(py3.func_defaults_annotations.__annotations__, {'a': str, 'return': str}) pytypes.infer_default_value_types = tmp def test_defaults_with_missing_annotations_plain(self): # See: https://github.com/Stewori/pytypes/issues/89 helper = py3.method_defaults_typecheck() self.assertEqual(helper.plain_method(1), 1) self.assertEqual(helper.plain_method(1, 2), 3) self.assertRaises(InputTypeError, lambda: helper.plain_method(1, 'b')) def test_defaults_with_missing_annotations_class(self): # See: https://github.com/Stewori/pytypes/issues/89 helper = py3.method_defaults_typecheck() self.assertEqual(helper.class_method(1), 1) self.assertEqual(helper.class_method(1, 2), 3) self.assertRaises(InputTypeError, lambda: helper.class_method(1, 'b')) def test_defaults_with_missing_annotations_property(self): # See: https://github.com/Stewori/pytypes/issues/89 helper = py3.method_defaults_typecheck() self.assertEqual(helper.property_method, 0) helper.property_method = 1 self.assertEqual(helper.property_method, 2) def test_defaults_with_missing_annotations_static(self): # See: https://github.com/Stewori/pytypes/issues/89 # Just being thorough (staticmethod already worked before fixing #89) helper = py3.method_defaults_typecheck() self.assertEqual(helper.static_method(1), 1) self.assertEqual(helper.static_method(1, 2), 3) self.assertRaises(InputTypeError, lambda: helper.static_method(1, 'b')) def test_typecheck_parent_type(self): always_check_parent_types_tmp = pytypes.always_check_parent_types pytypes.always_check_parent_types = False self.assertRaises(InputTypeError, lambda: py3.B_override_check_arg().meth1(17.7)) self.assertEqual(py3.B_no_override_check_arg().meth1(17.7), 4) self.assertRaises(InputTypeError, lambda: py3.B_override_typechecked().meth1(17.7)) self.assertEqual(py3.B_no_override_typechecked().meth1(17.7), 4) self.assertEqual(py3.B_override_with_type_check_arg().meth1(17.7), 4) self.assertEqual(py3.B_override_with_type_typechecked().meth1(17.7), 4) pytypes.always_check_parent_types = True self.assertRaises(InputTypeError, lambda: py3.B_override_check_arg().meth1(17.7)) self.assertRaises(InputTypeError, lambda: py3.B_no_override_check_arg().meth1(17.7)) self.assertRaises(InputTypeError, lambda: py3.B_override_typechecked().meth1(17.7)) self.assertRaises(InputTypeError, lambda: py3.B_no_override_typechecked().meth1(17.7)) self.assertEqual(py3.B_override_with_type_check_arg().meth1(17.7), 4) self.assertEqual(py3.B_override_with_type_typechecked().meth1(17.7), 4) pytypes.always_check_parent_types = always_check_parent_types_tmp def test_typevar_func(self): self.assertEqual(py3.tpvar_test1(2, 3), 'hello') self.assertRaises(InputTypeError, lambda: py3.tpvar_test1(2, '3')) self.assertRaises(InputTypeError, lambda: py3.tpvar_test1(2, 3.5)) self.assertRaises(InputTypeError, lambda: py3.tpvar_test1(2.5, 3)) self.assertEqual(py3.tpvar_test2(2, 3), 'hello') self.assertRaises(InputTypeError, lambda: py3.tpvar_test2(2, '3')) self.assertRaises(InputTypeError, lambda: py3.tpvar_test2(2, 3.5)) self.assertEqual(py3.tpvar_test2(2.5, 3), 'hello') self.assertEqual(py3.tpvar_test3(2, 3), 'hello') self.assertRaises(InputTypeError, lambda: py3.tpvar_test3(2, '3')) self.assertEqual(py3.tpvar_test3(2, 3.5), 'hello') self.assertRaises(InputTypeError, lambda: py3.tpvar_test3(2.5, 3)) self.assertEqual(py3.tpvar_test4([1.2, 2.6, 3.2], 1), 2.6) self.assertRaises(ReturnTypeError, lambda: py3.tpvar_test5([1.2, 2.6, 3.2], 2)) self.assertEqual(py3.tpvar_test5(['a', 'b', 'c'], 1), 'b') def test_typevar_class(self): self.assertIsNotNone(py3.IntA(5)) self.assertRaises(InputTypeError, lambda: py3.IntA(4.5)) self.assertRaises(InputTypeError, lambda: py3.IntA('acb')) self.assertIsNotNone(py3.A[int](5)) self.assertRaises(InputTypeError, lambda: py3.A[int](4.5)) self.assertRaises(InputTypeError, lambda: py3.A[int]('acb')) self.assertIsNotNone(py3.A[float](5)) self.assertIsNotNone(py3.A[float](4.5)) self.assertRaises(InputTypeError, lambda: py3.A[float]('acb')) self.assertRaises(InputTypeError, lambda: py3.A[str](5)) self.assertRaises(InputTypeError, lambda: py3.A[str](4.5)) self.assertIsNotNone(A[str]('acb')) self.assertIsNone(py3.test_typevar_A(py3.IntA(5))) self.assertRaises(InputTypeError, lambda: py3.test_typevar_A(py3.IntA(5.7))) self.assertIsNone(py3.test_typevar_A(py3.IntB(5))) self.assertRaises(InputTypeError, lambda: py3.test_typevar_A(py3.IntB(5.7))) @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') class TestOverride_Python3_5(unittest.TestCase): @classmethod def setUpClass(cls): global py3 from testhelpers import typechecker_testhelper_py3 as py3 def test_override_py3(self): tc2 = py3.testClass2('uvwx') self.assertRaises(OverrideError, lambda: tc2.testmeth2(1, 2.5)) self.assertRaises(OverrideError, lambda: tc2.testmeth2b(3, 1.1)) self.assertRaises(OverrideError, lambda: tc2.testmeth6(1, 2.5)) def test_override_typecheck(self): tc2 = py3.testClass2('uvwx') self.assertEqual(tc2.testmeth(1, 2.5), '1-2.5-uvwx') self.assertEqual(tc2.testmeth3(1, 2.5), '1-2.5-uvwx') self.assertRaises(ReturnTypeError, lambda: tc2.testmeth3_err(1, 2.5)) self.assertEqual(tc2.testmeth4(1, 2.5), '1-2.5-uvwx') self.assertEqual(tc2.testmeth5(1, 2.5), '1-2.5-uvwx') self.assertRaises(InputTypeError, lambda: tc2.testmeth3('1', 2.5)) def test_override_vararg(self): cl = py3.override_varargs_class() self.assertEqual(cl.method_vararg1(1, 2.3, 4, 5), 2) self.assertEqual(cl.method_vararg2(6, 7.8, 'a', 'b', 'c'), 12) self.assertEqual(cl.method_vararg3(9, 10.1, 11.2, 12.3), 12) self.assertRaises(OverrideError, lambda: cl.method_vararg1_err(3, 4.5, 6, 7)) self.assertRaises(OverrideError, lambda: cl.method_vararg2_err(8, 9.01, 'd', 'e', 'f')) self.assertRaises(OverrideError, lambda: cl.method_vararg3_err(4, 5, 6)) self.assertEqual(cl.method_varkw1(7, 8, m=1.1, n=2.2, x=3.3), 15) self.assertEqual(cl.method_varkw2(9, 10, 'g', 'h', x=2.3, y=3.4, z=7.7), 19) self.assertRaises(OverrideError, lambda: cl.method_varkw1_err(11, 12, q=22, v=33, w=44)) self.assertRaises(OverrideError, lambda: cl.method_varkw2_err(4, 5, 'i', 'j', g=3, h=7)) self.assertRaises(OverrideError, lambda: cl.method_varkw3_err(14, 15, 'k', 'l')) self.assertEqual(cl.method_defaults1(21, 22), 43) self.assertEqual(cl.method_defaults2(23, 24, 31, 32, 33, 34), 47) self.assertRaises(OverrideError, lambda: cl.method_defaults1_err(101, 102)) self.assertRaises(OverrideError, lambda: cl.method_defaults2_err(201, 202, 55.1, 55.2, 55.3)) # Python 3 only self.assertEqual(cl.method_kwonly1( 1, 2, 3.4, 4.5, q=7.2, xx='ab', xy='cd'), 3) self.assertEqual(cl.method_kwonly2(5, 6, 2.4, 5.7, 8.8, q=17), 28) self.assertEqual(cl.method_kwonly3(9, 10, 11.2, 22.3, v=9.7, q=27), 46) self.assertEqual(cl.method_kwonly4(8.1, 3, 7.4, 33.4, 33.5, 33.6), 4) self.assertEqual(cl.method_kwonly5( 5.1, 5.2, 41, 42, 43, q=17.5, v=19, x=99.1, w=27.9), 4) self.assertEqual(cl.method_kwonly6( 6.3, 7, 16.1, 16.2, 16.3, q=29, l=12, k=23.3, v=47.9), 39) self.assertEqual(cl.method_kwonly7( 61, 62, 63.3, 64, 65.5, 66, q=76, e=11, f=12), 123) self.assertRaises(OverrideError, lambda: cl.method_kwonly1_err(1, 2, 3.4, 4.5, 6.7, q=17)) self.assertRaises(OverrideError, lambda: cl.method_kwonly2_err(8, 9, 7, 6, 5.4, 3.2)) self.assertRaises(OverrideError, lambda: cl.method_kwonly3_err(10, 11, 12, 13.4, 15.6, q=22, b=23)) self.assertRaises(OverrideError, lambda: cl.method_kwonly4_err(0.5, 2, 0.8, 0.9, 0.1, q=78, v='ijk')) self.assertRaises(OverrideError, lambda: cl.method_kwonly5_err(12.1, 12.2, 13, 14, q=32, v=33)) self.assertRaises(OverrideError, lambda: cl.method_kwonly6_err(3.1, 4, 5.1, 5.2, 5.3, q=7, y=67, z=68)) self.assertRaises(OverrideError, lambda: cl.method_kwonly7_err(79, 90.7, 1.1, q=2, v=3, h=7, k=11.7)) self.assertRaises(OverrideError, lambda: cl.method_kwonly8_err(100, 100.5, 200, 201, 203.3, nx=7, fl=9)) # Python 3 using Python 2 type hints self.assertEqual(cl.method_kwonly1_py2( 1, 2, 3.4, 4.5, q=7.2, xx='ab', xy='cd'), 3) self.assertEqual(cl.method_kwonly2_py2(5, 6, 2.4, 5.7, 8.8, q=17), 28) self.assertEqual(cl.method_kwonly3_py2(9, 10, 11.2, 22.3, v=9.7, q=27), 46) self.assertEqual(cl.method_kwonly4_py2(8.1, 3, 7.4, 33.4, 33.5, 33.6), 4) self.assertEqual(cl.method_kwonly5_py2( 5.1, 5.2, 41, 42, 43, q=17.5, v=19, x=99.1, w=27.9), 4) self.assertEqual(cl.method_kwonly6_py2( 6.3, 7, 16.1, 16.2, 16.3, q=29, l=12, k=23.3, v=47.9), 39) self.assertEqual(cl.method_kwonly7_py2( 61, 62, 63.3, 64, 65.5, 66, q=76, e=11, f=12), 123) self.assertRaises(OverrideError, lambda: cl.method_kwonly1_err_py2(1, 2, 3.4, 4.5, 6.7, q=17)) self.assertRaises(OverrideError, lambda: cl.method_kwonly2_err_py2(8, 9, 7, 6, 5.4, 3.2)) self.assertRaises(OverrideError, lambda: cl.method_kwonly3_err_py2(10, 11, 12, 13.4, 15.6, q=22, b=23)) self.assertRaises(OverrideError, lambda: cl.method_kwonly4_err_py2(0.5, 2, 0.8, 0.9, 0.1, q=78, v='ijk')) self.assertRaises(OverrideError, lambda: cl.method_kwonly5_err_py2(12.1, 12.2, 13, 14, q=32, v=33)) self.assertRaises(OverrideError, lambda: cl.method_kwonly6_err_py2(3.1, 4, 5.1, 5.2, 5.3, q=7, y=67, z=68)) self.assertRaises(OverrideError, lambda: cl.method_kwonly7_err_py2(79, 90.7, 1.1, q=2, v=3, h=7, k=11.7)) self.assertRaises(OverrideError, lambda: cl.method_kwonly8_err_py2(100, 100.5, 200, 201, 203.3, nx=7, fl=9)) def test_override_diamond(self): self.assertEqual(py3.D_diamond_override().meth1((12.4, 17.7)), 12) self.assertRaises(OverrideError, lambda: py3.D_diamond_override_err1().meth1((12, 17))) self.assertRaises(OverrideError, lambda: py3.D_diamond_override_err2().meth1((12, 17))) self.assertRaises(OverrideError, lambda: py3.D_diamond_override_err3().meth1((12, 17))) def test_auto_override(self): self.assertEqual(py3.B_auto_override().meth_1('abc', (4, 2)), 1) obj = py3.B_auto_override_err() self.assertRaises(OverrideError, lambda: obj.meth_1('abc', (4, 2))) self.assertEqual(obj.meth_2('defg'), 12) def test_override_at_definition_time(self): tmp = pytypes.check_override_at_class_definition_time pytypes.check_override_at_class_definition_time = True py3.testClass2_defTimeCheck() self.assertRaises(OverrideError, lambda: py3.testClass2_defTimeCheck2()) self.assertRaises(OverrideError, lambda: py3.testClass2_defTimeCheck3()) self.assertRaises(OverrideError, lambda: py3.testClass2_defTimeCheck4()) py3.testClass3_defTimeCheck() pytypes.check_override_at_class_definition_time = tmp def test_override_at_definition_time_with_forward_decl(self): tmp = pytypes.check_override_at_class_definition_time pytypes.check_override_at_class_definition_time = True from testhelpers import override_testhelper_py3 # shall not raise error def _test_err_py3(): from testhelpers import override_testhelper_err_py3 def _test_err2_py3(): from testhelpers import override_testhelper_err2_py3 self.assertRaises(OverrideError, _test_err_py3) self.assertRaises(NameError, _test_err2_py3) pytypes.check_override_at_class_definition_time = tmp @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') class Test_check_argument_types_Python3_5(unittest.TestCase): @classmethod def setUpClass(cls): global py3 from testhelpers import typechecker_testhelper_py3 as py3 def test_function(self): self.assertIsNone(py3.testfunc_check_argument_types(2, 3.0, 'qvwx')) self.assertRaises(InputTypeError, lambda: py3.testfunc_check_argument_types(2.7, 3.0, 'qvwx')) def test_methods(self): cl = py3.testClass_check_argument_types() self.assertIsNone(cl.testMeth_check_argument_types(7)) self.assertIsNone(cl.testClassmeth_check_argument_types(8)) self.assertIsNone(cl.testStaticmeth_check_argument_types(9)) self.assertRaises(InputTypeError, lambda: cl.testMeth_check_argument_types('7')) self.assertRaises(InputTypeError, lambda: cl.testClassmeth_check_argument_types(8.5)) self.assertRaises(InputTypeError, lambda: cl.testStaticmeth_check_argument_types((9,))) def test_inner_method(self): self.assertEqual(py3.test_inner_method_testf1(), '(3, 6)') self.assertRaises(InputTypeError, lambda: py3.test_inner_method_testf1_err()) def test_inner_class(self): self.assertEqual(py3.test_inner_class_testf1(), '99') self.assertRaises(InputTypeError, lambda: py3.test_inner_class_testf1_err()) class Test_utils(unittest.TestCase): # See: https://github.com/Stewori/pytypes/issues/36 def test_resolve_fw_decl(self): T = typing.TypeVar('T') class Foo(typing.Generic[T]): pass # No exception. resolve_fw_decl(Foo) # See: https://github.com/Stewori/pytypes/issues/35 def test_frozenset(self): self.assertTrue(is_of_type(frozenset({1, 2, 'a', None, 'b'}), typing.AbstractSet[typing.Union[str, int, None]])) # See: https://github.com/Stewori/pytypes/issues/32 # See: https://github.com/Stewori/pytypes/issues/33 def test_empty_values(self): self.assertTrue(is_of_type([], typing.Sequence)) self.assertTrue(is_of_type([], typing.Sequence[int])) for interface in (typing.Iterable, typing.Sized, typing.Container): self.assertTrue(isinstance(set(), interface), interface) self.assertTrue(is_of_type(set(), interface), interface) self.assertTrue(isinstance([], interface), interface) self.assertTrue(is_of_type([], interface), interface) # See: https://github.com/Stewori/pytypes/issues/21 def test_tuple_ellipsis(self): class Foo: pass self.assertTrue(is_subtype(Tuple[Foo], Tuple[object, ...])) self.assertTrue(is_subtype(Tuple[Foo], Tuple[Any, ...])) # See: https://github.com/Stewori/pytypes/issues/69 def test_tuple_ellipsis_check(self): @typechecked def f(): # type: () -> Tuple[Any, ...] return () self.assertEqual(f(), ()) # See: https://github.com/Stewori/pytypes/issues/48 def test_empty_tuple(self): self.assertFalse(is_of_type((), List)) self.assertTrue(is_of_type((), Tuple)) self.assertTrue(is_of_type((), Sequence)) # See: https://github.com/Stewori/pytypes/issues/24 def test_bound_typevars_readonly(self): T = typing.TypeVar('T', covariant=True) class L(typing.List[T]): pass C = typing.TypeVar('T', bound=L) self.assertTrue(is_subtype(L[float], C)) self.assertTrue(is_subtype(L[float], C, bound_typevars={})) self.assertFalse(is_subtype(L[float], C, bound_typevars_readonly=True, bound_typevars={})) self.assertTrue(is_subtype(L[float], C, bound_typevars_readonly=False, bound_typevars={})) # See: https://github.com/Stewori/pytypes/issues/22 def test_forward_declaration(self): Wrapper = typing.Union[typing.Sequence['Data']] Data = typing.Union[Wrapper, str, bytes, bool, float, int, dict] with self.assertRaises(pytypes.ForwardRefError): is_subtype(typing.Sequence[float], Wrapper) pytypes.resolve_fw_decl(Wrapper) self.assertTrue(is_subtype(typing.Sequence[float], Wrapper)) self.assertTrue(is_subtype(int, Data)) self.assertTrue(is_subtype(float, Data)) self.assertFalse(is_subtype(Data, Wrapper)) self.assertTrue(is_subtype(Wrapper, Data)) # See: https://github.com/Stewori/pytypes/issues/22 def test_forward_declaration_infinite_recursion(self): Data = typing.Union['Wrapper', float] Wrapper = typing.Union[Data, int] pytypes.resolve_fw_decl(Data) self.assertFalse(is_subtype(list, Wrapper)) # See: https://github.com/Stewori/pytypes/issues/49 def test_Generator_is_of_type(self): value = (i for i in range(10)) self.assertFalse(is_of_type(value, int)) class Foo: def bar(self): value = (i for i in range(10)) return is_of_type(value, int) self.assertFalse(Foo().bar()) # See: https://github.com/Stewori/pytypes/issues/65 def test_has_type_hints_on_slot_wrapper(self): self.assertFalse(pytypes.has_type_hints(int.__and__)) def test_type_bases(self): def cmp(bs1, bs2): if len(bs1) != len(bs2): return False for i in range(len(bs1)): if bs1[i] is not bs2[i]: try: if bs1[i].__origin__ is not bs2[i].__origin__: return False except: return False return True try: cabc = collections.abc except AttributeError: cabc = collections # The outcommented tests mostly fail because of something with Generic, # collections.abc.Sized vs typing.Sized or they were out-commented because # they were not reasonably applicable to all scoped python versions. # These slightly different bases shouln'd impact pytypes too much. self.assertTrue(cmp(type_bases(cabc.Hashable), (object,))) #Not in python2: self.assertTrue(cmp(type_bases(typing.Awaitable), (typing.Generic[T_co],))) #Not in python2: self.assertTrue(cmp(type_bases(typing.Coroutine), (typing.Awaitable[V_co], typing.Generic[T_co, T_contra, V_co]))) #Not in python2: self.assertTrue(cmp(type_bases(typing.AsyncIterable), (typing.Generic[T_co],))) #Not in python2: self.assertTrue(cmp(type_bases(typing.AsyncIterator), (typing.AsyncIterable[T_co],))) self.assertTrue(cmp(type_bases(typing.Iterable), (typing.Generic[T_co],))) self.assertTrue(cmp(type_bases(typing.Iterator), (typing.Iterable[T_co],))) #self.assertTrue(cmp(type_bases(typing.Reversible), (typing.Iterable[T_co],))) self.assertTrue(cmp(type_bases(cabc.Sized), (object,))) self.assertTrue(cmp(type_bases(typing.Container), (typing.Generic[T_co],))) #self.assertTrue(cmp(type_bases(typing.Collection), (collections.abc.Sized, typing.Iterable[T_co], typing.Container[T_co]))) #self.assertTrue(cmp(type_bases(typing.Callable), ())) #Not in python2: self.assertTrue(cmp(type_bases(typing.AbstractSet), (typing.Collection[T_co],))) self.assertTrue(cmp(type_bases(typing.MutableSet), (typing.AbstractSet[T],))) #self.assertTrue(cmp(type_bases(typing.Mapping), (typing.Collection[KT], typing.Generic[KT, VT_co]))) self.assertTrue(cmp(type_bases(typing.MutableMapping), (typing.Mapping[KT, VT],))) #Not in python2: self.assertTrue(cmp(type_bases(typing.Sequence), (typing.Reversible[T_co], typing.Collection[T_co]))) self.assertTrue(cmp(type_bases(typing.MutableSequence), (typing.Sequence[T],))) self.assertTrue(cmp(type_bases(typing.ByteString), (typing.Sequence[int],))) self.assertTrue(cmp(type_bases(typing.List), (list, typing.MutableSequence[T]))) self.assertTrue(cmp(type_bases(typing.Set), (set, typing.MutableSet[T]))) self.assertTrue(cmp(type_bases(typing.FrozenSet), (frozenset, typing.AbstractSet[T_co]))) #self.assertTrue(cmp(type_bases(typing.MappingView), (collections.abc.Sized, typing.Iterable[T_co]))) self.assertTrue(cmp(type_bases(typing.KeysView), (typing.MappingView[KT], typing.AbstractSet[KT]))) #self.assertTrue(cmp(type_bases(typing.ItemsView), (typing.MappingView[typing.Tuple[KT, VT_co]], typing.AbstractSet[typing.Tuple[KT, VT_co]], typing.Generic[KT, VT_co]))) #self.assertTrue(cmp(type_bases(typing.ValuesView), (typing.MappingView[VT_co],))) #self.assertTrue(cmp(type_bases(typing.ContextManager), (typing.Generic[T_co],))) self.assertTrue(cmp(type_bases(typing.Dict), (dict, typing.MutableMapping[KT, VT]))) #self.assertTrue(cmp(type_bases(typing.DefaultDict), (collections.defaultdict, typing.MutableMapping[KT, VT]))) #self.assertTrue(cmp(type_bases(typing.Generator), (typing.Iterator[T_co], typing.Generic[T_co, T_contra, V_co]))) #self.assertTrue(cmp(type_bases(typing.Type), (typing.Generic[CT_co],))) # See: https://github.com/Stewori/pytypes/issues/56 def test_subtype_mapping(self): self.assertFalse(is_subtype(type(None), Dict[str, str])) self.assertFalse(is_subtype(dict, Dict[str, str])) self.assertTrue(is_subtype(Dict[str, str], dict)) self.assertFalse(is_subtype(List[Dict[str, str]], List[dict])) self.assertTrue(is_subtype(List[Dict[str, str]], Sequence[dict])) self.assertTrue(is_subtype(type(None), Optional[Dict[str, Any]])) class Test_combine_argtype(unittest.TestCase): def test_exceptions(self): # Empty observations not allowed with self.assertRaises(AssertionError): pytypes.typelogger.combine_argtype([]) # Non tuple types not allowed with self.assertRaises(AssertionError): notTuple = typing.List[int] pytypes.typelogger.combine_argtype([notTuple]) with self.assertRaises(AssertionError): notTuple = typing.List[int] pytypes.typelogger.combine_argtype([typing.Tuple[int], notTuple]) def test_function(self): # If single observation is supplied it should return itself self.assertEqual( pytypes.typelogger.combine_argtype([typing.Tuple[int]]), typing.Tuple[int], ) # Observations should be unioned self.assertEqual( pytypes.typelogger.combine_argtype([typing.Tuple[int], typing.Tuple[str]]), typing.Tuple[typing.Union[int, str]], ) # Number classes should be combined as PEP 484 style numeric tower self.assertEqual( pytypes.typelogger.combine_argtype([typing.Tuple[int], typing.Tuple[float]]), typing.Tuple[float], ) def testfunc_agent(v): # type: (str) -> int return 67 def testfunc_agent_err(v): # type: (str) -> int return 'abc' class Test_agent_err_class: def __init__(self): # type: () -> None pass def testmeth_agent_err(self): # type: () -> int return {} @classmethod def testclassmeth_agent_err(cls): # type: () -> int return {} class Test_agent(unittest.TestCase): def test_function_agent(self): with TypeChecker(): self.assertEqual(testfunc_agent('abc'), 67) self.assertRaises(InputTypeError, lambda: testfunc_agent(12)) restore_profiler() self.assertRaises(ReturnTypeError, lambda: testfunc_agent_err('abc')) def test_method_agent_return(self): a = Test_agent_err_class() with TypeChecker(): a.testmeth_agent_err self.assertRaises(ReturnTypeError, a.testmeth_agent_err) restore_profiler() self.assertRaises(ReturnTypeError, a.testclassmeth_agent_err) restore_profiler() self.assertRaises(ReturnTypeError, Test_agent_err_class.testclassmeth_agent_err) def test_init_agent_return_None(self): with TypeChecker(): Test_agent_err_class() @unittest.skipUnless(sys.version_info.major >= 3 and sys.version_info.minor >= 5, 'Only applicable in Python >= 3.5.') class Test_agent_Python3_5(unittest.TestCase): @classmethod def setUpClass(cls): global py3 from testhelpers import typechecker_testhelper_py3 as py3 def test_function_agent(self): with TypeChecker(): self.assertEqual(py3.testfunc_agent('abc'), 69) self.assertRaises(InputTypeError, lambda: py3.testfunc_agent(12)) restore_profiler() self.assertRaises(ReturnTypeError, lambda: py3.testfunc_agent_err('abc')) def test_method_agent_return(self): a = py3.Test_agent_err_class() with TypeChecker(): a.testmeth_agent_err self.assertRaises(ReturnTypeError, a.testmeth_agent_err) restore_profiler() self.assertRaises(ReturnTypeError, a.testclassmeth_agent_err) restore_profiler() self.assertRaises(ReturnTypeError, py3.Test_agent_err_class.testclassmeth_agent_err) def test_init_agent_return_None(self): with TypeChecker(): py3.Test_agent_err_class() if __name__ == '__main__': unittest.main()
45.085703
178
0.62725
29,884
228,314
4.586033
0.028209
0.081431
0.106604
0.122671
0.897956
0.862728
0.825836
0.782983
0.739648
0.68728
0
0.052057
0.235702
228,314
5,063
179
45.094608
0.733324
0.077586
0
0.567499
0
0
0.026264
0.001329
0
0
0
0.001975
0.411052
1
0.109261
false
0.014131
0.011355
0.041383
0.20111
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
133b7c3f123a5b95262d4f138174b6a0d1557c00
17,197
py
Python
pyEX/commodities/commodities.py
sourcery-ai-bot/pyEX
21be6b4f72e6f8593df40f6d3632b97ea60c9532
[ "Apache-2.0" ]
107
2021-03-05T05:18:34.000Z
2022-03-30T22:25:13.000Z
pyEX/commodities/commodities.py
sourcery-ai-bot/pyEX
21be6b4f72e6f8593df40f6d3632b97ea60c9532
[ "Apache-2.0" ]
112
2021-03-05T03:41:21.000Z
2021-12-01T03:24:22.000Z
pyEX/commodities/commodities.py
sourcery-ai-bot/pyEX
21be6b4f72e6f8593df40f6d3632b97ea60c9532
[ "Apache-2.0" ]
37
2021-03-04T18:32:09.000Z
2022-03-24T02:20:12.000Z
# ***************************************************************************** # # Copyright (c) 2020, the pyEX authors. # # This file is part of the pyEX library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # from enum import Enum from functools import lru_cache, wraps from ..common import _expire, _UTC, _timeseriesWrapper from ..timeseries import timeSeries, timeSeriesDF, timeSeriesAsync class CommoditiesPoints(Enum): """Commodities data points https://iexcloud.io/docs/api/#commodities Attributes: WTI; Crude oil West Texas Intermediate - in dollars per barrel, not seasonally adjusted BRENT; Crude oil Brent Europe - in dollars per barrel, not seasonally adjusted NATGAS; Henry Hub Natural Gas Spot Price - in dollars per million BTU, not seasonally adjusted HEATOIL; No. 2 Heating Oil New York Harbor - in dollars per gallon, not seasonally adjusted JET; Kerosense Type Jet Fuel US Gulf Coast - in dollars per gallon, not seasonally adjusted DIESEL; US Diesel Sales Price - in dollars per gallon, not seasonally adjusted GASREG; US Regular Conventional Gas Price - in dollars per gallon, not seasonally adjusted GASMID; US Midgrade Conventional Gas Price - in dollars per gallon, not seasonally adjusted GASPRM; US Premium Conventional Gas Price - in dollars per gallon, not seasonally adjusted PROPANE; Propane Prices Mont Belvieu Texas - in dollars per gallon, not seasonally adjusted """ WTI = "DCOILWTICO" BRENT = "DCOILBRENTEU" NATGAS = "DHHNGSP" HEATOIL = "DHOILNYH" JET = "DJFUELUSGULF" DIESEL = "GASDESW" GASREG = "GASREGCOVW" GASMID = "GASMIDCOVW" GASPRM = "GASPRMCOVW" PROPANE = "DPROPANEMBTX" @staticmethod @lru_cache(1) def options(): """Return a list of the available commodities points options""" return list(map(lambda c: c.value, CommoditiesPoints)) @_expire(hour=8, tz=_UTC) def wti(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="DCOILWTICO", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(wti) def wtiDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="DCOILWTICO", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(wti) async def wtiAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="DCOILWTICO", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def brent(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="DCOILBRENTEU", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(brent) def brentDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="DCOILBRENTEU", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(brent) async def brentAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="DCOILBRENTEU", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def natgas(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="DHHNGSP", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(natgas) def natgasDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="DHHNGSP", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(natgas) async def natgasAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="DHHNGSP", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def heatoil(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="DHOILNYH", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(heatoil) def heatoilDF( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="DHOILNYH", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(heatoil) async def heatoilAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="DHOILNYH", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def jet(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="DJFUELUSGULF", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(jet) def jetDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="DJFUELUSGULF", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(jet) async def jetAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="DJFUELUSGULF", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def diesel(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="GASDESW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(diesel) def dieselDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="GASDESW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(diesel) async def dieselAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="GASDESW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def gasreg(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="GASREGCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(gasreg) def gasregDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="GASREGCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(gasreg) async def gasregAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="GASREGCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def gasmid(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="GASMIDCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(gasmid) def gasmidDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="GASMIDCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(gasmid) async def gasmidAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return timeSeriesAsync( id="ENERGY", key="GASMIDCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def gasprm(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="GASPRMCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(gasprm) def gasprmDF(token="", version="stable", filter="", format="json", **timeseries_kwargs): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="GASPRMCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(gasprm) async def gasprmAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="GASPRMCOVW", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) def propane(token="", version="stable", filter="", format="json", **timeseries_kwargs): """Commodities data https://iexcloud.io/docs/api/#commodities Args: token (str): Access token version (str): API version filter (str): filters: https://iexcloud.io/docs/api/#filter-results format (str): return format, defaults to json Supports all kwargs from `pyEX.timeseries.timeSeries` Returns: dict or DataFrame: result """ _timeseriesWrapper(timeseries_kwargs) return timeSeries( id="ENERGY", key="DPROPANEMBTX", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(propane) def propaneDF( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return timeSeriesDF( id="ENERGY", key="DPROPANEMBTX", token=token, version=version, filter=filter, format=format, **timeseries_kwargs ) @_expire(hour=8, tz=_UTC) @wraps(propane) async def propaneAsync( token="", version="stable", filter="", format="json", **timeseries_kwargs ): _timeseriesWrapper(timeseries_kwargs) return await timeSeriesAsync( id="ENERGY", key="DPROPANEMBTX", token=token, version=version, filter=filter, format=format, **timeseries_kwargs )
25.93816
102
0.625225
1,785
17,197
5.919888
0.094678
0.136273
0.031229
0.036907
0.87849
0.87849
0.873569
0.855115
0.850951
0.850951
0
0.002941
0.24859
17,197
662
103
25.977341
0.814812
0.28034
0
0.810875
0
0
0.073611
0
0
0
0
0
0
1
0.049645
false
0
0.009456
0
0.158392
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
1346d52e6b6f56184307991bb8b705b2bdec0935
140
py
Python
src/boggled/__init__.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
src/boggled/__init__.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
src/boggled/__init__.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
from boggled.boggle_board import * from boggled.boggle_dice import * from boggled.boggle_solver import * from boggled.boggle_words import *
28
35
0.828571
20
140
5.6
0.4
0.392857
0.607143
0.616071
0
0
0
0
0
0
0
0
0.114286
140
4
36
35
0.903226
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
134f57c1ad47fe44ec31e0273e04a322913889b6
23,093
py
Python
tests/test_connection_pool.py
alisaifee/coredis
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
[ "MIT" ]
9
2022-01-07T07:42:08.000Z
2022-03-21T15:54:09.000Z
tests/test_connection_pool.py
alisaifee/coredis
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
[ "MIT" ]
30
2022-01-15T23:33:36.000Z
2022-03-30T22:39:53.000Z
tests/test_connection_pool.py
alisaifee/coredis
e72f5d7c665b53e6a1d41e1a7fb9e400858a8b19
[ "MIT" ]
3
2022-01-13T06:11:13.000Z
2022-02-21T11:19:33.000Z
from __future__ import annotations import asyncio import os import re import pytest import coredis from coredis.exceptions import ( BusyLoadingError, ConnectionError, ReadOnlyError, RedisError, ) from coredis.pool import to_bool class DummyConnection: description = "DummyConnection<>" def __init__(self, **kwargs): self.kwargs = kwargs self.pid = os.getpid() self.awaiting_response = False @pytest.fixture(autouse=True) def setup(redis_basic): pass class TestConnectionPool: def get_pool( self, connection_kwargs=None, max_connections=None, connection_class=DummyConnection, ): connection_kwargs = connection_kwargs or {} pool = coredis.ConnectionPool( connection_class=connection_class, max_connections=max_connections, **connection_kwargs, ) return pool @pytest.mark.asyncio() async def test_connection_creation(self): connection_kwargs = {"foo": "bar", "biz": "baz"} pool = self.get_pool(connection_kwargs=connection_kwargs) connection = await pool.get_connection() assert isinstance(connection, DummyConnection) assert connection.kwargs == connection_kwargs @pytest.mark.asyncio() async def test_multiple_connections(self): pool = self.get_pool() c1 = await pool.get_connection() c2 = await pool.get_connection() assert c1 != c2 @pytest.mark.asyncio() async def test_max_connections(self): pool = self.get_pool(max_connections=2) await pool.get_connection() await pool.get_connection() with pytest.raises(ConnectionError): await pool.get_connection() @pytest.mark.asyncio() async def test_reuse_previously_released_connection(self): pool = self.get_pool() c1 = await pool.get_connection() pool.release(c1) c2 = await pool.get_connection() assert c1 == c2 def test_repr_contains_db_info_tcp(self): connection_kwargs = {"host": "localhost", "port": 6379, "db": 1} pool = self.get_pool( connection_kwargs=connection_kwargs, connection_class=coredis.Connection ) expected = "ConnectionPool<Connection<host=localhost,port=6379,db=1>>" assert repr(pool) == expected def test_repr_contains_db_info_unix(self): connection_kwargs = {"path": "/abc", "db": 1} pool = self.get_pool( connection_kwargs=connection_kwargs, connection_class=coredis.UnixDomainSocketConnection, ) expected = "ConnectionPool<UnixDomainSocketConnection<path=/abc,db=1>>" assert repr(pool) == expected @pytest.mark.asyncio() @pytest.mark.xfail async def test_connection_idle_check(self, event_loop): rs = coredis.Redis( host="127.0.0.1", port=6379, db=0, max_idle_time=0.2, idle_check_interval=0.1, ) await rs.info() assert len(rs.connection_pool._available_connections) == 1 assert len(rs.connection_pool._in_use_connections) == 0 conn = rs.connection_pool._available_connections[0] last_active_at = conn.last_active_at await asyncio.sleep(0.3) assert len(rs.connection_pool._available_connections) == 0 assert len(rs.connection_pool._in_use_connections) == 0 assert last_active_at == conn.last_active_at assert conn._writer is None and conn._reader is None class TestBlockingConnectionPool: def get_pool( self, connection_kwargs=None, max_connections=None, connection_class=DummyConnection, timeout=None, ): connection_kwargs = connection_kwargs or {} pool = coredis.BlockingConnectionPool( connection_class=connection_class, max_connections=max_connections, timeout=timeout, **connection_kwargs, ) return pool @pytest.mark.asyncio() async def test_connection_creation(self): connection_kwargs = {"foo": "bar", "biz": "baz"} pool = self.get_pool(connection_kwargs=connection_kwargs) connection = await pool.get_connection() assert isinstance(connection, DummyConnection) assert connection.kwargs == connection_kwargs @pytest.mark.asyncio() async def test_multiple_connections(self): pool = self.get_pool() c1 = await pool.get_connection() c2 = await pool.get_connection() assert c1 != c2 @pytest.mark.asyncio() async def test_max_connections_timeout(self): pool = self.get_pool(max_connections=2, timeout=0.1) await pool.get_connection() await pool.get_connection() with pytest.raises(ConnectionError): await pool.get_connection() @pytest.mark.asyncio() async def test_max_connections_no_timeout(self): pool = self.get_pool(max_connections=2) await pool.get_connection() released_conn = await pool.get_connection() def releaser(): pool.release(released_conn) loop = asyncio.get_running_loop() loop.call_later(0.2, releaser) new_conn = await pool.get_connection() assert new_conn == released_conn @pytest.mark.asyncio() async def test_reuse_previously_released_connection(self): pool = self.get_pool() c1 = await pool.get_connection() pool.release(c1) c2 = await pool.get_connection() assert c1 == c2 def test_repr_contains_db_info_tcp(self): connection_kwargs = {"host": "localhost", "port": 6379, "db": 1} pool = self.get_pool( connection_kwargs=connection_kwargs, connection_class=coredis.Connection ) expected = "BlockingConnectionPool<Connection<host=localhost,port=6379,db=1>>" assert repr(pool) == expected def test_repr_contains_db_info_unix(self): connection_kwargs = {"path": "/abc", "db": 1} pool = self.get_pool( connection_kwargs=connection_kwargs, connection_class=coredis.UnixDomainSocketConnection, ) expected = "BlockingConnectionPool<UnixDomainSocketConnection<path=/abc,db=1>>" assert repr(pool) == expected @pytest.mark.asyncio() @pytest.mark.xfail async def test_connection_idle_check(self, event_loop): rs = coredis.Redis( host="127.0.0.1", port=6379, db=0, max_idle_time=0.2, idle_check_interval=0.1, ) await rs.info() assert len(rs.connection_pool._in_use_connections) == 0 conn = await rs.connection_pool.get_connection() last_active_at = conn.last_active_at rs.connection_pool.release(conn) await asyncio.sleep(0.3) assert len(rs.connection_pool._in_use_connections) == 0 assert last_active_at == conn.last_active_at assert conn._writer is None and conn._reader is None new_conn = await rs.connection_pool.get_connection() assert conn != new_conn class TestConnectionPoolURLParsing: def test_defaults(self): pool = coredis.ConnectionPool.from_url("redis://localhost") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 0, "username": None, "password": None, } def test_hostname(self): pool = coredis.ConnectionPool.from_url("redis://myhost") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "myhost", "port": 6379, "db": 0, "username": None, "password": None, } def test_quoted_hostname(self): pool = coredis.ConnectionPool.from_url( "redis://my %2F host %2B%3D+", decode_components=True ) assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "my / host +=+", "port": 6379, "db": 0, "username": None, "password": None, } def test_port(self): pool = coredis.ConnectionPool.from_url("redis://localhost:6380") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6380, "db": 0, "username": None, "password": None, } def test_password(self): pool = coredis.ConnectionPool.from_url("redis://:mypassword@localhost") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 0, "username": "", "password": "mypassword", } def test_quoted_password(self): pool = coredis.ConnectionPool.from_url( "redis://:%2Fmypass%2F%2B word%3D%24+@localhost", decode_components=True ) assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 0, "username": None, "password": "/mypass/+ word=$+", } def test_db_as_argument(self): pool = coredis.ConnectionPool.from_url("redis://localhost", db="1") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 1, "username": None, "password": None, } def test_db_in_path(self): pool = coredis.ConnectionPool.from_url("redis://localhost/2", db="1") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 2, "username": None, "password": None, } def test_db_in_querystring(self): pool = coredis.ConnectionPool.from_url("redis://localhost/2?db=3", db="1") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 3, "username": None, "password": None, } def test_extra_typed_querystring_options(self): pool = coredis.ConnectionPool.from_url( "redis://localhost/2?stream_timeout=20&connect_timeout=10" ) assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 2, "stream_timeout": 20.0, "connect_timeout": 10.0, "username": None, "password": None, } def test_boolean_parsing(self): for expected, value in ( (None, None), (None, ""), (False, 0), (False, "0"), (False, "f"), (False, "F"), (False, "False"), (False, "n"), (False, "N"), (False, "No"), (True, 1), (True, "1"), (True, "y"), (True, "Y"), (True, "Yes"), ): assert expected is to_bool(value) def test_invalid_extra_typed_querystring_options(self): import warnings with warnings.catch_warnings(record=True) as warning_log: coredis.ConnectionPool.from_url( "redis://localhost/2?stream_timeout=_&" "connect_timeout=abc" ) # Compare the message values assert [ str(m.message) for m in sorted(warning_log, key=lambda l: str(l.message)) ] == [ "Invalid value for `connect_timeout` in connection URL.", "Invalid value for `stream_timeout` in connection URL.", ] def test_max_connections_querystring_option(self): pool = coredis.ConnectionPool.from_url("redis://localhost?max_connections=32") assert pool.max_connections == 32 def test_max_idle_times_querystring_option(self): pool = coredis.ConnectionPool.from_url("redis://localhost?max_idle_time=5") assert pool.max_idle_time == 5 def test_idle_check_interval_querystring_option(self): pool = coredis.ConnectionPool.from_url( "redis://localhost?idle_check_interval=1" ) assert pool.idle_check_interval == 1 def test_reader_read_size_querystring_option(self): pool = coredis.ConnectionPool.from_url( "redis://localhost?reader_read_size=65535" ) assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 0, "username": None, "password": None, "reader_read_size": 65535, } def test_extra_querystring_options(self): pool = coredis.ConnectionPool.from_url("redis://localhost?a=1&b=2") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 0, "username": None, "password": None, "a": "1", "b": "2", } def test_client_creates_connection_pool(self): r = coredis.Redis.from_url("redis://myhost") assert r.connection_pool.connection_class == coredis.Connection assert r.connection_pool.connection_kwargs == { "host": "myhost", "port": 6379, "db": 0, "decode_responses": False, "protocol_version": 2, "username": None, "password": None, } class TestConnectionPoolUnixSocketURLParsing: def test_defaults(self): pool = coredis.ConnectionPool.from_url("unix:///socket") assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/socket", "db": 0, "username": None, "password": None, } def test_password(self): pool = coredis.ConnectionPool.from_url("unix://:mypassword@/socket") assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/socket", "db": 0, "username": "", "password": "mypassword", } def test_quoted_password(self): pool = coredis.ConnectionPool.from_url( "unix://:%2Fmypass%2F%2B word%3D%24+@/socket", decode_components=True ) assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/socket", "db": 0, "username": None, "password": "/mypass/+ word=$+", } def test_quoted_path(self): pool = coredis.ConnectionPool.from_url( "unix://:mypassword@/my%2Fpath%2Fto%2F..%2F+_%2B%3D%24ocket", decode_components=True, ) assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/my/path/to/../+_+=$ocket", "db": 0, "username": None, "password": "mypassword", } def test_db_as_argument(self): pool = coredis.ConnectionPool.from_url("unix:///socket", db=1) assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/socket", "db": 1, "username": None, "password": None, } def test_db_in_querystring(self): pool = coredis.ConnectionPool.from_url("unix:///socket?db=2", db=1) assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/socket", "db": 2, "username": None, "password": None, } def test_max_connections_querystring_option(self): pool = coredis.ConnectionPool.from_url("unix:///localhost?max_connections=32") assert pool.max_connections == 32 def test_max_idle_times_querystring_option(self): pool = coredis.ConnectionPool.from_url("unix:///localhost?max_idle_time=5") assert pool.max_idle_time == 5 def test_idle_check_interval_querystring_option(self): pool = coredis.ConnectionPool.from_url( "unix:///localhost?idle_check_interval=1" ) assert pool.idle_check_interval == 1 def test_reader_read_size_querystring_option(self): pool = coredis.ConnectionPool.from_url("unix:///socket?reader_read_size=65535") assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/socket", "db": 0, "username": None, "password": None, "reader_read_size": 65535, } def test_extra_querystring_options(self): pool = coredis.ConnectionPool.from_url("unix:///socket?a=1&b=2") assert pool.connection_class == coredis.UnixDomainSocketConnection assert pool.connection_kwargs == { "path": "/socket", "db": 0, "username": None, "password": None, "a": "1", "b": "2", } class TestSSLConnectionURLParsing: def test_defaults(self): pool = coredis.ConnectionPool.from_url("rediss://localhost") assert pool.connection_class == coredis.Connection assert pool.connection_kwargs.pop("ssl_context") is not None assert pool.connection_kwargs == { "host": "localhost", "port": 6379, "db": 0, "username": None, "password": None, } def test_cert_reqs_options(self): import ssl with pytest.raises(TypeError) as e: pool = coredis.ConnectionPool.from_url( "rediss://?ssl_cert_reqs=none&ssl_keyfile=test" ) assert e.message == "certfile should be a valid filesystem path" assert pool.get_connection().ssl_context.verify_mode == ssl.CERT_NONE with pytest.raises(TypeError) as e: pool = coredis.ConnectionPool.from_url( "rediss://?ssl_cert_reqs=optional&ssl_keyfile=test" ) assert e.message == "certfile should be a valid filesystem path" assert pool.get_connection().ssl_context.verify_mode == ssl.CERT_OPTIONAL with pytest.raises(TypeError) as e: pool = coredis.ConnectionPool.from_url( "rediss://?ssl_cert_reqs=required&ssl_keyfile=test" ) assert e.message == "certfile should be a valid filesystem path" assert pool.get_connection().ssl_context.verify_mode == ssl.CERT_REQUIRED class TestConnection: @pytest.mark.asyncio() async def test_on_connect_error(self, event_loop): """ An error in Connection.on_connect should disconnect from the server see for details: https://github.com/andymccurdy/redis-py/issues/368 """ # this assumes the Redis server being tested against doesn't have # 9999 databases ;) bad_connection = coredis.Redis(db=9999, loop=event_loop) # an error should be raised on connect with pytest.raises(RedisError): await bad_connection.info() pool = bad_connection.connection_pool assert len(pool._available_connections) == 0 @pytest.mark.asyncio() @pytest.mark.max_server_version("6.2.0") async def test_busy_loading_disconnects_socket(self, event_loop): """ If Redis raises a LOADING error, the connection should be disconnected and a BusyLoadingError raised """ client = coredis.Redis(loop=event_loop) with pytest.raises(BusyLoadingError): await client.execute_command(b"DEBUG", b"ERROR", b"LOADING fake message") pool = client.connection_pool assert len(pool._available_connections) == 0 @pytest.mark.asyncio() @pytest.mark.max_server_version("6.2.0") async def test_busy_loading_from_pipeline_immediate_command(self, event_loop): """ BusyLoadingErrors should raise from Pipelines that execute a command immediately, like WATCH does. """ client = coredis.Redis(loop=event_loop) pipe = await client.pipeline() with pytest.raises(BusyLoadingError): await pipe.immediate_execute_command( b"DEBUG", b"ERROR", b"LOADING fake message" ) pool = client.connection_pool assert not pipe.connection assert len(pool._available_connections) == 0 @pytest.mark.asyncio() async def test_busy_loading_from_pipeline(self, event_loop): """ BusyLoadingErrors should be raised from a pipeline execution regardless of the raise_on_error flag. """ client = coredis.Redis(loop=event_loop) pipe = await client.pipeline() await pipe.execute_command(b"DEBUG", b"ERROR", b"LOADING fake message") with pytest.raises(RedisError): await pipe.execute() pool = client.connection_pool assert not pipe.connection assert len(pool._available_connections) == 1 assert pool._available_connections[0]._writer assert pool._available_connections[0]._reader @pytest.mark.asyncio() @pytest.mark.max_server_version("6.2.0") async def test_read_only_error(self, event_loop): "READONLY errors get turned in ReadOnlyError exceptions" client = coredis.Redis(loop=event_loop) with pytest.raises(ReadOnlyError): await client.execute_command(b"DEBUG", b"ERROR", b"READONLY blah blah") def test_connect_from_url_tcp(self): connection = coredis.Redis.from_url("redis://localhost") pool = connection.connection_pool assert re.match("(.*)<(.*)<(.*)>>", repr(pool)).groups() == ( "ConnectionPool", "Connection", "host=localhost,port=6379,db=0", ) def test_connect_from_url_unix(self): connection = coredis.Redis.from_url("unix:///path/to/socket") pool = connection.connection_pool assert re.match("(.*)<(.*)<(.*)>>", repr(pool)).groups() == ( "ConnectionPool", "UnixDomainSocketConnection", "path=/path/to/socket,db=0", )
34.778614
87
0.603906
2,461
23,093
5.45063
0.108899
0.040256
0.064112
0.064709
0.823766
0.785746
0.766885
0.737662
0.706277
0.663188
0
0.018003
0.285628
23,093
663
88
34.831071
0.795114
0.006279
0
0.626998
0
0.001776
0.13059
0.05254
0
0
0
0
0.165187
1
0.0746
false
0.056838
0.017762
0
0.110124
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
138851db64067d1cfed92ae9a7c50d07c03cb7d8
2,168
py
Python
controllerconfig/controllerconfig/controllerconfig/__init__.py
MarioCarrilloA/config
06a6f142d154970ce658e979822cd84ce447f612
[ "Apache-2.0" ]
null
null
null
controllerconfig/controllerconfig/controllerconfig/__init__.py
MarioCarrilloA/config
06a6f142d154970ce658e979822cd84ce447f612
[ "Apache-2.0" ]
null
null
null
controllerconfig/controllerconfig/controllerconfig/__init__.py
MarioCarrilloA/config
06a6f142d154970ce658e979822cd84ce447f612
[ "Apache-2.0" ]
1
2021-01-05T16:24:58.000Z
2021-01-05T16:24:58.000Z
# # Copyright (c) 2015-2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from controllerconfig.common.validator import validate # noqa: F401 from controllerconfig.common.configobjects import Network # noqa: F401 from controllerconfig.common.configobjects import DEFAULT_CONFIG # noqa: F401 from controllerconfig.common.configobjects import REGION_CONFIG # noqa: F401 from controllerconfig.common.configobjects import DEFAULT_NAMES # noqa: F401 from controllerconfig.common.configobjects import HP_NAMES # noqa: F401 from controllerconfig.common.configobjects import SUBCLOUD_CONFIG # noqa: F401 from controllerconfig.common.configobjects import MGMT_TYPE # noqa: F401 from controllerconfig.common.configobjects import INFRA_TYPE # noqa: F401 from controllerconfig.common.configobjects import OAM_TYPE # noqa: F401 from controllerconfig.common.configobjects import NETWORK_PREFIX_NAMES # noqa: F401 from controllerconfig.common.configobjects import HOST_XML_ATTRIBUTES # noqa: F401 from controllerconfig.common.configobjects import DEFAULT_DOMAIN_NAME # noqa: F401 from controllerconfig.common.exceptions import ConfigError # noqa: F401 from controllerconfig.common.exceptions import ConfigFail # noqa: F401 from controllerconfig.common.exceptions import ValidateFail # noqa: F401 from controllerconfig.utils import is_valid_vlan # noqa: F401 from controllerconfig.utils import is_mtu_valid # noqa: F401 from controllerconfig.utils import validate_network_str # noqa: F401 from controllerconfig.utils import validate_address_str # noqa: F401 from controllerconfig.utils import validate_address # noqa: F401 from controllerconfig.utils import is_valid_url # noqa: F401 from controllerconfig.utils import is_valid_domain_or_ip # noqa: F401 from controllerconfig.utils import ip_version_to_string # noqa: F401 from controllerconfig.utils import lag_mode_to_str # noqa: F401 from controllerconfig.utils import validate_openstack_password # noqa: F401 from controllerconfig.utils import validate_nameserver_address_str # noqa: F401 from controllerconfig.utils import extract_openstack_password_rules_from_file # noqa: F401
61.942857
91
0.836716
271
2,168
6.527675
0.239852
0.316563
0.183154
0.42736
0.808366
0.808366
0.764274
0.603166
0.064443
0
0
0.04873
0.11024
2,168
34
92
63.764706
0.868326
0.180812
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.071429
1
0
1
0
0
0
0
null
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
10
b94480df603c9bd77fa01a6841d58bf397ac2adc
4,201
py
Python
src/transformers/utils/dummy_sentencepiece_objects.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
31
2022-02-02T13:13:41.000Z
2022-03-29T08:37:20.000Z
src/transformers/utils/dummy_sentencepiece_objects.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
1
2022-02-17T12:40:59.000Z
2022-02-17T12:40:59.000Z
src/transformers/utils/dummy_sentencepiece_objects.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
2
2022-02-07T10:53:33.000Z
2022-02-17T10:03:01.000Z
# This file is autogenerated by the command `make fix-copies`, do not edit. # flake8: noqa from ..file_utils import DummyObject, requires_backends class AlbertTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class BarthezTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class BartphoTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class BertGenerationTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class BigBirdTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class CamembertTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class DebertaV2Tokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class LayoutXLMTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class M2M100Tokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class MarianTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class MBart50Tokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class MBartTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class MLukeTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class MT5Tokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class PegasusTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class ReformerTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class RemBertTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class Speech2TextTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class T5Tokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class XGLMTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class XLMProphetNetTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class XLMRobertaTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class XLNetTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"])
25.460606
75
0.696739
367
4,201
7.594005
0.141689
0.137783
0.231073
0.338357
0.823466
0.823466
0.823466
0.823466
0.823466
0.823466
0
0.003152
0.169245
4,201
164
76
25.615854
0.795415
0.020471
0
0.741935
1
0
0.145428
0
0
0
0
0
0
1
0.247312
false
0
0.010753
0
0.752688
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
12
b9fb594587ccf6d4b37e1c732fc7b00cd552c942
10,160
py
Python
server/Net/netbase.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
1
2015-06-23T03:48:03.000Z
2015-06-23T03:48:03.000Z
server/Net/netbase.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
server/Net/netbase.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
import socket,select,sys,time from errors import * from communicate import SendData, ReceiveData, ReceiveDataUDP class TCPServer(): def __init__(self): self.sending_socket = None def input_func(self,sock,host,port,address):pass def output_func(self,sock,host,port,address):pass def connect_func(self,sock,host,port):pass def client_connect_func(self,sock,host,port,address):pass def client_disconnect_func(self,sock,host,port,address):pass def quit_func(self,host,port):pass def connect(self,host,port): self.host = host self.port = port try: self.unconnected_socket = socket.socket() self.unconnected_socket.bind((self.host,self.port)) self.unconnected_socket.listen(5) except: self.unconnected_socket.close() raise ServerError("Only one instance of the server on port "+str(self.port)+" may run at one time!") self.connect_func(self.unconnected_socket,self.host,self.port) self.connected_sockets = [] self.socketaddresses = {} def remove_socket(self,sock): address = self.socketaddresses[sock] self.client_disconnect_func(sock,self.host,self.port,address) self.connected_sockets.remove(sock) def serve_forever(self): self.looping = True while self.looping: input_ready,output_ready,except_ready = select.select([self.unconnected_socket]+self.connected_sockets,[],[]) for sock in input_ready: if sock == self.unconnected_socket: #init socket connected_socket, address = sock.accept() self.connected_sockets.append(connected_socket) self.socketaddresses[connected_socket] = address self.client_connect_func(connected_socket,self.host,self.port,address) else: try: data = ReceiveData(sock) address = self.socketaddresses[sock] self.input_func(sock,self.host,self.port,address) except: data = "client quit" if data != None: if data == "client quit": self.remove_socket(sock) continue self.sending_socket = sock self.handle_data(data,address) """def serve_forever(self): self.looping = True while self.looping: input_ready,output_ready,except_ready = select.select([self.unconnected_socket]+self.connected_sockets,[],[]) for sock in input_ready: if sock == self.unconnected_socket: #init socket connected_socket, address = sock.accept() self.connected_sockets.append(connected_socket) self.socketaddresses[connected_socket] = address self.client_connect_func(connected_socket,self.host,self.port,address) else: try: data = ReceiveData(sock) address = self.socketaddresses[sock] self.input_func(sock,self.host,self.port,address) except: data = "dont quit" #data = "client quit" if data != None: if data == "client quit": self.remove_socket(sock) continue self.sending_socket = sock self.handle_data(data)""" """def Wserve(self,duration): input_ready,output_ready,except_ready = select.select([self.unconnected_socket]+self.connected_sockets,[],[],duration) for sock in input_ready: if sock == self.unconnected_socket: #init socket connected_socket, address = sock.accept() self.connected_sockets.append(connected_socket) self.socketaddresses[connected_socket] = address self.client_connect_func(connected_socket,self.host,self.port,address) else: try: data = ReceiveData(sock) address = self.socketaddresses[sock] self.input_func(sock,self.host,self.port,address) except: #pass data = "dont quit" #data = "client quit" if data != None: if data == "client quit": self.remove_socket(sock) continue else: self.sending_socket = sock self.handle_data(data) def Pserve(self,duration): input_ready,output_ready,except_ready = select.select([self.unconnected_socket]+self.connected_sockets,[],[],duration) for sock in input_ready: if sock == self.unconnected_socket: #init socket^M connected_socket, address = sock.accept() self.connected_sockets.append(connected_socket) self.socketaddresses[connected_socket] = address self.client_connect_func(connected_socket,self.host,self.port,address) else: try: data = ReceiveData(sock) address = self.socketaddresses[sock] self.input_func(sock,self.host,self.port,address) except: #pass #data = "dont quit" data = "client quit" if data != None: if data == "client quit": self.remove_socket(sock) continue else: self.sending_socket = sock self.handle_data(data)""" def handle_data(self,data): pass def send_data(self,data,compress=False): try: SendData(self.sending_socket,data,compress,includelength=True) address = self.socketaddresses[self.sending_socket] self.output_func(self.sending_socket,self.host,self.port,address) except: self.remove_socket(self.sending_socket) def quit(self): for s in self.connected_sockets: s.close() self.quit_func(self.host,self.port) class UDPServer(): def __init__(self): self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) def input_func(self,sock,host,port,address):pass def output_func(self,sock,host,port,address):pass def connect_func(self,sock,host,port):pass def quit_func(self,host,port):pass def connect(self,host,port): self.host = host self.port = port try: self.socket.bind((host, port)) except: self.socket.close() raise ServerError("Only one instance of the server on port "+str(self.port)+" may run at one time!") self.connect_func(self.socket,self.host,self.port) def serve_forever(self): self.looping = True while self.looping: data,self.lastaddress = ReceiveDataUDP(self.socket) self.input_func(self.socket,self.host,self.port,self.lastaddress) self.handle_data(data) def handle_data(self,data): pass def send_data(self,data,compress=False): try: SendData(self.socket,data,compress,address=self.lastaddress) self.output_func(self.socket,self.host,self.port,self.lastaddress) except: pass #client disconnected def quit(self): self.socket.close() self.quit_func(self.host,self.port) class TCPClient: def __init__(self): pass def connect(self,host,port): self.host = host self.port = port try: self.socket = socket.socket() self.socket.connect((self.host,self.port)) except: self.socket.close() raise SocketError("The connection could not be opened. It must be created first with a server object.") def send_data(self,data,compress=False): SendData(self.socket,data,compress,includelength=True) def wait_for_data(self): input_ready,output_ready,except_ready = select.select([self.socket],[],[]) return ReceiveData(self.socket) def check_for_data(self): input_ready,output_ready,except_ready = select.select([self.socket],[],[],0.001) if len(input_ready) > 0: return ReceiveData(self.socket) def quit(self): self.socket.close() class UDPClient: def __init__(self): pass def connect(self,host,port): self.host = host self.port = port self.socket = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) self.socket.connect((self.host,self.port)) def send_data(self,data,compress=False): SendData(self.socket,data,compress) def wait_for_data(self): input_ready,output_ready,except_ready = select.select([self.socket],[],[]) return ReceiveDataUDP(self.socket)[0] def check_for_data(self): input_ready,output_ready,except_ready = select.select([self.socket],[],[],0.001) if len(input_ready) > 0: return ReceiveDataUDP(self.socket)[0] def quit(self): self.socket.close()
42.689076
131
0.548524
1,058
10,160
5.114367
0.104915
0.042876
0.051007
0.056182
0.84587
0.821475
0.771761
0.751617
0.740344
0.709111
0
0.002153
0.360039
10,160
237
132
42.869198
0.830052
0.002953
0
0.614286
0
0
0.036761
0
0
0
0
0
0
1
0.25
false
0.107143
0.021429
0
0.328571
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
1
0
0
0
0
0
8
e005d458220ba805c2c41c5be7dd491f5ff0086d
36,133
py
Python
tests/dicts.py
hkumarmk/boshifier
069b6e6ebc9590f61caf2451e43d681765d42f21
[ "Apache-2.0" ]
null
null
null
tests/dicts.py
hkumarmk/boshifier
069b6e6ebc9590f61caf2451e43d681765d42f21
[ "Apache-2.0" ]
null
null
null
tests/dicts.py
hkumarmk/boshifier
069b6e6ebc9590f61caf2451e43d681765d42f21
[ "Apache-2.0" ]
null
null
null
exp_render_j2_release_from_git = { 'resource_types': [{ 'source': { 'repository': 'cloudfoundry/bosh-deployment-resource' }, 'type': 'docker-image', 'name': 'bosh-deployment' }], 'jobs': [{ 'serial': True, 'name': 'deploy-region_a-test', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'get': 'bosh-release-get-foo' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-test', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-stage', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-release-get-foo' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-stage', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-prod', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-release-get-foo' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-prod', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }], 'resources': [{ 'source': { 'client_secret': '((region_a.test.director_password))', 'client': '((region_a.test.director_username))', 'target': '((region_a.test.director_address))', 'ca_cert': '((region_a.test.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-test' }, { 'source': { 'client_secret': '((region_a.stage.director_password))', 'client': '((region_a.stage.director_username))', 'target': '((region_a.stage.director_address))', 'ca_cert': '((region_a.stage.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-stage' }, { 'source': { 'client_secret': '((region_a.prod.director_password))', 'client': '((region_a.prod.director_username))', 'target': '((region_a.prod.director_address))', 'ca_cert': '((region_a.prod.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-prod' }, { 'source': { 'uri': 'foo_release_repo', 'branch': 'master' }, 'type': 'git', 'name': 'bosh-release-get-foo' }, { 'source': { 'name': 'bosh-warden-boshlite-ubuntu-trusty-go_agent' }, 'type': 'bosh-io-stemcell', 'name': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'source': { 'uri': 'manifest_repo', 'branch': 'master' }, 'type': 'git', 'name': 'bosh-deployment-manifest' }], 'groups': [{ 'jobs': ['deploy-region_a-test', 'deploy-region_a-stage', 'deploy-region_a-prod'], 'name': 'deploy-region_a' }] } exp_render_j2_multi_release = { 'resource_types': [{ 'source': { 'repository': 'cloudfoundry/bosh-deployment-resource' }, 'type': 'docker-image', 'name': 'bosh-deployment' }], 'jobs': [{ 'serial': True, 'name': 'deploy-region_a-test', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'get': 'stemcell-bosh-warden-boshlite-ubuntu-xenial-go_agent' }, { 'trigger': True, 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'get': 'bosh-release-get-foo' }, { 'trigger': True, 'get': 'bosh-release-get-bar' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-test', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz', 'stemcell-bosh-warden-boshlite-ubuntu-xenial-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz', 'bosh-release-get-bar/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-stage', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'get': 'stemcell-bosh-warden-boshlite-ubuntu-xenial-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-release-get-foo' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-release-get-bar' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-stage', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz', 'stemcell-bosh-warden-boshlite-ubuntu-xenial-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz', 'bosh-release-get-bar/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-prod', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'get': 'stemcell-bosh-warden-boshlite-ubuntu-xenial-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-release-get-foo' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-release-get-bar' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-prod', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz', 'stemcell-bosh-warden-boshlite-ubuntu-xenial-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz', 'bosh-release-get-bar/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }], 'resources': [{ 'source': { 'client_secret': '((region_a.test.director_password))', 'client': '((region_a.test.director_username))', 'target': '((region_a.test.director_address))', 'ca_cert': '((region_a.test.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-test' }, { 'source': { 'client_secret': '((region_a.stage.director_password))', 'client': '((region_a.stage.director_username))', 'target': '((region_a.stage.director_address))', 'ca_cert': '((region_a.stage.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-stage' }, { 'source': { 'client_secret': '((region_a.prod.director_password))', 'client': '((region_a.prod.director_username))', 'target': '((region_a.prod.director_address))', 'ca_cert': '((region_a.prod.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-prod' }, { 'source': { 'uri': 'foo_release_repo', 'branch': 'master' }, 'type': 'git', 'name': 'bosh-release-get-foo' }, { 'source': { 'repository': 'repo_bar' }, 'type': 'bosh-io-release', 'name': 'bosh-release-get-bar' }, { 'source': { 'name': 'bosh-warden-boshlite-ubuntu-trusty-go_agent' }, 'type': 'bosh-io-stemcell', 'name': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'source': { 'name': 'bosh-warden-boshlite-ubuntu-xenial-go_agent' }, 'type': 'bosh-io-stemcell', 'name': 'stemcell-bosh-warden-boshlite-ubuntu-xenial-go_agent' }, { 'source': { 'uri': 'manifest_repo', 'branch': 'master' }, 'type': 'git', 'name': 'bosh-deployment-manifest' }], 'groups': [{ 'jobs': ['deploy-region_a-test', 'deploy-region_a-stage', 'deploy-region_a-prod'], 'name': 'deploy-region_a' }] } exp_render_j2_bosh_release = { 'resource_types': [{ 'source': { 'repository': 'cloudfoundry/bosh-deployment-resource' }, 'type': 'docker-image', 'name': 'bosh-deployment' }], 'jobs': [{ 'serial': True, 'name': 'deploy-region_a-test', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'get': 'bosh-release-get-foo' }] }, { 'aggregate': None }, { 'put': 'bd-region_a-test', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-get-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-stage', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-release-get-foo' }] }, { 'aggregate': None }, { 'put': 'bd-region_a-stage', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-get-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-prod', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-release-get-foo' }] }, { 'aggregate': None }, { 'put': 'bd-region_a-prod', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-get-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }], 'resources': [{ 'source': { 'client_secret': '((region_a.test.director_password))', 'client': '((region_a.test.director_username))', 'target': '((region_a.test.director_address))', 'ca_cert': '((region_a.test.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-test' }, { 'source': { 'client_secret': '((region_a.stage.director_password))', 'client': '((region_a.stage.director_username))', 'target': '((region_a.stage.director_address))', 'ca_cert': '((region_a.stage.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-stage' }, { 'source': { 'client_secret': '((region_a.prod.director_password))', 'client': '((region_a.prod.director_username))', 'target': '((region_a.prod.director_address))', 'ca_cert': '((region_a.prod.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-prod' }, { 'source': { 'repository': 'foo_release_repo' }, 'type': 'bosh-io-release', 'name': 'bosh-release-get-foo' }, { 'source': { 'name': 'bosh-warden-boshlite-ubuntu-trusty-go_agent' }, 'type': 'bosh-io-stemcell', 'name': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'source': { 'uri': 'manifest_repo', 'branch': 'master' }, 'type': 'git', 'name': 'bosh-deployment-manifest' }], 'groups': [{ 'jobs': ['deploy-region_a-test', 'deploy-region_a-stage', 'deploy-region_a-prod'], 'name': 'deploy-region_a' }] } exp_render_j2_bosh_release_tarball = { 'resource_types': [{ 'source': { 'repository': 'cloudfoundry/bosh-deployment-resource' }, 'type': 'docker-image', 'name': 'bosh-deployment' }], 'jobs': [{ 'serial': True, 'name': 'deploy-region_a-test', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'get': 'bosh-release-get-foo' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-test', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-stage', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-test'], 'get': 'bosh-release-get-foo' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-stage', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }, { 'serial': True, 'name': 'deploy-region_a-prod', 'plan': [{ 'do': [{ 'aggregate': [{ 'get': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-deployment-manifest' }, { 'trigger': True, 'passed': ['deploy-region_a-stage'], 'get': 'bosh-release-get-foo' }] }, { 'aggregate': [{ 'task': 'create-release-foo', 'config': { 'platform': 'linux', 'inputs': [{ 'name': 'bosh-release-get-foo' }], 'run': { 'path': 'bosh', 'args': ['create-release', '--final', '--tarball=../bosh-release-foo/release.tgz'], 'dir': 'bosh-release-get-foo' }, 'outputs': [{ 'path': '', 'name': 'bosh-release-foo' }], 'image_resource': { 'source': { 'repository': 'hkumar/bosh-cli-v2' }, 'type': 'docker-image' } } }] }, { 'put': 'bd-region_a-prod', 'params': { 'stemcells': ['stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent/*.tgz'], 'releases': ['bosh-release-foo/*.tgz'], 'manifest': 'bosh-deployment-manifest/manifests/test_manifest.yml' } }] }] }], 'resources': [{ 'source': { 'client_secret': '((region_a.test.director_password))', 'client': '((region_a.test.director_username))', 'target': '((region_a.test.director_address))', 'ca_cert': '((region_a.test.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-test' }, { 'source': { 'client_secret': '((region_a.stage.director_password))', 'client': '((region_a.stage.director_username))', 'target': '((region_a.stage.director_address))', 'ca_cert': '((region_a.stage.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-stage' }, { 'source': { 'client_secret': '((region_a.prod.director_password))', 'client': '((region_a.prod.director_username))', 'target': '((region_a.prod.director_address))', 'ca_cert': '((region_a.prod.director_ca_cert))', 'deployment': None }, 'type': 'bosh-deployment', 'name': 'bd-region_a-prod' }, { 'source': { 'uri': 'foo_release_repo', 'branch': 'master' }, 'type': 'git', 'name': 'bosh-release-get-foo' }, { 'source': { 'name': 'bosh-warden-boshlite-ubuntu-trusty-go_agent' }, 'type': 'bosh-io-stemcell', 'name': 'stemcell-bosh-warden-boshlite-ubuntu-trusty-go_agent' }, { 'source': { 'uri': 'manifest_repo', 'branch': 'master' }, 'type': 'git', 'name': 'bosh-deployment-manifest' }], 'groups': [{ 'jobs': ['deploy-region_a-test', 'deploy-region_a-stage', 'deploy-region_a-prod'], 'name': 'deploy-region_a' }] } exp_get_config_deployment = { 'concourse_target': 'cc1', 'deployments': { 'redis': { 'tests': ['sanity-tests'], 'releases': { 'redis': { 'repo': 'https://github.com/hkumarmk/redis-boshrelease.git', 'branch': 'master' } }, 'deploy_job_name': 'redis-deploy', 'vars': { 'default': { 'foo': 'bar', 'bar': 'baz' }, 'bosh_stage_reg_a': { 'foo': 'val', 'var2': 'val2' }, 'bosh_test_reg_a': { 'foo': 'baz', 'var1': 'value' } }, 'manifest': { 'repo': 'https://github.com/hkumarmk/redis-boshrelease.git', 'path': 'manifests/redis.yml' }, 'stemcells': ['bosh-warden-boshlite-ubuntu-trusty-go_agent'] } } } exp_get_config_concourse = { 'concourse': { 'cc1': { 'username': 'admin', 'name': 'localhost', 'ca_cert': '-----BEGIN CERTIFICATE-----\n' 'MIIDtzCCAp+gAwIBAgIJAMZ/qRdRamluMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV\n' 'BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\n' 'aWRnaXRzIFB0eSBMdGQwIBcNMTYwODI2MjIzMzE5WhgPMjI5MDA2MTAyMjMzMTla\n' 'MEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJ\n' 'bnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw\n' 'ggEKAoIBAQDN/bv70wDn6APMqiJZV7ESZhUyGu8OzuaeEfb+64SNvQIIME0s9+i7\n' 'D9gKAZjtoC2Tr9bJBqsKdVhREd/X6ePTaopxL8shC9GxXmTqJ1+vKT6UxN4kHr3U\n' '+Y+LK2SGYUAvE44nv7sBbiLxDl580P00ouYTf6RJgW6gOuKpIGcvsTGA4+u0UTc+\n' 'y4pj6sT0+e3xj//Y4wbLdeJ6cfcNTU63jiHpKc9Rgo4Tcy97WeEryXWz93rtRh8d\n' 'pvQKHVDU/26EkNsPSsn9AHNgaa+iOA2glZ2EzZ8xoaMPrHgQhcxoi8maFzfM2dX2\n' 'XB1BOswa/46yqfzc4xAwaW0MLZLg3NffAgMBAAGjgacwgaQwHQYDVR0OBBYEFNRJ\n' 'PYFebixALIR2Ee+yFoSqurxqMHUGA1UdIwRuMGyAFNRJPYFebixALIR2Ee+yFoSq\n' 'urxqoUmkRzBFMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8G\n' 'A1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkggkAxn+pF1FqaW4wDAYDVR0T\n' 'BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAoPTwU2rm0ca5b8xMni3vpjYmB9NW\n' 'oSpGcWENbvu/p7NpiPAe143c5EPCuEHue/AbHWWxBzNAZvhVZBeFirYNB3HYnCla\n' 'jP4WI3o2Q0MpGy3kMYigEYG76WeZAM5ovl0qDP6fKuikZofeiygb8lPs7Hv4/88x\n' 'pSsZYBm7UPTS3Pl044oZfRJdqTpyHVPDqwiYD5KQcI0yHUE9v5KC0CnqOrU/83PE\n' 'b0lpHA8bE9gQTQjmIa8MIpaP3UNTxvmKfEQnk5UAZ5xY2at5mmyj3t8woGdzoL98\n' 'yDd2GtrGsguQXM2op+4LqEdHef57g7vwolZejJqN776Xu/lZtCTp01+HTA==\n' '-----END CERTIFICATE-----\n', 'team': 'main', 'url': 'http://localhost:8080', 'insecure': False, 'password': 'admin' } } } exp_get_config_bosh = { 'bosh': { 'bosh_stage_reg_a': { 'director_address': '192.168.50.4', 'director_username': 'admin', 'director_ca_cert': '-----BEGIN CERTIFICATE-----\n' 'MIIDtzCCAp+gAwIBAgIJAMZ/qRdRamluMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV\n' 'BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\n' 'aWRnaXRzIFB0eSBMdGQwIBcNMTYwODI2MjIzMzE5WhgPMjI5MDA2MTAyMjMzMTla\n' 'MEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJ\n' 'bnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw\n' 'ggEKAoIBAQDN/bv70wDn6APMqiJZV7ESZhUyGu8OzuaeEfb+64SNvQIIME0s9+i7\n' 'D9gKAZjtoC2Tr9bJBqsKdVhREd/X6ePTaopxL8shC9GxXmTqJ1+vKT6UxN4kHr3U\n' '+Y+LK2SGYUAvE44nv7sBbiLxDl580P00ouYTf6RJgW6gOuKpIGcvsTGA4+u0UTc+\n' 'y4pj6sT0+e3xj//Y4wbLdeJ6cfcNTU63jiHpKc9Rgo4Tcy97WeEryXWz93rtRh8d\n' 'pvQKHVDU/26EkNsPSsn9AHNgaa+iOA2glZ2EzZ8xoaMPrHgQhcxoi8maFzfM2dX2\n' 'XB1BOswa/46yqfzc4xAwaW0MLZLg3NffAgMBAAGjgacwgaQwHQYDVR0OBBYEFNRJ\n' 'PYFebixALIR2Ee+yFoSqurxqMHUGA1UdIwRuMGyAFNRJPYFebixALIR2Ee+yFoSq\n' 'urxqoUmkRzBFMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8G\n' 'A1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkggkAxn+pF1FqaW4wDAYDVR0T\n' 'BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAoPTwU2rm0ca5b8xMni3vpjYmB9NW\n' 'oSpGcWENbvu/p7NpiPAe143c5EPCuEHue/AbHWWxBzNAZvhVZBeFirYNB3HYnCla\n' 'jP4WI3o2Q0MpGy3kMYigEYG76WeZAM5ovl0qDP6fKuikZofeiygb8lPs7Hv4/88x\n' 'pSsZYBm7UPTS3Pl044oZfRJdqTpyHVPDqwiYD5KQcI0yHUE9v5KC0CnqOrU/83PE\n' 'b0lpHA8bE9gQTQjmIa8MIpaP3UNTxvmKfEQnk5UAZ5xY2at5mmyj3t8woGdzoL98\n' 'yDd2GtrGsguQXM2op+4LqEdHef57g7vwolZejJqN776Xu/lZtCTp01+HTA==\n' '-----END CERTIFICATE-----\n', 'director_password': 'admin' } } } exp_targets = ""
39.360566
158
0.409653
2,465
36,133
5.872211
0.06856
0.057064
0.041313
0.067979
0.962418
0.962418
0.962142
0.956753
0.946529
0.946529
0
0.018005
0.442034
36,133
918
159
39.360566
0.699965
0
0
0.844127
0
0
0.437012
0.240992
0
0
0
0
0
1
0
false
0.035126
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e06975298d5b90426d2905ee8452b8f5d8098efa
218
py
Python
haystack/nodes/reader/__init__.py
Kau5h1K/ds5500-userprivacy-deploy
38c91d20596163427b4f169c9ee221057ac438ce
[ "Apache-2.0" ]
1
2021-11-19T15:01:00.000Z
2021-11-19T15:01:00.000Z
haystack/nodes/reader/__init__.py
jaehyeongAN/haystack
b63669d1bc60b6c773b8b89d631afdd0ebbf4c4c
[ "Apache-2.0" ]
null
null
null
haystack/nodes/reader/__init__.py
jaehyeongAN/haystack
b63669d1bc60b6c773b8b89d631afdd0ebbf4c4c
[ "Apache-2.0" ]
1
2021-02-16T10:52:38.000Z
2021-02-16T10:52:38.000Z
from haystack.nodes.reader.base import BaseReader from haystack.nodes.reader.farm import FARMReader from haystack.nodes.reader.transformers import TransformersReader from haystack.nodes.reader.table import TableReader
43.6
65
0.87156
28
218
6.785714
0.464286
0.252632
0.357895
0.484211
0
0
0
0
0
0
0
0
0.073395
218
4
66
54.5
0.940594
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
e06a4371595ceebefde786d048a330a9cb92b508
6,035
py
Python
drawit_v3.py
JerrieYuan/DrawItforSublimeText
0ba8acd030a60bacd4a21227673b9af1005cad50
[ "MIT" ]
2
2016-02-06T02:15:35.000Z
2016-02-09T06:59:25.000Z
drawit_v3.py
JerrieYuan/DrawItforSublimeText
0ba8acd030a60bacd4a21227673b9af1005cad50
[ "MIT" ]
null
null
null
drawit_v3.py
JerrieYuan/DrawItforSublimeText
0ba8acd030a60bacd4a21227673b9af1005cad50
[ "MIT" ]
null
null
null
import sublime_plugin import sublime class DrawIt: def addspace(self,s,edit,x,y): n = s.view.text_point(y, 0) newline = s.view.line(n) end = newline.size() num = 0 space = "" if end<x+1: num = x + 1 - end for i in range(0,num): space = space + " " s.view.insert(edit,end+n,space) return x+n def addnewline(self,s,edit): s.view.insert(edit,s.view.size(),"\n") class DownCommand(sublime_plugin.TextCommand): def run(self, edit): draw = DrawIt() regions = self.view.sel() region = regions[0] point = region.begin() old = self.view.substr(point) old_left = self.view.substr(point-1) size = self.view.size() height,width = self.view.rowcol(size) x = 0 y = 0 y,x = self.view.rowcol(point) #self.view.insert(edit,point,"["+old+"]") if old == "\n" : self.view.insert(edit,point," ") newregion = sublime.Region(point,point+1) if(old == "-" or old_left == "-"): self.view.replace(edit, newregion, "+") else: if(old !="+" and old_left!="+"): self.view.replace(edit, newregion, "|") if y == height : draw.addnewline(self,edit) y = y + 1 point = draw.addspace(self,edit,x,y) newregion = sublime.Region(point,point+1) old = self.view.substr(point) old_left = self.view.substr(point-1) if(old == "-" or old_left == "-"): self.view.replace(edit, newregion, "+") else: if(old !="+" and old_left!="+"): self.view.replace(edit, newregion, "|") newregion = sublime.Region(point,point) regions.clear() regions.add(newregion) class SpaceCommand(sublime_plugin.TextCommand): def run(self, edit): draw = DrawIt() regions = self.view.sel() region = regions[0] point = region.begin() old = self.view.substr(point) old_left = self.view.substr(point-1) size = self.view.size() height,width = self.view.rowcol(size) x = 0 y = 0 y,x = self.view.rowcol(point) #self.view.insert(edit,point,"["+old+"]") if old == "\n" : self.view.insert(edit,point," ") newregion = sublime.Region(point,point+1) self.view.replace(edit, newregion, " ") if y == height : draw.addnewline(self,edit) y = y + 1 point = draw.addspace(self,edit,x,y) newregion = sublime.Region(point,point+1) old = self.view.substr(point) old_left = self.view.substr(point-1) self.view.replace(edit, newregion, " ") newregion = sublime.Region(point,point) regions.clear() regions.add(newregion) class UpCommand(sublime_plugin.TextCommand): def run(self, edit): regions = self.view.sel() region = regions[0] point = region.begin() old = self.view.substr(point) old_left = self.view.substr(point-1) if old == "\n" : self.view.insert(edit,point," ") newregion = sublime.Region(point,point+1) if(old == "-" or old_left == "-"): self.view.replace(edit, newregion, "+") else: if(old !="+" and old_left!="+"): self.view.replace(edit, newregion, "|") x = 0 y = 0 y,x = self.view.rowcol(point) y =y-1 n = self.view.text_point(y, 0) newline = self.view.line(n) end = newline.size() num = 0 space = "" if end<x+1: num = x + 1 - end for i in range(0,num): space = space + " " self.view.insert(edit,end+n,space) point = x+n old = self.view.substr(point) old_left = self.view.substr(point-1) newregion = sublime.Region(x+n,x+n+1) if(old == "-" or old_left == "-"): self.view.replace(edit, newregion, "+") else: if(old !="+" and old_left!="+"): self.view.replace(edit, newregion, "|") newregion = sublime.Region(x+n,x+n) regions.clear() regions.add(newregion) class LeftCommand(sublime_plugin.TextCommand): def run(self, edit): regions = self.view.sel() region = regions[0] point = region.begin() old = self.view.substr(point) old_left = self.view.substr(point-1) x = 0 y = 0 y,x = self.view.rowcol(point) if x>0: newregion = sublime.Region(point-1,point) right_region = sublime.Region(point,point+1) if(old == "|"): self.view.replace(edit, right_region, "+") if(old_left=="|"): self.view.replace(edit, newregion, "+") else: if old_left!="+": self.view.replace(edit, newregion, "-") newregion = sublime.Region(point-1,point-1) regions.clear() regions.add(newregion) class RightCommand(sublime_plugin.TextCommand): def run(self, edit): regions = self.view.sel() region = regions[0] point = region.begin() old = self.view.substr(point) size = self.view.size() height,width = self.view.rowcol(size) x = 0 y = 0 y,x = self.view.rowcol(point) if y == height : self.view.insert(edit,self.view.size(),"\n") if old == "\n": self.view.insert(edit,point," ") newregion = sublime.Region(point,point+1) if old == "|": self.view.replace(edit, newregion, "+") else: if old != "+": self.view.replace(edit, newregion, "-") newregion = sublime.Region(point+1,point+1) regions.clear() regions.add(newregion)
28.738095
59
0.513339
725
6,035
4.235862
0.08
0.148486
0.060892
0.083035
0.912406
0.912406
0.859004
0.849235
0.842722
0.842722
0
0.01225
0.3372
6,035
210
60
28.738095
0.7555
0.013256
0
0.798817
0
0
0.00907
0
0
0
0
0
0
1
0.04142
false
0
0.011834
0
0.094675
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
0ec0a96c4235f3a5a435394781d020eb4061dade
47
py
Python
python/cuml/_thirdparty/sklearn/utils/__init__.py
garanews/cuml
318f521a1d2681f4622a44921d27b5f592fe4407
[ "Apache-2.0" ]
null
null
null
python/cuml/_thirdparty/sklearn/utils/__init__.py
garanews/cuml
318f521a1d2681f4622a44921d27b5f592fe4407
[ "Apache-2.0" ]
null
null
null
python/cuml/_thirdparty/sklearn/utils/__init__.py
garanews/cuml
318f521a1d2681f4622a44921d27b5f592fe4407
[ "Apache-2.0" ]
null
null
null
from . import validation from . import extmath
15.666667
24
0.787234
6
47
6.166667
0.666667
0.540541
0
0
0
0
0
0
0
0
0
0
0.170213
47
2
25
23.5
0.948718
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
0eccfeb35d5792ee34eb58e69971b7c9ac86dd6a
5,982
py
Python
test/functions/decl11.py
Setonas/MagicSetonas
ef76da5f27a0506b194c58072b81424e3ce985d7
[ "MIT" ]
5
2017-02-22T10:17:39.000Z
2021-04-06T16:36:13.000Z
test/functions/decl11.py
Setonas/MagicSetonas
ef76da5f27a0506b194c58072b81424e3ce985d7
[ "MIT" ]
null
null
null
test/functions/decl11.py
Setonas/MagicSetonas
ef76da5f27a0506b194c58072b81424e3ce985d7
[ "MIT" ]
1
2020-08-29T02:30:52.000Z
2020-08-29T02:30:52.000Z
# testing annotations split over multiple lines apibrėžti foo(a:('abc' 'apibrėžti')==123, boo: 'abc' 'apibrėžti' == foo(n(m=0))) # : comment.line.number-sign.python, punctuation.definition.comment.python, source.python testing annotations split over multiple lines : comment.line.number-sign.python, source.python apibrėžti : meta.function.python, source.python, storage.type.function.python : meta.function.python, source.python foo : entity.name.function.python, meta.function.python, source.python ( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python a : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python : : meta.function.parameters.python, meta.function.python, punctuation.separator.annotation.python, source.python ( : meta.function.parameters.python, meta.function.python, punctuation.parenthesis.begin.python, source.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python abc : meta.function.parameters.python, meta.function.python, source.python, string.quoted.single.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python : meta.function.parameters.python, meta.function.python, source.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python apibrėžti : meta.function.parameters.python, meta.function.python, source.python, string.quoted.single.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python ) : meta.function.parameters.python, meta.function.python, punctuation.parenthesis.end.python, source.python == : keyword.operator.comparison.python, meta.function.parameters.python, meta.function.python, source.python 123 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python , : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python : meta.function.parameters.python, meta.function.python, source.python boo : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python : : meta.function.parameters.python, meta.function.python, punctuation.separator.annotation.python, source.python : meta.function.parameters.python, meta.function.python, source.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python abc : meta.function.parameters.python, meta.function.python, source.python, string.quoted.single.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python : meta.function.parameters.python, meta.function.python, source.python : meta.function.parameters.python, meta.function.python, source.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python apibrėžti : meta.function.parameters.python, meta.function.python, source.python, string.quoted.single.python ' : meta.function.parameters.python, meta.function.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python : meta.function.parameters.python, meta.function.python, source.python == : keyword.operator.comparison.python, meta.function.parameters.python, meta.function.python, source.python : meta.function.parameters.python, meta.function.python, source.python foo : meta.function-call.generic.python, meta.function-call.python, meta.function.parameters.python, meta.function.python, source.python ( : meta.function-call.python, meta.function.parameters.python, meta.function.python, punctuation.definition.arguments.begin.python, source.python n : meta.function-call.arguments.python, meta.function-call.generic.python, meta.function-call.python, meta.function.parameters.python, meta.function.python, source.python ( : meta.function-call.arguments.python, meta.function-call.python, meta.function.parameters.python, meta.function.python, punctuation.definition.arguments.begin.python, source.python m : meta.function-call.arguments.python, meta.function-call.python, meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function-call.python = : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, meta.function.parameters.python, meta.function.python, source.python 0 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, meta.function.parameters.python, meta.function.python, source.python ) : meta.function-call.arguments.python, meta.function-call.python, meta.function.parameters.python, meta.function.python, punctuation.definition.arguments.end.python, source.python ) : meta.function-call.python, meta.function.parameters.python, meta.function.python, punctuation.definition.arguments.end.python, source.python ) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
112.867925
195
0.742728
688
5,982
6.457849
0.074128
0.270088
0.364619
0.226874
0.945082
0.926176
0.900068
0.887013
0.880036
0.880036
0
0.001556
0.140254
5,982
52
196
115.038462
0.862337
0.024239
0
0.5
0
0.173913
0.004114
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
11
0ee174296bc2ab79a740f2caa85389217d73650a
5,671
py
Python
epayco_django/migrations/0003_auto_20200812_1401.py
GearPlug/epayco_django
729ad34b4a370e255fb75e987736871ae6997faa
[ "MIT" ]
null
null
null
epayco_django/migrations/0003_auto_20200812_1401.py
GearPlug/epayco_django
729ad34b4a370e255fb75e987736871ae6997faa
[ "MIT" ]
null
null
null
epayco_django/migrations/0003_auto_20200812_1401.py
GearPlug/epayco_django
729ad34b4a370e255fb75e987736871ae6997faa
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2020-08-12 14:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('epayco_django', '0002_transaction_id_max_length'), ] operations = [ migrations.AlterField( model_name='paymentconfirmation', name='amount', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='amount_base', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='amount_country', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='amount_ok', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='approval_code', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='bank_name', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='business', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='cardnumber', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='cod_response', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='cod_transaction_state', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='currency_code', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='cust_id_cliente', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_city', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_country', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_doctype', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_document', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_email', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_ind_pais', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_ip', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_lastname', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_movil', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_name', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='customer_phone', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='errorcode', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='franchise', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='invoice_id', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='ref_payco', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='response', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='response_reason_text', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='signature', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='tax', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='transaction_date', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='transaction_id', field=models.TextField(), ), migrations.AlterField( model_name='paymentconfirmation', name='transaction_state', field=models.TextField(), ), ]
30.820652
60
0.542232
401
5,671
7.496259
0.169576
0.226214
0.282768
0.328011
0.890885
0.877246
0.877246
0.857951
0.857951
0.666334
0
0.005164
0.351261
5,671
183
61
30.989071
0.811905
0.007935
0
0.768362
1
0
0.198435
0.009068
0
0
0
0
0
1
0
false
0
0.00565
0
0.022599
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
11
1644e420e236a0cd10d4d82ae4205a5556f45931
113
py
Python
stests/generators/wg_100/__main__.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/generators/wg_100/__main__.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/generators/wg_100/__main__.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
from stests.generators import launcher from stests.generators.wg_100 import meta launcher.start_generator(meta)
22.6
41
0.858407
16
113
5.9375
0.625
0.210526
0.421053
0
0
0
0
0
0
0
0
0.029126
0.088496
113
4
42
28.25
0.893204
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
1
1
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
16bd52933a28626a4603cdc138c368067b7e1533
5,411
py
Python
webapp.py
Zehuayu/BMI
8bb66bddc857c9daca1f04767168f7955914fd9b
[ "MIT" ]
null
null
null
webapp.py
Zehuayu/BMI
8bb66bddc857c9daca1f04767168f7955914fd9b
[ "MIT" ]
7
2016-10-24T20:08:19.000Z
2016-11-27T19:48:02.000Z
webapp.py
Zehuayu/BMI
8bb66bddc857c9daca1f04767168f7955914fd9b
[ "MIT" ]
null
null
null
from flask import Flask,render_template,url_for,flash,request import sqlite3 app = Flask(__name__) app.secret_key='123' @app.route('/') def hello_world(): indexCss=url_for("static",filename="css/indexCss.css") mainJs=url_for("static",filename="js/main_part.js") loginButton=url_for("static",filename="images/loginButton.png") login=url_for("static",filename="images/login.jpg") titlePic=url_for("static",filename="images/title.png") ex1=url_for("static",filename="images/ex1.jpg") ex2=url_for("static",filename="images/ex2.jpg") ex3=url_for("static",filename="images/ex3.png") titleBg=url_for("static",filename="images/titleBg.png") modelBg=url_for("static",filename="images/modelBg.png") bg=url_for("static",filename="images/bg.jpg") return render_template("index.html",mainJs=mainJs,indexCss=indexCss,loginButton=loginButton,login=login,titlePic=titlePic,ex1=ex1,ex2=ex2,ex3=ex3,titleBg=titleBg,modelBg=modelBg,bg=bg) @app.route('/login', methods=['POST']) def login(): indexCss=url_for("static",filename="css/indexCss.css") loginedCss=url_for("static",filename="css/loginedCss.css") mainJs=url_for("static",filename="js/main_part.js") convertJs=url_for("static",filename="js/convert.js") loginButton=url_for("static",filename="images/loginButton.png") login=url_for("static",filename="images/login.jpg") titlePic=url_for("static",filename="images/title.png") ex1=url_for("static",filename="images/ex1.jpg") ex2=url_for("static",filename="images/ex2.jpg") ex3=url_for("static",filename="images/ex3.png") titleBg=url_for("static",filename="images/titleBg.png") modelBg=url_for("static",filename="images/modelBg.png") bg=url_for("static",filename="images/bg.jpg") form = request.form username = form.get('username') password = form.get('password') if not username: flash("please input username !") return render_template("index.html",convertJs=convertJs,indexCss=indexCss,mainJs=mainJs,loginButton=loginButton,login=login,titlePic=titlePic,ex1=ex1,ex2=ex2,ex3=ex3,titleBg=titleBg,modelBg=modelBg,bg=bg) elif not password: flash("please input password !") return render_template("index.html",convertJs=convertJs,indexCss=indexCss,mainJs=mainJs,loginButton=loginButton,login=login,titlePic=titlePic,ex1=ex1,ex2=ex2,ex3=ex3,titleBg=titleBg,modelBg=modelBg,bg=bg) else: sql = 'SELECT * FROM mytable' conn = sqlite3.connect('data/data.db') cur = conn.cursor() rows = cur.execute(sql) conn.commit() for row in rows: un = row[1] pw = row[2] if (username == un and password == pw): flash(row[1]) return render_template("logined.html",convertJs=convertJs,loginedCss=loginedCss,mainJs=mainJs,loginButton=loginButton,login=login,ex3=ex3,titlePic=titlePic,titleBg=titleBg,modelBg=modelBg,bg=bg) cur.close() conn.close() flash("user name or password is wrong !") return render_template("index.html",convertJs=convertJs,indexCss=indexCss,mainJs=mainJs,loginButton=loginButton,login=login,titlePic=titlePic,ex1=ex1,ex2=ex2,ex3=ex3,titleBg=titleBg,modelBg=modelBg,bg=bg) cur.close() conn.close() @app.route('/register') def registerNow(): registerCss=url_for("static",filename="css/registerCss.css") registerBkg=url_for("static",filename="images/registerBg.jpg") registerButton=url_for("static",filename="images/registerButton.png") register=url_for("static",filename="images/register.png") return render_template("register.html",registerCss=registerCss,registerButton=registerButton,register=register,registerBkg=registerBkg) @app.route('/register', methods=['POST']) def register(): registerCss=url_for("static",filename="css/registerCss.css") registerBkg=url_for("static",filename="images/registerBg.jpg") registerButton=url_for("static",filename="images/registerButton.png") register=url_for("static",filename="images/register.png") form = request.form username = form.get('username') password = form.get('password') if not username: flash("please input username !") return render_template("register.html",registerCss=registerCss,registerButton=registerButton,register=register,registerBkg=registerBkg) elif not password: flash("please input password !") return render_template("register.html",registerCss=registerCss,registerButton=registerButton,register=register,registerBkg=registerBkg) else: sql = str('INSERT INTO mytable(name,password) VALUES (?,?)') conn = sqlite3.connect('data/data.db') cur = conn.cursor() cur.execute(sql,(username,password)) conn.commit() cur.close() conn.close() flash("success !") return render_template("register.html",registerCss=registerCss,registerButton=registerButton,register=register,registerBkg=registerBkg) @app.route('/moreInfo') def init(): registerBkg=url_for("static",filename="images/registerBg.jpg") moreInfoCss=url_for("static",filename="css/moreInfoCss.css") return render_template("moreInfo.html",moreInfoCss=moreInfoCss,registerBkg=registerBkg); if __name__ == '__main__': app.run()
46.247863
212
0.703936
662
5,411
5.660121
0.148036
0.056045
0.108887
0.181479
0.808647
0.775554
0.763811
0.763811
0.72885
0.706966
0
0.010167
0.145629
5,411
117
213
46.247863
0.800346
0
0
0.666667
0
0
0.225795
0.033075
0
0
0
0
0
1
0.050505
false
0.10101
0.020202
0
0.171717
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
16bd8cb81a1b134a90ede21a76db8685a75686c0
19,011
py
Python
desktop/core/src/desktop/api_tests.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
3
2018-01-29T14:16:02.000Z
2019-02-05T21:33:05.000Z
desktop/core/src/desktop/api_tests.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
4
2021-03-11T04:02:00.000Z
2022-03-27T08:31:56.000Z
desktop/core/src/desktop/api_tests.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2
2019-12-05T17:24:36.000Z
2021-11-22T21:21:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. 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 json from nose.tools import assert_true, assert_false, assert_equal, assert_not_equal, assert_raises from nose.plugins.skip import SkipTest from django.contrib.auth.models import User from desktop.api import massaged_documents_for_json, _get_docs from desktop.conf import USE_NEW_EDITOR from desktop.lib.django_test_util import make_logged_in_client from desktop.lib.test_utils import grant_access from desktop.models import DocumentTag , Document from pig.models import PigScript from useradmin.models import get_default_user_group class TestDocModelTags(): def setUp(self): self.client = make_logged_in_client(username="tag_user", recreate=True, is_superuser=False) self.client_not_me = make_logged_in_client(username="not_tag_user", recreate=True, is_superuser=False) self.user = User.objects.get(username="tag_user") self.user_not_me = User.objects.get(username="not_tag_user") grant_access(self.user.username, self.user.username, "desktop") grant_access(self.user_not_me.username, self.user_not_me.username, "desktop") def add_tag(self, name, expected_status=0): response = self.client.post("/desktop/api/tag/add_tag", {'name': name}) content = json.loads(response.content) assert_equal(content['status'], expected_status, content) return content.get('id') def add_doc(self, name): script = PigScript.objects.create(owner=self.user) doc = Document.objects.link(script, owner=script.owner, name=name) return script, doc def share_doc(self, doc, permissions): response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps(*permissions) }) def share_doc_read_only(self, doc): return self.share_doc(doc, { 'read': { 'user_ids': [ self.user.id ], 'group_ids': [] }, 'write': { 'user_ids': [], 'group_ids': [] } }) def test_add_tag(self): raise SkipTest response = self.client.get("/desktop/api/tag/add_tag") assert_equal(response.status_code, 405) response = self.client.post("/desktop/api/tag/add_tag") content = json.loads(response.content) assert_equal(content['status'], -1, content) assert_equal(content['message'], "Form is missing 'name' field", content) tag_id = self.add_tag('my_tag') assert_true(DocumentTag.objects.filter(id=tag_id, owner=self.user, tag='my_tag').exists()) def test_add_duplicate_tag(self): tag_name = 'test_add_duplicate_tag' n = DocumentTag.objects.filter(owner=self.user, tag=tag_name).count() tag_id = self.add_tag(tag_name) assert_equal(n + 1, DocumentTag.objects.filter(owner=self.user, tag=tag_name).count()) tag_id = self.add_tag(tag_name, expected_status=-1) assert_equal(n + 1, DocumentTag.objects.filter(owner=self.user, tag=tag_name).count()) def test_add_and_clean_duplicate_tag(self): tag_name = 'test_add_and_clean_duplicate_tag' script, doc = self.add_doc('test-pig') n = DocumentTag.objects.filter(owner=self.user, tag=tag_name).count() tag_id = self.add_tag(tag_name) assert_equal(n + 1, DocumentTag.objects.filter(owner=self.user, tag=tag_name).count()) tag_id = DocumentTag.objects.tag(self.user, doc.id, tag_name=tag_name) assert_equal(n + 1, DocumentTag.objects.filter(owner=self.user, tag=tag_name).count()) def test_remove_tags(self): response = self.client.post("/desktop/api/tag/add_tag", {'name': 'my_tag'}) tag_id = json.loads(response.content)['id'] response = self.client.get("/desktop/api/tag/remove_tag") assert_equal(response.status_code, 405) # Only the owner can remove tags. response = self.client_not_me.post("/desktop/api/tag/remove_tag", {'tag_id': tag_id}) content = json.loads(response.content) assert_equal(content['status'], -1, content) assert_equal(content['message'], "DocumentTag matching query does not exist.", content) response = self.client.post("/desktop/api/tag/remove_tag", {'tag_id': tag_id}) assert_equal(0, json.loads(response.content)['status'], response.content) assert_false(DocumentTag.objects.filter(id=tag_id).exists()) def test_massaged_documents_for_json(self): docs = _get_docs(self.user) assert_equal({}, massaged_documents_for_json(docs, self.user)) tag_name = 'test_massaged_documents_for_json' script, doc = self.add_doc('test_massaged_documents_for_json') docs = _get_docs(self.user) assert_not_equal({}, massaged_documents_for_json(docs, self.user)) def test_tag_errors(self): script, doc = self.add_doc('tag_pig_errors') # Users without permission cannot see docs. response = self.client_not_me.post("/desktop/api/doc/tag", {'data': json.dumps({'doc_id': doc.id, 'tag': 'pig'})}) content = json.loads(response.content) assert_equal(content['status'], -1, content) assert_equal(content['message'], "Document matching query does not exist.", content) # Users with permission cannot tag docs. self.share_doc_read_only(doc) response = self.client_not_me.post("/desktop/api/doc/tag", {'data': json.dumps({'doc_id': doc.id, 'tag': 'pig'})}) content = json.loads(response.content) assert_equal(content['status'], -1, content) assert_equal(content['message'], "Document matching query does not exist.", content) def test_tag(self): script, doc = self.add_doc('tag_pig') # Owners can add tags. response = self.client.post("/desktop/api/doc/tag", {'data': json.dumps({'doc_id': doc.id, 'tag': 'pig'})}) assert_equal(0, json.loads(response.content)['status'], response.content) tag2_id = self.add_tag('pig2') response = self.client.post("/desktop/api/doc/tag", {'data': json.dumps({'doc_id': doc.id, 'tag_id': tag2_id})}) assert_equal(0, json.loads(response.content)['status'], response.content) def test_update_tags(self): script, doc = self.add_doc('update_tags') default_tag = DocumentTag.objects.get_default_tag(self.user) tag1_id = self.add_tag('update_tags_1') tag2_id = self.add_tag('update_tags_2') response = self.client.post("/desktop/api/doc/update_tags", {'data': json.dumps({'doc_id': doc.id, 'tag_ids': [tag1_id, tag2_id]})}) content = json.loads(response.content) assert_equal(0, content['status'], content) assert_equal([ {"id": default_tag.id, "name": "default"}, {"id": tag1_id, "name": "update_tags_1"}, {"id": tag2_id, "name": "update_tags_2"} ], sorted(content['doc']['tags'], key=lambda t: t['id'])) # Only the owner can update tags. response = self.client_not_me.post("/desktop/api/doc/update_tags", {'data': json.dumps({'doc_id': doc.id, 'tag_ids': [tag1_id, tag2_id]})}) content = json.loads(response.content) assert_equal(content['status'], -1, response.content) assert_equal(content['message'], "Document matching query does not exist.", content) # todo no default tag on test user? class TestDocModelPermissions(): def setUp(self): self.client = make_logged_in_client(username="perm_user", groupname="default", recreate=True, is_superuser=False) self.client_not_me = make_logged_in_client(username="not_perm_user", groupname="default", recreate=True, is_superuser=False) self.user = User.objects.get(username="perm_user") self.user_not_me = User.objects.get(username="not_perm_user") self.old_home_path = '/home2' if USE_NEW_EDITOR.get() else '/home' grant_access(self.user.username, self.user.username, "desktop") grant_access(self.user_not_me.username, self.user_not_me.username, "desktop") PigScript.objects.filter(owner=self.user).delete() Document.objects.filter(owner=self.user).delete() def _add_doc(self, name): script, created = PigScript.objects.get_or_create(owner=self.user) doc = Document.objects.link(script, owner=script.owner, name=name) return script, doc def test_update_permissions(self): script, doc = self._add_doc('test_update_permissions') response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({'read': {'user_ids': [self.user.id, self.user_not_me.id], 'group_ids': []}}) }) assert_equal(0, json.loads(response.content)['status'], response.content) def test_share_document_permissions(self): # No doc response = self.client.get(self.old_home_path) assert_equal({}, json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_equal({}, json.loads(response.context[0]['json_documents'])) # Add doc script, doc = self._add_doc('test_update_permissions') doc_id = '%s' % doc.id response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_false(doc_id in json.loads(response.context[0]['json_documents'])) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_false(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) # Share by user response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id, self.user_not_me.id ], 'group_ids': [] }, 'write': { 'user_ids': [], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_true(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) # Un-share response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id ], 'group_ids': [] }, 'write': { 'user_ids': [], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_false(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_false(doc_id in json.loads(response.context[0]['json_documents'])) # Share by group default_group = get_default_user_group() response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id ], 'group_ids': [ default_group.id ] }, 'write': { 'user_ids': [], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_true(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) # Un-share response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id ], 'group_ids': [] }, 'write': { 'user_ids': [], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_false(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_false(doc_id in json.loads(response.context[0]['json_documents'])) # Modify by user response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id ], 'group_ids': [] }, 'write': { 'user_ids': [ self.user_not_me.id ], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_true(doc.can_read(self.user_not_me)) assert_true(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) # Un-share response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id ], 'group_ids': [] }, 'write': { 'user_ids': [], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_false(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_false(doc_id in json.loads(response.context[0]['json_documents'])) # Modify by group response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id ], 'group_ids': [] }, 'write': { 'user_ids': [], 'group_ids': [ default_group.id ] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_true(doc.can_read(self.user_not_me)) assert_true(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) # Un-share response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id ], 'group_ids': [] }, 'write': { 'user_ids': [], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_false(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) response = self.client.get(self.old_home_path) assert_true(doc_id in json.loads(response.context[0]['json_documents'])) response = self.client_not_me.get(self.old_home_path) assert_false(doc_id in json.loads(response.context[0]['json_documents'])) def test_update_permissions_cannot_escalate_privileges(self): script, doc = self._add_doc('test_update_permissions_cannot_escape_privileges') # Share read permissions response = self.client.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id, self.user_not_me.id, ], 'group_ids': [] }, 'write': { 'user_ids': [ self.user.id, ], 'group_ids': [] } }) }) assert_equal(0, json.loads(response.content)['status'], response.content) assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_true(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me)) # Try, and fail to escalate privileges. response = self.client_not_me.post("/desktop/api/doc/update_permissions", { 'doc_id': doc.id, 'data': json.dumps({ 'read': { 'user_ids': [ self.user.id, self.user_not_me.id, ], 'group_ids': [] }, 'write': { 'user_ids': [ self.user_not_me.id, self.user_not_me.id, ], 'group_ids': [] } }) }) content = json.loads(response.content) assert_equal(content['status'], -1) assert_equal(content['message'], "Document does not exist or you don\'t have the permission to access it.") assert_true(doc.can_read(self.user)) assert_true(doc.can_write(self.user)) assert_true(doc.can_read(self.user_not_me)) assert_false(doc.can_write(self.user_not_me))
34.502722
143
0.65804
2,615
19,011
4.538815
0.082218
0.062684
0.068245
0.038335
0.801584
0.785155
0.751622
0.733423
0.713624
0.69492
0
0.004783
0.197149
19,011
550
144
34.565455
0.772849
0.060649
0
0.711864
0
0
0.150031
0.048533
0
0
0
0.001818
0.249395
1
0.043584
false
0
0.026634
0.002421
0.084746
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
bc5022c2e4eea4e04186675e93820aebd0fb8a9b
2,779
py
Python
odor_tracking_sim/video_generating_commands.py
annierak/odor_tracking_sim
4600a7be942666c3a5a0f366dab6d14838f332a0
[ "MIT" ]
null
null
null
odor_tracking_sim/video_generating_commands.py
annierak/odor_tracking_sim
4600a7be942666c3a5a0f366dab6d14838f332a0
[ "MIT" ]
null
null
null
odor_tracking_sim/video_generating_commands.py
annierak/odor_tracking_sim
4600a7be942666c3a5a0f366dab6d14838f332a0
[ "MIT" ]
null
null
null
run_sim('flies315_101',45.,10.,t_stop=100., swarm_size =1000,start_type='fh',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.008, display_speed=2.,heading_data=None,wind_data_file=None,puffs=False,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_101',vid_speed=10.) run_sim('flies315_102',45.,10.,t_stop=100., swarm_size =1000,start_type='fh',wind_slippage=(0.,1.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=None,wind_data_file=None,puffs=False,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_102',vid_speed=60.) run_sim('flies315_103',45.,10.,t_stop=100., swarm_size =1000,start_type='cvrw',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=None,wind_data_file=None,puffs=False,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_103',vid_speed=60.) run_sim('flies315_104',45.,10.,t_stop=100., swarm_size =1000,start_type='fh',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=heading_data,wind_data_file=None,puffs=False,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_104',vid_speed=60.) run_sim('flies315_105',45.,10.,t_stop=100., swarm_size =1000,start_type='fh',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=heading_data,wind_data_file=wind_data_file,puffs=True,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_105',vid_speed=60.) run_sim('flies315_106',45.,10.,t_stop=100., swarm_size =1000,start_type='fh',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=None,wind_data_file=None,puffs=True,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_106',vid_speed=60.) run_sim('flies315_107',45.,100.,t_stop=100., swarm_size =1000,start_type='fh',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=None,wind_data_file=None,puffs=False,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_107',vid_speed=60.) run_sim('flies315_108',45.,10.,t_stop=100., swarm_size =1000,start_type='fh',wind_slippage=(0.,0.),kappa=2.,upper_prob=0.002, display_speed=10,heading_data=None,wind_data_file=None,puffs=False,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_108',vid_speed=60.) run_sim('flies315_109',45.,10.,t_stop=100., swarm_size =1000,start_type='cvrw',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=None,wind_data_file=None,puffs=True,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_109',vid_speed=60.) run_sim('flies315_110',45.,10.,t_stop=100., swarm_size =1000,start_type='cvrw',wind_slippage=(0.,0.),kappa=0.,upper_prob=0.002, display_speed=10,heading_data=None,wind_data_file=wind_data_file,puffs=False,flies=True, release_delay=0.,wind_dt=5,video_name='flies315_110',vid_speed=60.)
55.58
95
0.791292
526
2,779
3.865019
0.10076
0.064929
0.070831
0.063945
0.935563
0.935563
0.841122
0.829316
0.829316
0.829316
0
0.132353
0.021231
2,779
49
96
56.714286
0.615074
0
0
0.325
0
0
0.095718
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
bc58883f067bb8e3310b719f48f3b3cc2758149b
25,967
py
Python
influxdb_client/service/dbr_ps_service.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
380
2019-09-19T20:20:10.000Z
2022-03-31T12:59:33.000Z
influxdb_client/service/dbr_ps_service.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
362
2019-09-16T11:53:29.000Z
2022-03-29T03:11:59.000Z
influxdb_client/service/dbr_ps_service.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
130
2019-09-20T08:02:35.000Z
2022-03-30T16:44:45.000Z
# coding: utf-8 """ Influx OSS API Service. No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six class DBRPsService(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): # noqa: E501,D401,D403 """DBRPsService - a operation defined in OpenAPI.""" if api_client is None: raise ValueError("Invalid value for `api_client`, must be defined.") self.api_client = api_client def delete_dbrpid(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Delete a database retention policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_dbrpid(org_id, dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.delete_dbrpid_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 else: (data) = self.delete_dbrpid_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 return data def delete_dbrpid_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Delete a database retention policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_dbrpid_with_http_info(org_id, dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() all_params = ['org_id', 'dbrp_id', 'zap_trace_span'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') all_params.append('urlopen_kw') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_dbrpid" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'org_id' is set if ('org_id' not in local_var_params or local_var_params['org_id'] is None): raise ValueError("Missing the required parameter `org_id` when calling `delete_dbrpid`") # noqa: E501 # verify the required parameter 'dbrp_id' is set if ('dbrp_id' not in local_var_params or local_var_params['dbrp_id'] is None): raise ValueError("Missing the required parameter `dbrp_id` when calling `delete_dbrpid`") # noqa: E501 collection_formats = {} path_params = {} if 'dbrp_id' in local_var_params: path_params['dbrpID'] = local_var_params['dbrp_id'] # noqa: E501 query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 # urlopen optional setting urlopen_kw = None if 'urlopen_kw' in kwargs: urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( '/api/v2/dbrps/{dbrpID}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, urlopen_kw=urlopen_kw) def get_dbr_ps(self, org_id, **kwargs): # noqa: E501,D401,D403 """List all database retention policy mappings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_dbr_ps(org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID to filter on (required) :param str zap_trace_span: OpenTracing span context :param str id: Specifies the mapping ID to filter on :param str bucket_id: Specifies the bucket ID to filter on :param bool default: Specifies filtering on default :param str db: Specifies the database to filter on :param str rp: Specifies the retention policy to filter on :return: DBRPs If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_dbr_ps_with_http_info(org_id, **kwargs) # noqa: E501 else: (data) = self.get_dbr_ps_with_http_info(org_id, **kwargs) # noqa: E501 return data def get_dbr_ps_with_http_info(self, org_id, **kwargs): # noqa: E501,D401,D403 """List all database retention policy mappings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_dbr_ps_with_http_info(org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID to filter on (required) :param str zap_trace_span: OpenTracing span context :param str id: Specifies the mapping ID to filter on :param str bucket_id: Specifies the bucket ID to filter on :param bool default: Specifies filtering on default :param str db: Specifies the database to filter on :param str rp: Specifies the retention policy to filter on :return: DBRPs If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() all_params = ['org_id', 'zap_trace_span', 'id', 'bucket_id', 'default', 'db', 'rp'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') all_params.append('urlopen_kw') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_dbr_ps" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'org_id' is set if ('org_id' not in local_var_params or local_var_params['org_id'] is None): raise ValueError("Missing the required parameter `org_id` when calling `get_dbr_ps`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 if 'id' in local_var_params: query_params.append(('id', local_var_params['id'])) # noqa: E501 if 'bucket_id' in local_var_params: query_params.append(('bucketID', local_var_params['bucket_id'])) # noqa: E501 if 'default' in local_var_params: query_params.append(('default', local_var_params['default'])) # noqa: E501 if 'db' in local_var_params: query_params.append(('db', local_var_params['db'])) # noqa: E501 if 'rp' in local_var_params: query_params.append(('rp', local_var_params['rp'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 # urlopen optional setting urlopen_kw = None if 'urlopen_kw' in kwargs: urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( '/api/v2/dbrps', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DBRPs', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, urlopen_kw=urlopen_kw) def get_dbr_ps_id(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Retrieve a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_dbr_ps_id(org_id, dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping ID (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_dbr_ps_id_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 else: (data) = self.get_dbr_ps_id_with_http_info(org_id, dbrp_id, **kwargs) # noqa: E501 return data def get_dbr_ps_id_with_http_info(self, org_id, dbrp_id, **kwargs): # noqa: E501,D401,D403 """Retrieve a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_dbr_ps_id_with_http_info(org_id, dbrp_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping ID (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() all_params = ['org_id', 'dbrp_id', 'zap_trace_span'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') all_params.append('urlopen_kw') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_dbr_ps_id" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'org_id' is set if ('org_id' not in local_var_params or local_var_params['org_id'] is None): raise ValueError("Missing the required parameter `org_id` when calling `get_dbr_ps_id`") # noqa: E501 # verify the required parameter 'dbrp_id' is set if ('dbrp_id' not in local_var_params or local_var_params['dbrp_id'] is None): raise ValueError("Missing the required parameter `dbrp_id` when calling `get_dbr_ps_id`") # noqa: E501 collection_formats = {} path_params = {} if 'dbrp_id' in local_var_params: path_params['dbrpID'] = local_var_params['dbrp_id'] # noqa: E501 query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 # urlopen optional setting urlopen_kw = None if 'urlopen_kw' in kwargs: urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( '/api/v2/dbrps/{dbrpID}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DBRP', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, urlopen_kw=urlopen_kw) def patch_dbrpid(self, org_id, dbrp_id, dbrp_update, **kwargs): # noqa: E501,D401,D403 """Update a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_dbrpid(org_id, dbrp_id, dbrp_update, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping. (required) :param DBRPUpdate dbrp_update: Database retention policy update to apply (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.patch_dbrpid_with_http_info(org_id, dbrp_id, dbrp_update, **kwargs) # noqa: E501 else: (data) = self.patch_dbrpid_with_http_info(org_id, dbrp_id, dbrp_update, **kwargs) # noqa: E501 return data def patch_dbrpid_with_http_info(self, org_id, dbrp_id, dbrp_update, **kwargs): # noqa: E501,D401,D403 """Update a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_dbrpid_with_http_info(org_id, dbrp_id, dbrp_update, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: Specifies the organization ID of the mapping (required) :param str dbrp_id: The database retention policy mapping. (required) :param DBRPUpdate dbrp_update: Database retention policy update to apply (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() all_params = ['org_id', 'dbrp_id', 'dbrp_update', 'zap_trace_span'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') all_params.append('urlopen_kw') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_dbrpid" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'org_id' is set if ('org_id' not in local_var_params or local_var_params['org_id'] is None): raise ValueError("Missing the required parameter `org_id` when calling `patch_dbrpid`") # noqa: E501 # verify the required parameter 'dbrp_id' is set if ('dbrp_id' not in local_var_params or local_var_params['dbrp_id'] is None): raise ValueError("Missing the required parameter `dbrp_id` when calling `patch_dbrpid`") # noqa: E501 # verify the required parameter 'dbrp_update' is set if ('dbrp_update' not in local_var_params or local_var_params['dbrp_update'] is None): raise ValueError("Missing the required parameter `dbrp_update` when calling `patch_dbrpid`") # noqa: E501 collection_formats = {} path_params = {} if 'dbrp_id' in local_var_params: path_params['dbrpID'] = local_var_params['dbrp_id'] # noqa: E501 query_params = [] if 'org_id' in local_var_params: query_params.append(('orgID', local_var_params['org_id'])) # noqa: E501 header_params = {} if 'zap_trace_span' in local_var_params: header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'dbrp_update' in local_var_params: body_params = local_var_params['dbrp_update'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 # urlopen optional setting urlopen_kw = None if 'urlopen_kw' in kwargs: urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( '/api/v2/dbrps/{dbrpID}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DBRP', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, urlopen_kw=urlopen_kw) def post_dbrp(self, dbrp, **kwargs): # noqa: E501,D401,D403 """Add a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_dbrp(dbrp, async_req=True) >>> result = thread.get() :param async_req bool :param DBRP dbrp: The database retention policy mapping to add (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, returns the request thread. """ # noqa: E501 kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.post_dbrp_with_http_info(dbrp, **kwargs) # noqa: E501 else: (data) = self.post_dbrp_with_http_info(dbrp, **kwargs) # noqa: E501 return data def post_dbrp_with_http_info(self, dbrp, **kwargs): # noqa: E501,D401,D403 """Add a database retention policy mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_dbrp_with_http_info(dbrp, async_req=True) >>> result = thread.get() :param async_req bool :param DBRP dbrp: The database retention policy mapping to add (required) :param str zap_trace_span: OpenTracing span context :return: DBRP If the method is called asynchronously, returns the request thread. """ # noqa: E501 local_var_params = locals() all_params = ['dbrp', 'zap_trace_span'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') all_params.append('urlopen_kw') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method post_dbrp" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'dbrp' is set if ('dbrp' not in local_var_params or local_var_params['dbrp'] is None): raise ValueError("Missing the required parameter `dbrp` when calling `post_dbrp`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} if 'zap_trace_span' in local_var_params: header_params['Zap-Trace-Span'] = local_var_params['zap_trace_span'] # noqa: E501 form_params = [] local_var_files = {} body_params = None if 'dbrp' in local_var_params: body_params = local_var_params['dbrp'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 # urlopen optional setting urlopen_kw = None if 'urlopen_kw' in kwargs: urlopen_kw = kwargs['urlopen_kw'] return self.api_client.call_api( '/api/v2/dbrps', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DBRP', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats, urlopen_kw=urlopen_kw)
42.291531
120
0.626372
3,255
25,967
4.708141
0.05745
0.055334
0.0877
0.029233
0.941599
0.937618
0.930832
0.923458
0.912822
0.903687
0
0.018372
0.285208
25,967
613
121
42.360522
0.807284
0.330073
0
0.777448
1
0
0.183027
0.024494
0
0
0
0
0
1
0.032641
false
0
0.008902
0
0.089021
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
bc723ab4c10dccafd96ed35658e9b1d8e54ab739
21,571
py
Python
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF 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 os from mock.mock import MagicMock, call, patch from stacks.utils.RMFTestCase import * import socket class TestHiveServer(RMFTestCase): def test_configure_default(self): self.executeScript("2.0.6/services/HIVE/package/scripts/hive_server.py", classname = "HiveServer", command = "configure", config_file="default.json" ) self.assert_configure_default() self.assertNoMoreResources() @patch("hive_service.check_fs_root") @patch("socket.socket") def test_start_default(self, socket_mock, check_fs_root_mock): s = socket_mock.return_value self.executeScript("2.0.6/services/HIVE/package/scripts/hive_server.py", classname = "HiveServer", command = "start", config_file="default.json" ) self.assert_configure_default() self.assertResourceCalled('HdfsDirectory', '/apps/tez/', action = ['create_delayed'], mode = 0755, owner = 'tez', security_enabled = False, keytab = UnknownConfigurationMock(), conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', bin_dir = '/usr/bin', kinit_path_local = "/usr/bin/kinit" ) self.assertResourceCalled('HdfsDirectory', '/apps/tez/lib/', action = ['create_delayed'], mode = 0755, owner = 'tez', security_enabled = False, keytab = UnknownConfigurationMock(), conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', bin_dir = '/usr/bin', kinit_path_local = "/usr/bin/kinit" ) self.assertResourceCalled('HdfsDirectory', None, security_enabled = False, keytab = UnknownConfigurationMock(), conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', kinit_path_local = '/usr/bin/kinit', bin_dir = '/usr/bin', action = ['create'] ) self.assertResourceCalled('CopyFromLocal', '/usr/lib/tez/tez*.jar', mode=0755, owner='tez', dest_dir='/apps/tez/', kinnit_if_needed='', hadoop_conf_dir='/etc/hadoop/conf', hdfs_user='hdfs' ) self.assertResourceCalled('CopyFromLocal', '/usr/lib/tez/lib/*.jar', mode=0755, owner='tez', dest_dir='/apps/tez/lib/', kinnit_if_needed='', hadoop_conf_dir='/etc/hadoop/conf', hdfs_user='hdfs' ) self.assertResourceCalled('Execute', 'env JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /tmp/start_hiveserver2_script /var/log/hive/hive-server2.out /var/log/hive/hive-server2.log /var/run/hive/hive-server.pid /etc/hive/conf.server /var/log/hive', not_if = 'ls /var/run/hive/hive-server.pid >/dev/null 2>&1 && ps `cat /var/run/hive/hive-server.pid` >/dev/null 2>&1', environment = {'PATH' : os.environ['PATH'] + os.pathsep + "/usr/lib/hive/bin", 'HADOOP_HOME' : '/usr'}, user = 'hive' ) self.assertResourceCalled('Execute', '/usr/jdk64/jdk1.7.0_45/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/mysql-connector-java.jar org.apache.ambari.server.DBConnectionVerification \'jdbc:mysql://c6402.ambari.apache.org/hive?createDatabaseIfNotExist=true\' hive \'!`"\'"\'"\' 1\' com.mysql.jdbc.Driver', path=['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], tries=5, try_sleep=10 ) self.assertNoMoreResources() self.assertTrue(check_fs_root_mock.called) self.assertTrue(socket_mock.called) self.assertTrue(s.close.called) @patch("socket.socket") def test_stop_default(self, socket_mock): self.executeScript("2.0.6/services/HIVE/package/scripts/hive_server.py", classname = "HiveServer", command = "stop", config_file="default.json" ) self.assertResourceCalled('Execute', 'kill `cat /var/run/hive/hive-server.pid` >/dev/null 2>&1 && rm -f /var/run/hive/hive-server.pid', not_if = '! (ls /var/run/hive/hive-server.pid >/dev/null 2>&1 && ps `cat /var/run/hive/hive-server.pid` >/dev/null 2>&1)' ) self.assertNoMoreResources() self.assertFalse(socket_mock.called) def test_configure_secured(self): self.executeScript("2.0.6/services/HIVE/package/scripts/hive_server.py", classname = "HiveServer", command = "configure", config_file="secured.json" ) self.assert_configure_secured() self.assertNoMoreResources() @patch("hive_service.check_fs_root") @patch("socket.socket") def test_start_secured(self, socket_mock, check_fs_root_mock): s = socket_mock.return_value self.executeScript("2.0.6/services/HIVE/package/scripts/hive_server.py", classname = "HiveServer", command = "start", config_file="secured.json" ) self.assert_configure_secured() self.assertResourceCalled('Execute', 'env JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /tmp/start_hiveserver2_script /var/log/hive/hive-server2.out /var/log/hive/hive-server2.log /var/run/hive/hive-server.pid /etc/hive/conf.server /var/log/hive', not_if = 'ls /var/run/hive/hive-server.pid >/dev/null 2>&1 && ps `cat /var/run/hive/hive-server.pid` >/dev/null 2>&1', environment = {'PATH' : os.environ['PATH'] + os.pathsep + "/usr/lib/hive/bin", 'HADOOP_HOME' : '/usr'}, user = 'hive' ) self.assertResourceCalled('Execute', '/usr/jdk64/jdk1.7.0_45/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/mysql-connector-java.jar org.apache.ambari.server.DBConnectionVerification \'jdbc:mysql://c6402.ambari.apache.org/hive?createDatabaseIfNotExist=true\' hive \'!`"\'"\'"\' 1\' com.mysql.jdbc.Driver', path=['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], tries=5, try_sleep=10 ) self.assertNoMoreResources() self.assertTrue(check_fs_root_mock.called) self.assertTrue(socket_mock.called) self.assertTrue(s.close.called) @patch("socket.socket") def test_stop_secured(self, socket_mock): self.executeScript("2.0.6/services/HIVE/package/scripts/hive_server.py", classname = "HiveServer", command = "stop", config_file="secured.json" ) self.assertResourceCalled('Execute', 'kill `cat /var/run/hive/hive-server.pid` >/dev/null 2>&1 && rm -f /var/run/hive/hive-server.pid', not_if = '! (ls /var/run/hive/hive-server.pid >/dev/null 2>&1 && ps `cat /var/run/hive/hive-server.pid` >/dev/null 2>&1)' ) self.assertNoMoreResources() self.assertFalse(socket_mock.called) def assert_configure_default(self): self.assertResourceCalled('HdfsDirectory', '/apps/hive/warehouse', security_enabled = False, keytab = UnknownConfigurationMock(), conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', kinit_path_local = '/usr/bin/kinit', mode = 0777, owner = 'hive', bin_dir = '/usr/bin', action = ['create_delayed'], ) self.assertResourceCalled('HdfsDirectory', '/user/hive', security_enabled = False, keytab = UnknownConfigurationMock(), conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', kinit_path_local = '/usr/bin/kinit', mode = 0700, owner = 'hive', bin_dir = '/usr/bin', action = ['create_delayed'], ) self.assertResourceCalled('HdfsDirectory', None, security_enabled = False, keytab = UnknownConfigurationMock(), conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', kinit_path_local = '/usr/bin/kinit', bin_dir = '/usr/bin', action = ['create'], ) self.assertResourceCalled('Directory', '/etc/hive/conf.server', owner = 'hive', group = 'hadoop', recursive = True, ) self.assertResourceCalled('XmlConfig', 'mapred-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf.server', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['mapred-site'], owner = 'hive', configurations = self.getConfig()['configurations']['mapred-site'], ) self.assertResourceCalled('XmlConfig', 'hive-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf.server', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['hive-site'], owner = 'hive', configurations = self.getConfig()['configurations']['hive-site'], ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh', content = InlineTemplate(self.getConfig()['configurations']['hive-env']['content']), owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-default.xml.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-exec-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('Directory', '/etc/hive/conf', owner = 'hive', group = 'hadoop', recursive = True, ) self.assertResourceCalled('XmlConfig', 'mapred-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['mapred-site'], owner = 'hive', configurations = self.getConfig()['configurations']['mapred-site'], ) self.assertResourceCalled('XmlConfig', 'hive-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['hive-site'], owner = 'hive', configurations = self.getConfig()['configurations']['hive-site'], ) self.assertResourceCalled('File', '/etc/hive/conf/hive-env.sh', content = InlineTemplate(self.getConfig()['configurations']['hive-env']['content']), owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf/hive-default.xml.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf/hive-env.sh.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf/hive-exec-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('File', '/etc/hive/conf/hive-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('Execute', 'hive mkdir -p /tmp/AMBARI-artifacts/ ; cp /usr/share/java/mysql-connector-java.jar /usr/lib/hive/lib//mysql-connector-java.jar', creates = '/usr/lib/hive/lib//mysql-connector-java.jar', path = ['/bin', '/usr/bin/'], environment = {'PATH' : os.environ['PATH'] + os.pathsep + "/usr/lib/hive/bin"}, not_if = 'test -f /usr/lib/hive/lib//mysql-connector-java.jar', ) self.assertResourceCalled('Execute', '/bin/sh -c \'cd /usr/lib/ambari-agent/ && curl -kf -x "" --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar\'', environment = {'no_proxy': 'c6401.ambari.apache.org'}, not_if = '[ -f DBConnectionVerification.jar]', ) self.assertResourceCalled('File', '/tmp/start_hiveserver2_script', content = Template('startHiveserver2.sh.j2'), mode = 0755, ) self.assertResourceCalled('Directory', '/var/run/hive', owner = 'hive', group = 'hadoop', mode = 0755, recursive = True, ) self.assertResourceCalled('Directory', '/var/log/hive', owner = 'hive', group = 'hadoop', mode = 0755, recursive = True, ) self.assertResourceCalled('Directory', '/var/lib/hive', owner = 'hive', group = 'hadoop', mode = 0755, recursive = True, ) def assert_configure_secured(self): self.assertResourceCalled('HdfsDirectory', '/apps/hive/warehouse', security_enabled = True, keytab = '/etc/security/keytabs/hdfs.headless.keytab', conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', kinit_path_local = '/usr/bin/kinit', bin_dir = '/usr/bin', mode = 0777, owner = 'hive', action = ['create_delayed'], ) self.assertResourceCalled('HdfsDirectory', '/user/hive', security_enabled = True, keytab = '/etc/security/keytabs/hdfs.headless.keytab', conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', kinit_path_local = '/usr/bin/kinit', mode = 0700, bin_dir = '/usr/bin', owner = 'hive', action = ['create_delayed'], ) self.assertResourceCalled('HdfsDirectory', None, security_enabled = True, keytab = '/etc/security/keytabs/hdfs.headless.keytab', conf_dir = '/etc/hadoop/conf', hdfs_user = 'hdfs', bin_dir = '/usr/bin', kinit_path_local = '/usr/bin/kinit', action = ['create'], ) self.assertResourceCalled('Directory', '/etc/hive/conf.server', owner = 'hive', group = 'hadoop', recursive = True, ) self.assertResourceCalled('XmlConfig', 'mapred-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf.server', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['mapred-site'], owner = 'hive', configurations = self.getConfig()['configurations']['mapred-site'], ) self.assertResourceCalled('XmlConfig', 'hive-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf.server', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['hive-site'], owner = 'hive', configurations = self.getConfig()['configurations']['hive-site'], ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh', content = InlineTemplate(self.getConfig()['configurations']['hive-env']['content']), owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-default.xml.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-exec-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('File', '/etc/hive/conf.server/hive-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('Directory', '/etc/hive/conf', owner = 'hive', group = 'hadoop', recursive = True, ) self.assertResourceCalled('XmlConfig', 'mapred-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['mapred-site'], owner = 'hive', configurations = self.getConfig()['configurations']['mapred-site'], ) self.assertResourceCalled('XmlConfig', 'hive-site.xml', group = 'hadoop', conf_dir = '/etc/hive/conf', mode = 0644, configuration_attributes = self.getConfig()['configuration_attributes']['hive-site'], owner = 'hive', configurations = self.getConfig()['configurations']['hive-site'], ) self.assertResourceCalled('File', '/etc/hive/conf/hive-env.sh', content = InlineTemplate(self.getConfig()['configurations']['hive-env']['content']), owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf/hive-default.xml.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf/hive-env.sh.template', owner = 'hive', group = 'hadoop', ) self.assertResourceCalled('File', '/etc/hive/conf/hive-exec-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('File', '/etc/hive/conf/hive-log4j.properties', content = 'log4jproperties\nline2', owner = 'hive', group = 'hadoop', mode = 0644, ) self.assertResourceCalled('Execute', 'hive mkdir -p /tmp/AMBARI-artifacts/ ; cp /usr/share/java/mysql-connector-java.jar /usr/lib/hive/lib//mysql-connector-java.jar', creates = '/usr/lib/hive/lib//mysql-connector-java.jar', path = ['/bin', '/usr/bin/'], environment = {'PATH' : os.environ['PATH'] + os.pathsep + "/usr/lib/hive/bin"}, not_if = 'test -f /usr/lib/hive/lib//mysql-connector-java.jar', ) self.assertResourceCalled('Execute', '/bin/sh -c \'cd /usr/lib/ambari-agent/ && curl -kf -x "" --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar\'', environment = {'no_proxy': 'c6401.ambari.apache.org'}, not_if = '[ -f DBConnectionVerification.jar]', ) self.assertResourceCalled('File', '/tmp/start_hiveserver2_script', content = Template('startHiveserver2.sh.j2'), mode = 0755, ) self.assertResourceCalled('Directory', '/var/run/hive', owner = 'hive', group = 'hadoop', mode = 0755, recursive = True, ) self.assertResourceCalled('Directory', '/var/log/hive', owner = 'hive', group = 'hadoop', mode = 0755, recursive = True, ) self.assertResourceCalled('Directory', '/var/lib/hive', owner = 'hive', group = 'hadoop', mode = 0755, recursive = True, ) @patch("hive_service.check_fs_root") @patch("time.time") @patch("socket.socket") def test_socket_timeout(self, socket_mock, time_mock, check_fs_root_mock): s = socket_mock.return_value s.connect = MagicMock() s.connect.side_effect = socket.error("") time_mock.side_effect = [0, 1000, 2000, 3000, 4000] try: self.executeScript("2.0.6/services/HIVE/package/scripts/hive_server.py", classname = "HiveServer", command = "start", config_file="default.json" ) self.fail("Script failure due to socket error was expected") except: self.assert_configure_default() self.assertTrue(socket_mock.called) self.assertTrue(s.close.called)
41.482692
342
0.581568
2,241
21,571
5.504239
0.116466
0.118687
0.03032
0.048642
0.913498
0.904499
0.900932
0.898338
0.896879
0.866153
0
0.018867
0.272681
21,571
519
343
41.56262
0.767353
0.000927
0
0.795309
0
0.025586
0.323856
0.17458
0
0
0
0
0.179104
0
null
null
0
0.008529
null
null
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
8
bcc0ae244dea7e1e855e16d40f259fe0b80d0431
44,368
py
Python
sdk/python/pulumi_azure/appinsights/insights.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/appinsights/insights.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/appinsights/insights.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['InsightsArgs', 'Insights'] @pulumi.input_type class InsightsArgs: def __init__(__self__, *, application_type: pulumi.Input[str], resource_group_name: pulumi.Input[str], daily_data_cap_in_gb: Optional[pulumi.Input[float]] = None, daily_data_cap_notifications_disabled: Optional[pulumi.Input[bool]] = None, disable_ip_masking: Optional[pulumi.Input[bool]] = None, local_authentication_disabled: Optional[pulumi.Input[bool]] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, retention_in_days: Optional[pulumi.Input[int]] = None, sampling_percentage: Optional[pulumi.Input[float]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, workspace_id: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Insights resource. :param pulumi.Input[str] application_type: Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the Application Insights component. :param pulumi.Input[float] daily_data_cap_in_gb: Specifies the Application Insights component daily data volume cap in GB. :param pulumi.Input[bool] daily_data_cap_notifications_disabled: Specifies if a notification email will be send when the daily data volume cap is met. :param pulumi.Input[bool] disable_ip_masking: By default the real client ip is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client ip. Defaults to `false`. :param pulumi.Input[bool] local_authentication_disabled: Disable Non-Azure AD based Auth. Defaults to `false`. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[str] name: Specifies the name of the Application Insights component. Changing this forces a new resource to be created. :param pulumi.Input[int] retention_in_days: Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`. :param pulumi.Input[float] sampling_percentage: Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. :param pulumi.Input[str] workspace_id: Specifies the id of a log analytics workspace resource """ pulumi.set(__self__, "application_type", application_type) pulumi.set(__self__, "resource_group_name", resource_group_name) if daily_data_cap_in_gb is not None: pulumi.set(__self__, "daily_data_cap_in_gb", daily_data_cap_in_gb) if daily_data_cap_notifications_disabled is not None: pulumi.set(__self__, "daily_data_cap_notifications_disabled", daily_data_cap_notifications_disabled) if disable_ip_masking is not None: pulumi.set(__self__, "disable_ip_masking", disable_ip_masking) if local_authentication_disabled is not None: pulumi.set(__self__, "local_authentication_disabled", local_authentication_disabled) if location is not None: pulumi.set(__self__, "location", location) if name is not None: pulumi.set(__self__, "name", name) if retention_in_days is not None: pulumi.set(__self__, "retention_in_days", retention_in_days) if sampling_percentage is not None: pulumi.set(__self__, "sampling_percentage", sampling_percentage) if tags is not None: pulumi.set(__self__, "tags", tags) if workspace_id is not None: pulumi.set(__self__, "workspace_id", workspace_id) @property @pulumi.getter(name="applicationType") def application_type(self) -> pulumi.Input[str]: """ Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created. """ return pulumi.get(self, "application_type") @application_type.setter def application_type(self, value: pulumi.Input[str]): pulumi.set(self, "application_type", value) @property @pulumi.getter(name="resourceGroupName") def resource_group_name(self) -> pulumi.Input[str]: """ The name of the resource group in which to create the Application Insights component. """ return pulumi.get(self, "resource_group_name") @resource_group_name.setter def resource_group_name(self, value: pulumi.Input[str]): pulumi.set(self, "resource_group_name", value) @property @pulumi.getter(name="dailyDataCapInGb") def daily_data_cap_in_gb(self) -> Optional[pulumi.Input[float]]: """ Specifies the Application Insights component daily data volume cap in GB. """ return pulumi.get(self, "daily_data_cap_in_gb") @daily_data_cap_in_gb.setter def daily_data_cap_in_gb(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "daily_data_cap_in_gb", value) @property @pulumi.getter(name="dailyDataCapNotificationsDisabled") def daily_data_cap_notifications_disabled(self) -> Optional[pulumi.Input[bool]]: """ Specifies if a notification email will be send when the daily data volume cap is met. """ return pulumi.get(self, "daily_data_cap_notifications_disabled") @daily_data_cap_notifications_disabled.setter def daily_data_cap_notifications_disabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "daily_data_cap_notifications_disabled", value) @property @pulumi.getter(name="disableIpMasking") def disable_ip_masking(self) -> Optional[pulumi.Input[bool]]: """ By default the real client ip is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client ip. Defaults to `false`. """ return pulumi.get(self, "disable_ip_masking") @disable_ip_masking.setter def disable_ip_masking(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "disable_ip_masking", value) @property @pulumi.getter(name="localAuthenticationDisabled") def local_authentication_disabled(self) -> Optional[pulumi.Input[bool]]: """ Disable Non-Azure AD based Auth. Defaults to `false`. """ return pulumi.get(self, "local_authentication_disabled") @local_authentication_disabled.setter def local_authentication_disabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "local_authentication_disabled", value) @property @pulumi.getter def location(self) -> Optional[pulumi.Input[str]]: """ Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. """ return pulumi.get(self, "location") @location.setter def location(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "location", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Specifies the name of the Application Insights component. Changing this forces a new resource to be created. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="retentionInDays") def retention_in_days(self) -> Optional[pulumi.Input[int]]: """ Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`. """ return pulumi.get(self, "retention_in_days") @retention_in_days.setter def retention_in_days(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "retention_in_days", value) @property @pulumi.getter(name="samplingPercentage") def sampling_percentage(self) -> Optional[pulumi.Input[float]]: """ Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. """ return pulumi.get(self, "sampling_percentage") @sampling_percentage.setter def sampling_percentage(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "sampling_percentage", value) @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: """ A mapping of tags to assign to the resource. """ return pulumi.get(self, "tags") @tags.setter def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): pulumi.set(self, "tags", value) @property @pulumi.getter(name="workspaceId") def workspace_id(self) -> Optional[pulumi.Input[str]]: """ Specifies the id of a log analytics workspace resource """ return pulumi.get(self, "workspace_id") @workspace_id.setter def workspace_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "workspace_id", value) @pulumi.input_type class _InsightsState: def __init__(__self__, *, app_id: Optional[pulumi.Input[str]] = None, application_type: Optional[pulumi.Input[str]] = None, connection_string: Optional[pulumi.Input[str]] = None, daily_data_cap_in_gb: Optional[pulumi.Input[float]] = None, daily_data_cap_notifications_disabled: Optional[pulumi.Input[bool]] = None, disable_ip_masking: Optional[pulumi.Input[bool]] = None, instrumentation_key: Optional[pulumi.Input[str]] = None, local_authentication_disabled: Optional[pulumi.Input[bool]] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, retention_in_days: Optional[pulumi.Input[int]] = None, sampling_percentage: Optional[pulumi.Input[float]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, workspace_id: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering Insights resources. :param pulumi.Input[str] app_id: The App ID associated with this Application Insights component. :param pulumi.Input[str] application_type: Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created. :param pulumi.Input[str] connection_string: The Connection String for this Application Insights component. (Sensitive) :param pulumi.Input[float] daily_data_cap_in_gb: Specifies the Application Insights component daily data volume cap in GB. :param pulumi.Input[bool] daily_data_cap_notifications_disabled: Specifies if a notification email will be send when the daily data volume cap is met. :param pulumi.Input[bool] disable_ip_masking: By default the real client ip is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client ip. Defaults to `false`. :param pulumi.Input[str] instrumentation_key: The Instrumentation Key for this Application Insights component. (Sensitive) :param pulumi.Input[bool] local_authentication_disabled: Disable Non-Azure AD based Auth. Defaults to `false`. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[str] name: Specifies the name of the Application Insights component. Changing this forces a new resource to be created. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the Application Insights component. :param pulumi.Input[int] retention_in_days: Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`. :param pulumi.Input[float] sampling_percentage: Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. :param pulumi.Input[str] workspace_id: Specifies the id of a log analytics workspace resource """ if app_id is not None: pulumi.set(__self__, "app_id", app_id) if application_type is not None: pulumi.set(__self__, "application_type", application_type) if connection_string is not None: pulumi.set(__self__, "connection_string", connection_string) if daily_data_cap_in_gb is not None: pulumi.set(__self__, "daily_data_cap_in_gb", daily_data_cap_in_gb) if daily_data_cap_notifications_disabled is not None: pulumi.set(__self__, "daily_data_cap_notifications_disabled", daily_data_cap_notifications_disabled) if disable_ip_masking is not None: pulumi.set(__self__, "disable_ip_masking", disable_ip_masking) if instrumentation_key is not None: pulumi.set(__self__, "instrumentation_key", instrumentation_key) if local_authentication_disabled is not None: pulumi.set(__self__, "local_authentication_disabled", local_authentication_disabled) if location is not None: pulumi.set(__self__, "location", location) if name is not None: pulumi.set(__self__, "name", name) if resource_group_name is not None: pulumi.set(__self__, "resource_group_name", resource_group_name) if retention_in_days is not None: pulumi.set(__self__, "retention_in_days", retention_in_days) if sampling_percentage is not None: pulumi.set(__self__, "sampling_percentage", sampling_percentage) if tags is not None: pulumi.set(__self__, "tags", tags) if workspace_id is not None: pulumi.set(__self__, "workspace_id", workspace_id) @property @pulumi.getter(name="appId") def app_id(self) -> Optional[pulumi.Input[str]]: """ The App ID associated with this Application Insights component. """ return pulumi.get(self, "app_id") @app_id.setter def app_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "app_id", value) @property @pulumi.getter(name="applicationType") def application_type(self) -> Optional[pulumi.Input[str]]: """ Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created. """ return pulumi.get(self, "application_type") @application_type.setter def application_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "application_type", value) @property @pulumi.getter(name="connectionString") def connection_string(self) -> Optional[pulumi.Input[str]]: """ The Connection String for this Application Insights component. (Sensitive) """ return pulumi.get(self, "connection_string") @connection_string.setter def connection_string(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "connection_string", value) @property @pulumi.getter(name="dailyDataCapInGb") def daily_data_cap_in_gb(self) -> Optional[pulumi.Input[float]]: """ Specifies the Application Insights component daily data volume cap in GB. """ return pulumi.get(self, "daily_data_cap_in_gb") @daily_data_cap_in_gb.setter def daily_data_cap_in_gb(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "daily_data_cap_in_gb", value) @property @pulumi.getter(name="dailyDataCapNotificationsDisabled") def daily_data_cap_notifications_disabled(self) -> Optional[pulumi.Input[bool]]: """ Specifies if a notification email will be send when the daily data volume cap is met. """ return pulumi.get(self, "daily_data_cap_notifications_disabled") @daily_data_cap_notifications_disabled.setter def daily_data_cap_notifications_disabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "daily_data_cap_notifications_disabled", value) @property @pulumi.getter(name="disableIpMasking") def disable_ip_masking(self) -> Optional[pulumi.Input[bool]]: """ By default the real client ip is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client ip. Defaults to `false`. """ return pulumi.get(self, "disable_ip_masking") @disable_ip_masking.setter def disable_ip_masking(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "disable_ip_masking", value) @property @pulumi.getter(name="instrumentationKey") def instrumentation_key(self) -> Optional[pulumi.Input[str]]: """ The Instrumentation Key for this Application Insights component. (Sensitive) """ return pulumi.get(self, "instrumentation_key") @instrumentation_key.setter def instrumentation_key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "instrumentation_key", value) @property @pulumi.getter(name="localAuthenticationDisabled") def local_authentication_disabled(self) -> Optional[pulumi.Input[bool]]: """ Disable Non-Azure AD based Auth. Defaults to `false`. """ return pulumi.get(self, "local_authentication_disabled") @local_authentication_disabled.setter def local_authentication_disabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "local_authentication_disabled", value) @property @pulumi.getter def location(self) -> Optional[pulumi.Input[str]]: """ Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. """ return pulumi.get(self, "location") @location.setter def location(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "location", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Specifies the name of the Application Insights component. Changing this forces a new resource to be created. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="resourceGroupName") def resource_group_name(self) -> Optional[pulumi.Input[str]]: """ The name of the resource group in which to create the Application Insights component. """ return pulumi.get(self, "resource_group_name") @resource_group_name.setter def resource_group_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "resource_group_name", value) @property @pulumi.getter(name="retentionInDays") def retention_in_days(self) -> Optional[pulumi.Input[int]]: """ Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`. """ return pulumi.get(self, "retention_in_days") @retention_in_days.setter def retention_in_days(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "retention_in_days", value) @property @pulumi.getter(name="samplingPercentage") def sampling_percentage(self) -> Optional[pulumi.Input[float]]: """ Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. """ return pulumi.get(self, "sampling_percentage") @sampling_percentage.setter def sampling_percentage(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "sampling_percentage", value) @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: """ A mapping of tags to assign to the resource. """ return pulumi.get(self, "tags") @tags.setter def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): pulumi.set(self, "tags", value) @property @pulumi.getter(name="workspaceId") def workspace_id(self) -> Optional[pulumi.Input[str]]: """ Specifies the id of a log analytics workspace resource """ return pulumi.get(self, "workspace_id") @workspace_id.setter def workspace_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "workspace_id", value) class Insights(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, application_type: Optional[pulumi.Input[str]] = None, daily_data_cap_in_gb: Optional[pulumi.Input[float]] = None, daily_data_cap_notifications_disabled: Optional[pulumi.Input[bool]] = None, disable_ip_masking: Optional[pulumi.Input[bool]] = None, local_authentication_disabled: Optional[pulumi.Input[bool]] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, retention_in_days: Optional[pulumi.Input[int]] = None, sampling_percentage: Optional[pulumi.Input[float]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, workspace_id: Optional[pulumi.Input[str]] = None, __props__=None): """ Manages an Application Insights component. ## Example Usage ```python import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_insights = azure.appinsights.Insights("exampleInsights", location=example_resource_group.location, resource_group_name=example_resource_group.name, application_type="web") pulumi.export("instrumentationKey", example_insights.instrumentation_key) pulumi.export("appId", example_insights.app_id) ``` ### Workspace Mode ```python import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", location=example_resource_group.location, resource_group_name=example_resource_group.name, sku="PerGB2018", retention_in_days=30) example_insights = azure.appinsights.Insights("exampleInsights", location=example_resource_group.location, resource_group_name=example_resource_group.name, workspace_id=example_analytics_workspace.id, application_type="web") pulumi.export("instrumentationKey", example_insights.instrumentation_key) pulumi.export("appId", example_insights.app_id) ``` ## Import Application Insights instances can be imported using the `resource id`, e.g. ```sh $ pulumi import azure:appinsights/insights:Insights instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.insights/components/instance1 ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] application_type: Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created. :param pulumi.Input[float] daily_data_cap_in_gb: Specifies the Application Insights component daily data volume cap in GB. :param pulumi.Input[bool] daily_data_cap_notifications_disabled: Specifies if a notification email will be send when the daily data volume cap is met. :param pulumi.Input[bool] disable_ip_masking: By default the real client ip is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client ip. Defaults to `false`. :param pulumi.Input[bool] local_authentication_disabled: Disable Non-Azure AD based Auth. Defaults to `false`. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[str] name: Specifies the name of the Application Insights component. Changing this forces a new resource to be created. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the Application Insights component. :param pulumi.Input[int] retention_in_days: Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`. :param pulumi.Input[float] sampling_percentage: Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. :param pulumi.Input[str] workspace_id: Specifies the id of a log analytics workspace resource """ ... @overload def __init__(__self__, resource_name: str, args: InsightsArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Manages an Application Insights component. ## Example Usage ```python import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_insights = azure.appinsights.Insights("exampleInsights", location=example_resource_group.location, resource_group_name=example_resource_group.name, application_type="web") pulumi.export("instrumentationKey", example_insights.instrumentation_key) pulumi.export("appId", example_insights.app_id) ``` ### Workspace Mode ```python import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", location=example_resource_group.location, resource_group_name=example_resource_group.name, sku="PerGB2018", retention_in_days=30) example_insights = azure.appinsights.Insights("exampleInsights", location=example_resource_group.location, resource_group_name=example_resource_group.name, workspace_id=example_analytics_workspace.id, application_type="web") pulumi.export("instrumentationKey", example_insights.instrumentation_key) pulumi.export("appId", example_insights.app_id) ``` ## Import Application Insights instances can be imported using the `resource id`, e.g. ```sh $ pulumi import azure:appinsights/insights:Insights instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.insights/components/instance1 ``` :param str resource_name: The name of the resource. :param InsightsArgs 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(InsightsArgs, 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, application_type: Optional[pulumi.Input[str]] = None, daily_data_cap_in_gb: Optional[pulumi.Input[float]] = None, daily_data_cap_notifications_disabled: Optional[pulumi.Input[bool]] = None, disable_ip_masking: Optional[pulumi.Input[bool]] = None, local_authentication_disabled: Optional[pulumi.Input[bool]] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, retention_in_days: Optional[pulumi.Input[int]] = None, sampling_percentage: Optional[pulumi.Input[float]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, workspace_id: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = InsightsArgs.__new__(InsightsArgs) if application_type is None and not opts.urn: raise TypeError("Missing required property 'application_type'") __props__.__dict__["application_type"] = application_type __props__.__dict__["daily_data_cap_in_gb"] = daily_data_cap_in_gb __props__.__dict__["daily_data_cap_notifications_disabled"] = daily_data_cap_notifications_disabled __props__.__dict__["disable_ip_masking"] = disable_ip_masking __props__.__dict__["local_authentication_disabled"] = local_authentication_disabled __props__.__dict__["location"] = location __props__.__dict__["name"] = name if resource_group_name is None and not opts.urn: raise TypeError("Missing required property 'resource_group_name'") __props__.__dict__["resource_group_name"] = resource_group_name __props__.__dict__["retention_in_days"] = retention_in_days __props__.__dict__["sampling_percentage"] = sampling_percentage __props__.__dict__["tags"] = tags __props__.__dict__["workspace_id"] = workspace_id __props__.__dict__["app_id"] = None __props__.__dict__["connection_string"] = None __props__.__dict__["instrumentation_key"] = None super(Insights, __self__).__init__( 'azure:appinsights/insights:Insights', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, app_id: Optional[pulumi.Input[str]] = None, application_type: Optional[pulumi.Input[str]] = None, connection_string: Optional[pulumi.Input[str]] = None, daily_data_cap_in_gb: Optional[pulumi.Input[float]] = None, daily_data_cap_notifications_disabled: Optional[pulumi.Input[bool]] = None, disable_ip_masking: Optional[pulumi.Input[bool]] = None, instrumentation_key: Optional[pulumi.Input[str]] = None, local_authentication_disabled: Optional[pulumi.Input[bool]] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, retention_in_days: Optional[pulumi.Input[int]] = None, sampling_percentage: Optional[pulumi.Input[float]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, workspace_id: Optional[pulumi.Input[str]] = None) -> 'Insights': """ Get an existing Insights 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] app_id: The App ID associated with this Application Insights component. :param pulumi.Input[str] application_type: Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created. :param pulumi.Input[str] connection_string: The Connection String for this Application Insights component. (Sensitive) :param pulumi.Input[float] daily_data_cap_in_gb: Specifies the Application Insights component daily data volume cap in GB. :param pulumi.Input[bool] daily_data_cap_notifications_disabled: Specifies if a notification email will be send when the daily data volume cap is met. :param pulumi.Input[bool] disable_ip_masking: By default the real client ip is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client ip. Defaults to `false`. :param pulumi.Input[str] instrumentation_key: The Instrumentation Key for this Application Insights component. (Sensitive) :param pulumi.Input[bool] local_authentication_disabled: Disable Non-Azure AD based Auth. Defaults to `false`. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[str] name: Specifies the name of the Application Insights component. Changing this forces a new resource to be created. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the Application Insights component. :param pulumi.Input[int] retention_in_days: Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`. :param pulumi.Input[float] sampling_percentage: Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. :param pulumi.Input[str] workspace_id: Specifies the id of a log analytics workspace resource """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _InsightsState.__new__(_InsightsState) __props__.__dict__["app_id"] = app_id __props__.__dict__["application_type"] = application_type __props__.__dict__["connection_string"] = connection_string __props__.__dict__["daily_data_cap_in_gb"] = daily_data_cap_in_gb __props__.__dict__["daily_data_cap_notifications_disabled"] = daily_data_cap_notifications_disabled __props__.__dict__["disable_ip_masking"] = disable_ip_masking __props__.__dict__["instrumentation_key"] = instrumentation_key __props__.__dict__["local_authentication_disabled"] = local_authentication_disabled __props__.__dict__["location"] = location __props__.__dict__["name"] = name __props__.__dict__["resource_group_name"] = resource_group_name __props__.__dict__["retention_in_days"] = retention_in_days __props__.__dict__["sampling_percentage"] = sampling_percentage __props__.__dict__["tags"] = tags __props__.__dict__["workspace_id"] = workspace_id return Insights(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="appId") def app_id(self) -> pulumi.Output[str]: """ The App ID associated with this Application Insights component. """ return pulumi.get(self, "app_id") @property @pulumi.getter(name="applicationType") def application_type(self) -> pulumi.Output[str]: """ Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created. """ return pulumi.get(self, "application_type") @property @pulumi.getter(name="connectionString") def connection_string(self) -> pulumi.Output[str]: """ The Connection String for this Application Insights component. (Sensitive) """ return pulumi.get(self, "connection_string") @property @pulumi.getter(name="dailyDataCapInGb") def daily_data_cap_in_gb(self) -> pulumi.Output[float]: """ Specifies the Application Insights component daily data volume cap in GB. """ return pulumi.get(self, "daily_data_cap_in_gb") @property @pulumi.getter(name="dailyDataCapNotificationsDisabled") def daily_data_cap_notifications_disabled(self) -> pulumi.Output[bool]: """ Specifies if a notification email will be send when the daily data volume cap is met. """ return pulumi.get(self, "daily_data_cap_notifications_disabled") @property @pulumi.getter(name="disableIpMasking") def disable_ip_masking(self) -> pulumi.Output[Optional[bool]]: """ By default the real client ip is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client ip. Defaults to `false`. """ return pulumi.get(self, "disable_ip_masking") @property @pulumi.getter(name="instrumentationKey") def instrumentation_key(self) -> pulumi.Output[str]: """ The Instrumentation Key for this Application Insights component. (Sensitive) """ return pulumi.get(self, "instrumentation_key") @property @pulumi.getter(name="localAuthenticationDisabled") def local_authentication_disabled(self) -> pulumi.Output[Optional[bool]]: """ Disable Non-Azure AD based Auth. Defaults to `false`. """ return pulumi.get(self, "local_authentication_disabled") @property @pulumi.getter def location(self) -> pulumi.Output[str]: """ Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. """ return pulumi.get(self, "location") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ Specifies the name of the Application Insights component. Changing this forces a new resource to be created. """ return pulumi.get(self, "name") @property @pulumi.getter(name="resourceGroupName") def resource_group_name(self) -> pulumi.Output[str]: """ The name of the resource group in which to create the Application Insights component. """ return pulumi.get(self, "resource_group_name") @property @pulumi.getter(name="retentionInDays") def retention_in_days(self) -> pulumi.Output[Optional[int]]: """ Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`. """ return pulumi.get(self, "retention_in_days") @property @pulumi.getter(name="samplingPercentage") def sampling_percentage(self) -> pulumi.Output[Optional[float]]: """ Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. """ return pulumi.get(self, "sampling_percentage") @property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: """ A mapping of tags to assign to the resource. """ return pulumi.get(self, "tags") @property @pulumi.getter(name="workspaceId") def workspace_id(self) -> pulumi.Output[Optional[str]]: """ Specifies the id of a log analytics workspace resource """ return pulumi.get(self, "workspace_id")
52.13631
472
0.68191
5,411
44,368
5.342266
0.050083
0.072681
0.07493
0.038814
0.93192
0.918255
0.907323
0.898952
0.894178
0.875255
0
0.0085
0.223066
44,368
850
473
52.197647
0.830089
0.402633
0
0.792576
1
0
0.122592
0.034237
0
0
0
0
0
1
0.165939
false
0.002183
0.010917
0
0.277293
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
bcc1f959f9fec01773233a2c4a5573a2ba5d143d
19,004
py
Python
user_account/tests/test_forms.py
bnico99/foruminternational
8d577d3d929277b88d9c6deb1a77f90fb34ad469
[ "BSD-3-Clause" ]
null
null
null
user_account/tests/test_forms.py
bnico99/foruminternational
8d577d3d929277b88d9c6deb1a77f90fb34ad469
[ "BSD-3-Clause" ]
4
2021-04-08T21:11:19.000Z
2021-06-10T19:40:34.000Z
user_account/tests/test_forms.py
bnico99/foruminternational
8d577d3d929277b88d9c6deb1a77f90fb34ad469
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from user_account.forms import UserSignUpForm class TestForms(TestCase): def test_valid_form(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid(), form.errors) def test_signup_form_valid_data_special_accepted_last_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'O\'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid(), form.errors) def test_signup_form_valid_data_not_accepted_last_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'O\'Musterman123', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid(), form.errors) def test_signup_form_valid_data_special_accepted_last_name_2(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Maxémçäüößatrin-Katrin Lena', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid(), form.errors) def test_signup_form_valid_data_special_accepted_first_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Maxémçäüößatrin-Katrin Lena', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid(), form.errors) def test_signup_form_valid_data_not_accepted_first_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'M. Johannes', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid(), form.errors) def test_signup_form_valid_data_special_house_number(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13b', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid(), form.errors) def test_signup_form_valid_data_house_number_beginning_zero(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '013b', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid(), form.errors) def test_signup_form_valid_data_invalid_year(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Mustermann', 'date_of_birth': '2021-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '0152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid(), form.errors) def test_signup_form_negative_phone_number(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '-152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_negative_zip_code(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '-12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_negative_house_number(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '-13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_too_long_zip_code(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '123456', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_too_short_zip_code(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '1234', 'city': 'Saarbruecken', 'street': 'Schlossalee', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_special_street_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'Saarbruecken', 'street': 'St.-Ingberterstr.', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid()) def test_signup_form_special_city_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'St.Ingbert', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid()) def test_signup_form_too_short_phone(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'St.Ingbert', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_special_fist_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Ann-Katrin', 'last_name': 'Musterman', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'St.Ingbert', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid()) def test_signup_form_special_last_name(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Mustermann-Muster', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'DieTPwFSE1920%%', 'password2': 'DieTPwFSE1920%%', 'zip_code': '12345', 'city': 'St.Ingbert', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid()) def test_signup_form_same_password_username(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Maximilian4', 'last_name': 'Mustermann-Muster', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'Maximilian4', 'password2': 'Maximilian4', 'zip_code': '12345', 'city': 'St.Ingbert', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_too_short_password(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Mustermann', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'HalloW4', 'password2': 'HalloW4', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_password_just_numbers(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Mustermann', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': '123456789', 'password2': '123456789', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_wrong_password_confirmation(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Mustermann', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'HalloWelt1', 'password2': 'HalloWelt2', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertFalse(form.is_valid()) def test_signup_form_data_privacy_not_accepted(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'Mustermann', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'HalloWelt1', 'password2': 'HalloWelt1', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'False' }) self.assertFalse(form.is_valid()) def test_signup_form_empty(self): form = UserSignUpForm(data={}) self.assertFalse(form.is_valid()) self.assertEqual(len(form.errors), 15) def test_signup_form_nobel_name_1(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'von Mustermann', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'kuchen123', 'password2': 'kuchen123', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid()) def test_signup_form_nobel_name_2(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'von dem Muster', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'kuchen123', 'password2': 'kuchen123', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '152212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid()) def test_signup_form_special_phone(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'von dem Muster', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'kuchen123', 'password2': 'kuchen123', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '+52212345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid()) def test_signup_form_special_phone_2(self): form = UserSignUpForm(data={ 'title': 'Herr', 'first_name': 'Max', 'last_name': 'von dem Muster', 'date_of_birth': '1990-1-1', 'email': 'max@mustermann.com', 'password1': 'kuchen123', 'password2': 'kuchen123', 'zip_code': '12345', 'city': 'Musterstadt', 'street': 'Mecklenburgring', 'house_number': '13', 'phone': '0681/345667', 'username': 'MAXMU', 'data_privacy': 'True' }) self.assertTrue(form.is_valid())
34.615665
71
0.496422
1,637
19,004
5.52474
0.068418
0.028306
0.070544
0.08337
0.936311
0.932552
0.929124
0.929124
0.924259
0.913313
0
0.07761
0.345717
19,004
548
72
34.678832
0.649751
0
0
0.876712
0
0
0.352399
0.002315
0
0
0
0
0.058708
1
0.056751
false
0.117417
0.003914
0
0.062622
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
bcc2078a8ff1224968c382d22a37d6b566a7d238
69,003
py
Python
tests/providers/google/cloud/hooks/test_datacatalog.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
tests/providers/google/cloud/hooks/test_datacatalog.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
tests/providers/google/cloud/hooks/test_datacatalog.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF 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 re from copy import deepcopy from typing import Dict, Sequence, Tuple, Union from unittest import TestCase, mock import pytest from google.api_core.gapic_v1.method import _MethodDefault from google.api_core.retry import Retry from google.cloud.datacatalog import CreateTagRequest, CreateTagTemplateRequest, Entry, Tag, TagTemplate from google.protobuf.field_mask_pb2 import FieldMask from airflow import AirflowException from airflow.providers.google.cloud.hooks.datacatalog import CloudDataCatalogHook from tests.providers.google.cloud.utils.base_gcp_mock import ( mock_base_gcp_hook_default_project_id, mock_base_gcp_hook_no_default_project_id, ) TEST_GCP_CONN_ID: str = "test-gcp-conn-id" TEST_DELEGATE_TO: str = "test-delegate-to" TEST_LOCATION: str = "europe-west-3b" TEST_ENTRY_ID: str = "test-entry-id" TEST_ENTRY: Dict = {} TEST_RETRY: Union[Retry, _MethodDefault] = Retry() TEST_TIMEOUT: float = 4 TEST_METADATA: Sequence[Tuple[str, str]] = () TEST_ENTRY_GROUP_ID: str = "test-entry-group-id" TEST_ENTRY_GROUP: Dict = {} TEST_TAG: Dict = {} TEST_TAG_TEMPLATE_ID: str = "test-tag-template-id" TEST_TAG_TEMPLATE: Dict = {"name": TEST_TAG_TEMPLATE_ID} TEST_TAG_TEMPLATE_FIELD_ID: str = "test-tag-template-field-id" TEST_TAG_TEMPLATE_FIELD: Dict = {} TEST_FORCE: bool = False TEST_READ_MASK: FieldMask = FieldMask(paths=["name"]) TEST_RESOURCE: str = "test-resource" TEST_PAGE_SIZE: int = 50 TEST_LINKED_RESOURCE: str = "test-linked-resource" TEST_SQL_RESOURCE: str = "test-sql-resource" TEST_NEW_TAG_TEMPLATE_FIELD_ID: str = "test-new-tag-template-field-id" TEST_SCOPE: Dict = {"include_project_ids": ["example-scope-project"]} TEST_QUERY: str = "test-query" TEST_ORDER_BY: str = "test-order-by" TEST_UPDATE_MASK: Dict = {"fields": ["name"]} TEST_PARENT: str = "test-parent" TEST_NAME: str = "test-name" TEST_TAG_ID: str = "test-tag-id" TEST_LOCATION_PATH: str = f"projects/{{}}/locations/{TEST_LOCATION}" TEST_ENTRY_PATH: str = ( f"projects/{{}}/locations/{TEST_LOCATION}/entryGroups/{TEST_ENTRY_GROUP_ID}/entries/{TEST_ENTRY_ID}" ) TEST_ENTRY_GROUP_PATH: str = f"projects/{{}}/locations/{TEST_LOCATION}/entryGroups/{TEST_ENTRY_GROUP_ID}" TEST_TAG_TEMPLATE_PATH: str = f"projects/{{}}/locations/{TEST_LOCATION}/tagTemplates/{TEST_TAG_TEMPLATE_ID}" TEST_TAG_TEMPLATE_FIELD_PATH: str = ( f"projects/{{}}/locations/{TEST_LOCATION}/tagTemplates/" + f"{TEST_TAG_TEMPLATE_ID}/fields/{TEST_TAG_TEMPLATE_FIELD_ID}" ) TEST_TAG_PATH: str = ( f"projects/{{}}/locations/{TEST_LOCATION}/entryGroups/{TEST_ENTRY_GROUP_ID}" + f"/entries/{TEST_ENTRY_ID}/tags/{TEST_TAG_ID}" ) TEST_PROJECT_ID_1 = "example-project-1" TEST_PROJECT_ID_2 = "example-project-2" TEST_CREDENTIALS = mock.MagicMock() class TestCloudDataCatalog(TestCase): def setUp( self, ) -> None: with mock.patch( "airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.__init__", new=mock_base_gcp_hook_default_project_id, ): self.hook = CloudDataCatalogHook(gcp_conn_id="test") @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_lookup_entry_with_linked_resource(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.lookup_entry( linked_resource=TEST_LINKED_RESOURCE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.lookup_entry.assert_called_once_with( request=dict(linked_resource=TEST_LINKED_RESOURCE), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_lookup_entry_with_sql_resource(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.lookup_entry( sql_resource=TEST_SQL_RESOURCE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA ) mock_get_conn.return_value.lookup_entry.assert_called_once_with( request=dict(sql_resource=TEST_SQL_RESOURCE), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_lookup_entry_without_resource(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises( AirflowException, match=re.escape("At least one of linked_resource, sql_resource should be set.") ): self.hook.lookup_entry(retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_search_catalog(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.search_catalog( scope=TEST_SCOPE, query=TEST_QUERY, page_size=TEST_PAGE_SIZE, order_by=TEST_ORDER_BY, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.search_catalog.assert_called_once_with( request=dict( scope=TEST_SCOPE, query=TEST_QUERY, page_size=TEST_PAGE_SIZE, order_by=TEST_ORDER_BY ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) class TestCloudDataCatalogWithDefaultProjectIdHook(TestCase): def setUp( self, ) -> None: with mock.patch( "airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.__init__", new=mock_base_gcp_hook_default_project_id, ): self.hook = CloudDataCatalogHook(gcp_conn_id="test") @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry_id=TEST_ENTRY_ID, entry=TEST_ENTRY, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_entry.assert_called_once_with( request=dict( parent=TEST_ENTRY_GROUP_PATH.format(TEST_PROJECT_ID_1), entry_id=TEST_ENTRY_ID, entry=TEST_ENTRY, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_entry_group( location=TEST_LOCATION, entry_group_id=TEST_ENTRY_GROUP_ID, entry_group=TEST_ENTRY_GROUP, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_entry_group.assert_called_once_with( request=dict( parent=TEST_LOCATION_PATH.format(TEST_PROJECT_ID_1), entry_group_id=TEST_ENTRY_GROUP_ID, entry_group=TEST_ENTRY_GROUP, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=deepcopy(TEST_TAG), template_id=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag.assert_called_once_with( request=CreateTagRequest( parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_1), tag=Tag(template=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1)), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_protobuff(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=Tag(), template_id=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag.assert_called_once_with( request=CreateTagRequest( parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_1), tag=Tag(template=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1)), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag_template( location=TEST_LOCATION, tag_template_id=TEST_TAG_TEMPLATE_ID, tag_template=TEST_TAG_TEMPLATE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag_template.assert_called_once_with( request=CreateTagTemplateRequest( parent=TEST_LOCATION_PATH.format(TEST_PROJECT_ID_1), tag_template_id=TEST_TAG_TEMPLATE_ID, tag_template=TEST_TAG_TEMPLATE, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, tag_template_field=TEST_TAG_TEMPLATE_FIELD, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag_template_field.assert_called_once_with( request=dict( parent=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1), tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, tag_template_field=TEST_TAG_TEMPLATE_FIELD, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_entry.assert_called_once_with( request=dict( name=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_1), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_entry_group( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_entry_group.assert_called_once_with( request=dict( name=TEST_ENTRY_GROUP_PATH.format(TEST_PROJECT_ID_1), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=TEST_TAG_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_tag.assert_called_once_with( request=dict( name=TEST_TAG_PATH.format(TEST_PROJECT_ID_1), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_tag_template( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, force=TEST_FORCE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_tag_template.assert_called_once_with( request=dict(name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1), force=TEST_FORCE), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, field=TEST_TAG_TEMPLATE_FIELD_ID, force=TEST_FORCE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_tag_template_field.assert_called_once_with( request=dict( name=TEST_TAG_TEMPLATE_FIELD_PATH.format(TEST_PROJECT_ID_1), force=TEST_FORCE, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.get_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.get_entry.assert_called_once_with( request=dict( name=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_1), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.get_entry_group( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, read_mask=TEST_READ_MASK, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.get_entry_group.assert_called_once_with( request=dict( name=TEST_ENTRY_GROUP_PATH.format(TEST_PROJECT_ID_1), read_mask=TEST_READ_MASK, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.get_tag_template( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.get_tag_template.assert_called_once_with( request=dict( name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_list_tags(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.list_tags( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, page_size=TEST_PAGE_SIZE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.list_tags.assert_called_once_with( request=dict( parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_1), page_size=TEST_PAGE_SIZE, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_tag_for_template_name(self, mock_get_conn, mock_get_creds_and_project_id) -> None: tag_1 = mock.MagicMock(template=TEST_TAG_TEMPLATE_PATH.format("invalid-project")) tag_2 = mock.MagicMock(template=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1)) mock_get_conn.return_value.list_tags.return_value = [tag_1, tag_2] result = self.hook.get_tag_for_template_name( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, template_name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.list_tags.assert_called_once_with( request=dict( parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_1), page_size=100, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) assert result == tag_2 @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_rename_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.rename_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, field=TEST_TAG_TEMPLATE_FIELD_ID, new_tag_template_field_id=TEST_NEW_TAG_TEMPLATE_FIELD_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.rename_tag_template_field.assert_called_once_with( request=dict( name=TEST_TAG_TEMPLATE_FIELD_PATH.format(TEST_PROJECT_ID_1), new_tag_template_field_id=TEST_NEW_TAG_TEMPLATE_FIELD_ID, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_entry( entry=TEST_ENTRY, update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry_id=TEST_ENTRY_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_entry.assert_called_once_with( request=dict( entry=Entry(name=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_1)), update_mask=TEST_UPDATE_MASK, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_tag( tag=deepcopy(TEST_TAG), update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag_id=TEST_TAG_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_tag.assert_called_once_with( request=dict(tag=Tag(name=TEST_TAG_PATH.format(TEST_PROJECT_ID_1)), update_mask=TEST_UPDATE_MASK), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_tag_template( tag_template=TEST_TAG_TEMPLATE, update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, tag_template_id=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_tag_template.assert_called_once_with( request=dict( tag_template=TagTemplate(name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_1)), update_mask=TEST_UPDATE_MASK, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, TEST_PROJECT_ID_1), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_tag_template_field( tag_template_field=TEST_TAG_TEMPLATE_FIELD, update_mask=TEST_UPDATE_MASK, tag_template=TEST_TAG_TEMPLATE_ID, location=TEST_LOCATION, tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_tag_template_field.assert_called_once_with( request=dict( name=TEST_TAG_TEMPLATE_FIELD_PATH.format(TEST_PROJECT_ID_1), tag_template_field=TEST_TAG_TEMPLATE_FIELD, update_mask=TEST_UPDATE_MASK, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) class TestCloudDataCatalogWithoutDefaultProjectIdHook(TestCase): def setUp( self, ) -> None: with mock.patch( "airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.__init__", new=mock_base_gcp_hook_no_default_project_id, ): self.hook = CloudDataCatalogHook(gcp_conn_id="test") @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry_id=TEST_ENTRY_ID, entry=TEST_ENTRY, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_entry.assert_called_once_with( request=dict( parent=TEST_ENTRY_GROUP_PATH.format(TEST_PROJECT_ID_2), entry_id=TEST_ENTRY_ID, entry=TEST_ENTRY, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_entry_group( location=TEST_LOCATION, entry_group_id=TEST_ENTRY_GROUP_ID, entry_group=TEST_ENTRY_GROUP, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_entry_group.assert_called_once_with( request=dict( parent=TEST_LOCATION_PATH.format(TEST_PROJECT_ID_2), entry_group_id=TEST_ENTRY_GROUP_ID, entry_group=TEST_ENTRY_GROUP, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=deepcopy(TEST_TAG), template_id=TEST_TAG_TEMPLATE_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag.assert_called_once_with( request=CreateTagRequest( parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_2), tag=Tag(template=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2)), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_protobuff(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=Tag(), template_id=TEST_TAG_TEMPLATE_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag.assert_called_once_with( request=CreateTagRequest( parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_2), tag=Tag(template=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2)), ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag_template( location=TEST_LOCATION, tag_template_id=TEST_TAG_TEMPLATE_ID, tag_template=TEST_TAG_TEMPLATE, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag_template.assert_called_once_with( request=CreateTagTemplateRequest( parent=TEST_LOCATION_PATH.format(TEST_PROJECT_ID_2), tag_template_id=TEST_TAG_TEMPLATE_ID, tag_template=TEST_TAG_TEMPLATE, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.create_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, tag_template_field=TEST_TAG_TEMPLATE_FIELD, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.create_tag_template_field.assert_called_once_with( request=dict( parent=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2), tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, tag_template_field=TEST_TAG_TEMPLATE_FIELD, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_entry.assert_called_once_with( request=dict(name=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_2)), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_entry_group( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_entry_group.assert_called_once_with( request=dict(name=TEST_ENTRY_GROUP_PATH.format(TEST_PROJECT_ID_2)), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=TEST_TAG_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_tag.assert_called_once_with( request=dict(name=TEST_TAG_PATH.format(TEST_PROJECT_ID_2)), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_tag_template( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, force=TEST_FORCE, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_tag_template.assert_called_once_with( request=dict(name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2), force=TEST_FORCE), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.delete_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, field=TEST_TAG_TEMPLATE_FIELD_ID, force=TEST_FORCE, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.delete_tag_template_field.assert_called_once_with( request=dict(name=TEST_TAG_TEMPLATE_FIELD_PATH.format(TEST_PROJECT_ID_2), force=TEST_FORCE), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.get_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.get_entry.assert_called_once_with( request=dict(name=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_2)), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.get_entry_group( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, read_mask=TEST_READ_MASK, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.get_entry_group.assert_called_once_with( request=dict( name=TEST_ENTRY_GROUP_PATH.format(TEST_PROJECT_ID_2), read_mask=TEST_READ_MASK, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.get_tag_template( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.get_tag_template.assert_called_once_with( request=dict(name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2)), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_list_tags(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.list_tags( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, page_size=TEST_PAGE_SIZE, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.list_tags.assert_called_once_with( request=dict(parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_2), page_size=TEST_PAGE_SIZE), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_tag_for_template_name(self, mock_get_conn, mock_get_creds_and_project_id) -> None: tag_1 = mock.MagicMock(template=TEST_TAG_TEMPLATE_PATH.format("invalid-project")) tag_2 = mock.MagicMock(template=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2)) mock_get_conn.return_value.list_tags.return_value = [tag_1, tag_2] result = self.hook.get_tag_for_template_name( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, template_name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2), project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.list_tags.assert_called_once_with( request=dict(parent=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_2), page_size=100), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) assert result == tag_2 @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_rename_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.rename_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, field=TEST_TAG_TEMPLATE_FIELD_ID, new_tag_template_field_id=TEST_NEW_TAG_TEMPLATE_FIELD_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.rename_tag_template_field.assert_called_once_with( request=dict( name=TEST_TAG_TEMPLATE_FIELD_PATH.format(TEST_PROJECT_ID_2), new_tag_template_field_id=TEST_NEW_TAG_TEMPLATE_FIELD_ID, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_entry( entry=TEST_ENTRY, update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry_id=TEST_ENTRY_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_entry.assert_called_once_with( request=dict( entry=Entry(name=TEST_ENTRY_PATH.format(TEST_PROJECT_ID_2)), update_mask=TEST_UPDATE_MASK ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_tag( tag=deepcopy(TEST_TAG), update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag_id=TEST_TAG_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_tag.assert_called_once_with( request=dict(tag=Tag(name=TEST_TAG_PATH.format(TEST_PROJECT_ID_2)), update_mask=TEST_UPDATE_MASK), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_tag_template( tag_template=TEST_TAG_TEMPLATE, update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, tag_template_id=TEST_TAG_TEMPLATE_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_tag_template.assert_called_once_with( request=dict( tag_template=TagTemplate(name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2)), update_mask=TEST_UPDATE_MASK, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: self.hook.update_tag_template_field( tag_template_field=TEST_TAG_TEMPLATE_FIELD, update_mask=TEST_UPDATE_MASK, tag_template=TEST_TAG_TEMPLATE_ID, location=TEST_LOCATION, tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, project_id=TEST_PROJECT_ID_2, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) mock_get_conn.return_value.update_tag_template_field.assert_called_once_with( request=dict( name=TEST_TAG_TEMPLATE_FIELD_PATH.format(TEST_PROJECT_ID_2), tag_template_field=TEST_TAG_TEMPLATE_FIELD, update_mask=TEST_UPDATE_MASK, ), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) TEST_MESSAGE = re.escape( "The project id must be passed either as keyword project_id parameter or as project_id extra in " "Google Cloud connection definition. Both are not set!" ) class TestCloudDataCatalogMissingProjectIdHook(TestCase): def setUp( self, ) -> None: with mock.patch( "airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.__init__", new=mock_base_gcp_hook_no_default_project_id, ): self.hook = CloudDataCatalogHook(gcp_conn_id="test") @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.create_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry_id=TEST_ENTRY_ID, entry=TEST_ENTRY, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.create_entry_group( location=TEST_LOCATION, entry_group_id=TEST_ENTRY_GROUP_ID, entry_group=TEST_ENTRY_GROUP, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.create_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=deepcopy(TEST_TAG), template_id=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_protobuff(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.create_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=Tag(), template_id=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.create_tag_template( location=TEST_LOCATION, tag_template_id=TEST_TAG_TEMPLATE_ID, tag_template=TEST_TAG_TEMPLATE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_create_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.create_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, tag_template_field=TEST_TAG_TEMPLATE_FIELD, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.delete_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.delete_entry_group( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.delete_tag( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag=TEST_TAG_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.delete_tag_template( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, force=TEST_FORCE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_delete_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.delete_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, field=TEST_TAG_TEMPLATE_FIELD_ID, force=TEST_FORCE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.get_entry( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_entry_group(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.get_entry_group( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, read_mask=TEST_READ_MASK, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.get_tag_template( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_list_tags(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.list_tags( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, page_size=TEST_PAGE_SIZE, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_get_tag_for_template_name(self, mock_get_conn, mock_get_creds_and_project_id) -> None: tag_1 = mock.MagicMock(template=TEST_TAG_TEMPLATE_PATH.format("invalid-project")) tag_2 = mock.MagicMock(template=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2)) mock_get_conn.return_value.list_tags.return_value = [tag_1, tag_2] with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.get_tag_for_template_name( location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, template_name=TEST_TAG_TEMPLATE_PATH.format(TEST_PROJECT_ID_2), retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_rename_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.rename_tag_template_field( location=TEST_LOCATION, tag_template=TEST_TAG_TEMPLATE_ID, field=TEST_TAG_TEMPLATE_FIELD_ID, new_tag_template_field_id=TEST_NEW_TAG_TEMPLATE_FIELD_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_entry(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.update_entry( entry=TEST_ENTRY, update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry_id=TEST_ENTRY_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.update_tag( tag=deepcopy(TEST_TAG), update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, entry_group=TEST_ENTRY_GROUP_ID, entry=TEST_ENTRY_ID, tag_id=TEST_TAG_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag_template(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.update_tag_template( tag_template=TEST_TAG_TEMPLATE, update_mask=TEST_UPDATE_MASK, location=TEST_LOCATION, tag_template_id=TEST_TAG_TEMPLATE_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, ) @mock.patch( "airflow.providers.google.common.hooks.base_google.GoogleBaseHook._get_credentials_and_project_id", return_value=(TEST_CREDENTIALS, None), ) @mock.patch("airflow.providers.google.cloud.hooks.datacatalog.CloudDataCatalogHook.get_conn") def test_update_tag_template_field(self, mock_get_conn, mock_get_creds_and_project_id) -> None: with pytest.raises(AirflowException, match=TEST_MESSAGE): self.hook.update_tag_template_field( tag_template_field=TEST_TAG_TEMPLATE_FIELD, update_mask=TEST_UPDATE_MASK, tag_template=TEST_TAG_TEMPLATE_ID, location=TEST_LOCATION, tag_template_field_id=TEST_TAG_TEMPLATE_FIELD_ID, retry=TEST_RETRY, timeout=TEST_TIMEOUT, metadata=TEST_METADATA, )
42.992523
110
0.67513
8,152
69,003
5.275025
0.026619
0.054416
0.071113
0.080229
0.947979
0.946049
0.942282
0.939189
0.933538
0.933352
0
0.002453
0.243671
69,003
1,604
111
43.019327
0.821514
0.010898
0
0.807205
0
0
0.191986
0.184043
0
0
0
0
0.031354
1
0.047365
false
0.000667
0.008005
0
0.058039
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
bcc72cf11291bb972f178095474614ca51626efa
142
py
Python
example/settings/production.py
jouve/django-oauth-toolkit-example
44e8958a7e962ef3450a5562240c59e66db05bc4
[ "BSD-2-Clause" ]
18
2015-03-31T08:08:16.000Z
2021-07-17T02:01:17.000Z
example/settings/production.py
jouve/django-oauth-toolkit-example
44e8958a7e962ef3450a5562240c59e66db05bc4
[ "BSD-2-Clause" ]
1
2017-11-04T01:06:54.000Z
2017-11-04T01:06:54.000Z
example/settings/production.py
jouve/django-oauth-toolkit-example
44e8958a7e962ef3450a5562240c59e66db05bc4
[ "BSD-2-Clause" ]
12
2015-03-31T05:32:39.000Z
2021-07-17T02:01:28.000Z
from .base import * # Parse database configuration from $DATABASE_URL import dj_database_url DATABASES['default'] = dj_database_url.config()
23.666667
49
0.802817
19
142
5.736842
0.578947
0.302752
0.238532
0
0
0
0
0
0
0
0
0
0.112676
142
5
50
28.4
0.865079
0.330986
0
0
0
0
0.075269
0
0
0
0
0
0
1
0
true
0
0.666667
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
0
1
0
1
0
0
7
4c053dfd846568314b91733aa19080a465c7ac5a
36,085
py
Python
show/muxcable.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
show/muxcable.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
2
2021-02-02T07:53:55.000Z
2021-03-15T07:08:23.000Z
show/muxcable.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
import json import os import sys import click import re import utilities_common.cli as clicommon from natsort import natsorted from sonic_py_common import multi_asic from swsscommon.swsscommon import SonicV2Connector, ConfigDBConnector from tabulate import tabulate from utilities_common import platform_sfputil_helper platform_sfputil = None REDIS_TIMEOUT_MSECS = 0 CONFIG_SUCCESSFUL = 0 CONFIG_FAIL = 1 EXIT_FAIL = 1 EXIT_SUCCESS = 0 STATUS_FAIL = 1 STATUS_SUCCESSFUL = 0 VENDOR_NAME = "Credo" VENDOR_MODEL_REGEX = re.compile(r"CAC\w{3}321P2P\w{2}MS") # # 'muxcable' command ("show muxcable") # @click.group(name='muxcable', cls=clicommon.AliasedGroup) def muxcable(): """SONiC command line - 'show muxcable' command""" global platform_sfputil # Load platform-specific sfputil class platform_sfputil_helper.load_platform_sfputil() # Load port info platform_sfputil_helper.platform_sfputil_read_porttab_mappings() platform_sfputil = platform_sfputil_helper.platform_sfputil def get_value_for_key_in_dict(mdict, port, key, table_name): value = mdict.get(key, None) if value is None: click.echo("could not retrieve key {} value for port {} inside table {}".format(key, port, table_name)) sys.exit(STATUS_FAIL) return value def get_value_for_key_in_config_tbl(config_db, port, key, table): info_dict = {} info_dict = config_db.get_entry(table, port) if info_dict is None: click.echo("could not retrieve key {} value for port {} inside table {}".format(key, port, table)) sys.exit(STATUS_FAIL) value = get_value_for_key_in_dict(info_dict, port, key, table) return value def get_switch_name(config_db): info_dict = {} info_dict = config_db.get_entry("DEVICE_METADATA", "localhost") #click.echo("{} ".format(info_dict)) switch_name = get_value_for_key_in_dict(info_dict, "localhost", "peer_switch", "DEVICE_METADATA") if switch_name is not None: return switch_name else: click.echo("could not retreive switch name") sys.exit(STATUS_FAIL) def create_json_dump_per_port_status(port_status_dict, muxcable_info_dict, muxcable_health_dict, asic_index, port): status_value = get_value_for_key_in_dict(muxcable_info_dict[asic_index], port, "state", "MUX_CABLE_TABLE") port_status_dict["MUX_CABLE"][port] = {} port_status_dict["MUX_CABLE"][port]["STATUS"] = status_value health_value = get_value_for_key_in_dict(muxcable_health_dict[asic_index], port, "state", "MUX_LINKMGR_TABLE") port_status_dict["MUX_CABLE"][port]["HEALTH"] = health_value def create_table_dump_per_port_status(print_data, muxcable_info_dict, muxcable_health_dict, asic_index, port): print_port_data = [] status_value = get_value_for_key_in_dict(muxcable_info_dict[asic_index], port, "state", "MUX_CABLE_TABLE") #status_value = get_value_for_key_in_tbl(y_cable_asic_table, port, "status") health_value = get_value_for_key_in_dict(muxcable_health_dict[asic_index], port, "state", "MUX_LINKMGR_TABLE") print_port_data.append(port) print_port_data.append(status_value) print_port_data.append(health_value) print_data.append(print_port_data) def create_table_dump_per_port_config(print_data, per_npu_configdb, asic_id, port): port_list = [] port_list.append(port) state_value = get_value_for_key_in_config_tbl(per_npu_configdb[asic_id], port, "state", "MUX_CABLE") port_list.append(state_value) ipv4_value = get_value_for_key_in_config_tbl(per_npu_configdb[asic_id], port, "server_ipv4", "MUX_CABLE") port_list.append(ipv4_value) ipv6_value = get_value_for_key_in_config_tbl(per_npu_configdb[asic_id], port, "server_ipv6", "MUX_CABLE") port_list.append(ipv6_value) print_data.append(port_list) def create_json_dump_per_port_config(port_status_dict, per_npu_configdb, asic_id, port): state_value = get_value_for_key_in_config_tbl(per_npu_configdb[asic_id], port, "state", "MUX_CABLE") port_status_dict["MUX_CABLE"]["PORTS"][port] = {"STATE": state_value} port_status_dict["MUX_CABLE"]["PORTS"][port]["SERVER"] = {} ipv4_value = get_value_for_key_in_config_tbl(per_npu_configdb[asic_id], port, "server_ipv4", "MUX_CABLE") port_status_dict["MUX_CABLE"]["PORTS"][port]["SERVER"]["IPv4"] = ipv4_value ipv6_value = get_value_for_key_in_config_tbl(per_npu_configdb[asic_id], port, "server_ipv6", "MUX_CABLE") port_status_dict["MUX_CABLE"]["PORTS"][port]["SERVER"]["IPv6"] = ipv6_value @muxcable.command() @click.argument('port', required=False, default=None) @click.option('--json', 'json_output', required=False, is_flag=True, type=click.BOOL, help="display the output in json format") def status(port, json_output): """Show muxcable status information""" port_table_keys = {} port_health_table_keys = {} per_npu_statedb = {} muxcable_info_dict = {} muxcable_health_dict = {} # Getting all front asic namespace and correspding config and state DB connector namespaces = multi_asic.get_front_end_namespaces() for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) per_npu_statedb[asic_id] = SonicV2Connector(use_unix_socket_path=False, namespace=namespace) per_npu_statedb[asic_id].connect(per_npu_statedb[asic_id].STATE_DB) port_table_keys[asic_id] = per_npu_statedb[asic_id].keys( per_npu_statedb[asic_id].STATE_DB, 'MUX_CABLE_TABLE|*') port_health_table_keys[asic_id] = per_npu_statedb[asic_id].keys( per_npu_statedb[asic_id].STATE_DB, 'MUX_LINKMGR_TABLE|*') if port is not None: asic_index = None if platform_sfputil is not None: asic_index = platform_sfputil.get_asic_id_for_logical_port(port) if asic_index is None: # TODO this import is only for unit test purposes, and should be removed once sonic_platform_base # is fully mocked import sonic_platform_base.sonic_sfp.sfputilhelper asic_index = sonic_platform_base.sonic_sfp.sfputilhelper.SfpUtilHelper().get_asic_id_for_logical_port(port) if asic_index is None: click.echo("Got invalid asic index for port {}, cant retreive mux status".format(port)) sys.exit(STATUS_FAIL) muxcable_info_dict[asic_index] = per_npu_statedb[asic_index].get_all( per_npu_statedb[asic_index].STATE_DB, 'MUX_CABLE_TABLE|{}'.format(port)) muxcable_health_dict[asic_index] = per_npu_statedb[asic_index].get_all( per_npu_statedb[asic_index].STATE_DB, 'MUX_LINKMGR_TABLE|{}'.format(port)) if muxcable_info_dict[asic_index] is not None: logical_key = "MUX_CABLE_TABLE|{}".format(port) logical_health_key = "MUX_LINKMGR_TABLE|{}".format(port) if logical_key in port_table_keys[asic_index] and logical_health_key in port_health_table_keys[asic_index]: if json_output: port_status_dict = {} port_status_dict["MUX_CABLE"] = {} create_json_dump_per_port_status(port_status_dict, muxcable_info_dict, muxcable_health_dict, asic_index, port) click.echo("{}".format(json.dumps(port_status_dict, indent=4))) sys.exit(STATUS_SUCCESSFUL) else: print_data = [] create_table_dump_per_port_status(print_data, muxcable_info_dict, muxcable_health_dict, asic_index, port) headers = ['PORT', 'STATUS', 'HEALTH'] click.echo(tabulate(print_data, headers=headers)) sys.exit(STATUS_SUCCESSFUL) else: click.echo("this is not a valid port present on mux_cable".format(port)) sys.exit(STATUS_FAIL) else: click.echo("there is not a valid asic table for this asic_index".format(asic_index)) sys.exit(STATUS_FAIL) else: if json_output: port_status_dict = {} port_status_dict["MUX_CABLE"] = {} for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) for key in natsorted(port_table_keys[asic_id]): port = key.split("|")[1] muxcable_info_dict[asic_id] = per_npu_statedb[asic_id].get_all( per_npu_statedb[asic_id].STATE_DB, 'MUX_CABLE_TABLE|{}'.format(port)) muxcable_health_dict[asic_id] = per_npu_statedb[asic_id].get_all( per_npu_statedb[asic_id].STATE_DB, 'MUX_LINKMGR_TABLE|{}'.format(port)) create_json_dump_per_port_status(port_status_dict, muxcable_info_dict, muxcable_health_dict, asic_id, port) click.echo("{}".format(json.dumps(port_status_dict, indent=4))) else: print_data = [] for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) for key in natsorted(port_table_keys[asic_id]): port = key.split("|")[1] muxcable_health_dict[asic_id] = per_npu_statedb[asic_id].get_all( per_npu_statedb[asic_id].STATE_DB, 'MUX_LINKMGR_TABLE|{}'.format(port)) muxcable_info_dict[asic_id] = per_npu_statedb[asic_id].get_all( per_npu_statedb[asic_id].STATE_DB, 'MUX_CABLE_TABLE|{}'.format(port)) create_table_dump_per_port_status(print_data, muxcable_info_dict, muxcable_health_dict, asic_id, port) headers = ['PORT', 'STATUS', 'HEALTH'] click.echo(tabulate(print_data, headers=headers)) sys.exit(STATUS_SUCCESSFUL) @muxcable.command() @click.argument('port', required=False, default=None) @click.option('--json', 'json_output', required=False, is_flag=True, type=click.BOOL, help="display the output in json format") def config(port, json_output): """Show muxcable config information""" port_mux_tbl_keys = {} asic_start_idx = None per_npu_configdb = {} mux_tbl_cfg_db = {} peer_switch_tbl_cfg_db = {} # Getting all front asic namespace and correspding config and state DB connector namespaces = multi_asic.get_front_end_namespaces() for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) if asic_start_idx is None: asic_start_idx = asic_id # TO-DO replace the macros with correct swsscommon names #config_db[asic_id] = swsscommon.DBConnector("CONFIG_DB", REDIS_TIMEOUT_MSECS, True, namespace) #mux_tbl_cfg_db[asic_id] = swsscommon.Table(config_db[asic_id], swsscommon.CFG_MUX_CABLE_TABLE_NAME) per_npu_configdb[asic_id] = ConfigDBConnector(use_unix_socket_path=False, namespace=namespace) per_npu_configdb[asic_id].connect() mux_tbl_cfg_db[asic_id] = per_npu_configdb[asic_id].get_table("MUX_CABLE") peer_switch_tbl_cfg_db[asic_id] = per_npu_configdb[asic_id].get_table("PEER_SWITCH") #peer_switch_tbl_cfg_db[asic_id] = swsscommon.Table(config_db[asic_id], swsscommon.CFG_PEER_SWITCH_TABLE_NAME) port_mux_tbl_keys[asic_id] = mux_tbl_cfg_db[asic_id].keys() if port is not None: asic_index = None if platform_sfputil is not None: asic_index = platform_sfputil.get_asic_id_for_logical_port(port) if asic_index is None: # TODO this import is only for unit test purposes, and should be removed once sonic_platform_base # is fully mocked import sonic_platform_base.sonic_sfp.sfputilhelper asic_index = sonic_platform_base.sonic_sfp.sfputilhelper.SfpUtilHelper().get_asic_id_for_logical_port(port) if asic_index is None: click.echo("Got invalid asic index for port {}, cant retreive mux status".format(port)) sys.exit(CONFIG_FAIL) port_status_dict = {} port_status_dict["MUX_CABLE"] = {} port_status_dict["MUX_CABLE"]["PEER_TOR"] = {} peer_switch_value = None switch_name = get_switch_name(per_npu_configdb[asic_start_idx]) if asic_start_idx is not None: peer_switch_value = get_value_for_key_in_config_tbl( per_npu_configdb[asic_start_idx], switch_name, "address_ipv4", "PEER_SWITCH") port_status_dict["MUX_CABLE"]["PEER_TOR"] = peer_switch_value if port_mux_tbl_keys[asic_id] is not None: if port in port_mux_tbl_keys[asic_id]: if json_output: port_status_dict["MUX_CABLE"] = {} port_status_dict["MUX_CABLE"]["PORTS"] = {} create_json_dump_per_port_config(port_status_dict, per_npu_configdb, asic_id, port) click.echo("{}".format(json.dumps(port_status_dict, indent=4))) sys.exit(CONFIG_SUCCESSFUL) else: print_data = [] print_peer_tor = [] create_table_dump_per_port_config(print_data, per_npu_configdb, asic_id, port) headers = ['SWITCH_NAME', 'PEER_TOR'] peer_tor_data = [] peer_tor_data.append(switch_name) peer_tor_data.append(peer_switch_value) print_peer_tor.append(peer_tor_data) click.echo(tabulate(print_peer_tor, headers=headers)) headers = ['port', 'state', 'ipv4', 'ipv6'] click.echo(tabulate(print_data, headers=headers)) sys.exit(CONFIG_SUCCESSFUL) else: click.echo("this is not a valid port present on mux_cable".format(port)) sys.exit(CONFIG_FAIL) else: click.echo("there is not a valid asic table for this asic_index".format(asic_index)) sys.exit(CONFIG_FAIL) else: port_status_dict = {} port_status_dict["MUX_CABLE"] = {} port_status_dict["MUX_CABLE"]["PEER_TOR"] = {} peer_switch_value = None switch_name = get_switch_name(per_npu_configdb[asic_start_idx]) if asic_start_idx is not None: peer_switch_value = get_value_for_key_in_config_tbl( per_npu_configdb[asic_start_idx], switch_name, "address_ipv4", "PEER_SWITCH") port_status_dict["MUX_CABLE"]["PEER_TOR"] = peer_switch_value if json_output: port_status_dict["MUX_CABLE"]["PORTS"] = {} for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) for port in natsorted(port_mux_tbl_keys[asic_id]): create_json_dump_per_port_config(port_status_dict, per_npu_configdb, asic_id, port) click.echo("{}".format(json.dumps(port_status_dict, indent=4))) else: print_data = [] print_peer_tor = [] for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) for port in natsorted(port_mux_tbl_keys[asic_id]): create_table_dump_per_port_config(print_data, per_npu_configdb, asic_id, port) headers = ['SWITCH_NAME', 'PEER_TOR'] peer_tor_data = [] peer_tor_data.append(switch_name) peer_tor_data.append(peer_switch_value) print_peer_tor.append(peer_tor_data) click.echo(tabulate(print_peer_tor, headers=headers)) headers = ['port', 'state', 'ipv4', 'ipv6'] click.echo(tabulate(print_data, headers=headers)) sys.exit(CONFIG_SUCCESSFUL) @muxcable.command() @click.argument('port', required=True, default=None, type=click.INT) @click.argument('target', required=True, default=None, type=click.INT) def berinfo(port, target): """Show muxcable BER (bit error rate) information""" if os.geteuid() != 0: click.echo("Root privileges are required for this operation") sys.exit(EXIT_FAIL) import sonic_y_cable.y_cable res = sonic_y_cable.y_cable.get_ber_info(port, target) if res == False or res == -1: click.echo("Unable to fetch ber info") sys.exit(EXIT_FAIL) headers = ['Lane1', 'Lane2', 'Lane3', 'Lane4'] lane_data = [] lane_data.append(res) click.echo(tabulate(lane_data, headers=headers)) sys.exit(EXIT_SUCCESS) @muxcable.command() @click.argument('port', required=True, default=None, type=click.INT) @click.argument('target', required=True, default=None, type=click.INT) def eyeinfo(port, target): """Show muxcable eye information in mv""" if os.geteuid() != 0: click.echo("Root privileges are required for this operation") sys.exit(EXIT_FAIL) import sonic_y_cable.y_cable res = sonic_y_cable.y_cable.get_eye_info(port, target) if res == False or res == -1: click.echo("Unable to fetch eye info") sys.exit(EXIT_FAIL) headers = ['Lane1', 'Lane2', 'Lane3', 'Lane4'] lane_data = [] lane_data.append(res) click.echo(tabulate(lane_data, headers=headers)) sys.exit(EXIT_SUCCESS) @muxcable.command() @click.argument('port', required=True, default=None) def cableinfo(port): """Show muxcable cable information""" if platform_sfputil is not None: physical_port_list = platform_sfputil_helper.logical_port_name_to_physical_port_list(port) if not isinstance(physical_port_list, list): click.echo("ERR: Unable to get a port on muxcable port") sys.exit(EXIT_FAIL) if len(physical_port_list) != 1: click.echo("ERR: Unable to get a single port on muxcable") sys.exit(EXIT_FAIL) physical_port = physical_port_list[0] import sonic_y_cable.y_cable part_num = sonic_y_cable.y_cable.get_part_number(physical_port) if part_num == False or part_num == -1: click.echo("ERR: Unable to get cable info part number") sys.exit(EXIT_FAIL) vendor = sonic_y_cable.y_cable.get_vendor(physical_port) if vendor == False or vendor == -1: click.echo("ERR: Unable to get cable info vendor name") sys.exit(EXIT_FAIL) headers = ['Vendor', 'Model'] body = [[vendor, part_num]] click.echo(tabulate(body, headers=headers)) @muxcable.group(cls=clicommon.AbbreviationGroup) def hwmode(): """Shows the muxcable hardware information directly""" pass @hwmode.command() @click.argument('port', metavar='<port_name>', required=False, default=None) def muxdirection(port): """Shows the current direction of the muxcable {active/standy}""" per_npu_statedb = {} transceiver_table_keys = {} transceiver_dict = {} # Getting all front asic namespace and correspding config and state DB connector namespaces = multi_asic.get_front_end_namespaces() for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) per_npu_statedb[asic_id] = SonicV2Connector(use_unix_socket_path=False, namespace=namespace) per_npu_statedb[asic_id].connect(per_npu_statedb[asic_id].STATE_DB) transceiver_table_keys[asic_id] = per_npu_statedb[asic_id].keys( per_npu_statedb[asic_id].STATE_DB, 'TRANSCEIVER_INFO|*') if port is not None: logical_port_list = platform_sfputil_helper.get_logical_list() if port not in logical_port_list: click.echo("ERR: This is not a valid port, valid ports ({})".format(", ".join(logical_port_list))) sys.exit(EXIT_FAIL) asic_index = None if platform_sfputil is not None: asic_index = platform_sfputil_helper.get_asic_id_for_logical_port(port) if asic_index is None: # TODO this import is only for unit test purposes, and should be removed once sonic_platform_base # is fully mocked import sonic_platform_base.sonic_sfp.sfputilhelper asic_index = sonic_platform_base.sonic_sfp.sfputilhelper.SfpUtilHelper().get_asic_id_for_logical_port(port) if asic_index is None: click.echo("Got invalid asic index for port {}, cant retreive mux status".format(port)) sys.exit(CONFIG_FAIL) transceiver_dict[asic_index] = per_npu_statedb[asic_index].get_all( per_npu_statedb[asic_index].STATE_DB, 'TRANSCEIVER_INFO|{}'.format(port)) vendor_value = get_value_for_key_in_dict(transceiver_dict[asic_index], port, "manufacturer", "TRANSCEIVER_INFO") model_value = get_value_for_key_in_dict(transceiver_dict[asic_index], port, "model", "TRANSCEIVER_INFO") """ This check is required for checking whether or not this port is connected to a Y cable or not. The check gives a way to differentiate between non Y cable ports and Y cable ports. TODO: this should be removed once their is support for multiple vendors on Y cable""" if vendor_value != VENDOR_NAME or not re.match(VENDOR_MODEL_REGEX, model_value): click.echo("ERR: Got invalid vendor value and model for port {}".format(port)) sys.exit(EXIT_FAIL) if platform_sfputil is not None: physical_port_list = platform_sfputil_helper.logical_port_name_to_physical_port_list(port) if not isinstance(physical_port_list, list): click.echo(("ERR: Unable to locate physical port information for {}".format(port))) sys.exit(EXIT_FAIL) if len(physical_port_list) != 1: click.echo("ERR: Found multiple physical ports ({}) associated with {}".format( ", ".join(physical_port_list), port)) sys.exit(EXIT_FAIL) physical_port = physical_port_list[0] logical_port_list_for_physical_port = platform_sfputil_helper.get_physical_to_logical() logical_port_list_per_port = logical_port_list_for_physical_port.get(physical_port, None) """ This check is required for checking whether or not this logical port is the one which is actually mapped to physical port and by convention it is always the first port. TODO: this should be removed with more logic to check which logical port maps to actual physical port being used""" if port != logical_port_list_per_port[0]: click.echo("ERR: This logical Port {} is not on a muxcable".format(port)) sys.exit(EXIT_FAIL) import sonic_y_cable.y_cable read_side = sonic_y_cable.y_cable.check_read_side(physical_port) if read_side == False or read_side == -1: click.echo(("ERR: Unable to get read_side for the cable port {}".format(port))) sys.exit(EXIT_FAIL) mux_direction = sonic_y_cable.y_cable.check_mux_direction(physical_port) if mux_direction == False or mux_direction == -1: click.echo(("ERR: Unable to get mux direction for the cable port {}".format(port))) sys.exit(EXIT_FAIL) if int(read_side) == 1: if mux_direction == 1: state = "active" elif mux_direction == 2: state = "standby" elif int(read_side) == 2: if mux_direction == 1: state = "standby" elif mux_direction == 2: state = "active" else: click.echo(("ERR: Unable to get mux direction, port {}".format(port))) state = "unknown" headers = ['Port', 'Direction'] body = [[port, state]] click.echo(tabulate(body, headers=headers)) else: logical_port_list = platform_sfputil_helper.get_logical_list() rc = True body = [] for port in logical_port_list: temp_list = [] if platform_sfputil is not None: physical_port_list = platform_sfputil_helper.logical_port_name_to_physical_port_list(port) if not isinstance(physical_port_list, list): continue if len(physical_port_list) != 1: continue asic_index = None if platform_sfputil is not None: asic_index = platform_sfputil_helper.get_asic_id_for_logical_port(port) if asic_index is None: # TODO this import is only for unit test purposes, and should be removed once sonic_platform_base # is fully mocked import sonic_platform_base.sonic_sfp.sfputilhelper asic_index = sonic_platform_base.sonic_sfp.sfputilhelper.SfpUtilHelper().get_asic_id_for_logical_port(port) if asic_index is None: continue transceiver_dict[asic_index] = per_npu_statedb[asic_index].get_all( per_npu_statedb[asic_index].STATE_DB, 'TRANSCEIVER_INFO|{}'.format(port)) vendor_value = transceiver_dict[asic_index].get("manufacturer", None) model_value = transceiver_dict[asic_index].get("model", None) """ This check is required for checking whether or not this port is connected to a Y cable or not. The check gives a way to differentiate between non Y cable ports and Y cable ports. TODO: this should be removed once their is support for multiple vendors on Y cable""" if vendor_value != VENDOR_NAME or not re.match(VENDOR_MODEL_REGEX, model_value): continue physical_port = physical_port_list[0] logical_port_list_for_physical_port = platform_sfputil_helper.get_physical_to_logical() logical_port_list_per_port = logical_port_list_for_physical_port.get(physical_port, None) """ This check is required for checking whether or not this logical port is the one which is actually mapped to physical port and by convention it is always the first port. TODO: this should be removed with more logic to check which logical port maps to actual physical port being used""" if port != logical_port_list_per_port[0]: continue import sonic_y_cable.y_cable read_side = sonic_y_cable.y_cable.check_read_side(physical_port) if read_side == False or read_side == -1: rc = False temp_list.append(port) temp_list.append("unknown") body.append(temp_list) continue mux_direction = sonic_y_cable.y_cable.check_mux_direction(physical_port) if mux_direction == False or mux_direction == -1: rc = False temp_list.append(port) temp_list.append("unknown") body.append(temp_list) continue if int(read_side) == 1: if mux_direction == 1: state = "active" elif mux_direction == 2: state = "standby" elif int(read_side) == 2: if mux_direction == 1: state = "standby" elif mux_direction == 2: state = "active" else: rc = False temp_list.append(port) temp_list.append("unknown") body.append(temp_list) continue temp_list.append(port) temp_list.append(state) body.append(temp_list) headers = ['Port', 'Direction'] click.echo(tabulate(body, headers=headers)) if rc == False: sys.exit(EXIT_FAIL) @hwmode.command() @click.argument('port', metavar='<port_name>', required=False, default=None) def switchmode(port): """Shows the current switching mode of the muxcable {auto/manual}""" per_npu_statedb = {} transceiver_dict = {} # Getting all front asic namespace and correspding config and state DB connector namespaces = multi_asic.get_front_end_namespaces() for namespace in namespaces: asic_id = multi_asic.get_asic_index_from_namespace(namespace) per_npu_statedb[asic_id] = SonicV2Connector(use_unix_socket_path=False, namespace=namespace) per_npu_statedb[asic_id].connect(per_npu_statedb[asic_id].STATE_DB) if port is not None: logical_port_list = platform_sfputil_helper.get_logical_list() if port not in logical_port_list: click.echo("ERR: This is not a valid port, valid ports ({})".format(", ".join(logical_port_list))) sys.exit(EXIT_FAIL) asic_index = None if platform_sfputil is not None: asic_index = platform_sfputil_helper.get_asic_id_for_logical_port(port) if asic_index is None: # TODO this import is only for unit test purposes, and should be removed once sonic_platform_base # is fully mocked import sonic_platform_base.sonic_sfp.sfputilhelper asic_index = sonic_platform_base.sonic_sfp.sfputilhelper.SfpUtilHelper().get_asic_id_for_logical_port(port) if asic_index is None: click.echo("Got invalid asic index for port {}, cant retreive mux status".format(port)) sys.exit(CONFIG_FAIL) transceiver_dict[asic_index] = per_npu_statedb[asic_index].get_all( per_npu_statedb[asic_index].STATE_DB, 'TRANSCEIVER_INFO|{}'.format(port)) vendor_value = get_value_for_key_in_dict(transceiver_dict[asic_index], port, "manufacturer", "TRANSCEIVER_INFO") model_value = get_value_for_key_in_dict(transceiver_dict[asic_index], port, "model", "TRANSCEIVER_INFO") """ This check is required for checking whether or not this port is connected to a Y cable or not. The check gives a way to differentiate between non Y cable ports and Y cable ports. TODO: this should be removed once their is support for multiple vendors on Y cable""" if vendor_value != VENDOR_NAME or not re.match(VENDOR_MODEL_REGEX, model_value): click.echo("ERR: Got invalid vendor value and model for port {}".format(port)) sys.exit(EXIT_FAIL) if platform_sfputil is not None: physical_port_list = platform_sfputil_helper.logical_port_name_to_physical_port_list(port) if not isinstance(physical_port_list, list): click.echo(("ERR: Unable to locate physical port information for {}".format(port))) sys.exit(EXIT_FAIL) if len(physical_port_list) != 1: click.echo("ERR: Found multiple physical ports ({}) associated with {}".format( ", ".join(physical_port_list), port)) sys.exit(EXIT_FAIL) physical_port = physical_port_list[0] logical_port_list_for_physical_port = platform_sfputil_helper.get_physical_to_logical() logical_port_list_per_port = logical_port_list_for_physical_port.get(physical_port, None) """ This check is required for checking whether or not this logical port is the one which is actually mapped to physical port and by convention it is always the first port. TODO: this should be removed with more logic to check which logical port maps to actual physical port being used""" if port != logical_port_list_per_port[0]: click.echo("ERR: This logical Port {} is not on a muxcable".format(port)) sys.exit(EXIT_FAIL) import sonic_y_cable.y_cable switching_mode = sonic_y_cable.y_cable.get_switching_mode(physical_port) if switching_mode == -1: click.echo(("ERR: Unable to get switching mode for the cable port {}".format(port))) sys.exit(EXIT_FAIL) if switching_mode == sonic_y_cable.y_cable.SWITCHING_MODE_AUTO: state = "auto" elif switching_mode == sonic_y_cable.y_cable.SWITCHING_MODE_MANUAL: state = "manual" else: click.echo(("ERR: Unable to get switching state mode, port {}".format(port))) state = "unknown" headers = ['Port', 'Switching'] body = [[port, state]] click.echo(tabulate(body, headers=headers)) else: logical_port_list = platform_sfputil_helper.get_logical_list() rc = True body = [] for port in logical_port_list: temp_list = [] if platform_sfputil is not None: physical_port_list = platform_sfputil_helper.logical_port_name_to_physical_port_list(port) if not isinstance(physical_port_list, list): continue if len(physical_port_list) != 1: continue asic_index = None if platform_sfputil is not None: asic_index = platform_sfputil_helper.get_asic_id_for_logical_port(port) if asic_index is None: # TODO this import is only for unit test purposes, and should be removed once sonic_platform_base # is fully mocked import sonic_platform_base.sonic_sfp.sfputilhelper asic_index = sonic_platform_base.sonic_sfp.sfputilhelper.SfpUtilHelper().get_asic_id_for_logical_port(port) if asic_index is None: continue transceiver_dict[asic_index] = per_npu_statedb[asic_index].get_all( per_npu_statedb[asic_index].STATE_DB, 'TRANSCEIVER_INFO|{}'.format(port)) vendor_value = transceiver_dict[asic_index].get("manufacturer", None) model_value = transceiver_dict[asic_index].get("model", None) """ This check is required for checking whether or not this port is connected to a Y cable or not. The check gives a way to differentiate between non Y cable ports and Y cable ports. TODO: this should be removed once their is support for multiple vendors on Y cable""" if vendor_value != VENDOR_NAME or not re.match(VENDOR_MODEL_REGEX, model_value): continue physical_port = physical_port_list[0] logical_port_list_for_physical_port = platform_sfputil_helper.get_physical_to_logical() logical_port_list_per_port = logical_port_list_for_physical_port.get(physical_port, None) """ This check is required for checking whether or not this logical port is the one which is actually mapped to physical port and by convention it is always the first port. TODO: this should be removed with more logic to check which logical port maps to actual physical port being used""" if port != logical_port_list_per_port[0]: continue import sonic_y_cable.y_cable switching_mode = sonic_y_cable.y_cable.get_switching_mode(physical_port) if switching_mode == -1: rc = False temp_list.append(port) temp_list.append("unknown") body.append(temp_list) continue if switching_mode == sonic_y_cable.y_cable.SWITCHING_MODE_AUTO: state = "auto" elif switching_mode == sonic_y_cable.y_cable.SWITCHING_MODE_MANUAL: state = "manual" else: rc = False temp_list.append(port) temp_list.append("unknown") body.append(temp_list) continue temp_list.append(port) temp_list.append(state) body.append(temp_list) headers = ['Port', 'Switching'] click.echo(tabulate(body, headers=headers)) if rc == False: sys.exit(EXIT_FAIL)
43.845687
127
0.657642
4,795
36,085
4.613973
0.058603
0.022781
0.022329
0.026894
0.891882
0.867971
0.852513
0.836241
0.824444
0.816218
0
0.003313
0.255508
36,085
822
128
43.899027
0.820212
0.053817
0
0.783646
0
0
0.100799
0.000664
0
0
0
0.014599
0
1
0.027257
false
0.001704
0.040886
0
0.073254
0.044293
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
8
4c17039b1cf2dc37cf24c0ab46e21f1817b45b5c
62,037
py
Python
magnum/tests/unit/conductor/handlers/test_k8s_cluster_conductor.py
ajmadsen/magnum
042d2ad14489afcecf0a3bc4038e2333e2acb3fb
[ "Apache-2.0" ]
319
2015-04-01T01:36:14.000Z
2022-01-18T13:21:46.000Z
magnum/tests/unit/conductor/handlers/test_k8s_cluster_conductor.py
ajmadsen/magnum
042d2ad14489afcecf0a3bc4038e2333e2acb3fb
[ "Apache-2.0" ]
10
2015-06-05T20:12:46.000Z
2018-10-17T09:14:22.000Z
magnum/tests/unit/conductor/handlers/test_k8s_cluster_conductor.py
ajmadsen/magnum
042d2ad14489afcecf0a3bc4038e2333e2acb3fb
[ "Apache-2.0" ]
254
2015-03-30T13:56:06.000Z
2022-03-26T03:40:22.000Z
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from unittest import mock from unittest.mock import patch import magnum.conf from magnum.drivers.k8s_coreos_v1 import driver as k8s_coreos_dr from magnum.drivers.k8s_fedora_atomic_v1 import driver as k8s_dr from magnum import objects from magnum.tests import base CONF = magnum.conf.CONF class TestClusterConductorWithK8s(base.TestCase): def setUp(self): super(TestClusterConductorWithK8s, self).setUp() self.keystone_auth_default_policy = ('[{"match": [{"type": "role", ' '"values": ["member"]}, {"type": ' '"project", "values": ' '["project_id"]}], "resource": ' '{"namespace": "default", ' '"resources": ["pods", ' '"services", "deployments", ' '"pvc"], "verbs": ["list"], ' '"version": "*"}}]') self.cluster_template_dict = { 'image_id': 'image_id', 'flavor_id': 'flavor_id', 'master_flavor_id': 'master_flavor_id', 'keypair_id': 'keypair_id', 'dns_nameserver': 'dns_nameserver', 'external_network_id': 'e2a6c8b0-a3c2-42a3-b3f4-01400a30896e', 'fixed_network': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'network_driver': 'network_driver', 'volume_driver': 'volume_driver', 'docker_volume_size': 20, 'docker_storage_driver': 'devicemapper', 'cluster_distro': 'fedora-atomic', 'coe': 'kubernetes', 'token': None, 'http_proxy': 'http_proxy', 'https_proxy': 'https_proxy', 'no_proxy': 'no_proxy', 'labels': {'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'flannel_backend': 'vxlan', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'docker_volume_type': 'lvmdriver-1', 'etcd_volume_size': 0, 'availability_zone': 'az_1', 'service_cluster_ip_range': '10.254.0.0/16'}, 'tls_disabled': False, 'server_type': 'vm', 'registry_enabled': False, 'insecure_registry': '10.0.0.1:5000', 'master_lb_enabled': False, 'floating_ip_enabled': False, } self.cluster_dict = { 'uuid': '5d12f6fd-a196-4bf0-ae4c-1f639a523a52', 'cluster_template_id': 'xx-xx-xx-xx', 'keypair': 'keypair_id', 'name': 'cluster1', 'stack_id': 'xx-xx-xx-xx', 'api_address': '172.17.2.3', 'discovery_url': 'https://discovery.etcd.io/test', 'docker_volume_size': 20, 'flavor_id': 'flavor_id', 'ca_cert_ref': 'http://barbican/v1/containers/xx-xx-xx-xx', 'magnum_cert_ref': 'http://barbican/v1/containers/xx-xx-xx-xx', 'trustee_username': 'fake_trustee', 'trustee_password': 'fake_trustee_password', 'trustee_user_id': '7b489f04-b458-4541-8179-6a48a553e656', 'trust_id': 'bd11efc5-d4e2-4dac-bbce-25e348ddf7de', 'coe_version': 'fake-version', 'labels': {'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'flannel_backend': 'vxlan', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'docker_volume_type': 'lvmdriver-1', 'availability_zone': 'az_1', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'influx_grafana_dashboard_enabled': 'True', 'service_cluster_ip_range': '10.254.0.0/16', 'boot_volume_size': '60'}, 'master_flavor_id': 'master_flavor_id', 'flavor_id': 'flavor_id', 'project_id': 'project_id', 'keystone_auth_default_policy': self.keystone_auth_default_policy, 'fixed_network': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'floating_ip_enabled': False, 'master_lb_enabled': False, } self.worker_ng_dict = { 'uuid': '5d12f6fd-a196-4bf0-ae4c-1f639a523a53', 'name': 'worker_ng', 'cluster_id': '5d12f6fd-a196-4bf0-ae4c-1f639a523a52', 'project_id': 'project_id', 'docker_volume_size': 20, 'labels': self.cluster_dict['labels'], 'flavor_id': 'flavor_id', 'image_id': 'image_id', 'node_addresses': ['172.17.2.4'], 'node_count': 1, 'role': 'worker', 'max_nodes': 5, 'min_nodes': 1, 'is_default': True } self.master_ng_dict = { 'uuid': '5d12f6fd-a196-4bf0-ae4c-1f639a523a54', 'name': 'master_ng', 'cluster_id': '5d12f6fd-a196-4bf0-ae4c-1f639a523a52', 'project_id': 'project_id', 'docker_volume_size': 20, 'labels': self.cluster_dict['labels'], 'flavor_id': 'master_flavor_id', 'image_id': 'image_id', 'node_addresses': ['172.17.2.18'], 'node_count': 1, 'role': 'master', 'max_nodes': 5, 'min_nodes': 1, 'is_default': True } self.context.user_name = 'fake_user' self.context.project_id = 'fake_tenant' osc_patcher = mock.patch('magnum.common.clients.OpenStackClients') self.mock_osc_class = osc_patcher.start() self.addCleanup(osc_patcher.stop) self.mock_osc = mock.MagicMock() mock_keypair = mock.MagicMock() mock_keypair.public_key = 'ssh-rsa AAAAB3Nz' self.mock_nova = mock.MagicMock() self.mock_nova.keypairs.get.return_value = mock_keypair self.mock_osc.nova.return_value = self.mock_nova self.mock_osc.url_for.return_value = 'http://192.168.10.10:5000/v3' self.mock_osc.magnum_url.return_value = 'http://127.0.0.1:9511/v1' self.mock_osc.cinder_region_name.return_value = 'RegionOne' self.mock_keystone = mock.MagicMock() self.mock_keystone.trustee_domain_id = 'trustee_domain_id' self.mock_osc.keystone.return_value = self.mock_keystone self.mock_osc_class.return_value = self.mock_osc octavia_patcher = mock.patch( 'magnum.common.keystone.is_octavia_enabled' ) self.mock_enable_octavia = octavia_patcher.start() self.mock_enable_octavia.return_value = False self.addCleanup(octavia_patcher.stop) CONF.set_override('default_boot_volume_type', 'lvmdriver-1', group='cinder') CONF.set_override('default_etcd_volume_type', 'lvmdriver-1', group='cinder') self.fixed_subnet_cidr = '20.200.0.0/16' @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): self._test_extract_template_definition( mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_cluster_template_get_by_uuid, mock_get, mock_objects_nodegroup_list, mock_get_subnet) def _test_extract_template_definition( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_cluster_template_get_by_uuid, mock_get, mock_objects_nodegroup_list, mock_get_subnet, missing_attr=None): if missing_attr in self.cluster_template_dict: self.cluster_template_dict[missing_attr] = None elif missing_attr in self.cluster_dict: self.cluster_dict[missing_attr] = None if missing_attr == 'image_id': del self.worker_ng_dict['image_id'] del self.master_ng_dict['image_id'] cluster_template = objects.ClusterTemplate( self.context, **self.cluster_template_dict) mock_generate_csr_and_key.return_value = {'csr': 'csr', 'private_key': 'private_key', 'public_key': 'public_key'} mock_sign_node_certificate.return_value = 'signed_cert' mock_objects_cluster_template_get_by_uuid.return_value = \ cluster_template expected_result = str('{"action":"get","node":{"key":"test","value":' '"1","modifiedIndex":10,"createdIndex":10}}') mock_resp = mock.MagicMock() mock_resp.text = expected_result mock_resp.status_code = 200 mock_get.return_value = mock_resp cluster = objects.Cluster(self.context, **self.cluster_dict) worker_ng = objects.NodeGroup(self.context, **self.worker_ng_dict) master_ng = objects.NodeGroup(self.context, **self.master_ng_dict) mock_objects_nodegroup_list.return_value = [master_ng, worker_ng] mock_driver.return_value = k8s_dr.Driver() mock_get_subnet.return_value = self.fixed_subnet_cidr (template_path, definition, env_files) = mock_driver()._extract_template_definition(self.context, cluster) mapping = { 'dns_nameserver': 'dns_nameserver', 'flavor_id': 'minion_flavor', 'docker_volume_size': 'docker_volume_size', 'docker_storage_driver': 'docker_storage_driver', 'network_driver': 'network_driver', 'volume_driver': 'volume_driver', 'master_flavor_id': 'master_flavor', 'apiserver_port': '', 'node_count': 'number_of_minions', 'master_count': 'number_of_masters', 'discovery_url': 'discovery_url', 'labels': {'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'flannel_backend': 'vxlan', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'docker_volume_type': 'lvmdriver-1', 'boot_volume_type': 'lvmdriver-1', 'etcd_volume_size': None, 'etcd_volume_type': '', 'availability_zone': 'az_1', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'service_cluster_ip_range': '10.254.0.0/16', }, 'http_proxy': 'http_proxy', 'https_proxy': 'https_proxy', 'no_proxy': 'no_proxy', 'cluster_uuid': self.cluster_dict['uuid'], 'magnum_url': self.mock_osc.magnum_url.return_value, 'tls_disabled': False, 'insecure_registry': '10.0.0.1:5000', 'image_id': ['master_image', 'minion_image'] } expected = { 'cloud_provider_enabled': 'false', 'ssh_key_name': 'keypair_id', 'external_network': 'e2a6c8b0-a3c2-42a3-b3f4-01400a30896e', 'fixed_network': 'fixed_network', 'fixed_network_name': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'network_driver': 'network_driver', 'volume_driver': 'volume_driver', 'dns_nameserver': 'dns_nameserver', 'master_image': 'image_id', 'minion_image': 'image_id', 'minion_flavor': 'flavor_id', 'master_flavor': 'master_flavor_id', 'number_of_minions': 1, 'number_of_masters': 1, 'docker_volume_size': 20, 'docker_volume_type': 'lvmdriver-1', 'docker_storage_driver': 'devicemapper', 'discovery_url': 'https://discovery.etcd.io/test', 'etcd_volume_size': None, 'etcd_volume_type': '', 'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'flannel_backend': 'vxlan', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'http_proxy': 'http_proxy', 'https_proxy': 'https_proxy', 'no_proxy': 'no_proxy,20.200.0.0/16', 'username': 'fake_user', 'cluster_uuid': self.cluster_dict['uuid'], 'magnum_url': self.mock_osc.magnum_url.return_value, 'region_name': self.mock_osc.cinder_region_name.return_value, 'tls_disabled': False, 'registry_enabled': False, 'trustee_domain_id': self.mock_keystone.trustee_domain_id, 'trustee_username': 'fake_trustee', 'trustee_password': 'fake_trustee_password', 'trustee_user_id': '7b489f04-b458-4541-8179-6a48a553e656', 'trust_id': '', 'auth_url': 'http://192.168.10.10:5000/v3', 'insecure_registry_url': '10.0.0.1:5000', 'kube_version': 'fake-version', 'verify_ca': True, 'openstack_ca': '', 'ssh_public_key': 'ssh-rsa AAAAB3Nz', "nodes_affinity_policy": "soft-anti-affinity", 'availability_zone': 'az_1', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'octavia_ingress_controller_tag': None, 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'octavia_enabled': False, 'kube_service_account_key': 'public_key', 'kube_service_account_private_key': 'private_key', 'portal_network_cidr': '10.254.0.0/16', 'project_id': 'project_id', 'max_node_count': 2, 'master_image': 'image_id', 'minion_image': 'image_id', 'keystone_auth_default_policy': self.keystone_auth_default_policy, 'boot_volume_size': '60', 'boot_volume_type': 'lvmdriver-1', 'master_role': 'master', 'worker_role': 'worker', 'master_nodegroup_name': 'master_ng', 'worker_nodegroup_name': 'worker_ng', 'post_install_manifest_url': '', 'master_lb_allowed_cidrs': None, 'fixed_subnet_cidr': self.fixed_subnet_cidr, } if missing_attr is not None: attrs = mapping[missing_attr] if not isinstance(attrs, list): attrs = [attrs] for attr in attrs: expected.pop(attr, None) if missing_attr == 'node_count': expected['max_node_count'] = None self.assertEqual(expected, definition) self.assertEqual( ['../../common/templates/environments/no_private_network.yaml', '../../common/templates/environments/no_etcd_volume.yaml', '../../common/templates/environments/with_volume.yaml', '../../common/templates/environments/no_master_lb.yaml', '../../common/templates/environments/disable_floating_ip.yaml', '../../common/templates/environments/disable_lb_floating_ip.yaml', ], env_files) @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition_with_registry( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): self.cluster_template_dict['registry_enabled'] = True cluster_template = objects.ClusterTemplate( self.context, **self.cluster_template_dict) mock_generate_csr_and_key.return_value = {'csr': 'csr', 'private_key': 'private_key', 'public_key': 'public_key'} mock_sign_node_certificate.return_value = 'signed_cert' mock_objects_cluster_template_get_by_uuid.return_value = \ cluster_template expected_result = str('{"action":"get","node":{"key":"test","value":' '"1","modifiedIndex":10,"createdIndex":10}}') mock_resp = mock.MagicMock() mock_resp.text = expected_result mock_get.return_value = mock_resp cluster = objects.Cluster(self.context, **self.cluster_dict) worker_ng = objects.NodeGroup(self.context, **self.worker_ng_dict) master_ng = objects.NodeGroup(self.context, **self.master_ng_dict) mock_objects_nodegroup_list.return_value = [master_ng, worker_ng] mock_driver.return_value = k8s_dr.Driver() mock_get_subnet.return_value = self.fixed_subnet_cidr CONF.set_override('swift_region', 'RegionOne', group='docker_registry') CONF.set_override('cluster_user_trust', True, group='trust') (template_path, definition, env_files) = mock_driver()._extract_template_definition(self.context, cluster) expected = { 'auth_url': 'http://192.168.10.10:5000/v3', 'cloud_provider_enabled': 'true', 'cluster_uuid': '5d12f6fd-a196-4bf0-ae4c-1f639a523a52', 'discovery_url': 'https://discovery.etcd.io/test', 'dns_nameserver': 'dns_nameserver', 'docker_storage_driver': 'devicemapper', 'docker_volume_size': 20, 'docker_volume_type': 'lvmdriver-1', 'etcd_volume_size': None, 'etcd_volume_type': '', 'external_network': 'e2a6c8b0-a3c2-42a3-b3f4-01400a30896e', 'fixed_network': 'fixed_network', 'fixed_network_name': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'flannel_backend': 'vxlan', 'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'http_proxy': 'http_proxy', 'https_proxy': 'https_proxy', 'magnum_url': 'http://127.0.0.1:9511/v1', 'master_flavor': 'master_flavor_id', 'minion_flavor': 'flavor_id', 'network_driver': 'network_driver', 'no_proxy': 'no_proxy,20.200.0.0/16', 'number_of_masters': 1, 'number_of_minions': 1, 'region_name': 'RegionOne', 'registry_container': 'docker_registry', 'registry_enabled': True, 'master_image': 'image_id', 'minion_image': 'image_id', 'ssh_key_name': 'keypair_id', 'swift_region': 'RegionOne', 'tls_disabled': False, 'trust_id': 'bd11efc5-d4e2-4dac-bbce-25e348ddf7de', 'trustee_domain_id': self.mock_keystone.trustee_domain_id, 'trustee_password': 'fake_trustee_password', 'trustee_user_id': '7b489f04-b458-4541-8179-6a48a553e656', 'trustee_username': 'fake_trustee', 'username': 'fake_user', 'volume_driver': 'volume_driver', 'insecure_registry_url': '10.0.0.1:5000', 'kube_version': 'fake-version', 'verify_ca': True, 'openstack_ca': '', 'ssh_public_key': 'ssh-rsa AAAAB3Nz', "nodes_affinity_policy": "soft-anti-affinity", 'availability_zone': 'az_1', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'octavia_ingress_controller_tag': None, 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'octavia_enabled': False, 'kube_service_account_key': 'public_key', 'kube_service_account_private_key': 'private_key', 'portal_network_cidr': '10.254.0.0/16', 'project_id': 'project_id', 'max_node_count': 2, 'master_image': 'image_id', 'minion_image': 'image_id', 'keystone_auth_default_policy': self.keystone_auth_default_policy, 'boot_volume_size': '60', 'boot_volume_type': 'lvmdriver-1', 'master_role': 'master', 'worker_role': 'worker', 'master_nodegroup_name': 'master_ng', 'worker_nodegroup_name': 'worker_ng', 'post_install_manifest_url': '', 'master_lb_allowed_cidrs': None, 'fixed_subnet_cidr': self.fixed_subnet_cidr } self.assertEqual(expected, definition) self.assertEqual( ['../../common/templates/environments/no_private_network.yaml', '../../common/templates/environments/no_etcd_volume.yaml', '../../common/templates/environments/with_volume.yaml', '../../common/templates/environments/no_master_lb.yaml', '../../common/templates/environments/disable_floating_ip.yaml', '../../common/templates/environments/disable_lb_floating_ip.yaml' ], env_files) @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition_only_required( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): not_required = ['image_id', 'flavor_id', 'dns_nameserver', 'docker_volume_size', 'http_proxy', 'https_proxy', 'no_proxy', 'network_driver', 'master_flavor_id', 'docker_storage_driver', 'volume_driver', 'fixed_subnet'] for key in not_required: self.cluster_template_dict[key] = None self.cluster_dict['discovery_url'] = 'https://discovery.etcd.io/test' cluster_template = objects.ClusterTemplate( self.context, **self.cluster_template_dict) mock_generate_csr_and_key.return_value = {'csr': 'csr', 'private_key': 'private_key', 'public_key': 'public_key'} mock_sign_node_certificate.return_value = 'signed_cert' mock_objects_cluster_template_get_by_uuid.return_value = \ cluster_template expected_result = str('{"action":"get","node":{"key":"test","value":' '"1","modifiedIndex":10,"createdIndex":10}}') mock_resp = mock.MagicMock() mock_resp.text = expected_result mock_get.return_value = mock_resp mock_driver.return_value = k8s_dr.Driver() cluster = objects.Cluster(self.context, **self.cluster_dict) del self.worker_ng_dict['image_id'] worker_ng = objects.NodeGroup(self.context, **self.worker_ng_dict) del self.master_ng_dict['image_id'] master_ng = objects.NodeGroup(self.context, **self.master_ng_dict) master_ng.image_id = None mock_objects_nodegroup_list.return_value = [master_ng, worker_ng] mock_get_subnet.return_value = self.fixed_subnet_cidr (template_path, definition, env_files) = mock_driver()._extract_template_definition(self.context, cluster) expected = { 'auth_url': 'http://192.168.10.10:5000/v3', 'cloud_provider_enabled': 'false', 'cluster_uuid': '5d12f6fd-a196-4bf0-ae4c-1f639a523a52', 'discovery_url': 'https://discovery.etcd.io/test', 'docker_volume_size': 20, 'docker_volume_type': 'lvmdriver-1', 'master_flavor': 'master_flavor_id', 'minion_flavor': 'flavor_id', 'fixed_network': 'fixed_network', 'fixed_network_name': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'external_network': 'e2a6c8b0-a3c2-42a3-b3f4-01400a30896e', 'flannel_backend': 'vxlan', 'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'etcd_volume_size': None, 'etcd_volume_type': '', 'insecure_registry_url': '10.0.0.1:5000', 'kube_version': 'fake-version', 'magnum_url': 'http://127.0.0.1:9511/v1', 'number_of_masters': 1, 'number_of_minions': 1, 'region_name': 'RegionOne', 'registry_enabled': False, 'ssh_key_name': 'keypair_id', 'tls_disabled': False, 'trust_id': '', 'trustee_domain_id': 'trustee_domain_id', 'trustee_password': 'fake_trustee_password', 'trustee_user_id': '7b489f04-b458-4541-8179-6a48a553e656', 'trustee_username': 'fake_trustee', 'username': 'fake_user', 'verify_ca': True, 'openstack_ca': '', 'ssh_public_key': 'ssh-rsa AAAAB3Nz', "nodes_affinity_policy": "soft-anti-affinity", 'availability_zone': 'az_1', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'octavia_ingress_controller_tag': None, 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'octavia_enabled': False, 'kube_service_account_key': 'public_key', 'kube_service_account_private_key': 'private_key', 'portal_network_cidr': '10.254.0.0/16', 'project_id': 'project_id', 'max_node_count': 2, 'boot_volume_size': '60', 'boot_volume_type': 'lvmdriver-1', 'keystone_auth_default_policy': self.keystone_auth_default_policy, 'master_role': 'master', 'worker_role': 'worker', 'master_nodegroup_name': 'master_ng', 'worker_nodegroup_name': 'worker_ng', 'post_install_manifest_url': '', 'master_lb_allowed_cidrs': None, 'fixed_subnet_cidr': self.fixed_subnet_cidr } self.assertEqual(expected, definition) self.assertEqual( ['../../common/templates/environments/no_private_network.yaml', '../../common/templates/environments/no_etcd_volume.yaml', '../../common/templates/environments/with_volume.yaml', '../../common/templates/environments/no_master_lb.yaml', '../../common/templates/environments/disable_floating_ip.yaml', '../../common/templates/environments/disable_lb_floating_ip.yaml' ], env_files) @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') def test_extract_template_definition_coreos_with_disovery( self, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): self.cluster_template_dict['cluster_distro'] = 'coreos' cluster_template = objects.ClusterTemplate( self.context, **self.cluster_template_dict) mock_objects_cluster_template_get_by_uuid.return_value = \ cluster_template expected_result = str('{"action":"get","node":{"key":"test","value":' '"1","modifiedIndex":10,"createdIndex":10}}') mock_resp = mock.MagicMock() mock_resp.text = expected_result mock_resp.status_code = 200 mock_get.return_value = mock_resp cluster = objects.Cluster(self.context, **self.cluster_dict) worker_ng = objects.NodeGroup(self.context, **self.worker_ng_dict) master_ng = objects.NodeGroup(self.context, **self.master_ng_dict) mock_objects_nodegroup_list.return_value = [master_ng, worker_ng] mock_driver.return_value = k8s_coreos_dr.Driver() mock_get_subnet.return_value = self.fixed_subnet_cidr (template_path, definition, env_files) = mock_driver()._extract_template_definition(self.context, cluster) expected = { 'ssh_key_name': 'keypair_id', 'external_network': 'e2a6c8b0-a3c2-42a3-b3f4-01400a30896e', 'fixed_network': 'fixed_network', 'fixed_network_name': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'availability_zone': 'az_1', 'nodes_affinity_policy': 'soft-anti-affinity', 'dns_nameserver': 'dns_nameserver', 'docker_storage_driver': 'devicemapper', 'docker_volume_size': 20, 'docker_volume_type': 'lvmdriver-1', 'minion_flavor': 'flavor_id', 'master_flavor': 'master_flavor_id', 'master_image': 'image_id', 'minion_image': 'image_id', 'number_of_minions': 1, 'number_of_masters': 1, 'network_driver': 'network_driver', 'volume_driver': 'volume_driver', 'discovery_url': 'https://discovery.etcd.io/test', 'etcd_volume_size': None, 'http_proxy': 'http_proxy', 'https_proxy': 'https_proxy', 'no_proxy': 'no_proxy,20.200.0.0/16', 'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'flannel_backend': 'vxlan', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'region_name': 'RegionOne', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'tls_disabled': False, 'registry_enabled': False, 'trustee_domain_id': self.mock_keystone.trustee_domain_id, 'trustee_username': 'fake_trustee', 'trustee_password': 'fake_trustee_password', 'trustee_user_id': '7b489f04-b458-4541-8179-6a48a553e656', 'username': 'fake_user', 'trust_id': '', 'auth_url': 'http://192.168.10.10:5000/v3', 'cluster_uuid': self.cluster_dict['uuid'], 'magnum_url': self.mock_osc.magnum_url.return_value, 'insecure_registry_url': '10.0.0.1:5000', 'kube_version': 'fake-version', 'verify_ca': True, 'openstack_ca': '', 'ssh_public_key': 'ssh-rsa AAAAB3Nz', 'openstack_ca_coreos': '', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'octavia_ingress_controller_tag': None, 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'octavia_enabled': False, 'portal_network_cidr': '10.254.0.0/16', 'master_role': 'master', 'worker_role': 'worker', 'master_nodegroup_name': 'master_ng', 'worker_nodegroup_name': 'worker_ng', 'master_lb_allowed_cidrs': None, 'fixed_subnet_cidr': self.fixed_subnet_cidr, } self.assertEqual(expected, definition) self.assertEqual( ['../../common/templates/environments/no_private_network.yaml', '../../common/templates/environments/no_etcd_volume.yaml', '../../common/templates/environments/with_volume.yaml', '../../common/templates/environments/no_master_lb.yaml', '../../common/templates/environments/disable_floating_ip.yaml', '../../common/templates/environments/disable_lb_floating_ip.yaml' ], env_files) @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') def test_extract_template_definition_coreos_no_discoveryurl( self, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, reqget, mock_get_subnet): self.cluster_template_dict['cluster_distro'] = 'coreos' self.cluster_dict['discovery_url'] = None mock_req = mock.MagicMock(text='http://tokentest/h1/h2/h3', status_code=200) reqget.return_value = mock_req cluster_template = objects.ClusterTemplate( self.context, **self.cluster_template_dict) mock_objects_cluster_template_get_by_uuid.return_value = \ cluster_template cluster = objects.Cluster(self.context, **self.cluster_dict) worker_ng = objects.NodeGroup(self.context, **self.worker_ng_dict) master_ng = objects.NodeGroup(self.context, **self.master_ng_dict) mock_objects_nodegroup_list.return_value = [master_ng, worker_ng] mock_driver.return_value = k8s_coreos_dr.Driver() mock_get_subnet.return_value = self.fixed_subnet_cidr (template_path, definition, env_files) = mock_driver()._extract_template_definition(self.context, cluster) expected = { 'ssh_key_name': 'keypair_id', 'availability_zone': 'az_1', 'external_network': 'e2a6c8b0-a3c2-42a3-b3f4-01400a30896e', 'fixed_network': 'fixed_network', 'fixed_network_name': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'dns_nameserver': 'dns_nameserver', 'docker_storage_driver': u'devicemapper', 'docker_volume_size': 20, 'docker_volume_type': u'lvmdriver-1', 'master_image': 'image_id', 'minion_image': 'image_id', 'minion_flavor': 'flavor_id', 'master_flavor': 'master_flavor_id', 'number_of_minions': 1, 'number_of_masters': 1, 'network_driver': 'network_driver', 'volume_driver': 'volume_driver', 'discovery_url': 'http://tokentest/h1/h2/h3', 'etcd_volume_size': None, 'http_proxy': 'http_proxy', 'https_proxy': 'https_proxy', 'no_proxy': 'no_proxy,20.200.0.0/16', 'nodes_affinity_policy': 'soft-anti-affinity', 'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'flannel_backend': 'vxlan', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'region_name': self.mock_osc.cinder_region_name.return_value, 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'tls_disabled': False, 'registry_enabled': False, 'trustee_domain_id': self.mock_keystone.trustee_domain_id, 'trustee_username': 'fake_trustee', 'username': 'fake_user', 'trustee_password': 'fake_trustee_password', 'trustee_user_id': '7b489f04-b458-4541-8179-6a48a553e656', 'trust_id': '', 'auth_url': 'http://192.168.10.10:5000/v3', 'cluster_uuid': self.cluster_dict['uuid'], 'magnum_url': self.mock_osc.magnum_url.return_value, 'insecure_registry_url': '10.0.0.1:5000', 'kube_version': 'fake-version', 'verify_ca': True, 'openstack_ca': '', 'ssh_public_key': 'ssh-rsa AAAAB3Nz', 'openstack_ca_coreos': '', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'octavia_ingress_controller_tag': None, 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'octavia_enabled': False, 'portal_network_cidr': '10.254.0.0/16', 'master_role': 'master', 'worker_role': 'worker', 'master_nodegroup_name': 'master_ng', 'worker_nodegroup_name': 'worker_ng', 'master_lb_allowed_cidrs': None, 'fixed_subnet_cidr': self.fixed_subnet_cidr, } self.assertEqual(expected, definition) self.assertEqual( ['../../common/templates/environments/no_private_network.yaml', '../../common/templates/environments/no_etcd_volume.yaml', '../../common/templates/environments/with_volume.yaml', '../../common/templates/environments/no_master_lb.yaml', '../../common/templates/environments/disable_floating_ip.yaml', '../../common/templates/environments/disable_lb_floating_ip.yaml' ], env_files) @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition_without_dns( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): mock_driver.return_value = k8s_dr.Driver() self._test_extract_template_definition( mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_cluster_template_get_by_uuid, mock_get, mock_objects_nodegroup_list, mock_get_subnet, missing_attr='dns_nameserver') @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition_without_server_image( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): mock_driver.return_value = k8s_dr.Driver() self._test_extract_template_definition( mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_cluster_template_get_by_uuid, mock_get, mock_objects_nodegroup_list, mock_get_subnet, missing_attr='image_id') @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition_without_docker_storage_driver( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): mock_driver.return_value = k8s_dr.Driver() self._test_extract_template_definition( mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_cluster_template_get_by_uuid, mock_get, mock_objects_nodegroup_list, mock_get_subnet, missing_attr='docker_storage_driver') @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition_without_apiserver_port( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_get, mock_get_subnet): mock_driver.return_value = k8s_dr.Driver() self._test_extract_template_definition( mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_cluster_template_get_by_uuid, mock_get, mock_objects_nodegroup_list, mock_get_subnet, missing_attr='apiserver_port') @patch('magnum.common.neutron.get_subnet') @patch('requests.get') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') @patch('magnum.drivers.common.driver.Driver.get_driver') @patch('magnum.conductor.handlers.common.cert_manager' '.sign_node_certificate') @patch('magnum.common.x509.operations.generate_csr_and_key') def test_extract_template_definition_without_discovery_url( self, mock_generate_csr_and_key, mock_sign_node_certificate, mock_driver, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, reqget, mock_get_subnet): cluster_template = objects.ClusterTemplate( self.context, **self.cluster_template_dict) mock_generate_csr_and_key.return_value = {'csr': 'csr', 'private_key': 'private_key', 'public_key': 'public_key'} mock_sign_node_certificate.return_value = 'signed_cert' mock_objects_cluster_template_get_by_uuid.return_value = \ cluster_template cluster_dict = self.cluster_dict cluster_dict['discovery_url'] = None cluster = objects.Cluster(self.context, **cluster_dict) worker_ng = objects.NodeGroup(self.context, **self.worker_ng_dict) master_ng = objects.NodeGroup(self.context, **self.master_ng_dict) mock_objects_nodegroup_list.return_value = [master_ng, worker_ng] mock_driver.return_value = k8s_dr.Driver() CONF.set_override('etcd_discovery_service_endpoint_format', 'http://etcd/test?size=%(size)d', group='cluster') mock_req = mock.MagicMock(text='https://address/token', status_code=200) reqget.return_value = mock_req mock_get_subnet.return_value = self.fixed_subnet_cidr (template_path, definition, env_files) = mock_driver()._extract_template_definition(self.context, cluster) expected = { 'cloud_provider_enabled': 'false', 'ssh_key_name': 'keypair_id', 'external_network': 'e2a6c8b0-a3c2-42a3-b3f4-01400a30896e', 'fixed_network': 'fixed_network', 'fixed_network_name': 'fixed_network', 'fixed_subnet': 'c2a6c8b0-a3c2-42a3-b3f4-01400a30896f', 'dns_nameserver': 'dns_nameserver', 'master_image': 'image_id', 'minion_image': 'image_id', 'master_flavor': 'master_flavor_id', 'minion_flavor': 'flavor_id', 'number_of_minions': 1, 'number_of_masters': 1, 'network_driver': 'network_driver', 'volume_driver': 'volume_driver', 'docker_volume_size': 20, 'docker_volume_type': 'lvmdriver-1', 'docker_storage_driver': 'devicemapper', 'discovery_url': 'https://address/token', 'etcd_volume_size': None, 'etcd_volume_type': '', 'http_proxy': 'http_proxy', 'https_proxy': 'https_proxy', 'no_proxy': 'no_proxy,20.200.0.0/16', 'flannel_network_cidr': '10.101.0.0/16', 'flannel_network_subnetlen': '26', 'flannel_backend': 'vxlan', 'system_pods_initial_delay': '15', 'system_pods_timeout': '1', 'admission_control_list': 'fake_list', 'prometheus_monitoring': 'False', 'grafana_admin_passwd': 'fake_pwd', 'kube_dashboard_enabled': 'True', 'influx_grafana_dashboard_enabled': 'True', 'username': 'fake_user', 'cluster_uuid': self.cluster_dict['uuid'], 'magnum_url': self.mock_osc.magnum_url.return_value, 'region_name': self.mock_osc.cinder_region_name.return_value, 'tls_disabled': False, 'registry_enabled': False, 'trustee_domain_id': self.mock_keystone.trustee_domain_id, 'trustee_username': 'fake_trustee', 'trustee_password': 'fake_trustee_password', 'trustee_user_id': '7b489f04-b458-4541-8179-6a48a553e656', 'trust_id': '', 'auth_url': 'http://192.168.10.10:5000/v3', 'insecure_registry_url': '10.0.0.1:5000', 'kube_version': 'fake-version', 'verify_ca': True, 'openstack_ca': '', 'ssh_public_key': 'ssh-rsa AAAAB3Nz', "nodes_affinity_policy": "soft-anti-affinity", 'availability_zone': 'az_1', 'cert_manager_api': 'False', 'ingress_controller': 'i-controller', 'ingress_controller_role': 'i-controller-role', 'octavia_ingress_controller_tag': None, 'kubelet_options': '--kubelet', 'kubeapi_options': '--kubeapi', 'kubecontroller_options': '--kubecontroller', 'kubescheduler_options': '--kubescheduler', 'kubeproxy_options': '--kubeproxy', 'octavia_enabled': False, 'kube_service_account_key': 'public_key', 'kube_service_account_private_key': 'private_key', 'portal_network_cidr': '10.254.0.0/16', 'project_id': 'project_id', 'max_node_count': 2, 'master_image': 'image_id', 'minion_image': 'image_id', 'keystone_auth_default_policy': self.keystone_auth_default_policy, 'boot_volume_size': '60', 'boot_volume_type': 'lvmdriver-1', 'master_role': 'master', 'worker_role': 'worker', 'master_nodegroup_name': 'master_ng', 'worker_nodegroup_name': 'worker_ng', 'post_install_manifest_url': '', 'master_lb_allowed_cidrs': None, 'fixed_subnet_cidr': self.fixed_subnet_cidr, } self.assertEqual(expected, definition) self.assertEqual( ['../../common/templates/environments/no_private_network.yaml', '../../common/templates/environments/no_etcd_volume.yaml', '../../common/templates/environments/with_volume.yaml', '../../common/templates/environments/no_master_lb.yaml', '../../common/templates/environments/disable_floating_ip.yaml', '../../common/templates/environments/disable_lb_floating_ip.yaml', ], env_files) reqget.assert_called_once_with('http://etcd/test?size=1') @patch('magnum.common.short_id.generate_id') @patch('heatclient.common.template_utils.get_template_contents') @patch('magnum.drivers.k8s_fedora_atomic_v1.driver.Driver.' '_extract_template_definition') @patch('magnum.common.clients.OpenStackClients') def test_create_stack(self, mock_osc, mock_extract_template_definition, mock_get_template_contents, mock_generate_id): mock_generate_id.return_value = 'xx-xx-xx-xx' expected_stack_name = 'expected-stack-name-xx-xx-xx-xx' expected_template_contents = 'template_contents' dummy_cluster_name = 'expected_stack_name' expected_timeout = 15 mock_tpl_files = {} mock_get_template_contents.return_value = [ mock_tpl_files, expected_template_contents] mock_extract_template_definition.return_value = ('template/path', {}, []) mock_heat_client = mock.MagicMock() mock_osc.return_value.heat.return_value = mock_heat_client mock_cluster = mock.MagicMock() mock_cluster.name = dummy_cluster_name k8s_dr.Driver().create_cluster(self.context, mock_cluster, expected_timeout) expected_args = { 'stack_name': expected_stack_name, 'parameters': {'is_cluster_stack': True}, 'template': expected_template_contents, 'files': {}, 'environment_files': [], 'timeout_mins': expected_timeout } mock_heat_client.stacks.create.assert_called_once_with(**expected_args) @patch('magnum.common.short_id.generate_id') @patch('heatclient.common.template_utils.get_template_contents') @patch('magnum.drivers.k8s_fedora_atomic_v1.driver.Driver.' '_extract_template_definition') @patch('magnum.common.clients.OpenStackClients') def test_create_stack_no_timeout_specified( self, mock_osc, mock_extract_template_definition, mock_get_template_contents, mock_generate_id): mock_generate_id.return_value = 'xx-xx-xx-xx' expected_stack_name = 'expected-stack-name-xx-xx-xx-xx' expected_template_contents = 'template_contents' dummy_cluster_name = 'expected_stack_name' expected_timeout = CONF.cluster_heat.create_timeout mock_tpl_files = {} mock_get_template_contents.return_value = [ mock_tpl_files, expected_template_contents] mock_extract_template_definition.return_value = ('template/path', {}, []) mock_heat_client = mock.MagicMock() mock_osc.return_value.heat.return_value = mock_heat_client mock_cluster = mock.MagicMock() mock_cluster.name = dummy_cluster_name k8s_dr.Driver().create_cluster(self.context, mock_cluster, None) expected_args = { 'stack_name': expected_stack_name, 'parameters': {'is_cluster_stack': True}, 'template': expected_template_contents, 'files': {}, 'environment_files': [], 'timeout_mins': expected_timeout } mock_heat_client.stacks.create.assert_called_once_with(**expected_args) @patch('magnum.common.short_id.generate_id') @patch('heatclient.common.template_utils.get_template_contents') @patch('magnum.drivers.k8s_fedora_atomic_v1.driver.Driver.' '_extract_template_definition') @patch('magnum.common.clients.OpenStackClients') def test_create_stack_timeout_is_zero( self, mock_osc, mock_extract_template_definition, mock_get_template_contents, mock_generate_id): mock_generate_id.return_value = 'xx-xx-xx-xx' expected_stack_name = 'expected-stack-name-xx-xx-xx-xx' expected_template_contents = 'template_contents' dummy_cluster_name = 'expected_stack_name' cluster_timeout = 0 expected_timeout = CONF.cluster_heat.create_timeout mock_tpl_files = {} mock_get_template_contents.return_value = [ mock_tpl_files, expected_template_contents] mock_extract_template_definition.return_value = ('template/path', {}, []) mock_heat_client = mock.MagicMock() mock_osc.return_value.heat.return_value = mock_heat_client mock_cluster = mock.MagicMock() mock_cluster.name = dummy_cluster_name k8s_dr.Driver().create_cluster(self.context, mock_cluster, cluster_timeout) expected_args = { 'stack_name': expected_stack_name, 'parameters': {'is_cluster_stack': True}, 'template': expected_template_contents, 'files': {}, 'environment_files': [], 'timeout_mins': expected_timeout } mock_heat_client.stacks.create.assert_called_once_with(**expected_args) @patch('heatclient.common.template_utils.get_template_contents') @patch('magnum.drivers.k8s_fedora_atomic_v1.driver.Driver.' '_extract_template_definition') @patch('magnum.common.clients.OpenStackClients') @patch('magnum.objects.ClusterTemplate.get_by_uuid') @patch('magnum.objects.NodeGroup.list') def test_update_stack(self, mock_objects_nodegroup_list, mock_objects_cluster_template_get_by_uuid, mock_osc, mock_extract_template_definition, mock_get_template_contents): mock_stack_id = 'xx-xx-xx-xx' mock_stack = mock.MagicMock(parameters={'number_of_minions': 1}) mock_stacks = mock.MagicMock() mock_stacks.get.return_value = mock_stack mock_heat_client = mock.MagicMock(stacks=mock_stacks) mock_osc.return_value.heat.return_value = mock_heat_client mock_template = objects.ClusterTemplate( self.context, **self.cluster_template_dict) mock_objects_cluster_template_get_by_uuid.return_value = mock_template mock_cluster = objects.Cluster(self.context, **self.cluster_dict) mock_cluster.cluster_template = mock_template self.worker_ng_dict['node_count'] = 2 worker_ng = objects.NodeGroup(self.context, **self.worker_ng_dict) worker_ng.stack_id = mock_stack_id master_ng = objects.NodeGroup(self.context, **self.master_ng_dict) mock_objects_nodegroup_list.return_value = [master_ng, worker_ng] k8s_dr.Driver().update_cluster({}, mock_cluster) expected_args = { 'parameters': {'number_of_minions': 2}, 'existing': True, 'disable_rollback': True } mock_heat_client.stacks.update.assert_called_once_with(mock_stack_id, **expected_args)
46.40015
79
0.59234
6,377
62,037
5.353928
0.062098
0.02513
0.028469
0.027239
0.888788
0.86811
0.857683
0.840197
0.826372
0.812928
0
0.030517
0.291149
62,037
1,336
80
46.43488
0.745878
0.009333
0
0.84323
0
0
0.380216
0.176046
0
0
0
0
0.01346
1
0.012668
false
0.012668
0.005542
0
0.019002
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
912561db846c24cf315a23b9e0551131755a922a
14,964
py
Python
sdk/python/pulumi_aws/glue/crawler.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/glue/crawler.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/glue/crawler.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Crawler(pulumi.CustomResource): arn: pulumi.Output[str] """ The ARN of the crawler """ catalog_targets: pulumi.Output[list] classifiers: pulumi.Output[list] """ List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification. """ configuration: pulumi.Output[str] """ JSON string of configuration information. """ database_name: pulumi.Output[str] """ The name of the Glue database to be synchronized. """ description: pulumi.Output[str] """ Description of the crawler. """ dynamodb_targets: pulumi.Output[list] """ List of nested DynamoDB target arguments. See below. * `path` (`str`) - The path to the Amazon S3 target. """ jdbc_targets: pulumi.Output[list] """ List of nested JBDC target arguments. See below. * `connectionName` (`str`) - The name of the connection to use to connect to the JDBC target. * `exclusions` (`list`) - A list of glob patterns used to exclude from the crawl. * `path` (`str`) - The path to the Amazon S3 target. """ name: pulumi.Output[str] """ Name of the crawler. """ role: pulumi.Output[str] """ The IAM role friendly name (including path without leading slash), or ARN of an IAM role, used by the crawler to access other resources. """ s3_targets: pulumi.Output[list] """ List nested Amazon S3 target arguments. See below. * `exclusions` (`list`) - A list of glob patterns used to exclude from the crawl. * `path` (`str`) - The path to the Amazon S3 target. """ schedule: pulumi.Output[str] """ A cron expression used to specify the schedule. For more information, see [Time-Based Schedules for Jobs and Crawlers](https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: `cron(15 12 * * ? *)`. """ schema_change_policy: pulumi.Output[dict] """ Policy for the crawler's update and deletion behavior. * `deleteBehavior` (`str`) - The deletion behavior when the crawler finds a deleted object. Valid values: `LOG`, `DELETE_FROM_DATABASE`, or `DEPRECATE_IN_DATABASE`. Defaults to `DEPRECATE_IN_DATABASE`. * `updateBehavior` (`str`) - The update behavior when the crawler finds a changed schema. Valid values: `LOG` or `UPDATE_IN_DATABASE`. Defaults to `UPDATE_IN_DATABASE`. """ security_configuration: pulumi.Output[str] """ The name of Security Configuration to be used by the crawler """ table_prefix: pulumi.Output[str] """ The table prefix used for catalog tables that are created. """ tags: pulumi.Output[dict] """ Key-value mapping of resource tags """ def __init__(__self__, resource_name, opts=None, catalog_targets=None, classifiers=None, configuration=None, database_name=None, description=None, dynamodb_targets=None, jdbc_targets=None, name=None, role=None, s3_targets=None, schedule=None, schema_change_policy=None, security_configuration=None, table_prefix=None, tags=None, __props__=None, __name__=None, __opts__=None): """ Manages a Glue Crawler. More information can be found in the [AWS Glue Developer Guide](https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html) :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[list] classifiers: List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification. :param pulumi.Input[str] configuration: JSON string of configuration information. :param pulumi.Input[str] database_name: The name of the Glue database to be synchronized. :param pulumi.Input[str] description: Description of the crawler. :param pulumi.Input[list] dynamodb_targets: List of nested DynamoDB target arguments. See below. :param pulumi.Input[list] jdbc_targets: List of nested JBDC target arguments. See below. :param pulumi.Input[str] name: Name of the crawler. :param pulumi.Input[str] role: The IAM role friendly name (including path without leading slash), or ARN of an IAM role, used by the crawler to access other resources. :param pulumi.Input[list] s3_targets: List nested Amazon S3 target arguments. See below. :param pulumi.Input[str] schedule: A cron expression used to specify the schedule. For more information, see [Time-Based Schedules for Jobs and Crawlers](https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: `cron(15 12 * * ? *)`. :param pulumi.Input[dict] schema_change_policy: Policy for the crawler's update and deletion behavior. :param pulumi.Input[str] security_configuration: The name of Security Configuration to be used by the crawler :param pulumi.Input[str] table_prefix: The table prefix used for catalog tables that are created. :param pulumi.Input[dict] tags: Key-value mapping of resource tags The **catalog_targets** object supports the following: * `database_name` (`pulumi.Input[str]`) - The name of the Glue database to be synchronized. * `tables` (`pulumi.Input[list]`) - A list of catalog tables to be synchronized. The **dynamodb_targets** object supports the following: * `path` (`pulumi.Input[str]`) - The path to the Amazon S3 target. The **jdbc_targets** object supports the following: * `connectionName` (`pulumi.Input[str]`) - The name of the connection to use to connect to the JDBC target. * `exclusions` (`pulumi.Input[list]`) - A list of glob patterns used to exclude from the crawl. * `path` (`pulumi.Input[str]`) - The path to the Amazon S3 target. The **s3_targets** object supports the following: * `exclusions` (`pulumi.Input[list]`) - A list of glob patterns used to exclude from the crawl. * `path` (`pulumi.Input[str]`) - The path to the Amazon S3 target. The **schema_change_policy** object supports the following: * `deleteBehavior` (`pulumi.Input[str]`) - The deletion behavior when the crawler finds a deleted object. Valid values: `LOG`, `DELETE_FROM_DATABASE`, or `DEPRECATE_IN_DATABASE`. Defaults to `DEPRECATE_IN_DATABASE`. * `updateBehavior` (`pulumi.Input[str]`) - The update behavior when the crawler finds a changed schema. Valid values: `LOG` or `UPDATE_IN_DATABASE`. Defaults to `UPDATE_IN_DATABASE`. > This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/glue_crawler.html.markdown. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ 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__ = dict() __props__['catalog_targets'] = catalog_targets __props__['classifiers'] = classifiers __props__['configuration'] = configuration if database_name is None: raise TypeError("Missing required property 'database_name'") __props__['database_name'] = database_name __props__['description'] = description __props__['dynamodb_targets'] = dynamodb_targets __props__['jdbc_targets'] = jdbc_targets __props__['name'] = name if role is None: raise TypeError("Missing required property 'role'") __props__['role'] = role __props__['s3_targets'] = s3_targets __props__['schedule'] = schedule __props__['schema_change_policy'] = schema_change_policy __props__['security_configuration'] = security_configuration __props__['table_prefix'] = table_prefix __props__['tags'] = tags __props__['arn'] = None super(Crawler, __self__).__init__( 'aws:glue/crawler:Crawler', resource_name, __props__, opts) @staticmethod def get(resource_name, id, opts=None, arn=None, catalog_targets=None, classifiers=None, configuration=None, database_name=None, description=None, dynamodb_targets=None, jdbc_targets=None, name=None, role=None, s3_targets=None, schedule=None, schema_change_policy=None, security_configuration=None, table_prefix=None, tags=None): """ Get an existing Crawler 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 str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] arn: The ARN of the crawler :param pulumi.Input[list] classifiers: List of custom classifiers. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification. :param pulumi.Input[str] configuration: JSON string of configuration information. :param pulumi.Input[str] database_name: The name of the Glue database to be synchronized. :param pulumi.Input[str] description: Description of the crawler. :param pulumi.Input[list] dynamodb_targets: List of nested DynamoDB target arguments. See below. :param pulumi.Input[list] jdbc_targets: List of nested JBDC target arguments. See below. :param pulumi.Input[str] name: Name of the crawler. :param pulumi.Input[str] role: The IAM role friendly name (including path without leading slash), or ARN of an IAM role, used by the crawler to access other resources. :param pulumi.Input[list] s3_targets: List nested Amazon S3 target arguments. See below. :param pulumi.Input[str] schedule: A cron expression used to specify the schedule. For more information, see [Time-Based Schedules for Jobs and Crawlers](https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: `cron(15 12 * * ? *)`. :param pulumi.Input[dict] schema_change_policy: Policy for the crawler's update and deletion behavior. :param pulumi.Input[str] security_configuration: The name of Security Configuration to be used by the crawler :param pulumi.Input[str] table_prefix: The table prefix used for catalog tables that are created. :param pulumi.Input[dict] tags: Key-value mapping of resource tags The **catalog_targets** object supports the following: * `database_name` (`pulumi.Input[str]`) - The name of the Glue database to be synchronized. * `tables` (`pulumi.Input[list]`) - A list of catalog tables to be synchronized. The **dynamodb_targets** object supports the following: * `path` (`pulumi.Input[str]`) - The path to the Amazon S3 target. The **jdbc_targets** object supports the following: * `connectionName` (`pulumi.Input[str]`) - The name of the connection to use to connect to the JDBC target. * `exclusions` (`pulumi.Input[list]`) - A list of glob patterns used to exclude from the crawl. * `path` (`pulumi.Input[str]`) - The path to the Amazon S3 target. The **s3_targets** object supports the following: * `exclusions` (`pulumi.Input[list]`) - A list of glob patterns used to exclude from the crawl. * `path` (`pulumi.Input[str]`) - The path to the Amazon S3 target. The **schema_change_policy** object supports the following: * `deleteBehavior` (`pulumi.Input[str]`) - The deletion behavior when the crawler finds a deleted object. Valid values: `LOG`, `DELETE_FROM_DATABASE`, or `DEPRECATE_IN_DATABASE`. Defaults to `DEPRECATE_IN_DATABASE`. * `updateBehavior` (`pulumi.Input[str]`) - The update behavior when the crawler finds a changed schema. Valid values: `LOG` or `UPDATE_IN_DATABASE`. Defaults to `UPDATE_IN_DATABASE`. > This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/glue_crawler.html.markdown. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = dict() __props__["arn"] = arn __props__["catalog_targets"] = catalog_targets __props__["classifiers"] = classifiers __props__["configuration"] = configuration __props__["database_name"] = database_name __props__["description"] = description __props__["dynamodb_targets"] = dynamodb_targets __props__["jdbc_targets"] = jdbc_targets __props__["name"] = name __props__["role"] = role __props__["s3_targets"] = s3_targets __props__["schedule"] = schedule __props__["schema_change_policy"] = schema_change_policy __props__["security_configuration"] = security_configuration __props__["table_prefix"] = table_prefix __props__["tags"] = tags return Crawler(resource_name, opts=opts, __props__=__props__) def translate_output_property(self, prop): return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop def translate_input_property(self, prop): return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
58.682353
379
0.681903
1,914
14,964
5.144723
0.121735
0.054737
0.044074
0.032802
0.823906
0.802579
0.792424
0.7778
0.755052
0.747131
0
0.004145
0.22621
14,964
254
380
58.913386
0.846273
0.480821
0
0.022222
1
0
0.147637
0.01422
0
0
0
0
0
1
0.044444
false
0.011111
0.066667
0.022222
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
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
912eed00017094797d2c2815bfb6fcf5bad1c7b1
198
py
Python
eagle/types/__init__.py
Aodaruma/eagle.py
a9544e4411ecd81042ae6bae066cfd5593f745c5
[ "MIT" ]
null
null
null
eagle/types/__init__.py
Aodaruma/eagle.py
a9544e4411ecd81042ae6bae066cfd5593f745c5
[ "MIT" ]
null
null
null
eagle/types/__init__.py
Aodaruma/eagle.py
a9544e4411ecd81042ae6bae066cfd5593f745c5
[ "MIT" ]
null
null
null
from eagle.types.Application import * from eagle.types.Color import * from eagle.types.Folder import * from eagle.types.Item import * from eagle.types.Library import * from eagle.types.Tag import *
28.285714
37
0.787879
30
198
5.2
0.333333
0.346154
0.538462
0.641026
0
0
0
0
0
0
0
0
0.121212
198
6
38
33
0.896552
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
9136832e5f4049518e609d36267625c2ff16f738
34,267
py
Python
tests/test_load_wecdis.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2021-05-14T08:22:47.000Z
2022-02-04T19:48:25.000Z
tests/test_load_wecdis.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
1,083
2019-11-06T17:01:07.000Z
2022-03-25T10:26:51.000Z
tests/test_load_wecdis.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2019-11-06T12:00:45.000Z
2021-06-09T04:18:28.000Z
import os import unittest from datetime import datetime import pytest from pint import UnitRegistry from importers.wecdis_importer import WecdisImporter from pepys_import.core.store.data_store import DataStore from pepys_import.file.file_processor import FileProcessor from tests.utils import check_errors_for_file_contents FILE_PATH = os.path.dirname(__file__) DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/wecdis_sample.log") VNM_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/wecdis_vnm.log") DZA_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/wecdis_dza.log") CONTACT_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/contact.log") POSITION_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/position.log") TMA_NO_BRG_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/tma_no_brg.log") TMA_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/tma_brg.log") TMA_MISSING_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/tma_missing.log") INVALID_LAT_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/invalid_lat.log") INVALID_LON_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/invalid_lon.log") DEPTH_DATA_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/depth.log") # INVALID_TTM_PATH = os.path.join(FILE_PATH, "sample_data/wecdis_files/ttm_invalid.log") DATA_MULTI_POS_HDG_VEL_SOURCES_PATH = os.path.join( FILE_PATH, "sample_data/wecdis_files/multiple_pos_hdg_vel_sources.log" ) class TestWecdisImporter(unittest.TestCase): def setUp(self): self.store = DataStore("", "", "", 0, ":memory:", db_type="sqlite") self.store.initialise() def tearDown(self): pass @staticmethod def test_wecdis_ownship_track(): pass @staticmethod def test_wecdis_contact(): pass def test_wecdis_parse_vnm(self): importer = WecdisImporter() processor = FileProcessor(archive=False) processor.register_importer(importer) assert importer.platform_name != "NONSUCH" processor.process(VNM_DATA_PATH, self.store, False) assert importer.platform_name == "NONSUCH" @staticmethod def test_wecdis_parse_vnm_only_parses_vnm(): importer = WecdisImporter() with pytest.raises(TypeError): importer.handle_vnm(DummyToken.csv_to_tokens("$POSL,XYZ,NONSUCH*5D"), 1) with pytest.raises(TypeError): importer.handle_vnm( DummyToken.csv_to_tokens("$POSL,DZA,20201201,010230.123,012345678*21"), 1 ) assert importer.platform_name is None assert importer.timestamp is None @staticmethod def test_wecdis_parse_vnm_invalid_line(): importer = WecdisImporter() check_errors_for_file_contents( "$POSL,VNM\n$POSL,CHART,VER", "Not enough parts in line", importer ) assert importer.platform_name is None def test_wecdis_parse_dza(self): importer = WecdisImporter() processor = FileProcessor(archive=False) processor.register_importer(importer) assert importer.timestamp is None # parse the file processor.process(DZA_DATA_PATH, self.store, False) assert importer.timestamp == datetime(2020, 12, 1, 1, 2, 30, 123000) @staticmethod def test_wecdis_parse_dza_only_parses_dza(): importer = WecdisImporter() with pytest.raises(TypeError): importer.handle_timestamp(DummyToken.csv_to_tokens("$POSL,XYZ,1234,NONSUCH*5D"), 1) assert importer.timestamp is None @staticmethod def test_wecdis_parse_dza_invalid_line(): importer = WecdisImporter() check_errors_for_file_contents( "$POSL,DZA,20101030\n$POSL,CHART,VER,", "Not enough parts in line", importer ) @staticmethod def test_wecdis_parse_depth_invalid_value(): importer = WecdisImporter() check_errors_for_file_contents( "$POSL,PDS,U,M\n$POSL,CHART,", "Couldn't convert to a number", importer ) @staticmethod def test_wecdis_parse_dza_invalid_timestamp(): importer = WecdisImporter() check_errors_for_file_contents( "$POSL,DZA,20101035,999999.99,12343*AB\n$POSL,VER,", "Error in timestamp value", importer, ) assert importer.platform_name is None assert importer.timestamp is None def test_wecdis_parse_depth(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no states at the beginning states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(DEPTH_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be states after the import states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 3) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be one datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) stored_states = self.store.session.query(self.store.db_classes.State).all() ureg = UnitRegistry() # 1 - subsurface assert stored_states[0].elevation.to(ureg.meter).magnitude == -123 # 2 - aircraft assert stored_states[1].elevation.to(ureg.meter).magnitude == 456 # 3 - foot based assert round(stored_states[2].elevation.to(ureg.foot).magnitude) == 789 def test_wecdis_parse_contact(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(CONTACT_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be contacts after the import contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 1) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be one datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) stored_contact = self.store.session.query(self.store.db_classes.Contact).all() assert len(stored_contact) == 1 assert stored_contact[0].time == datetime(2020, 11, 1, 12, 34, 5, 678000) ureg = UnitRegistry() assert round(stored_contact[0].soa.to(ureg.knot).magnitude) == 12 def test_wecdis_parse_position(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no states at the beginning states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(POSITION_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be states after the import states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 3) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be one datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) # POS states = self.store.session.query(self.store.db_classes.State).all() assert states[0].time == datetime(2021, 11, 1, 1, 2, 30, 123000) assert round(states[0].location.latitude, 6) == 12.57613 assert round(states[0].location.longitude, 6) == -12.57613 ureg = UnitRegistry() assert states[0].speed is None assert states[0].heading is None assert states[0].sensor.name == "GPS" assert states[0].sensor.sensor_type.name == "Location-Satellite" # CPOS assert states[1].time == datetime(2021, 11, 1, 1, 2, 30, 123000) assert round(states[1].location.latitude, 6) == -12.57613 assert round(states[1].location.longitude, 6) == -0.514239 assert round(states[1].speed.to(ureg.knot).magnitude, 1) == 2.8 assert states[1].heading.to(ureg.degree).magnitude == 340 assert states[1].sensor.name == "ABC_XY" assert states[1].sensor.sensor_type.name == "Location-Satellite" # POS2 assert states[2].time == datetime(2021, 11, 1, 1, 2, 30, 123000) assert round(states[2].location.latitude, 6) == 12.500054 assert round(states[2].location.longitude, 6) == 1.170567 assert states[2].speed is None assert states[2].heading is None assert states[2].sensor.name == "SENSOR1" assert states[2].sensor.sensor_type.name == "Location-Satellite" def test_tma_ignore_sol_max(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(TMA_NO_BRG_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be no contacts after the import contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) def test_wecdis_parse_tma(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(TMA_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be no contacts after the import contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 2) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) stored_contacts = self.store.session.query(self.store.db_classes.Contact).all() assert stored_contacts[0].time == datetime(2019, 11, 19, 1, 2, 34, 122000) ureg = UnitRegistry() assert round(stored_contacts[0].location.latitude, 6) == 1.368723 assert round(stored_contacts[0].location.longitude, 6) == -12.568518 assert round(stored_contacts[0].bearing.to(ureg.degree).magnitude) == 270 assert stored_contacts[0].orientation is None # No course given assert stored_contacts[0].sensor.sensor_type.name == "Position" assert stored_contacts[1].time == datetime(2021, 12, 12, 1, 13, 35, 156000) assert stored_contacts[1].sensor.sensor_type.name == "Position" def test_wecdis_tma_missing_fields(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(TMA_MISSING_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be no contacts after the import contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 3) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) stored_contacts = ( self.store.session.query(self.store.db_classes.Contact) .order_by(self.store.db_classes.Contact.time) .all() ) ureg = UnitRegistry() assert len(stored_contacts) == 3 # The contact with all the info assert stored_contacts[0].time == datetime(2019, 11, 19, 1, 2, 34, 122000) assert round(stored_contacts[0].location.latitude, 6) == 1.368723 assert round(stored_contacts[0].location.longitude, 6) == -12.568518 assert round(stored_contacts[0].bearing.to(ureg.degree).magnitude) == 270 assert round(stored_contacts[0].orientation.to(ureg.degree).magnitude) == 20 assert stored_contacts[0].track_number == "5th ABC 20Ab_BRG - all data" # Contact with course, but no location assert stored_contacts[1].time == datetime(2020, 11, 1, 1, 2, 34, 543000) assert stored_contacts[1].location is None assert round(stored_contacts[1].bearing.to(ureg.degree).magnitude) == 190 assert round(stored_contacts[1].orientation.to(ureg.degree).magnitude) == 255 assert stored_contacts[1].track_number == "5th ABC 20Ab_BRG - no location" # Contact without course or location assert stored_contacts[2].time == datetime(2020, 12, 22, 1, 2, 34, 665000) assert stored_contacts[2].location is None assert round(stored_contacts[2].bearing.to(ureg.degree).magnitude) == 359 assert stored_contacts[2].orientation is None assert stored_contacts[2].track_number == "5th ABC 20Ab_BRG - no loc/course" def test_wecdis_multi_timestep_sample(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no states at the beginning states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be states after the import states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 8) # there must be contacts after the import contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 3) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) stored_states = ( self.store.session.query(self.store.db_classes.State) .order_by(self.store.db_classes.State.time) .all() ) ureg = UnitRegistry() assert stored_states[0].time == datetime(2021, 11, 1, 1, 2, 30, 123000) assert stored_states[0].sensor.name == "GPS" assert stored_states[0].sensor.sensor_type.name == "Location-Satellite" assert stored_states[0].speed is None assert stored_states[0].heading is None assert stored_states[1].time == datetime(2021, 11, 1, 1, 2, 30, 123000) assert stored_states[1].sensor.name == "ABC_XY" assert stored_states[1].sensor.sensor_type.name == "Location-Satellite" assert stored_states[2].time == datetime(2021, 11, 1, 1, 2, 45, 10000) assert stored_states[2].speed is None assert stored_states[2].heading == 200 * ureg.degree assert stored_states[4].time == datetime(2021, 11, 1, 1, 3, 5, 10000) assert stored_states[6].time == datetime(2021, 12, 12, 1, 3, 35, 10000) assert round(stored_states[6].speed.to(ureg.knot).magnitude, 3) == 3.08 assert round(stored_states[6].heading.to(ureg.degree).magnitude, 3) == 201.2 assert stored_states[0].elevation.to(ureg.meter).magnitude == -11.1 assert stored_states[1].elevation.to(ureg.meter).magnitude == -11.1 assert stored_states[5].elevation.to(ureg.meter).magnitude == -11.1 assert stored_states[6].elevation.to(ureg.meter).magnitude == -19.7 stored_contacts = ( self.store.session.query(self.store.db_classes.Contact) .order_by(self.store.db_classes.Contact.time) .all() ) assert round(stored_contacts[0].location.latitude, 6) == 12.566667 assert round(stored_contacts[0].location.longitude, 6) == 12.899538 assert stored_contacts[0].bearing is None assert round(stored_contacts[0].soa.to(ureg.knot).magnitude, 1) == 3.2 assert stored_contacts[1].track_number == "5th ABC 20Ab_BRG 2" assert round(stored_contacts[1].bearing.to(ureg.degree).magnitude) == 190 assert stored_contacts[1].soa is None assert stored_contacts[2].bearing is None assert round(stored_contacts[2].soa.to(ureg.knot).magnitude, 1) == 12.5 # assert round(stored_contacts[3].bearing.to(ureg.degree).magnitude, 2) == 270.52 # assert round(stored_contacts[3].range.to(ureg.kilometer).magnitude, 2) == 3.96 # assert stored_contacts[3].track_number == "TTM_18_a" # assert round(stored_contacts[4].bearing.to(ureg.degree).magnitude, 2) == 12.53 # assert round(stored_contacts[4].range.to(ureg.kilometer).magnitude, 2) == 12.79 # assert stored_contacts[4].track_number == "TTM_18_b" def test_wecdis_multi_pos_sources_sample(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no states at the beginning states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(DATA_MULTI_POS_HDG_VEL_SOURCES_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be states after the import states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 6) # there must be no contacts after the import contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 1) stored_states = ( self.store.session.query(self.store.db_classes.State) .order_by(self.store.db_classes.State.time) .all() ) ureg = UnitRegistry() assert stored_states[0].time == datetime(2021, 11, 1, 1, 2, 30, 123000) assert stored_states[0].sensor.name == "GPS" assert stored_states[0].sensor.sensor_type.name == "Location-Satellite" assert stored_states[0].speed is None assert stored_states[0].heading is None assert stored_states[1].time == datetime(2021, 11, 1, 1, 2, 33, 10000) assert stored_states[1].sensor.name == "GPS" assert stored_states[1].sensor.sensor_type.name == "Location-Satellite" assert stored_states[1].speed is None assert stored_states[1].heading.to(ureg.degree).magnitude == 200 assert stored_states[2].time == datetime(2021, 11, 1, 1, 3, 5, 10000) assert stored_states[2].sensor.name == "GPS" assert stored_states[2].sensor.sensor_type.name == "Location-Satellite" assert stored_states[2].speed is None assert round(stored_states[2].heading.to(ureg.degree).magnitude, 3) == 201.0 assert stored_states[3].time == datetime(2021, 11, 1, 1, 3, 5, 10000) assert stored_states[3].sensor.name == "GPS2" assert stored_states[3].sensor.sensor_type.name == "Location-Satellite" assert stored_states[3].speed is None # Test that we fall back to 1 if nothing provided for 2 assert round(stored_states[3].heading.to(ureg.degree).magnitude, 3) == 201.0 assert stored_states[4].time == datetime(2021, 12, 12, 1, 3, 35, 10000) assert stored_states[4].sensor.name == "GPS" assert stored_states[4].sensor.sensor_type.name == "Location-Satellite" assert round(stored_states[4].speed.to(ureg.knot).magnitude, 2) == 3.08 assert round(stored_states[4].heading.to(ureg.degree).magnitude, 3) == 201.2 assert stored_states[5].time == datetime(2021, 12, 12, 1, 3, 35, 10000) assert stored_states[5].sensor.name == "GPS2" assert stored_states[5].sensor.sensor_type.name == "Location-Satellite" assert round(stored_states[5].speed.to(ureg.knot).magnitude, 3) == 6.6 assert round(stored_states[5].heading.to(ureg.degree).magnitude, 3) == 199.43 def test_invalid_lat(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no states at the beginning states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(INVALID_LAT_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be no states after the import states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be no contacts after the import contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there must be no datafile afterwards datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # just one importer has run assert len(processor.importers) == 1 # just one error reported assert len(processor.importers[0].errors) == 1 # error related to latitude length self.assertTrue("incorrect length for latitude", processor.importers[0].errors[0]) def test_invalid_lon(self): processor = FileProcessor(archive=False) processor.register_importer(WecdisImporter()) # check states empty with self.store.session_scope(): # there must be no states at the beginning states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be no contacts at the beginning contacts = self.store.session.query(self.store.db_classes.Contact).all() self.assertEqual(len(contacts), 0) # there must be no platforms at the beginning platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 0) # there must be no datafiles at the beginning datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) # parse the folder processor.process(INVALID_LON_DATA_PATH, self.store, False) # check data got created with self.store.session_scope(): # there must be no states after the import - invalid location states = self.store.session.query(self.store.db_classes.State).all() self.assertEqual(len(states), 0) # there must be platforms after the import platforms = self.store.session.query(self.store.db_classes.Platform).all() self.assertEqual(len(platforms), 1) # there won't be datafile afterwards - failed import datafiles = self.store.session.query(self.store.db_classes.Datafile).all() self.assertEqual(len(datafiles), 0) assert len(processor.importers[0].errors) == 1 # def test_ttm_invalid_values(self): # processor = FileProcessor(archive=False) # processor.register_importer(WecdisImporter()) # # check states empty # with self.store.session_scope(): # # there must be no contacts at the beginning # contacts = self.store.session.query(self.store.db_classes.Contact).all() # self.assertEqual(len(contacts), 0) # # there must be no platforms at the beginning # platforms = self.store.session.query(self.store.db_classes.Platform).all() # self.assertEqual(len(platforms), 0) # # there must be no datafiles at the beginning # datafiles = self.store.session.query(self.store.db_classes.Datafile).all() # self.assertEqual(len(datafiles), 0) # # parse the folder # processor.process(INVALID_TTM_PATH, self.store, False) # # check data got created # with self.store.session_scope(): # # there must be no states after the import - invalid location # states = self.store.session.query(self.store.db_classes.Contact).all() # self.assertEqual(len(states), 0) # # there must be platforms after the import # platforms = self.store.session.query(self.store.db_classes.Platform).all() # self.assertEqual(len(platforms), 1) # # there won't be datafile afterwards - failed import # datafiles = self.store.session.query(self.store.db_classes.Datafile).all() # self.assertEqual(len(datafiles), 0) # assert len(processor.importers[0].errors) == 4 # Datetime tests for formats that we don't have in sample data but are in NMEA @staticmethod def test_timestamp_short_form_date(): timestamp = WecdisImporter.parse_timestamp("210504", "120000") assert timestamp == datetime(2021, 5, 4, 12) @staticmethod def test_timestamp_milliseconds_time(): timestamp = WecdisImporter.parse_timestamp("20210504", "120000.1201") assert timestamp == datetime(2021, 5, 4, 12, 0, 0, 120100) class DummyToken: """A dummy token to make testing without real-tokens easier""" def __init__(self, text): self.text = text self.children = [] self.highlighted_file = None def record(self): pass @staticmethod def csv_to_tokens(string): """Take a CSV string and split it into tokens""" return [DummyToken(text) for text in string.split(",")]
46.057796
95
0.641142
4,285
34,267
5.006768
0.070712
0.085159
0.076816
0.071315
0.868183
0.827818
0.784329
0.756735
0.735667
0.723315
0
0.035943
0.253042
34,267
743
96
46.119785
0.802235
0.171856
0
0.576159
0
0.002208
0.044628
0.024246
0
0
0
0
0.426049
1
0.059603
false
0.00883
0.116998
0
0.183223
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
e69b757b2d1a84b60587dbaa9ab8105f1f93865d
241
py
Python
filters/utils.py
mtli/OptiChroma
5dadddac011fef3a62a123878d300e9ed0191e28
[ "MIT" ]
null
null
null
filters/utils.py
mtli/OptiChroma
5dadddac011fef3a62a123878d300e9ed0191e28
[ "MIT" ]
null
null
null
filters/utils.py
mtli/OptiChroma
5dadddac011fef3a62a123878d300e9ed0191e28
[ "MIT" ]
null
null
null
def linear_srgb(x): return (x <= 0.0031308).float()*(12.92*x) + (x > 0.0031308).float()*(1.055*x**(1/2.4) - 0.055) def linear_srgb_approx(x): return x**2.2 def rgb2hexstr(rgb): return '#{:02x}{:02x}{:02x}'.format(*rgb)
26.777778
99
0.568465
42
241
3.190476
0.452381
0.134328
0.19403
0.208955
0
0
0
0
0
0
0
0.201005
0.174274
241
8
100
30.125
0.472362
0
0
0
0
0
0.081545
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
8
e6a9469f10f4e999841cbd2c86ef529d1525b1ed
4,102
py
Python
tests/bn_test.py
tdml13/NiftyNet
b35fa19ca307e81d229e2fe8269a417724833da2
[ "Apache-2.0" ]
1,403
2017-08-30T11:49:45.000Z
2022-03-31T11:44:05.000Z
tests/bn_test.py
tdml13/NiftyNet
b35fa19ca307e81d229e2fe8269a417724833da2
[ "Apache-2.0" ]
360
2017-10-03T15:33:53.000Z
2021-03-17T06:27:38.000Z
tests/bn_test.py
tdml13/NiftyNet
b35fa19ca307e81d229e2fe8269a417724833da2
[ "Apache-2.0" ]
464
2017-09-13T20:56:32.000Z
2022-02-11T20:33:47.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from tensorflow.contrib.layers.python.layers import regularizers from niftynet.layer.bn import BNLayer from niftynet.layer.bn import InstanceNormLayer from tests.niftynet_testcase import NiftyNetTestCase class BNTest(NiftyNetTestCase): def get_3d_input(self): input_shape = (2, 16, 16, 16, 8) x = tf.ones(input_shape) return x def get_2d_input(self): input_shape = (2, 16, 16, 8) x = tf.ones(input_shape) return x def test_3d_bn_shape(self): x = self.get_3d_input() bn_layer = BNLayer() print(bn_layer) out_bn = bn_layer(x, is_training=True) print(bn_layer) with self.cached_session() as sess: sess.run(tf.global_variables_initializer()) out = sess.run(out_bn) x_shape = tuple(x.shape.as_list()) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) def test_3d_instnorm_shape(self): x = self.get_3d_input() instnorm_layer = InstanceNormLayer() print(instnorm_layer) out_inst = instnorm_layer(x) print(instnorm_layer) with self.cached_session() as sess: sess.run(tf.global_variables_initializer()) out = sess.run(out_inst) x_shape = tuple(x.shape.as_list()) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) def test_3d_bn_reg_shape(self): x = self.get_3d_input() bn_layer = BNLayer(regularizer=regularizers.l2_regularizer(0.5)) out_bn = bn_layer(x, is_training=True) test_bn = bn_layer(x, is_training=False) print(bn_layer) with self.cached_session() as sess: sess.run(tf.global_variables_initializer()) out = sess.run(out_bn) x_shape = tuple(x.shape.as_list()) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) out = sess.run(test_bn) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) def test_2d_bn_shape(self): x = self.get_2d_input() bn_layer = BNLayer() out_bn = bn_layer(x, is_training=True) print(bn_layer) with self.cached_session() as sess: sess.run(tf.global_variables_initializer()) out = sess.run(out_bn) x_shape = tuple(x.shape.as_list()) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) def test_2d_instnorm_shape(self): x = self.get_2d_input() instnorm_layer = InstanceNormLayer() out_inst = instnorm_layer(x) print(instnorm_layer) with self.cached_session() as sess: sess.run(tf.global_variables_initializer()) out = sess.run(out_inst) x_shape = tuple(x.shape.as_list()) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) def test_2d_bn_reg_shape(self): x = self.get_2d_input() bn_layer = BNLayer(regularizer=regularizers.l2_regularizer(0.5)) out_bn = bn_layer(x, is_training=True) test_bn = bn_layer(x, is_training=False) print(bn_layer) reg_loss = tf.add_n(bn_layer.regularizer_loss()) with self.cached_session() as sess: sess.run(tf.global_variables_initializer()) out = sess.run(out_bn) x_shape = tuple(x.shape.as_list()) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) out = sess.run(test_bn) self.assertAllClose(x_shape, out.shape) # self.assertAllClose(np.zeros(x_shape), out) out = sess.run(reg_loss) self.assertAlmostEqual(out, 2.0) if __name__ == "__main__": tf.test.main()
32.555556
72
0.621648
543
4,102
4.416206
0.130755
0.070058
0.06005
0.080067
0.822769
0.801918
0.794412
0.753545
0.753545
0.753545
0
0.012399
0.27255
4,102
125
73
32.816
0.79122
0.090931
0
0.75
0
0
0.002151
0
0
0
0
0
0.102273
1
0.090909
false
0
0.068182
0
0.193182
0.102273
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
e6aefe37f7dfc660d953391ff8e92ca09741bf6c
126
py
Python
flask_currency/__init__.py
gerelorant/Flask-Currency
ab7a53e49e9ca2262617002a99dc4dde55257329
[ "MIT" ]
1
2020-06-08T05:59:08.000Z
2020-06-08T05:59:08.000Z
flask_currency/__init__.py
gerelorant/Flask-Currency
ab7a53e49e9ca2262617002a99dc4dde55257329
[ "MIT" ]
null
null
null
flask_currency/__init__.py
gerelorant/Flask-Currency
ab7a53e49e9ca2262617002a99dc4dde55257329
[ "MIT" ]
null
null
null
from flask_currency.core import Currency from flask_currency.money import Money from flask_currency.model import CurrencyMixin
42
46
0.888889
18
126
6.055556
0.444444
0.247706
0.46789
0
0
0
0
0
0
0
0
0
0.087302
126
3
46
42
0.947826
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
e6eaf22b0e9c679252f9d954ab77f7a9f5a03142
2,805
py
Python
tests/test_year_2020.py
l0pht511/jpholiday
083145737b61fad3420c066968c4329d17dc3baf
[ "MIT" ]
179
2017-10-05T12:41:10.000Z
2022-03-24T22:18:25.000Z
tests/test_year_2020.py
l0pht511/jpholiday
083145737b61fad3420c066968c4329d17dc3baf
[ "MIT" ]
17
2018-10-23T00:51:13.000Z
2021-11-22T11:40:06.000Z
tests/test_year_2020.py
l0pht511/jpholiday
083145737b61fad3420c066968c4329d17dc3baf
[ "MIT" ]
17
2018-10-19T11:13:07.000Z
2022-01-29T08:05:56.000Z
# coding: utf-8 import datetime import unittest import jpholiday class TestYear2020(unittest.TestCase): def test_holiday(self): """ 2020年祝日 """ self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 1, 1)), '元日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 1, 13)), '成人の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 2, 11)), '建国記念の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 2, 23)), '天皇誕生日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 2, 24)), '天皇誕生日 振替休日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 3, 20)), '春分の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 4, 29)), '昭和の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 5, 3)), '憲法記念日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 5, 4)), 'みどりの日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 5, 5)), 'こどもの日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 5, 6)), '憲法記念日 振替休日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 7, 23)), '海の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 7, 24)), 'スポーツの日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 8, 10)), '山の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 9, 21)), '敬老の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 9, 22)), '秋分の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 11, 3)), '文化の日') self.assertEqual(jpholiday.is_holiday_name(datetime.date(2020, 11, 23)), '勤労感謝の日') def test_count_month(self): """ 2020年月祝日数 """ self.assertEqual(len(jpholiday.month_holidays(2020, 1)), 2) self.assertEqual(len(jpholiday.month_holidays(2020, 2)), 3) self.assertEqual(len(jpholiday.month_holidays(2020, 3)), 1) self.assertEqual(len(jpholiday.month_holidays(2020, 4)), 1) self.assertEqual(len(jpholiday.month_holidays(2020, 5)), 4) self.assertEqual(len(jpholiday.month_holidays(2020, 6)), 0) self.assertEqual(len(jpholiday.month_holidays(2020, 7)), 2) self.assertEqual(len(jpholiday.month_holidays(2020, 8)), 1) self.assertEqual(len(jpholiday.month_holidays(2020, 9)), 2) self.assertEqual(len(jpholiday.month_holidays(2020, 10)), 0) self.assertEqual(len(jpholiday.month_holidays(2020, 11)), 2) self.assertEqual(len(jpholiday.month_holidays(2020, 12)), 0) def test_count_year(self): """ 2020年祝日数 """ self.assertEqual(len(jpholiday.year_holidays(2020)), 18)
51.944444
93
0.682709
364
2,805
5.112637
0.175824
0.249866
0.232133
0.251478
0.814616
0.814616
0.814616
0.743686
0.526061
0.469103
0
0.094421
0.16934
2,805
53
94
52.924528
0.704292
0.014617
0
0
0
0
0.033408
0
0
0
0
0
0.815789
1
0.078947
false
0
0.078947
0
0.184211
0
0
0
0
null
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
8
e6eb3bdf20c51229ad7d07fe4b1da8b85e0cea67
121
py
Python
rapidboom/__init__.py
usuaero/rapidboom
b7e1c5bafe695830552593a557d005c091861096
[ "MIT" ]
1
2018-04-18T14:13:33.000Z
2018-04-18T14:13:33.000Z
rapidboom/__init__.py
usuaero/rapidboom
b7e1c5bafe695830552593a557d005c091861096
[ "MIT" ]
null
null
null
rapidboom/__init__.py
usuaero/rapidboom
b7e1c5bafe695830552593a557d005c091861096
[ "MIT" ]
2
2019-04-03T18:05:04.000Z
2019-09-17T18:08:54.000Z
from .uli_cases import AxieBump from .equivalent_area_cases import EquivArea from .equivalent_area_cases import AreaConv
30.25
44
0.876033
17
121
5.941176
0.529412
0.326733
0.356436
0.455446
0.574257
0
0
0
0
0
0
0
0.099174
121
3
45
40.333333
0.926606
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
fc051bf81156ac0c3e20e2036dcbac0d5d0f2a56
37,416
py
Python
EDA_plots.py
malefiz1988/project-crossfit-data
0c7fd2d34a9f1521a5396f2012168df31332db16
[ "MIT" ]
null
null
null
EDA_plots.py
malefiz1988/project-crossfit-data
0c7fd2d34a9f1521a5396f2012168df31332db16
[ "MIT" ]
null
null
null
EDA_plots.py
malefiz1988/project-crossfit-data
0c7fd2d34a9f1521a5396f2012168df31332db16
[ "MIT" ]
null
null
null
import pandas as pd from pandas_profiling import ProfileReport import numpy as np import seaborn as sns import plotly.express as px import plotly.graph_objects as go import pandas as pd import numpy as np import math import plotly.io as pio from matplotlib import pyplot as plt import matplotlib.patches as mpatches import squarify import EDA_plots as plot import warnings # set options warnings.filterwarnings('ignore') pd.set_option('display.max_columns', None) pd.set_option('display.max_rows', None) pd.options.plotting.backend = "plotly" pio.renderers.default = 'iframe' # or 'notebook' or 'colab' #sns.set_style('white') sns.set_context("talk") ########## def gender_distribution(data): plt.figure(figsize=(7,4)) g = sns.countplot( x ='gender', data = data, edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) ylabels = ['{:,.0f}'.format(y) + 'k' for y in g.get_yticks()/1000] g.set_yticklabels(ylabels) g.set_title('Gender Distribution') g.set_xlabel('') g.set_ylabel('') plt.show() def age_distribution(data): plt.figure(figsize=(10,4)) g = sns.histplot( data=data, x='age', hue='gender', bins=24, multiple='stack', edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) g.set_title('Age Distributions (stacked)') g.set_ylabel('') ylabels = ['{:,.0f}'.format(y) + 'k' for y in g.get_yticks()/1000] g.set_yticklabels(ylabels) g.set_xlabel('age [years]') plt.show() def workout_participation_all(df): rx,sc = [],[] for i in [1,2,3,4,5]: rx.append(df[(df[f'scaled_{i}']==0) & (df[f'score_{i}']!=0)]['competitorid'].count()) sc.append(df[(df[f'scaled_{i}']==1) & (df[f'score_{i}']!=0)]['competitorid'].count()) tot = np.add(rx,sc) plt.figure(figsize=(15,6)) idx = ['19.1','19.2','19.3','19.4','19.5'] bar1 = sns.barplot( x=idx, y=tot, color='lightblue', edgecolor='black' ) bar2 = sns.barplot( x=idx, y=rx, color='darkblue', edgecolor='black' ) bar1.set_title('Workout Participation (M & F)') ylabels = ['{:,.0f}'.format(y) + 'k' for y in bar1.get_yticks()/1000] bar1.set_yticklabels(ylabels) bar1.set_xlabel('Open Workout') top_bar = mpatches.Patch(color='lightblue', label='Scaled') bottom_bar = mpatches.Patch(color='darkblue', label='Rx') top_bar plt.legend(handles=[top_bar, bottom_bar]) plt.show() def workout_participation_male(df): rx,sc = [],[] df_m = df[df['gender']=='M'] for i in [1,2,3,4,5]: rx.append(df_m[(df_m[f'scaled_{i}']==0) & (df_m[f'score_{i}']!=0)]['competitorid'].count()) sc.append(df_m[(df_m[f'scaled_{i}']==1) & (df_m[f'score_{i}']!=0)]['competitorid'].count()) tot = np.add(rx,sc) plt.figure(figsize=(15,6)) idx = ['19.1','19.2','19.3','19.4','19.5'] bar1 = sns.barplot( x=idx, y=tot, color='lightblue', edgecolor='black' ) bar2 = sns.barplot( x=idx, y=rx, color='gold', edgecolor='black' ) bar1.set_title('Workout Participation (Men)') ylabels = ['{:,.0f}'.format(y) + 'k' for y in bar1.get_yticks()/1000] bar1.set_yticklabels(ylabels) bar1.set_xlabel('Open Workout') top_bar = mpatches.Patch(color='lightblue', label='Scaled') bottom_bar = mpatches.Patch(color='gold', label='Rx') plt.legend(handles=[top_bar, bottom_bar]) plt.show() def workout_participation_female(df): rx,sc = [],[] df_f = df[df['gender']=='F'] for i in [1,2,3,4,5]: rx.append(df_f[(df_f[f'scaled_{i}']==0) & (df_f[f'score_{i}']!=0)]['competitorid'].count()) sc.append(df_f[(df_f[f'scaled_{i}']==1) & (df_f[f'score_{i}']!=0)]['competitorid'].count()) tot = np.add(rx,sc) plt.figure(figsize=(15,6)) idx = ['19.1','19.2','19.3','19.4','19.5'] bar1 = sns.barplot( x=idx, y=tot, color='lightblue', edgecolor='black' ) bar2 = sns.barplot( x=idx, y=rx, color='limegreen', edgecolor='black' ) bar1.set_title('Workout Participation (Women)') ylabels = ['{:,.0f}'.format(y) + 'k' for y in bar1.get_yticks()/1000] bar1.set_yticklabels(ylabels) bar1.set_xlabel('Open Workout') top_bar = mpatches.Patch(color='lightblue', label='Scaled') bottom_bar = mpatches.Patch(color='limegreen', label='Rx') plt.legend(handles=[top_bar, bottom_bar]) plt.show() def workout_balance_1(df): fig, axes = plt.subplots(1, 3, figsize=(30, 7)) a = sns.histplot( ax=axes[0], data=df[df['scaled_1']==0], x='w1_reps_total', hue='gender', bins=30, multiple='stack', edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) a.set_title('19.1 | Rx') a.set_ylabel('') a.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] a.set_yticklabels(ylabels) b = sns.histplot( ax=axes[1], data=df[df['scaled_1']==1], x='w1_reps_total', hue='gender', bins=30, multiple='stack', edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) b.set_title('19.1 | Scaled') b.set_ylabel('') b.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] b.set_yticklabels(ylabels) df_ta = df[(df['division']=='Men')|(df['division']=='Women')] ta_1 = int(0.01*df_ta.overallrank.max()) df_ta = df_ta[df_ta['overallrank']<=ta_1] c = sns.histplot( ax=axes[2], data=df_ta, x='w1_reps_total', hue='gender', bins=10, multiple='stack', edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) c.set_title('19.1 | Top 1%') c.set_ylabel('') c.set_xlabel('total reps'); def workout_balance_2_rx(df): fig = go.Figure() df_m_rx = df[(df['gender']=='M') & (df['scaled_2']==0) & (df['score_2']!=0)].groupby(by='w2_full_rounds_completed').count() df_m_rx_list = list(df_m_rx.competitorid) fig.add_trace(go.Funnel( name = 'Men', y = ['start', ' 8 min', '12 min', '16 min', '20 min'], x = [ sum(df_m_rx_list), sum(df_m_rx_list)-sum(df_m_rx_list[:1]), sum(df_m_rx_list)-sum(df_m_rx_list[:2]), sum(df_m_rx_list)-sum(df_m_rx_list[:3]), sum(df_m_rx_list)-sum(df_m_rx_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#86CE00"})) df_f_rx = df[(df['gender']=='F') & (df['scaled_2']==0) &(df['score_2']!=0)].groupby(by='w2_full_rounds_completed').count() df_f_rx_list = list(df_f_rx.competitorid) fig.add_trace(go.Funnel( name = 'Women', y = ['start', ' 8 min', '12 min', '16 min', '20 min'], x = [ sum(df_f_rx_list), sum(df_f_rx_list)-sum(df_f_rx_list[:1]), sum(df_f_rx_list)-sum(df_f_rx_list[:2]), sum(df_f_rx_list)-sum(df_f_rx_list[:3]), sum(df_f_rx_list)-sum(df_f_rx_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#FBE426"})) fig.show() def workout_balance_2_sc(df): fig = go.Figure() df_m_sc = df[(df['gender']=='M') & (df['scaled_2']==1) & (df['score_2']!=0)].groupby(by='w2_full_rounds_completed').count() df_m_sc_list = list(df_m_sc.competitorid) fig.add_trace(go.Funnel( name = 'Men', y = ['start', ' 8 min', '12 min', '16 min', '20 min'], x = [ sum(df_m_sc_list), sum(df_m_sc_list)-sum(df_m_sc_list[:1]), sum(df_m_sc_list)-sum(df_m_sc_list[:2]), sum(df_m_sc_list)-sum(df_m_sc_list[:3]), sum(df_m_sc_list)-sum(df_m_sc_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#86CE00"})) df_f_sc = df[(df['gender']=='F') & (df['scaled_2']==1) & (df['score_2']!=0)].groupby(by='w2_full_rounds_completed').count() df_f_sc_list = list(df_f_sc.competitorid) fig.add_trace(go.Funnel( name = 'Women', y = ['start', ' 8 min', '12 min', '16 min', '20 min'], x = [ sum(df_f_sc_list), sum(df_f_sc_list)-sum(df_f_sc_list[:1]), sum(df_f_sc_list)-sum(df_f_sc_list[:2]), sum(df_f_sc_list)-sum(df_f_sc_list[:3]), sum(df_f_sc_list)-sum(df_f_sc_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#FBE426"})) fig.show() def workout_balance_2_ta(df): df_ta = df[(df['division']=='Men')|(df['division']=='Women')] ta_1 = int(0.01*df_ta.overallrank.max()) df_ta = df_ta[df_ta['overallrank']<=ta_1] fig = go.Figure() df_m_1 = df_ta[df_ta['gender']=='M'].groupby(by='w2_full_rounds_completed').count() df_m_1_list = list(df_m_1.competitorid) fig.add_trace(go.Funnel( name = 'Men', y = ['start', ' 8 min', '12 min', '16 min', '20 min'], x = [ sum(df_m_1_list), sum(df_m_1_list), sum(df_m_1_list)-sum(df_m_1_list[:1]), sum(df_m_1_list)-sum(df_m_1_list[:2]), sum(df_m_1_list)-sum(df_m_1_list[:3]) ], textinfo = "value+percent initial", marker = {"color": "#86CE00"})) df_f_1 = df_ta[df_ta['gender']=='F'].groupby(by='w2_full_rounds_completed').count() df_f_1_list = list(df_f_1.competitorid) fig.add_trace(go.Funnel( name = 'Women', y = ['start', ' 8 min', '12 min', '16 min', '20 min'], x = [ sum(df_f_1_list), sum(df_f_1_list), sum(df_f_1_list)-sum(df_f_1_list[:1]), sum(df_f_1_list)-sum(df_f_1_list[:2]), sum(df_f_1_list)-sum(df_f_1_list[:3]) ], textinfo = "value+percent initial", marker = {"color": "#FBE426"})) fig.show() def workout_balance_3(df): fig, axes = plt.subplots(1, 3, figsize=(30, 7)) a=sns.histplot( ax=axes[0], data=df[df['scaled_3']==0], x='w3_reps_total', hue='gender', bins=30, multiple='stack', edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) a.set_title('19.3 | Rx') a.set_ylabel('') a.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] a.set_yticklabels(ylabels) b=sns.histplot( ax=axes[1], data=df[df['scaled_3']==1], x='w3_reps_total', hue='gender', bins=30, multiple='stack', edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) b.set_title('19.3 | Scaled') b.set_ylabel('') b.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] b.set_yticklabels(ylabels) df_ta = df[(df['division']=='Men')|(df['division']=='Women')] ta_1 = int(0.01*df_ta.overallrank.max()) df_ta = df_ta[df_ta['overallrank']<=ta_1] c=sns.histplot( ax=axes[2], data=df_ta, x='w3_reps_total', hue='gender', bins=25, multiple='stack', edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) c.set_title('19.3 | Top 1%') c.set_ylabel('') c.set_xlabel('total reps'); def workout_balance_3_rx(df): fig = go.Figure() df_m_rx = df[(df['gender']=='M') & (df['scaled_3']==0) & (df['score_3']!=0)].groupby(by='w3_full_rounds_completed').count() df_m_rx_list = list(df_m_rx.competitorid) fig.add_trace(go.Funnel( name = 'Men', y = ['start', 'OHL', 'Box SU', 'HSPU', 'HS-Walk'], x = [ sum(df_m_rx_list), sum(df_m_rx_list)-sum(df_m_rx_list[:1]), sum(df_m_rx_list)-sum(df_m_rx_list[:2]), sum(df_m_rx_list)-sum(df_m_rx_list[:3]), sum(df_m_rx_list)-sum(df_m_rx_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#86CE00"})) df_f_rx = df[(df['gender']=='F') & (df['scaled_3']==0) & (df['score_3']!=0)].groupby(by='w3_full_rounds_completed').count() df_f_rx_list = list(df_f_rx.competitorid) fig.add_trace(go.Funnel( name = 'Women', y = ['start', 'OHL', 'Box SU', 'HSPU', 'HS-Walk'], x = [ sum(df_f_rx_list), sum(df_f_rx_list)-sum(df_f_rx_list[:1]), sum(df_f_rx_list)-sum(df_f_rx_list[:2]), sum(df_f_rx_list)-sum(df_f_rx_list[:3]), sum(df_f_rx_list)-sum(df_f_rx_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#FBE426"})) fig.show() def workout_balance_3_sc(df): fig = go.Figure() df_m_sc = df[(df['gender']=='M') & (df['scaled_3']==1) & (df['score_3']!=0)].groupby(by='w3_full_rounds_completed').count() df_m_sc_list = list(df_m_sc.competitorid) fig.add_trace(go.Funnel( name = 'Men', y = ['start', 'OHL', 'Box SU', 'HSPU', 'HS-Walk'], x = [ sum(df_m_sc_list), sum(df_m_sc_list)-sum(df_m_sc_list[:1]), sum(df_m_sc_list)-sum(df_m_sc_list[:2]), sum(df_m_sc_list)-sum(df_m_sc_list[:3]), sum(df_m_sc_list)-sum(df_m_sc_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#86CE00"})) df_f_sc = df[(df['gender']=='F') & (df['scaled_2']==1) & (df['score_3']!=0)].groupby(by='w3_full_rounds_completed').count() df_f_sc_list = list(df_f_sc.competitorid) fig.add_trace(go.Funnel( name = 'Women', y = ['start', 'OHL', 'Box SU', 'HSPU', 'HS-Walk'], x = [ sum(df_f_sc_list), sum(df_f_sc_list)-sum(df_f_sc_list[:1]), sum(df_f_sc_list)-sum(df_f_sc_list[:2]), sum(df_f_sc_list)-sum(df_f_sc_list[:3]), sum(df_f_sc_list)-sum(df_f_sc_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#FBE426"})) fig.show() def workout_balance_3_ta(df): df_ta = df[(df['division']=='Men')|(df['division']=='Women')] ta_1 = int(0.01*df_ta.overallrank.max()) df_ta = df_ta[df_ta['overallrank']<=ta_1] fig = go.Figure() df_m_1 = df_ta[df_ta['gender']=='M'].groupby(by='w3_full_rounds_completed').count() df_m_1_list = list(df_m_1.competitorid) fig.add_trace(go.Funnel( name = 'Men', y = ['Box SU', 'HSPU', 'HS-Walk'], x = [ sum(df_m_1_list), sum(df_m_1_list)-sum(df_m_1_list[:1]), sum(df_m_1_list)-sum(df_m_1_list[:2]), sum(df_m_1_list)-sum(df_m_1_list[:3]), sum(df_m_1_list)-sum(df_m_1_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#86CE00"})) df_f_1 = df_ta[df_ta['gender']=='F'].groupby(by='w3_full_rounds_completed').count() df_f_1_list = list(df_f_1.competitorid) fig.add_trace(go.Funnel( name = 'Women', y = ['Box SU', 'HSPU', 'HS-Walk'], x = [ sum(df_f_1_list), sum(df_f_1_list)-sum(df_f_1_list[:1]), sum(df_f_1_list)-sum(df_f_1_list[:2]), sum(df_f_1_list)-sum(df_f_1_list[:3]), sum(df_f_1_list)-sum(df_f_1_list[:4]) ], textinfo = "value+percent initial", marker = {"color": "#FBE426"})) fig.show() def workout_balance_4(df): fig, axes = plt.subplots(1, 3, figsize=(30, 7)) a = sns.histplot( ax=axes[0], data=df[df['scaled_4']==0], x='w4_reps_total', hue='gender', bins=33, multiple='stack', palette={"F": "gold", "M": "limegreen"} ) a.set_title('19.4 | Rx') a.set_ylabel('') a.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] a.set_yticklabels(ylabels) b = sns.histplot( ax=axes[1], data=df[df['scaled_4']==1], x='w4_reps_total', hue='gender', bins=33, multiple='stack', palette={"F": "gold", "M": "limegreen"} ) b.set_title('19.4 | Scaled') b.set_ylabel('') b.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] b.set_yticklabels(ylabels) df_ta = df[(df['division']=='Men')|(df['division']=='Women')] ta_1 = int(0.01*df_ta.overallrank.max()) df_ta = df_ta[df_ta['overallrank']<=ta_1] c = sns.histplot( ax=axes[2], data=df_ta, x='w4_reps_total', hue='gender', bins=15, multiple='stack', palette={"F": "gold", "M": "limegreen"} ) c.set_title('19.4 | Top 1%') c.set_ylabel('') c.set_xlabel('total reps') ylabels = ['{:,.1f}'.format(y) + 'k' for y in c.get_yticks()/1000] c.set_yticklabels(ylabels); def workout_balance_5(df): fig, axes = plt.subplots(1, 3, figsize=(30, 7)) a = sns.histplot( ax=axes[0], data=df[df['scaled_5']==0], x='w5_reps_total', hue='gender', bins=15, multiple='stack', palette={"F": "gold", "M": "limegreen"} ) a.set_title('19.5 | Rx') a.set_ylabel('') a.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] a.set_yticklabels(ylabels) b = sns.histplot( ax=axes[1], data=df[df['scaled_5']==1], x='w5_reps_total', hue='gender', bins=15, multiple='stack', palette={"F": "gold", "M": "limegreen"} ) b.set_title('19.5 | Scaled') b.set_ylabel('') b.set_xlabel('total reps') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] b.set_yticklabels(ylabels) df_ta = df[(df['division']=='Men')|(df['division']=='Women')] ta_1 = int(0.01*df_ta.overallrank.max()) df_ta = df_ta[df_ta['overallrank']<=ta_1] c = sns.histplot( ax=axes[2], data=df_ta, x='w5_reps_total', hue='gender', bins=3, multiple='stack', palette={"F": "gold", "M": "limegreen"} ) c.set_title('19.5 | Top 1%') c.set_ylabel('') c.set_xlabel('total reps') ylabels = ['{:,.1f}'.format(y) + 'k' for y in c.get_yticks()/1000] c.set_yticklabels(ylabels); def ranking_1_m_rx(df): df_m = df[(df['division']=='Men')&(df['scaled_1']==0)] max_m = (df_m['rank_1'].max())/100 a_m=list(df_m.groupby(by='w1_reps_total')['rank_1'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w1_reps_total')['w1_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) g=sns.relplot(x=c_m, y=a_m, kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set(xlabel='total reps', ylabel='rank [%]', title= '19.1 | Male | Rx'); def ranking_1_m_rx_ta(df): df_m = df[(df['division']=='Men')&(df['scaled_1']==0)] max_m = (df_m['rank_1'].max())/100 a_m=list(df_m.groupby(by='w1_reps_total')['rank_1'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w1_reps_total')['w1_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) last=58 g=sns.relplot(x=c_m[-last:], y=a_m[-last:], kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set( xlabel='total reps', ylabel='rank [%]', title= '19.1 | Male | Rx | Top 1%') g.fig.set_figheight(4) g.fig.set_figwidth(7) def ranking_2_m_rx(df): df_m = df[(df['division']=='Men')&(df['scaled_2']==0)] max_m = (df_m['rank_2'].max())/100 a_m=list(df_m.groupby(by='w2_reps_total')['rank_2'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w2_reps_total')['w2_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) g=sns.relplot(x=c_m, y=a_m, kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set(xlabel='total reps', ylabel='rank [%]', title= '19.2 | Male | Rx'); def ranking_2_m_rx_ta(df): df_m = df[(df['division']=='Men')&(df['scaled_2']==0)] max_m = (df_m['rank_2'].max())/100 a_m=list(df_m.groupby(by='w2_reps_total')['rank_2'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w2_reps_total')['w2_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) last=30 g=sns.relplot(x=c_m[-last:], y=a_m[-last:], kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set( xlabel='total reps', ylabel='rank [%]', title= '19.2 | Male | Rx | Top 1%') g.fig.set_figheight(4) g.fig.set_figwidth(7) def ranking_3_m_rx(df): df_m = df[(df['division']=='Men')&(df['scaled_3']==0)] max_m = (df_m['rank_3'].max())/100 a_m=list(df_m.groupby(by='w3_reps_total')['rank_3'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w3_reps_total')['w3_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) g=sns.relplot(x=c_m, y=a_m, kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set(xlabel='total reps', ylabel='rank [%]', title= '19.3 | Male | Rx'); def ranking_3_m_rx_ta(df): df_m = df[(df['division']=='Men')&(df['scaled_3']==0)] max_m = (df_m['rank_3'].max())/100 a_m=list(df_m.groupby(by='w3_reps_total')['rank_3'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w3_reps_total')['w3_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) last=27 g=sns.relplot(x=c_m[-last:], y=a_m[-last:], kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set( xlabel='total reps', ylabel='rank [%]', title= '19.3 | Male | Rx | Top 1%') g.fig.set_figheight(4) g.fig.set_figwidth(7) def ranking_4_m_rx(df): df_m = df[(df['division']=='Men')&(df['scaled_4']==0)] max_m = (df_m['rank_4'].max())/100 a_m=list(df_m.groupby(by='w4_reps_total')['rank_4'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w4_reps_total')['w4_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) g=sns.relplot(x=c_m, y=a_m, kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set(xlabel='total reps', ylabel='rank [%]', title= '19.4 | Male | Rx'); def ranking_4_m_rx_ta(df): df_m = df[(df['division']=='Men')&(df['scaled_4']==0)] max_m = (df_m['rank_4'].max())/100 a_m=list(df_m.groupby(by='w4_reps_total')['rank_4'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w4_reps_total')['w4_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) last=15 g=sns.relplot(x=c_m[-last:], y=a_m[-last:], kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set( xlabel='total reps', ylabel='rank [%]', title= '19.4 | Male | Rx | Top 1%') g.fig.set_figheight(4) g.fig.set_figwidth(7) def ranking_5_m_rx(df): df_m = df[(df['division']=='Men')&(df['scaled_5']==0)] max_m = (df_m['rank_5'].max())/100 a_m=list(df_m.groupby(by='w5_reps_total')['rank_5'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w5_reps_total')['w5_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) g=sns.relplot(x=c_m, y=a_m, kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set(xlabel='total reps', ylabel='rank [%]', title= '19.5 | Male | Rx'); def ranking_5_m_rx_ta(df): df_m = df[(df['division']=='Men')&(df['scaled_5']==0)] max_m = (df_m['rank_5'].max())/100 a_m=list(df_m.groupby(by='w5_reps_total')['rank_5'].mean()) a_m=np.divide(a_m,max_m) b_m=list(df_m.groupby(by='w5_reps_total')['w5_reps_total']) c_m=[] for i in b_m: c_m.append(i[0]) last=20 g=sns.relplot(x=c_m[-last:], y=a_m[-last:], kind="line",linewidth=4) g.fig.set_size_inches(15,5) g.set( xlabel='total reps', ylabel='rank [%]', title= '19.5 | Male | Rx | Top 1%') g.fig.set_figheight(4) g.fig.set_figwidth(7) def regional_participation(df): plt.figure(figsize=(18,7)) g = sns.countplot( data=df, x='region', hue='gender', order=df.region.value_counts().iloc[:7].index, edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) g.set_ylabel('') g.set_xlabel('') g.set_title('Regional Participation') ylabels = ['{:,.0f}'.format(y) + 'k' for y in g.get_yticks()/1000] g.set_yticklabels(ylabels) plt.show() def regional_ranking(df): plt.figure(figsize=(20,9)) g = sns.barplot( data=df[(df['division']=='Men')|(df['division']=='Women')], x='region', y='overallrank', hue='gender', order=df.region.value_counts().iloc[:7].index, edgecolor='black', palette={"F": "gold", "M": "limegreen"} ) g.set_title('Average Ranking') g.set_xlabel('') g.set_ylabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in g.get_yticks()/1000] g.set_yticklabels(ylabels) plt.show() countries = ['United States', 'Bahamas', 'New Zealand', 'Canada', 'Russian Federation', 'Kenya', 'Australia', 'Costa Rica', 'Denmark', 'United Kingdom', 'Sweden', 'Netherlands', 'France', 'Ireland', 'Switzerland', 'South Africa', 'Germany', 'Argentina', 'Italy', 'Norway', 'Iceland', 'Zimbabwe', 'Peru', 'Portugal', 'Korea, Republic of', 'Philippines', 'Colombia', 'Mexico', 'Singapore', 'Chile', 'Israel', 'Brazil', 'Ukraine', 'Spain', 'Ecuador', 'United Arab Emirates', 'Slovenia', 'Turkey', 'China', 'Jamaica', 'Bahrain', 'Czech Republic', 'Malaysia', 'Egypt', 'Hungary', 'Indonesia', 'Finland', 'Angola', 'Tonga', 'Trinidad and Tobago', 'Belgium', 'Brunei Darussalam', 'Afghanistan', 'Austria', 'Croatia', 'Latvia', 'India', 'Malta', 'Bulgaria', 'Thailand', 'Morocco', 'Greece', 'Iran', 'Japan', 'Dominican Republic', 'Barbados', 'Honduras', 'Guatemala', 'Panama', 'Samoa', 'Venezuela', 'Iraq', 'Slovakia', 'Viet Nam', 'Romania', 'Lebanon', 'Poland', 'Belarus', 'Sri Lanka', 'Kuwait', 'Palestinian Territory', 'Namibia', 'Estonia', 'Tunisia', 'Bolivia', 'Saudi Arabia', 'Luxembourg', 'Nigeria', 'Papua New Guinea', 'Zambia', 'El Salvador', 'Serbia', 'Oman', 'Macedonia', 'Guyana', 'Tanzania', 'Fiji', 'Andorra', 'Cyprus', 'Nicaragua', 'Belize', 'Jordan', 'Qatar', 'Uruguay', 'Lithuania', 'Montenegro', 'Uganda', 'Paraguay', 'Madagascar', 'Kazakhstan', 'Cambodia', 'San Marino', 'Mauritius', 'Algeria', 'Suriname', 'Saint Vincent/Grenadines', 'Bosnia and Herzegovina', 'Congo, The Republic of', 'Libya', 'Pakistan', 'Mozambique', 'Liechtenstein', 'Moldova', 'Syrian Arab Republic', 'Kyrgyzstan', 'Saint Lucia', 'Uzbekistan', 'Azerbaijan', 'Senegal', 'Congo, The Democratic Republic of the', 'Mongolia', 'Kosovo', 'Botswana', 'Djibouti', 'Armenia', 'Georgia', 'Somalia', 'Vanuatu', "Côte d'Ivoire", 'Ghana', 'Antigua and Barbuda', 'Tajikistan', 'Nepal', 'Yemen', 'Rwanda', 'Tuvalu', 'Myanmar', 'Guinea-Bissau', 'Maldives', 'Eritrea', 'Niger', 'Albania', 'Cameroon', 'Mali', 'Malawi', 'Bangladesh'] def top_countries(df): df_x = df[(df['division']=='Men') | (df['division']=='Women')] df_1 = df_x[df_x['countryoforiginname']=='United States'].sort_values(by='overallrank')[:100] df_2 = df_x[df_x['countryoforiginname']=='Canada'].sort_values(by='overallrank')[:100] df_3 = df_x[df_x['countryoforiginname']=='Australia'].sort_values(by='overallrank')[:100] df_4 = df_x[df_x['countryoforiginname']=='United Kingdom'].sort_values(by='overallrank')[:100] df_5 = df_x[df_x['countryoforiginname']=='France'].sort_values(by='overallrank')[:100] df_6 = df_x[df_x['countryoforiginname']=='New Zealand'].sort_values(by='overallrank')[:100] df_7 = df_x[df_x['countryoforiginname']=='Brazil'].sort_values(by='overallrank')[:100] df_8 = df_x[df_x['countryoforiginname']=='Russian Federation'].sort_values(by='overallrank')[:100] df_9 = df_x[df_x['countryoforiginname']=='Sweden'].sort_values(by='overallrank')[:100] df_10 = df_x[df_x['countryoforiginname']=='Italy'].sort_values(by='overallrank')[:100] df_tot = pd.concat([df_1,df_2,df_3,df_4,df_5,df_6,df_7,df_8,df_9,df_10]) plt.figure(figsize=(20,10)) g = sns.stripplot( data=df_tot, x='countryoforiginname', y='overallrank', hue='gender', palette={"F": "gold", "M": "limegreen"}, edgecolor='black' ) g.set_title('Top 100 of best Countries') g.set_xlabel('') plt.xticks(rotation=45) plt.show() def hspu_results(df_hspu): plt.figure(figsize=(10,5)) g = sns.scatterplot( data=df_hspu[(df_hspu['scaled_1']==0)&(df_hspu['scaled_2']==0)].sample(150,random_state=10), x='w1_reps_total', y='w2_reps_sqcl', hue='w3_hspu_status', edgecolor='black', palette={1: "darkblue", 0: "lightblue"}, ) g.set_title('Results of Workouts 1&2 | Rx') g.set_xlabel('19.1 - total reps') g.set_ylabel('19.2 - Squat Cleans') g.legend_.set_title('HSPU?') plt.show() def bmu_results(df_bmu): plt.figure(figsize=(10,5)) g = sns.scatterplot( data=df_bmu[(df_bmu['scaled_1']==0)&(df_bmu['scaled_2']==0)].sample(150,random_state=10), x='w1_reps_total', y='w2_reps_sqcl', hue='w4_bmu_status', edgecolor='black', palette={1: "darkblue", 0: "lightblue"} ) g.set_title('Results of Workouts 1&2 | Rx') g.set_xlabel('19.1 - total reps') g.set_ylabel('19.2 - Squat Cleans') g.legend_.set_title('BMU?') plt.show() def hspu_benchmark(df_hspu): plt.figure(figsize=(10,5)) g = sns.scatterplot( data=df_hspu[df_hspu['gender']=='M'].sample(300,random_state=10), x='bs_cleanandjerk', y='bs_snatch', hue='w3_hspu_status', palette={1: "darkblue", 0: "lightblue"}, edgecolor='black' ) g.set_title('Benchmarks - Clean&Jerk vs. Snatch | Men') g.set_xlabel('1RM clean&jerk [kg]') g.set_ylabel('1RM snatch [kg]') g.legend_.set_title('HSPU?') plt.show() def bmu_benchmark(df_bmu): plt.figure(figsize=(10,5)) g = sns.scatterplot( data=df_bmu[df_bmu['gender']=='M'].sample(300,random_state=10), x='bs_cleanandjerk', y='bs_snatch', hue='w4_bmu_status', palette={1: "darkblue", 0: "lightblue"}, edgecolor='black' ) g.set_title('Benchmarks - Clean&Jerk vs. Snatch | Men') g.set_xlabel('1RM clean&jerk [kg]') g.set_ylabel('1RM snatch [kg]') g.legend_.set_title('BMU?') plt.show() def hspu_body(df_hspu): plt.figure(figsize=(8,6)) g = sns.scatterplot( data=df_hspu[df_hspu['gender']=='M'].sample(300,random_state=10), x='weight', y='height', hue='w3_hspu_status', palette={1: "darkblue", 0: "lightblue"}, edgecolor='black' ) g.set_title('Body Measurements | Men') g.set_xlabel('weight [kg]') g.set_ylabel('height [m]') g.legend_.set_title('HSPU?') plt.show() def bmu_body(df_bmu): plt.figure(figsize=(8,6)) g = sns.scatterplot( data=df_bmu.sample(300,random_state=10), x='weight', y='height', hue='w4_bmu_status', palette={1: "darkblue", 0: "lightblue"}, edgecolor='black' ) g.set_title('Body Measurements | Men') g.set_xlabel('weight [kg]') g.set_ylabel('height [m]') g.legend_.set_title('BMU?') plt.show() def scaling_1(df): fig, axes = plt.subplots(1,2,figsize=(15,3)) a = sns.histplot( ax=axes[0], data=df[(df['division']=='Men')], x='overallrank', hue='scaled_1', bins=20, multiple='stack', palette={1: "darkblue", 0: "gold"} ) a.set_title('19.1 | Men') a.set_ylabel('') a.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in a.get_xticks()/1000] a.set_yticklabels(ylabels) a.set_xticklabels(xlabels) b = sns.histplot( ax=axes[1], data=df[(df['division']=='Women')], x='overallrank', hue='scaled_1', bins=20, multiple='stack', palette={1: "darkblue", 0: "limegreen"} ) b.set_title('19.1 | Women') b.set_ylabel('') b.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in b.get_xticks()/1000] b.set_yticklabels(ylabels) b.set_xticklabels(xlabels); def scaling_2(df): fig, axes = plt.subplots(1,2,figsize=(15,3)) a = sns.histplot( ax=axes[0], data=df[(df['division']=='Men')], x='overallrank', hue='scaled_2', bins=20, multiple='stack', palette={1: "darkblue", 0: "gold"} ) a.set_title('19.2 | Men') a.set_ylabel('') a.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in a.get_xticks()/1000] a.set_yticklabels(ylabels) a.set_xticklabels(xlabels) b = sns.histplot( ax=axes[1], data=df[(df['division']=='Women')], x='overallrank', hue='scaled_2', bins=20, multiple='stack', palette={1: "darkblue", 0: "limegreen"} ) b.set_title('19.2 | Women') b.set_ylabel('') b.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in b.get_xticks()/1000] b.set_yticklabels(ylabels) b.set_xticklabels(xlabels); def scaling_3(df): fig, axes = plt.subplots(1,2,figsize=(15,3)) a = sns.histplot( ax=axes[0], data=df[(df['division']=='Men')], x='overallrank', hue='scaled_3', bins=20, multiple='stack', palette={1: "darkblue", 0: "gold"} ) a.set_title('19.3 | Men') a.set_ylabel('') a.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in a.get_xticks()/1000] a.set_yticklabels(ylabels) a.set_xticklabels(xlabels) b = sns.histplot( ax=axes[1], data=df[(df['division']=='Women')], x='overallrank', hue='scaled_3', bins=20, multiple='stack', palette={1: "darkblue", 0: "limegreen"} ) b.set_title('19.3 | Women') b.set_ylabel('') b.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in b.get_xticks()/1000] b.set_yticklabels(ylabels) b.set_xticklabels(xlabels); def scaling_4(df): fig, axes = plt.subplots(1,2,figsize=(15,3)) a = sns.histplot( ax=axes[0], data=df[(df['division']=='Men')], x='overallrank', hue='scaled_4', bins=20, multiple='stack', palette={1: "darkblue", 0: "gold"} ) a.set_title('19.4 | Men') a.set_ylabel('') a.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in a.get_xticks()/1000] a.set_yticklabels(ylabels) a.set_xticklabels(xlabels) b = sns.histplot( ax=axes[1], data=df[(df['division']=='Women')], x='overallrank', hue='scaled_4', bins=20, multiple='stack', palette={1: "darkblue", 0: "limegreen"} ) b.set_title('19.4 | Women') b.set_ylabel('') b.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in b.get_xticks()/1000] b.set_yticklabels(ylabels) b.set_xticklabels(xlabels); def scaling_5(df): fig, axes = plt.subplots(1,2,figsize=(15,3)) a = sns.histplot( ax=axes[0], data=df[(df['division']=='Men')], x='overallrank', hue='scaled_5', bins=20, multiple='stack', palette={1: "darkblue", 0: "gold"} ) a.set_title('19.5 | Men') a.set_ylabel('') a.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in a.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in a.get_xticks()/1000] a.set_yticklabels(ylabels) a.set_xticklabels(xlabels) b = sns.histplot( ax=axes[1], data=df[(df['division']=='Women')], x='overallrank', hue='scaled_5', bins=20, multiple='stack', palette={1: "darkblue", 0: "limegreen"} ) b.set_title('19.5 | Women') b.set_ylabel('') b.set_xlabel('Overall Ranking') ylabels = ['{:,.0f}'.format(y) + 'k' for y in b.get_yticks()/1000] xlabels = ['{:,.0f}'.format(x) + 'k' for x in b.get_xticks()/1000] b.set_yticklabels(ylabels) b.set_xticklabels(xlabels);
34.870457
127
0.565079
5,661
37,416
3.5121
0.077195
0.017805
0.02716
0.015089
0.865959
0.83895
0.817976
0.801881
0.798209
0.786088
0
0.040761
0.230222
37,416
1,073
128
34.870457
0.649538
0.00155
0
0.752688
0
0
0.213121
0.007712
0
0
0
0
0
1
0.038123
false
0
0.014663
0
0.052786
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
fc7e71d11a5dac59d50c15f9c46eb911ee94ae4c
9,356
py
Python
src/differential_value_iteration/algorithms/algorithms.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
null
null
null
src/differential_value_iteration/algorithms/algorithms.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
24
2021-08-16T23:21:39.000Z
2021-11-25T20:46:17.000Z
src/differential_value_iteration/algorithms/algorithms.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
2
2021-08-06T21:15:49.000Z
2021-08-16T04:29:52.000Z
import numpy as np def check_mrp(mrp): if mrp.transitions.ndim != 2: raise ValueError( f'mrp transitions should be 2 dimensional, not: {mrp.transitions.shape}') if mrp.rewards.ndim != 1: raise ValueError( f'mrp rewards should be 1 dimensional, not: {mrp.rewards.shape}') def check_mdp(mdp): if mdp.transitions.ndim != 3: raise ValueError( f'mrd transitions should be 3 dimensional, not: {mdp.transitions.shape}') if mdp.rewards.ndim != 2: raise ValueError( f'mrd rewards should be 2 dimensional, not: {mdp.rewards.shape}') class RVI_Evaluation: def __init__(self, mrp, v, alpha: float = 1., ref_idx: int = 0): check_mrp(mrp) self.p = mrp.transitions self.r = mrp.rewards self.init_v = v.copy() self.alpha = alpha self.idx = 0 self.ref_idx = ref_idx self.num_states = mrp.num_states self.reset() def exec_sync(self): self.v += self.alpha * ( self.r + np.dot(self.p, self.v - self.v[self.ref_idx]) - self.v) return def exec_async(self): idx = self.idx self.v[idx] += self.alpha * ( self.r[idx] + np.dot(self.p[idx], self.v - self.v[self.ref_idx]) - self.v[idx]) self.idx = (self.idx + 1) % self.num_states return def reset(self): self.v = self.init_v.copy() class RVI_Control(object): def __init__(self, mdp, v, alpha=1.0, ref_idx=0): check_mdp(mdp) self.p = mdp.transitions self.r = mdp.rewards self.init_v = v.copy() self.alpha = alpha self.idx = 0 self.ref_idx = ref_idx self.num_states = mdp.num_states self.num_actions = mdp.num_actions self.reset() def exec_sync(self): temp_s_by_a = np.zeros((self.num_states, self.num_actions)) for a in range(self.num_actions): temp_s_by_a[:, a] = self.r[a] + np.dot(self.p[a], self.v - self.v[ self.ref_idx]) - self.v delta = np.max(temp_s_by_a, axis=1) self.v += self.alpha * delta return def exec_async(self): idx = self.idx temp_a = np.zeros(self.num_actions) for a in range(self.num_actions): temp_a[a] = self.r[a][idx] + np.dot(self.p[a][idx], self.v - self.v[self.ref_idx]) - \ self.v[idx] delta = np.max(temp_a) self.v[idx] += self.alpha * delta self.idx = (self.idx + 1) % self.num_states return def reset(self): self.v = self.init_v.copy() class DVI_Evaluation(object): def __init__(self, mrp, init_v, init_r_bar, alpha=1.0, beta=1.0): check_mrp(mrp) self.p = mrp.transitions self.r = mrp.rewards self.init_v = init_v.copy() self.init_r_bar = init_r_bar self.alpha = alpha self.beta = beta self.idx = 0 self.num_states = mrp.num_states self.reset() def exec_sync(self): delta = self.r - self.r_bar + np.dot(self.p, self.v) - self.v self.v += self.alpha * delta self.r_bar += self.beta * np.sum(delta) return def exec_async(self): idx = self.idx delta = self.r[idx] - self.r_bar + np.dot(self.p[idx], self.v) - self.v[idx] self.v[idx] += self.alpha * delta self.r_bar += self.beta * delta self.idx = (self.idx + 1) % self.num_states return def reset(self): self.v = self.init_v.copy() self.r_bar = self.init_r_bar class DVI_Control(object): def __init__(self, mdp, init_v, init_r_bar, alpha=1.0, beta=1.0): check_mdp(mdp) self.p = mdp.transitions self.r = mdp.rewards self.init_v = init_v.copy() self.init_r_bar = init_r_bar self.alpha = alpha self.beta = beta self.idx = 0 self.num_actions = mdp.num_actions self.num_states = mdp.num_states self.reset() def exec_sync(self): temp_s_by_a = np.zeros((self.num_states, self.num_actions)) for a in range(self.num_actions): temp_s_by_a[:, a] = self.r[a] - self.r_bar + np.dot(self.p[a], self.v) - self.v delta = np.max(temp_s_by_a, axis=1) self.v += self.alpha * delta self.r_bar += self.beta * np.sum(delta) return def exec_async(self): idx = self.idx temp_a = np.zeros(self.num_actions) for a in range(self.num_actions): temp_a[a] = self.r[a][idx] - self.r_bar + np.dot(self.p[a][idx], self.v) - \ self.v[idx] delta = np.max(temp_a) self.v[idx] += self.alpha * delta self.r_bar += self.beta * delta self.idx = (self.idx + 1) % self.num_states return def reset(self): self.v = self.init_v.copy() self.r_bar = self.init_r_bar class MDVI_Evaluation(object): def __init__(self, mrp, init_v, init_r_bar, alpha=1.0, beta=1.0): check_mrp(mrp) self.p = mrp.transitions self.r = mrp.rewards self.init_v = init_v.copy() self.init_r_bar = init_r_bar.copy() self.alpha = alpha self.beta = beta self.num_states = mrp.num_states self.idx = 0 self.reset() def exec_sync(self): self.r_bar = np.dot(self.p, self.r_bar) delta = self.r - self.r_bar + np.dot(self.p, self.v) - self.v self.v += self.alpha * delta self.r_bar += self.beta * delta return def exec_async(self): idx = self.idx self.r_bar[idx] = np.dot(self.p[idx], self.r_bar) delta = self.r[idx] - self.r_bar[idx] + np.dot(self.p[idx], self.v) - \ self.v[idx] self.v[idx] += self.alpha * delta self.r_bar[idx] += self.beta * delta self.idx = (self.idx + 1) % self.num_states return def reset(self): self.v = self.init_v.copy() self.r_bar = self.init_r_bar.copy() class MDVI_Control1(object): def __init__(self, mdp, init_v, init_r_bar, alpha=1.0, beta=1.0, threshold=0.01): check_mdp(mdp) self.p = mdp.transitions self.r = mdp.rewards self.init_v = init_v.copy() self.init_r_bar = init_r_bar.copy() self.alpha = alpha self.beta = beta self.num_states = mdp.num_states self.num_actions = mdp.num_actions self.idx = 0 self.threshold = threshold self.reset() def exec_sync(self): num_states = self.num_states num_actions = self.num_actions temp_s_by_a = np.zeros((num_states, num_actions)) for a in range(num_actions): temp_s_by_a[:, a] = np.dot(self.p[a], self.r_bar) self.r_bar = np.max(temp_s_by_a, axis=1) delta = np.zeros(num_states) for s in range(num_states): max_actions = np.where(temp_s_by_a[s] > self.r_bar[s] - self.threshold)[0] temp_a = np.zeros(len(max_actions)) for i in range(len(max_actions)): temp_a[i] = self.r[max_actions[i]][s] - self.r_bar[s] + np.dot( self.p[max_actions[i]][s], self.v) - self.v[s] delta[s] = np.max(temp_a) self.v += self.alpha * delta self.r_bar += self.beta * delta return def exec_async(self): idx = self.idx num_actions = self.num_actions temp_a = np.zeros(num_actions) for a in range(num_actions): temp_a[a] = np.dot(self.p[a][idx], self.r_bar) self.r_bar[idx] = np.max(temp_a) max_actions = np.where(temp_a > self.r_bar[idx] - self.threshold)[0] temp_a = np.zeros(len(max_actions)) for i in range(len(max_actions)): temp_a[i] = self.r[max_actions[i]][idx] - self.r_bar[idx] + np.dot( self.p[max_actions[i]][idx], self.v) - self.v[idx] delta = np.max(temp_a) self.v[idx] += self.alpha * delta self.r_bar[idx] += self.beta * delta self.idx = (self.idx + 1) % self.num_states return def reset(self): self.v = self.init_v.copy() self.r_bar = self.init_r_bar.copy() class MDVI_Control2(object): def __init__(self, mdp, init_v, init_r_bar, alpha=1.0, beta=1.0): check_mdp(mdp) self.p = mdp.transitions self.r = mdp.rewards self.init_v = init_v.copy() self.init_r_bar = init_r_bar.copy() self.alpha = alpha self.beta = beta self.num_states = mdp.num_states self.num_actions = mdp.num_actions self.idx = 0 self.reset() def exec_sync(self): num_states = self.num_states num_actions = self.num_actions temp_s_by_a = np.zeros((num_states, num_actions)) for a in range(num_actions): temp_s_by_a[:, a] = np.dot(self.p[a], self.r_bar) self.r_bar = np.max(temp_s_by_a, axis=1) temp_s_by_a = np.zeros((num_states, num_actions)) for a in range(num_actions): temp_s_by_a[:, a] = self.r[a] - self.r_bar + np.dot(self.p[a], self.v) - self.v delta = np.max(temp_s_by_a, axis=1) self.v += self.alpha * delta self.r_bar += self.beta * delta return def exec_async(self): idx = self.idx num_actions = self.num_actions temp_a = np.zeros(num_actions) for a in range(num_actions): temp_a[a] = np.dot(self.p[a][idx], self.r_bar) self.r_bar[idx] = np.max(temp_a) temp_a = np.zeros(num_actions) for a in range(num_actions): temp_a[a] = self.r[a][idx] - self.r_bar[idx] + np.dot(self.p[a][idx], self.v) - self.v[ idx] delta = np.max(temp_a) self.v[idx] += self.alpha * delta self.r_bar[idx] += self.beta * delta self.idx = (self.idx + 1) % self.num_states return def reset(self): self.v = self.init_v.copy() self.r_bar = self.init_r_bar.copy()
30.47557
82
0.610197
1,594
9,356
3.38143
0.045797
0.055659
0.057885
0.037106
0.905751
0.874954
0.862894
0.843599
0.835807
0.806494
0
0.008368
0.246366
9,356
306
83
30.575163
0.756063
0
0
0.812734
0
0
0.02779
0.004917
0
0
0
0
0
1
0.11236
false
0
0.003745
0
0.194757
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
fc9aa7100bbe37a2b601c9f7b1a2c7a2387143d3
2,421
py
Python
mlic/utils/pickle_demo.py
learnmedicalcantsavecn/Machine_Learning
537998bb47801d88c9a91432ffc71df1b6b89ae5
[ "Apache-2.0" ]
1
2019-12-11T14:13:37.000Z
2019-12-11T14:13:37.000Z
mlic/utils/pickle_demo.py
learnmedicalcantsavecn/Machine_Learning
537998bb47801d88c9a91432ffc71df1b6b89ae5
[ "Apache-2.0" ]
null
null
null
mlic/utils/pickle_demo.py
learnmedicalcantsavecn/Machine_Learning
537998bb47801d88c9a91432ffc71df1b6b89ae5
[ "Apache-2.0" ]
1
2021-09-29T16:23:28.000Z
2021-09-29T16:23:28.000Z
# -*- coding: utf-8 -*- """ Description : Author : xxm """ import pickle """写入""" f = open('data_one.pkl', 'wb') data_dict = {'name': 'Bruce', 'age': 25, 'high': 175} train_list = [ '(CNN) A dramatic picture of a brooding storm engulfing boats in a sailing race on Lake Geneva has earned Swiss photographer Loris von Siebenthal the Mirabaud Yacht Racing Image award for 2019.\n\nThe stunning photo, voted for by an international jury, beat entries from 132 other photographers to win the 10th edition of the competition.\n\nVon Siebenthal, who captured his picture during the 81st Bol d\'Or Mirabaud in June, said it was a "great honor" to receive what he called sailing photography\'s "absolute reference."\n\nAmerican Sharon Green came second with her shot of Volvo 70 Wizard off Miami in the Pineapple Cup, while British photographer Ian Roman\'s picture of Team USA\'s giant catamaran capsizing off Cowes, UK in the SailGP series came in third.\n\n"When we are on the water, our job is to anticipate visually challenging situations," Von Siebenthal said as he picked up the award at the Yacht Racing Forum in Bilbao, Spain.\n\nRead More', '(CNN) A dramatic picture of a brooding storm engulfing boats in a sailing race on Lake Geneva has earned Swiss photographer Loris von Siebenthal the Mirabaud Yacht Racing Image award for 2019.\n\nThe stunning photo, voted for by an international jury, beat entries from 132 other photographers to win the 10th edition of the competition.\n\nVon Siebenthal, who captured his picture during the 81st Bol d\'Or Mirabaud in June, said it was a "great honor" to receive what he called sailing photography\'s "absolute reference."\n\nAmerican Sharon Green came second with her shot of Volvo 70 Wizard off Miami in the Pineapple Cup, while British photographer Ian Roman\'s picture of Team USA\'s giant catamaran capsizing off Cowes, UK in the SailGP series came in third.\n\n"When we are on the water, our job is to anticipate visually challenging situations," Von Siebenthal said as he picked up the award at the Yacht Racing Forum in Bilbao, Spain.\n\nRead More', ] test_list = ['test one', 'test two'] pickle.dump( { 'dict_': data_dict, 'train_': train_list, 'test_': test_list }, f) f.close() """读取""" fr = open('data_one.pkl', 'rb') c = pickle.load(fr) fr.close() print(c['dict_']) print(c['train_']) print(c['test_'])
71.205882
964
0.740603
401
2,421
4.436409
0.389027
0.020236
0.012367
0.015739
0.861158
0.861158
0.861158
0.861158
0.861158
0.861158
0
0.016016
0.174721
2,421
33
965
73.363636
0.874374
0.023544
0
0.095238
0
0.285714
0.76521
0.019709
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.142857
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
0
0
0
0
0
0
0
0
0
8
5d7e8d764b9bc7c2f67f40f65df184672b423546
11,577
py
Python
tests/test_settings_window.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
4
2019-07-18T10:58:28.000Z
2021-11-18T16:57:45.000Z
tests/test_settings_window.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
1
2019-07-05T09:21:47.000Z
2019-07-05T09:21:47.000Z
tests/test_settings_window.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
2
2019-07-05T08:56:34.000Z
2020-06-09T10:03:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Niko Sandschneider """Module containing all tests for the settings window of easyp2p.""" from datetime import date import os import unittest.mock from PyQt5.QtWidgets import QDialogButtonBox, QMessageBox from easyp2p.p2p_settings import Settings from easyp2p.ui.settings_window import SettingsWindow @unittest.mock.patch('easyp2p.ui.settings_window.p2p_cred') class SettingsWindowTests(unittest.TestCase): """Test the settings window of easyp2p.""" @unittest.mock.patch('easyp2p.ui.settings_window.p2p_cred') def setUp(self, _) -> None: # pylint: disable=arguments-differ """Initialize common parameters.""" self.settings = Settings( (date(2018, 9, 1), date(2018, 12, 31)), os.path.join(os.getcwd(), 'test.xlsx')) self.platforms = ['TestPlatform1', 'TestPlatform2', 'TestPlatform3'] self.form = None def test_no_keyring(self, mock_cred): """Test when keyring is not available.""" mock_cred.keyring_exists.return_value = False self.form = SettingsWindow(self.platforms, self.settings) self.assertTrue(self.form.check_box_headless.isChecked()) self.assertEqual(1, self.form.list_widget_platforms.count()) self.assertEqual( 'No keyring available!', self.form.list_widget_platforms.item(0).text()) self.assertFalse(self.form.push_button_add.isEnabled()) self.assertFalse(self.form.push_button_change.isEnabled()) self.assertFalse(self.form.push_button_delete.isEnabled()) def test_keyring_no_platforms(self, mock_cred): """Test when no platforms are saved in keyring.""" mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.assertTrue(self.form.check_box_headless.isChecked()) self.assertEqual(0, self.form.list_widget_platforms.count()) self.assertEqual(set(), self.form.saved_platforms) self.assertTrue(self.form.push_button_add.isEnabled()) self.assertTrue(self.form.push_button_change.isEnabled()) self.assertTrue(self.form.push_button_delete.isEnabled()) def test_keyring_one_platform(self, mock_cred): """Test when one platform is saved in keyring.""" mock_cred.get_password_from_keyring.side_effect = [ None, 'TestUser', None] mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.assertTrue(self.form.check_box_headless.isChecked()) self.assertEqual(1, self.form.list_widget_platforms.count()) self.assertEqual({'TestPlatform2'}, self.form.saved_platforms) self.assertTrue(self.form.push_button_add.isEnabled()) self.assertTrue(self.form.push_button_change.isEnabled()) self.assertTrue(self.form.push_button_delete.isEnabled()) def test_keyring_all_platforms(self, mock_cred): """Test when all platforms are saved in keyring.""" mock_cred.get_password_from_keyring.side_effect \ = ['TestUser'] * len(self.platforms) mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.assertTrue(self.form.check_box_headless.isChecked()) self.assertEqual( len(self.platforms), self.form.list_widget_platforms.count()) self.assertEqual(set(self.platforms), self.form.saved_platforms) self.assertTrue(self.form.push_button_add.isEnabled()) self.assertTrue(self.form.push_button_change.isEnabled()) self.assertTrue(self.form.push_button_delete.isEnabled()) @unittest.mock.patch('easyp2p.ui.settings_window.QInputDialog.getItem') def test_push_button_add(self, mock_input, mock_cred): """Test adding a platform to the keyring.""" mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True mock_cred.get_credentials_from_user.return_value = ( 'TestUser', 'TestPass') mock_input.return_value = 'TestPlatform1', True self.form = SettingsWindow(self.platforms, self.settings) self.form.push_button_add.click() self.assertEqual(1, self.form.list_widget_platforms.count()) self.assertEqual( 'TestPlatform1', self.form.list_widget_platforms.item(0).text()) self.assertEqual(self.form.saved_platforms, {'TestPlatform1'}) @unittest.mock.patch('easyp2p.ui.settings_window.QInputDialog.getItem') def test_push_button_add_user_cancels_dialog(self, mock_input, mock_cred): """Test adding a platform to the keyring and user cancels dialog.""" mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True mock_input.return_value = '', False self.form = SettingsWindow(self.platforms, self.settings) self.form.push_button_add.click() self.assertEqual(0, self.form.list_widget_platforms.count()) self.assertEqual(self.form.saved_platforms, set()) @unittest.mock.patch('easyp2p.ui.settings_window.QInputDialog.getItem') def test_push_button_add_no_credentials(self, mock_input, mock_cred): """ Test adding a platform to the keyring when user enters no credentials. """ mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True mock_cred.get_credentials_from_user.return_value = (None, None) mock_input.return_value = 'TestPlatform1', True self.form = SettingsWindow(self.platforms, self.settings) self.form.push_button_add.click() self.assertEqual(0, self.form.list_widget_platforms.count()) self.assertEqual(self.form.saved_platforms, set()) @unittest.mock.patch('easyp2p.ui.settings_window.QMessageBox.information') def test_push_button_all_platforms_exist(self, mock_info, mock_cred): """ Test adding platform to the keyring if all platforms are already saved. """ mock_cred.get_password_from_keyring.side_effect \ = ['TestUser'] * len(self.platforms) mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.form.push_button_add.click() mock_info.assert_called_once_with( self.form, 'No other P2P platforms available!', 'Credentials for all supported P2P platforms are already present!') self.assertEqual( len(self.platforms), self.form.list_widget_platforms.count()) self.assertEqual(self.form.saved_platforms, set(self.platforms)) def test_push_button_change(self, mock_cred): """Test change button.""" # Add all platforms and mark the first one mock_cred.get_password_from_keyring.side_effect \ = ['TestUser'] * len(self.platforms) mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.form.list_widget_platforms.setCurrentRow(0) self.form.push_button_change.click() mock_cred.get_credentials_from_user.assert_called_once_with( 'TestPlatform1', True) @unittest.mock.patch('easyp2p.ui.settings_window.QMessageBox.question') def test_push_button_delete_one_platform(self, mock_question, mock_cred): """Test delete button if one platform is saved.""" # First add one platform and mark it mock_cred.get_password_from_keyring.side_effect = [ None, 'TestUser', None] mock_cred.keyring_exists.return_value = True mock_question.return_value = QMessageBox.Yes self.form = SettingsWindow(self.platforms, self.settings) self.form.list_widget_platforms.setCurrentRow(0) self.form.push_button_delete.click() mock_question.assert_called_once_with( self.form, 'Delete credentials?', 'Really delete credentials for TestPlatform2?') mock_cred.delete_platform_from_keyring.assert_called_once_with( 'TestPlatform2') self.assertEqual(set(), self.form.saved_platforms) self.assertEqual(0, self.form.list_widget_platforms.count()) @unittest.mock.patch('easyp2p.ui.settings_window.QMessageBox.question') def test_push_button_delete_all_platforms(self, mock_question, mock_cred): """Test delete button if all platforms are saved.""" # First add one platform and mark it mock_cred.get_password_from_keyring.side_effect \ = ['TestUser'] * len(self.platforms) mock_cred.keyring_exists.return_value = True mock_question.return_value = QMessageBox.Yes self.form = SettingsWindow(self.platforms, self.settings) self.form.list_widget_platforms.setCurrentRow(1) self.form.push_button_delete.click() mock_question.assert_called_once_with( self.form, 'Delete credentials?', 'Really delete credentials for TestPlatform2?') mock_cred.delete_platform_from_keyring.assert_called_once_with( 'TestPlatform2') self.assertEqual( {'TestPlatform1', 'TestPlatform3'}, self.form.saved_platforms) self.assertEqual(2, self.form.list_widget_platforms.count()) def test_accept_with_headless_true(self, mock_cred): """Keep default value True for headless and click OK.""" mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.assertTrue(self.form.check_box_headless.isChecked()) self.form.button_box.button(QDialogButtonBox.Ok).click() self.assertTrue(self.form.settings.headless) def test_accept_with_headless_false(self, mock_cred): """Change headless to False and click OK. Must still be False.""" mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.form.check_box_headless.setChecked(False) self.form.button_box.button(QDialogButtonBox.Ok).click() self.assertFalse(self.form.settings.headless) def test_cancel_with_headless_true(self, mock_cred): """ Keep headless default value and click Cancel. headless must be True. """ mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.assertTrue(self.form.check_box_headless.isChecked()) self.form.button_box.button(QDialogButtonBox.Cancel).click() self.assertTrue(self.form.settings.headless) def test_cancel_with_headless_false(self, mock_cred): """ Set headless to False and click Cancel. Headless must be back to True. """ mock_cred.get_password_from_keyring.return_value = None mock_cred.keyring_exists.return_value = True self.form = SettingsWindow(self.platforms, self.settings) self.form.check_box_headless.setChecked(False) self.form.button_box.button(QDialogButtonBox.Cancel).click() self.assertTrue(self.form.settings.headless) if __name__ == "__main__": unittest.main()
49.686695
79
0.706573
1,424
11,577
5.48736
0.106039
0.079857
0.029178
0.043768
0.83376
0.813924
0.768876
0.75032
0.745713
0.683005
0
0.00738
0.192364
11,577
232
80
49.900862
0.828342
0.096744
0
0.689266
0
0
0.082515
0.034503
0
0
0
0
0.276836
1
0.090395
false
0.084746
0.033898
0
0.129944
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
5d8d56838bd89117b3f35c38c6cfcfb1f03ddc95
12,408
py
Python
tests/test_generic_websocket.py
ronnievdc/channels
68718024db2d4df2b62a76a8df2c57dc7094b0c7
[ "BSD-3-Clause" ]
null
null
null
tests/test_generic_websocket.py
ronnievdc/channels
68718024db2d4df2b62a76a8df2c57dc7094b0c7
[ "BSD-3-Clause" ]
1
2020-10-19T18:03:48.000Z
2021-01-24T18:53:43.000Z
tests/test_generic_websocket.py
ronnievdc/channels
68718024db2d4df2b62a76a8df2c57dc7094b0c7
[ "BSD-3-Clause" ]
1
2020-12-16T11:03:45.000Z
2020-12-16T11:03:45.000Z
import pytest from django.test import override_settings from channels.generic.websocket import ( AsyncJsonWebsocketConsumer, AsyncWebsocketConsumer, JsonWebsocketConsumer, WebsocketConsumer, ) from channels.layers import get_channel_layer from channels.testing import WebsocketCommunicator @pytest.mark.asyncio async def test_websocket_consumer(): """ Tests that WebsocketConsumer is implemented correctly. """ results = {} class TestConsumer(WebsocketConsumer): def connect(self): results["connected"] = True self.accept() def receive(self, text_data=None, bytes_data=None): results["received"] = (text_data, bytes_data) self.send(text_data=text_data, bytes_data=bytes_data) def disconnect(self, code): results["disconnected"] = code # Test a normal connection communicator = WebsocketCommunicator(TestConsumer, "/testws/") connected, _ = await communicator.connect() assert connected assert "connected" in results # Test sending text await communicator.send_to(text_data="hello") response = await communicator.receive_from() assert response == "hello" assert results["received"] == ("hello", None) # Test sending bytes await communicator.send_to(bytes_data=b"w\0\0\0") response = await communicator.receive_from() assert response == b"w\0\0\0" assert results["received"] == (None, b"w\0\0\0") # Close out await communicator.disconnect() assert "disconnected" in results @pytest.mark.asyncio async def test_websocket_consumer_subprotocol(): """ Tests that WebsocketConsumer correctly handles subprotocols. """ class TestConsumer(WebsocketConsumer): def connect(self): assert self.scope["subprotocols"] == ["subprotocol1", "subprotocol2"] self.accept("subprotocol2") # Test a normal connection with subprotocols communicator = WebsocketCommunicator( TestConsumer, "/testws/", subprotocols=["subprotocol1", "subprotocol2"] ) connected, subprotocol = await communicator.connect() assert connected assert subprotocol == "subprotocol2" @pytest.mark.asyncio async def test_websocket_consumer_groups(): """ Tests that WebsocketConsumer adds and removes channels from groups. """ results = {} class TestConsumer(WebsocketConsumer): groups = ["chat"] def receive(self, text_data=None, bytes_data=None): results["received"] = (text_data, bytes_data) self.send(text_data=text_data, bytes_data=bytes_data) channel_layers_setting = { "default": {"BACKEND": "channels.layers.InMemoryChannelLayer"} } with override_settings(CHANNEL_LAYERS=channel_layers_setting): communicator = WebsocketCommunicator(TestConsumer, "/testws/") await communicator.connect() channel_layer = get_channel_layer() # Test that the websocket channel was added to the group on connect message = {"type": "websocket.receive", "text": "hello"} await channel_layer.group_send("chat", message) response = await communicator.receive_from() assert response == "hello" assert results["received"] == ("hello", None) # Test that the websocket channel was discarded from the group on disconnect await communicator.disconnect() assert channel_layer.groups == {} @pytest.mark.asyncio async def test_async_websocket_consumer(): """ Tests that AsyncWebsocketConsumer is implemented correctly. """ results = {} class TestConsumer(AsyncWebsocketConsumer): async def connect(self): results["connected"] = True await self.accept() async def receive(self, text_data=None, bytes_data=None): results["received"] = (text_data, bytes_data) await self.send(text_data=text_data, bytes_data=bytes_data) async def disconnect(self, code): results["disconnected"] = code # Test a normal connection communicator = WebsocketCommunicator(TestConsumer, "/testws/") connected, _ = await communicator.connect() assert connected assert "connected" in results # Test sending text await communicator.send_to(text_data="hello") response = await communicator.receive_from() assert response == "hello" assert results["received"] == ("hello", None) # Test sending bytes await communicator.send_to(bytes_data=b"w\0\0\0") response = await communicator.receive_from() assert response == b"w\0\0\0" assert results["received"] == (None, b"w\0\0\0") # Close out await communicator.disconnect() assert "disconnected" in results @pytest.mark.asyncio async def test_async_websocket_consumer_subprotocol(): """ Tests that AsyncWebsocketConsumer correctly handles subprotocols. """ class TestConsumer(AsyncWebsocketConsumer): async def connect(self): assert self.scope["subprotocols"] == ["subprotocol1", "subprotocol2"] await self.accept("subprotocol2") # Test a normal connection with subprotocols communicator = WebsocketCommunicator( TestConsumer, "/testws/", subprotocols=["subprotocol1", "subprotocol2"] ) connected, subprotocol = await communicator.connect() assert connected assert subprotocol == "subprotocol2" @pytest.mark.asyncio async def test_async_websocket_consumer_groups(): """ Tests that AsyncWebsocketConsumer adds and removes channels from groups. """ results = {} class TestConsumer(AsyncWebsocketConsumer): groups = ["chat"] async def receive(self, text_data=None, bytes_data=None): results["received"] = (text_data, bytes_data) await self.send(text_data=text_data, bytes_data=bytes_data) channel_layers_setting = { "default": {"BACKEND": "channels.layers.InMemoryChannelLayer"} } with override_settings(CHANNEL_LAYERS=channel_layers_setting): communicator = WebsocketCommunicator(TestConsumer, "/testws/") await communicator.connect() channel_layer = get_channel_layer() # Test that the websocket channel was added to the group on connect message = {"type": "websocket.receive", "text": "hello"} await channel_layer.group_send("chat", message) response = await communicator.receive_from() assert response == "hello" assert results["received"] == ("hello", None) # Test that the websocket channel was discarded from the group on disconnect await communicator.disconnect() assert channel_layer.groups == {} @pytest.mark.asyncio async def test_async_websocket_consumer_specific_channel_layer(): """ Tests that AsyncWebsocketConsumer uses the specified channel layer. """ results = {} class TestConsumer(AsyncWebsocketConsumer): channel_layer_alias = "testlayer" async def receive(self, text_data=None, bytes_data=None): results["received"] = (text_data, bytes_data) await self.send(text_data=text_data, bytes_data=bytes_data) channel_layers_setting = { "testlayer": {"BACKEND": "channels.layers.InMemoryChannelLayer"} } with override_settings(CHANNEL_LAYERS=channel_layers_setting): communicator = WebsocketCommunicator(TestConsumer, "/testws/") await communicator.connect() channel_layer = get_channel_layer("testlayer") # Test that the specific channel layer is retrieved assert channel_layer != None channel_name = list(channel_layer.channels.keys())[0] message = {"type": "websocket.receive", "text": "hello"} await channel_layer.send(channel_name, message) response = await communicator.receive_from() assert response == "hello" assert results["received"] == ("hello", None) await communicator.disconnect() @pytest.mark.asyncio async def test_json_websocket_consumer(): """ Tests that JsonWebsocketConsumer is implemented correctly. """ results = {} class TestConsumer(JsonWebsocketConsumer): def connect(self): self.accept() def receive_json(self, data=None): results["received"] = data self.send_json(data) # Open a connection communicator = WebsocketCommunicator(TestConsumer, "/testws/") connected, _ = await communicator.connect() assert connected # Test sending await communicator.send_json_to({"hello": "world"}) response = await communicator.receive_json_from() assert response == {"hello": "world"} assert results["received"] == {"hello": "world"} # Test sending bytes breaks it await communicator.send_to(bytes_data=b"w\0\0\0") with pytest.raises(ValueError): await communicator.wait() @pytest.mark.asyncio async def test_async_json_websocket_consumer(): """ Tests that AsyncJsonWebsocketConsumer is implemented correctly. """ results = {} class TestConsumer(AsyncJsonWebsocketConsumer): async def connect(self): await self.accept() async def receive_json(self, data=None): results["received"] = data await self.send_json(data) # Open a connection communicator = WebsocketCommunicator(TestConsumer, "/testws/") connected, _ = await communicator.connect() assert connected # Test sending await communicator.send_json_to({"hello": "world"}) response = await communicator.receive_json_from() assert response == {"hello": "world"} assert results["received"] == {"hello": "world"} # Test sending bytes breaks it await communicator.send_to(bytes_data=b"w\0\0\0") with pytest.raises(ValueError): await communicator.wait() @pytest.mark.asyncio async def test_block_underscored_type_function_call(): """ Test that consumer prevent calling private functions as handler """ class TestConsumer(AsyncWebsocketConsumer): channel_layer_alias = "testlayer" async def _my_private_handler(self, _): await self.send(text_data="should never be called") channel_layers_setting = { "testlayer": {"BACKEND": "channels.layers.InMemoryChannelLayer"} } with override_settings(CHANNEL_LAYERS=channel_layers_setting): communicator = WebsocketCommunicator(TestConsumer, "/testws/") await communicator.connect() channel_layer = get_channel_layer("testlayer") # Test that the specific channel layer is retrieved assert channel_layer != None channel_name = list(channel_layer.channels.keys())[0] # Should block call to private functions handler and raise ValueError message = {"type": "_my_private_handler", "text": "hello"} await channel_layer.send(channel_name, message) with pytest.raises( ValueError, match=r"Malformed type in message \(leading underscore\)" ): await communicator.receive_from() @pytest.mark.asyncio async def test_block_leading_dot_type_function_call(): """ Test that consumer prevent calling private functions as handler """ class TestConsumer(AsyncWebsocketConsumer): channel_layer_alias = "testlayer" async def _my_private_handler(self, _): await self.send(text_data="should never be called") channel_layers_setting = { "testlayer": {"BACKEND": "channels.layers.InMemoryChannelLayer"} } with override_settings(CHANNEL_LAYERS=channel_layers_setting): communicator = WebsocketCommunicator(TestConsumer, "/testws/") await communicator.connect() channel_layer = get_channel_layer("testlayer") # Test that the specific channel layer is retrieved assert channel_layer != None channel_name = list(channel_layer.channels.keys())[0] # Should not replace dot by underscore and call private function (see issue: #1430) message = {"type": ".my_private_handler", "text": "hello"} await channel_layer.send(channel_name, message) with pytest.raises( ValueError, match=r"Malformed type in message \(leading underscore\)" ): await communicator.receive_from()
34.659218
91
0.680368
1,299
12,408
6.337182
0.103156
0.076409
0.023688
0.029397
0.896259
0.873664
0.832847
0.815112
0.805394
0.743562
0
0.004437
0.218972
12,408
357
92
34.756303
0.845011
0.074952
0
0.828326
0
0
0.119426
0.017007
0
0
0
0
0.158798
1
0.030043
false
0
0.021459
0
0.120172
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
5d93b3139c4ba5ce58096084e4e2378106a368d2
260
py
Python
toppra/solverwrapper/__init__.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
toppra/solverwrapper/__init__.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
toppra/solverwrapper/__init__.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
from .cvxpy_solverwrapper import cvxpyWrapper from .qpoases_solverwrapper import qpOASESSolverWrapper from .hot_qpoases_solverwrapper import hotqpOASESSolverWrapper from .ecos_solverwrapper import ecosWrapper from .cy_seidel_solverwrapper import seidelWrapper
43.333333
62
0.903846
27
260
8.444444
0.518519
0.416667
0.22807
0
0
0
0
0
0
0
0
0
0.076923
260
5
63
52
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
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
5d98a907d02f6dd7bd694cf3f35bd39a6cb362c2
28,468
py
Python
tests/registries/test_matching_for_changing.py
asteven/kopf
433709dc8846f4b399e98f04c843362230357225
[ "MIT" ]
null
null
null
tests/registries/test_matching_for_changing.py
asteven/kopf
433709dc8846f4b399e98f04c843362230357225
[ "MIT" ]
null
null
null
tests/registries/test_matching_for_changing.py
asteven/kopf
433709dc8846f4b399e98f04c843362230357225
[ "MIT" ]
null
null
null
import copy import pytest import kopf from kopf.structs.bodies import Body from kopf.structs.dicts import parse_field from kopf.structs.filters import ABSENT, PRESENT from kopf.structs.handlers import ALL_REASONS, Reason, ResourceChangingHandler # Used in the tests. Must be global-scoped, or its qualname will be affected. def some_fn(x=None): pass def _never(*_, **__): return False def _always(*_, **__): return True matching_reason_and_decorator = pytest.mark.parametrize('reason, decorator', [ (Reason.CREATE, kopf.on.create), (Reason.UPDATE, kopf.on.update), (Reason.DELETE, kopf.on.delete), ]) matching_reason_and_decorator_with_field = pytest.mark.parametrize('reason, decorator', [ (Reason.CREATE, kopf.on.create), (Reason.UPDATE, kopf.on.update), (Reason.DELETE, kopf.on.delete), (Reason.CREATE, kopf.on.field), (Reason.UPDATE, kopf.on.field), (Reason.DELETE, kopf.on.field), ]) mismatching_reason_and_decorator = pytest.mark.parametrize('reason, decorator', [ (Reason.CREATE, kopf.on.update), (Reason.CREATE, kopf.on.delete), (Reason.UPDATE, kopf.on.create), (Reason.UPDATE, kopf.on.delete), (Reason.DELETE, kopf.on.create), (Reason.DELETE, kopf.on.update), ]) @pytest.fixture() def handler_factory(registry, selector): def factory(**kwargs): handler = ResourceChangingHandler(**dict(dict( fn=some_fn, id='a', errors=None, timeout=None, retries=None, backoff=None, initial=None, deleted=None, requires_finalizer=None, selector=selector, annotations=None, labels=None, when=None, field=None, value=None, old=None, new=None, field_needs_change=None, reason=None, ), **kwargs)) registry._resource_changing.append(handler) return handler return factory @pytest.fixture(params=[ # The original no-diff was equivalent to no-field until body/old/new were added to the check. pytest.param(dict(old={}, new={}, body={}, diff=[]), id='with-empty-diff'), ]) def cause_no_diff(request, cause_factory): kwargs = copy.deepcopy(request.param) kwargs['body'].update({'metadata': {'labels': {'known': 'value'}, 'annotations': {'known': 'value'}}}) cause = cause_factory(**kwargs) return cause @pytest.fixture(params=[ pytest.param(dict(old={'known-field': 'old'}, new={'known-field': 'new'}, body={'known-field': 'new'}, diff=[('op', ('known-field',), 'old', 'new')]), id='with-field-diff'), ]) def cause_with_diff(request, cause_factory): kwargs = copy.deepcopy(request.param) kwargs['body'].update({'metadata': {'labels': {'known': 'value'}, 'annotations': {'known': 'value'}}}) cause = cause_factory(**kwargs) return cause @pytest.fixture(params=[ # The original no-diff was equivalent to no-field until body/old/new were added to the check. pytest.param(dict(old={}, new={}, body={}, diff=[]), id='with-empty-diff'), pytest.param(dict(old={'known-field': 'old'}, new={'known-field': 'new'}, body={'known-field': 'new'}, diff=[('op', ('known-field',), 'old', 'new')]), id='with-field-diff'), ]) def cause_any_diff(request, cause_factory): kwargs = copy.deepcopy(request.param) kwargs['body'].update({'metadata': {'labels': {'known': 'value'}, 'annotations': {'known': 'value'}}}) cause = cause_factory(**kwargs) return cause # # "Catch-all" handlers are those with event == None. # def test_catchall_handlers_without_field_found( cause_any_diff, registry, handler_factory): cause = cause_any_diff handler_factory(reason=None, field=None) handlers = registry._resource_changing.get_handlers(cause) assert handlers def test_catchall_handlers_with_field_found( cause_with_diff, registry, handler_factory): cause = cause_with_diff handler_factory(reason=None, field=parse_field('known-field')) handlers = registry._resource_changing.get_handlers(cause) assert handlers def test_catchall_handlers_with_field_ignored( cause_no_diff, registry, handler_factory): cause = cause_no_diff handler_factory(reason=None, field=parse_field('known-field')) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('labels', [ pytest.param({'known': 'value'}, id='with-label'), pytest.param({'known': 'value', 'extra': 'other'}, id='with-extra-label'), ]) def test_catchall_handlers_with_exact_labels_satisfied( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': 'value'}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('labels', [ pytest.param({}, id='without-label'), pytest.param({'known': 'other'}, id='with-other-value'), pytest.param({'extra': 'other'}, id='with-other-label'), ]) def test_catchall_handlers_with_exact_labels_not_satisfied( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': 'value'}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('labels', [ pytest.param({'known': 'value'}, id='with-label'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_desired_labels_present( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': PRESENT}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('labels', [ pytest.param({}, id='without-label'), pytest.param({'extra': 'other'}, id='with-other-label'), ]) def test_catchall_handlers_with_desired_labels_absent( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': PRESENT}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('labels', [ pytest.param({'known': 'value'}, id='with-label'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_undesired_labels_present( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': ABSENT}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('labels', [ pytest.param({}, id='without-label'), pytest.param({'extra': 'other'}, id='with-other-label'), ]) def test_catchall_handlers_with_undesired_labels_absent( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': ABSENT}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('labels', [ pytest.param({}, id='without-label'), pytest.param({'known': 'value'}, id='with-label'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_labels_callback_says_true( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': _always}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('labels', [ pytest.param({}, id='without-label'), pytest.param({'known': 'value'}, id='with-label'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_labels_callback_says_false( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': _never}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('labels', [ pytest.param({}, id='without-label'), pytest.param({'known': 'value'}, id='with-label'), pytest.param({'known': 'other'}, id='with-other-value'), pytest.param({'extra': 'other'}, id='with-other-label'), pytest.param({'known': 'value', 'extra': 'other'}, id='with-extra-label'), ]) def test_catchall_handlers_without_labels( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels=None) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('annotations', [ pytest.param({'known': 'value'}, id='with-annotation'), pytest.param({'known': 'value', 'extra': 'other'}, id='with-extra-annotation'), ]) def test_catchall_handlers_with_exact_annotations_satisfied( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': 'value'}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('annotations', [ pytest.param({}, id='without-annotation'), pytest.param({'known': 'other'}, id='with-other-value'), pytest.param({'extra': 'other'}, id='with-other-annotation'), ]) def test_catchall_handlers_with_exact_annotations_not_satisfied( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': 'value'}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('annotations', [ pytest.param({'known': 'value'}, id='with-annotation'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_desired_annotations_present( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': PRESENT}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('annotations', [ pytest.param({}, id='without-annotation'), pytest.param({'extra': 'other'}, id='with-other-annotation'), ]) def test_catchall_handlers_with_desired_annotations_absent( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': PRESENT}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('annotations', [ pytest.param({'known': 'value'}, id='with-annotation'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_undesired_annotations_present( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': ABSENT}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('annotations', [ pytest.param({}, id='without-annotation'), pytest.param({'extra': 'other'}, id='with-other-annotation'), ]) def test_catchall_handlers_with_undesired_annotations_absent( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': ABSENT}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('annotations', [ pytest.param({}, id='without-annotation'), pytest.param({'known': 'value'}, id='with-annotation'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_annotations_callback_says_true( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': _always}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('annotations', [ pytest.param({}, id='without-annotation'), pytest.param({'known': 'value'}, id='with-annotation'), pytest.param({'known': 'other'}, id='with-other-value'), ]) def test_catchall_handlers_with_annotations_callback_says_false( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None, annotations={'known': _never}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('annotations', [ pytest.param({}, id='without-annotation'), pytest.param({'known': 'value'}, id='with-annotation'), pytest.param({'known': 'other'}, id='with-other-value'), pytest.param({'extra': 'other'}, id='with-other-annotation'), pytest.param({'known': 'value', 'extra': 'other'}, id='with-extra-annotation'), ]) def test_catchall_handlers_without_annotations( cause_factory, registry, handler_factory, annotations): cause = cause_factory(body={'metadata': {'annotations': annotations}}) handler_factory(reason=None) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('labels, annotations', [ pytest.param({'known': 'value'}, {'known': 'value'}, id='with-label-annotation'), pytest.param({'known': 'value', 'extra': 'other'}, {'known': 'value'}, id='with-extra-label-annotation'), pytest.param({'known': 'value'}, {'known': 'value', 'extra': 'other'}, id='with-label-extra-annotation'), pytest.param({'known': 'value', 'extra': 'other'}, {'known': 'value', 'extra': 'other'}, id='with-extra-label-extra-annotation'), ]) def test_catchall_handlers_with_labels_and_annotations_satisfied( cause_factory, registry, handler_factory, labels, annotations): cause = cause_factory(body={'metadata': {'labels': labels, 'annotations': annotations}}) handler_factory(reason=None, labels={'known': 'value'}, annotations={'known': 'value'}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('labels', [ pytest.param({}, id='without-label'), pytest.param({'known': 'value'}, id='with-label'), pytest.param({'known': 'other'}, id='with-other-value'), pytest.param({'extra': 'other'}, id='with-other-label'), pytest.param({'known': 'value', 'extra': 'other'}, id='with-extra-label'), ]) def test_catchall_handlers_with_labels_and_annotations_not_satisfied( cause_factory, registry, handler_factory, labels): cause = cause_factory(body={'metadata': {'labels': labels}}) handler_factory(reason=None, labels={'known': 'value'}, annotations={'known': 'value'}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('reason', ALL_REASONS) @pytest.mark.parametrize('when', [ pytest.param(None, id='without-when'), pytest.param(lambda body=None, **_: body['spec']['name'] == 'test', id='with-when'), pytest.param(lambda **_: True, id='with-other-when'), ]) def test_catchall_handlers_with_when_callback_matching( cause_factory, registry, handler_factory, reason, when): cause = cause_factory(body={'spec': {'name': 'test'}}) handler_factory(reason=None, when=when) handlers = registry._resource_changing.get_handlers(cause) assert handlers @pytest.mark.parametrize('when', [ pytest.param(lambda body=None, **_: body['spec']['name'] != "test", id='with-when'), pytest.param(lambda **_: False, id='with-other-when'), ]) def test_catchall_handlers_with_when_callback_mismatching( cause_factory, registry, handler_factory, when): cause = cause_factory(body={'spec': {'name': 'test'}}) handler_factory(reason=None, when=when) handlers = registry._resource_changing.get_handlers(cause) assert not handlers # # Relevant handlers are those with reason matching the cause's reason. # In the per-field handlers, also with field == 'known-field' (not 'extra-field'). # In the label filtered handlers, the relevant handlers are those that ask for 'known'. # In the annotation filtered handlers, the relevant handlers are those that ask for 'known'. # @matching_reason_and_decorator_with_field def test_relevant_handlers_without_field_found( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, field=None) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert handlers @matching_reason_and_decorator_with_field def test_relevant_handlers_with_field_found( cause_with_diff, registry, resource, reason, decorator): @decorator(*resource, field='known-field') def some_fn(**_): ... cause = cause_with_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert handlers @matching_reason_and_decorator_with_field def test_relevant_handlers_with_field_ignored( cause_no_diff, registry, resource, reason, decorator): @decorator(*resource, field='known-field') def some_fn(**_): ... cause = cause_no_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @matching_reason_and_decorator def test_relevant_handlers_with_labels_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, labels={'known': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert handlers @matching_reason_and_decorator def test_relevant_handlers_with_labels_not_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, labels={'extra': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @matching_reason_and_decorator def test_relevant_handlers_with_annotations_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, annotations={'known': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert handlers @matching_reason_and_decorator def test_relevant_handlers_with_annotations_not_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, annotations={'extra': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @matching_reason_and_decorator def test_relevant_handlers_with_filter_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, when=_always) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert handlers @matching_reason_and_decorator def test_relevant_handlers_with_filter_not_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, when=_never) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @mismatching_reason_and_decorator def test_irrelevant_handlers_without_field_ignored( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @matching_reason_and_decorator_with_field def test_irrelevant_handlers_with_field_ignored( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, field='extra-field') def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @mismatching_reason_and_decorator def test_irrelevant_handlers_with_labels_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, labels={'known': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @mismatching_reason_and_decorator def test_irrelevant_handlers_with_labels_not_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, labels={'extra': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @mismatching_reason_and_decorator def test_irrelevant_handlers_with_annotations_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, annotations={'known': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @mismatching_reason_and_decorator def test_irrelevant_handlers_with_annotations_not_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, annotations={'extra': PRESENT}) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @mismatching_reason_and_decorator def test_irrelevant_handlers_with_when_callback_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, when=_always) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers @mismatching_reason_and_decorator def test_irrelevant_handlers_with_when_callback_not_satisfied( cause_any_diff, registry, resource, reason, decorator): @decorator(*resource, when=_never) def some_fn(**_): ... cause = cause_any_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert not handlers # # Special case for nested fields with shorter/longer diffs. # @matching_reason_and_decorator_with_field def test_field_same_as_diff(cause_with_diff, registry, resource, reason, decorator): @decorator(*resource, field='level1.level2') def some_fn(**_): ... cause = cause_with_diff cause.reason = reason cause.old = {'level1': {'level2': 'old'}} cause.new = {'level1': {'level2': 'new'}} cause.body = Body({'level1': {'level2': 'new'}}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @matching_reason_and_decorator_with_field def test_field_shorter_than_diff(cause_with_diff, registry, resource, reason, decorator): @decorator(*resource, field='level1') def some_fn(**_): ... cause = cause_with_diff cause.reason = reason cause.old = {'level1': {'level2': 'old'}} cause.new = {'level1': {'level2': 'new'}} cause.body = Body({'level1': {'level2': 'new'}}) handlers = registry._resource_changing.get_handlers(cause) assert handlers @matching_reason_and_decorator_with_field def test_field_longer_than_diff_for_wrong_field(cause_with_diff, registry, resource, reason, decorator): @decorator(*resource, field='level1.level2.level3') def some_fn(**_): ... cause = cause_with_diff cause.reason = reason cause.old = {'level1': {'level2': 'old'}} cause.new = {'level1': {'level2': 'new'}} cause.body = Body({'level1': {'level2': 'new'}}) handlers = registry._resource_changing.get_handlers(cause) assert not handlers @pytest.mark.parametrize('old, new', [ pytest.param({'level3': 'old'}, {'level3': 'new'}, id='struct2struct'), pytest.param({'level3': 'old'}, 'new', id='struct2scalar'), pytest.param('old', {'level3': 'new'}, id='scalar2struct'), pytest.param(None, {'level3': 'new'}, id='none2struct'), pytest.param({'level3': 'old'}, None, id='struct2none'), pytest.param({}, {'level3': 'new'}, id='empty2struct'), pytest.param({'level3': 'old'}, {}, id='struct2empty'), ]) @matching_reason_and_decorator_with_field def test_field_longer_than_diff_for_right_field(cause_with_diff, registry, resource, old, new, reason, decorator): @decorator(*resource, field='level1.level2.level3') def some_fn(**_): ... cause = cause_with_diff cause.reason = reason cause.old = {'level1': {'level2': old}} if old is not None else {'level1': {'level2': {}}} cause.new = {'level1': {'level2': new}} if new is not None else {'level1': {'level2': {}}} cause.body = Body(cause.new) handlers = registry._resource_changing.get_handlers(cause) assert handlers # # The handlers must be returned in order of registration, # even if they are mixed with-/without- * -event/-field handlers. # def test_order_persisted_a(cause_with_diff, registry, resource): @kopf.on.create(*resource) def some_fn_1(**_): ... # used @kopf.on.update(*resource) def some_fn_2(**_): ... # filtered out @kopf.on.create(*resource) def some_fn_3(**_): ... # used @kopf.on.field(*resource, field='filtered-out-field') def some_fn_4(**_): ... # filtered out @kopf.on.field(*resource, field='known-field') def some_fn_5(**_): ... # used cause = cause_with_diff cause.reason = Reason.CREATE handlers = registry._resource_changing.get_handlers(cause) # Order must be preserved -- same as registered. assert len(handlers) == 3 assert handlers[0].fn is some_fn_1 assert handlers[1].fn is some_fn_3 assert handlers[2].fn is some_fn_5 def test_order_persisted_b(cause_with_diff, registry, resource): @kopf.on.field(*resource, field='known-field') def some_fn_1(**_): ... # used @kopf.on.field(*resource, field='filtered-out-field') def some_fn_2(**_): ... # filtered out @kopf.on.create(*resource) def some_fn_3(**_): ... # used @kopf.on.update(*resource) def some_fn_4(**_): ... # filtered out @kopf.on.create(*resource) def some_fn_5(**_): ... # used cause = cause_with_diff cause.reason = Reason.CREATE handlers = registry._resource_changing.get_handlers(cause) # Order must be preserved -- same as registered. assert len(handlers) == 3 assert handlers[0].fn is some_fn_1 assert handlers[1].fn is some_fn_3 assert handlers[2].fn is some_fn_5 # # Same function should not be returned twice for the same event/cause. # Only actual for the cases when the event/cause can match multiple handlers. # @matching_reason_and_decorator def test_deduplicated( cause_with_diff, registry, resource, reason, decorator): # Note: the decorators are applied bottom-up -- hence, the order of ids: @decorator(*resource, id='b') @decorator(*resource, id='a') def some_fn(**_): ... cause = cause_with_diff cause.reason = reason handlers = registry._resource_changing.get_handlers(cause) assert len(handlers) == 1 assert handlers[0].id == 'a' # the first found one is returned
35.540574
133
0.700787
3,400
28,468
5.618529
0.058824
0.06198
0.062817
0.082081
0.89609
0.888028
0.869654
0.848663
0.829556
0.819295
0
0.00316
0.155157
28,468
800
134
35.585
0.791111
0.043523
0
0.768581
0
0
0.118605
0.008606
0
0
0
0
0.094595
1
0.150338
false
0.001689
0.011824
0.003378
0.173986
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
5db34adafd7f14be303d14e7bc5c99f320ca6463
473,277
py
Python
ocrd_models/ocrd_models/ocrd_page_generateds.py
wrznr/pyocrd
25c4dd8c60285b7877803e2b627d72c8c0a4ab1e
[ "Apache-2.0" ]
null
null
null
ocrd_models/ocrd_models/ocrd_page_generateds.py
wrznr/pyocrd
25c4dd8c60285b7877803e2b627d72c8c0a4ab1e
[ "Apache-2.0" ]
null
null
null
ocrd_models/ocrd_models/ocrd_page_generateds.py
wrznr/pyocrd
25c4dd8c60285b7877803e2b627d72c8c0a4ab1e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Mon Aug 5 20:18:48 2019 by generateDS.py version 2.30.11. # Python 3.6.6 (default, Jul 24 2018, 16:39:20) [GCC 4.9.2] # # Command line options: # ('-f', '') # ('--root-element', 'PcGts') # ('-o', 'ocrd_models/ocrd_models/ocrd_page_generateds.py') # # Command line arguments: # repo/assets/data/schema/data/2019.xsd # # Command line: # /data/monorepo/venv3.6/bin/generateDS -f --root-element="PcGts" -o "ocrd_models/ocrd_models/ocrd_page_generateds.py" repo/assets/data/schema/data/2019.xsd # # Current working directory (os.getcwd()): # core # import sys import re as re_ import base64 import datetime as datetime_ import warnings as warnings_ try: from lxml import etree as etree_ except ImportError: from xml.etree import ElementTree as etree_ Validate_simpletypes_ = True if sys.version_info.major == 2: BaseStrType_ = basestring else: BaseStrType_ = str def parsexml_(infile, parser=None, **kwargs): if parser is None: # Use the lxml ElementTree compatible parser so that, e.g., # we ignore comments. try: parser = etree_.ETCompatXMLParser() except AttributeError: # fallback to xml.etree parser = etree_.XMLParser() doc = etree_.parse(infile, parser=parser, **kwargs) return doc def parsexmlstring_(instring, parser=None, **kwargs): if parser is None: # Use the lxml ElementTree compatible parser so that, e.g., # we ignore comments. try: parser = etree_.ETCompatXMLParser() except AttributeError: # fallback to xml.etree parser = etree_.XMLParser() element = etree_.fromstring(instring, parser=parser, **kwargs) return element # # Namespace prefix definition table (and other attributes, too) # # The module generatedsnamespaces, if it is importable, must contain # a dictionary named GeneratedsNamespaceDefs. This Python dictionary # should map element type names (strings) to XML schema namespace prefix # definitions. The export method for any class for which there is # a namespace prefix definition, will export that definition in the # XML representation of that element. See the export method of # any generated element type class for a example of the use of this # table. # A sample table is: # # # File: generatedsnamespaces.py # # GenerateDSNamespaceDefs = { # "ElementtypeA": "http://www.xxx.com/namespaceA", # "ElementtypeB": "http://www.xxx.com/namespaceB", # } # try: from generatedsnamespaces import GenerateDSNamespaceDefs as GenerateDSNamespaceDefs_ except ImportError: GenerateDSNamespaceDefs_ = {} # # The root super-class for element type classes # # Calls to the methods in these classes are generated by generateDS.py. # You can replace these methods by re-implementing the following class # in a module named generatedssuper.py. try: from generatedssuper import GeneratedsSuper except ImportError as exp: class GeneratedsSuper(object): tzoff_pattern = re_.compile(r'(\+|-)((0\d|1[0-3]):[0-5]\d|14:00)$') class _FixedOffsetTZ(datetime_.tzinfo): def __init__(self, offset, name): self.__offset = datetime_.timedelta(minutes=offset) self.__name = name def utcoffset(self, dt): return self.__offset def tzname(self, dt): return self.__name def dst(self, dt): return None def gds_format_string(self, input_data, input_name=''): return input_data def gds_validate_string(self, input_data, node=None, input_name=''): if not input_data: return '' else: return input_data def gds_format_base64(self, input_data, input_name=''): return base64.b64encode(input_data) def gds_validate_base64(self, input_data, node=None, input_name=''): return input_data def gds_format_integer(self, input_data, input_name=''): return '%d' % input_data def gds_validate_integer(self, input_data, node=None, input_name=''): return input_data def gds_format_integer_list(self, input_data, input_name=''): return '%s' % ' '.join(input_data) def gds_validate_integer_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: try: int(value) except (TypeError, ValueError): raise_parse_error(node, 'Requires sequence of integers') return values def gds_format_float(self, input_data, input_name=''): return ('%.15f' % input_data).rstrip('0') def gds_validate_float(self, input_data, node=None, input_name=''): return input_data def gds_format_float_list(self, input_data, input_name=''): return '%s' % ' '.join(input_data) def gds_validate_float_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: try: float(value) except (TypeError, ValueError): raise_parse_error(node, 'Requires sequence of floats') return values def gds_format_double(self, input_data, input_name=''): return '%e' % input_data def gds_validate_double(self, input_data, node=None, input_name=''): return input_data def gds_format_double_list(self, input_data, input_name=''): return '%s' % ' '.join(input_data) def gds_validate_double_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: try: float(value) except (TypeError, ValueError): raise_parse_error(node, 'Requires sequence of doubles') return values def gds_format_boolean(self, input_data, input_name=''): return ('%s' % input_data).lower() def gds_validate_boolean(self, input_data, node=None, input_name=''): return input_data def gds_format_boolean_list(self, input_data, input_name=''): return '%s' % ' '.join(input_data) def gds_validate_boolean_list( self, input_data, node=None, input_name=''): values = input_data.split() for value in values: if value not in ('true', '1', 'false', '0', ): raise_parse_error( node, 'Requires sequence of booleans ' '("true", "1", "false", "0")') return values def gds_validate_datetime(self, input_data, node=None, input_name=''): return input_data def gds_format_datetime(self, input_data, input_name=''): if input_data.microsecond == 0: _svalue = '%04d-%02d-%02dT%02d:%02d:%02d' % ( input_data.year, input_data.month, input_data.day, input_data.hour, input_data.minute, input_data.second, ) else: _svalue = '%04d-%02d-%02dT%02d:%02d:%02d.%s' % ( input_data.year, input_data.month, input_data.day, input_data.hour, input_data.minute, input_data.second, ('%f' % (float(input_data.microsecond) / 1000000))[2:], ) if input_data.tzinfo is not None: tzoff = input_data.tzinfo.utcoffset(input_data) if tzoff is not None: total_seconds = tzoff.seconds + (86400 * tzoff.days) if total_seconds == 0: _svalue += 'Z' else: if total_seconds < 0: _svalue += '-' total_seconds *= -1 else: _svalue += '+' hours = total_seconds // 3600 minutes = (total_seconds - (hours * 3600)) // 60 _svalue += '{0:02d}:{1:02d}'.format(hours, minutes) return _svalue @classmethod def gds_parse_datetime(cls, input_data): tz = None if input_data[-1] == 'Z': tz = GeneratedsSuper._FixedOffsetTZ(0, 'UTC') input_data = input_data[:-1] else: results = GeneratedsSuper.tzoff_pattern.search(input_data) if results is not None: tzoff_parts = results.group(2).split(':') tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1]) if results.group(1) == '-': tzoff *= -1 tz = GeneratedsSuper._FixedOffsetTZ( tzoff, results.group(0)) input_data = input_data[:-6] time_parts = input_data.split('.') if len(time_parts) > 1: micro_seconds = int(float('0.' + time_parts[1]) * 1000000) input_data = '%s.%s' % ( time_parts[0], "{}".format(micro_seconds).rjust(6, "0"), ) dt = datetime_.datetime.strptime( input_data, '%Y-%m-%dT%H:%M:%S.%f') else: dt = datetime_.datetime.strptime( input_data, '%Y-%m-%dT%H:%M:%S') dt = dt.replace(tzinfo=tz) return dt def gds_validate_date(self, input_data, node=None, input_name=''): return input_data def gds_format_date(self, input_data, input_name=''): _svalue = '%04d-%02d-%02d' % ( input_data.year, input_data.month, input_data.day, ) try: if input_data.tzinfo is not None: tzoff = input_data.tzinfo.utcoffset(input_data) if tzoff is not None: total_seconds = tzoff.seconds + (86400 * tzoff.days) if total_seconds == 0: _svalue += 'Z' else: if total_seconds < 0: _svalue += '-' total_seconds *= -1 else: _svalue += '+' hours = total_seconds // 3600 minutes = (total_seconds - (hours * 3600)) // 60 _svalue += '{0:02d}:{1:02d}'.format( hours, minutes) except AttributeError: pass return _svalue @classmethod def gds_parse_date(cls, input_data): tz = None if input_data[-1] == 'Z': tz = GeneratedsSuper._FixedOffsetTZ(0, 'UTC') input_data = input_data[:-1] else: results = GeneratedsSuper.tzoff_pattern.search(input_data) if results is not None: tzoff_parts = results.group(2).split(':') tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1]) if results.group(1) == '-': tzoff *= -1 tz = GeneratedsSuper._FixedOffsetTZ( tzoff, results.group(0)) input_data = input_data[:-6] dt = datetime_.datetime.strptime(input_data, '%Y-%m-%d') dt = dt.replace(tzinfo=tz) return dt.date() def gds_validate_time(self, input_data, node=None, input_name=''): return input_data def gds_format_time(self, input_data, input_name=''): if input_data.microsecond == 0: _svalue = '%02d:%02d:%02d' % ( input_data.hour, input_data.minute, input_data.second, ) else: _svalue = '%02d:%02d:%02d.%s' % ( input_data.hour, input_data.minute, input_data.second, ('%f' % (float(input_data.microsecond) / 1000000))[2:], ) if input_data.tzinfo is not None: tzoff = input_data.tzinfo.utcoffset(input_data) if tzoff is not None: total_seconds = tzoff.seconds + (86400 * tzoff.days) if total_seconds == 0: _svalue += 'Z' else: if total_seconds < 0: _svalue += '-' total_seconds *= -1 else: _svalue += '+' hours = total_seconds // 3600 minutes = (total_seconds - (hours * 3600)) // 60 _svalue += '{0:02d}:{1:02d}'.format(hours, minutes) return _svalue def gds_validate_simple_patterns(self, patterns, target): # pat is a list of lists of strings/patterns. # The target value must match at least one of the patterns # in order for the test to succeed. found1 = True for patterns1 in patterns: found2 = False for patterns2 in patterns1: mo = re_.search(patterns2, target) if mo is not None and len(mo.group(0)) == len(target): found2 = True break if not found2: found1 = False break return found1 @classmethod def gds_parse_time(cls, input_data): tz = None if input_data[-1] == 'Z': tz = GeneratedsSuper._FixedOffsetTZ(0, 'UTC') input_data = input_data[:-1] else: results = GeneratedsSuper.tzoff_pattern.search(input_data) if results is not None: tzoff_parts = results.group(2).split(':') tzoff = int(tzoff_parts[0]) * 60 + int(tzoff_parts[1]) if results.group(1) == '-': tzoff *= -1 tz = GeneratedsSuper._FixedOffsetTZ( tzoff, results.group(0)) input_data = input_data[:-6] if len(input_data.split('.')) > 1: dt = datetime_.datetime.strptime(input_data, '%H:%M:%S.%f') else: dt = datetime_.datetime.strptime(input_data, '%H:%M:%S') dt = dt.replace(tzinfo=tz) return dt.time() def gds_str_lower(self, instring): return instring.lower() def get_path_(self, node): path_list = [] self.get_path_list_(node, path_list) path_list.reverse() path = '/'.join(path_list) return path Tag_strip_pattern_ = re_.compile(r'\{.*\}') def get_path_list_(self, node, path_list): if node is None: return tag = GeneratedsSuper.Tag_strip_pattern_.sub('', node.tag) if tag: path_list.append(tag) self.get_path_list_(node.getparent(), path_list) def get_class_obj_(self, node, default_class=None): class_obj1 = default_class if 'xsi' in node.nsmap: classname = node.get('{%s}type' % node.nsmap['xsi']) if classname is not None: names = classname.split(':') if len(names) == 2: classname = names[1] class_obj2 = globals().get(classname) if class_obj2 is not None: class_obj1 = class_obj2 return class_obj1 def gds_build_any(self, node, type_name=None): return None @classmethod def gds_reverse_node_mapping(cls, mapping): return dict(((v, k) for k, v in mapping.items())) @staticmethod def gds_encode(instring): if sys.version_info.major == 2: if ExternalEncoding: encoding = ExternalEncoding else: encoding = 'utf-8' return instring.encode(encoding) else: return instring @staticmethod def convert_unicode(instring): if isinstance(instring, str): result = quote_xml(instring) elif sys.version_info.major == 2 and isinstance(instring, unicode): result = quote_xml(instring).encode('utf8') else: result = GeneratedsSuper.gds_encode(str(instring)) return result def __eq__(self, other): if type(self) != type(other): return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self.__eq__(other) def getSubclassFromModule_(module, class_): '''Get the subclass of a class from a specific module.''' name = class_.__name__ + 'Sub' if hasattr(module, name): return getattr(module, name) else: return None # # If you have installed IPython you can uncomment and use the following. # IPython is available from http://ipython.scipy.org/. # ## from IPython.Shell import IPShellEmbed ## args = '' ## ipshell = IPShellEmbed(args, ## banner = 'Dropping into IPython', ## exit_msg = 'Leaving Interpreter, back to program.') # Then use the following line where and when you want to drop into the # IPython shell: # ipshell('<some message> -- Entering ipshell.\nHit Ctrl-D to exit') # # Globals # ExternalEncoding = '' Tag_pattern_ = re_.compile(r'({.*})?(.*)') String_cleanup_pat_ = re_.compile(r"[\n\r\s]+") Namespace_extract_pat_ = re_.compile(r'{(.*)}(.*)') CDATA_pattern_ = re_.compile(r"<!\[CDATA\[.*?\]\]>", re_.DOTALL) # Change this to redirect the generated superclass module to use a # specific subclass module. CurrentSubclassModule_ = None # # Support/utility functions. # def showIndent(outfile, level, pretty_print=True): if pretty_print: for idx in range(level): outfile.write(' ') def quote_xml(inStr): "Escape markup chars, but do not modify CDATA sections." if not inStr: return '' s1 = (isinstance(inStr, BaseStrType_) and inStr or '%s' % inStr) s2 = '' pos = 0 matchobjects = CDATA_pattern_.finditer(s1) for mo in matchobjects: s3 = s1[pos:mo.start()] s2 += quote_xml_aux(s3) s2 += s1[mo.start():mo.end()] pos = mo.end() s3 = s1[pos:] s2 += quote_xml_aux(s3) return s2 def quote_xml_aux(inStr): s1 = inStr.replace('&', '&amp;') s1 = s1.replace('<', '&lt;') s1 = s1.replace('>', '&gt;') return s1 def quote_attrib(inStr): s1 = (isinstance(inStr, BaseStrType_) and inStr or '%s' % inStr) s1 = s1.replace('&', '&amp;') s1 = s1.replace('<', '&lt;') s1 = s1.replace('>', '&gt;') if '"' in s1: if "'" in s1: s1 = '"%s"' % s1.replace('"', "&quot;") else: s1 = "'%s'" % s1 else: s1 = '"%s"' % s1 return s1 def quote_python(inStr): s1 = inStr if s1.find("'") == -1: if s1.find('\n') == -1: return "'%s'" % s1 else: return "'''%s'''" % s1 else: if s1.find('"') != -1: s1 = s1.replace('"', '\\"') if s1.find('\n') == -1: return '"%s"' % s1 else: return '"""%s"""' % s1 def get_all_text_(node): if node.text is not None: text = node.text else: text = '' for child in node: if child.tail is not None: text += child.tail return text def find_attr_value_(attr_name, node): attrs = node.attrib attr_parts = attr_name.split(':') value = None if len(attr_parts) == 1: value = attrs.get(attr_name) elif len(attr_parts) == 2: prefix, name = attr_parts namespace = node.nsmap.get(prefix) if namespace is not None: value = attrs.get('{%s}%s' % (namespace, name, )) return value class GDSParseError(Exception): pass def raise_parse_error(node, msg): msg = '%s (element %s/line %d)' % (msg, node.tag, node.sourceline, ) raise GDSParseError(msg) class MixedContainer: # Constants for category: CategoryNone = 0 CategoryText = 1 CategorySimple = 2 CategoryComplex = 3 # Constants for content_type: TypeNone = 0 TypeText = 1 TypeString = 2 TypeInteger = 3 TypeFloat = 4 TypeDecimal = 5 TypeDouble = 6 TypeBoolean = 7 TypeBase64 = 8 def __init__(self, category, content_type, name, value): self.category = category self.content_type = content_type self.name = name self.value = value def getCategory(self): return self.category def getContenttype(self, content_type): return self.content_type def getValue(self): return self.value def getName(self): return self.name def export(self, outfile, level, name, namespace, pretty_print=True): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): outfile.write(self.value) elif self.category == MixedContainer.CategorySimple: self.exportSimple(outfile, level, name) else: # category == MixedContainer.CategoryComplex self.value.export( outfile, level, namespace, name_=name, pretty_print=pretty_print) def exportSimple(self, outfile, level, name): if self.content_type == MixedContainer.TypeString: outfile.write('<%s>%s</%s>' % ( self.name, self.value, self.name)) elif self.content_type == MixedContainer.TypeInteger or \ self.content_type == MixedContainer.TypeBoolean: outfile.write('<%s>%d</%s>' % ( self.name, self.value, self.name)) elif self.content_type == MixedContainer.TypeFloat or \ self.content_type == MixedContainer.TypeDecimal: outfile.write('<%s>%f</%s>' % ( self.name, self.value, self.name)) elif self.content_type == MixedContainer.TypeDouble: outfile.write('<%s>%g</%s>' % ( self.name, self.value, self.name)) elif self.content_type == MixedContainer.TypeBase64: outfile.write('<%s>%s</%s>' % ( self.name, base64.b64encode(self.value), self.name)) def to_etree(self, element): if self.category == MixedContainer.CategoryText: # Prevent exporting empty content as empty lines. if self.value.strip(): if len(element) > 0: if element[-1].tail is None: element[-1].tail = self.value else: element[-1].tail += self.value else: if element.text is None: element.text = self.value else: element.text += self.value elif self.category == MixedContainer.CategorySimple: subelement = etree_.SubElement( element, '%s' % self.name) subelement.text = self.to_etree_simple() else: # category == MixedContainer.CategoryComplex self.value.to_etree(element) def to_etree_simple(self): if self.content_type == MixedContainer.TypeString: text = self.value elif (self.content_type == MixedContainer.TypeInteger or self.content_type == MixedContainer.TypeBoolean): text = '%d' % self.value elif (self.content_type == MixedContainer.TypeFloat or self.content_type == MixedContainer.TypeDecimal): text = '%f' % self.value elif self.content_type == MixedContainer.TypeDouble: text = '%g' % self.value elif self.content_type == MixedContainer.TypeBase64: text = '%s' % base64.b64encode(self.value) return text def exportLiteral(self, outfile, level, name): if self.category == MixedContainer.CategoryText: showIndent(outfile, level) outfile.write( 'model_.MixedContainer(%d, %d, "%s", "%s"),\n' % ( self.category, self.content_type, self.name, self.value)) elif self.category == MixedContainer.CategorySimple: showIndent(outfile, level) outfile.write( 'model_.MixedContainer(%d, %d, "%s", "%s"),\n' % ( self.category, self.content_type, self.name, self.value)) else: # category == MixedContainer.CategoryComplex showIndent(outfile, level) outfile.write( 'model_.MixedContainer(%d, %d, "%s",\n' % ( self.category, self.content_type, self.name,)) self.value.exportLiteral(outfile, level + 1) showIndent(outfile, level) outfile.write(')\n') class MemberSpec_(object): def __init__(self, name='', data_type='', container=0, optional=0, child_attrs=None, choice=None): self.name = name self.data_type = data_type self.container = container self.child_attrs = child_attrs self.choice = choice self.optional = optional def set_name(self, name): self.name = name def get_name(self): return self.name def set_data_type(self, data_type): self.data_type = data_type def get_data_type_chain(self): return self.data_type def get_data_type(self): if isinstance(self.data_type, list): if len(self.data_type) > 0: return self.data_type[-1] else: return 'xs:string' else: return self.data_type def set_container(self, container): self.container = container def get_container(self): return self.container def set_child_attrs(self, child_attrs): self.child_attrs = child_attrs def get_child_attrs(self): return self.child_attrs def set_choice(self, choice): self.choice = choice def get_choice(self): return self.choice def set_optional(self, optional): self.optional = optional def get_optional(self): return self.optional def _cast(typ, value): if typ is None or value is None: return value return typ(value) # # Data representation classes. # class AlignSimpleType(object): LEFT='left' CENTRE='centre' RIGHT='right' JUSTIFY='justify' class ChartTypeSimpleType(object): BAR='bar' LINE='line' PIE='pie' SCATTER='scatter' SURFACE='surface' OTHER='other' class ColourDepthSimpleType(object): BILEVEL='bilevel' GREYSCALE='greyscale' COLOUR='colour' OTHER='other' class ColourSimpleType(object): BLACK='black' BLUE='blue' BROWN='brown' CYAN='cyan' GREEN='green' GREY='grey' INDIGO='indigo' MAGENTA='magenta' ORANGE='orange' PINK='pink' RED='red' TURQUOISE='turquoise' VIOLET='violet' WHITE='white' YELLOW='yellow' OTHER='other' class GraphicsTypeSimpleType(object): LOGO='logo' LETTERHEAD='letterhead' DECORATION='decoration' FRAME='frame' HANDWRITTENANNOTATION='handwritten-annotation' STAMP='stamp' SIGNATURE='signature' BARCODE='barcode' PAPERGROW='paper-grow' PUNCHHOLE='punch-hole' OTHER='other' class GroupTypeSimpleType(object): PARAGRAPH='paragraph' LIST='list' LISTITEM='list-item' FIGURE='figure' ARTICLE='article' DIV='div' OTHER='other' class PageTypeSimpleType(object): FRONTCOVER='front-cover' BACKCOVER='back-cover' TITLE='title' TABLEOFCONTENTS='table-of-contents' INDEX='index' CONTENT='content' BLANK='blank' OTHER='other' class ProductionSimpleType(object): PRINTED='printed' TYPEWRITTEN='typewritten' HANDWRITTENCURSIVE='handwritten-cursive' HANDWRITTENPRINTSCRIPT='handwritten-printscript' MEDIEVALMANUSCRIPT='medieval-manuscript' OTHER='other' class ReadingDirectionSimpleType(object): LEFTTORIGHT='left-to-right' RIGHTTOLEFT='right-to-left' TOPTOBOTTOM='top-to-bottom' BOTTOMTOTOP='bottom-to-top' class TextDataTypeSimpleType(object): XSDDECIMAL='xsd:decimal' XSDFLOAT='xsd:float' XSDINTEGER='xsd:integer' XSDBOOLEAN='xsd:boolean' XSDDATE='xsd:date' XSDTIME='xsd:time' XSDDATE_TIME='xsd:dateTime' XSDSTRING='xsd:string' OTHER='other' class TextLineOrderSimpleType(object): TOPTOBOTTOM='top-to-bottom' BOTTOMTOTOP='bottom-to-top' LEFTTORIGHT='left-to-right' RIGHTTOLEFT='right-to-left' class TextTypeSimpleType(object): PARAGRAPH='paragraph' HEADING='heading' CAPTION='caption' HEADER='header' FOOTER='footer' PAGENUMBER='page-number' DROPCAPITAL='drop-capital' CREDIT='credit' FLOATING='floating' SIGNATUREMARK='signature-mark' CATCHWORD='catch-word' MARGINALIA='marginalia' FOOTNOTE='footnote' FOOTNOTECONTINUED='footnote-continued' ENDNOTE='endnote' TOCENTRY='TOC-entry' LISTLABEL='list-label' OTHER='other' class underlineStyleType(object): SINGLE_LINE='singleLine' DOUBLE_LINE='doubleLine' OTHER='other' class PcGtsType(GeneratedsSuper): subclass = None superclass = None def __init__(self, pcGtsId=None, Metadata=None, Page=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.pcGtsId = _cast(None, pcGtsId) self.Metadata = Metadata self.Page = Page def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, PcGtsType) if subclass is not None: return subclass(*args_, **kwargs_) if PcGtsType.subclass: return PcGtsType.subclass(*args_, **kwargs_) else: return PcGtsType(*args_, **kwargs_) factory = staticmethod(factory) def get_Metadata(self): return self.Metadata def set_Metadata(self, Metadata): self.Metadata = Metadata def get_Page(self): return self.Page def set_Page(self, Page): self.Page = Page def get_pcGtsId(self): return self.pcGtsId def set_pcGtsId(self, pcGtsId): self.pcGtsId = pcGtsId def hasContent_(self): if ( self.Metadata is not None or self.Page is not None ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PcGtsType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PcGtsType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PcGtsType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PcGtsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='PcGtsType'): if self.pcGtsId is not None and 'pcGtsId' not in already_processed: already_processed.add('pcGtsId') outfile.write(' pcGtsId=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.pcGtsId), input_name='pcGtsId')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PcGtsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.Metadata is not None: self.Metadata.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Metadata', pretty_print=pretty_print) if self.Page is not None: self.Page.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Page', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('pcGtsId', node) if value is not None and 'pcGtsId' not in already_processed: already_processed.add('pcGtsId') self.pcGtsId = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Metadata': obj_ = MetadataType.factory(parent_object_=self) obj_.build(child_) self.Metadata = obj_ obj_.original_tagname_ = 'Metadata' elif nodeName_ == 'Page': obj_ = PageType.factory(parent_object_=self) obj_.build(child_) self.Page = obj_ obj_.original_tagname_ = 'Page' # end class PcGtsType class MetadataType(GeneratedsSuper): """External reference of any kind""" subclass = None superclass = None def __init__(self, externalRef=None, Creator=None, Created=None, LastChange=None, Comments=None, UserDefined=None, MetadataItem=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.externalRef = _cast(None, externalRef) self.Creator = Creator if isinstance(Created, BaseStrType_): initvalue_ = datetime_.datetime.strptime(Created, '%Y-%m-%dT%H:%M:%S') else: initvalue_ = Created self.Created = initvalue_ if isinstance(LastChange, BaseStrType_): initvalue_ = datetime_.datetime.strptime(LastChange, '%Y-%m-%dT%H:%M:%S') else: initvalue_ = LastChange self.LastChange = initvalue_ self.Comments = Comments self.UserDefined = UserDefined if MetadataItem is None: self.MetadataItem = [] else: self.MetadataItem = MetadataItem def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, MetadataType) if subclass is not None: return subclass(*args_, **kwargs_) if MetadataType.subclass: return MetadataType.subclass(*args_, **kwargs_) else: return MetadataType(*args_, **kwargs_) factory = staticmethod(factory) def get_Creator(self): return self.Creator def set_Creator(self, Creator): self.Creator = Creator def get_Created(self): return self.Created def set_Created(self, Created): self.Created = Created def get_LastChange(self): return self.LastChange def set_LastChange(self, LastChange): self.LastChange = LastChange def get_Comments(self): return self.Comments def set_Comments(self, Comments): self.Comments = Comments def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_MetadataItem(self): return self.MetadataItem def set_MetadataItem(self, MetadataItem): self.MetadataItem = MetadataItem def add_MetadataItem(self, value): self.MetadataItem.append(value) def add_MetadataItem(self, value): self.MetadataItem.append(value) def insert_MetadataItem_at(self, index, value): self.MetadataItem.insert(index, value) def replace_MetadataItem_at(self, index, value): self.MetadataItem[index] = value def get_externalRef(self): return self.externalRef def set_externalRef(self, externalRef): self.externalRef = externalRef def hasContent_(self): if ( self.Creator is not None or self.Created is not None or self.LastChange is not None or self.Comments is not None or self.UserDefined is not None or self.MetadataItem ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='MetadataType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MetadataType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MetadataType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MetadataType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='MetadataType'): if self.externalRef is not None and 'externalRef' not in already_processed: already_processed.add('externalRef') outfile.write(' externalRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.externalRef), input_name='externalRef')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='MetadataType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.Creator is not None: showIndent(outfile, level, pretty_print) outfile.write('<%sCreator>%s</%sCreator>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.Creator), input_name='Creator')), namespaceprefix_ , eol_)) if self.Created is not None: showIndent(outfile, level, pretty_print) outfile.write('<%sCreated>%s</%sCreated>%s' % (namespaceprefix_ , self.gds_format_datetime(self.Created, input_name='Created'), namespaceprefix_ , eol_)) if self.LastChange is not None: showIndent(outfile, level, pretty_print) outfile.write('<%sLastChange>%s</%sLastChange>%s' % (namespaceprefix_ , self.gds_format_datetime(self.LastChange, input_name='LastChange'), namespaceprefix_ , eol_)) if self.Comments is not None: showIndent(outfile, level, pretty_print) outfile.write('<%sComments>%s</%sComments>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.Comments), input_name='Comments')), namespaceprefix_ , eol_)) if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for MetadataItem_ in self.MetadataItem: MetadataItem_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='MetadataItem', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('externalRef', node) if value is not None and 'externalRef' not in already_processed: already_processed.add('externalRef') self.externalRef = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Creator': Creator_ = child_.text Creator_ = self.gds_validate_string(Creator_, node, 'Creator') self.Creator = Creator_ elif nodeName_ == 'Created': sval_ = child_.text dval_ = self.gds_parse_datetime(sval_) self.Created = dval_ elif nodeName_ == 'LastChange': sval_ = child_.text dval_ = self.gds_parse_datetime(sval_) self.LastChange = dval_ elif nodeName_ == 'Comments': Comments_ = child_.text Comments_ = self.gds_validate_string(Comments_, node, 'Comments') self.Comments = Comments_ elif nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'MetadataItem': obj_ = MetadataItemType.factory(parent_object_=self) obj_.build(child_) self.MetadataItem.append(obj_) obj_.original_tagname_ = 'MetadataItem' # end class MetadataType class MetadataItemType(GeneratedsSuper): """Type of metadata (e.g. author) E.g. imagePhotometricInterpretation E.g. RGB""" subclass = None superclass = None def __init__(self, type_=None, name=None, value=None, date=None, Labels=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.type_ = _cast(None, type_) self.name = _cast(None, name) self.value = _cast(None, value) if isinstance(date, BaseStrType_): initvalue_ = datetime_.datetime.strptime(date, '%Y-%m-%dT%H:%M:%S') else: initvalue_ = date self.date = initvalue_ if Labels is None: self.Labels = [] else: self.Labels = Labels def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, MetadataItemType) if subclass is not None: return subclass(*args_, **kwargs_) if MetadataItemType.subclass: return MetadataItemType.subclass(*args_, **kwargs_) else: return MetadataItemType(*args_, **kwargs_) factory = staticmethod(factory) def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_name(self): return self.name def set_name(self, name): self.name = name def get_value(self): return self.value def set_value(self, value): self.value = value def get_date(self): return self.date def set_date(self, date): self.date = date def hasContent_(self): if ( self.Labels ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='MetadataItemType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MetadataItemType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MetadataItemType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MetadataItemType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='MetadataItemType'): if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) if self.name is not None and 'name' not in already_processed: already_processed.add('name') outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), )) if self.value is not None and 'value' not in already_processed: already_processed.add('value') outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), )) if self.date is not None and 'date' not in already_processed: already_processed.add('date') outfile.write(' date="%s"' % self.gds_format_datetime(self.date, input_name='date')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='MetadataItemType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('name', node) if value is not None and 'name' not in already_processed: already_processed.add('name') self.name = value value = find_attr_value_('value', node) if value is not None and 'value' not in already_processed: already_processed.add('value') self.value = value value = find_attr_value_('date', node) if value is not None and 'date' not in already_processed: already_processed.add('date') try: self.date = self.gds_parse_datetime(value) except ValueError as exp: raise ValueError('Bad date-time attribute (date): %s' % exp) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' # end class MetadataItemType class LabelsType(GeneratedsSuper): """Reference to external model / ontology / schema E.g. an RDF resource identifier (to be used as subject or object of an RDF triple) Prefix for all labels (e.g. first part of an URI)""" subclass = None superclass = None def __init__(self, externalModel=None, externalId=None, prefix=None, comments=None, Label=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.externalModel = _cast(None, externalModel) self.externalId = _cast(None, externalId) self.prefix = _cast(None, prefix) self.comments = _cast(None, comments) if Label is None: self.Label = [] else: self.Label = Label def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, LabelsType) if subclass is not None: return subclass(*args_, **kwargs_) if LabelsType.subclass: return LabelsType.subclass(*args_, **kwargs_) else: return LabelsType(*args_, **kwargs_) factory = staticmethod(factory) def get_Label(self): return self.Label def set_Label(self, Label): self.Label = Label def add_Label(self, value): self.Label.append(value) def add_Label(self, value): self.Label.append(value) def insert_Label_at(self, index, value): self.Label.insert(index, value) def replace_Label_at(self, index, value): self.Label[index] = value def get_externalModel(self): return self.externalModel def set_externalModel(self, externalModel): self.externalModel = externalModel def get_externalId(self): return self.externalId def set_externalId(self, externalId): self.externalId = externalId def get_prefix(self): return self.prefix def set_prefix(self, prefix): self.prefix = prefix def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.Label ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelsType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('LabelsType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelsType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='LabelsType'): if self.externalModel is not None and 'externalModel' not in already_processed: already_processed.add('externalModel') outfile.write(' externalModel=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.externalModel), input_name='externalModel')), )) if self.externalId is not None and 'externalId' not in already_processed: already_processed.add('externalId') outfile.write(' externalId=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.externalId), input_name='externalId')), )) if self.prefix is not None and 'prefix' not in already_processed: already_processed.add('prefix') outfile.write(' prefix=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.prefix), input_name='prefix')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for Label_ in self.Label: Label_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Label', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('externalModel', node) if value is not None and 'externalModel' not in already_processed: already_processed.add('externalModel') self.externalModel = value value = find_attr_value_('externalId', node) if value is not None and 'externalId' not in already_processed: already_processed.add('externalId') self.externalId = value value = find_attr_value_('prefix', node) if value is not None and 'prefix' not in already_processed: already_processed.add('prefix') self.prefix = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Label': obj_ = LabelType.factory(parent_object_=self) obj_.build(child_) self.Label.append(obj_) obj_.original_tagname_ = 'Label' # end class LabelsType class LabelType(GeneratedsSuper): """Semantic label The label / tag (e.g. 'person'). Can be an RDF resource identifier (e.g. object of an RDF triple). Additional information on the label (e.g. 'YYYY-mm-dd' for a date label). Can be used as predicate of an RDF triple.""" subclass = None superclass = None def __init__(self, value=None, type_=None, comments=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.value = _cast(None, value) self.type_ = _cast(None, type_) self.comments = _cast(None, comments) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, LabelType) if subclass is not None: return subclass(*args_, **kwargs_) if LabelType.subclass: return LabelType.subclass(*args_, **kwargs_) else: return LabelType(*args_, **kwargs_) factory = staticmethod(factory) def get_value(self): return self.value def set_value(self, value): self.value = value def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('LabelType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LabelType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LabelType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='LabelType'): if self.value is not None and 'value' not in already_processed: already_processed.add('value') outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), )) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LabelType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('value', node) if value is not None and 'value' not in already_processed: already_processed.add('value') self.value = value value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class LabelType class PageType(GeneratedsSuper): """Contains the image file name including the file extension. Specifies the width of the image.Specifies the height of the image.Specifies the image resolution in width.Specifies the image resolution in height. Specifies the unit of the resolution information referring to a standardised unit of measurement (pixels per inch, pixels per centimeter or other). For generic use The angle the rectangle encapsulating the page (or its Border) has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti- clockwise rotation). (The rotated image can be further referenced via “AlternativeImage”.) Range: -179.999,180 The type of the page within the document (e.g. cover page). The primary language used in the page (lower-level definitions override the page-level definition). The secondary language used in the page (lower-level definitions override the page-level definition). The primary script used in the page (lower-level definitions override the page-level definition). The secondary script used in the page (lower-level definitions override the page-level definition). The direction in which text within lines should be read (order of words and characters), in addition to “textLineOrder” (lower-level definitions override the page-level definition). The order of text lines within a block, in addition to “readingDirection” (lower-level definitions override the page-level definition). Confidence value for whole page (between 0 and 1)""" subclass = None superclass = None def __init__(self, imageFilename=None, imageWidth=None, imageHeight=None, imageXResolution=None, imageYResolution=None, imageResolutionUnit=None, custom=None, orientation=None, type_=None, primaryLanguage=None, secondaryLanguage=None, primaryScript=None, secondaryScript=None, readingDirection=None, textLineOrder=None, conf=None, AlternativeImage=None, Border=None, PrintSpace=None, ReadingOrder=None, Layers=None, Relations=None, TextStyle=None, UserDefined=None, Labels=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, MapRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.imageFilename = _cast(None, imageFilename) self.imageWidth = _cast(int, imageWidth) self.imageHeight = _cast(int, imageHeight) self.imageXResolution = _cast(float, imageXResolution) self.imageYResolution = _cast(float, imageYResolution) self.imageResolutionUnit = _cast(None, imageResolutionUnit) self.custom = _cast(None, custom) self.orientation = _cast(float, orientation) self.type_ = _cast(None, type_) self.primaryLanguage = _cast(None, primaryLanguage) self.secondaryLanguage = _cast(None, secondaryLanguage) self.primaryScript = _cast(None, primaryScript) self.secondaryScript = _cast(None, secondaryScript) self.readingDirection = _cast(None, readingDirection) self.textLineOrder = _cast(None, textLineOrder) self.conf = _cast(float, conf) if AlternativeImage is None: self.AlternativeImage = [] else: self.AlternativeImage = AlternativeImage self.Border = Border self.PrintSpace = PrintSpace self.ReadingOrder = ReadingOrder self.Layers = Layers self.Relations = Relations self.TextStyle = TextStyle self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels if TextRegion is None: self.TextRegion = [] else: self.TextRegion = TextRegion if ImageRegion is None: self.ImageRegion = [] else: self.ImageRegion = ImageRegion if LineDrawingRegion is None: self.LineDrawingRegion = [] else: self.LineDrawingRegion = LineDrawingRegion if GraphicRegion is None: self.GraphicRegion = [] else: self.GraphicRegion = GraphicRegion if TableRegion is None: self.TableRegion = [] else: self.TableRegion = TableRegion if ChartRegion is None: self.ChartRegion = [] else: self.ChartRegion = ChartRegion if MapRegion is None: self.MapRegion = [] else: self.MapRegion = MapRegion if SeparatorRegion is None: self.SeparatorRegion = [] else: self.SeparatorRegion = SeparatorRegion if MathsRegion is None: self.MathsRegion = [] else: self.MathsRegion = MathsRegion if ChemRegion is None: self.ChemRegion = [] else: self.ChemRegion = ChemRegion if MusicRegion is None: self.MusicRegion = [] else: self.MusicRegion = MusicRegion if AdvertRegion is None: self.AdvertRegion = [] else: self.AdvertRegion = AdvertRegion if NoiseRegion is None: self.NoiseRegion = [] else: self.NoiseRegion = NoiseRegion if UnknownRegion is None: self.UnknownRegion = [] else: self.UnknownRegion = UnknownRegion if CustomRegion is None: self.CustomRegion = [] else: self.CustomRegion = CustomRegion def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, PageType) if subclass is not None: return subclass(*args_, **kwargs_) if PageType.subclass: return PageType.subclass(*args_, **kwargs_) else: return PageType(*args_, **kwargs_) factory = staticmethod(factory) def get_AlternativeImage(self): return self.AlternativeImage def set_AlternativeImage(self, AlternativeImage): self.AlternativeImage = AlternativeImage def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def insert_AlternativeImage_at(self, index, value): self.AlternativeImage.insert(index, value) def replace_AlternativeImage_at(self, index, value): self.AlternativeImage[index] = value def get_Border(self): return self.Border def set_Border(self, Border): self.Border = Border def get_PrintSpace(self): return self.PrintSpace def set_PrintSpace(self, PrintSpace): self.PrintSpace = PrintSpace def get_ReadingOrder(self): return self.ReadingOrder def set_ReadingOrder(self, ReadingOrder): self.ReadingOrder = ReadingOrder def get_Layers(self): return self.Layers def set_Layers(self, Layers): self.Layers = Layers def get_Relations(self): return self.Relations def set_Relations(self, Relations): self.Relations = Relations def get_TextStyle(self): return self.TextStyle def set_TextStyle(self, TextStyle): self.TextStyle = TextStyle def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_TextRegion(self): return self.TextRegion def set_TextRegion(self, TextRegion): self.TextRegion = TextRegion def add_TextRegion(self, value): self.TextRegion.append(value) def add_TextRegion(self, value): self.TextRegion.append(value) def insert_TextRegion_at(self, index, value): self.TextRegion.insert(index, value) def replace_TextRegion_at(self, index, value): self.TextRegion[index] = value def get_ImageRegion(self): return self.ImageRegion def set_ImageRegion(self, ImageRegion): self.ImageRegion = ImageRegion def add_ImageRegion(self, value): self.ImageRegion.append(value) def add_ImageRegion(self, value): self.ImageRegion.append(value) def insert_ImageRegion_at(self, index, value): self.ImageRegion.insert(index, value) def replace_ImageRegion_at(self, index, value): self.ImageRegion[index] = value def get_LineDrawingRegion(self): return self.LineDrawingRegion def set_LineDrawingRegion(self, LineDrawingRegion): self.LineDrawingRegion = LineDrawingRegion def add_LineDrawingRegion(self, value): self.LineDrawingRegion.append(value) def add_LineDrawingRegion(self, value): self.LineDrawingRegion.append(value) def insert_LineDrawingRegion_at(self, index, value): self.LineDrawingRegion.insert(index, value) def replace_LineDrawingRegion_at(self, index, value): self.LineDrawingRegion[index] = value def get_GraphicRegion(self): return self.GraphicRegion def set_GraphicRegion(self, GraphicRegion): self.GraphicRegion = GraphicRegion def add_GraphicRegion(self, value): self.GraphicRegion.append(value) def add_GraphicRegion(self, value): self.GraphicRegion.append(value) def insert_GraphicRegion_at(self, index, value): self.GraphicRegion.insert(index, value) def replace_GraphicRegion_at(self, index, value): self.GraphicRegion[index] = value def get_TableRegion(self): return self.TableRegion def set_TableRegion(self, TableRegion): self.TableRegion = TableRegion def add_TableRegion(self, value): self.TableRegion.append(value) def add_TableRegion(self, value): self.TableRegion.append(value) def insert_TableRegion_at(self, index, value): self.TableRegion.insert(index, value) def replace_TableRegion_at(self, index, value): self.TableRegion[index] = value def get_ChartRegion(self): return self.ChartRegion def set_ChartRegion(self, ChartRegion): self.ChartRegion = ChartRegion def add_ChartRegion(self, value): self.ChartRegion.append(value) def add_ChartRegion(self, value): self.ChartRegion.append(value) def insert_ChartRegion_at(self, index, value): self.ChartRegion.insert(index, value) def replace_ChartRegion_at(self, index, value): self.ChartRegion[index] = value def get_MapRegion(self): return self.MapRegion def set_MapRegion(self, MapRegion): self.MapRegion = MapRegion def add_MapRegion(self, value): self.MapRegion.append(value) def add_MapRegion(self, value): self.MapRegion.append(value) def insert_MapRegion_at(self, index, value): self.MapRegion.insert(index, value) def replace_MapRegion_at(self, index, value): self.MapRegion[index] = value def get_SeparatorRegion(self): return self.SeparatorRegion def set_SeparatorRegion(self, SeparatorRegion): self.SeparatorRegion = SeparatorRegion def add_SeparatorRegion(self, value): self.SeparatorRegion.append(value) def add_SeparatorRegion(self, value): self.SeparatorRegion.append(value) def insert_SeparatorRegion_at(self, index, value): self.SeparatorRegion.insert(index, value) def replace_SeparatorRegion_at(self, index, value): self.SeparatorRegion[index] = value def get_MathsRegion(self): return self.MathsRegion def set_MathsRegion(self, MathsRegion): self.MathsRegion = MathsRegion def add_MathsRegion(self, value): self.MathsRegion.append(value) def add_MathsRegion(self, value): self.MathsRegion.append(value) def insert_MathsRegion_at(self, index, value): self.MathsRegion.insert(index, value) def replace_MathsRegion_at(self, index, value): self.MathsRegion[index] = value def get_ChemRegion(self): return self.ChemRegion def set_ChemRegion(self, ChemRegion): self.ChemRegion = ChemRegion def add_ChemRegion(self, value): self.ChemRegion.append(value) def add_ChemRegion(self, value): self.ChemRegion.append(value) def insert_ChemRegion_at(self, index, value): self.ChemRegion.insert(index, value) def replace_ChemRegion_at(self, index, value): self.ChemRegion[index] = value def get_MusicRegion(self): return self.MusicRegion def set_MusicRegion(self, MusicRegion): self.MusicRegion = MusicRegion def add_MusicRegion(self, value): self.MusicRegion.append(value) def add_MusicRegion(self, value): self.MusicRegion.append(value) def insert_MusicRegion_at(self, index, value): self.MusicRegion.insert(index, value) def replace_MusicRegion_at(self, index, value): self.MusicRegion[index] = value def get_AdvertRegion(self): return self.AdvertRegion def set_AdvertRegion(self, AdvertRegion): self.AdvertRegion = AdvertRegion def add_AdvertRegion(self, value): self.AdvertRegion.append(value) def add_AdvertRegion(self, value): self.AdvertRegion.append(value) def insert_AdvertRegion_at(self, index, value): self.AdvertRegion.insert(index, value) def replace_AdvertRegion_at(self, index, value): self.AdvertRegion[index] = value def get_NoiseRegion(self): return self.NoiseRegion def set_NoiseRegion(self, NoiseRegion): self.NoiseRegion = NoiseRegion def add_NoiseRegion(self, value): self.NoiseRegion.append(value) def add_NoiseRegion(self, value): self.NoiseRegion.append(value) def insert_NoiseRegion_at(self, index, value): self.NoiseRegion.insert(index, value) def replace_NoiseRegion_at(self, index, value): self.NoiseRegion[index] = value def get_UnknownRegion(self): return self.UnknownRegion def set_UnknownRegion(self, UnknownRegion): self.UnknownRegion = UnknownRegion def add_UnknownRegion(self, value): self.UnknownRegion.append(value) def add_UnknownRegion(self, value): self.UnknownRegion.append(value) def insert_UnknownRegion_at(self, index, value): self.UnknownRegion.insert(index, value) def replace_UnknownRegion_at(self, index, value): self.UnknownRegion[index] = value def get_CustomRegion(self): return self.CustomRegion def set_CustomRegion(self, CustomRegion): self.CustomRegion = CustomRegion def add_CustomRegion(self, value): self.CustomRegion.append(value) def add_CustomRegion(self, value): self.CustomRegion.append(value) def insert_CustomRegion_at(self, index, value): self.CustomRegion.insert(index, value) def replace_CustomRegion_at(self, index, value): self.CustomRegion[index] = value def get_imageFilename(self): return self.imageFilename def set_imageFilename(self, imageFilename): self.imageFilename = imageFilename def get_imageWidth(self): return self.imageWidth def set_imageWidth(self, imageWidth): self.imageWidth = imageWidth def get_imageHeight(self): return self.imageHeight def set_imageHeight(self, imageHeight): self.imageHeight = imageHeight def get_imageXResolution(self): return self.imageXResolution def set_imageXResolution(self, imageXResolution): self.imageXResolution = imageXResolution def get_imageYResolution(self): return self.imageYResolution def set_imageYResolution(self, imageYResolution): self.imageYResolution = imageYResolution def get_imageResolutionUnit(self): return self.imageResolutionUnit def set_imageResolutionUnit(self, imageResolutionUnit): self.imageResolutionUnit = imageResolutionUnit def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_primaryLanguage(self): return self.primaryLanguage def set_primaryLanguage(self, primaryLanguage): self.primaryLanguage = primaryLanguage def get_secondaryLanguage(self): return self.secondaryLanguage def set_secondaryLanguage(self, secondaryLanguage): self.secondaryLanguage = secondaryLanguage def get_primaryScript(self): return self.primaryScript def set_primaryScript(self, primaryScript): self.primaryScript = primaryScript def get_secondaryScript(self): return self.secondaryScript def set_secondaryScript(self, secondaryScript): self.secondaryScript = secondaryScript def get_readingDirection(self): return self.readingDirection def set_readingDirection(self, readingDirection): self.readingDirection = readingDirection def get_textLineOrder(self): return self.textLineOrder def set_textLineOrder(self, textLineOrder): self.textLineOrder = textLineOrder def get_conf(self): return self.conf def set_conf(self, conf): self.conf = conf def hasContent_(self): if ( self.AlternativeImage or self.Border is not None or self.PrintSpace is not None or self.ReadingOrder is not None or self.Layers is not None or self.Relations is not None or self.TextStyle is not None or self.UserDefined is not None or self.Labels or self.TextRegion or self.ImageRegion or self.LineDrawingRegion or self.GraphicRegion or self.TableRegion or self.ChartRegion or self.MapRegion or self.SeparatorRegion or self.MathsRegion or self.ChemRegion or self.MusicRegion or self.AdvertRegion or self.NoiseRegion or self.UnknownRegion or self.CustomRegion ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PageType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PageType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PageType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PageType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='PageType'): if self.imageFilename is not None and 'imageFilename' not in already_processed: already_processed.add('imageFilename') outfile.write(' imageFilename=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.imageFilename), input_name='imageFilename')), )) if self.imageWidth is not None and 'imageWidth' not in already_processed: already_processed.add('imageWidth') outfile.write(' imageWidth="%s"' % self.gds_format_integer(self.imageWidth, input_name='imageWidth')) if self.imageHeight is not None and 'imageHeight' not in already_processed: already_processed.add('imageHeight') outfile.write(' imageHeight="%s"' % self.gds_format_integer(self.imageHeight, input_name='imageHeight')) if self.imageXResolution is not None and 'imageXResolution' not in already_processed: already_processed.add('imageXResolution') outfile.write(' imageXResolution="%s"' % self.gds_format_float(self.imageXResolution, input_name='imageXResolution')) if self.imageYResolution is not None and 'imageYResolution' not in already_processed: already_processed.add('imageYResolution') outfile.write(' imageYResolution="%s"' % self.gds_format_float(self.imageYResolution, input_name='imageYResolution')) if self.imageResolutionUnit is not None and 'imageResolutionUnit' not in already_processed: already_processed.add('imageResolutionUnit') outfile.write(' imageResolutionUnit=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.imageResolutionUnit), input_name='imageResolutionUnit')), )) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.primaryLanguage is not None and 'primaryLanguage' not in already_processed: already_processed.add('primaryLanguage') outfile.write(' primaryLanguage=%s' % (quote_attrib(self.primaryLanguage), )) if self.secondaryLanguage is not None and 'secondaryLanguage' not in already_processed: already_processed.add('secondaryLanguage') outfile.write(' secondaryLanguage=%s' % (quote_attrib(self.secondaryLanguage), )) if self.primaryScript is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') outfile.write(' primaryScript=%s' % (quote_attrib(self.primaryScript), )) if self.secondaryScript is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') outfile.write(' secondaryScript=%s' % (quote_attrib(self.secondaryScript), )) if self.readingDirection is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') outfile.write(' readingDirection=%s' % (quote_attrib(self.readingDirection), )) if self.textLineOrder is not None and 'textLineOrder' not in already_processed: already_processed.add('textLineOrder') outfile.write(' textLineOrder=%s' % (quote_attrib(self.textLineOrder), )) if self.conf is not None and 'conf' not in already_processed: already_processed.add('conf') outfile.write(' conf=%s' % (quote_attrib(self.conf), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PageType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for AlternativeImage_ in self.AlternativeImage: AlternativeImage_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='AlternativeImage', pretty_print=pretty_print) if self.Border is not None: self.Border.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Border', pretty_print=pretty_print) if self.PrintSpace is not None: self.PrintSpace.export(outfile, level, namespaceprefix_, namespacedef_='', name_='PrintSpace', pretty_print=pretty_print) if self.ReadingOrder is not None: self.ReadingOrder.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ReadingOrder', pretty_print=pretty_print) if self.Layers is not None: self.Layers.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Layers', pretty_print=pretty_print) if self.Relations is not None: self.Relations.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Relations', pretty_print=pretty_print) if self.TextStyle is not None: self.TextStyle.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextStyle', pretty_print=pretty_print) if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) for TextRegion_ in self.TextRegion: TextRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextRegion', pretty_print=pretty_print) for ImageRegion_ in self.ImageRegion: ImageRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ImageRegion', pretty_print=pretty_print) for LineDrawingRegion_ in self.LineDrawingRegion: LineDrawingRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='LineDrawingRegion', pretty_print=pretty_print) for GraphicRegion_ in self.GraphicRegion: GraphicRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='GraphicRegion', pretty_print=pretty_print) for TableRegion_ in self.TableRegion: TableRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TableRegion', pretty_print=pretty_print) for ChartRegion_ in self.ChartRegion: ChartRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ChartRegion', pretty_print=pretty_print) for MapRegion_ in self.MapRegion: MapRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='MapRegion', pretty_print=pretty_print) for SeparatorRegion_ in self.SeparatorRegion: SeparatorRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='SeparatorRegion', pretty_print=pretty_print) for MathsRegion_ in self.MathsRegion: MathsRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='MathsRegion', pretty_print=pretty_print) for ChemRegion_ in self.ChemRegion: ChemRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ChemRegion', pretty_print=pretty_print) for MusicRegion_ in self.MusicRegion: MusicRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='MusicRegion', pretty_print=pretty_print) for AdvertRegion_ in self.AdvertRegion: AdvertRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='AdvertRegion', pretty_print=pretty_print) for NoiseRegion_ in self.NoiseRegion: NoiseRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='NoiseRegion', pretty_print=pretty_print) for UnknownRegion_ in self.UnknownRegion: UnknownRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UnknownRegion', pretty_print=pretty_print) for CustomRegion_ in self.CustomRegion: CustomRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='CustomRegion', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('imageFilename', node) if value is not None and 'imageFilename' not in already_processed: already_processed.add('imageFilename') self.imageFilename = value value = find_attr_value_('imageWidth', node) if value is not None and 'imageWidth' not in already_processed: already_processed.add('imageWidth') try: self.imageWidth = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('imageHeight', node) if value is not None and 'imageHeight' not in already_processed: already_processed.add('imageHeight') try: self.imageHeight = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('imageXResolution', node) if value is not None and 'imageXResolution' not in already_processed: already_processed.add('imageXResolution') try: self.imageXResolution = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (imageXResolution): %s' % exp) value = find_attr_value_('imageYResolution', node) if value is not None and 'imageYResolution' not in already_processed: already_processed.add('imageYResolution') try: self.imageYResolution = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (imageYResolution): %s' % exp) value = find_attr_value_('imageResolutionUnit', node) if value is not None and 'imageResolutionUnit' not in already_processed: already_processed.add('imageResolutionUnit') self.imageResolutionUnit = value value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('primaryLanguage', node) if value is not None and 'primaryLanguage' not in already_processed: already_processed.add('primaryLanguage') self.primaryLanguage = value value = find_attr_value_('secondaryLanguage', node) if value is not None and 'secondaryLanguage' not in already_processed: already_processed.add('secondaryLanguage') self.secondaryLanguage = value value = find_attr_value_('primaryScript', node) if value is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') self.primaryScript = value value = find_attr_value_('secondaryScript', node) if value is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') self.secondaryScript = value value = find_attr_value_('readingDirection', node) if value is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') self.readingDirection = value value = find_attr_value_('textLineOrder', node) if value is not None and 'textLineOrder' not in already_processed: already_processed.add('textLineOrder') self.textLineOrder = value value = find_attr_value_('conf', node) if value is not None and 'conf' not in already_processed: already_processed.add('conf') self.conf = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'AlternativeImage': obj_ = AlternativeImageType.factory(parent_object_=self) obj_.build(child_) self.AlternativeImage.append(obj_) obj_.original_tagname_ = 'AlternativeImage' elif nodeName_ == 'Border': obj_ = BorderType.factory(parent_object_=self) obj_.build(child_) self.Border = obj_ obj_.original_tagname_ = 'Border' elif nodeName_ == 'PrintSpace': obj_ = PrintSpaceType.factory(parent_object_=self) obj_.build(child_) self.PrintSpace = obj_ obj_.original_tagname_ = 'PrintSpace' elif nodeName_ == 'ReadingOrder': obj_ = ReadingOrderType.factory(parent_object_=self) obj_.build(child_) self.ReadingOrder = obj_ obj_.original_tagname_ = 'ReadingOrder' elif nodeName_ == 'Layers': obj_ = LayersType.factory(parent_object_=self) obj_.build(child_) self.Layers = obj_ obj_.original_tagname_ = 'Layers' elif nodeName_ == 'Relations': obj_ = RelationsType.factory(parent_object_=self) obj_.build(child_) self.Relations = obj_ obj_.original_tagname_ = 'Relations' elif nodeName_ == 'TextStyle': obj_ = TextStyleType.factory(parent_object_=self) obj_.build(child_) self.TextStyle = obj_ obj_.original_tagname_ = 'TextStyle' elif nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' elif nodeName_ == 'TextRegion': obj_ = TextRegionType.factory(parent_object_=self) obj_.build(child_) self.TextRegion.append(obj_) obj_.original_tagname_ = 'TextRegion' elif nodeName_ == 'ImageRegion': obj_ = ImageRegionType.factory(parent_object_=self) obj_.build(child_) self.ImageRegion.append(obj_) obj_.original_tagname_ = 'ImageRegion' elif nodeName_ == 'LineDrawingRegion': obj_ = LineDrawingRegionType.factory(parent_object_=self) obj_.build(child_) self.LineDrawingRegion.append(obj_) obj_.original_tagname_ = 'LineDrawingRegion' elif nodeName_ == 'GraphicRegion': obj_ = GraphicRegionType.factory(parent_object_=self) obj_.build(child_) self.GraphicRegion.append(obj_) obj_.original_tagname_ = 'GraphicRegion' elif nodeName_ == 'TableRegion': obj_ = TableRegionType.factory(parent_object_=self) obj_.build(child_) self.TableRegion.append(obj_) obj_.original_tagname_ = 'TableRegion' elif nodeName_ == 'ChartRegion': obj_ = ChartRegionType.factory(parent_object_=self) obj_.build(child_) self.ChartRegion.append(obj_) obj_.original_tagname_ = 'ChartRegion' elif nodeName_ == 'MapRegion': obj_ = MapRegionType.factory(parent_object_=self) obj_.build(child_) self.MapRegion.append(obj_) obj_.original_tagname_ = 'MapRegion' elif nodeName_ == 'SeparatorRegion': obj_ = SeparatorRegionType.factory(parent_object_=self) obj_.build(child_) self.SeparatorRegion.append(obj_) obj_.original_tagname_ = 'SeparatorRegion' elif nodeName_ == 'MathsRegion': obj_ = MathsRegionType.factory(parent_object_=self) obj_.build(child_) self.MathsRegion.append(obj_) obj_.original_tagname_ = 'MathsRegion' elif nodeName_ == 'ChemRegion': obj_ = ChemRegionType.factory(parent_object_=self) obj_.build(child_) self.ChemRegion.append(obj_) obj_.original_tagname_ = 'ChemRegion' elif nodeName_ == 'MusicRegion': obj_ = MusicRegionType.factory(parent_object_=self) obj_.build(child_) self.MusicRegion.append(obj_) obj_.original_tagname_ = 'MusicRegion' elif nodeName_ == 'AdvertRegion': obj_ = AdvertRegionType.factory(parent_object_=self) obj_.build(child_) self.AdvertRegion.append(obj_) obj_.original_tagname_ = 'AdvertRegion' elif nodeName_ == 'NoiseRegion': obj_ = NoiseRegionType.factory(parent_object_=self) obj_.build(child_) self.NoiseRegion.append(obj_) obj_.original_tagname_ = 'NoiseRegion' elif nodeName_ == 'UnknownRegion': obj_ = UnknownRegionType.factory(parent_object_=self) obj_.build(child_) self.UnknownRegion.append(obj_) obj_.original_tagname_ = 'UnknownRegion' elif nodeName_ == 'CustomRegion': obj_ = CustomRegionType.factory(parent_object_=self) obj_.build(child_) self.CustomRegion.append(obj_) obj_.original_tagname_ = 'CustomRegion' # end class PageType class CoordsType(GeneratedsSuper): """Polygon outline of the element as a path of points. No points may lie outside the outline of its parent, which in the case of Border is the bounding rectangle of the root image. Paths are closed by convention, i.e. the last point logically connects with the first (and at least 3 points are required to span an area). Paths must be planar (i.e. must not self-intersect). Confidence value (between 0 and 1)""" subclass = None superclass = None def __init__(self, points=None, conf=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.points = _cast(None, points) self.conf = _cast(float, conf) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, CoordsType) if subclass is not None: return subclass(*args_, **kwargs_) if CoordsType.subclass: return CoordsType.subclass(*args_, **kwargs_) else: return CoordsType(*args_, **kwargs_) factory = staticmethod(factory) def get_points(self): return self.points def set_points(self, points): self.points = points def get_conf(self): return self.conf def set_conf(self, conf): self.conf = conf def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='CoordsType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('CoordsType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CoordsType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CoordsType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='CoordsType'): if self.points is not None and 'points' not in already_processed: already_processed.add('points') outfile.write(' points=%s' % (quote_attrib(self.points), )) if self.conf is not None and 'conf' not in already_processed: already_processed.add('conf') outfile.write(' conf=%s' % (quote_attrib(self.conf), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='CoordsType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('points', node) if value is not None and 'points' not in already_processed: already_processed.add('points') self.points = value value = find_attr_value_('conf', node) if value is not None and 'conf' not in already_processed: already_processed.add('conf') self.conf = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class CoordsType class TextLineType(GeneratedsSuper): """Overrides primaryLanguage attribute of parent text region The primary script used in the text line The secondary script used in the text line The direction in which text within the line should be read (order of words and characters). Overrides the production attribute of the parent text region For generic use Position (order number) of this text line within the parent text region.""" subclass = None superclass = None def __init__(self, id=None, primaryLanguage=None, primaryScript=None, secondaryScript=None, readingDirection=None, production=None, custom=None, comments=None, index=None, AlternativeImage=None, Coords=None, Baseline=None, Word=None, TextEquiv=None, TextStyle=None, UserDefined=None, Labels=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.primaryLanguage = _cast(None, primaryLanguage) self.primaryScript = _cast(None, primaryScript) self.secondaryScript = _cast(None, secondaryScript) self.readingDirection = _cast(None, readingDirection) self.production = _cast(None, production) self.custom = _cast(None, custom) self.comments = _cast(None, comments) self.index = _cast(int, index) if AlternativeImage is None: self.AlternativeImage = [] else: self.AlternativeImage = AlternativeImage self.Coords = Coords self.Baseline = Baseline if Word is None: self.Word = [] else: self.Word = Word if TextEquiv is None: self.TextEquiv = [] else: self.TextEquiv = TextEquiv self.TextStyle = TextStyle self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, TextLineType) if subclass is not None: return subclass(*args_, **kwargs_) if TextLineType.subclass: return TextLineType.subclass(*args_, **kwargs_) else: return TextLineType(*args_, **kwargs_) factory = staticmethod(factory) def get_AlternativeImage(self): return self.AlternativeImage def set_AlternativeImage(self, AlternativeImage): self.AlternativeImage = AlternativeImage def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def insert_AlternativeImage_at(self, index, value): self.AlternativeImage.insert(index, value) def replace_AlternativeImage_at(self, index, value): self.AlternativeImage[index] = value def get_Coords(self): return self.Coords def set_Coords(self, Coords): self.Coords = Coords def get_Baseline(self): return self.Baseline def set_Baseline(self, Baseline): self.Baseline = Baseline def get_Word(self): return self.Word def set_Word(self, Word): self.Word = Word def add_Word(self, value): self.Word.append(value) def add_Word(self, value): self.Word.append(value) def insert_Word_at(self, index, value): self.Word.insert(index, value) def replace_Word_at(self, index, value): self.Word[index] = value def get_TextEquiv(self): return self.TextEquiv def set_TextEquiv(self, TextEquiv): self.TextEquiv = TextEquiv def add_TextEquiv(self, value): self.TextEquiv.append(value) def add_TextEquiv(self, value): self.TextEquiv.append(value) def insert_TextEquiv_at(self, index, value): self.TextEquiv.insert(index, value) def replace_TextEquiv_at(self, index, value): self.TextEquiv[index] = value def get_TextStyle(self): return self.TextStyle def set_TextStyle(self, TextStyle): self.TextStyle = TextStyle def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_primaryLanguage(self): return self.primaryLanguage def set_primaryLanguage(self, primaryLanguage): self.primaryLanguage = primaryLanguage def get_primaryScript(self): return self.primaryScript def set_primaryScript(self, primaryScript): self.primaryScript = primaryScript def get_secondaryScript(self): return self.secondaryScript def set_secondaryScript(self, secondaryScript): self.secondaryScript = secondaryScript def get_readingDirection(self): return self.readingDirection def set_readingDirection(self, readingDirection): self.readingDirection = readingDirection def get_production(self): return self.production def set_production(self, production): self.production = production def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def get_index(self): return self.index def set_index(self, index): self.index = index def hasContent_(self): if ( self.AlternativeImage or self.Coords is not None or self.Baseline is not None or self.Word or self.TextEquiv or self.TextStyle is not None or self.UserDefined is not None or self.Labels ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextLineType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('TextLineType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TextLineType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TextLineType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='TextLineType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.primaryLanguage is not None and 'primaryLanguage' not in already_processed: already_processed.add('primaryLanguage') outfile.write(' primaryLanguage=%s' % (quote_attrib(self.primaryLanguage), )) if self.primaryScript is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') outfile.write(' primaryScript=%s' % (quote_attrib(self.primaryScript), )) if self.secondaryScript is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') outfile.write(' secondaryScript=%s' % (quote_attrib(self.secondaryScript), )) if self.readingDirection is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') outfile.write(' readingDirection=%s' % (quote_attrib(self.readingDirection), )) if self.production is not None and 'production' not in already_processed: already_processed.add('production') outfile.write(' production=%s' % (quote_attrib(self.production), )) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) if self.index is not None and 'index' not in already_processed: already_processed.add('index') outfile.write(' index="%s"' % self.gds_format_integer(self.index, input_name='index')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextLineType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for AlternativeImage_ in self.AlternativeImage: AlternativeImage_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='AlternativeImage', pretty_print=pretty_print) if self.Coords is not None: self.Coords.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Coords', pretty_print=pretty_print) if self.Baseline is not None: self.Baseline.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Baseline', pretty_print=pretty_print) for Word_ in self.Word: Word_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Word', pretty_print=pretty_print) for TextEquiv_ in self.TextEquiv: TextEquiv_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextEquiv', pretty_print=pretty_print) if self.TextStyle is not None: self.TextStyle.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextStyle', pretty_print=pretty_print) if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('primaryLanguage', node) if value is not None and 'primaryLanguage' not in already_processed: already_processed.add('primaryLanguage') self.primaryLanguage = value value = find_attr_value_('primaryScript', node) if value is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') self.primaryScript = value value = find_attr_value_('secondaryScript', node) if value is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') self.secondaryScript = value value = find_attr_value_('readingDirection', node) if value is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') self.readingDirection = value value = find_attr_value_('production', node) if value is not None and 'production' not in already_processed: already_processed.add('production') self.production = value value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value value = find_attr_value_('index', node) if value is not None and 'index' not in already_processed: already_processed.add('index') try: self.index = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'AlternativeImage': obj_ = AlternativeImageType.factory(parent_object_=self) obj_.build(child_) self.AlternativeImage.append(obj_) obj_.original_tagname_ = 'AlternativeImage' elif nodeName_ == 'Coords': obj_ = CoordsType.factory(parent_object_=self) obj_.build(child_) self.Coords = obj_ obj_.original_tagname_ = 'Coords' elif nodeName_ == 'Baseline': obj_ = BaselineType.factory(parent_object_=self) obj_.build(child_) self.Baseline = obj_ obj_.original_tagname_ = 'Baseline' elif nodeName_ == 'Word': obj_ = WordType.factory(parent_object_=self) obj_.build(child_) self.Word.append(obj_) obj_.original_tagname_ = 'Word' elif nodeName_ == 'TextEquiv': obj_ = TextEquivType.factory(parent_object_=self) obj_.build(child_) self.TextEquiv.append(obj_) obj_.original_tagname_ = 'TextEquiv' elif nodeName_ == 'TextStyle': obj_ = TextStyleType.factory(parent_object_=self) obj_.build(child_) self.TextStyle = obj_ obj_.original_tagname_ = 'TextStyle' elif nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' # end class TextLineType class WordType(GeneratedsSuper): """Overrides primaryLanguage attribute of parent line and/or text region The primary script used in the word The secondary script used in the word The direction in which text within the word should be read (order of characters). Overrides the production attribute of the parent text line and/or text region. For generic use""" subclass = None superclass = None def __init__(self, id=None, language=None, primaryScript=None, secondaryScript=None, readingDirection=None, production=None, custom=None, comments=None, AlternativeImage=None, Coords=None, Glyph=None, TextEquiv=None, TextStyle=None, UserDefined=None, Labels=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.language = _cast(None, language) self.primaryScript = _cast(None, primaryScript) self.secondaryScript = _cast(None, secondaryScript) self.readingDirection = _cast(None, readingDirection) self.production = _cast(None, production) self.custom = _cast(None, custom) self.comments = _cast(None, comments) if AlternativeImage is None: self.AlternativeImage = [] else: self.AlternativeImage = AlternativeImage self.Coords = Coords if Glyph is None: self.Glyph = [] else: self.Glyph = Glyph if TextEquiv is None: self.TextEquiv = [] else: self.TextEquiv = TextEquiv self.TextStyle = TextStyle self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, WordType) if subclass is not None: return subclass(*args_, **kwargs_) if WordType.subclass: return WordType.subclass(*args_, **kwargs_) else: return WordType(*args_, **kwargs_) factory = staticmethod(factory) def get_AlternativeImage(self): return self.AlternativeImage def set_AlternativeImage(self, AlternativeImage): self.AlternativeImage = AlternativeImage def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def insert_AlternativeImage_at(self, index, value): self.AlternativeImage.insert(index, value) def replace_AlternativeImage_at(self, index, value): self.AlternativeImage[index] = value def get_Coords(self): return self.Coords def set_Coords(self, Coords): self.Coords = Coords def get_Glyph(self): return self.Glyph def set_Glyph(self, Glyph): self.Glyph = Glyph def add_Glyph(self, value): self.Glyph.append(value) def add_Glyph(self, value): self.Glyph.append(value) def insert_Glyph_at(self, index, value): self.Glyph.insert(index, value) def replace_Glyph_at(self, index, value): self.Glyph[index] = value def get_TextEquiv(self): return self.TextEquiv def set_TextEquiv(self, TextEquiv): self.TextEquiv = TextEquiv def add_TextEquiv(self, value): self.TextEquiv.append(value) def add_TextEquiv(self, value): self.TextEquiv.append(value) def insert_TextEquiv_at(self, index, value): self.TextEquiv.insert(index, value) def replace_TextEquiv_at(self, index, value): self.TextEquiv[index] = value def get_TextStyle(self): return self.TextStyle def set_TextStyle(self, TextStyle): self.TextStyle = TextStyle def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_language(self): return self.language def set_language(self, language): self.language = language def get_primaryScript(self): return self.primaryScript def set_primaryScript(self, primaryScript): self.primaryScript = primaryScript def get_secondaryScript(self): return self.secondaryScript def set_secondaryScript(self, secondaryScript): self.secondaryScript = secondaryScript def get_readingDirection(self): return self.readingDirection def set_readingDirection(self, readingDirection): self.readingDirection = readingDirection def get_production(self): return self.production def set_production(self, production): self.production = production def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.AlternativeImage or self.Coords is not None or self.Glyph or self.TextEquiv or self.TextStyle is not None or self.UserDefined is not None or self.Labels ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='WordType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('WordType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='WordType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='WordType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='WordType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.language is not None and 'language' not in already_processed: already_processed.add('language') outfile.write(' language=%s' % (quote_attrib(self.language), )) if self.primaryScript is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') outfile.write(' primaryScript=%s' % (quote_attrib(self.primaryScript), )) if self.secondaryScript is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') outfile.write(' secondaryScript=%s' % (quote_attrib(self.secondaryScript), )) if self.readingDirection is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') outfile.write(' readingDirection=%s' % (quote_attrib(self.readingDirection), )) if self.production is not None and 'production' not in already_processed: already_processed.add('production') outfile.write(' production=%s' % (quote_attrib(self.production), )) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='WordType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for AlternativeImage_ in self.AlternativeImage: AlternativeImage_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='AlternativeImage', pretty_print=pretty_print) if self.Coords is not None: self.Coords.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Coords', pretty_print=pretty_print) for Glyph_ in self.Glyph: Glyph_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Glyph', pretty_print=pretty_print) for TextEquiv_ in self.TextEquiv: TextEquiv_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextEquiv', pretty_print=pretty_print) if self.TextStyle is not None: self.TextStyle.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextStyle', pretty_print=pretty_print) if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('language', node) if value is not None and 'language' not in already_processed: already_processed.add('language') self.language = value value = find_attr_value_('primaryScript', node) if value is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') self.primaryScript = value value = find_attr_value_('secondaryScript', node) if value is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') self.secondaryScript = value value = find_attr_value_('readingDirection', node) if value is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') self.readingDirection = value value = find_attr_value_('production', node) if value is not None and 'production' not in already_processed: already_processed.add('production') self.production = value value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'AlternativeImage': obj_ = AlternativeImageType.factory(parent_object_=self) obj_.build(child_) self.AlternativeImage.append(obj_) obj_.original_tagname_ = 'AlternativeImage' elif nodeName_ == 'Coords': obj_ = CoordsType.factory(parent_object_=self) obj_.build(child_) self.Coords = obj_ obj_.original_tagname_ = 'Coords' elif nodeName_ == 'Glyph': obj_ = GlyphType.factory(parent_object_=self) obj_.build(child_) self.Glyph.append(obj_) obj_.original_tagname_ = 'Glyph' elif nodeName_ == 'TextEquiv': obj_ = TextEquivType.factory(parent_object_=self) obj_.build(child_) self.TextEquiv.append(obj_) obj_.original_tagname_ = 'TextEquiv' elif nodeName_ == 'TextStyle': obj_ = TextStyleType.factory(parent_object_=self) obj_.build(child_) self.TextStyle = obj_ obj_.original_tagname_ = 'TextStyle' elif nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' # end class WordType class GlyphType(GeneratedsSuper): """The script used for the glyph Overrides the production attribute of the parent word / text line / text region. For generic use""" subclass = None superclass = None def __init__(self, id=None, ligature=None, symbol=None, script=None, production=None, custom=None, comments=None, AlternativeImage=None, Coords=None, Graphemes=None, TextEquiv=None, TextStyle=None, UserDefined=None, Labels=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.ligature = _cast(bool, ligature) self.symbol = _cast(bool, symbol) self.script = _cast(None, script) self.production = _cast(None, production) self.custom = _cast(None, custom) self.comments = _cast(None, comments) if AlternativeImage is None: self.AlternativeImage = [] else: self.AlternativeImage = AlternativeImage self.Coords = Coords self.Graphemes = Graphemes if TextEquiv is None: self.TextEquiv = [] else: self.TextEquiv = TextEquiv self.TextStyle = TextStyle self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GlyphType) if subclass is not None: return subclass(*args_, **kwargs_) if GlyphType.subclass: return GlyphType.subclass(*args_, **kwargs_) else: return GlyphType(*args_, **kwargs_) factory = staticmethod(factory) def get_AlternativeImage(self): return self.AlternativeImage def set_AlternativeImage(self, AlternativeImage): self.AlternativeImage = AlternativeImage def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def insert_AlternativeImage_at(self, index, value): self.AlternativeImage.insert(index, value) def replace_AlternativeImage_at(self, index, value): self.AlternativeImage[index] = value def get_Coords(self): return self.Coords def set_Coords(self, Coords): self.Coords = Coords def get_Graphemes(self): return self.Graphemes def set_Graphemes(self, Graphemes): self.Graphemes = Graphemes def get_TextEquiv(self): return self.TextEquiv def set_TextEquiv(self, TextEquiv): self.TextEquiv = TextEquiv def add_TextEquiv(self, value): self.TextEquiv.append(value) def add_TextEquiv(self, value): self.TextEquiv.append(value) def insert_TextEquiv_at(self, index, value): self.TextEquiv.insert(index, value) def replace_TextEquiv_at(self, index, value): self.TextEquiv[index] = value def get_TextStyle(self): return self.TextStyle def set_TextStyle(self, TextStyle): self.TextStyle = TextStyle def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_ligature(self): return self.ligature def set_ligature(self, ligature): self.ligature = ligature def get_symbol(self): return self.symbol def set_symbol(self, symbol): self.symbol = symbol def get_script(self): return self.script def set_script(self, script): self.script = script def get_production(self): return self.production def set_production(self, production): self.production = production def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.AlternativeImage or self.Coords is not None or self.Graphemes is not None or self.TextEquiv or self.TextStyle is not None or self.UserDefined is not None or self.Labels ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GlyphType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GlyphType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GlyphType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GlyphType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GlyphType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.ligature is not None and 'ligature' not in already_processed: already_processed.add('ligature') outfile.write(' ligature="%s"' % self.gds_format_boolean(self.ligature, input_name='ligature')) if self.symbol is not None and 'symbol' not in already_processed: already_processed.add('symbol') outfile.write(' symbol="%s"' % self.gds_format_boolean(self.symbol, input_name='symbol')) if self.script is not None and 'script' not in already_processed: already_processed.add('script') outfile.write(' script=%s' % (quote_attrib(self.script), )) if self.production is not None and 'production' not in already_processed: already_processed.add('production') outfile.write(' production=%s' % (quote_attrib(self.production), )) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GlyphType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for AlternativeImage_ in self.AlternativeImage: AlternativeImage_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='AlternativeImage', pretty_print=pretty_print) if self.Coords is not None: self.Coords.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Coords', pretty_print=pretty_print) if self.Graphemes is not None: self.Graphemes.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Graphemes', pretty_print=pretty_print) for TextEquiv_ in self.TextEquiv: TextEquiv_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextEquiv', pretty_print=pretty_print) if self.TextStyle is not None: self.TextStyle.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextStyle', pretty_print=pretty_print) if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('ligature', node) if value is not None and 'ligature' not in already_processed: already_processed.add('ligature') if value in ('true', '1'): self.ligature = True elif value in ('false', '0'): self.ligature = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('symbol', node) if value is not None and 'symbol' not in already_processed: already_processed.add('symbol') if value in ('true', '1'): self.symbol = True elif value in ('false', '0'): self.symbol = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('script', node) if value is not None and 'script' not in already_processed: already_processed.add('script') self.script = value value = find_attr_value_('production', node) if value is not None and 'production' not in already_processed: already_processed.add('production') self.production = value value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'AlternativeImage': obj_ = AlternativeImageType.factory(parent_object_=self) obj_.build(child_) self.AlternativeImage.append(obj_) obj_.original_tagname_ = 'AlternativeImage' elif nodeName_ == 'Coords': obj_ = CoordsType.factory(parent_object_=self) obj_.build(child_) self.Coords = obj_ obj_.original_tagname_ = 'Coords' elif nodeName_ == 'Graphemes': obj_ = GraphemesType.factory(parent_object_=self) obj_.build(child_) self.Graphemes = obj_ obj_.original_tagname_ = 'Graphemes' elif nodeName_ == 'TextEquiv': obj_ = TextEquivType.factory(parent_object_=self) obj_.build(child_) self.TextEquiv.append(obj_) obj_.original_tagname_ = 'TextEquiv' elif nodeName_ == 'TextStyle': obj_ = TextStyleType.factory(parent_object_=self) obj_.build(child_) self.TextStyle = obj_ obj_.original_tagname_ = 'TextStyle' elif nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' # end class GlyphType class TextEquivType(GeneratedsSuper): """Used for sort order in case multiple TextEquivs are defined. The text content with the lowest index should be interpreted as the main text content. OCR confidence value (between 0 and 1) Type of text content (is it free text or a number, for instance). This is only a descriptive attribute, the text type is not checked during XML validation. Refinement for dataType attribute. Can be a regular expression, for instance.""" subclass = None superclass = None def __init__(self, index=None, conf=None, dataType=None, dataTypeDetails=None, comments=None, PlainText=None, Unicode=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.index = _cast(int, index) self.conf = _cast(float, conf) self.dataType = _cast(None, dataType) self.dataTypeDetails = _cast(None, dataTypeDetails) self.comments = _cast(None, comments) self.PlainText = PlainText self.Unicode = Unicode def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, TextEquivType) if subclass is not None: return subclass(*args_, **kwargs_) if TextEquivType.subclass: return TextEquivType.subclass(*args_, **kwargs_) else: return TextEquivType(*args_, **kwargs_) factory = staticmethod(factory) def get_PlainText(self): return self.PlainText def set_PlainText(self, PlainText): self.PlainText = PlainText def get_Unicode(self): return self.Unicode def set_Unicode(self, Unicode): self.Unicode = Unicode def get_index(self): return self.index def set_index(self, index): self.index = index def get_conf(self): return self.conf def set_conf(self, conf): self.conf = conf def get_dataType(self): return self.dataType def set_dataType(self, dataType): self.dataType = dataType def get_dataTypeDetails(self): return self.dataTypeDetails def set_dataTypeDetails(self, dataTypeDetails): self.dataTypeDetails = dataTypeDetails def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.PlainText is not None or self.Unicode is not None ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextEquivType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('TextEquivType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TextEquivType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TextEquivType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='TextEquivType'): if self.index is not None and 'index' not in already_processed: already_processed.add('index') outfile.write(' index="%s"' % self.gds_format_integer(self.index, input_name='index')) if self.conf is not None and 'conf' not in already_processed: already_processed.add('conf') outfile.write(' conf=%s' % (quote_attrib(self.conf), )) if self.dataType is not None and 'dataType' not in already_processed: already_processed.add('dataType') outfile.write(' dataType=%s' % (quote_attrib(self.dataType), )) if self.dataTypeDetails is not None and 'dataTypeDetails' not in already_processed: already_processed.add('dataTypeDetails') outfile.write(' dataTypeDetails=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.dataTypeDetails), input_name='dataTypeDetails')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextEquivType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.PlainText is not None: showIndent(outfile, level, pretty_print) outfile.write('<%sPlainText>%s</%sPlainText>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.PlainText), input_name='PlainText')), namespaceprefix_ , eol_)) if self.Unicode is not None: showIndent(outfile, level, pretty_print) outfile.write('<%sUnicode>%s</%sUnicode>%s' % (namespaceprefix_ , self.gds_encode(self.gds_format_string(quote_xml(self.Unicode), input_name='Unicode')), namespaceprefix_ , eol_)) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('index', node) if value is not None and 'index' not in already_processed: already_processed.add('index') try: self.index = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('conf', node) if value is not None and 'conf' not in already_processed: already_processed.add('conf') self.conf = value value = find_attr_value_('dataType', node) if value is not None and 'dataType' not in already_processed: already_processed.add('dataType') self.dataType = value value = find_attr_value_('dataTypeDetails', node) if value is not None and 'dataTypeDetails' not in already_processed: already_processed.add('dataTypeDetails') self.dataTypeDetails = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'PlainText': PlainText_ = child_.text PlainText_ = self.gds_validate_string(PlainText_, node, 'PlainText') self.PlainText = PlainText_ elif nodeName_ == 'Unicode': Unicode_ = child_.text Unicode_ = self.gds_validate_string(Unicode_, node, 'Unicode') self.Unicode = Unicode_ # end class TextEquivType class GridType(GeneratedsSuper): """Matrix of grid points defining the table grid on the page.""" subclass = None superclass = None def __init__(self, GridPoints=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') if GridPoints is None: self.GridPoints = [] else: self.GridPoints = GridPoints def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GridType) if subclass is not None: return subclass(*args_, **kwargs_) if GridType.subclass: return GridType.subclass(*args_, **kwargs_) else: return GridType(*args_, **kwargs_) factory = staticmethod(factory) def get_GridPoints(self): return self.GridPoints def set_GridPoints(self, GridPoints): self.GridPoints = GridPoints def add_GridPoints(self, value): self.GridPoints.append(value) def add_GridPoints(self, value): self.GridPoints.append(value) def insert_GridPoints_at(self, index, value): self.GridPoints.insert(index, value) def replace_GridPoints_at(self, index, value): self.GridPoints[index] = value def hasContent_(self): if ( self.GridPoints ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GridType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GridType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GridType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GridType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for GridPoints_ in self.GridPoints: GridPoints_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='GridPoints', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'GridPoints': obj_ = GridPointsType.factory(parent_object_=self) obj_.build(child_) self.GridPoints.append(obj_) obj_.original_tagname_ = 'GridPoints' # end class GridType class GridPointsType(GeneratedsSuper): """Points with x,y coordinates. The grid row index""" subclass = None superclass = None def __init__(self, index=None, points=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.index = _cast(int, index) self.points = _cast(None, points) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GridPointsType) if subclass is not None: return subclass(*args_, **kwargs_) if GridPointsType.subclass: return GridPointsType.subclass(*args_, **kwargs_) else: return GridPointsType(*args_, **kwargs_) factory = staticmethod(factory) def get_index(self): return self.index def set_index(self, index): self.index = index def get_points(self): return self.points def set_points(self, points): self.points = points def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridPointsType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GridPointsType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GridPointsType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GridPointsType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GridPointsType'): if self.index is not None and 'index' not in already_processed: already_processed.add('index') outfile.write(' index="%s"' % self.gds_format_integer(self.index, input_name='index')) if self.points is not None and 'points' not in already_processed: already_processed.add('points') outfile.write(' points=%s' % (quote_attrib(self.points), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GridPointsType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('index', node) if value is not None and 'index' not in already_processed: already_processed.add('index') try: self.index = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('points', node) if value is not None and 'points' not in already_processed: already_processed.add('points') self.points = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class GridPointsType class PrintSpaceType(GeneratedsSuper): """Determines the effective area on the paper of a printed page. Its size is equal for all pages of a book (exceptions: titlepage, multipage pictures). It contains all living elements (except marginals) like body type, footnotes, headings, running titles. It does not contain pagenumber (if not part of running title), marginals, signature mark, preview words.""" subclass = None superclass = None def __init__(self, Coords=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.Coords = Coords def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, PrintSpaceType) if subclass is not None: return subclass(*args_, **kwargs_) if PrintSpaceType.subclass: return PrintSpaceType.subclass(*args_, **kwargs_) else: return PrintSpaceType(*args_, **kwargs_) factory = staticmethod(factory) def get_Coords(self): return self.Coords def set_Coords(self, Coords): self.Coords = Coords def hasContent_(self): if ( self.Coords is not None ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PrintSpaceType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PrintSpaceType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PrintSpaceType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='PrintSpaceType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='PrintSpaceType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='PrintSpaceType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.Coords is not None: self.Coords.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Coords', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Coords': obj_ = CoordsType.factory(parent_object_=self) obj_.build(child_) self.Coords = obj_ obj_.original_tagname_ = 'Coords' # end class PrintSpaceType class ReadingOrderType(GeneratedsSuper): """Definition of the reading order within the page. To express a reading order between elements they have to be included in an OrderedGroup. Groups may contain further groups. Confidence value (between 0 and 1)""" subclass = None superclass = None def __init__(self, conf=None, OrderedGroup=None, UnorderedGroup=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.conf = _cast(float, conf) self.OrderedGroup = OrderedGroup self.UnorderedGroup = UnorderedGroup def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, ReadingOrderType) if subclass is not None: return subclass(*args_, **kwargs_) if ReadingOrderType.subclass: return ReadingOrderType.subclass(*args_, **kwargs_) else: return ReadingOrderType(*args_, **kwargs_) factory = staticmethod(factory) def get_OrderedGroup(self): return self.OrderedGroup def set_OrderedGroup(self, OrderedGroup): self.OrderedGroup = OrderedGroup def get_UnorderedGroup(self): return self.UnorderedGroup def set_UnorderedGroup(self, UnorderedGroup): self.UnorderedGroup = UnorderedGroup def get_conf(self): return self.conf def set_conf(self, conf): self.conf = conf def hasContent_(self): if ( self.OrderedGroup is not None or self.UnorderedGroup is not None ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='ReadingOrderType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('ReadingOrderType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ReadingOrderType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ReadingOrderType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='ReadingOrderType'): if self.conf is not None and 'conf' not in already_processed: already_processed.add('conf') outfile.write(' conf=%s' % (quote_attrib(self.conf), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='ReadingOrderType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.OrderedGroup is not None: self.OrderedGroup.export(outfile, level, namespaceprefix_, namespacedef_='', name_='OrderedGroup', pretty_print=pretty_print) if self.UnorderedGroup is not None: self.UnorderedGroup.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UnorderedGroup', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('conf', node) if value is not None and 'conf' not in already_processed: already_processed.add('conf') self.conf = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'OrderedGroup': obj_ = OrderedGroupType.factory(parent_object_=self) obj_.build(child_) self.OrderedGroup = obj_ obj_.original_tagname_ = 'OrderedGroup' elif nodeName_ == 'UnorderedGroup': obj_ = UnorderedGroupType.factory(parent_object_=self) obj_.build(child_) self.UnorderedGroup = obj_ obj_.original_tagname_ = 'UnorderedGroup' # end class ReadingOrderType class RegionRefIndexedType(GeneratedsSuper): """Numbered regionPosition (order number) of this item within the current hierarchy level.""" subclass = None superclass = None def __init__(self, index=None, regionRef=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.index = _cast(int, index) self.regionRef = _cast(None, regionRef) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, RegionRefIndexedType) if subclass is not None: return subclass(*args_, **kwargs_) if RegionRefIndexedType.subclass: return RegionRefIndexedType.subclass(*args_, **kwargs_) else: return RegionRefIndexedType(*args_, **kwargs_) factory = staticmethod(factory) def get_index(self): return self.index def set_index(self, index): self.index = index def get_regionRef(self): return self.regionRef def set_regionRef(self, regionRef): self.regionRef = regionRef def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefIndexedType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('RegionRefIndexedType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RegionRefIndexedType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RegionRefIndexedType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='RegionRefIndexedType'): if self.index is not None and 'index' not in already_processed: already_processed.add('index') outfile.write(' index="%s"' % self.gds_format_integer(self.index, input_name='index')) if self.regionRef is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefIndexedType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('index', node) if value is not None and 'index' not in already_processed: already_processed.add('index') try: self.index = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('regionRef', node) if value is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') self.regionRef = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class RegionRefIndexedType class OrderedGroupIndexedType(GeneratedsSuper): """Indexed group containing ordered elements Optional link to a parent region of nested regions. The parent region doubles as reading order group. Only the nested regions should be allowed as group members. Position (order number) of this item within the current hierarchy level. Is this group a continuation of another group (from previous column or page, for example)? For generic use""" subclass = None superclass = None def __init__(self, id=None, regionRef=None, index=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.regionRef = _cast(None, regionRef) self.index = _cast(int, index) self.caption = _cast(None, caption) self.type_ = _cast(None, type_) self.continuation = _cast(bool, continuation) self.custom = _cast(None, custom) self.comments = _cast(None, comments) self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels if RegionRefIndexed is None: self.RegionRefIndexed = [] else: self.RegionRefIndexed = RegionRefIndexed if OrderedGroupIndexed is None: self.OrderedGroupIndexed = [] else: self.OrderedGroupIndexed = OrderedGroupIndexed if UnorderedGroupIndexed is None: self.UnorderedGroupIndexed = [] else: self.UnorderedGroupIndexed = UnorderedGroupIndexed def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, OrderedGroupIndexedType) if subclass is not None: return subclass(*args_, **kwargs_) if OrderedGroupIndexedType.subclass: return OrderedGroupIndexedType.subclass(*args_, **kwargs_) else: return OrderedGroupIndexedType(*args_, **kwargs_) factory = staticmethod(factory) def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_RegionRefIndexed(self): return self.RegionRefIndexed def set_RegionRefIndexed(self, RegionRefIndexed): self.RegionRefIndexed = RegionRefIndexed def add_RegionRefIndexed(self, value): self.RegionRefIndexed.append(value) def add_RegionRefIndexed(self, value): self.RegionRefIndexed.append(value) def insert_RegionRefIndexed_at(self, index, value): self.RegionRefIndexed.insert(index, value) def replace_RegionRefIndexed_at(self, index, value): self.RegionRefIndexed[index] = value def get_OrderedGroupIndexed(self): return self.OrderedGroupIndexed def set_OrderedGroupIndexed(self, OrderedGroupIndexed): self.OrderedGroupIndexed = OrderedGroupIndexed def add_OrderedGroupIndexed(self, value): self.OrderedGroupIndexed.append(value) def add_OrderedGroupIndexed(self, value): self.OrderedGroupIndexed.append(value) def insert_OrderedGroupIndexed_at(self, index, value): self.OrderedGroupIndexed.insert(index, value) def replace_OrderedGroupIndexed_at(self, index, value): self.OrderedGroupIndexed[index] = value def get_UnorderedGroupIndexed(self): return self.UnorderedGroupIndexed def set_UnorderedGroupIndexed(self, UnorderedGroupIndexed): self.UnorderedGroupIndexed = UnorderedGroupIndexed def add_UnorderedGroupIndexed(self, value): self.UnorderedGroupIndexed.append(value) def add_UnorderedGroupIndexed(self, value): self.UnorderedGroupIndexed.append(value) def insert_UnorderedGroupIndexed_at(self, index, value): self.UnorderedGroupIndexed.insert(index, value) def replace_UnorderedGroupIndexed_at(self, index, value): self.UnorderedGroupIndexed[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_regionRef(self): return self.regionRef def set_regionRef(self, regionRef): self.regionRef = regionRef def get_index(self): return self.index def set_index(self, index): self.index = index def get_caption(self): return self.caption def set_caption(self, caption): self.caption = caption def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_continuation(self): return self.continuation def set_continuation(self, continuation): self.continuation = continuation def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.UserDefined is not None or self.Labels or self.RegionRefIndexed or self.OrderedGroupIndexed or self.UnorderedGroupIndexed ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupIndexedType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('OrderedGroupIndexedType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OrderedGroupIndexedType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OrderedGroupIndexedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='OrderedGroupIndexedType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.regionRef is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) if self.index is not None and 'index' not in already_processed: already_processed.add('index') outfile.write(' index="%s"' % self.gds_format_integer(self.index, input_name='index')) if self.caption is not None and 'caption' not in already_processed: already_processed.add('caption') outfile.write(' caption=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.caption), input_name='caption')), )) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.continuation is not None and 'continuation' not in already_processed: already_processed.add('continuation') outfile.write(' continuation="%s"' % self.gds_format_boolean(self.continuation, input_name='continuation')) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupIndexedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) for RegionRefIndexed_ in self.RegionRefIndexed: RegionRefIndexed_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='RegionRefIndexed', pretty_print=pretty_print) for OrderedGroupIndexed_ in self.OrderedGroupIndexed: OrderedGroupIndexed_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='OrderedGroupIndexed', pretty_print=pretty_print) for UnorderedGroupIndexed_ in self.UnorderedGroupIndexed: UnorderedGroupIndexed_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UnorderedGroupIndexed', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('regionRef', node) if value is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') self.regionRef = value value = find_attr_value_('index', node) if value is not None and 'index' not in already_processed: already_processed.add('index') try: self.index = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('caption', node) if value is not None and 'caption' not in already_processed: already_processed.add('caption') self.caption = value value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('continuation', node) if value is not None and 'continuation' not in already_processed: already_processed.add('continuation') if value in ('true', '1'): self.continuation = True elif value in ('false', '0'): self.continuation = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' elif nodeName_ == 'RegionRefIndexed': obj_ = RegionRefIndexedType.factory(parent_object_=self) obj_.build(child_) self.RegionRefIndexed.append(obj_) obj_.original_tagname_ = 'RegionRefIndexed' elif nodeName_ == 'OrderedGroupIndexed': obj_ = OrderedGroupIndexedType.factory(parent_object_=self) obj_.build(child_) self.OrderedGroupIndexed.append(obj_) obj_.original_tagname_ = 'OrderedGroupIndexed' elif nodeName_ == 'UnorderedGroupIndexed': obj_ = UnorderedGroupIndexedType.factory(parent_object_=self) obj_.build(child_) self.UnorderedGroupIndexed.append(obj_) obj_.original_tagname_ = 'UnorderedGroupIndexed' # end class OrderedGroupIndexedType class UnorderedGroupIndexedType(GeneratedsSuper): """Indexed group containing unordered elements Optional link to a parent region of nested regions. The parent region doubles as reading order group. Only the nested regions should be allowed as group members. Position (order number) of this item within the current hierarchy level. Is this group a continuation of another group (from previous column or page, for example)? For generic use""" subclass = None superclass = None def __init__(self, id=None, regionRef=None, index=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRef=None, OrderedGroup=None, UnorderedGroup=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.regionRef = _cast(None, regionRef) self.index = _cast(int, index) self.caption = _cast(None, caption) self.type_ = _cast(None, type_) self.continuation = _cast(bool, continuation) self.custom = _cast(None, custom) self.comments = _cast(None, comments) self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels if RegionRef is None: self.RegionRef = [] else: self.RegionRef = RegionRef if OrderedGroup is None: self.OrderedGroup = [] else: self.OrderedGroup = OrderedGroup if UnorderedGroup is None: self.UnorderedGroup = [] else: self.UnorderedGroup = UnorderedGroup def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, UnorderedGroupIndexedType) if subclass is not None: return subclass(*args_, **kwargs_) if UnorderedGroupIndexedType.subclass: return UnorderedGroupIndexedType.subclass(*args_, **kwargs_) else: return UnorderedGroupIndexedType(*args_, **kwargs_) factory = staticmethod(factory) def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_RegionRef(self): return self.RegionRef def set_RegionRef(self, RegionRef): self.RegionRef = RegionRef def add_RegionRef(self, value): self.RegionRef.append(value) def add_RegionRef(self, value): self.RegionRef.append(value) def insert_RegionRef_at(self, index, value): self.RegionRef.insert(index, value) def replace_RegionRef_at(self, index, value): self.RegionRef[index] = value def get_OrderedGroup(self): return self.OrderedGroup def set_OrderedGroup(self, OrderedGroup): self.OrderedGroup = OrderedGroup def add_OrderedGroup(self, value): self.OrderedGroup.append(value) def add_OrderedGroup(self, value): self.OrderedGroup.append(value) def insert_OrderedGroup_at(self, index, value): self.OrderedGroup.insert(index, value) def replace_OrderedGroup_at(self, index, value): self.OrderedGroup[index] = value def get_UnorderedGroup(self): return self.UnorderedGroup def set_UnorderedGroup(self, UnorderedGroup): self.UnorderedGroup = UnorderedGroup def add_UnorderedGroup(self, value): self.UnorderedGroup.append(value) def add_UnorderedGroup(self, value): self.UnorderedGroup.append(value) def insert_UnorderedGroup_at(self, index, value): self.UnorderedGroup.insert(index, value) def replace_UnorderedGroup_at(self, index, value): self.UnorderedGroup[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_regionRef(self): return self.regionRef def set_regionRef(self, regionRef): self.regionRef = regionRef def get_index(self): return self.index def set_index(self, index): self.index = index def get_caption(self): return self.caption def set_caption(self, caption): self.caption = caption def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_continuation(self): return self.continuation def set_continuation(self, continuation): self.continuation = continuation def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.UserDefined is not None or self.Labels or self.RegionRef or self.OrderedGroup or self.UnorderedGroup ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UnorderedGroupIndexedType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('UnorderedGroupIndexedType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnorderedGroupIndexedType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnorderedGroupIndexedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='UnorderedGroupIndexedType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.regionRef is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) if self.index is not None and 'index' not in already_processed: already_processed.add('index') outfile.write(' index="%s"' % self.gds_format_integer(self.index, input_name='index')) if self.caption is not None and 'caption' not in already_processed: already_processed.add('caption') outfile.write(' caption=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.caption), input_name='caption')), )) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.continuation is not None and 'continuation' not in already_processed: already_processed.add('continuation') outfile.write(' continuation="%s"' % self.gds_format_boolean(self.continuation, input_name='continuation')) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UnorderedGroupIndexedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) for RegionRef_ in self.RegionRef: RegionRef_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='RegionRef', pretty_print=pretty_print) for OrderedGroup_ in self.OrderedGroup: OrderedGroup_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='OrderedGroup', pretty_print=pretty_print) for UnorderedGroup_ in self.UnorderedGroup: UnorderedGroup_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UnorderedGroup', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('regionRef', node) if value is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') self.regionRef = value value = find_attr_value_('index', node) if value is not None and 'index' not in already_processed: already_processed.add('index') try: self.index = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('caption', node) if value is not None and 'caption' not in already_processed: already_processed.add('caption') self.caption = value value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('continuation', node) if value is not None and 'continuation' not in already_processed: already_processed.add('continuation') if value in ('true', '1'): self.continuation = True elif value in ('false', '0'): self.continuation = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' elif nodeName_ == 'RegionRef': obj_ = RegionRefType.factory(parent_object_=self) obj_.build(child_) self.RegionRef.append(obj_) obj_.original_tagname_ = 'RegionRef' elif nodeName_ == 'OrderedGroup': obj_ = OrderedGroupType.factory(parent_object_=self) obj_.build(child_) self.OrderedGroup.append(obj_) obj_.original_tagname_ = 'OrderedGroup' elif nodeName_ == 'UnorderedGroup': obj_ = UnorderedGroupType.factory(parent_object_=self) obj_.build(child_) self.UnorderedGroup.append(obj_) obj_.original_tagname_ = 'UnorderedGroup' # end class UnorderedGroupIndexedType class RegionRefType(GeneratedsSuper): subclass = None superclass = None def __init__(self, regionRef=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.regionRef = _cast(None, regionRef) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, RegionRefType) if subclass is not None: return subclass(*args_, **kwargs_) if RegionRefType.subclass: return RegionRefType.subclass(*args_, **kwargs_) else: return RegionRefType(*args_, **kwargs_) factory = staticmethod(factory) def get_regionRef(self): return self.regionRef def set_regionRef(self, regionRef): self.regionRef = regionRef def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('RegionRefType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RegionRefType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RegionRefType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='RegionRefType'): if self.regionRef is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionRefType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('regionRef', node) if value is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') self.regionRef = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class RegionRefType class OrderedGroupType(GeneratedsSuper): """Numbered group (contains ordered elements) Optional link to a parent region of nested regions. The parent region doubles as reading order group. Only the nested regions should be allowed as group members. Is this group a continuation of another group (from previous column or page, for example)? For generic use""" subclass = None superclass = None def __init__(self, id=None, regionRef=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.regionRef = _cast(None, regionRef) self.caption = _cast(None, caption) self.type_ = _cast(None, type_) self.continuation = _cast(bool, continuation) self.custom = _cast(None, custom) self.comments = _cast(None, comments) self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels if RegionRefIndexed is None: self.RegionRefIndexed = [] else: self.RegionRefIndexed = RegionRefIndexed if OrderedGroupIndexed is None: self.OrderedGroupIndexed = [] else: self.OrderedGroupIndexed = OrderedGroupIndexed if UnorderedGroupIndexed is None: self.UnorderedGroupIndexed = [] else: self.UnorderedGroupIndexed = UnorderedGroupIndexed def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, OrderedGroupType) if subclass is not None: return subclass(*args_, **kwargs_) if OrderedGroupType.subclass: return OrderedGroupType.subclass(*args_, **kwargs_) else: return OrderedGroupType(*args_, **kwargs_) factory = staticmethod(factory) def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_RegionRefIndexed(self): return self.RegionRefIndexed def set_RegionRefIndexed(self, RegionRefIndexed): self.RegionRefIndexed = RegionRefIndexed def add_RegionRefIndexed(self, value): self.RegionRefIndexed.append(value) def add_RegionRefIndexed(self, value): self.RegionRefIndexed.append(value) def insert_RegionRefIndexed_at(self, index, value): self.RegionRefIndexed.insert(index, value) def replace_RegionRefIndexed_at(self, index, value): self.RegionRefIndexed[index] = value def get_OrderedGroupIndexed(self): return self.OrderedGroupIndexed def set_OrderedGroupIndexed(self, OrderedGroupIndexed): self.OrderedGroupIndexed = OrderedGroupIndexed def add_OrderedGroupIndexed(self, value): self.OrderedGroupIndexed.append(value) def add_OrderedGroupIndexed(self, value): self.OrderedGroupIndexed.append(value) def insert_OrderedGroupIndexed_at(self, index, value): self.OrderedGroupIndexed.insert(index, value) def replace_OrderedGroupIndexed_at(self, index, value): self.OrderedGroupIndexed[index] = value def get_UnorderedGroupIndexed(self): return self.UnorderedGroupIndexed def set_UnorderedGroupIndexed(self, UnorderedGroupIndexed): self.UnorderedGroupIndexed = UnorderedGroupIndexed def add_UnorderedGroupIndexed(self, value): self.UnorderedGroupIndexed.append(value) def add_UnorderedGroupIndexed(self, value): self.UnorderedGroupIndexed.append(value) def insert_UnorderedGroupIndexed_at(self, index, value): self.UnorderedGroupIndexed.insert(index, value) def replace_UnorderedGroupIndexed_at(self, index, value): self.UnorderedGroupIndexed[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_regionRef(self): return self.regionRef def set_regionRef(self, regionRef): self.regionRef = regionRef def get_caption(self): return self.caption def set_caption(self, caption): self.caption = caption def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_continuation(self): return self.continuation def set_continuation(self, continuation): self.continuation = continuation def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.UserDefined is not None or self.Labels or self.RegionRefIndexed or self.OrderedGroupIndexed or self.UnorderedGroupIndexed ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('OrderedGroupType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='OrderedGroupType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='OrderedGroupType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='OrderedGroupType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.regionRef is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) if self.caption is not None and 'caption' not in already_processed: already_processed.add('caption') outfile.write(' caption=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.caption), input_name='caption')), )) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.continuation is not None and 'continuation' not in already_processed: already_processed.add('continuation') outfile.write(' continuation="%s"' % self.gds_format_boolean(self.continuation, input_name='continuation')) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='OrderedGroupType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) for RegionRefIndexed_ in self.RegionRefIndexed: RegionRefIndexed_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='RegionRefIndexed', pretty_print=pretty_print) for OrderedGroupIndexed_ in self.OrderedGroupIndexed: OrderedGroupIndexed_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='OrderedGroupIndexed', pretty_print=pretty_print) for UnorderedGroupIndexed_ in self.UnorderedGroupIndexed: UnorderedGroupIndexed_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UnorderedGroupIndexed', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('regionRef', node) if value is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') self.regionRef = value value = find_attr_value_('caption', node) if value is not None and 'caption' not in already_processed: already_processed.add('caption') self.caption = value value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('continuation', node) if value is not None and 'continuation' not in already_processed: already_processed.add('continuation') if value in ('true', '1'): self.continuation = True elif value in ('false', '0'): self.continuation = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' elif nodeName_ == 'RegionRefIndexed': obj_ = RegionRefIndexedType.factory(parent_object_=self) obj_.build(child_) self.RegionRefIndexed.append(obj_) obj_.original_tagname_ = 'RegionRefIndexed' elif nodeName_ == 'OrderedGroupIndexed': obj_ = OrderedGroupIndexedType.factory(parent_object_=self) obj_.build(child_) self.OrderedGroupIndexed.append(obj_) obj_.original_tagname_ = 'OrderedGroupIndexed' elif nodeName_ == 'UnorderedGroupIndexed': obj_ = UnorderedGroupIndexedType.factory(parent_object_=self) obj_.build(child_) self.UnorderedGroupIndexed.append(obj_) obj_.original_tagname_ = 'UnorderedGroupIndexed' # end class OrderedGroupType class UnorderedGroupType(GeneratedsSuper): """Numbered group (contains unordered elements) Optional link to a parent region of nested regions. The parent region doubles as reading order group. Only the nested regions should be allowed as group members. Is this group a continuation of another group (from previous column or page, for example)? For generic use""" subclass = None superclass = None def __init__(self, id=None, regionRef=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRef=None, OrderedGroup=None, UnorderedGroup=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.regionRef = _cast(None, regionRef) self.caption = _cast(None, caption) self.type_ = _cast(None, type_) self.continuation = _cast(bool, continuation) self.custom = _cast(None, custom) self.comments = _cast(None, comments) self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels if RegionRef is None: self.RegionRef = [] else: self.RegionRef = RegionRef if OrderedGroup is None: self.OrderedGroup = [] else: self.OrderedGroup = OrderedGroup if UnorderedGroup is None: self.UnorderedGroup = [] else: self.UnorderedGroup = UnorderedGroup def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, UnorderedGroupType) if subclass is not None: return subclass(*args_, **kwargs_) if UnorderedGroupType.subclass: return UnorderedGroupType.subclass(*args_, **kwargs_) else: return UnorderedGroupType(*args_, **kwargs_) factory = staticmethod(factory) def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_RegionRef(self): return self.RegionRef def set_RegionRef(self, RegionRef): self.RegionRef = RegionRef def add_RegionRef(self, value): self.RegionRef.append(value) def add_RegionRef(self, value): self.RegionRef.append(value) def insert_RegionRef_at(self, index, value): self.RegionRef.insert(index, value) def replace_RegionRef_at(self, index, value): self.RegionRef[index] = value def get_OrderedGroup(self): return self.OrderedGroup def set_OrderedGroup(self, OrderedGroup): self.OrderedGroup = OrderedGroup def add_OrderedGroup(self, value): self.OrderedGroup.append(value) def add_OrderedGroup(self, value): self.OrderedGroup.append(value) def insert_OrderedGroup_at(self, index, value): self.OrderedGroup.insert(index, value) def replace_OrderedGroup_at(self, index, value): self.OrderedGroup[index] = value def get_UnorderedGroup(self): return self.UnorderedGroup def set_UnorderedGroup(self, UnorderedGroup): self.UnorderedGroup = UnorderedGroup def add_UnorderedGroup(self, value): self.UnorderedGroup.append(value) def add_UnorderedGroup(self, value): self.UnorderedGroup.append(value) def insert_UnorderedGroup_at(self, index, value): self.UnorderedGroup.insert(index, value) def replace_UnorderedGroup_at(self, index, value): self.UnorderedGroup[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_regionRef(self): return self.regionRef def set_regionRef(self, regionRef): self.regionRef = regionRef def get_caption(self): return self.caption def set_caption(self, caption): self.caption = caption def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_continuation(self): return self.continuation def set_continuation(self, continuation): self.continuation = continuation def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.UserDefined is not None or self.Labels or self.RegionRef or self.OrderedGroup or self.UnorderedGroup ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UnorderedGroupType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('UnorderedGroupType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnorderedGroupType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnorderedGroupType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='UnorderedGroupType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.regionRef is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') outfile.write(' regionRef=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.regionRef), input_name='regionRef')), )) if self.caption is not None and 'caption' not in already_processed: already_processed.add('caption') outfile.write(' caption=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.caption), input_name='caption')), )) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.continuation is not None and 'continuation' not in already_processed: already_processed.add('continuation') outfile.write(' continuation="%s"' % self.gds_format_boolean(self.continuation, input_name='continuation')) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UnorderedGroupType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) for RegionRef_ in self.RegionRef: RegionRef_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='RegionRef', pretty_print=pretty_print) for OrderedGroup_ in self.OrderedGroup: OrderedGroup_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='OrderedGroup', pretty_print=pretty_print) for UnorderedGroup_ in self.UnorderedGroup: UnorderedGroup_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UnorderedGroup', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('regionRef', node) if value is not None and 'regionRef' not in already_processed: already_processed.add('regionRef') self.regionRef = value value = find_attr_value_('caption', node) if value is not None and 'caption' not in already_processed: already_processed.add('caption') self.caption = value value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('continuation', node) if value is not None and 'continuation' not in already_processed: already_processed.add('continuation') if value in ('true', '1'): self.continuation = True elif value in ('false', '0'): self.continuation = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' elif nodeName_ == 'RegionRef': obj_ = RegionRefType.factory(parent_object_=self) obj_.build(child_) self.RegionRef.append(obj_) obj_.original_tagname_ = 'RegionRef' elif nodeName_ == 'OrderedGroup': obj_ = OrderedGroupType.factory(parent_object_=self) obj_.build(child_) self.OrderedGroup.append(obj_) obj_.original_tagname_ = 'OrderedGroup' elif nodeName_ == 'UnorderedGroup': obj_ = UnorderedGroupType.factory(parent_object_=self) obj_.build(child_) self.UnorderedGroup.append(obj_) obj_.original_tagname_ = 'UnorderedGroup' # end class UnorderedGroupType class BorderType(GeneratedsSuper): """Border of the actual page (if the scanned image contains parts not belonging to the page).""" subclass = None superclass = None def __init__(self, Coords=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.Coords = Coords def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, BorderType) if subclass is not None: return subclass(*args_, **kwargs_) if BorderType.subclass: return BorderType.subclass(*args_, **kwargs_) else: return BorderType(*args_, **kwargs_) factory = staticmethod(factory) def get_Coords(self): return self.Coords def set_Coords(self, Coords): self.Coords = Coords def hasContent_(self): if ( self.Coords is not None ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BorderType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('BorderType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BorderType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BorderType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='BorderType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BorderType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.Coords is not None: self.Coords.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Coords', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Coords': obj_ = CoordsType.factory(parent_object_=self) obj_.build(child_) self.Coords = obj_ obj_.original_tagname_ = 'Coords' # end class BorderType class LayersType(GeneratedsSuper): """Can be used to express the z-index of overlapping regions. An element with a greater z-index is always in front of another element with lower z-index.""" subclass = None superclass = None def __init__(self, Layer=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') if Layer is None: self.Layer = [] else: self.Layer = Layer def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, LayersType) if subclass is not None: return subclass(*args_, **kwargs_) if LayersType.subclass: return LayersType.subclass(*args_, **kwargs_) else: return LayersType(*args_, **kwargs_) factory = staticmethod(factory) def get_Layer(self): return self.Layer def set_Layer(self, Layer): self.Layer = Layer def add_Layer(self, value): self.Layer.append(value) def add_Layer(self, value): self.Layer.append(value) def insert_Layer_at(self, index, value): self.Layer.insert(index, value) def replace_Layer_at(self, index, value): self.Layer[index] = value def hasContent_(self): if ( self.Layer ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayersType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('LayersType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LayersType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LayersType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='LayersType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayersType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for Layer_ in self.Layer: Layer_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Layer', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Layer': obj_ = LayerType.factory(parent_object_=self) obj_.build(child_) self.Layer.append(obj_) obj_.original_tagname_ = 'Layer' # end class LayersType class LayerType(GeneratedsSuper): subclass = None superclass = None def __init__(self, id=None, zIndex=None, caption=None, RegionRef=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.zIndex = _cast(int, zIndex) self.caption = _cast(None, caption) if RegionRef is None: self.RegionRef = [] else: self.RegionRef = RegionRef def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, LayerType) if subclass is not None: return subclass(*args_, **kwargs_) if LayerType.subclass: return LayerType.subclass(*args_, **kwargs_) else: return LayerType(*args_, **kwargs_) factory = staticmethod(factory) def get_RegionRef(self): return self.RegionRef def set_RegionRef(self, RegionRef): self.RegionRef = RegionRef def add_RegionRef(self, value): self.RegionRef.append(value) def add_RegionRef(self, value): self.RegionRef.append(value) def insert_RegionRef_at(self, index, value): self.RegionRef.insert(index, value) def replace_RegionRef_at(self, index, value): self.RegionRef[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_zIndex(self): return self.zIndex def set_zIndex(self, zIndex): self.zIndex = zIndex def get_caption(self): return self.caption def set_caption(self, caption): self.caption = caption def hasContent_(self): if ( self.RegionRef ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayerType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('LayerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LayerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LayerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='LayerType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.zIndex is not None and 'zIndex' not in already_processed: already_processed.add('zIndex') outfile.write(' zIndex="%s"' % self.gds_format_integer(self.zIndex, input_name='zIndex')) if self.caption is not None and 'caption' not in already_processed: already_processed.add('caption') outfile.write(' caption=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.caption), input_name='caption')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='LayerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for RegionRef_ in self.RegionRef: RegionRef_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='RegionRef', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('zIndex', node) if value is not None and 'zIndex' not in already_processed: already_processed.add('zIndex') try: self.zIndex = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('caption', node) if value is not None and 'caption' not in already_processed: already_processed.add('caption') self.caption = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'RegionRef': obj_ = RegionRefType.factory(parent_object_=self) obj_.build(child_) self.RegionRef.append(obj_) obj_.original_tagname_ = 'RegionRef' # end class LayerType class BaselineType(GeneratedsSuper): """Confidence value (between 0 and 1)""" subclass = None superclass = None def __init__(self, points=None, conf=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.points = _cast(None, points) self.conf = _cast(float, conf) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, BaselineType) if subclass is not None: return subclass(*args_, **kwargs_) if BaselineType.subclass: return BaselineType.subclass(*args_, **kwargs_) else: return BaselineType(*args_, **kwargs_) factory = staticmethod(factory) def get_points(self): return self.points def set_points(self, points): self.points = points def get_conf(self): return self.conf def set_conf(self, conf): self.conf = conf def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BaselineType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('BaselineType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BaselineType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='BaselineType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='BaselineType'): if self.points is not None and 'points' not in already_processed: already_processed.add('points') outfile.write(' points=%s' % (quote_attrib(self.points), )) if self.conf is not None and 'conf' not in already_processed: already_processed.add('conf') outfile.write(' conf=%s' % (quote_attrib(self.conf), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='BaselineType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('points', node) if value is not None and 'points' not in already_processed: already_processed.add('points') self.points = value value = find_attr_value_('conf', node) if value is not None and 'conf' not in already_processed: already_processed.add('conf') self.conf = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class BaselineType class RelationsType(GeneratedsSuper): """Container for one-to-one relations between layout objects (for example: DropCap - paragraph, caption - image).""" subclass = None superclass = None def __init__(self, Relation=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') if Relation is None: self.Relation = [] else: self.Relation = Relation def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, RelationsType) if subclass is not None: return subclass(*args_, **kwargs_) if RelationsType.subclass: return RelationsType.subclass(*args_, **kwargs_) else: return RelationsType(*args_, **kwargs_) factory = staticmethod(factory) def get_Relation(self): return self.Relation def set_Relation(self, Relation): self.Relation = Relation def add_Relation(self, value): self.Relation.append(value) def add_Relation(self, value): self.Relation.append(value) def insert_Relation_at(self, index, value): self.Relation.insert(index, value) def replace_Relation_at(self, index, value): self.Relation[index] = value def hasContent_(self): if ( self.Relation ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationsType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('RelationsType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RelationsType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RelationsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='RelationsType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for Relation_ in self.Relation: Relation_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Relation', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Relation': obj_ = RelationType.factory(parent_object_=self) obj_.build(child_) self.Relation.append(obj_) obj_.original_tagname_ = 'Relation' # end class RelationsType class RelationType(GeneratedsSuper): """One-to-one relation between to layout object. Use 'link' for loose relations and 'join' for strong relations (where something is fragmented for instance). Examples for 'link': caption - image floating - paragraph paragraph - paragraph (when a paragraph is split across columns and the last word of the first paragraph DOES NOT continue in the second paragraph) drop-cap - paragraph (when the drop-cap is a whole word) Examples for 'join': word - word (separated word at the end of a line) drop-cap - paragraph (when the drop-cap is not a whole word) paragraph - paragraph (when a pragraph is split across columns and the last word of the first paragraph DOES continue in the second paragraph) For generic use""" subclass = None superclass = None def __init__(self, id=None, type_=None, custom=None, comments=None, Labels=None, SourceRegionRef=None, TargetRegionRef=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.type_ = _cast(None, type_) self.custom = _cast(None, custom) self.comments = _cast(None, comments) if Labels is None: self.Labels = [] else: self.Labels = Labels self.SourceRegionRef = SourceRegionRef self.TargetRegionRef = TargetRegionRef def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, RelationType) if subclass is not None: return subclass(*args_, **kwargs_) if RelationType.subclass: return RelationType.subclass(*args_, **kwargs_) else: return RelationType(*args_, **kwargs_) factory = staticmethod(factory) def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_SourceRegionRef(self): return self.SourceRegionRef def set_SourceRegionRef(self, SourceRegionRef): self.SourceRegionRef = SourceRegionRef def get_TargetRegionRef(self): return self.TargetRegionRef def set_TargetRegionRef(self, TargetRegionRef): self.TargetRegionRef = TargetRegionRef def get_id(self): return self.id def set_id(self, id): self.id = id def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def hasContent_(self): if ( self.Labels or self.SourceRegionRef is not None or self.TargetRegionRef is not None ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('RelationType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RelationType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RelationType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='RelationType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RelationType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) if self.SourceRegionRef is not None: self.SourceRegionRef.export(outfile, level, namespaceprefix_, namespacedef_='', name_='SourceRegionRef', pretty_print=pretty_print) if self.TargetRegionRef is not None: self.TargetRegionRef.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TargetRegionRef', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' elif nodeName_ == 'SourceRegionRef': obj_ = RegionRefType.factory(parent_object_=self) obj_.build(child_) self.SourceRegionRef = obj_ obj_.original_tagname_ = 'SourceRegionRef' elif nodeName_ == 'TargetRegionRef': obj_ = RegionRefType.factory(parent_object_=self) obj_.build(child_) self.TargetRegionRef = obj_ obj_.original_tagname_ = 'TargetRegionRef' # end class RelationType class TextStyleType(GeneratedsSuper): """Monospace (fixed-pitch, non-proportional) or proportional font. For instance: Arial, Times New Roman. Add more information if necessary (e.g. blackletter, antiqua). Serif or sans-serif typeface. The size of the characters in points. The x-height or corpus size refers to the distance between the baseline and the mean line of lower-case letters in a typeface. The unit is assumed to be pixels. The degree of space (in points) between the characters in a string of text. Text colour in RGB encoded format (red value) + (256 x green value) + (65536 x blue value). Background colour Background colour in RGB encoded format (red value) + (256 x green value) + (65536 x blue value). Specifies whether the colour of the text appears reversed against a background colour. Line style details if "underlined" is TRUE""" subclass = None superclass = None def __init__(self, fontFamily=None, serif=None, monospace=None, fontSize=None, xHeight=None, kerning=None, textColour=None, textColourRgb=None, bgColour=None, bgColourRgb=None, reverseVideo=None, bold=None, italic=None, underlined=None, underlineStyle=None, doubleUnderlined=None, subscript=None, superscript=None, strikethrough=None, smallCaps=None, letterSpaced=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.fontFamily = _cast(None, fontFamily) self.serif = _cast(bool, serif) self.monospace = _cast(bool, monospace) self.fontSize = _cast(float, fontSize) self.xHeight = _cast(int, xHeight) self.kerning = _cast(int, kerning) self.textColour = _cast(None, textColour) self.textColourRgb = _cast(int, textColourRgb) self.bgColour = _cast(None, bgColour) self.bgColourRgb = _cast(int, bgColourRgb) self.reverseVideo = _cast(bool, reverseVideo) self.bold = _cast(bool, bold) self.italic = _cast(bool, italic) self.underlined = _cast(bool, underlined) self.underlineStyle = _cast(None, underlineStyle) self.doubleUnderlined = _cast(bool, doubleUnderlined) self.subscript = _cast(bool, subscript) self.superscript = _cast(bool, superscript) self.strikethrough = _cast(bool, strikethrough) self.smallCaps = _cast(bool, smallCaps) self.letterSpaced = _cast(bool, letterSpaced) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, TextStyleType) if subclass is not None: return subclass(*args_, **kwargs_) if TextStyleType.subclass: return TextStyleType.subclass(*args_, **kwargs_) else: return TextStyleType(*args_, **kwargs_) factory = staticmethod(factory) def get_fontFamily(self): return self.fontFamily def set_fontFamily(self, fontFamily): self.fontFamily = fontFamily def get_serif(self): return self.serif def set_serif(self, serif): self.serif = serif def get_monospace(self): return self.monospace def set_monospace(self, monospace): self.monospace = monospace def get_fontSize(self): return self.fontSize def set_fontSize(self, fontSize): self.fontSize = fontSize def get_xHeight(self): return self.xHeight def set_xHeight(self, xHeight): self.xHeight = xHeight def get_kerning(self): return self.kerning def set_kerning(self, kerning): self.kerning = kerning def get_textColour(self): return self.textColour def set_textColour(self, textColour): self.textColour = textColour def get_textColourRgb(self): return self.textColourRgb def set_textColourRgb(self, textColourRgb): self.textColourRgb = textColourRgb def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def get_bgColourRgb(self): return self.bgColourRgb def set_bgColourRgb(self, bgColourRgb): self.bgColourRgb = bgColourRgb def get_reverseVideo(self): return self.reverseVideo def set_reverseVideo(self, reverseVideo): self.reverseVideo = reverseVideo def get_bold(self): return self.bold def set_bold(self, bold): self.bold = bold def get_italic(self): return self.italic def set_italic(self, italic): self.italic = italic def get_underlined(self): return self.underlined def set_underlined(self, underlined): self.underlined = underlined def get_underlineStyle(self): return self.underlineStyle def set_underlineStyle(self, underlineStyle): self.underlineStyle = underlineStyle def get_doubleUnderlined(self): return self.doubleUnderlined def set_doubleUnderlined(self, doubleUnderlined): self.doubleUnderlined = doubleUnderlined def get_subscript(self): return self.subscript def set_subscript(self, subscript): self.subscript = subscript def get_superscript(self): return self.superscript def set_superscript(self, superscript): self.superscript = superscript def get_strikethrough(self): return self.strikethrough def set_strikethrough(self, strikethrough): self.strikethrough = strikethrough def get_smallCaps(self): return self.smallCaps def set_smallCaps(self, smallCaps): self.smallCaps = smallCaps def get_letterSpaced(self): return self.letterSpaced def set_letterSpaced(self, letterSpaced): self.letterSpaced = letterSpaced def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextStyleType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('TextStyleType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TextStyleType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TextStyleType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='TextStyleType'): if self.fontFamily is not None and 'fontFamily' not in already_processed: already_processed.add('fontFamily') outfile.write(' fontFamily=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.fontFamily), input_name='fontFamily')), )) if self.serif is not None and 'serif' not in already_processed: already_processed.add('serif') outfile.write(' serif="%s"' % self.gds_format_boolean(self.serif, input_name='serif')) if self.monospace is not None and 'monospace' not in already_processed: already_processed.add('monospace') outfile.write(' monospace="%s"' % self.gds_format_boolean(self.monospace, input_name='monospace')) if self.fontSize is not None and 'fontSize' not in already_processed: already_processed.add('fontSize') outfile.write(' fontSize="%s"' % self.gds_format_float(self.fontSize, input_name='fontSize')) if self.xHeight is not None and 'xHeight' not in already_processed: already_processed.add('xHeight') outfile.write(' xHeight="%s"' % self.gds_format_integer(self.xHeight, input_name='xHeight')) if self.kerning is not None and 'kerning' not in already_processed: already_processed.add('kerning') outfile.write(' kerning="%s"' % self.gds_format_integer(self.kerning, input_name='kerning')) if self.textColour is not None and 'textColour' not in already_processed: already_processed.add('textColour') outfile.write(' textColour=%s' % (quote_attrib(self.textColour), )) if self.textColourRgb is not None and 'textColourRgb' not in already_processed: already_processed.add('textColourRgb') outfile.write(' textColourRgb="%s"' % self.gds_format_integer(self.textColourRgb, input_name='textColourRgb')) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) if self.bgColourRgb is not None and 'bgColourRgb' not in already_processed: already_processed.add('bgColourRgb') outfile.write(' bgColourRgb="%s"' % self.gds_format_integer(self.bgColourRgb, input_name='bgColourRgb')) if self.reverseVideo is not None and 'reverseVideo' not in already_processed: already_processed.add('reverseVideo') outfile.write(' reverseVideo="%s"' % self.gds_format_boolean(self.reverseVideo, input_name='reverseVideo')) if self.bold is not None and 'bold' not in already_processed: already_processed.add('bold') outfile.write(' bold="%s"' % self.gds_format_boolean(self.bold, input_name='bold')) if self.italic is not None and 'italic' not in already_processed: already_processed.add('italic') outfile.write(' italic="%s"' % self.gds_format_boolean(self.italic, input_name='italic')) if self.underlined is not None and 'underlined' not in already_processed: already_processed.add('underlined') outfile.write(' underlined="%s"' % self.gds_format_boolean(self.underlined, input_name='underlined')) if self.underlineStyle is not None and 'underlineStyle' not in already_processed: already_processed.add('underlineStyle') outfile.write(' underlineStyle=%s' % (quote_attrib(self.underlineStyle), )) if self.doubleUnderlined is not None and 'doubleUnderlined' not in already_processed: already_processed.add('doubleUnderlined') outfile.write(' doubleUnderlined="%s"' % self.gds_format_boolean(self.doubleUnderlined, input_name='doubleUnderlined')) if self.subscript is not None and 'subscript' not in already_processed: already_processed.add('subscript') outfile.write(' subscript="%s"' % self.gds_format_boolean(self.subscript, input_name='subscript')) if self.superscript is not None and 'superscript' not in already_processed: already_processed.add('superscript') outfile.write(' superscript="%s"' % self.gds_format_boolean(self.superscript, input_name='superscript')) if self.strikethrough is not None and 'strikethrough' not in already_processed: already_processed.add('strikethrough') outfile.write(' strikethrough="%s"' % self.gds_format_boolean(self.strikethrough, input_name='strikethrough')) if self.smallCaps is not None and 'smallCaps' not in already_processed: already_processed.add('smallCaps') outfile.write(' smallCaps="%s"' % self.gds_format_boolean(self.smallCaps, input_name='smallCaps')) if self.letterSpaced is not None and 'letterSpaced' not in already_processed: already_processed.add('letterSpaced') outfile.write(' letterSpaced="%s"' % self.gds_format_boolean(self.letterSpaced, input_name='letterSpaced')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TextStyleType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('fontFamily', node) if value is not None and 'fontFamily' not in already_processed: already_processed.add('fontFamily') self.fontFamily = value value = find_attr_value_('serif', node) if value is not None and 'serif' not in already_processed: already_processed.add('serif') if value in ('true', '1'): self.serif = True elif value in ('false', '0'): self.serif = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('monospace', node) if value is not None and 'monospace' not in already_processed: already_processed.add('monospace') if value in ('true', '1'): self.monospace = True elif value in ('false', '0'): self.monospace = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('fontSize', node) if value is not None and 'fontSize' not in already_processed: already_processed.add('fontSize') try: self.fontSize = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (fontSize): %s' % exp) value = find_attr_value_('xHeight', node) if value is not None and 'xHeight' not in already_processed: already_processed.add('xHeight') try: self.xHeight = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('kerning', node) if value is not None and 'kerning' not in already_processed: already_processed.add('kerning') try: self.kerning = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('textColour', node) if value is not None and 'textColour' not in already_processed: already_processed.add('textColour') self.textColour = value value = find_attr_value_('textColourRgb', node) if value is not None and 'textColourRgb' not in already_processed: already_processed.add('textColourRgb') try: self.textColourRgb = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value value = find_attr_value_('bgColourRgb', node) if value is not None and 'bgColourRgb' not in already_processed: already_processed.add('bgColourRgb') try: self.bgColourRgb = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('reverseVideo', node) if value is not None and 'reverseVideo' not in already_processed: already_processed.add('reverseVideo') if value in ('true', '1'): self.reverseVideo = True elif value in ('false', '0'): self.reverseVideo = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('bold', node) if value is not None and 'bold' not in already_processed: already_processed.add('bold') if value in ('true', '1'): self.bold = True elif value in ('false', '0'): self.bold = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('italic', node) if value is not None and 'italic' not in already_processed: already_processed.add('italic') if value in ('true', '1'): self.italic = True elif value in ('false', '0'): self.italic = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('underlined', node) if value is not None and 'underlined' not in already_processed: already_processed.add('underlined') if value in ('true', '1'): self.underlined = True elif value in ('false', '0'): self.underlined = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('underlineStyle', node) if value is not None and 'underlineStyle' not in already_processed: already_processed.add('underlineStyle') self.underlineStyle = value value = find_attr_value_('doubleUnderlined', node) if value is not None and 'doubleUnderlined' not in already_processed: already_processed.add('doubleUnderlined') if value in ('true', '1'): self.doubleUnderlined = True elif value in ('false', '0'): self.doubleUnderlined = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('subscript', node) if value is not None and 'subscript' not in already_processed: already_processed.add('subscript') if value in ('true', '1'): self.subscript = True elif value in ('false', '0'): self.subscript = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('superscript', node) if value is not None and 'superscript' not in already_processed: already_processed.add('superscript') if value in ('true', '1'): self.superscript = True elif value in ('false', '0'): self.superscript = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('strikethrough', node) if value is not None and 'strikethrough' not in already_processed: already_processed.add('strikethrough') if value in ('true', '1'): self.strikethrough = True elif value in ('false', '0'): self.strikethrough = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('smallCaps', node) if value is not None and 'smallCaps' not in already_processed: already_processed.add('smallCaps') if value in ('true', '1'): self.smallCaps = True elif value in ('false', '0'): self.smallCaps = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('letterSpaced', node) if value is not None and 'letterSpaced' not in already_processed: already_processed.add('letterSpaced') if value in ('true', '1'): self.letterSpaced = True elif value in ('false', '0'): self.letterSpaced = False else: raise_parse_error(node, 'Bad boolean attribute') def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class TextStyleType class RegionType(GeneratedsSuper): """For generic use Is this region a continuation of another region (in previous column or page, for example)?""" subclass = None superclass = None def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, extensiontype_=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.custom = _cast(None, custom) self.comments = _cast(None, comments) self.continuation = _cast(bool, continuation) if AlternativeImage is None: self.AlternativeImage = [] else: self.AlternativeImage = AlternativeImage self.Coords = Coords self.UserDefined = UserDefined if Labels is None: self.Labels = [] else: self.Labels = Labels self.Roles = Roles if TextRegion is None: self.TextRegion = [] else: self.TextRegion = TextRegion if ImageRegion is None: self.ImageRegion = [] else: self.ImageRegion = ImageRegion if LineDrawingRegion is None: self.LineDrawingRegion = [] else: self.LineDrawingRegion = LineDrawingRegion if GraphicRegion is None: self.GraphicRegion = [] else: self.GraphicRegion = GraphicRegion if TableRegion is None: self.TableRegion = [] else: self.TableRegion = TableRegion if ChartRegion is None: self.ChartRegion = [] else: self.ChartRegion = ChartRegion if SeparatorRegion is None: self.SeparatorRegion = [] else: self.SeparatorRegion = SeparatorRegion if MathsRegion is None: self.MathsRegion = [] else: self.MathsRegion = MathsRegion if ChemRegion is None: self.ChemRegion = [] else: self.ChemRegion = ChemRegion if MusicRegion is None: self.MusicRegion = [] else: self.MusicRegion = MusicRegion if AdvertRegion is None: self.AdvertRegion = [] else: self.AdvertRegion = AdvertRegion if NoiseRegion is None: self.NoiseRegion = [] else: self.NoiseRegion = NoiseRegion if UnknownRegion is None: self.UnknownRegion = [] else: self.UnknownRegion = UnknownRegion if CustomRegion is None: self.CustomRegion = [] else: self.CustomRegion = CustomRegion self.extensiontype_ = extensiontype_ def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, RegionType) if subclass is not None: return subclass(*args_, **kwargs_) if RegionType.subclass: return RegionType.subclass(*args_, **kwargs_) else: return RegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_AlternativeImage(self): return self.AlternativeImage def set_AlternativeImage(self, AlternativeImage): self.AlternativeImage = AlternativeImage def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def add_AlternativeImage(self, value): self.AlternativeImage.append(value) def insert_AlternativeImage_at(self, index, value): self.AlternativeImage.insert(index, value) def replace_AlternativeImage_at(self, index, value): self.AlternativeImage[index] = value def get_Coords(self): return self.Coords def set_Coords(self, Coords): self.Coords = Coords def get_UserDefined(self): return self.UserDefined def set_UserDefined(self, UserDefined): self.UserDefined = UserDefined def get_Labels(self): return self.Labels def set_Labels(self, Labels): self.Labels = Labels def add_Labels(self, value): self.Labels.append(value) def add_Labels(self, value): self.Labels.append(value) def insert_Labels_at(self, index, value): self.Labels.insert(index, value) def replace_Labels_at(self, index, value): self.Labels[index] = value def get_Roles(self): return self.Roles def set_Roles(self, Roles): self.Roles = Roles def get_TextRegion(self): return self.TextRegion def set_TextRegion(self, TextRegion): self.TextRegion = TextRegion def add_TextRegion(self, value): self.TextRegion.append(value) def add_TextRegion(self, value): self.TextRegion.append(value) def insert_TextRegion_at(self, index, value): self.TextRegion.insert(index, value) def replace_TextRegion_at(self, index, value): self.TextRegion[index] = value def get_ImageRegion(self): return self.ImageRegion def set_ImageRegion(self, ImageRegion): self.ImageRegion = ImageRegion def add_ImageRegion(self, value): self.ImageRegion.append(value) def add_ImageRegion(self, value): self.ImageRegion.append(value) def insert_ImageRegion_at(self, index, value): self.ImageRegion.insert(index, value) def replace_ImageRegion_at(self, index, value): self.ImageRegion[index] = value def get_LineDrawingRegion(self): return self.LineDrawingRegion def set_LineDrawingRegion(self, LineDrawingRegion): self.LineDrawingRegion = LineDrawingRegion def add_LineDrawingRegion(self, value): self.LineDrawingRegion.append(value) def add_LineDrawingRegion(self, value): self.LineDrawingRegion.append(value) def insert_LineDrawingRegion_at(self, index, value): self.LineDrawingRegion.insert(index, value) def replace_LineDrawingRegion_at(self, index, value): self.LineDrawingRegion[index] = value def get_GraphicRegion(self): return self.GraphicRegion def set_GraphicRegion(self, GraphicRegion): self.GraphicRegion = GraphicRegion def add_GraphicRegion(self, value): self.GraphicRegion.append(value) def add_GraphicRegion(self, value): self.GraphicRegion.append(value) def insert_GraphicRegion_at(self, index, value): self.GraphicRegion.insert(index, value) def replace_GraphicRegion_at(self, index, value): self.GraphicRegion[index] = value def get_TableRegion(self): return self.TableRegion def set_TableRegion(self, TableRegion): self.TableRegion = TableRegion def add_TableRegion(self, value): self.TableRegion.append(value) def add_TableRegion(self, value): self.TableRegion.append(value) def insert_TableRegion_at(self, index, value): self.TableRegion.insert(index, value) def replace_TableRegion_at(self, index, value): self.TableRegion[index] = value def get_ChartRegion(self): return self.ChartRegion def set_ChartRegion(self, ChartRegion): self.ChartRegion = ChartRegion def add_ChartRegion(self, value): self.ChartRegion.append(value) def add_ChartRegion(self, value): self.ChartRegion.append(value) def insert_ChartRegion_at(self, index, value): self.ChartRegion.insert(index, value) def replace_ChartRegion_at(self, index, value): self.ChartRegion[index] = value def get_SeparatorRegion(self): return self.SeparatorRegion def set_SeparatorRegion(self, SeparatorRegion): self.SeparatorRegion = SeparatorRegion def add_SeparatorRegion(self, value): self.SeparatorRegion.append(value) def add_SeparatorRegion(self, value): self.SeparatorRegion.append(value) def insert_SeparatorRegion_at(self, index, value): self.SeparatorRegion.insert(index, value) def replace_SeparatorRegion_at(self, index, value): self.SeparatorRegion[index] = value def get_MathsRegion(self): return self.MathsRegion def set_MathsRegion(self, MathsRegion): self.MathsRegion = MathsRegion def add_MathsRegion(self, value): self.MathsRegion.append(value) def add_MathsRegion(self, value): self.MathsRegion.append(value) def insert_MathsRegion_at(self, index, value): self.MathsRegion.insert(index, value) def replace_MathsRegion_at(self, index, value): self.MathsRegion[index] = value def get_ChemRegion(self): return self.ChemRegion def set_ChemRegion(self, ChemRegion): self.ChemRegion = ChemRegion def add_ChemRegion(self, value): self.ChemRegion.append(value) def add_ChemRegion(self, value): self.ChemRegion.append(value) def insert_ChemRegion_at(self, index, value): self.ChemRegion.insert(index, value) def replace_ChemRegion_at(self, index, value): self.ChemRegion[index] = value def get_MusicRegion(self): return self.MusicRegion def set_MusicRegion(self, MusicRegion): self.MusicRegion = MusicRegion def add_MusicRegion(self, value): self.MusicRegion.append(value) def add_MusicRegion(self, value): self.MusicRegion.append(value) def insert_MusicRegion_at(self, index, value): self.MusicRegion.insert(index, value) def replace_MusicRegion_at(self, index, value): self.MusicRegion[index] = value def get_AdvertRegion(self): return self.AdvertRegion def set_AdvertRegion(self, AdvertRegion): self.AdvertRegion = AdvertRegion def add_AdvertRegion(self, value): self.AdvertRegion.append(value) def add_AdvertRegion(self, value): self.AdvertRegion.append(value) def insert_AdvertRegion_at(self, index, value): self.AdvertRegion.insert(index, value) def replace_AdvertRegion_at(self, index, value): self.AdvertRegion[index] = value def get_NoiseRegion(self): return self.NoiseRegion def set_NoiseRegion(self, NoiseRegion): self.NoiseRegion = NoiseRegion def add_NoiseRegion(self, value): self.NoiseRegion.append(value) def add_NoiseRegion(self, value): self.NoiseRegion.append(value) def insert_NoiseRegion_at(self, index, value): self.NoiseRegion.insert(index, value) def replace_NoiseRegion_at(self, index, value): self.NoiseRegion[index] = value def get_UnknownRegion(self): return self.UnknownRegion def set_UnknownRegion(self, UnknownRegion): self.UnknownRegion = UnknownRegion def add_UnknownRegion(self, value): self.UnknownRegion.append(value) def add_UnknownRegion(self, value): self.UnknownRegion.append(value) def insert_UnknownRegion_at(self, index, value): self.UnknownRegion.insert(index, value) def replace_UnknownRegion_at(self, index, value): self.UnknownRegion[index] = value def get_CustomRegion(self): return self.CustomRegion def set_CustomRegion(self, CustomRegion): self.CustomRegion = CustomRegion def add_CustomRegion(self, value): self.CustomRegion.append(value) def add_CustomRegion(self, value): self.CustomRegion.append(value) def insert_CustomRegion_at(self, index, value): self.CustomRegion.insert(index, value) def replace_CustomRegion_at(self, index, value): self.CustomRegion[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def get_continuation(self): return self.continuation def set_continuation(self, continuation): self.continuation = continuation def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ def hasContent_(self): if ( self.AlternativeImage or self.Coords is not None or self.UserDefined is not None or self.Labels or self.Roles is not None or self.TextRegion or self.ImageRegion or self.LineDrawingRegion or self.GraphicRegion or self.TableRegion or self.ChartRegion or self.SeparatorRegion or self.MathsRegion or self.ChemRegion or self.MusicRegion or self.AdvertRegion or self.NoiseRegion or self.UnknownRegion or self.CustomRegion ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('RegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='RegionType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) if self.continuation is not None and 'continuation' not in already_processed: already_processed.add('continuation') outfile.write(' continuation="%s"' % self.gds_format_boolean(self.continuation, input_name='continuation')) if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RegionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for AlternativeImage_ in self.AlternativeImage: AlternativeImage_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='AlternativeImage', pretty_print=pretty_print) if self.Coords is not None: self.Coords.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Coords', pretty_print=pretty_print) if self.UserDefined is not None: self.UserDefined.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserDefined', pretty_print=pretty_print) for Labels_ in self.Labels: Labels_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Labels', pretty_print=pretty_print) if self.Roles is not None: self.Roles.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Roles', pretty_print=pretty_print) for TextRegion_ in self.TextRegion: TextRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextRegion', pretty_print=pretty_print) for ImageRegion_ in self.ImageRegion: ImageRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ImageRegion', pretty_print=pretty_print) for LineDrawingRegion_ in self.LineDrawingRegion: LineDrawingRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='LineDrawingRegion', pretty_print=pretty_print) for GraphicRegion_ in self.GraphicRegion: GraphicRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='GraphicRegion', pretty_print=pretty_print) for TableRegion_ in self.TableRegion: TableRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TableRegion', pretty_print=pretty_print) for ChartRegion_ in self.ChartRegion: ChartRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ChartRegion', pretty_print=pretty_print) for SeparatorRegion_ in self.SeparatorRegion: SeparatorRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='SeparatorRegion', pretty_print=pretty_print) for MathsRegion_ in self.MathsRegion: MathsRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='MathsRegion', pretty_print=pretty_print) for ChemRegion_ in self.ChemRegion: ChemRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='ChemRegion', pretty_print=pretty_print) for MusicRegion_ in self.MusicRegion: MusicRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='MusicRegion', pretty_print=pretty_print) for AdvertRegion_ in self.AdvertRegion: AdvertRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='AdvertRegion', pretty_print=pretty_print) for NoiseRegion_ in self.NoiseRegion: NoiseRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='NoiseRegion', pretty_print=pretty_print) for UnknownRegion_ in self.UnknownRegion: UnknownRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UnknownRegion', pretty_print=pretty_print) for CustomRegion_ in self.CustomRegion: CustomRegion_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='CustomRegion', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value value = find_attr_value_('continuation', node) if value is not None and 'continuation' not in already_processed: already_processed.add('continuation') if value in ('true', '1'): self.continuation = True elif value in ('false', '0'): self.continuation = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'AlternativeImage': obj_ = AlternativeImageType.factory(parent_object_=self) obj_.build(child_) self.AlternativeImage.append(obj_) obj_.original_tagname_ = 'AlternativeImage' elif nodeName_ == 'Coords': obj_ = CoordsType.factory(parent_object_=self) obj_.build(child_) self.Coords = obj_ obj_.original_tagname_ = 'Coords' elif nodeName_ == 'UserDefined': obj_ = UserDefinedType.factory(parent_object_=self) obj_.build(child_) self.UserDefined = obj_ obj_.original_tagname_ = 'UserDefined' elif nodeName_ == 'Labels': obj_ = LabelsType.factory(parent_object_=self) obj_.build(child_) self.Labels.append(obj_) obj_.original_tagname_ = 'Labels' elif nodeName_ == 'Roles': obj_ = RolesType.factory(parent_object_=self) obj_.build(child_) self.Roles = obj_ obj_.original_tagname_ = 'Roles' elif nodeName_ == 'TextRegion': obj_ = TextRegionType.factory(parent_object_=self) obj_.build(child_) self.TextRegion.append(obj_) obj_.original_tagname_ = 'TextRegion' elif nodeName_ == 'ImageRegion': obj_ = ImageRegionType.factory(parent_object_=self) obj_.build(child_) self.ImageRegion.append(obj_) obj_.original_tagname_ = 'ImageRegion' elif nodeName_ == 'LineDrawingRegion': obj_ = LineDrawingRegionType.factory(parent_object_=self) obj_.build(child_) self.LineDrawingRegion.append(obj_) obj_.original_tagname_ = 'LineDrawingRegion' elif nodeName_ == 'GraphicRegion': obj_ = GraphicRegionType.factory(parent_object_=self) obj_.build(child_) self.GraphicRegion.append(obj_) obj_.original_tagname_ = 'GraphicRegion' elif nodeName_ == 'TableRegion': obj_ = TableRegionType.factory(parent_object_=self) obj_.build(child_) self.TableRegion.append(obj_) obj_.original_tagname_ = 'TableRegion' elif nodeName_ == 'ChartRegion': obj_ = ChartRegionType.factory(parent_object_=self) obj_.build(child_) self.ChartRegion.append(obj_) obj_.original_tagname_ = 'ChartRegion' elif nodeName_ == 'SeparatorRegion': obj_ = SeparatorRegionType.factory(parent_object_=self) obj_.build(child_) self.SeparatorRegion.append(obj_) obj_.original_tagname_ = 'SeparatorRegion' elif nodeName_ == 'MathsRegion': obj_ = MathsRegionType.factory(parent_object_=self) obj_.build(child_) self.MathsRegion.append(obj_) obj_.original_tagname_ = 'MathsRegion' elif nodeName_ == 'ChemRegion': obj_ = ChemRegionType.factory(parent_object_=self) obj_.build(child_) self.ChemRegion.append(obj_) obj_.original_tagname_ = 'ChemRegion' elif nodeName_ == 'MusicRegion': obj_ = MusicRegionType.factory(parent_object_=self) obj_.build(child_) self.MusicRegion.append(obj_) obj_.original_tagname_ = 'MusicRegion' elif nodeName_ == 'AdvertRegion': obj_ = AdvertRegionType.factory(parent_object_=self) obj_.build(child_) self.AdvertRegion.append(obj_) obj_.original_tagname_ = 'AdvertRegion' elif nodeName_ == 'NoiseRegion': obj_ = NoiseRegionType.factory(parent_object_=self) obj_.build(child_) self.NoiseRegion.append(obj_) obj_.original_tagname_ = 'NoiseRegion' elif nodeName_ == 'UnknownRegion': obj_ = UnknownRegionType.factory(parent_object_=self) obj_.build(child_) self.UnknownRegion.append(obj_) obj_.original_tagname_ = 'UnknownRegion' elif nodeName_ == 'CustomRegion': obj_ = CustomRegionType.factory(parent_object_=self) obj_.build(child_) self.CustomRegion.append(obj_) obj_.original_tagname_ = 'CustomRegion' # end class RegionType class AlternativeImageType(GeneratedsSuper): """Confidence value (between 0 and 1)""" subclass = None superclass = None def __init__(self, filename=None, comments=None, conf=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.filename = _cast(None, filename) self.comments = _cast(None, comments) self.conf = _cast(float, conf) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, AlternativeImageType) if subclass is not None: return subclass(*args_, **kwargs_) if AlternativeImageType.subclass: return AlternativeImageType.subclass(*args_, **kwargs_) else: return AlternativeImageType(*args_, **kwargs_) factory = staticmethod(factory) def get_filename(self): return self.filename def set_filename(self, filename): self.filename = filename def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def get_conf(self): return self.conf def set_conf(self, conf): self.conf = conf def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='AlternativeImageType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('AlternativeImageType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AlternativeImageType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AlternativeImageType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='AlternativeImageType'): if self.filename is not None and 'filename' not in already_processed: already_processed.add('filename') outfile.write(' filename=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.filename), input_name='filename')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) if self.conf is not None and 'conf' not in already_processed: already_processed.add('conf') outfile.write(' conf=%s' % (quote_attrib(self.conf), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='AlternativeImageType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('filename', node) if value is not None and 'filename' not in already_processed: already_processed.add('filename') self.filename = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value value = find_attr_value_('conf', node) if value is not None and 'conf' not in already_processed: already_processed.add('conf') self.conf = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class AlternativeImageType class GraphemesType(GeneratedsSuper): """Container for graphemes, grapheme groups and non-printing characters.""" subclass = None superclass = None def __init__(self, Grapheme=None, NonPrintingChar=None, GraphemeGroup=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') if Grapheme is None: self.Grapheme = [] else: self.Grapheme = Grapheme if NonPrintingChar is None: self.NonPrintingChar = [] else: self.NonPrintingChar = NonPrintingChar if GraphemeGroup is None: self.GraphemeGroup = [] else: self.GraphemeGroup = GraphemeGroup def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GraphemesType) if subclass is not None: return subclass(*args_, **kwargs_) if GraphemesType.subclass: return GraphemesType.subclass(*args_, **kwargs_) else: return GraphemesType(*args_, **kwargs_) factory = staticmethod(factory) def get_Grapheme(self): return self.Grapheme def set_Grapheme(self, Grapheme): self.Grapheme = Grapheme def add_Grapheme(self, value): self.Grapheme.append(value) def add_Grapheme(self, value): self.Grapheme.append(value) def insert_Grapheme_at(self, index, value): self.Grapheme.insert(index, value) def replace_Grapheme_at(self, index, value): self.Grapheme[index] = value def get_NonPrintingChar(self): return self.NonPrintingChar def set_NonPrintingChar(self, NonPrintingChar): self.NonPrintingChar = NonPrintingChar def add_NonPrintingChar(self, value): self.NonPrintingChar.append(value) def add_NonPrintingChar(self, value): self.NonPrintingChar.append(value) def insert_NonPrintingChar_at(self, index, value): self.NonPrintingChar.insert(index, value) def replace_NonPrintingChar_at(self, index, value): self.NonPrintingChar[index] = value def get_GraphemeGroup(self): return self.GraphemeGroup def set_GraphemeGroup(self, GraphemeGroup): self.GraphemeGroup = GraphemeGroup def add_GraphemeGroup(self, value): self.GraphemeGroup.append(value) def add_GraphemeGroup(self, value): self.GraphemeGroup.append(value) def insert_GraphemeGroup_at(self, index, value): self.GraphemeGroup.insert(index, value) def replace_GraphemeGroup_at(self, index, value): self.GraphemeGroup[index] = value def hasContent_(self): if ( self.Grapheme or self.NonPrintingChar or self.GraphemeGroup ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemesType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GraphemesType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphemesType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GraphemesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GraphemesType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for Grapheme_ in self.Grapheme: Grapheme_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Grapheme', pretty_print=pretty_print) for NonPrintingChar_ in self.NonPrintingChar: NonPrintingChar_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='NonPrintingChar', pretty_print=pretty_print) for GraphemeGroup_ in self.GraphemeGroup: GraphemeGroup_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='GraphemeGroup', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Grapheme': obj_ = GraphemeType.factory(parent_object_=self) obj_.build(child_) self.Grapheme.append(obj_) obj_.original_tagname_ = 'Grapheme' elif nodeName_ == 'NonPrintingChar': obj_ = NonPrintingCharType.factory(parent_object_=self) obj_.build(child_) self.NonPrintingChar.append(obj_) obj_.original_tagname_ = 'NonPrintingChar' elif nodeName_ == 'GraphemeGroup': obj_ = GraphemeGroupType.factory(parent_object_=self) obj_.build(child_) self.GraphemeGroup.append(obj_) obj_.original_tagname_ = 'GraphemeGroup' # end class GraphemesType class GraphemeBaseType(GeneratedsSuper): """Base type for graphemes, grapheme groups and non-printing characters. Order index of grapheme, group, or non-printing character within the parent container (graphemes or glyph or grapheme group). Type of character represented by the grapheme, group, or non-printing character element. For generic useFor generic use""" subclass = None superclass = None def __init__(self, id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, extensiontype_=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.id = _cast(None, id) self.index = _cast(int, index) self.ligature = _cast(bool, ligature) self.charType = _cast(None, charType) self.custom = _cast(None, custom) self.comments = _cast(None, comments) if TextEquiv is None: self.TextEquiv = [] else: self.TextEquiv = TextEquiv self.extensiontype_ = extensiontype_ def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GraphemeBaseType) if subclass is not None: return subclass(*args_, **kwargs_) if GraphemeBaseType.subclass: return GraphemeBaseType.subclass(*args_, **kwargs_) else: return GraphemeBaseType(*args_, **kwargs_) factory = staticmethod(factory) def get_TextEquiv(self): return self.TextEquiv def set_TextEquiv(self, TextEquiv): self.TextEquiv = TextEquiv def add_TextEquiv(self, value): self.TextEquiv.append(value) def add_TextEquiv(self, value): self.TextEquiv.append(value) def insert_TextEquiv_at(self, index, value): self.TextEquiv.insert(index, value) def replace_TextEquiv_at(self, index, value): self.TextEquiv[index] = value def get_id(self): return self.id def set_id(self, id): self.id = id def get_index(self): return self.index def set_index(self, index): self.index = index def get_ligature(self): return self.ligature def set_ligature(self, ligature): self.ligature = ligature def get_charType(self): return self.charType def set_charType(self, charType): self.charType = charType def get_custom(self): return self.custom def set_custom(self, custom): self.custom = custom def get_comments(self): return self.comments def set_comments(self, comments): self.comments = comments def get_extensiontype_(self): return self.extensiontype_ def set_extensiontype_(self, extensiontype_): self.extensiontype_ = extensiontype_ def hasContent_(self): if ( self.TextEquiv ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeBaseType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GraphemeBaseType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphemeBaseType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GraphemeBaseType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GraphemeBaseType'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) if self.index is not None and 'index' not in already_processed: already_processed.add('index') outfile.write(' index="%s"' % self.gds_format_integer(self.index, input_name='index')) if self.ligature is not None and 'ligature' not in already_processed: already_processed.add('ligature') outfile.write(' ligature="%s"' % self.gds_format_boolean(self.ligature, input_name='ligature')) if self.charType is not None and 'charType' not in already_processed: already_processed.add('charType') outfile.write(' charType=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.charType), input_name='charType')), )) if self.custom is not None and 'custom' not in already_processed: already_processed.add('custom') outfile.write(' custom=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.custom), input_name='custom')), )) if self.comments is not None and 'comments' not in already_processed: already_processed.add('comments') outfile.write(' comments=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.comments), input_name='comments')), )) if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeBaseType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for TextEquiv_ in self.TextEquiv: TextEquiv_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextEquiv', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('id', node) if value is not None and 'id' not in already_processed: already_processed.add('id') self.id = value value = find_attr_value_('index', node) if value is not None and 'index' not in already_processed: already_processed.add('index') try: self.index = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('ligature', node) if value is not None and 'ligature' not in already_processed: already_processed.add('ligature') if value in ('true', '1'): self.ligature = True elif value in ('false', '0'): self.ligature = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('charType', node) if value is not None and 'charType' not in already_processed: already_processed.add('charType') self.charType = value value = find_attr_value_('custom', node) if value is not None and 'custom' not in already_processed: already_processed.add('custom') self.custom = value value = find_attr_value_('comments', node) if value is not None and 'comments' not in already_processed: already_processed.add('comments') self.comments = value value = find_attr_value_('xsi:type', node) if value is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') self.extensiontype_ = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'TextEquiv': obj_ = TextEquivType.factory(parent_object_=self) obj_.build(child_) self.TextEquiv.append(obj_) obj_.original_tagname_ = 'TextEquiv' # end class GraphemeBaseType class GraphemeType(GraphemeBaseType): """Represents a sub-element of a glyph. Smallest graphical unit that can be assigned a Unicode code point.""" subclass = None superclass = GraphemeBaseType def __init__(self, id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, Coords=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(GraphemeType, self).__init__(id, index, ligature, charType, custom, comments, TextEquiv, **kwargs_) self.Coords = Coords def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GraphemeType) if subclass is not None: return subclass(*args_, **kwargs_) if GraphemeType.subclass: return GraphemeType.subclass(*args_, **kwargs_) else: return GraphemeType(*args_, **kwargs_) factory = staticmethod(factory) def get_Coords(self): return self.Coords def set_Coords(self, Coords): self.Coords = Coords def hasContent_(self): if ( self.Coords is not None or super(GraphemeType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GraphemeType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphemeType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GraphemeType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GraphemeType'): super(GraphemeType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphemeType') def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeType', fromsubclass_=False, pretty_print=True): super(GraphemeType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: eol_ = '' if self.Coords is not None: self.Coords.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Coords', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): super(GraphemeType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Coords': obj_ = CoordsType.factory(parent_object_=self) obj_.build(child_) self.Coords = obj_ obj_.original_tagname_ = 'Coords' super(GraphemeType, self).buildChildren(child_, node, nodeName_, True) # end class GraphemeType class NonPrintingCharType(GraphemeBaseType): """A glyph component without visual representation but with Unicode code point. Non-visual / non-printing / control character. Part of grapheme container (of glyph) or grapheme sub group.""" subclass = None superclass = GraphemeBaseType def __init__(self, id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(NonPrintingCharType, self).__init__(id, index, ligature, charType, custom, comments, TextEquiv, **kwargs_) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, NonPrintingCharType) if subclass is not None: return subclass(*args_, **kwargs_) if NonPrintingCharType.subclass: return NonPrintingCharType.subclass(*args_, **kwargs_) else: return NonPrintingCharType(*args_, **kwargs_) factory = staticmethod(factory) def hasContent_(self): if ( super(NonPrintingCharType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='NonPrintingCharType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('NonPrintingCharType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NonPrintingCharType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NonPrintingCharType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='NonPrintingCharType'): super(NonPrintingCharType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NonPrintingCharType') def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='NonPrintingCharType', fromsubclass_=False, pretty_print=True): super(NonPrintingCharType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): super(NonPrintingCharType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(NonPrintingCharType, self).buildChildren(child_, node, nodeName_, True) pass # end class NonPrintingCharType class GraphemeGroupType(GraphemeBaseType): subclass = None superclass = GraphemeBaseType def __init__(self, id=None, index=None, ligature=None, charType=None, custom=None, comments=None, TextEquiv=None, Grapheme=None, NonPrintingChar=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(GraphemeGroupType, self).__init__(id, index, ligature, charType, custom, comments, TextEquiv, **kwargs_) if Grapheme is None: self.Grapheme = [] else: self.Grapheme = Grapheme if NonPrintingChar is None: self.NonPrintingChar = [] else: self.NonPrintingChar = NonPrintingChar def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GraphemeGroupType) if subclass is not None: return subclass(*args_, **kwargs_) if GraphemeGroupType.subclass: return GraphemeGroupType.subclass(*args_, **kwargs_) else: return GraphemeGroupType(*args_, **kwargs_) factory = staticmethod(factory) def get_Grapheme(self): return self.Grapheme def set_Grapheme(self, Grapheme): self.Grapheme = Grapheme def add_Grapheme(self, value): self.Grapheme.append(value) def add_Grapheme(self, value): self.Grapheme.append(value) def insert_Grapheme_at(self, index, value): self.Grapheme.insert(index, value) def replace_Grapheme_at(self, index, value): self.Grapheme[index] = value def get_NonPrintingChar(self): return self.NonPrintingChar def set_NonPrintingChar(self, NonPrintingChar): self.NonPrintingChar = NonPrintingChar def add_NonPrintingChar(self, value): self.NonPrintingChar.append(value) def add_NonPrintingChar(self, value): self.NonPrintingChar.append(value) def insert_NonPrintingChar_at(self, index, value): self.NonPrintingChar.insert(index, value) def replace_NonPrintingChar_at(self, index, value): self.NonPrintingChar[index] = value def hasContent_(self): if ( self.Grapheme or self.NonPrintingChar or super(GraphemeGroupType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeGroupType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GraphemeGroupType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphemeGroupType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GraphemeGroupType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GraphemeGroupType'): super(GraphemeGroupType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphemeGroupType') def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='GraphemeGroupType', fromsubclass_=False, pretty_print=True): super(GraphemeGroupType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: eol_ = '' for Grapheme_ in self.Grapheme: Grapheme_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Grapheme', pretty_print=pretty_print) for NonPrintingChar_ in self.NonPrintingChar: NonPrintingChar_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='NonPrintingChar', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): super(GraphemeGroupType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Grapheme': obj_ = GraphemeType.factory(parent_object_=self) obj_.build(child_) self.Grapheme.append(obj_) obj_.original_tagname_ = 'Grapheme' elif nodeName_ == 'NonPrintingChar': obj_ = NonPrintingCharType.factory(parent_object_=self) obj_.build(child_) self.NonPrintingChar.append(obj_) obj_.original_tagname_ = 'NonPrintingChar' super(GraphemeGroupType, self).buildChildren(child_, node, nodeName_, True) # end class GraphemeGroupType class UserDefinedType(GeneratedsSuper): """Container for user-defined attributes""" subclass = None superclass = None def __init__(self, UserAttribute=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') if UserAttribute is None: self.UserAttribute = [] else: self.UserAttribute = UserAttribute def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, UserDefinedType) if subclass is not None: return subclass(*args_, **kwargs_) if UserDefinedType.subclass: return UserDefinedType.subclass(*args_, **kwargs_) else: return UserDefinedType(*args_, **kwargs_) factory = staticmethod(factory) def get_UserAttribute(self): return self.UserAttribute def set_UserAttribute(self, UserAttribute): self.UserAttribute = UserAttribute def add_UserAttribute(self, value): self.UserAttribute.append(value) def add_UserAttribute(self, value): self.UserAttribute.append(value) def insert_UserAttribute_at(self, index, value): self.UserAttribute.insert(index, value) def replace_UserAttribute_at(self, index, value): self.UserAttribute[index] = value def hasContent_(self): if ( self.UserAttribute ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UserDefinedType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('UserDefinedType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserDefinedType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserDefinedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='UserDefinedType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UserDefinedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for UserAttribute_ in self.UserAttribute: UserAttribute_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='UserAttribute', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'UserAttribute': obj_ = UserAttributeType.factory(parent_object_=self) obj_.build(child_) self.UserAttribute.append(obj_) obj_.original_tagname_ = 'UserAttribute' # end class UserDefinedType class UserAttributeType(GeneratedsSuper): """Structured custom data defined by name, type and value.""" subclass = None superclass = None def __init__(self, name=None, description=None, type_=None, value=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.name = _cast(None, name) self.description = _cast(None, description) self.type_ = _cast(None, type_) self.value = _cast(None, value) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, UserAttributeType) if subclass is not None: return subclass(*args_, **kwargs_) if UserAttributeType.subclass: return UserAttributeType.subclass(*args_, **kwargs_) else: return UserAttributeType(*args_, **kwargs_) factory = staticmethod(factory) def get_name(self): return self.name def set_name(self, name): self.name = name def get_description(self): return self.description def set_description(self, description): self.description = description def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_value(self): return self.value def set_value(self, value): self.value = value def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UserAttributeType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('UserAttributeType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UserAttributeType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UserAttributeType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='UserAttributeType'): if self.name is not None and 'name' not in already_processed: already_processed.add('name') outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), )) if self.description is not None and 'description' not in already_processed: already_processed.add('description') outfile.write(' description=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.description), input_name='description')), )) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) if self.value is not None and 'value' not in already_processed: already_processed.add('value') outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='UserAttributeType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('name', node) if value is not None and 'name' not in already_processed: already_processed.add('name') self.name = value value = find_attr_value_('description', node) if value is not None and 'description' not in already_processed: already_processed.add('description') self.description = value value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('value', node) if value is not None and 'value' not in already_processed: already_processed.add('value') self.value = value def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class UserAttributeType class TableCellRoleType(GeneratedsSuper): """Cell position in table starting with row 0Cell position in table starting with column 0Number of rows the cell spans (optional; default is 1)Number of columns the cell spans (optional; default is 1) Is the cell a column or row header?""" subclass = None superclass = None def __init__(self, rowIndex=None, columnIndex=None, rowSpan=None, colSpan=None, header=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.rowIndex = _cast(int, rowIndex) self.columnIndex = _cast(int, columnIndex) self.rowSpan = _cast(int, rowSpan) self.colSpan = _cast(int, colSpan) self.header = _cast(bool, header) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, TableCellRoleType) if subclass is not None: return subclass(*args_, **kwargs_) if TableCellRoleType.subclass: return TableCellRoleType.subclass(*args_, **kwargs_) else: return TableCellRoleType(*args_, **kwargs_) factory = staticmethod(factory) def get_rowIndex(self): return self.rowIndex def set_rowIndex(self, rowIndex): self.rowIndex = rowIndex def get_columnIndex(self): return self.columnIndex def set_columnIndex(self, columnIndex): self.columnIndex = columnIndex def get_rowSpan(self): return self.rowSpan def set_rowSpan(self, rowSpan): self.rowSpan = rowSpan def get_colSpan(self): return self.colSpan def set_colSpan(self, colSpan): self.colSpan = colSpan def get_header(self): return self.header def set_header(self, header): self.header = header def hasContent_(self): if ( ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TableCellRoleType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('TableCellRoleType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TableCellRoleType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TableCellRoleType', pretty_print=pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='TableCellRoleType'): if self.rowIndex is not None and 'rowIndex' not in already_processed: already_processed.add('rowIndex') outfile.write(' rowIndex="%s"' % self.gds_format_integer(self.rowIndex, input_name='rowIndex')) if self.columnIndex is not None and 'columnIndex' not in already_processed: already_processed.add('columnIndex') outfile.write(' columnIndex="%s"' % self.gds_format_integer(self.columnIndex, input_name='columnIndex')) if self.rowSpan is not None and 'rowSpan' not in already_processed: already_processed.add('rowSpan') outfile.write(' rowSpan="%s"' % self.gds_format_integer(self.rowSpan, input_name='rowSpan')) if self.colSpan is not None and 'colSpan' not in already_processed: already_processed.add('colSpan') outfile.write(' colSpan="%s"' % self.gds_format_integer(self.colSpan, input_name='colSpan')) if self.header is not None and 'header' not in already_processed: already_processed.add('header') outfile.write(' header="%s"' % self.gds_format_boolean(self.header, input_name='header')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='TableCellRoleType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('rowIndex', node) if value is not None and 'rowIndex' not in already_processed: already_processed.add('rowIndex') try: self.rowIndex = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('columnIndex', node) if value is not None and 'columnIndex' not in already_processed: already_processed.add('columnIndex') try: self.columnIndex = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('rowSpan', node) if value is not None and 'rowSpan' not in already_processed: already_processed.add('rowSpan') try: self.rowSpan = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('colSpan', node) if value is not None and 'colSpan' not in already_processed: already_processed.add('colSpan') try: self.colSpan = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('header', node) if value is not None and 'header' not in already_processed: already_processed.add('header') if value in ('true', '1'): self.header = True elif value in ('false', '0'): self.header = False else: raise_parse_error(node, 'Bad boolean attribute') def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): pass # end class TableCellRoleType class RolesType(GeneratedsSuper): subclass = None superclass = None def __init__(self, TableCellRole=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') self.TableCellRole = TableCellRole def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, RolesType) if subclass is not None: return subclass(*args_, **kwargs_) if RolesType.subclass: return RolesType.subclass(*args_, **kwargs_) else: return RolesType(*args_, **kwargs_) factory = staticmethod(factory) def get_TableCellRole(self): return self.TableCellRole def set_TableCellRole(self, TableCellRole): self.TableCellRole = TableCellRole def hasContent_(self): if ( self.TableCellRole is not None ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RolesType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('RolesType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RolesType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='RolesType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='RolesType'): pass def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', name_='RolesType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.TableCellRole is not None: self.TableCellRole.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TableCellRole', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): pass def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'TableCellRole': obj_ = TableCellRoleType.factory(parent_object_=self) obj_.build(child_) self.TableCellRole = obj_ obj_.original_tagname_ = 'TableCellRole' # end class RolesType class CustomRegionType(RegionType): """Regions containing content that is not covered by the default types (text, graphic, image, line drawing, chart, table, separator, maths, map, music, chem, advert, noise, unknown). Information on the type of content represented by this region""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, type_=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(CustomRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.type_ = _cast(None, type_) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, CustomRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if CustomRegionType.subclass: return CustomRegionType.subclass(*args_, **kwargs_) else: return CustomRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def hasContent_(self): if ( super(CustomRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='CustomRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('CustomRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='CustomRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='CustomRegionType'): super(CustomRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CustomRegionType') if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='CustomRegionType', fromsubclass_=False, pretty_print=True): super(CustomRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value super(CustomRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(CustomRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class CustomRegionType class UnknownRegionType(RegionType): """To be used if the region type cannot be ascertained.""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(UnknownRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, UnknownRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if UnknownRegionType.subclass: return UnknownRegionType.subclass(*args_, **kwargs_) else: return UnknownRegionType(*args_, **kwargs_) factory = staticmethod(factory) def hasContent_(self): if ( super(UnknownRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='UnknownRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('UnknownRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnknownRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='UnknownRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='UnknownRegionType'): super(UnknownRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UnknownRegionType') def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='UnknownRegionType', fromsubclass_=False, pretty_print=True): super(UnknownRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): super(UnknownRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(UnknownRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class UnknownRegionType class NoiseRegionType(RegionType): """Noise regions are regions where no real data lies, only false data created by artifacts on the document or scanner noise.""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(NoiseRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, NoiseRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if NoiseRegionType.subclass: return NoiseRegionType.subclass(*args_, **kwargs_) else: return NoiseRegionType(*args_, **kwargs_) factory = staticmethod(factory) def hasContent_(self): if ( super(NoiseRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='NoiseRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('NoiseRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NoiseRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='NoiseRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='NoiseRegionType'): super(NoiseRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='NoiseRegionType') def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='NoiseRegionType', fromsubclass_=False, pretty_print=True): super(NoiseRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): super(NoiseRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(NoiseRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class NoiseRegionType class AdvertRegionType(RegionType): """Regions containing advertisements. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The background colour of the region""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(AdvertRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.bgColour = _cast(None, bgColour) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, AdvertRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if AdvertRegionType.subclass: return AdvertRegionType.subclass(*args_, **kwargs_) else: return AdvertRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def hasContent_(self): if ( super(AdvertRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='AdvertRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('AdvertRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdvertRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='AdvertRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='AdvertRegionType'): super(AdvertRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AdvertRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='AdvertRegionType', fromsubclass_=False, pretty_print=True): super(AdvertRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value super(AdvertRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(AdvertRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class AdvertRegionType class MusicRegionType(RegionType): """Regions containing musical notations. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The background colour of the region""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(MusicRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.bgColour = _cast(None, bgColour) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, MusicRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if MusicRegionType.subclass: return MusicRegionType.subclass(*args_, **kwargs_) else: return MusicRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def hasContent_(self): if ( super(MusicRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='MusicRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MusicRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MusicRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MusicRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='MusicRegionType'): super(MusicRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MusicRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='MusicRegionType', fromsubclass_=False, pretty_print=True): super(MusicRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value super(MusicRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(MusicRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class MusicRegionType class MapRegionType(RegionType): """Regions containing maps. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti- clockwise rotation). Range: -179.999,180""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(MapRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, MapRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if MapRegionType.subclass: return MapRegionType.subclass(*args_, **kwargs_) else: return MapRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def hasContent_(self): if ( super(MapRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='MapRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MapRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MapRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MapRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='MapRegionType'): super(MapRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MapRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='MapRegionType', fromsubclass_=False, pretty_print=True): super(MapRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) super(MapRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(MapRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class MapRegionType class ChemRegionType(RegionType): """Regions containing chemical formulas. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The background colour of the region""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(ChemRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.bgColour = _cast(None, bgColour) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, ChemRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if ChemRegionType.subclass: return ChemRegionType.subclass(*args_, **kwargs_) else: return ChemRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def hasContent_(self): if ( super(ChemRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='ChemRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('ChemRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChemRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='ChemRegionType'): super(ChemRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChemRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='ChemRegionType', fromsubclass_=False, pretty_print=True): super(ChemRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value super(ChemRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(ChemRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class ChemRegionType class MathsRegionType(RegionType): """Regions containing equations and mathematical symbols should be marked as maths regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti- clockwise rotation). Range: -179.999,180 The background colour of the region""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, bgColour=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(MathsRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.bgColour = _cast(None, bgColour) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, MathsRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if MathsRegionType.subclass: return MathsRegionType.subclass(*args_, **kwargs_) else: return MathsRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def hasContent_(self): if ( super(MathsRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='MathsRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MathsRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MathsRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='MathsRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='MathsRegionType'): super(MathsRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MathsRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='MathsRegionType', fromsubclass_=False, pretty_print=True): super(MathsRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value super(MathsRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(MathsRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class MathsRegionType class SeparatorRegionType(RegionType): """Separators are lines that lie between columns and paragraphs and can be used to logically separate different articles from each other. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The colour of the separator""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, colour=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(SeparatorRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.colour = _cast(None, colour) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, SeparatorRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if SeparatorRegionType.subclass: return SeparatorRegionType.subclass(*args_, **kwargs_) else: return SeparatorRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_colour(self): return self.colour def set_colour(self, colour): self.colour = colour def hasContent_(self): if ( super(SeparatorRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='SeparatorRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('SeparatorRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SeparatorRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='SeparatorRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='SeparatorRegionType'): super(SeparatorRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SeparatorRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.colour is not None and 'colour' not in already_processed: already_processed.add('colour') outfile.write(' colour=%s' % (quote_attrib(self.colour), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='SeparatorRegionType', fromsubclass_=False, pretty_print=True): super(SeparatorRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('colour', node) if value is not None and 'colour' not in already_processed: already_processed.add('colour') self.colour = value super(SeparatorRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(SeparatorRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class SeparatorRegionType class ChartRegionType(RegionType): """Regions containing charts or graphs of any type, should be marked as chart regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The type of chart in the region An approximation of the number of colours used in the region The background colour of the region Specifies whether the region also contains text""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, type_=None, numColours=None, bgColour=None, embText=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(ChartRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.type_ = _cast(None, type_) self.numColours = _cast(int, numColours) self.bgColour = _cast(None, bgColour) self.embText = _cast(bool, embText) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, ChartRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if ChartRegionType.subclass: return ChartRegionType.subclass(*args_, **kwargs_) else: return ChartRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_numColours(self): return self.numColours def set_numColours(self, numColours): self.numColours = numColours def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def get_embText(self): return self.embText def set_embText(self, embText): self.embText = embText def hasContent_(self): if ( super(ChartRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='ChartRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('ChartRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChartRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ChartRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='ChartRegionType'): super(ChartRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ChartRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.numColours is not None and 'numColours' not in already_processed: already_processed.add('numColours') outfile.write(' numColours="%s"' % self.gds_format_integer(self.numColours, input_name='numColours')) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) if self.embText is not None and 'embText' not in already_processed: already_processed.add('embText') outfile.write(' embText="%s"' % self.gds_format_boolean(self.embText, input_name='embText')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='ChartRegionType', fromsubclass_=False, pretty_print=True): super(ChartRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('numColours', node) if value is not None and 'numColours' not in already_processed: already_processed.add('numColours') try: self.numColours = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value value = find_attr_value_('embText', node) if value is not None and 'embText' not in already_processed: already_processed.add('embText') if value in ('true', '1'): self.embText = True elif value in ('false', '0'): self.embText = False else: raise_parse_error(node, 'Bad boolean attribute') super(ChartRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(ChartRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class ChartRegionType class TableRegionType(RegionType): """Tabular data in any form is represented with a table region. Rows and columns may or may not have separator lines; these lines are not separator regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti- clockwise rotation). Range: -179.999,180 The number of rows present in the table The number of columns present in the table The colour of the lines used in the region The background colour of the region Specifies the presence of line separators Specifies whether the region also contains text""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, rows=None, columns=None, lineColour=None, bgColour=None, lineSeparators=None, embText=None, Grid=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(TableRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.rows = _cast(int, rows) self.columns = _cast(int, columns) self.lineColour = _cast(None, lineColour) self.bgColour = _cast(None, bgColour) self.lineSeparators = _cast(bool, lineSeparators) self.embText = _cast(bool, embText) self.Grid = Grid def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, TableRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if TableRegionType.subclass: return TableRegionType.subclass(*args_, **kwargs_) else: return TableRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_Grid(self): return self.Grid def set_Grid(self, Grid): self.Grid = Grid def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_rows(self): return self.rows def set_rows(self, rows): self.rows = rows def get_columns(self): return self.columns def set_columns(self, columns): self.columns = columns def get_lineColour(self): return self.lineColour def set_lineColour(self, lineColour): self.lineColour = lineColour def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def get_lineSeparators(self): return self.lineSeparators def set_lineSeparators(self, lineSeparators): self.lineSeparators = lineSeparators def get_embText(self): return self.embText def set_embText(self, embText): self.embText = embText def hasContent_(self): if ( self.Grid is not None or super(TableRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='TableRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('TableRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TableRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TableRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='TableRegionType'): super(TableRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TableRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.rows is not None and 'rows' not in already_processed: already_processed.add('rows') outfile.write(' rows="%s"' % self.gds_format_integer(self.rows, input_name='rows')) if self.columns is not None and 'columns' not in already_processed: already_processed.add('columns') outfile.write(' columns="%s"' % self.gds_format_integer(self.columns, input_name='columns')) if self.lineColour is not None and 'lineColour' not in already_processed: already_processed.add('lineColour') outfile.write(' lineColour=%s' % (quote_attrib(self.lineColour), )) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) if self.lineSeparators is not None and 'lineSeparators' not in already_processed: already_processed.add('lineSeparators') outfile.write(' lineSeparators="%s"' % self.gds_format_boolean(self.lineSeparators, input_name='lineSeparators')) if self.embText is not None and 'embText' not in already_processed: already_processed.add('embText') outfile.write(' embText="%s"' % self.gds_format_boolean(self.embText, input_name='embText')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='TableRegionType', fromsubclass_=False, pretty_print=True): super(TableRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: eol_ = '' if self.Grid is not None: self.Grid.export(outfile, level, namespaceprefix_, namespacedef_='', name_='Grid', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('rows', node) if value is not None and 'rows' not in already_processed: already_processed.add('rows') try: self.rows = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('columns', node) if value is not None and 'columns' not in already_processed: already_processed.add('columns') try: self.columns = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('lineColour', node) if value is not None and 'lineColour' not in already_processed: already_processed.add('lineColour') self.lineColour = value value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value value = find_attr_value_('lineSeparators', node) if value is not None and 'lineSeparators' not in already_processed: already_processed.add('lineSeparators') if value in ('true', '1'): self.lineSeparators = True elif value in ('false', '0'): self.lineSeparators = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('embText', node) if value is not None and 'embText' not in already_processed: already_processed.add('embText') if value in ('true', '1'): self.embText = True elif value in ('false', '0'): self.embText = False else: raise_parse_error(node, 'Bad boolean attribute') super(TableRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'Grid': obj_ = GridType.factory(parent_object_=self) obj_.build(child_) self.Grid = obj_ obj_.original_tagname_ = 'Grid' super(TableRegionType, self).buildChildren(child_, node, nodeName_, True) # end class TableRegionType class GraphicRegionType(RegionType): """Regions containing simple graphics, such as a company logo, should be marked as graphic regions. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The type of graphic in the region An approximation of the number of colours used in the region Specifies whether the region also contains text.""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, type_=None, numColours=None, embText=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(GraphicRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.type_ = _cast(None, type_) self.numColours = _cast(int, numColours) self.embText = _cast(bool, embText) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, GraphicRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if GraphicRegionType.subclass: return GraphicRegionType.subclass(*args_, **kwargs_) else: return GraphicRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_numColours(self): return self.numColours def set_numColours(self, numColours): self.numColours = numColours def get_embText(self): return self.embText def set_embText(self, embText): self.embText = embText def hasContent_(self): if ( super(GraphicRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='GraphicRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GraphicRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphicRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='GraphicRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='GraphicRegionType'): super(GraphicRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GraphicRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.numColours is not None and 'numColours' not in already_processed: already_processed.add('numColours') outfile.write(' numColours="%s"' % self.gds_format_integer(self.numColours, input_name='numColours')) if self.embText is not None and 'embText' not in already_processed: already_processed.add('embText') outfile.write(' embText="%s"' % self.gds_format_boolean(self.embText, input_name='embText')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='GraphicRegionType', fromsubclass_=False, pretty_print=True): super(GraphicRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('numColours', node) if value is not None and 'numColours' not in already_processed: already_processed.add('numColours') try: self.numColours = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('embText', node) if value is not None and 'embText' not in already_processed: already_processed.add('embText') if value in ('true', '1'): self.embText = True elif value in ('false', '0'): self.embText = False else: raise_parse_error(node, 'Bad boolean attribute') super(GraphicRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(GraphicRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class GraphicRegionType class LineDrawingRegionType(RegionType): """A line drawing is a single colour illustration without solid areas. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The pen (foreground) colour of the region The background colour of the region Specifies whether the region also contains text""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, penColour=None, bgColour=None, embText=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(LineDrawingRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.penColour = _cast(None, penColour) self.bgColour = _cast(None, bgColour) self.embText = _cast(bool, embText) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, LineDrawingRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if LineDrawingRegionType.subclass: return LineDrawingRegionType.subclass(*args_, **kwargs_) else: return LineDrawingRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_penColour(self): return self.penColour def set_penColour(self, penColour): self.penColour = penColour def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def get_embText(self): return self.embText def set_embText(self, embText): self.embText = embText def hasContent_(self): if ( super(LineDrawingRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='LineDrawingRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('LineDrawingRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LineDrawingRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='LineDrawingRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='LineDrawingRegionType'): super(LineDrawingRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='LineDrawingRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.penColour is not None and 'penColour' not in already_processed: already_processed.add('penColour') outfile.write(' penColour=%s' % (quote_attrib(self.penColour), )) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) if self.embText is not None and 'embText' not in already_processed: already_processed.add('embText') outfile.write(' embText="%s"' % self.gds_format_boolean(self.embText, input_name='embText')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='LineDrawingRegionType', fromsubclass_=False, pretty_print=True): super(LineDrawingRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('penColour', node) if value is not None and 'penColour' not in already_processed: already_processed.add('penColour') self.penColour = value value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value value = find_attr_value_('embText', node) if value is not None and 'embText' not in already_processed: already_processed.add('embText') if value in ('true', '1'): self.embText = True elif value in ('false', '0'): self.embText = False else: raise_parse_error(node, 'Bad boolean attribute') super(LineDrawingRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(LineDrawingRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class LineDrawingRegionType class ImageRegionType(RegionType): """An image is considered to be more intricate and complex than a graphic. These can be photos or drawings. The angle the rectangle encapsulating a region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). Range: -179.999,180 The colour bit depth required for the region The background colour of the region Specifies whether the region also contains text""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, colourDepth=None, bgColour=None, embText=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(ImageRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.colourDepth = _cast(None, colourDepth) self.bgColour = _cast(None, bgColour) self.embText = _cast(bool, embText) def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, ImageRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if ImageRegionType.subclass: return ImageRegionType.subclass(*args_, **kwargs_) else: return ImageRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_colourDepth(self): return self.colourDepth def set_colourDepth(self, colourDepth): self.colourDepth = colourDepth def get_bgColour(self): return self.bgColour def set_bgColour(self, bgColour): self.bgColour = bgColour def get_embText(self): return self.embText def set_embText(self, embText): self.embText = embText def hasContent_(self): if ( super(ImageRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='ImageRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('ImageRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='ImageRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='ImageRegionType'): super(ImageRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ImageRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.colourDepth is not None and 'colourDepth' not in already_processed: already_processed.add('colourDepth') outfile.write(' colourDepth=%s' % (quote_attrib(self.colourDepth), )) if self.bgColour is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') outfile.write(' bgColour=%s' % (quote_attrib(self.bgColour), )) if self.embText is not None and 'embText' not in already_processed: already_processed.add('embText') outfile.write(' embText="%s"' % self.gds_format_boolean(self.embText, input_name='embText')) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='ImageRegionType', fromsubclass_=False, pretty_print=True): super(ImageRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('colourDepth', node) if value is not None and 'colourDepth' not in already_processed: already_processed.add('colourDepth') self.colourDepth = value value = find_attr_value_('bgColour', node) if value is not None and 'bgColour' not in already_processed: already_processed.add('bgColour') self.bgColour = value value = find_attr_value_('embText', node) if value is not None and 'embText' not in already_processed: already_processed.add('embText') if value in ('true', '1'): self.embText = True elif value in ('false', '0'): self.embText = False else: raise_parse_error(node, 'Bad boolean attribute') super(ImageRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): super(ImageRegionType, self).buildChildren(child_, node, nodeName_, True) pass # end class ImageRegionType class TextRegionType(RegionType): """Pure text is represented as a text region. This includes drop capitals, but practically ornate text may be considered as a graphic. The angle the rectangle encapsulating the region has to be rotated in clockwise direction in order to correct the present skew (negative values indicate anti-clockwise rotation). (The rotated image can be further referenced via “AlternativeImage”.) Range: -179.999,180 The nature of the text in the region The degree of space in points between the lines of text (line spacing) The direction in which text within lines should be read (order of words and characters), in addition to “textLineOrder”. The order of text lines within the block, in addition to “readingDirection”. The angle the baseline of text within the region has to be rotated (relative to the rectangle encapsulating the region) in clockwise direction in order to correct the present skew, in addition to “orientation” (negative values indicate anti-clockwise rotation). Range: -179.999,180 Defines whether a region of text is indented or not Text align The primary language used in the region The secondary language used in the region The primary script used in the region The secondary script used in the region""" subclass = None superclass = RegionType def __init__(self, id=None, custom=None, comments=None, continuation=None, AlternativeImage=None, Coords=None, UserDefined=None, Labels=None, Roles=None, TextRegion=None, ImageRegion=None, LineDrawingRegion=None, GraphicRegion=None, TableRegion=None, ChartRegion=None, SeparatorRegion=None, MathsRegion=None, ChemRegion=None, MusicRegion=None, AdvertRegion=None, NoiseRegion=None, UnknownRegion=None, CustomRegion=None, orientation=None, type_=None, leading=None, readingDirection=None, textLineOrder=None, readingOrientation=None, indented=None, align=None, primaryLanguage=None, secondaryLanguage=None, primaryScript=None, secondaryScript=None, production=None, TextLine=None, TextEquiv=None, TextStyle=None, **kwargs_): self.original_tagname_ = None self.parent_object_ = kwargs_.get('parent_object_') super(TextRegionType, self).__init__(id, custom, comments, continuation, AlternativeImage, Coords, UserDefined, Labels, Roles, TextRegion, ImageRegion, LineDrawingRegion, GraphicRegion, TableRegion, ChartRegion, SeparatorRegion, MathsRegion, ChemRegion, MusicRegion, AdvertRegion, NoiseRegion, UnknownRegion, CustomRegion, **kwargs_) self.orientation = _cast(float, orientation) self.type_ = _cast(None, type_) self.leading = _cast(int, leading) self.readingDirection = _cast(None, readingDirection) self.textLineOrder = _cast(None, textLineOrder) self.readingOrientation = _cast(float, readingOrientation) self.indented = _cast(bool, indented) self.align = _cast(None, align) self.primaryLanguage = _cast(None, primaryLanguage) self.secondaryLanguage = _cast(None, secondaryLanguage) self.primaryScript = _cast(None, primaryScript) self.secondaryScript = _cast(None, secondaryScript) self.production = _cast(None, production) if TextLine is None: self.TextLine = [] else: self.TextLine = TextLine if TextEquiv is None: self.TextEquiv = [] else: self.TextEquiv = TextEquiv self.TextStyle = TextStyle def factory(*args_, **kwargs_): if CurrentSubclassModule_ is not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, TextRegionType) if subclass is not None: return subclass(*args_, **kwargs_) if TextRegionType.subclass: return TextRegionType.subclass(*args_, **kwargs_) else: return TextRegionType(*args_, **kwargs_) factory = staticmethod(factory) def get_TextLine(self): return self.TextLine def set_TextLine(self, TextLine): self.TextLine = TextLine def add_TextLine(self, value): self.TextLine.append(value) def add_TextLine(self, value): self.TextLine.append(value) def insert_TextLine_at(self, index, value): self.TextLine.insert(index, value) def replace_TextLine_at(self, index, value): self.TextLine[index] = value def get_TextEquiv(self): return self.TextEquiv def set_TextEquiv(self, TextEquiv): self.TextEquiv = TextEquiv def add_TextEquiv(self, value): self.TextEquiv.append(value) def add_TextEquiv(self, value): self.TextEquiv.append(value) def insert_TextEquiv_at(self, index, value): self.TextEquiv.insert(index, value) def replace_TextEquiv_at(self, index, value): self.TextEquiv[index] = value def get_TextStyle(self): return self.TextStyle def set_TextStyle(self, TextStyle): self.TextStyle = TextStyle def get_orientation(self): return self.orientation def set_orientation(self, orientation): self.orientation = orientation def get_type(self): return self.type_ def set_type(self, type_): self.type_ = type_ def get_leading(self): return self.leading def set_leading(self, leading): self.leading = leading def get_readingDirection(self): return self.readingDirection def set_readingDirection(self, readingDirection): self.readingDirection = readingDirection def get_textLineOrder(self): return self.textLineOrder def set_textLineOrder(self, textLineOrder): self.textLineOrder = textLineOrder def get_readingOrientation(self): return self.readingOrientation def set_readingOrientation(self, readingOrientation): self.readingOrientation = readingOrientation def get_indented(self): return self.indented def set_indented(self, indented): self.indented = indented def get_align(self): return self.align def set_align(self, align): self.align = align def get_primaryLanguage(self): return self.primaryLanguage def set_primaryLanguage(self, primaryLanguage): self.primaryLanguage = primaryLanguage def get_secondaryLanguage(self): return self.secondaryLanguage def set_secondaryLanguage(self, secondaryLanguage): self.secondaryLanguage = secondaryLanguage def get_primaryScript(self): return self.primaryScript def set_primaryScript(self, primaryScript): self.primaryScript = primaryScript def get_secondaryScript(self): return self.secondaryScript def set_secondaryScript(self, secondaryScript): self.secondaryScript = secondaryScript def get_production(self): return self.production def set_production(self, production): self.production = production def hasContent_(self): if ( self.TextLine or self.TextEquiv or self.TextStyle is not None or super(TextRegionType, self).hasContent_() ): return True else: return False def export(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='TextRegionType', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('TextRegionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ if pretty_print: eol_ = '\n' else: eol_ = '' if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TextRegionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) self.exportChildren(outfile, level + 1, namespaceprefix_, namespacedef_, name_='TextRegionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pc:', name_='TextRegionType'): super(TextRegionType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TextRegionType') if self.orientation is not None and 'orientation' not in already_processed: already_processed.add('orientation') outfile.write(' orientation="%s"' % self.gds_format_float(self.orientation, input_name='orientation')) if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (quote_attrib(self.type_), )) if self.leading is not None and 'leading' not in already_processed: already_processed.add('leading') outfile.write(' leading="%s"' % self.gds_format_integer(self.leading, input_name='leading')) if self.readingDirection is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') outfile.write(' readingDirection=%s' % (quote_attrib(self.readingDirection), )) if self.textLineOrder is not None and 'textLineOrder' not in already_processed: already_processed.add('textLineOrder') outfile.write(' textLineOrder=%s' % (quote_attrib(self.textLineOrder), )) if self.readingOrientation is not None and 'readingOrientation' not in already_processed: already_processed.add('readingOrientation') outfile.write(' readingOrientation="%s"' % self.gds_format_float(self.readingOrientation, input_name='readingOrientation')) if self.indented is not None and 'indented' not in already_processed: already_processed.add('indented') outfile.write(' indented="%s"' % self.gds_format_boolean(self.indented, input_name='indented')) if self.align is not None and 'align' not in already_processed: already_processed.add('align') outfile.write(' align=%s' % (quote_attrib(self.align), )) if self.primaryLanguage is not None and 'primaryLanguage' not in already_processed: already_processed.add('primaryLanguage') outfile.write(' primaryLanguage=%s' % (quote_attrib(self.primaryLanguage), )) if self.secondaryLanguage is not None and 'secondaryLanguage' not in already_processed: already_processed.add('secondaryLanguage') outfile.write(' secondaryLanguage=%s' % (quote_attrib(self.secondaryLanguage), )) if self.primaryScript is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') outfile.write(' primaryScript=%s' % (quote_attrib(self.primaryScript), )) if self.secondaryScript is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') outfile.write(' secondaryScript=%s' % (quote_attrib(self.secondaryScript), )) if self.production is not None and 'production' not in already_processed: already_processed.add('production') outfile.write(' production=%s' % (quote_attrib(self.production), )) def exportChildren(self, outfile, level, namespaceprefix_='pc:', namespacedef_='', name_='TextRegionType', fromsubclass_=False, pretty_print=True): super(TextRegionType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: eol_ = '' for TextLine_ in self.TextLine: TextLine_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextLine', pretty_print=pretty_print) for TextEquiv_ in self.TextEquiv: TextEquiv_.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextEquiv', pretty_print=pretty_print) if self.TextStyle is not None: self.TextStyle.export(outfile, level, namespaceprefix_, namespacedef_='', name_='TextStyle', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, node, nodeName_) return self def buildAttributes(self, node, attrs, already_processed): value = find_attr_value_('orientation', node) if value is not None and 'orientation' not in already_processed: already_processed.add('orientation') try: self.orientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (orientation): %s' % exp) value = find_attr_value_('type', node) if value is not None and 'type' not in already_processed: already_processed.add('type') self.type_ = value value = find_attr_value_('leading', node) if value is not None and 'leading' not in already_processed: already_processed.add('leading') try: self.leading = int(value) except ValueError as exp: raise_parse_error(node, 'Bad integer attribute: %s' % exp) value = find_attr_value_('readingDirection', node) if value is not None and 'readingDirection' not in already_processed: already_processed.add('readingDirection') self.readingDirection = value value = find_attr_value_('textLineOrder', node) if value is not None and 'textLineOrder' not in already_processed: already_processed.add('textLineOrder') self.textLineOrder = value value = find_attr_value_('readingOrientation', node) if value is not None and 'readingOrientation' not in already_processed: already_processed.add('readingOrientation') try: self.readingOrientation = float(value) except ValueError as exp: raise ValueError('Bad float/double attribute (readingOrientation): %s' % exp) value = find_attr_value_('indented', node) if value is not None and 'indented' not in already_processed: already_processed.add('indented') if value in ('true', '1'): self.indented = True elif value in ('false', '0'): self.indented = False else: raise_parse_error(node, 'Bad boolean attribute') value = find_attr_value_('align', node) if value is not None and 'align' not in already_processed: already_processed.add('align') self.align = value value = find_attr_value_('primaryLanguage', node) if value is not None and 'primaryLanguage' not in already_processed: already_processed.add('primaryLanguage') self.primaryLanguage = value value = find_attr_value_('secondaryLanguage', node) if value is not None and 'secondaryLanguage' not in already_processed: already_processed.add('secondaryLanguage') self.secondaryLanguage = value value = find_attr_value_('primaryScript', node) if value is not None and 'primaryScript' not in already_processed: already_processed.add('primaryScript') self.primaryScript = value value = find_attr_value_('secondaryScript', node) if value is not None and 'secondaryScript' not in already_processed: already_processed.add('secondaryScript') self.secondaryScript = value value = find_attr_value_('production', node) if value is not None and 'production' not in already_processed: already_processed.add('production') self.production = value super(TextRegionType, self).buildAttributes(node, attrs, already_processed) def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): if nodeName_ == 'TextLine': obj_ = TextLineType.factory(parent_object_=self) obj_.build(child_) self.TextLine.append(obj_) obj_.original_tagname_ = 'TextLine' elif nodeName_ == 'TextEquiv': obj_ = TextEquivType.factory(parent_object_=self) obj_.build(child_) self.TextEquiv.append(obj_) obj_.original_tagname_ = 'TextEquiv' elif nodeName_ == 'TextStyle': obj_ = TextStyleType.factory(parent_object_=self) obj_.build(child_) self.TextStyle = obj_ obj_.original_tagname_ = 'TextStyle' super(TextRegionType, self).buildChildren(child_, node, nodeName_, True) # end class TextRegionType GDSClassesMapping = { 'PcGts': PcGtsType, } USAGE_TEXT = """ Usage: python <Parser>.py [ -s ] <in_xml_file> """ def usage(): print(USAGE_TEXT) sys.exit(1) def get_root_tag(node): tag = Tag_pattern_.match(node.tag).groups()[-1] rootClass = GDSClassesMapping.get(tag) if rootClass is None: rootClass = globals().get(tag) return tag, rootClass def parse(inFileName, silence=False): parser = None doc = parsexml_(inFileName, parser) rootNode = doc.getroot() rootTag, rootClass = get_root_tag(rootNode) if rootClass is None: rootTag = 'PcGts' rootClass = PcGts rootObj = rootClass.factory() rootObj.build(rootNode) # Enable Python to collect the space used by the DOM. doc = None if not silence: sys.stdout.write('<?xml version="1.0" ?>\n') rootObj.export( sys.stdout, 0, name_=rootTag, namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"', pretty_print=True) return rootObj def parseEtree(inFileName, silence=False): parser = None doc = parsexml_(inFileName, parser) rootNode = doc.getroot() rootTag, rootClass = get_root_tag(rootNode) if rootClass is None: rootTag = 'PcGts' rootClass = PcGts rootObj = rootClass.factory() rootObj.build(rootNode) # Enable Python to collect the space used by the DOM. doc = None mapping = {} rootElement = rootObj.to_etree(None, name_=rootTag, mapping_=mapping) reverse_mapping = rootObj.gds_reverse_node_mapping(mapping) if not silence: content = etree_.tostring( rootElement, pretty_print=True, xml_declaration=True, encoding="utf-8") sys.stdout.write(content) sys.stdout.write('\n') return rootObj, rootElement, mapping, reverse_mapping def parseString(inString, silence=False): '''Parse a string, create the object tree, and export it. Arguments: - inString -- A string. This XML fragment should not start with an XML declaration containing an encoding. - silence -- A boolean. If False, export the object. Returns -- The root object in the tree. ''' parser = None rootNode= parsexmlstring_(inString, parser) rootTag, rootClass = get_root_tag(rootNode) if rootClass is None: rootTag = 'PcGts' rootClass = PcGts rootObj = rootClass.factory() rootObj.build(rootNode) # Enable Python to collect the space used by the DOM. if not silence: sys.stdout.write('<?xml version="1.0" ?>\n') rootObj.export( sys.stdout, 0, name_=rootTag, namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"') return rootObj def parseLiteral(inFileName, silence=False): parser = None doc = parsexml_(inFileName, parser) rootNode = doc.getroot() rootTag, rootClass = get_root_tag(rootNode) if rootClass is None: rootTag = 'PcGts' rootClass = PcGts rootObj = rootClass.factory() rootObj.build(rootNode) # Enable Python to collect the space used by the DOM. doc = None if not silence: sys.stdout.write('#from ocrd_page_generateds import *\n\n') sys.stdout.write('import ocrd_page_generateds as model_\n\n') sys.stdout.write('rootObj = model_.rootClass(\n') rootObj.exportLiteral(sys.stdout, 0, name_=rootTag) sys.stdout.write(')\n') return rootObj def main(): args = sys.argv[1:] if len(args) == 1: parse(args[0]) else: usage() if __name__ == '__main__': #import pdb; pdb.set_trace() main() __all__ = [ "AdvertRegionType", "AlternativeImageType", "BaselineType", "BorderType", "ChartRegionType", "ChemRegionType", "CoordsType", "CustomRegionType", "GlyphType", "GraphemeBaseType", "GraphemeGroupType", "GraphemeType", "GraphemesType", "GraphicRegionType", "GridPointsType", "GridType", "ImageRegionType", "LabelType", "LabelsType", "LayerType", "LayersType", "LineDrawingRegionType", "MapRegionType", "MathsRegionType", "MetadataItemType", "MetadataType", "MusicRegionType", "NoiseRegionType", "NonPrintingCharType", "OrderedGroupIndexedType", "OrderedGroupType", "PageType", "PcGtsType", "PrintSpaceType", "ReadingOrderType", "RegionRefIndexedType", "RegionRefType", "RegionType", "RelationType", "RelationsType", "RolesType", "SeparatorRegionType", "TableCellRoleType", "TableRegionType", "TextEquivType", "TextLineType", "TextRegionType", "TextStyleType", "UnknownRegionType", "UnorderedGroupIndexedType", "UnorderedGroupType", "UserAttributeType", "UserDefinedType", "WordType" ]
48.323157
776
0.651783
50,730
473,277
5.860181
0.022038
0.062216
0.021706
0.016106
0.844524
0.82745
0.809598
0.795938
0.777669
0.769714
0
0.003812
0.249478
473,277
9,793
777
48.328091
0.833133
0.04072
0
0.755149
1
0.008826
0.076606
0.002537
0
0
0
0
0
1
0.16574
false
0.005666
0.019178
0.038684
0.301079
0.053612
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
5de444f578108c2d9d334c792fa3b5749dfac15c
224
py
Python
rest_framework_recaptcha/compat.py
luisoteko/django-rest-framework-recaptcha
1d23cc92f36e6230de1a538fc2c9f63c9e7904ac
[ "MIT" ]
25
2018-11-16T09:44:10.000Z
2022-02-26T21:16:02.000Z
rest_framework_recaptcha/compat.py
luisoteko/django-rest-framework-recaptcha
1d23cc92f36e6230de1a538fc2c9f63c9e7904ac
[ "MIT" ]
9
2019-02-17T00:12:26.000Z
2022-03-18T11:13:57.000Z
rest_framework_recaptcha/compat.py
luisoteko/django-rest-framework-recaptcha
1d23cc92f36e6230de1a538fc2c9f63c9e7904ac
[ "MIT" ]
13
2018-12-05T10:44:49.000Z
2022-01-23T03:08:14.000Z
try: from urllib.parse import urlencode # noqa: F401 from urllib.request import urlopen # noqa: F401 except ImportError: from urllib import urlencode # noqa: F401 from urllib2 import urlopen # noqa: F401
32
52
0.71875
29
224
5.551724
0.448276
0.198758
0.236025
0.285714
0.335404
0
0
0
0
0
0
0.075145
0.227679
224
6
53
37.333333
0.855491
0.191964
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.833333
0
0.833333
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
5de991459b3702a474f2c0428d742dc6acf4f619
148,477
py
Python
src/mapscript/samples/text_info/text_info_restaurant.py
Yessense/script-extract
2c9498c63a8d116966f53e0a464749d350b61112
[ "MIT" ]
null
null
null
src/mapscript/samples/text_info/text_info_restaurant.py
Yessense/script-extract
2c9498c63a8d116966f53e0a464749d350b61112
[ "MIT" ]
1
2021-09-10T14:33:58.000Z
2021-09-14T08:43:28.000Z
src/mapscript/samples/text_info/text_info_restaurant.py
Yessense/script-extract
2c9498c63a8d116966f53e0a464749d350b61112
[ "MIT" ]
null
null
null
def create_text_info_restaurant(): text_info = {'coreferences': {'top_spans': [[0, 1], [2, 2], [3, 3], [5, 5], [7, 17], [14, 17], [19, 21], [22, 22], [24, 24], [26, 26], [27, 29], [32, 32], [34, 34], [35, 37], [35, 39], [39, 39], [42, 42], [45, 45], [45, 47], [47, 47], [50, 50], [51, 51], [53, 53], [54, 62], [58, 62], [61, 62], [64, 64], [66, 66], [70, 70], [74, 74], [75, 75], [76, 79], [81, 85], [81, 86], [81, 96], [87, 87], [88, 89], [90, 90], [92, 92], [92, 95], [97, 97], [98, 98], [100, 100], [100, 101], [104, 110], [107, 110], [109, 110], [115, 115], [116, 116], [120, 122], [123, 123], [124, 124], [125, 125], [128, 130], [132, 132], [133, 135], [137, 137], [138, 138], [140, 141], [144, 144], [145, 145], [148, 148], [149, 149], [150, 150], [152, 155], [158, 158], [158, 160], [161, 161], [162, 162], [163, 173], [168, 168], [169, 173], [172, 173], [175, 175], [177, 177], [182, 183], [185, 185], [186, 187], [189, 189], [190, 190], [191, 191], [196, 196], [196, 197], [198, 198], [199, 201], [205, 209], [208, 209], [213, 213], [215, 215], [216, 216], [222, 223], [224, 224], [227, 227], [228, 228], [230, 232], [234, 234], [240, 240], [245, 246], [247, 247], [250, 250], [253, 253], [255, 256], [258, 258], [261, 261], [263, 264], [266, 277], [269, 269], [270, 277], [273, 273], [274, 277], [281, 282], [285, 296], [287, 287], [289, 289], [290, 290], [291, 292], [292, 292], [296, 296], [298, 298], [299, 299], [300, 303], [306, 306], [307, 307], [308, 310], [315, 315], [316, 316], [317, 318], [321, 321], [322, 322], [324, 328], [324, 333], [328, 328], [329, 331], [329, 333], [335, 335], [337, 349], [344, 344], [351, 357], [358, 358], [359, 359], [359, 372], [361, 362], [361, 371], [366, 366], [366, 371], [368, 371], [371, 371], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378]], 'antecedent_indices': [[77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 148, 150], [0, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 150], [0, 1, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 151], [0, 1, 2, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 151], [0, 1, 2, 3, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 133, 134, 135, 137, 138, 139, 140, 141, 142, 151], [0, 1, 2, 3, 4, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 134, 135, 137, 138, 139, 140, 141, 142, 151], [0, 1, 2, 3, 4, 5, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 134, 135, 137, 138, 139, 140, 141, 151], [0, 1, 2, 3, 4, 5, 6, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 134, 135, 137, 138, 139, 140, 141, 151], [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 135, 137, 138, 139, 140, 141, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 137, 138, 139, 140, 141, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 137, 138, 139, 140, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 137, 138, 139, 140, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 138, 139, 140, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 139, 141, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 141, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 141, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 86, 87, 88, 89, 90, 91, 92, 93, 95, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 87, 88, 89, 90, 91, 92, 93, 94, 98, 99, 100, 101, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 87, 88, 89, 90, 91, 92, 93, 94, 98, 99, 100, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 88, 89, 90, 91, 92, 93, 94, 95, 99, 100, 101, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 88, 89, 90, 91, 92, 93, 94, 95, 100, 101, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 89, 90, 91, 92, 93, 94, 95, 96, 102, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 89, 90, 91, 92, 93, 94, 95, 96, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 90, 91, 93, 94, 95, 96, 97, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 90, 91, 93, 94, 95, 96, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 91, 92, 94, 95, 96, 97, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 93, 94, 95, 96, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 151], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 94, 95, 96, 97, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 94, 95, 96, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 96, 97, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 97, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 98, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 109, 110, 111, 112, 113, 114, 115, 116, 118, 119, 120, 121, 122], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 109, 110, 111, 112, 113, 114, 115, 116, 119, 120, 121, 122], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 109, 110, 111, 112, 113, 114, 118, 119, 120, 121, 122], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 109, 110, 111, 112, 113, 114, 115, 119, 120, 121], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 110, 111, 112, 113, 114, 115, 116, 121, 122], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 110, 111, 112, 113, 114, 115, 121, 123], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 111, 112, 113, 114, 115, 116, 123], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 111, 112, 113, 114, 115, 116], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 112, 114, 115, 116, 117], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 115, 116, 117, 124], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 115, 116, 117], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 115, 117], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 117], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49], [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 50, 51], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 47, 48, 49, 51, 52, 53, 54], [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 51, 52, 53, 55], [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 51, 52, 53, 54, 55, 56], [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57], [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 19, 20, 21, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 51, 52, 53, 54, 55, 56, 57, 58], [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59], [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 14, 15, 16, 17, 19, 20, 21, 23, 24, 25, 26, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60], [0, 1, 2, 4, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 20, 21, 23, 24, 25, 26, 27, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 41, 42, 43, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61], [0, 1, 4, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62], [0, 1, 4, 5, 6, 8, 9, 10, 11, 14, 15, 16, 17, 19, 20, 21, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 58, 59, 61, 62], [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 44, 46, 47, 49, 51, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64], [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 31, 32, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65], [0, 1, 2, 4, 5, 6, 8, 10, 11, 15, 16, 17, 19, 20, 21, 23, 24, 25, 26, 27, 29, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 44, 46, 47, 49, 51, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66], [0, 1, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 29, 31, 32, 33, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 52, 53, 56, 59, 61, 64, 65, 66, 67], [0, 1, 2, 4, 6, 8, 9, 10, 11, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 47, 49, 51, 52, 53, 55, 56, 59, 61, 62, 64, 65, 66, 67, 68], [0, 1, 2, 4, 5, 6, 8, 10, 11, 12, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 29, 30, 31, 32, 35, 36, 37, 38, 39, 41, 42, 43, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 61, 62, 65, 66, 67, 69], [0, 1, 2, 4, 5, 6, 9, 10, 11, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 35, 36, 37, 38, 39, 41, 42, 46, 47, 48, 49, 51, 52, 53, 54, 56, 59, 61, 62, 65, 66, 67, 69, 70], [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 15, 16, 17, 19, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 46, 47, 49, 50, 51, 52, 53, 56, 58, 59, 61, 65, 66, 67, 69, 70], [0, 1, 2, 5, 6, 8, 10, 11, 15, 16, 17, 20, 21, 23, 24, 25, 26, 27, 29, 32, 33, 34, 35, 37, 38, 39, 41, 42, 44, 46, 47, 49, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 72], [0, 1, 4, 5, 6, 9, 10, 11, 15, 16, 20, 21, 23, 24, 25, 26, 28, 29, 31, 32, 34, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 52, 53, 55, 56, 57, 58, 59, 61, 64, 65, 66, 67, 69, 70, 71, 72, 73], [0, 1, 4, 5, 6, 9, 10, 11, 15, 16, 19, 20, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 46, 47, 49, 52, 53, 56, 58, 59, 61, 65, 66, 67, 69, 70, 71, 72, 73, 74], [0, 1, 4, 5, 6, 8, 10, 11, 14, 15, 16, 17, 20, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 41, 42, 44, 45, 46, 47, 49, 52, 56, 58, 59, 61, 65, 66, 67, 69, 70, 71, 72, 73, 74, 75], [0, 1, 4, 5, 6, 8, 10, 11, 15, 16, 20, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 52, 56, 58, 59, 61, 65, 66, 67, 69, 70, 71, 72, 73, 74, 75, 76], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 28, 29, 31, 32, 34, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 52, 53, 55, 56, 58, 59, 61, 64, 65, 66, 67, 69, 71, 72, 73, 74, 75, 76, 77], [0, 1, 4, 5, 6, 8, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 36, 37, 38, 39, 41, 42, 43, 46, 47, 48, 49, 52, 53, 55, 56, 58, 59, 61, 62, 65, 66, 67, 69, 70, 71, 72, 73, 74, 75, 77, 78], [0, 1, 4, 5, 6, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 33, 34, 36, 37, 38, 39, 41, 42, 43, 44, 46, 47, 49, 52, 53, 55, 56, 58, 59, 61, 65, 66, 67, 69, 70, 71, 72, 73, 74, 75, 77, 78], [0, 1, 2, 4, 5, 6, 8, 10, 11, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 32, 33, 34, 37, 38, 39, 41, 42, 47, 49, 52, 53, 55, 56, 57, 58, 59, 61, 62, 63, 65, 66, 67, 69, 72, 73, 74, 75, 77, 78, 80], [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 15, 16, 17, 19, 20, 21, 23, 24, 25, 26, 27, 29, 30, 31, 32, 36, 37, 38, 39, 40, 41, 42, 46, 47, 52, 54, 56, 58, 59, 61, 66, 69, 70, 72, 74, 75, 77, 78, 79, 81], [0, 1, 4, 5, 8, 10, 11, 13, 14, 15, 16, 20, 23, 24, 25, 26, 27, 28, 29, 31, 32, 37, 38, 39, 41, 42, 43, 45, 46, 47, 49, 52, 53, 56, 59, 61, 65, 66, 67, 69, 70, 71, 72, 73, 74, 77, 78, 80, 81, 82], [0, 1, 4, 5, 6, 9, 10, 11, 15, 16, 20, 23, 24, 25, 26, 28, 29, 31, 32, 35, 37, 38, 39, 41, 42, 43, 46, 47, 49, 52, 53, 55, 56, 59, 61, 65, 66, 67, 69, 70, 71, 72, 73, 74, 75, 78, 80, 81, 82, 83], [0, 1, 5, 10, 11, 15, 16, 17, 20, 23, 24, 25, 26, 27, 28, 29, 30, 31, 35, 36, 37, 38, 39, 41, 42, 46, 47, 48, 52, 56, 58, 59, 61, 65, 66, 67, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 28, 29, 31, 32, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 52, 56, 58, 59, 61, 65, 66, 67, 69, 71, 72, 73, 74, 75, 77, 78, 81, 82, 84, 85], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 32, 34, 35, 36, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 54, 56, 58, 59, 61, 65, 66, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 83, 84, 85, 86], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 44, 45, 46, 47, 49, 52, 53, 56, 58, 59, 61, 65, 66, 67, 69, 71, 72, 73, 74, 75, 77, 78, 81, 82, 84, 85, 86, 87], [0, 1, 6, 10, 11, 13, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 47, 48, 49, 51, 52, 53, 54, 56, 59, 61, 62, 65, 66, 67, 69, 72, 73, 74, 77, 78, 79, 81, 82, 84, 85, 86, 87, 88], [0, 1, 4, 5, 9, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 47, 49, 52, 53, 56, 58, 59, 61, 65, 67, 69, 70, 71, 72, 73, 75, 78, 81, 82, 84, 86, 87, 88], [0, 1, 4, 5, 8, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 44, 46, 47, 49, 52, 53, 55, 56, 59, 61, 64, 65, 66, 67, 69, 70, 72, 73, 74, 77, 78, 81, 82, 84, 86, 87, 88], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 32, 37, 38, 39, 41, 42, 44, 45, 46, 47, 49, 52, 53, 56, 58, 59, 61, 64, 65, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 84, 85, 86, 87, 88, 90], [0, 1, 4, 5, 6, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 44, 46, 47, 49, 52, 53, 55, 56, 59, 61, 65, 66, 67, 69, 72, 73, 74, 77, 78, 81, 82, 84, 86, 87, 88, 90, 92], [0, 1, 4, 5, 10, 11, 14, 15, 16, 17, 20, 23, 24, 25, 26, 29, 32, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 59, 61, 62, 65, 66, 67, 69, 70, 72, 73, 74, 78, 81, 82, 84, 86, 87, 88, 89, 90, 92, 93], [0, 1, 4, 6, 10, 11, 13, 14, 15, 16, 20, 23, 25, 26, 29, 31, 32, 36, 37, 38, 39, 41, 42, 46, 47, 49, 51, 52, 53, 55, 56, 59, 61, 64, 65, 67, 72, 73, 74, 77, 78, 81, 82, 84, 86, 87, 88, 89, 90, 92], [0, 1, 2, 4, 6, 10, 11, 15, 16, 20, 23, 25, 26, 29, 32, 37, 38, 41, 42, 43, 44, 45, 46, 47, 49, 52, 56, 57, 58, 59, 61, 65, 66, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 84, 86, 87, 88, 90, 91, 92], [0, 1, 4, 5, 6, 8, 9, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 41, 42, 44, 46, 47, 49, 52, 53, 56, 58, 59, 61, 65, 66, 67, 69, 72, 73, 74, 77, 78, 81, 82, 84, 86, 88, 92, 96], [0, 1, 4, 5, 8, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 43, 46, 47, 52, 53, 55, 56, 59, 61, 65, 66, 67, 69, 70, 72, 73, 74, 77, 78, 81, 82, 84, 86, 87, 88, 89, 96], [0, 1, 4, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 38, 39, 41, 42, 44, 46, 47, 49, 52, 53, 56, 58, 59, 61, 65, 66, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 84, 85, 86, 88, 90, 92, 96, 97], [0, 1, 4, 5, 6, 8, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 36, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 59, 61, 65, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 86, 87, 88, 96, 97, 99], [0, 1, 4, 5, 6, 7, 8, 10, 11, 15, 16, 17, 20, 23, 24, 25, 26, 29, 32, 36, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 59, 61, 65, 66, 67, 72, 73, 74, 77, 78, 80, 81, 82, 86, 87, 88, 92, 97, 99, 100], [0, 1, 4, 5, 6, 10, 11, 15, 16, 17, 20, 24, 25, 26, 29, 32, 37, 38, 39, 41, 42, 47, 49, 52, 56, 58, 59, 63, 64, 65, 66, 67, 72, 73, 74, 75, 77, 78, 80, 81, 82, 84, 86, 88, 90, 92, 96, 97, 99, 100], [0, 1, 4, 5, 6, 8, 10, 11, 14, 15, 16, 20, 23, 24, 25, 29, 31, 32, 37, 38, 39, 41, 42, 47, 49, 52, 53, 56, 58, 59, 61, 65, 67, 69, 70, 72, 73, 74, 77, 78, 81, 82, 84, 87, 88, 92, 96, 97, 99, 102], [0, 1, 4, 5, 6, 8, 10, 11, 15, 16, 17, 19, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 44, 46, 47, 49, 52, 53, 56, 58, 65, 66, 67, 69, 72, 73, 74, 81, 82, 84, 87, 88, 96, 97, 99, 102, 103], [0, 1, 4, 5, 6, 8, 10, 11, 14, 15, 16, 19, 20, 25, 26, 29, 31, 32, 36, 37, 38, 39, 41, 42, 47, 52, 56, 58, 59, 61, 65, 67, 69, 72, 73, 74, 75, 76, 77, 78, 81, 82, 86, 87, 88, 92, 96, 99, 102, 104], [0, 1, 4, 5, 6, 8, 10, 11, 14, 15, 16, 17, 19, 20, 23, 24, 25, 26, 27, 29, 31, 32, 37, 38, 39, 41, 42, 47, 52, 56, 59, 61, 65, 67, 69, 71, 72, 73, 74, 77, 78, 81, 82, 87, 88, 96, 99, 102, 104, 105], [0, 1, 4, 5, 6, 7, 8, 10, 11, 15, 16, 19, 20, 22, 23, 25, 26, 29, 30, 31, 37, 38, 39, 41, 42, 47, 52, 56, 59, 61, 65, 67, 69, 70, 72, 73, 74, 76, 77, 78, 81, 82, 87, 88, 96, 99, 100, 102, 104, 106], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 46, 47, 52, 56, 58, 59, 61, 65, 66, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 86, 87, 88, 96, 97, 99, 102, 104, 105], [0, 1, 4, 5, 6, 8, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 37, 38, 39, 41, 42, 46, 47, 52, 56, 59, 61, 65, 66, 67, 69, 70, 72, 73, 74, 75, 77, 78, 81, 82, 86, 87, 88, 92, 96, 97, 99, 102, 108], [1, 4, 5, 6, 7, 9, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 30, 31, 32, 37, 38, 39, 41, 42, 43, 44, 46, 47, 56, 58, 59, 61, 66, 69, 72, 74, 75, 77, 78, 82, 84, 86, 88, 97, 99, 104, 105, 107, 108, 109], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 23, 25, 26, 29, 32, 36, 37, 38, 39, 41, 42, 46, 47, 52, 56, 59, 61, 65, 66, 67, 69, 72, 73, 74, 75, 76, 77, 78, 81, 86, 87, 88, 92, 96, 99, 101, 102, 104, 109, 110], [0, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 39, 41, 44, 46, 47, 52, 53, 56, 58, 59, 61, 64, 65, 66, 69, 72, 74, 75, 77, 78, 82, 84, 86, 88, 90, 92, 97, 99, 102, 104, 105, 107, 109, 110], [0, 1, 6, 10, 11, 15, 16, 20, 24, 25, 26, 29, 37, 38, 41, 42, 46, 47, 49, 52, 53, 56, 59, 61, 65, 66, 67, 69, 72, 73, 74, 77, 78, 81, 84, 85, 86, 87, 88, 90, 96, 97, 99, 101, 102, 104, 105, 109, 110, 112], [0, 1, 6, 10, 11, 15, 16, 20, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 47, 49, 52, 53, 56, 59, 61, 65, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 84, 86, 87, 88, 89, 92, 96, 97, 99, 102, 104, 109, 110, 112], [0, 1, 4, 5, 6, 10, 11, 15, 16, 20, 26, 29, 31, 32, 36, 37, 38, 39, 41, 42, 47, 49, 52, 53, 56, 58, 59, 61, 65, 67, 72, 73, 74, 75, 77, 78, 81, 82, 86, 87, 88, 89, 92, 96, 97, 99, 102, 104, 110, 112], [0, 1, 5, 6, 10, 11, 15, 16, 17, 20, 26, 29, 31, 32, 35, 36, 37, 38, 39, 41, 42, 47, 49, 52, 53, 56, 59, 61, 65, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 86, 87, 88, 89, 92, 96, 99, 102, 112, 114, 115], [0, 1, 4, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 46, 47, 52, 56, 59, 61, 65, 66, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 86, 87, 88, 96, 97, 99, 102, 104, 109, 110, 112], [0, 4, 5, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 39, 41, 44, 46, 47, 52, 56, 58, 59, 61, 65, 66, 69, 72, 74, 75, 77, 78, 82, 84, 85, 86, 88, 90, 92, 97, 99, 102, 104, 105, 107, 109, 110, 112], [0, 1, 8, 10, 11, 12, 14, 15, 16, 20, 22, 23, 24, 25, 26, 31, 37, 38, 39, 41, 42, 47, 49, 51, 52, 53, 56, 62, 65, 66, 67, 69, 73, 74, 77, 78, 81, 82, 86, 87, 88, 89, 96, 99, 102, 109, 112, 114, 115, 118], [1, 6, 8, 10, 11, 15, 16, 20, 21, 23, 24, 25, 26, 29, 31, 37, 38, 39, 41, 42, 47, 52, 53, 56, 59, 61, 65, 66, 67, 73, 74, 77, 78, 80, 81, 82, 86, 87, 88, 89, 92, 93, 96, 97, 99, 102, 109, 110, 112, 118], [0, 1, 2, 6, 10, 11, 15, 16, 20, 25, 26, 29, 32, 33, 37, 38, 41, 42, 46, 47, 52, 56, 59, 61, 65, 66, 67, 72, 73, 74, 75, 77, 78, 81, 82, 84, 86, 88, 92, 96, 97, 99, 102, 103, 104, 105, 109, 110, 112, 118], [0, 1, 8, 10, 11, 15, 16, 20, 23, 24, 25, 26, 27, 29, 31, 32, 37, 38, 39, 41, 42, 47, 49, 52, 53, 56, 59, 61, 65, 66, 67, 72, 73, 74, 77, 78, 80, 81, 82, 84, 86, 87, 88, 89, 96, 99, 102, 112, 118, 121], [1, 10, 11, 16, 20, 23, 24, 25, 26, 28, 36, 37, 38, 39, 40, 41, 42, 52, 56, 59, 61, 62, 65, 66, 67, 69, 73, 74, 78, 79, 80, 81, 82, 83, 84, 86, 87, 88, 89, 92, 93, 95, 96, 97, 99, 102, 112, 118, 121, 122], [0, 1, 2, 6, 10, 11, 15, 16, 20, 25, 26, 29, 32, 33, 37, 38, 39, 41, 42, 46, 47, 52, 56, 59, 65, 66, 67, 72, 73, 74, 75, 77, 78, 81, 82, 84, 88, 92, 96, 97, 99, 102, 103, 104, 105, 109, 110, 112, 118, 121], [0, 1, 5, 8, 10, 11, 14, 15, 16, 17, 19, 20, 23, 24, 25, 26, 27, 29, 31, 32, 37, 38, 39, 41, 42, 52, 56, 59, 61, 65, 66, 67, 69, 72, 73, 74, 77, 78, 81, 82, 87, 88, 89, 96, 102, 112, 118, 121, 123, 124], [1, 4, 5, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 32, 37, 38, 39, 41, 42, 43, 46, 47, 52, 56, 59, 61, 65, 67, 69, 72, 73, 74, 75, 77, 78, 81, 82, 84, 86, 87, 88, 92, 96, 102, 110, 112, 118, 121, 124, 125], [0, 1, 4, 5, 11, 16, 19, 20, 26, 29, 30, 32, 35, 37, 38, 39, 41, 42, 46, 47, 52, 56, 65, 66, 67, 69, 72, 73, 74, 77, 78, 81, 82, 84, 85, 86, 87, 88, 90, 92, 97, 102, 108, 109, 112, 118, 121, 124, 125, 126], [0, 1, 10, 11, 15, 16, 20, 23, 24, 26, 27, 29, 30, 31, 32, 37, 38, 39, 41, 42, 47, 48, 49, 52, 53, 56, 65, 66, 67, 72, 73, 74, 78, 81, 82, 84, 86, 87, 88, 89, 92, 96, 102, 106, 110, 112, 118, 121, 124, 127], [0, 1, 5, 10, 11, 15, 16, 20, 23, 24, 25, 26, 27, 28, 29, 31, 37, 38, 39, 41, 42, 47, 48, 56, 72, 73, 74, 77, 78, 79, 80, 81, 82, 85, 86, 87, 88, 89, 92, 96, 99, 102, 112, 118, 121, 124, 125, 126, 127, 128], [0, 1, 2, 5, 10, 11, 15, 16, 17, 19, 20, 23, 24, 26, 29, 31, 37, 38, 39, 41, 42, 47, 52, 56, 65, 66, 67, 72, 73, 74, 77, 78, 81, 82, 86, 87, 88, 92, 96, 99, 102, 112, 118, 121, 124, 125, 126, 127, 128, 129], [0, 1, 5, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 47, 52, 56, 59, 61, 65, 67, 69, 71, 72, 73, 74, 77, 78, 81, 85, 86, 87, 88, 92, 96, 102, 112, 118, 121, 124, 127, 128, 129, 130], [0, 1, 4, 5, 6, 8, 10, 11, 15, 16, 19, 20, 23, 25, 26, 29, 30, 31, 32, 37, 38, 41, 42, 43, 46, 47, 52, 56, 65, 67, 69, 72, 73, 74, 78, 81, 82, 86, 87, 88, 89, 96, 102, 110, 112, 121, 124, 125, 127, 131], [0, 1, 5, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 32, 37, 38, 41, 42, 46, 47, 52, 56, 59, 61, 65, 67, 72, 73, 74, 77, 78, 81, 82, 84, 86, 87, 88, 92, 96, 99, 102, 112, 118, 121, 124, 125, 126, 127, 131, 132], [1, 4, 6, 10, 15, 16, 20, 23, 24, 25, 26, 29, 32, 39, 41, 42, 44, 46, 47, 52, 56, 58, 59, 61, 65, 66, 69, 72, 74, 75, 77, 78, 82, 84, 85, 86, 88, 90, 92, 97, 99, 109, 110, 112, 118, 125, 126, 127, 132, 133], [0, 1, 4, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 37, 38, 39, 41, 42, 46, 47, 52, 56, 61, 65, 67, 69, 72, 74, 75, 77, 78, 81, 82, 84, 86, 87, 88, 92, 96, 99, 102, 110, 112, 118, 124, 126, 127, 132, 134], [0, 1, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 65, 67, 73, 74, 77, 78, 81, 82, 84, 85, 86, 87, 88, 96, 102, 109, 110, 112, 118, 121, 124, 126, 127, 133, 134, 135], [0, 1, 4, 6, 8, 10, 11, 15, 16, 19, 20, 23, 24, 25, 26, 29, 36, 37, 38, 41, 42, 46, 47, 49, 51, 52, 53, 56, 61, 65, 67, 73, 75, 81, 92, 96, 97, 99, 102, 103, 104, 110, 112, 118, 121, 124, 126, 127, 131, 135], [0, 1, 8, 11, 14, 15, 16, 20, 23, 24, 26, 29, 31, 32, 37, 38, 41, 42, 46, 47, 49, 52, 53, 56, 65, 67, 69, 72, 74, 77, 78, 81, 84, 88, 96, 99, 104, 110, 112, 115, 116, 118, 121, 127, 129, 130, 131, 132, 133, 135], [0, 1, 4, 6, 10, 11, 15, 16, 20, 23, 24, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 46, 47, 49, 52, 56, 65, 67, 69, 72, 77, 81, 82, 84, 86, 88, 96, 97, 99, 102, 104, 110, 112, 121, 124, 126, 127, 133, 134, 137], [0, 1, 8, 10, 11, 15, 16, 20, 23, 24, 26, 29, 31, 32, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 65, 66, 67, 72, 74, 77, 81, 84, 85, 86, 88, 96, 97, 99, 102, 104, 110, 121, 124, 126, 127, 131, 132, 133, 137], [0, 1, 4, 5, 6, 10, 11, 14, 15, 16, 20, 23, 24, 25, 26, 29, 32, 36, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 59, 61, 65, 67, 72, 73, 81, 92, 96, 97, 99, 102, 104, 110, 112, 118, 121, 124, 127, 135, 137], [0, 1, 4, 6, 8, 10, 11, 15, 16, 19, 20, 23, 25, 26, 29, 31, 36, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 65, 67, 72, 73, 81, 88, 92, 96, 99, 102, 110, 112, 118, 121, 124, 126, 127, 128, 132, 135, 137, 141], [0, 1, 10, 11, 15, 16, 17, 20, 23, 24, 26, 27, 29, 31, 32, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 61, 65, 67, 72, 73, 74, 81, 87, 88, 92, 96, 99, 102, 110, 112, 118, 121, 124, 127, 128, 132, 133, 134, 135], [0, 1, 8, 11, 15, 16, 17, 18, 19, 20, 23, 26, 27, 29, 30, 31, 32, 37, 38, 39, 41, 42, 46, 47, 49, 52, 53, 56, 65, 67, 72, 73, 81, 87, 92, 96, 99, 102, 113, 121, 124, 125, 127, 128, 131, 132, 135, 137, 142, 143], [0, 1, 4, 5, 6, 10, 11, 15, 16, 17, 20, 23, 26, 27, 28, 29, 31, 37, 38, 39, 41, 42, 46, 47, 52, 56, 65, 67, 72, 73, 80, 81, 82, 92, 96, 99, 102, 110, 113, 121, 124, 127, 128, 137, 138, 139, 140, 142, 143, 144], [0, 1, 4, 6, 10, 11, 15, 16, 19, 20, 23, 26, 27, 29, 30, 31, 32, 36, 37, 38, 41, 42, 44, 46, 47, 52, 56, 65, 67, 73, 80, 81, 92, 96, 102, 108, 110, 113, 121, 124, 127, 128, 131, 132, 135, 137, 142, 143, 144, 145], [0, 1, 11, 15, 16, 20, 26, 32, 37, 38, 44, 46, 47, 49, 52, 53, 56, 58, 59, 61, 65, 67, 69, 73, 77, 81, 84, 86, 88, 90, 92, 97, 99, 102, 105, 107, 108, 109, 112, 118, 121, 124, 126, 127, 131, 134, 135, 137, 141, 142], [0, 1, 8, 11, 14, 15, 16, 20, 23, 24, 26, 29, 31, 37, 38, 39, 41, 42, 47, 49, 52, 53, 56, 65, 67, 73, 74, 77, 78, 80, 81, 82, 84, 86, 87, 88, 92, 96, 99, 102, 110, 112, 118, 121, 124, 127, 134, 135, 137, 147], [0, 1, 6, 11, 15, 16, 20, 23, 25, 26, 29, 32, 38, 41, 42, 47, 49, 52, 53, 56, 57, 65, 66, 67, 73, 74, 77, 78, 81, 82, 84, 86, 87, 88, 89, 92, 93, 96, 97, 99, 102, 110, 112, 118, 121, 124, 134, 137, 141, 147], [1, 6, 10, 11, 15, 16, 20, 25, 26, 29, 31, 32, 37, 38, 39, 41, 42, 47, 49, 52, 53, 56, 59, 61, 65, 67, 72, 73, 74, 77, 78, 81, 82, 86, 87, 88, 92, 96, 97, 99, 102, 109, 110, 112, 118, 121, 124, 127, 134, 147], [1, 4, 5, 6, 10, 11, 16, 20, 23, 24, 25, 26, 28, 31, 32, 37, 38, 39, 41, 42, 52, 56, 58, 65, 66, 67, 69, 73, 75, 77, 81, 82, 84, 86, 96, 97, 99, 102, 104, 108, 110, 112, 121, 124, 126, 127, 135, 137, 142, 147]], 'predicted_antecedents': [-1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, 1, -1, -1, -1, 6, 1, -1, -1, -1, 16, -1, -1, -1, -1, -1, 16, -1, -1, 15, -1, -1, -1, -1, -1, -1, -1, 32, 37, -1, -1, 26, 26, -1, -1, -1, -1, 46, -1, -1, -1, -1, 31, -1, -1, -1, 1, -1, -1, 49, -1, 48, -1, -1, -1, 38, -1, 48, -1, -1, -1, -1, -1, 45, 45, -1, -1, -1, 46, -1, -1, 41, 28, -1, -1, -1, -1, 45, 46, -1, -1, -1, 49, -1, -1, -1, 1, -1, -1, 49, -1, -1, 31, -1, -1, -1, -1, -1, -1, -1, 1, -1, 48, -1, -1, -1, -1, -1, 47, -1, -1, 26, -1, -1, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 47, -1, -1, -1, -1], 'document': ['This', 'week', 'we', 'decided', 'to', 'look', 'at', 'a', 'small', 'family', '-', 'run', 'restaurant', 'in', 'the', 'village', 'of', 'Wardleton', '.', 'The', 'Old', 'Mill', 'is', 'newly', 'opened', 'and', 'overlooks', 'the', 'River', 'Wardle', ',', 'and', 'we', 'had', 'heard', 'several', 'favourable', 'comments', 'about', 'it', '.', 'Because', 'we', 'had', 'been', 'advised', 'to', 'book', 'early', ',', 'we', 'managed', 'to', 'get', 'a', 'nice', 'table', 'with', 'a', 'view', 'of', 'the', 'quay', '.', 'We', 'were', 'made', 'very', 'welcome', 'and', 'service', 'was', 'excellent', 'because', 'it', 'is', 'a', 'small', 'family', 'business', '.', 'The', 'proprietor', ',', 'Jeff', 'Dean', ',', 'runs', 'the', 'kitchen', 'himself', 'and', 'his', 'wife', ',', 'Nelly', ',', 'showed', 'us', 'to', 'our', 'table', '.', 'Although', 'the', 'choice', 'of', 'items', 'on', 'the', 'menu', 'was', 'very', 'extensive', ',', 'it', 'was', 'rather', 'traditional', '.', 'A', 'long', 'menu', 'always', 'worries', 'me', ',', 'because', 'a', 'large', 'menu', 'often', 'means', 'a', 'large', 'freezer', '!', 'We', 'started', 'with', 'Wardle', 'Trout', 'and', 'although', 'it', 'was', 'fresh', ',', 'it', 'was', 'spoilt', 'by', 'a', 'number', 'of', 'herbs', '.', 'For', 'my', 'main', 'course', 'I', 'chose', 'the', 'pepper', 'steak', ',', 'which', 'was', 'the', 'speciality', 'of', 'the', 'day', '.', 'I', 'thought', 'it', 'was', 'almost', 'perfect', 'because', 'the', 'chef', 'had', 'chosen', 'excellent', 'meat', 'and', 'it', 'was', 'cooked', 'just', 'long', 'enough', '.', 'My', 'wife', 'ordered', 'the', 'roast', 'lamb', ',', 'and', 'although', 'the', 'quality', 'of', 'the', 'meat', 'was', 'good', ',', 'she', 'thought', 'it', 'was', 'a', 'little', 'underdone', '.', 'Though', 'the', 'vegetables', 'were', 'fresh', ',', 'they', 'came', 'in', 'very', 'small', 'portions', 'and', 'were', 'rather', 'over', '-', 'cooked', 'for', 'our', 'taste', '.', 'However', ',', 'the', 'bread', 'was', 'fresh', 'because', 'it', 'had', 'been', 'baked', 'on', 'the', 'premises', '.', 'I', 'have', 'often', 'complained', 'in', 'this', 'column', 'about', 'the', 'difficulty', 'of', 'finding', 'any', 'restaurant', 'which', 'serves', 'a', 'fresh', 'fruit', 'salad', '.', 'Luckily', ',', 'this', 'one', 'did', '.', 'Even', 'though', 'it', 'must', 'have', 'been', 'very', 'time', '-', 'consuming', 'to', 'prepare', ',', 'it', 'was', 'a', 'delight', 'to', 'see', ',', 'and', 'I', 'had', 'a', 'second', 'helping', '.', 'As', 'usual', ',', 'I', 'chose', 'house', 'wine', ',', 'as', 'this', 'is', 'often', 'the', 'best', 'way', 'to', 'judge', 'a', 'restaurant', "'s", 'wine', 'list', '.', 'It', 'was', 'a', 'French', '-', 'bottled', 'table', 'wine', 'which', 'was', 'quite', 'satisfactory', 'and', 'reasonably', 'priced', '.', 'The', 'bill', ',', 'including', 'coffee', 'and', 'brandy', ',', 'came', 'to', '38', 'pounds', ',', 'which', 'was', 'acceptable', 'for', 'the', 'class', 'of', 'restaurant', ',', 'although', 'that', 'did', 'not', 'include', 'service', '.'], 'clusters': [[[7, 17], [19, 21], [39, 39], [74, 74], [281, 282]], [[2, 2], [32, 32], [42, 42], [50, 50], [64, 64], [98, 98], [100, 100], [137, 137], [240, 240]], [[81, 85], [90, 90], [92, 92], [125, 125], [158, 158], [161, 161], [175, 175], [196, 196], [258, 258], [306, 306], [315, 315]], [[109, 110], [115, 115]], [[140, 141], [144, 144], [148, 148]], [[163, 173], [177, 177], [189, 189]], [[92, 95], [196, 197], [213, 213]], [[199, 201], [215, 215]], [[222, 223], [227, 227]], [[245, 246], [250, 250]], [[274, 277], [287, 287], [298, 298]], [[317, 318], [335, 335]], [[351, 357], [374, 374]]]}, 'sentences_info': [{'semantic_roles': {'verbs': [{'verb': 'decided', 'description': '[ARGM-TMP: This week] [ARG0: we] [V: decided] [ARG1: to look at a small family - run restaurant in the village of Wardleton] .', 'tags': ['B-ARGM-TMP', 'I-ARGM-TMP', 'B-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}, {'verb': 'look', 'description': 'This week [ARG0: we] decided to [V: look] [ARG1: at a small family - run restaurant in the village of Wardleton] .', 'tags': ['O', 'O', 'B-ARG0', 'O', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}, {'verb': 'run', 'description': 'This week we decided to look at a small [ARG0: family] - [V: run] [ARG1: restaurant] in the village of Wardleton .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'O', 'B-V', 'B-ARG1', 'O', 'O', 'O', 'O', 'O', 'O']}], 'words': ['This', 'week', 'we', 'decided', 'to', 'look', 'at', 'a', 'small', 'family', '-', 'run', 'restaurant', 'in', 'the', 'village', 'of', 'Wardleton', '.']}, 'dependency': {'arc_loss': 0.2748850882053375, 'tag_loss': 0.285218209028244, 'loss': 0.5601032972335815, 'words': ['This', 'week', 'we', 'decided', 'to', 'look', 'at', 'a', 'small', 'family', '-', 'run', 'restaurant', 'in', 'the', 'village', 'of', 'Wardleton', '.'], 'pos': ['DET', 'NOUN', 'PRON', 'VERB', 'PART', 'VERB', 'ADP', 'DET', 'ADJ', 'NOUN', 'PUNCT', 'VERB', 'NOUN', 'ADP', 'DET', 'NOUN', 'ADP', 'PROPN', 'PUNCT'], 'predicted_dependencies': ['nsubj', 'dep', 'nsubj', 'root', 'dep', 'xcomp', 'prep', 'dep', 'dep', 'dep', 'dep', 'dep', 'dep', 'prep', 'dep', 'pobj', 'prep', 'pobj', 'punct'], 'predicted_heads': [4, 4, 4, 0, 6, 4, 6, 13, 10, 13, 13, 13, 6, 13, 16, 14, 16, 17, 4], 'hierplane_tree': {'text': 'This week we decided to look at a small family - run restaurant in the village of Wardleton .', 'root': {'word': 'decided', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 13, 'end': 21}], 'children': [{'word': 'This', 'nodeType': 'nsubj', 'attributes': ['DET'], 'link': 'nsubj', 'spans': [{'start': 0, 'end': 5}]}, {'word': 'week', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 5, 'end': 10}]}, {'word': 'we', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 10, 'end': 13}]}, {'word': 'look', 'nodeType': 'xcomp', 'attributes': ['VERB'], 'link': 'xcomp', 'spans': [{'start': 24, 'end': 29}], 'children': [{'word': 'to', 'nodeType': 'dep', 'attributes': ['PART'], 'link': 'dep', 'spans': [{'start': 21, 'end': 24}]}, {'word': 'at', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 29, 'end': 32}]}, {'word': 'restaurant', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 53, 'end': 64}], 'children': [{'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 32, 'end': 34}]}, {'word': 'family', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 40, 'end': 47}], 'children': [{'word': 'small', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 34, 'end': 40}]}]}, {'word': '-', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 47, 'end': 49}]}, {'word': 'run', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 49, 'end': 53}]}, {'word': 'in', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 64, 'end': 67}], 'children': [{'word': 'village', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 71, 'end': 79}], 'children': [{'word': 'the', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 67, 'end': 71}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 79, 'end': 82}], 'children': [{'word': 'Wardleton', 'nodeType': 'pobj', 'attributes': ['PROPN'], 'link': 'pobj', 'spans': [{'start': 82, 'end': 92}]}]}]}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 92, 'end': 94}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'is', 'description': 'The Old Mill [V: is] newly opened and overlooks the River Wardle , and we had heard several favourable comments about it .', 'tags': ['O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'opened', 'description': '[ARG1: The Old Mill] is [ARGM-TMP: newly] [V: opened] and overlooks the River Wardle , and we had heard several favourable comments about it .', 'tags': ['B-ARG1', 'I-ARG1', 'I-ARG1', 'O', 'B-ARGM-TMP', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'overlooks', 'description': '[ARG0: The Old Mill] is newly opened and [V: overlooks] [ARG1: the River Wardle] , and we had heard several favourable comments about it .', 'tags': ['B-ARG0', 'I-ARG0', 'I-ARG0', 'O', 'O', 'O', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'had', 'description': 'The Old Mill is newly opened and overlooks the River Wardle , and we [V: had] heard several favourable comments about it .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'heard', 'description': 'The Old Mill is newly opened and overlooks the River Wardle , and [ARG0: we] had [V: heard] [ARG1: several favourable comments about it] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}], 'words': ['The', 'Old', 'Mill', 'is', 'newly', 'opened', 'and', 'overlooks', 'the', 'River', 'Wardle', ',', 'and', 'we', 'had', 'heard', 'several', 'favourable', 'comments', 'about', 'it', '.']}, 'dependency': {'arc_loss': 0.7260692715644836, 'tag_loss': 0.4601719081401825, 'loss': 1.1862411499023438, 'words': ['The', 'Old', 'Mill', 'is', 'newly', 'opened', 'and', 'overlooks', 'the', 'River', 'Wardle', ',', 'and', 'we', 'had', 'heard', 'several', 'favourable', 'comments', 'about', 'it', '.'], 'pos': ['DET', 'PROPN', 'PROPN', 'VERB', 'ADV', 'VERB', 'CCONJ', 'VERB', 'DET', 'PROPN', 'PROPN', 'PUNCT', 'CCONJ', 'PRON', 'VERB', 'VERB', 'ADJ', 'ADJ', 'NOUN', 'ADP', 'PRON', 'PUNCT'], 'predicted_dependencies': ['det', 'dep', 'nsubj', 'auxpass', 'root', 'dep', 'dep', 'dep', 'det', 'dep', 'dep', 'punct', 'cc', 'nsubj', 'aux', 'dep', 'dep', 'nn', 'dobj', 'prep', 'pobj', 'advmod'], 'predicted_heads': [3, 3, 5, 5, 0, 5, 6, 5, 11, 11, 8, 5, 5, 16, 16, 5, 19, 19, 16, 19, 20, 16], 'hierplane_tree': {'text': 'The Old Mill is newly opened and overlooks the River Wardle , and we had heard several favourable comments about it .', 'root': {'word': 'newly', 'nodeType': 'root', 'attributes': ['ADV'], 'link': 'root', 'spans': [{'start': 16, 'end': 22}], 'children': [{'word': 'Mill', 'nodeType': 'nsubj', 'attributes': ['PROPN'], 'link': 'nsubj', 'spans': [{'start': 8, 'end': 13}], 'children': [{'word': 'The', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 0, 'end': 4}]}, {'word': 'Old', 'nodeType': 'dep', 'attributes': ['PROPN'], 'link': 'dep', 'spans': [{'start': 4, 'end': 8}]}]}, {'word': 'is', 'nodeType': 'auxpass', 'attributes': ['VERB'], 'link': 'auxpass', 'spans': [{'start': 13, 'end': 16}]}, {'word': 'opened', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 22, 'end': 29}], 'children': [{'word': 'and', 'nodeType': 'dep', 'attributes': ['CCONJ'], 'link': 'dep', 'spans': [{'start': 29, 'end': 33}]}]}, {'word': 'overlooks', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 33, 'end': 43}], 'children': [{'word': 'Wardle', 'nodeType': 'dep', 'attributes': ['PROPN'], 'link': 'dep', 'spans': [{'start': 53, 'end': 60}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 43, 'end': 47}]}, {'word': 'River', 'nodeType': 'dep', 'attributes': ['PROPN'], 'link': 'dep', 'spans': [{'start': 47, 'end': 53}]}]}]}, {'word': ',', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 60, 'end': 62}]}, {'word': 'and', 'nodeType': 'cc', 'attributes': ['CCONJ'], 'link': 'cc', 'spans': [{'start': 62, 'end': 66}]}, {'word': 'heard', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 73, 'end': 79}], 'children': [{'word': 'we', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 66, 'end': 69}]}, {'word': 'had', 'nodeType': 'aux', 'attributes': ['VERB'], 'link': 'aux', 'spans': [{'start': 69, 'end': 73}]}, {'word': 'comments', 'nodeType': 'dobj', 'attributes': ['NOUN'], 'link': 'dobj', 'spans': [{'start': 98, 'end': 107}], 'children': [{'word': 'several', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 79, 'end': 87}]}, {'word': 'favourable', 'nodeType': 'nn', 'attributes': ['ADJ'], 'link': 'nn', 'spans': [{'start': 87, 'end': 98}]}, {'word': 'about', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 107, 'end': 113}], 'children': [{'word': 'it', 'nodeType': 'pobj', 'attributes': ['PRON'], 'link': 'pobj', 'spans': [{'start': 113, 'end': 116}]}]}]}, {'word': '.', 'nodeType': 'advmod', 'attributes': ['PUNCT'], 'link': 'advmod', 'spans': [{'start': 116, 'end': 118}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'had', 'description': 'Because we [V: had] been advised to book early , we managed to get a nice table with a view of the quay .', 'tags': ['O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'been', 'description': 'Because we had [V: been] advised to book early , we managed to get a nice table with a view of the quay .', 'tags': ['O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'advised', 'description': 'Because [ARG1: we] had been [V: advised] [ARG2: to book early] , we managed to get a nice table with a view of the quay .', 'tags': ['O', 'B-ARG1', 'O', 'O', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'book', 'description': 'Because [ARG0: we] had been advised to [V: book] [ARGM-TMP: early] , we managed to get a nice table with a view of the quay .', 'tags': ['O', 'B-ARG0', 'O', 'O', 'O', 'O', 'B-V', 'B-ARGM-TMP', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'managed', 'description': '[ARGM-CAU: Because we had been advised to book early] , [ARG0: we] [V: managed] [ARG1: to get a nice table with a view of the quay] .', 'tags': ['B-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'O', 'B-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}, {'verb': 'get', 'description': 'Because we had been advised to book early , [ARG0: we] managed to [V: get] [ARG1: a nice table with a view of the quay] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'O', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}], 'words': ['Because', 'we', 'had', 'been', 'advised', 'to', 'book', 'early', ',', 'we', 'managed', 'to', 'get', 'a', 'nice', 'table', 'with', 'a', 'view', 'of', 'the', 'quay', '.']}, 'dependency': {'arc_loss': 0.38572075963020325, 'tag_loss': 0.23922611773014069, 'loss': 0.6249468922615051, 'words': ['Because', 'we', 'had', 'been', 'advised', 'to', 'book', 'early', ',', 'we', 'managed', 'to', 'get', 'a', 'nice', 'table', 'with', 'a', 'view', 'of', 'the', 'quay', '.'], 'pos': ['SCONJ', 'PRON', 'VERB', 'VERB', 'VERB', 'PART', 'VERB', 'ADV', 'PUNCT', 'PRON', 'VERB', 'PART', 'VERB', 'DET', 'ADJ', 'NOUN', 'ADP', 'DET', 'NOUN', 'ADP', 'DET', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['mark', 'nsubj', 'aux', 'cop', 'root', 'prep', 'pobj', 'advmod', 'punct', 'nsubj', 'dep', 'dep', 'dep', 'dep', 'amod', 'dep', 'prep', 'dep', 'pobj', 'prep', 'dep', 'pobj', 'punct'], 'predicted_heads': [5, 5, 5, 5, 0, 5, 6, 5, 5, 11, 5, 13, 11, 16, 16, 13, 16, 19, 17, 19, 22, 20, 5], 'hierplane_tree': {'text': 'Because we had been advised to book early , we managed to get a nice table with a view of the quay .', 'root': {'word': 'advised', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 20, 'end': 28}], 'children': [{'word': 'Because', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 0, 'end': 8}]}, {'word': 'we', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 8, 'end': 11}]}, {'word': 'had', 'nodeType': 'aux', 'attributes': ['VERB'], 'link': 'aux', 'spans': [{'start': 11, 'end': 15}]}, {'word': 'been', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 15, 'end': 20}]}, {'word': 'to', 'nodeType': 'prep', 'attributes': ['PART'], 'link': 'prep', 'spans': [{'start': 28, 'end': 31}], 'children': [{'word': 'book', 'nodeType': 'pobj', 'attributes': ['VERB'], 'link': 'pobj', 'spans': [{'start': 31, 'end': 36}]}]}, {'word': 'early', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 36, 'end': 42}]}, {'word': ',', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 42, 'end': 44}]}, {'word': 'managed', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 47, 'end': 55}], 'children': [{'word': 'we', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 44, 'end': 47}]}, {'word': 'get', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 58, 'end': 62}], 'children': [{'word': 'to', 'nodeType': 'dep', 'attributes': ['PART'], 'link': 'dep', 'spans': [{'start': 55, 'end': 58}]}, {'word': 'table', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 69, 'end': 75}], 'children': [{'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 62, 'end': 64}]}, {'word': 'nice', 'nodeType': 'amod', 'attributes': ['ADJ'], 'link': 'amod', 'spans': [{'start': 64, 'end': 69}]}, {'word': 'with', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 75, 'end': 80}], 'children': [{'word': 'view', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 82, 'end': 87}], 'children': [{'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 80, 'end': 82}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 87, 'end': 90}], 'children': [{'word': 'quay', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 94, 'end': 99}], 'children': [{'word': 'the', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 90, 'end': 94}]}]}]}]}]}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 99, 'end': 101}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'were', 'description': 'We [V: were] made very welcome and service was excellent because it is a small family business .', 'tags': ['O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'made', 'description': 'We were [V: made] [ARG1: very welcome] and service was excellent because it is a small family business .', 'tags': ['O', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'We were made very welcome and [ARG1: service] [V: was] [ARG2: excellent] [ARGM-CAU: because it is a small family business] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'B-V', 'B-ARG2', 'B-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'O']}, {'verb': 'is', 'description': 'We were made very welcome and service was excellent because [ARG1: it] [V: is] [ARG2: a small family business] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O']}], 'words': ['We', 'were', 'made', 'very', 'welcome', 'and', 'service', 'was', 'excellent', 'because', 'it', 'is', 'a', 'small', 'family', 'business', '.']}, 'dependency': {'arc_loss': 0.14570528268814087, 'tag_loss': 0.1589011698961258, 'loss': 0.30460643768310547, 'words': ['We', 'were', 'made', 'very', 'welcome', 'and', 'service', 'was', 'excellent', 'because', 'it', 'is', 'a', 'small', 'family', 'business', '.'], 'pos': ['PRON', 'VERB', 'VERB', 'ADV', 'ADJ', 'CCONJ', 'NOUN', 'VERB', 'ADJ', 'SCONJ', 'PRON', 'VERB', 'DET', 'ADJ', 'NOUN', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['nsubjpass', 'auxpass', 'root', 'advmod', 'dep', 'cc', 'nsubj', 'cop', 'dep', 'mark', 'nsubj', 'cop', 'dep', 'amod', 'amod', 'advcl', 'punct'], 'predicted_heads': [3, 3, 0, 5, 3, 5, 9, 9, 3, 16, 16, 16, 16, 16, 16, 9, 3], 'hierplane_tree': {'text': 'We were made very welcome and service was excellent because it is a small family business .', 'root': {'word': 'made', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 8, 'end': 13}], 'children': [{'word': 'We', 'nodeType': 'nsubjpass', 'attributes': ['PRON'], 'link': 'nsubjpass', 'spans': [{'start': 0, 'end': 3}]}, {'word': 'were', 'nodeType': 'auxpass', 'attributes': ['VERB'], 'link': 'auxpass', 'spans': [{'start': 3, 'end': 8}]}, {'word': 'welcome', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 18, 'end': 26}], 'children': [{'word': 'very', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 13, 'end': 18}]}, {'word': 'and', 'nodeType': 'cc', 'attributes': ['CCONJ'], 'link': 'cc', 'spans': [{'start': 26, 'end': 30}]}]}, {'word': 'excellent', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 42, 'end': 52}], 'children': [{'word': 'service', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 30, 'end': 38}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 38, 'end': 42}]}, {'word': 'business', 'nodeType': 'advcl', 'attributes': ['NOUN'], 'link': 'advcl', 'spans': [{'start': 81, 'end': 90}], 'children': [{'word': 'because', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 52, 'end': 60}]}, {'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 60, 'end': 63}]}, {'word': 'is', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 63, 'end': 66}]}, {'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 66, 'end': 68}]}, {'word': 'small', 'nodeType': 'amod', 'attributes': ['ADJ'], 'link': 'amod', 'spans': [{'start': 68, 'end': 74}]}, {'word': 'family', 'nodeType': 'amod', 'attributes': ['NOUN'], 'link': 'amod', 'spans': [{'start': 74, 'end': 81}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 90, 'end': 92}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'runs', 'description': '[ARG0: The proprietor , Jeff Dean ,] [V: runs] [ARG1: the kitchen] [ARGM-REC: himself] and his wife , Nelly , showed us to our table .', 'tags': ['B-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'B-ARGM-REC', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'showed', 'description': '[ARG0: The proprietor , Jeff Dean , runs the kitchen himself and his wife , Nelly] , [V: showed] [ARG1: us] [ARG2: to our table] .', 'tags': ['B-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'O', 'B-V', 'B-ARG1', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'O']}], 'words': ['The', 'proprietor', ',', 'Jeff', 'Dean', ',', 'runs', 'the', 'kitchen', 'himself', 'and', 'his', 'wife', ',', 'Nelly', ',', 'showed', 'us', 'to', 'our', 'table', '.']}, 'dependency': {'arc_loss': 1.299094796180725, 'tag_loss': 0.8304197192192078, 'loss': 2.129514455795288, 'words': ['The', 'proprietor', ',', 'Jeff', 'Dean', ',', 'runs', 'the', 'kitchen', 'himself', 'and', 'his', 'wife', ',', 'Nelly', ',', 'showed', 'us', 'to', 'our', 'table', '.'], 'pos': ['DET', 'NOUN', 'PUNCT', 'PROPN', 'PROPN', 'PUNCT', 'VERB', 'DET', 'NOUN', 'PRON', 'CCONJ', 'PRON', 'NOUN', 'PUNCT', 'PROPN', 'PUNCT', 'VERB', 'PRON', 'ADP', 'PRON', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['det', 'amod', 'advmod', 'amod', 'root', 'dep', 'dep', 'det', 'dobj', 'dep', 'punct', 'amod', 'nsubj', 'amod', 'dep', 'dep', 'dep', 'dobj', 'dep', 'amod', 'pobj', 'punct'], 'predicted_heads': [2, 5, 2, 5, 0, 5, 5, 9, 7, 7, 10, 13, 10, 13, 14, 17, 14, 17, 17, 21, 19, 17], 'hierplane_tree': {'text': 'The proprietor , Jeff Dean , runs the kitchen himself and his wife , Nelly , showed us to our table .', 'root': {'word': 'Dean', 'nodeType': 'root', 'attributes': ['PROPN'], 'link': 'root', 'spans': [{'start': 22, 'end': 27}], 'children': [{'word': 'proprietor', 'nodeType': 'amod', 'attributes': ['NOUN'], 'link': 'amod', 'spans': [{'start': 4, 'end': 15}], 'children': [{'word': 'The', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 0, 'end': 4}]}, {'word': ',', 'nodeType': 'advmod', 'attributes': ['PUNCT'], 'link': 'advmod', 'spans': [{'start': 15, 'end': 17}]}]}, {'word': 'Jeff', 'nodeType': 'amod', 'attributes': ['PROPN'], 'link': 'amod', 'spans': [{'start': 17, 'end': 22}]}, {'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 27, 'end': 29}]}, {'word': 'runs', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 29, 'end': 34}], 'children': [{'word': 'kitchen', 'nodeType': 'dobj', 'attributes': ['NOUN'], 'link': 'dobj', 'spans': [{'start': 38, 'end': 46}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 34, 'end': 38}]}]}, {'word': 'himself', 'nodeType': 'dep', 'attributes': ['PRON'], 'link': 'dep', 'spans': [{'start': 46, 'end': 54}], 'children': [{'word': 'and', 'nodeType': 'punct', 'attributes': ['CCONJ'], 'link': 'punct', 'spans': [{'start': 54, 'end': 58}]}, {'word': 'wife', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 62, 'end': 67}], 'children': [{'word': 'his', 'nodeType': 'amod', 'attributes': ['PRON'], 'link': 'amod', 'spans': [{'start': 58, 'end': 62}]}, {'word': ',', 'nodeType': 'amod', 'attributes': ['PUNCT'], 'link': 'amod', 'spans': [{'start': 67, 'end': 69}], 'children': [{'word': 'Nelly', 'nodeType': 'dep', 'attributes': ['PROPN'], 'link': 'dep', 'spans': [{'start': 69, 'end': 75}]}, {'word': 'showed', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 77, 'end': 84}], 'children': [{'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 75, 'end': 77}]}, {'word': 'us', 'nodeType': 'dobj', 'attributes': ['PRON'], 'link': 'dobj', 'spans': [{'start': 84, 'end': 87}]}, {'word': 'to', 'nodeType': 'dep', 'attributes': ['ADP'], 'link': 'dep', 'spans': [{'start': 87, 'end': 90}], 'children': [{'word': 'table', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 94, 'end': 100}], 'children': [{'word': 'our', 'nodeType': 'amod', 'attributes': ['PRON'], 'link': 'amod', 'spans': [{'start': 90, 'end': 94}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 100, 'end': 102}]}]}]}]}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'was', 'description': 'Although [ARG1: the choice of items on the menu] [V: was] [ARG2: very extensive] , it was rather traditional .', 'tags': ['O', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': '[ARGM-ADV: Although the choice of items on the menu was very extensive] , [ARG1: it] [V: was] [ARG2: rather traditional] .', 'tags': ['B-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'O', 'B-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'O']}], 'words': ['Although', 'the', 'choice', 'of', 'items', 'on', 'the', 'menu', 'was', 'very', 'extensive', ',', 'it', 'was', 'rather', 'traditional', '.']}, 'dependency': {'arc_loss': 0.7394709587097168, 'tag_loss': 0.22021181881427765, 'loss': 0.9596827626228333, 'words': ['Although', 'the', 'choice', 'of', 'items', 'on', 'the', 'menu', 'was', 'very', 'extensive', ',', 'it', 'was', 'rather', 'traditional', '.'], 'pos': ['SCONJ', 'DET', 'NOUN', 'ADP', 'NOUN', 'ADP', 'DET', 'NOUN', 'VERB', 'ADV', 'ADJ', 'PUNCT', 'PRON', 'VERB', 'ADV', 'ADJ', 'PUNCT'], 'predicted_dependencies': ['mark', 'det', 'nsubj', 'prep', 'pobj', 'prep', 'det', 'pobj', 'cop', 'advmod', 'dep', 'punct', 'nsubj', 'root', 'advmod', 'advmod', 'punct'], 'predicted_heads': [11, 3, 11, 3, 4, 5, 8, 6, 11, 11, 14, 11, 14, 0, 14, 14, 14], 'hierplane_tree': {'text': 'Although the choice of items on the menu was very extensive , it was rather traditional .', 'root': {'word': 'was', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 65, 'end': 69}], 'children': [{'word': 'extensive', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 50, 'end': 60}], 'children': [{'word': 'Although', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 0, 'end': 9}]}, {'word': 'choice', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 13, 'end': 20}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 9, 'end': 13}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 20, 'end': 23}], 'children': [{'word': 'items', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 23, 'end': 29}], 'children': [{'word': 'on', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 29, 'end': 32}], 'children': [{'word': 'menu', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 36, 'end': 41}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 32, 'end': 36}]}]}]}]}]}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 41, 'end': 45}]}, {'word': 'very', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 45, 'end': 50}]}, {'word': ',', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 60, 'end': 62}]}]}, {'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 62, 'end': 65}]}, {'word': 'rather', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 69, 'end': 76}]}, {'word': 'traditional', 'nodeType': 'advmod', 'attributes': ['ADJ'], 'link': 'advmod', 'spans': [{'start': 76, 'end': 88}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 88, 'end': 90}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'worries', 'description': '[ARG0: A long menu] [ARGM-TMP: always] [V: worries] [ARG1: me] , [ARGM-CAU: because a large menu often means a large freezer] !', 'tags': ['B-ARG0', 'I-ARG0', 'I-ARG0', 'B-ARGM-TMP', 'B-V', 'B-ARG1', 'O', 'B-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'O']}, {'verb': 'means', 'description': 'A long menu always worries me , because [ARG0: a large menu] [ARGM-TMP: often] [V: means] [ARG1: a large freezer] !', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'I-ARG0', 'I-ARG0', 'B-ARGM-TMP', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'O']}], 'words': ['A', 'long', 'menu', 'always', 'worries', 'me', ',', 'because', 'a', 'large', 'menu', 'often', 'means', 'a', 'large', 'freezer', '!']}, 'dependency': {'arc_loss': 0.2188505232334137, 'tag_loss': 0.33212706446647644, 'loss': 0.5509775876998901, 'words': ['A', 'long', 'menu', 'always', 'worries', 'me', ',', 'because', 'a', 'large', 'menu', 'often', 'means', 'a', 'large', 'freezer', '!'], 'pos': ['DET', 'ADJ', 'NOUN', 'ADV', 'VERB', 'PRON', 'PUNCT', 'SCONJ', 'DET', 'ADJ', 'NOUN', 'ADV', 'VERB', 'DET', 'ADJ', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['det', 'amod', 'nsubj', 'dep', 'root', 'dep', 'advmod', 'mark', 'dep', 'amod', 'nsubj', 'dep', 'dep', 'det', 'amod', 'dobj', 'npadvmod'], 'predicted_heads': [3, 3, 5, 5, 0, 5, 5, 13, 11, 11, 13, 13, 5, 16, 16, 13, 13], 'hierplane_tree': {'text': 'A long menu always worries me , because a large menu often means a large freezer !', 'root': {'word': 'worries', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 19, 'end': 27}], 'children': [{'word': 'menu', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 7, 'end': 12}], 'children': [{'word': 'A', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 0, 'end': 2}]}, {'word': 'long', 'nodeType': 'amod', 'attributes': ['ADJ'], 'link': 'amod', 'spans': [{'start': 2, 'end': 7}]}]}, {'word': 'always', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 12, 'end': 19}]}, {'word': 'me', 'nodeType': 'dep', 'attributes': ['PRON'], 'link': 'dep', 'spans': [{'start': 27, 'end': 30}]}, {'word': ',', 'nodeType': 'advmod', 'attributes': ['PUNCT'], 'link': 'advmod', 'spans': [{'start': 30, 'end': 32}]}, {'word': 'means', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 59, 'end': 65}], 'children': [{'word': 'because', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 32, 'end': 40}]}, {'word': 'menu', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 48, 'end': 53}], 'children': [{'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 40, 'end': 42}]}, {'word': 'large', 'nodeType': 'amod', 'attributes': ['ADJ'], 'link': 'amod', 'spans': [{'start': 42, 'end': 48}]}]}, {'word': 'often', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 53, 'end': 59}]}, {'word': 'freezer', 'nodeType': 'dobj', 'attributes': ['NOUN'], 'link': 'dobj', 'spans': [{'start': 73, 'end': 81}], 'children': [{'word': 'a', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 65, 'end': 67}]}, {'word': 'large', 'nodeType': 'amod', 'attributes': ['ADJ'], 'link': 'amod', 'spans': [{'start': 67, 'end': 73}]}]}, {'word': '!', 'nodeType': 'npadvmod', 'attributes': ['PUNCT'], 'link': 'npadvmod', 'spans': [{'start': 81, 'end': 83}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'started', 'description': '[ARG0: We] [V: started] [ARG2: with Wardle Trout] and although it was fresh , it was spoilt by a number of herbs .', 'tags': ['B-ARG0', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'We started with Wardle Trout and although [ARG1: it] [V: was] [ARG2: fresh] , it was spoilt by a number of herbs .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'B-V', 'B-ARG2', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'We started with Wardle Trout and although it was fresh , it [V: was] spoilt by a number of herbs .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'spoilt', 'description': 'We started with Wardle Trout and [ARGM-ADV: although it was fresh] , [ARG1: it] was [V: spoilt] [ARG0: by a number of herbs] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'B-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'O', 'B-ARG1', 'O', 'B-V', 'B-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'I-ARG0', 'O']}], 'words': ['We', 'started', 'with', 'Wardle', 'Trout', 'and', 'although', 'it', 'was', 'fresh', ',', 'it', 'was', 'spoilt', 'by', 'a', 'number', 'of', 'herbs', '.']}, 'dependency': {'arc_loss': 0.21303126215934753, 'tag_loss': 0.19111666083335876, 'loss': 0.4041479229927063, 'words': ['We', 'started', 'with', 'Wardle', 'Trout', 'and', 'although', 'it', 'was', 'fresh', ',', 'it', 'was', 'spoilt', 'by', 'a', 'number', 'of', 'herbs', '.'], 'pos': ['PRON', 'VERB', 'ADP', 'PROPN', 'PROPN', 'CCONJ', 'SCONJ', 'PRON', 'VERB', 'ADJ', 'PUNCT', 'PRON', 'VERB', 'VERB', 'ADP', 'DET', 'NOUN', 'ADP', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['nsubj', 'dep', 'prep', 'dep', 'pobj', 'dep', 'mark', 'nsubj', 'cop', 'dep', 'dep', 'nsubj', 'cop', 'root', 'prep', 'det', 'pobj', 'prep', 'pobj', 'punct'], 'predicted_heads': [14, 1, 1, 5, 3, 3, 10, 10, 10, 1, 10, 14, 14, 0, 14, 17, 15, 17, 18, 14], 'hierplane_tree': {'text': 'We started with Wardle Trout and although it was fresh , it was spoilt by a number of herbs .', 'root': {'word': 'spoilt', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 64, 'end': 71}], 'children': [{'word': 'We', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 0, 'end': 3}], 'children': [{'word': 'started', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 3, 'end': 11}]}, {'word': 'with', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 11, 'end': 16}], 'children': [{'word': 'Trout', 'nodeType': 'pobj', 'attributes': ['PROPN'], 'link': 'pobj', 'spans': [{'start': 23, 'end': 29}], 'children': [{'word': 'Wardle', 'nodeType': 'dep', 'attributes': ['PROPN'], 'link': 'dep', 'spans': [{'start': 16, 'end': 23}]}]}, {'word': 'and', 'nodeType': 'dep', 'attributes': ['CCONJ'], 'link': 'dep', 'spans': [{'start': 29, 'end': 33}]}]}, {'word': 'fresh', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 49, 'end': 55}], 'children': [{'word': 'although', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 33, 'end': 42}]}, {'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 42, 'end': 45}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 45, 'end': 49}]}, {'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 55, 'end': 57}]}]}]}, {'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 57, 'end': 60}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 60, 'end': 64}]}, {'word': 'by', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 71, 'end': 74}], 'children': [{'word': 'number', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 76, 'end': 83}], 'children': [{'word': 'a', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 74, 'end': 76}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 83, 'end': 86}], 'children': [{'word': 'herbs', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 86, 'end': 92}]}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 92, 'end': 94}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'chose', 'description': '[ARG4: For my main course] [ARG0: I] [V: chose] [ARG1: the pepper steak , which was the speciality of the day] .', 'tags': ['B-ARG4', 'I-ARG4', 'I-ARG4', 'I-ARG4', 'B-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}, {'verb': 'was', 'description': 'For my main course I chose [ARG1: the pepper steak] , [R-ARG1: which] [V: was] [ARG2: the speciality of the day] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'O', 'B-R-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O']}], 'words': ['For', 'my', 'main', 'course', 'I', 'chose', 'the', 'pepper', 'steak', ',', 'which', 'was', 'the', 'speciality', 'of', 'the', 'day', '.']}, 'dependency': {'arc_loss': 0.6896738409996033, 'tag_loss': 0.16991876065731049, 'loss': 0.859592616558075, 'words': ['For', 'my', 'main', 'course', 'I', 'chose', 'the', 'pepper', 'steak', ',', 'which', 'was', 'the', 'speciality', 'of', 'the', 'day', '.'], 'pos': ['ADP', 'PRON', 'ADJ', 'NOUN', 'PRON', 'VERB', 'DET', 'NOUN', 'NOUN', 'PUNCT', 'DET', 'VERB', 'DET', 'NOUN', 'ADP', 'DET', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['root', 'dep', 'dep', 'dep', 'nsubj', 'dep', 'dep', 'dep', 'dep', 'dep', 'nsubj', 'cop', 'det', 'rcmod', 'prep', 'det', 'pobj', 'punct'], 'predicted_heads': [0, 3, 4, 1, 6, 4, 8, 9, 6, 9, 14, 14, 14, 9, 14, 17, 15, 6], 'hierplane_tree': {'text': 'For my main course I chose the pepper steak , which was the speciality of the day .', 'root': {'word': 'For', 'nodeType': 'root', 'attributes': ['ADP'], 'link': 'root', 'spans': [{'start': 0, 'end': 4}], 'children': [{'word': 'course', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 12, 'end': 19}], 'children': [{'word': 'main', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 7, 'end': 12}], 'children': [{'word': 'my', 'nodeType': 'dep', 'attributes': ['PRON'], 'link': 'dep', 'spans': [{'start': 4, 'end': 7}]}]}, {'word': 'chose', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 21, 'end': 27}], 'children': [{'word': 'I', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 19, 'end': 21}]}, {'word': 'steak', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 38, 'end': 44}], 'children': [{'word': 'pepper', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 31, 'end': 38}], 'children': [{'word': 'the', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 27, 'end': 31}]}]}, {'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 44, 'end': 46}]}, {'word': 'speciality', 'nodeType': 'rcmod', 'attributes': ['NOUN'], 'link': 'rcmod', 'spans': [{'start': 60, 'end': 71}], 'children': [{'word': 'which', 'nodeType': 'nsubj', 'attributes': ['DET'], 'link': 'nsubj', 'spans': [{'start': 46, 'end': 52}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 52, 'end': 56}]}, {'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 56, 'end': 60}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 71, 'end': 74}], 'children': [{'word': 'day', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 78, 'end': 82}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 74, 'end': 78}]}]}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 82, 'end': 84}]}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'thought', 'description': '[ARG0: I] [V: thought] [ARG1: it was almost perfect because the chef had chosen excellent meat and it was cooked just long enough . My wife ordered the roast lamb] , and although the quality of the meat was good , she thought it was a little underdone .', 'tags': ['B-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'I thought [ARG1: it] [V: was] [ARG2: almost perfect] [ARGM-CAU: because the chef had chosen excellent meat and it was cooked just long enough . My wife ordered the roast lamb] , and although the quality of the meat was good , she thought it was a little underdone .', 'tags': ['O', 'O', 'B-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'B-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'had', 'description': 'I thought it was almost perfect because the chef [V: had] chosen excellent meat and it was cooked just long enough . My wife ordered the roast lamb , and although the quality of the meat was good , she thought it was a little underdone .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'chosen', 'description': 'I thought it was almost perfect because [ARG0: the chef] had [V: chosen] [ARG1: excellent meat] and it was cooked just long enough . My wife ordered the roast lamb , and although the quality of the meat was good , she thought it was a little underdone .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'I-ARG0', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'I thought it was almost perfect because the chef had chosen excellent meat and it [V: was] cooked just long enough . My wife ordered the roast lamb , and although the quality of the meat was good , she thought it was a little underdone .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'cooked', 'description': 'I thought it was almost perfect because the chef had chosen excellent meat and [ARG1: it] was [V: cooked] [ARGM-TMP: just long enough] . My wife ordered the roast lamb , and although the quality of the meat was good , she thought it was a little underdone .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'O', 'B-V', 'B-ARGM-TMP', 'I-ARGM-TMP', 'I-ARGM-TMP', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'ordered', 'description': 'I thought it was almost perfect because the chef had chosen excellent meat and it was cooked just long enough . [ARG0: My wife] [V: ordered] [ARG1: the roast lamb] , and although the quality of the meat was good , she thought it was a little underdone .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'I-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'I thought it was almost perfect because the chef had chosen excellent meat and it was cooked just long enough . My wife ordered the roast lamb , and although [ARG1: the quality of the meat] [V: was] [ARG2: good] , she thought it was a little underdone .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'B-V', 'B-ARG2', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'thought', 'description': 'I thought it was almost perfect because the chef had chosen excellent meat and it was cooked just long enough . My wife ordered the roast lamb , and [ARGM-ADV: although the quality of the meat was good] , [ARG0: she] [V: thought] [ARG1: it was a little underdone] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'O', 'B-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}, {'verb': 'was', 'description': 'I thought it was almost perfect because the chef had chosen excellent meat and it was cooked just long enough . My wife ordered the roast lamb , and although the quality of the meat was good , she thought [ARG1: it] [V: was] [ARG2: a little underdone] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'O']}], 'words': ['I', 'thought', 'it', 'was', 'almost', 'perfect', 'because', 'the', 'chef', 'had', 'chosen', 'excellent', 'meat', 'and', 'it', 'was', 'cooked', 'just', 'long', 'enough', '.', 'My', 'wife', 'ordered', 'the', 'roast', 'lamb', ',', 'and', 'although', 'the', 'quality', 'of', 'the', 'meat', 'was', 'good', ',', 'she', 'thought', 'it', 'was', 'a', 'little', 'underdone', '.']}, 'dependency': {'arc_loss': 0.5976677536964417, 'tag_loss': 0.4382363259792328, 'loss': 1.035904049873352, 'words': ['I', 'thought', 'it', 'was', 'almost', 'perfect', 'because', 'the', 'chef', 'had', 'chosen', 'excellent', 'meat', 'and', 'it', 'was', 'cooked', 'just', 'long', 'enough', '.', 'My', 'wife', 'ordered', 'the', 'roast', 'lamb', ',', 'and', 'although', 'the', 'quality', 'of', 'the', 'meat', 'was', 'good', ',', 'she', 'thought', 'it', 'was', 'a', 'little', 'underdone', '.'], 'pos': ['PRON', 'VERB', 'PRON', 'VERB', 'ADV', 'ADJ', 'SCONJ', 'DET', 'NOUN', 'VERB', 'VERB', 'ADJ', 'NOUN', 'CCONJ', 'PRON', 'VERB', 'VERB', 'ADV', 'ADV', 'ADV', 'PUNCT', 'PRON', 'NOUN', 'VERB', 'DET', 'NOUN', 'NOUN', 'PUNCT', 'CCONJ', 'SCONJ', 'DET', 'NOUN', 'ADP', 'DET', 'NOUN', 'VERB', 'ADJ', 'PUNCT', 'PRON', 'VERB', 'PRON', 'VERB', 'DET', 'ADJ', 'ADJ', 'PUNCT'], 'predicted_dependencies': ['nsubj', 'root', 'nsubj', 'dep', 'advmod', 'dep', 'mark', 'det', 'nsubj', 'aux', 'amod', 'dep', 'dep', 'dep', 'nsubj', 'cop', 'dep', 'dep', 'amod', 'dep', 'mark', 'amod', 'nsubj', 'dep', 'det', 'amod', 'dep', 'mark', 'cc', 'mark', 'dep', 'nsubj', 'prep', 'det', 'pobj', 'cop', 'dep', 'dep', 'nsubj', 'dep', 'nsubj', 'cop', 'det', 'npadvmod', 'ccomp', 'amod'], 'predicted_heads': [2, 0, 6, 2, 6, 2, 17, 9, 17, 11, 9, 11, 12, 11, 17, 17, 6, 19, 20, 17, 17, 23, 24, 17, 27, 27, 24, 37, 37, 37, 32, 37, 32, 35, 33, 37, 24, 37, 40, 37, 45, 45, 44, 45, 40, 44], 'hierplane_tree': {'text': 'I thought it was almost perfect because the chef had chosen excellent meat and it was cooked just long enough . My wife ordered the roast lamb , and although the quality of the meat was good , she thought it was a little underdone .', 'root': {'word': 'thought', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 2, 'end': 10}], 'children': [{'word': 'I', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 0, 'end': 2}]}, {'word': 'was', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 13, 'end': 17}]}, {'word': 'perfect', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 24, 'end': 32}], 'children': [{'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 10, 'end': 13}]}, {'word': 'almost', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 17, 'end': 24}]}, {'word': 'cooked', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 86, 'end': 93}], 'children': [{'word': 'because', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 32, 'end': 40}]}, {'word': 'chef', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 44, 'end': 49}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 40, 'end': 44}]}, {'word': 'chosen', 'nodeType': 'amod', 'attributes': ['VERB'], 'link': 'amod', 'spans': [{'start': 53, 'end': 60}], 'children': [{'word': 'had', 'nodeType': 'aux', 'attributes': ['VERB'], 'link': 'aux', 'spans': [{'start': 49, 'end': 53}]}, {'word': 'excellent', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 60, 'end': 70}], 'children': [{'word': 'meat', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 70, 'end': 75}]}]}, {'word': 'and', 'nodeType': 'dep', 'attributes': ['CCONJ'], 'link': 'dep', 'spans': [{'start': 75, 'end': 79}]}]}]}, {'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 79, 'end': 82}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 82, 'end': 86}]}, {'word': 'enough', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 103, 'end': 110}], 'children': [{'word': 'long', 'nodeType': 'amod', 'attributes': ['ADV'], 'link': 'amod', 'spans': [{'start': 98, 'end': 103}], 'children': [{'word': 'just', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 93, 'end': 98}]}]}]}, {'word': '.', 'nodeType': 'mark', 'attributes': ['PUNCT'], 'link': 'mark', 'spans': [{'start': 110, 'end': 112}]}, {'word': 'ordered', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 120, 'end': 128}], 'children': [{'word': 'wife', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 115, 'end': 120}], 'children': [{'word': 'My', 'nodeType': 'amod', 'attributes': ['PRON'], 'link': 'amod', 'spans': [{'start': 112, 'end': 115}]}]}, {'word': 'lamb', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 138, 'end': 143}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 128, 'end': 132}]}, {'word': 'roast', 'nodeType': 'amod', 'attributes': ['NOUN'], 'link': 'amod', 'spans': [{'start': 132, 'end': 138}]}]}, {'word': 'good', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 186, 'end': 191}], 'children': [{'word': ',', 'nodeType': 'mark', 'attributes': ['PUNCT'], 'link': 'mark', 'spans': [{'start': 143, 'end': 145}]}, {'word': 'and', 'nodeType': 'cc', 'attributes': ['CCONJ'], 'link': 'cc', 'spans': [{'start': 145, 'end': 149}]}, {'word': 'although', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 149, 'end': 158}]}, {'word': 'quality', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 162, 'end': 170}], 'children': [{'word': 'the', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 158, 'end': 162}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 170, 'end': 173}], 'children': [{'word': 'meat', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 177, 'end': 182}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 173, 'end': 177}]}]}]}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 182, 'end': 186}]}, {'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 191, 'end': 193}]}, {'word': 'thought', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 197, 'end': 205}], 'children': [{'word': 'she', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 193, 'end': 197}]}, {'word': 'underdone', 'nodeType': 'ccomp', 'attributes': ['ADJ'], 'link': 'ccomp', 'spans': [{'start': 221, 'end': 231}], 'children': [{'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 205, 'end': 208}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 208, 'end': 212}]}, {'word': 'little', 'nodeType': 'npadvmod', 'attributes': ['ADJ'], 'link': 'npadvmod', 'spans': [{'start': 214, 'end': 221}], 'children': [{'word': 'a', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 212, 'end': 214}]}, {'word': '.', 'nodeType': 'amod', 'attributes': ['PUNCT'], 'link': 'amod', 'spans': [{'start': 231, 'end': 233}]}]}]}]}]}]}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'were', 'description': 'Though [ARG1: the vegetables] [V: were] [ARG2: fresh] , they came in very small portions and were rather over - cooked for our taste . However , the bread was fresh because it had been baked on the premises .', 'tags': ['O', 'B-ARG1', 'I-ARG1', 'B-V', 'B-ARG2', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'came', 'description': '[ARGM-ADV: Though the vegetables were fresh] , [ARG1: they] [V: came] [ARGM-MNR: in very small portions] and were rather over - cooked for our taste . However , the bread was fresh because it had been baked on the premises .', 'tags': ['B-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'O', 'B-ARG1', 'B-V', 'B-ARGM-MNR', 'I-ARGM-MNR', 'I-ARGM-MNR', 'I-ARGM-MNR', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'were', 'description': '[ARGM-ADV: Though the vegetables were fresh] , [ARG1: they] came in very small portions and [V: were] [ARG2: rather over - cooked for our taste] . However , the bread was fresh because it had been baked on the premises .', 'tags': ['B-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'O', 'B-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'cooked', 'description': 'Though the vegetables were fresh , [ARG1: they] came in very small portions and were [ARGM-ADV: rather] [ARGM-TMP: over] - [V: cooked] [ARGM-PRP: for our taste] . However , the bread was fresh because it had been baked on the premises .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARGM-ADV', 'B-ARGM-TMP', 'O', 'B-V', 'B-ARGM-PRP', 'I-ARGM-PRP', 'I-ARGM-PRP', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'Though the vegetables were fresh , they came in very small portions and were rather over - cooked for our taste . [ARGM-DIS: However] , [ARG1: the bread] [V: was] [ARG2: fresh] [ARGM-CAU: because it had been baked on the premises] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARGM-DIS', 'O', 'B-ARG1', 'I-ARG1', 'B-V', 'B-ARG2', 'B-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'O']}, {'verb': 'had', 'description': 'Though the vegetables were fresh , they came in very small portions and were rather over - cooked for our taste . However , the bread was fresh because it [V: had] been baked on the premises .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'been', 'description': 'Though the vegetables were fresh , they came in very small portions and were rather over - cooked for our taste . However , the bread was fresh because it had [V: been] baked on the premises .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'baked', 'description': 'Though the vegetables were fresh , they came in very small portions and were rather over - cooked for our taste . However , the bread was fresh because [ARG1: it] had been [V: baked] [ARGM-LOC: on the premises] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'O', 'O', 'B-V', 'B-ARGM-LOC', 'I-ARGM-LOC', 'I-ARGM-LOC', 'O']}], 'words': ['Though', 'the', 'vegetables', 'were', 'fresh', ',', 'they', 'came', 'in', 'very', 'small', 'portions', 'and', 'were', 'rather', 'over', '-', 'cooked', 'for', 'our', 'taste', '.', 'However', ',', 'the', 'bread', 'was', 'fresh', 'because', 'it', 'had', 'been', 'baked', 'on', 'the', 'premises', '.']}, 'dependency': {'arc_loss': 0.6055753827095032, 'tag_loss': 0.3830244243144989, 'loss': 0.9885997772216797, 'words': ['Though', 'the', 'vegetables', 'were', 'fresh', ',', 'they', 'came', 'in', 'very', 'small', 'portions', 'and', 'were', 'rather', 'over', '-', 'cooked', 'for', 'our', 'taste', '.', 'However', ',', 'the', 'bread', 'was', 'fresh', 'because', 'it', 'had', 'been', 'baked', 'on', 'the', 'premises', '.'], 'pos': ['SCONJ', 'DET', 'NOUN', 'VERB', 'ADJ', 'PUNCT', 'PRON', 'VERB', 'ADP', 'ADV', 'ADJ', 'NOUN', 'CCONJ', 'VERB', 'ADV', 'ADV', 'PUNCT', 'VERB', 'ADP', 'PRON', 'NOUN', 'PUNCT', 'ADV', 'PUNCT', 'DET', 'NOUN', 'VERB', 'ADJ', 'SCONJ', 'PRON', 'VERB', 'VERB', 'VERB', 'ADP', 'DET', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['mark', 'det', 'nsubj', 'cop', 'advcl', 'punct', 'nsubj', 'dep', 'prep', 'advmod', 'amod', 'dep', 'nsubj', 'cop', 'root', 'dep', 'dep', 'dep', 'prep', 'pobj', 'pobj', 'amod', 'nsubj', 'dep', 'dep', 'nsubj', 'cop', 'dep', 'mark', 'nsubj', 'aux', 'auxpass', 'advcl', 'prep', 'det', 'pobj', 'punct'], 'predicted_heads': [5, 3, 5, 5, 14, 5, 8, 14, 8, 11, 12, 9, 14, 15, 0, 15, 18, 15, 18, 19, 19, 21, 28, 28, 26, 28, 28, 22, 33, 33, 33, 33, 28, 33, 36, 34, 28], 'hierplane_tree': {'text': 'Though the vegetables were fresh , they came in very small portions and were rather over - cooked for our taste . However , the bread was fresh because it had been baked on the premises .', 'root': {'word': 'rather', 'nodeType': 'root', 'attributes': ['ADV'], 'link': 'root', 'spans': [{'start': 77, 'end': 84}], 'children': [{'word': 'were', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 72, 'end': 77}], 'children': [{'word': 'fresh', 'nodeType': 'advcl', 'attributes': ['ADJ'], 'link': 'advcl', 'spans': [{'start': 27, 'end': 33}], 'children': [{'word': 'Though', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 0, 'end': 7}]}, {'word': 'vegetables', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 11, 'end': 22}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 7, 'end': 11}]}]}, {'word': 'were', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 22, 'end': 27}]}, {'word': ',', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 33, 'end': 35}]}]}, {'word': 'came', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 40, 'end': 45}], 'children': [{'word': 'they', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 35, 'end': 40}]}, {'word': 'in', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 45, 'end': 48}], 'children': [{'word': 'portions', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 59, 'end': 68}], 'children': [{'word': 'small', 'nodeType': 'amod', 'attributes': ['ADJ'], 'link': 'amod', 'spans': [{'start': 53, 'end': 59}], 'children': [{'word': 'very', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 48, 'end': 53}]}]}]}]}]}, {'word': 'and', 'nodeType': 'nsubj', 'attributes': ['CCONJ'], 'link': 'nsubj', 'spans': [{'start': 68, 'end': 72}]}]}, {'word': 'over', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 84, 'end': 89}]}, {'word': 'cooked', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 91, 'end': 98}], 'children': [{'word': '-', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 89, 'end': 91}]}, {'word': 'for', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 98, 'end': 102}], 'children': [{'word': 'our', 'nodeType': 'pobj', 'attributes': ['PRON'], 'link': 'pobj', 'spans': [{'start': 102, 'end': 106}]}, {'word': 'taste', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 106, 'end': 112}], 'children': [{'word': '.', 'nodeType': 'amod', 'attributes': ['PUNCT'], 'link': 'amod', 'spans': [{'start': 112, 'end': 114}], 'children': [{'word': 'fresh', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 138, 'end': 144}], 'children': [{'word': 'However', 'nodeType': 'nsubj', 'attributes': ['ADV'], 'link': 'nsubj', 'spans': [{'start': 114, 'end': 122}]}, {'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 122, 'end': 124}]}, {'word': 'bread', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 128, 'end': 134}], 'children': [{'word': 'the', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 124, 'end': 128}]}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 134, 'end': 138}]}, {'word': 'baked', 'nodeType': 'advcl', 'attributes': ['VERB'], 'link': 'advcl', 'spans': [{'start': 164, 'end': 170}], 'children': [{'word': 'because', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 144, 'end': 152}]}, {'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 152, 'end': 155}]}, {'word': 'had', 'nodeType': 'aux', 'attributes': ['VERB'], 'link': 'aux', 'spans': [{'start': 155, 'end': 159}]}, {'word': 'been', 'nodeType': 'auxpass', 'attributes': ['VERB'], 'link': 'auxpass', 'spans': [{'start': 159, 'end': 164}]}, {'word': 'on', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 170, 'end': 173}], 'children': [{'word': 'premises', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 177, 'end': 186}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 173, 'end': 177}]}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 186, 'end': 188}]}]}]}]}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'have', 'description': 'I [V: have] often complained in this column about the difficulty of finding any restaurant which serves a fresh fruit salad .', 'tags': ['O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'complained', 'description': '[ARG0: I] have [ARGM-TMP: often] [V: complained] [ARGM-LOC: in this column] [ARG1: about the difficulty of finding any restaurant which serves a fresh fruit salad] .', 'tags': ['B-ARG0', 'O', 'B-ARGM-TMP', 'B-V', 'B-ARGM-LOC', 'I-ARGM-LOC', 'I-ARGM-LOC', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}, {'verb': 'finding', 'description': 'I have often complained in this column about the difficulty of [V: finding] [ARG1: any restaurant which serves a fresh fruit salad] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}, {'verb': 'serves', 'description': 'I have often complained in this column about the difficulty of finding [ARG0: any restaurant] [R-ARG0: which] [V: serves] [ARG1: a fresh fruit salad] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'I-ARG0', 'B-R-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}], 'words': ['I', 'have', 'often', 'complained', 'in', 'this', 'column', 'about', 'the', 'difficulty', 'of', 'finding', 'any', 'restaurant', 'which', 'serves', 'a', 'fresh', 'fruit', 'salad', '.']}, 'dependency': {'arc_loss': 0.23935608565807343, 'tag_loss': 0.19917476177215576, 'loss': 0.4385308623313904, 'words': ['I', 'have', 'often', 'complained', 'in', 'this', 'column', 'about', 'the', 'difficulty', 'of', 'finding', 'any', 'restaurant', 'which', 'serves', 'a', 'fresh', 'fruit', 'salad', '.'], 'pos': ['PRON', 'VERB', 'ADV', 'VERB', 'ADP', 'DET', 'NOUN', 'ADP', 'DET', 'NOUN', 'ADP', 'VERB', 'DET', 'NOUN', 'DET', 'VERB', 'DET', 'ADJ', 'NOUN', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['nsubj', 'aux', 'advmod', 'root', 'prep', 'pobj', 'dobj', 'prep', 'dep', 'dep', 'prep', 'pcomp', 'dep', 'dobj', 'dep', 'dep', 'dep', 'dep', 'amod', 'dobj', 'punct'], 'predicted_heads': [4, 4, 4, 0, 4, 5, 4, 7, 10, 8, 10, 11, 14, 12, 14, 14, 20, 19, 20, 16, 4], 'hierplane_tree': {'text': 'I have often complained in this column about the difficulty of finding any restaurant which serves a fresh fruit salad .', 'root': {'word': 'complained', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 13, 'end': 24}], 'children': [{'word': 'I', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 0, 'end': 2}]}, {'word': 'have', 'nodeType': 'aux', 'attributes': ['VERB'], 'link': 'aux', 'spans': [{'start': 2, 'end': 7}]}, {'word': 'often', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 7, 'end': 13}]}, {'word': 'in', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 24, 'end': 27}], 'children': [{'word': 'this', 'nodeType': 'pobj', 'attributes': ['DET'], 'link': 'pobj', 'spans': [{'start': 27, 'end': 32}]}]}, {'word': 'column', 'nodeType': 'dobj', 'attributes': ['NOUN'], 'link': 'dobj', 'spans': [{'start': 32, 'end': 39}], 'children': [{'word': 'about', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 39, 'end': 45}], 'children': [{'word': 'difficulty', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 49, 'end': 60}], 'children': [{'word': 'the', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 45, 'end': 49}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 60, 'end': 63}], 'children': [{'word': 'finding', 'nodeType': 'pcomp', 'attributes': ['VERB'], 'link': 'pcomp', 'spans': [{'start': 63, 'end': 71}], 'children': [{'word': 'restaurant', 'nodeType': 'dobj', 'attributes': ['NOUN'], 'link': 'dobj', 'spans': [{'start': 75, 'end': 86}], 'children': [{'word': 'any', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 71, 'end': 75}]}, {'word': 'which', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 86, 'end': 92}]}, {'word': 'serves', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 92, 'end': 99}], 'children': [{'word': 'salad', 'nodeType': 'dobj', 'attributes': ['NOUN'], 'link': 'dobj', 'spans': [{'start': 113, 'end': 119}], 'children': [{'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 99, 'end': 101}]}, {'word': 'fruit', 'nodeType': 'amod', 'attributes': ['NOUN'], 'link': 'amod', 'spans': [{'start': 107, 'end': 113}], 'children': [{'word': 'fresh', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 101, 'end': 107}]}]}]}]}]}]}]}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 119, 'end': 121}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'did', 'description': 'Luckily , this one [V: did] .', 'tags': ['O', 'O', 'O', 'O', 'B-V', 'O']}], 'words': ['Luckily', ',', 'this', 'one', 'did', '.']}, 'dependency': {'arc_loss': 0.5432762503623962, 'tag_loss': 0.5720518231391907, 'loss': 1.115328073501587, 'words': ['Luckily', ',', 'this', 'one', 'did', '.'], 'pos': ['ADV', 'PUNCT', 'DET', 'NOUN', 'VERB', 'PUNCT'], 'predicted_dependencies': ['nsubj', 'advmod', 'nn', 'dep', 'root', 'dep'], 'predicted_heads': [5, 5, 4, 5, 0, 5], 'hierplane_tree': {'text': 'Luckily , this one did .', 'root': {'word': 'did', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 19, 'end': 23}], 'children': [{'word': 'Luckily', 'nodeType': 'nsubj', 'attributes': ['ADV'], 'link': 'nsubj', 'spans': [{'start': 0, 'end': 8}]}, {'word': ',', 'nodeType': 'advmod', 'attributes': ['PUNCT'], 'link': 'advmod', 'spans': [{'start': 8, 'end': 10}]}, {'word': 'one', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 15, 'end': 19}], 'children': [{'word': 'this', 'nodeType': 'nn', 'attributes': ['DET'], 'link': 'nn', 'spans': [{'start': 10, 'end': 15}]}]}, {'word': '.', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 23, 'end': 25}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'must', 'description': 'Even though it [V: must] have been very time - consuming to prepare , it was a delight to see , and I had a second helping .', 'tags': ['O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'have', 'description': 'Even though it must [V: have] been very time - consuming to prepare , it was a delight to see , and I had a second helping .', 'tags': ['O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'been', 'description': 'Even though it [ARGM-MOD: must] have [V: been] [ARG2: very time - consuming] [ARG1: to prepare] , it was a delight to see , and I had a second helping .', 'tags': ['O', 'O', 'O', 'B-ARGM-MOD', 'O', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'B-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'consuming', 'description': 'Even though it must have been very [ARG1: time] - [V: consuming] to prepare , it was a delight to see , and I had a second helping .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'prepare', 'description': 'Even though it must have been very time - consuming to [V: prepare] , it was a delight to see , and I had a second helping .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': '[ARGM-ADV: Even though it must have been very time - consuming to prepare] , [ARG1: it] [V: was] [ARG2: a delight to see] , and I had a second helping .', 'tags': ['B-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'O', 'B-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'see', 'description': 'Even though it must have been very time - consuming to prepare , it was [ARG1: a delight] to [V: see] , and I had a second helping .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'I-ARG1', 'O', 'B-V', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'had', 'description': 'Even though it must have been very time - consuming to prepare , it was a delight to see , and [ARG0: I] [V: had] [ARG1: a second helping] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'O']}], 'words': ['Even', 'though', 'it', 'must', 'have', 'been', 'very', 'time', '-', 'consuming', 'to', 'prepare', ',', 'it', 'was', 'a', 'delight', 'to', 'see', ',', 'and', 'I', 'had', 'a', 'second', 'helping', '.']}, 'dependency': {'arc_loss': 0.907900869846344, 'tag_loss': 0.3658102750778198, 'loss': 1.2737112045288086, 'words': ['Even', 'though', 'it', 'must', 'have', 'been', 'very', 'time', '-', 'consuming', 'to', 'prepare', ',', 'it', 'was', 'a', 'delight', 'to', 'see', ',', 'and', 'I', 'had', 'a', 'second', 'helping', '.'], 'pos': ['ADV', 'SCONJ', 'PRON', 'AUX', 'VERB', 'VERB', 'ADV', 'NOUN', 'PUNCT', 'VERB', 'PART', 'VERB', 'PUNCT', 'PRON', 'VERB', 'DET', 'NOUN', 'PART', 'VERB', 'PUNCT', 'CCONJ', 'PRON', 'VERB', 'DET', 'ADJ', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['advmod', 'advmod', 'nsubj', 'aux', 'aux', 'cop', 'dep', 'root', 'punct', 'dep', 'aux', 'ccomp', 'punct', 'nsubj', 'cop', 'det', 'dep', 'prep', 'dep', 'discourse', 'cc', 'nsubj', 'dep', 'dep', 'nsubj', 'xcomp', 'punct'], 'predicted_heads': [3, 3, 8, 8, 8, 8, 8, 0, 8, 8, 12, 10, 17, 17, 17, 17, 8, 17, 18, 23, 23, 23, 19, 25, 26, 23, 23], 'hierplane_tree': {'text': 'Even though it must have been very time - consuming to prepare , it was a delight to see , and I had a second helping .', 'root': {'word': 'time', 'nodeType': 'root', 'attributes': ['NOUN'], 'link': 'root', 'spans': [{'start': 35, 'end': 40}], 'children': [{'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 12, 'end': 15}], 'children': [{'word': 'Even', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 0, 'end': 5}]}, {'word': 'though', 'nodeType': 'advmod', 'attributes': ['SCONJ'], 'link': 'advmod', 'spans': [{'start': 5, 'end': 12}]}]}, {'word': 'must', 'nodeType': 'aux', 'attributes': ['AUX'], 'link': 'aux', 'spans': [{'start': 15, 'end': 20}]}, {'word': 'have', 'nodeType': 'aux', 'attributes': ['VERB'], 'link': 'aux', 'spans': [{'start': 20, 'end': 25}]}, {'word': 'been', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 25, 'end': 30}]}, {'word': 'very', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 30, 'end': 35}]}, {'word': '-', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 40, 'end': 42}]}, {'word': 'consuming', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 42, 'end': 52}], 'children': [{'word': 'prepare', 'nodeType': 'ccomp', 'attributes': ['VERB'], 'link': 'ccomp', 'spans': [{'start': 55, 'end': 63}], 'children': [{'word': 'to', 'nodeType': 'aux', 'attributes': ['PART'], 'link': 'aux', 'spans': [{'start': 52, 'end': 55}]}]}]}, {'word': 'delight', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 74, 'end': 82}], 'children': [{'word': ',', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 63, 'end': 65}]}, {'word': 'it', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 65, 'end': 68}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 68, 'end': 72}]}, {'word': 'a', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 72, 'end': 74}]}, {'word': 'to', 'nodeType': 'prep', 'attributes': ['PART'], 'link': 'prep', 'spans': [{'start': 82, 'end': 85}], 'children': [{'word': 'see', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 85, 'end': 89}], 'children': [{'word': 'had', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 97, 'end': 101}], 'children': [{'word': ',', 'nodeType': 'discourse', 'attributes': ['PUNCT'], 'link': 'discourse', 'spans': [{'start': 89, 'end': 91}]}, {'word': 'and', 'nodeType': 'cc', 'attributes': ['CCONJ'], 'link': 'cc', 'spans': [{'start': 91, 'end': 95}]}, {'word': 'I', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 95, 'end': 97}]}, {'word': 'helping', 'nodeType': 'xcomp', 'attributes': ['NOUN'], 'link': 'xcomp', 'spans': [{'start': 110, 'end': 118}], 'children': [{'word': 'second', 'nodeType': 'nsubj', 'attributes': ['ADJ'], 'link': 'nsubj', 'spans': [{'start': 103, 'end': 110}], 'children': [{'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 101, 'end': 103}]}]}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 118, 'end': 120}]}]}]}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'chose', 'description': "[ARGM-ADV: As usual] , [ARG0: I] [V: chose] [ARG1: house wine] , [ARGM-CAU: as this is often the best way to judge a restaurant 's wine list] .", 'tags': ['B-ARGM-ADV', 'I-ARGM-ADV', 'O', 'B-ARG0', 'B-V', 'B-ARG1', 'I-ARG1', 'O', 'B-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'I-ARGM-CAU', 'O']}, {'verb': 'is', 'description': "As usual , I chose house wine , as [ARG1: this] [V: is] [ARGM-TMP: often] [ARG2: the best way to judge a restaurant 's wine list] .", 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'B-V', 'B-ARGM-TMP', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O']}, {'verb': 'judge', 'description': "As usual , I chose house wine , as this is often [ARGM-MNR: the best way] to [V: judge] [ARG1: a restaurant 's wine list] .", 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARGM-MNR', 'I-ARGM-MNR', 'I-ARGM-MNR', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'O']}], 'words': ['As', 'usual', ',', 'I', 'chose', 'house', 'wine', ',', 'as', 'this', 'is', 'often', 'the', 'best', 'way', 'to', 'judge', 'a', 'restaurant', "'s", 'wine', 'list', '.']}, 'dependency': {'arc_loss': 1.315301775932312, 'tag_loss': 0.5237261652946472, 'loss': 1.8390278816223145, 'words': ['As', 'usual', ',', 'I', 'chose', 'house', 'wine', ',', 'as', 'this', 'is', 'often', 'the', 'best', 'way', 'to', 'judge', 'a', 'restaurant', "'s", 'wine', 'list', '.'], 'pos': ['ADP', 'ADJ', 'PUNCT', 'PRON', 'VERB', 'NOUN', 'NOUN', 'PUNCT', 'ADP', 'DET', 'VERB', 'ADV', 'DET', 'ADJ', 'NOUN', 'PART', 'VERB', 'DET', 'NOUN', 'PART', 'NOUN', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['dep', 'dep', 'advmod', 'nsubj', 'dep', 'dep', 'dep', 'advmod', 'mark', 'nsubj', 'cop', 'dep', 'dep', 'dep', 'root', 'dep', 'dep', 'amod', 'dep', 'possessive', 'amod', 'pobj', 'punct'], 'predicted_heads': [2, 12, 2, 5, 2, 7, 2, 7, 12, 12, 12, 14, 14, 15, 0, 15, 16, 19, 21, 19, 22, 16, 14], 'hierplane_tree': {'text': "As usual , I chose house wine , as this is often the best way to judge a restaurant 's wine list .", 'root': {'word': 'way', 'nodeType': 'root', 'attributes': ['NOUN'], 'link': 'root', 'spans': [{'start': 58, 'end': 62}], 'children': [{'word': 'best', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 53, 'end': 58}], 'children': [{'word': 'often', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 43, 'end': 49}], 'children': [{'word': 'usual', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 3, 'end': 9}], 'children': [{'word': 'As', 'nodeType': 'dep', 'attributes': ['ADP'], 'link': 'dep', 'spans': [{'start': 0, 'end': 3}]}, {'word': ',', 'nodeType': 'advmod', 'attributes': ['PUNCT'], 'link': 'advmod', 'spans': [{'start': 9, 'end': 11}]}, {'word': 'chose', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 13, 'end': 19}], 'children': [{'word': 'I', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 11, 'end': 13}]}]}, {'word': 'wine', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 25, 'end': 30}], 'children': [{'word': 'house', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 19, 'end': 25}]}, {'word': ',', 'nodeType': 'advmod', 'attributes': ['PUNCT'], 'link': 'advmod', 'spans': [{'start': 30, 'end': 32}]}]}]}, {'word': 'as', 'nodeType': 'mark', 'attributes': ['ADP'], 'link': 'mark', 'spans': [{'start': 32, 'end': 35}]}, {'word': 'this', 'nodeType': 'nsubj', 'attributes': ['DET'], 'link': 'nsubj', 'spans': [{'start': 35, 'end': 40}]}, {'word': 'is', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 40, 'end': 43}]}]}, {'word': 'the', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 49, 'end': 53}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 97, 'end': 99}]}]}, {'word': 'to', 'nodeType': 'dep', 'attributes': ['PART'], 'link': 'dep', 'spans': [{'start': 62, 'end': 65}], 'children': [{'word': 'judge', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 65, 'end': 71}]}, {'word': 'list', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 92, 'end': 97}], 'children': [{'word': 'wine', 'nodeType': 'amod', 'attributes': ['NOUN'], 'link': 'amod', 'spans': [{'start': 87, 'end': 92}], 'children': [{'word': 'restaurant', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 73, 'end': 84}], 'children': [{'word': 'a', 'nodeType': 'amod', 'attributes': ['DET'], 'link': 'amod', 'spans': [{'start': 71, 'end': 73}]}, {'word': "'s", 'nodeType': 'possessive', 'attributes': ['PART'], 'link': 'possessive', 'spans': [{'start': 84, 'end': 87}]}]}]}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'was', 'description': '[ARG1: It] [V: was] [ARG2: a French - bottled table wine which was quite satisfactory and reasonably priced] .', 'tags': ['B-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O']}, {'verb': 'bottled', 'description': 'It was a [ARG3: French] - [V: bottled] [ARG1: table wine] which was quite satisfactory and reasonably priced .', 'tags': ['O', 'O', 'O', 'B-ARG3', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'was', 'description': 'It was [ARG1: a French - bottled table wine] [R-ARG1: which] [V: was] [ARG2: quite satisfactory and reasonably priced] .', 'tags': ['O', 'O', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'B-R-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O']}, {'verb': 'priced', 'description': 'It was [ARG1: a French - bottled table wine] [R-ARG1: which] was quite satisfactory and [ARGM-MNR: reasonably] [V: priced] .', 'tags': ['O', 'O', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'B-R-ARG1', 'O', 'O', 'O', 'O', 'B-ARGM-MNR', 'B-V', 'O']}], 'words': ['It', 'was', 'a', 'French', '-', 'bottled', 'table', 'wine', 'which', 'was', 'quite', 'satisfactory', 'and', 'reasonably', 'priced', '.']}, 'dependency': {'arc_loss': 0.9286961555480957, 'tag_loss': 0.15528826415538788, 'loss': 1.083984375, 'words': ['It', 'was', 'a', 'French', '-', 'bottled', 'table', 'wine', 'which', 'was', 'quite', 'satisfactory', 'and', 'reasonably', 'priced', '.'], 'pos': ['PRON', 'VERB', 'DET', 'PROPN', 'PUNCT', 'VERB', 'NOUN', 'NOUN', 'DET', 'VERB', 'ADV', 'ADJ', 'CCONJ', 'ADV', 'VERB', 'PUNCT'], 'predicted_dependencies': ['nsubj', 'root', 'dep', 'dep', 'dep', 'dep', 'dep', 'dep', 'nsubj', 'cop', 'dep', 'dep', 'dep', 'advmod', 'dep', 'dep'], 'predicted_heads': [2, 0, 2, 3, 8, 8, 8, 4, 11, 12, 12, 3, 12, 15, 12, 2], 'hierplane_tree': {'text': 'It was a French - bottled table wine which was quite satisfactory and reasonably priced .', 'root': {'word': 'was', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 3, 'end': 7}], 'children': [{'word': 'It', 'nodeType': 'nsubj', 'attributes': ['PRON'], 'link': 'nsubj', 'spans': [{'start': 0, 'end': 3}]}, {'word': 'a', 'nodeType': 'dep', 'attributes': ['DET'], 'link': 'dep', 'spans': [{'start': 7, 'end': 9}], 'children': [{'word': 'French', 'nodeType': 'dep', 'attributes': ['PROPN'], 'link': 'dep', 'spans': [{'start': 9, 'end': 16}], 'children': [{'word': 'wine', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 32, 'end': 37}], 'children': [{'word': '-', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 16, 'end': 18}]}, {'word': 'bottled', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 18, 'end': 26}]}, {'word': 'table', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 26, 'end': 32}]}]}]}, {'word': 'satisfactory', 'nodeType': 'dep', 'attributes': ['ADJ'], 'link': 'dep', 'spans': [{'start': 53, 'end': 66}], 'children': [{'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 43, 'end': 47}]}, {'word': 'quite', 'nodeType': 'dep', 'attributes': ['ADV'], 'link': 'dep', 'spans': [{'start': 47, 'end': 53}], 'children': [{'word': 'which', 'nodeType': 'nsubj', 'attributes': ['DET'], 'link': 'nsubj', 'spans': [{'start': 37, 'end': 43}]}]}, {'word': 'and', 'nodeType': 'dep', 'attributes': ['CCONJ'], 'link': 'dep', 'spans': [{'start': 66, 'end': 70}]}, {'word': 'priced', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 81, 'end': 88}], 'children': [{'word': 'reasonably', 'nodeType': 'advmod', 'attributes': ['ADV'], 'link': 'advmod', 'spans': [{'start': 70, 'end': 81}]}]}]}]}, {'word': '.', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 88, 'end': 90}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}, {'semantic_roles': {'verbs': [{'verb': 'including', 'description': '[ARG2: The bill] , [V: including] [ARG1: coffee and brandy] , came to 38 pounds , which was acceptable for the class of restaurant , although that did not include service .', 'tags': ['B-ARG2', 'I-ARG2', 'O', 'B-V', 'B-ARG1', 'I-ARG1', 'I-ARG1', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O']}, {'verb': 'came', 'description': '[ARG1: The bill , including coffee and brandy ,] [V: came] [ARG2: to 38 pounds , which was acceptable for the class of restaurant , although that did not include service] .', 'tags': ['B-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'I-ARG1', 'B-V', 'B-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'I-ARG2', 'O']}, {'verb': 'was', 'description': 'The bill , including coffee and brandy , came to [ARG1: 38 pounds] , [R-ARG1: which] [V: was] [ARG2: acceptable] [ARGM-GOL: for the class of restaurant] , [ARGM-ADV: although that did not include service] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG1', 'I-ARG1', 'O', 'B-R-ARG1', 'B-V', 'B-ARG2', 'B-ARGM-GOL', 'I-ARGM-GOL', 'I-ARGM-GOL', 'I-ARGM-GOL', 'I-ARGM-GOL', 'O', 'B-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'I-ARGM-ADV', 'O']}, {'verb': 'did', 'description': 'The bill , including coffee and brandy , came to 38 pounds , which was acceptable for the class of restaurant , although that [V: did] not include service .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-V', 'O', 'O', 'O', 'O']}, {'verb': 'include', 'description': 'The bill , including coffee and brandy , came to 38 pounds , which was acceptable for the class of restaurant , although [ARG2: that] did [ARGM-NEG: not] [V: include] [ARG1: service] .', 'tags': ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-ARG2', 'O', 'B-ARGM-NEG', 'B-V', 'B-ARG1', 'O']}], 'words': ['The', 'bill', ',', 'including', 'coffee', 'and', 'brandy', ',', 'came', 'to', '38', 'pounds', ',', 'which', 'was', 'acceptable', 'for', 'the', 'class', 'of', 'restaurant', ',', 'although', 'that', 'did', 'not', 'include', 'service', '.']}, 'dependency': {'arc_loss': 0.5291792154312134, 'tag_loss': 0.3744293749332428, 'loss': 0.9036085605621338, 'words': ['The', 'bill', ',', 'including', 'coffee', 'and', 'brandy', ',', 'came', 'to', '38', 'pounds', ',', 'which', 'was', 'acceptable', 'for', 'the', 'class', 'of', 'restaurant', ',', 'although', 'that', 'did', 'not', 'include', 'service', '.'], 'pos': ['DET', 'NOUN', 'PUNCT', 'VERB', 'NOUN', 'CCONJ', 'NOUN', 'PUNCT', 'VERB', 'ADP', 'NUM', 'NOUN', 'PUNCT', 'DET', 'VERB', 'ADJ', 'ADP', 'DET', 'NOUN', 'ADP', 'NOUN', 'PUNCT', 'SCONJ', 'DET', 'VERB', 'PART', 'VERB', 'NOUN', 'PUNCT'], 'predicted_dependencies': ['det', 'nsubj', 'amod', 'prep', 'pobj', 'prep', 'dep', 'punct', 'root', 'prep', 'dep', 'pobj', 'dep', 'nsubj', 'cop', 'rcmod', 'prep', 'det', 'pobj', 'prep', 'pobj', 'dep', 'mark', 'nsubj', 'aux', 'neg', 'dep', 'dobj', 'punct'], 'predicted_heads': [2, 9, 2, 2, 4, 5, 5, 7, 0, 9, 12, 10, 12, 16, 16, 12, 16, 19, 17, 19, 20, 16, 27, 27, 27, 27, 22, 27, 27], 'hierplane_tree': {'text': 'The bill , including coffee and brandy , came to 38 pounds , which was acceptable for the class of restaurant , although that did not include service .', 'root': {'word': 'came', 'nodeType': 'root', 'attributes': ['VERB'], 'link': 'root', 'spans': [{'start': 41, 'end': 46}], 'children': [{'word': 'bill', 'nodeType': 'nsubj', 'attributes': ['NOUN'], 'link': 'nsubj', 'spans': [{'start': 4, 'end': 9}], 'children': [{'word': 'The', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 0, 'end': 4}]}, {'word': ',', 'nodeType': 'amod', 'attributes': ['PUNCT'], 'link': 'amod', 'spans': [{'start': 9, 'end': 11}]}, {'word': 'including', 'nodeType': 'prep', 'attributes': ['VERB'], 'link': 'prep', 'spans': [{'start': 11, 'end': 21}], 'children': [{'word': 'coffee', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 21, 'end': 28}], 'children': [{'word': 'and', 'nodeType': 'prep', 'attributes': ['CCONJ'], 'link': 'prep', 'spans': [{'start': 28, 'end': 32}]}, {'word': 'brandy', 'nodeType': 'dep', 'attributes': ['NOUN'], 'link': 'dep', 'spans': [{'start': 32, 'end': 39}], 'children': [{'word': ',', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 39, 'end': 41}]}]}]}]}]}, {'word': 'to', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 46, 'end': 49}], 'children': [{'word': 'pounds', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 52, 'end': 59}], 'children': [{'word': '38', 'nodeType': 'dep', 'attributes': ['NUM'], 'link': 'dep', 'spans': [{'start': 49, 'end': 52}]}, {'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 59, 'end': 61}]}, {'word': 'acceptable', 'nodeType': 'rcmod', 'attributes': ['ADJ'], 'link': 'rcmod', 'spans': [{'start': 71, 'end': 82}], 'children': [{'word': 'which', 'nodeType': 'nsubj', 'attributes': ['DET'], 'link': 'nsubj', 'spans': [{'start': 61, 'end': 67}]}, {'word': 'was', 'nodeType': 'cop', 'attributes': ['VERB'], 'link': 'cop', 'spans': [{'start': 67, 'end': 71}]}, {'word': 'for', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 82, 'end': 86}], 'children': [{'word': 'class', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 90, 'end': 96}], 'children': [{'word': 'the', 'nodeType': 'det', 'attributes': ['DET'], 'link': 'det', 'spans': [{'start': 86, 'end': 90}]}, {'word': 'of', 'nodeType': 'prep', 'attributes': ['ADP'], 'link': 'prep', 'spans': [{'start': 96, 'end': 99}], 'children': [{'word': 'restaurant', 'nodeType': 'pobj', 'attributes': ['NOUN'], 'link': 'pobj', 'spans': [{'start': 99, 'end': 110}]}]}]}]}, {'word': ',', 'nodeType': 'dep', 'attributes': ['PUNCT'], 'link': 'dep', 'spans': [{'start': 110, 'end': 112}], 'children': [{'word': 'include', 'nodeType': 'dep', 'attributes': ['VERB'], 'link': 'dep', 'spans': [{'start': 134, 'end': 142}], 'children': [{'word': 'although', 'nodeType': 'mark', 'attributes': ['SCONJ'], 'link': 'mark', 'spans': [{'start': 112, 'end': 121}]}, {'word': 'that', 'nodeType': 'nsubj', 'attributes': ['DET'], 'link': 'nsubj', 'spans': [{'start': 121, 'end': 126}]}, {'word': 'did', 'nodeType': 'aux', 'attributes': ['VERB'], 'link': 'aux', 'spans': [{'start': 126, 'end': 130}]}, {'word': 'not', 'nodeType': 'neg', 'attributes': ['PART'], 'link': 'neg', 'spans': [{'start': 130, 'end': 134}]}, {'word': 'service', 'nodeType': 'dobj', 'attributes': ['NOUN'], 'link': 'dobj', 'spans': [{'start': 142, 'end': 150}]}, {'word': '.', 'nodeType': 'punct', 'attributes': ['PUNCT'], 'link': 'punct', 'spans': [{'start': 150, 'end': 152}]}]}]}]}]}]}]}, 'nodeTypeToStyle': {'root': ['color5', 'strong'], 'dep': ['color5', 'strong'], 'nsubj': ['color1'], 'nsubjpass': ['color1'], 'csubj': ['color1'], 'csubjpass': ['color1'], 'pobj': ['color2'], 'dobj': ['color2'], 'iobj': ['color2'], 'mark': ['color2'], 'pcomp': ['color2'], 'xcomp': ['color2'], 'ccomp': ['color2'], 'acomp': ['color2'], 'aux': ['color3'], 'cop': ['color3'], 'det': ['color3'], 'conj': ['color3'], 'cc': ['color3'], 'prep': ['color3'], 'number': ['color3'], 'possesive': ['color3'], 'poss': ['color3'], 'discourse': ['color3'], 'expletive': ['color3'], 'prt': ['color3'], 'advcl': ['color3'], 'mod': ['color4'], 'amod': ['color4'], 'tmod': ['color4'], 'quantmod': ['color4'], 'npadvmod': ['color4'], 'infmod': ['color4'], 'advmod': ['color4'], 'appos': ['color4'], 'nn': ['color4'], 'neg': ['color0'], 'punct': ['color0']}, 'linkToPosition': {'nsubj': 'left', 'nsubjpass': 'left', 'csubj': 'left', 'csubjpass': 'left', 'pobj': 'right', 'dobj': 'right', 'iobj': 'right', 'pcomp': 'right', 'xcomp': 'right', 'ccomp': 'right', 'acomp': 'right'}}}}]} return text_info
49,492.333333
148,421
0.518545
22,860
148,477
3.363123
0.026553
0.030281
0.041597
0.050884
0.827968
0.807638
0.782625
0.766405
0.682353
0.652931
0
0.16557
0.150481
148,477
3
148,422
49,492.333333
0.443949
0
0
0
0
27
0.414755
0.00266
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
1
1
1
1
0
0
0
0
1
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
12
53e5da8ff6e6ebfe089c8020d929fd62b946358a
170
py
Python
glacier/constants.py
alperozaydin/glacier
d45a8436605b6052be3510b3a01006786f0f0e13
[ "MIT" ]
null
null
null
glacier/constants.py
alperozaydin/glacier
d45a8436605b6052be3510b3a01006786f0f0e13
[ "MIT" ]
null
null
null
glacier/constants.py
alperozaydin/glacier
d45a8436605b6052be3510b3a01006786f0f0e13
[ "MIT" ]
null
null
null
INVENTORY_IDS = { "vault-name-1": "inventory-retrieval-job-id", "vault-name-2": "inventory-retrieval-job-id", "vault-name-3": "inventory-retrieval-job-id", }
28.333333
49
0.658824
23
170
4.826087
0.434783
0.243243
0.567568
0.621622
0.576577
0.576577
0
0
0
0
0
0.02027
0.129412
170
5
50
34
0.72973
0
0
0
0
0
0.670588
0.458824
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
53f276343d1fbf7dd5f444245863c2f976c76221
5,017
py
Python
utils/scripts/OOOlevelGen/src/daily_levels/186.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/daily_levels/186.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/daily_levels/186.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
import LevelBuilder from sprites import * def render(name,bg): lb = LevelBuilder.LevelBuilder(name+".plist",background=bg) lb.addObject(Bomb.BombSprite(x=90, y=66,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Enemy.EnemySprite(x=71, y=18,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=151, y=42,width=127,height=14,angle='0',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=-18, y=42,width=127,height=14,angle='0',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=40, y=184,width=195,height=14,angle='-90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Hero.HeroSprite(x=63, y=300,width=32,height=32)) lb.addObject(Beam.BeamSprite(x=67, y=275,width=67,height=14,angle='0',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=94, y=302,width=67,height=14,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=117, y=71,width=46,height=14,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=78, y=93,width=90,height=14,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Bomb.BombSprite(x=197, y=17,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=257, y=60,width=195,height=14,angle='-90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Enemy.EnemySprite(x=184, y=99,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Enemy.EnemySprite(x=184, y=66,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=171, y=138,width=181,height=14,angle='0',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Bomb.BombSprite(x=218, y=196,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Bomb.BombSprite(x=218, y=163,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Bomb.BombSprite(x=183, y=163,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=149, y=179,width=70,height=14,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=187, y=221,width=90,height=14,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=358, y=221,width=165,height=14,angle='0',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Bomb.BombSprite(x=183, y=196,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=391, y=138,width=181,height=14,angle='0',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Enemy.EnemySprite(x=356, y=196,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.7,density=40 ).setName('Enemy')) lb.addObject(Enemy.EnemySprite(x=356, y=163,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.7,density=40 ).setName('Enemy')) lb.addObject(Enemy.EnemySprite(x=393, y=196,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.7,density=40 ).setName('Enemy')) lb.addObject(Enemy.EnemySprite(x=393, y=163,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.7,density=40 ).setName('Enemy')) lb.addObject(Beam.BeamSprite(x=420, y=180,width=70,height=14,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Bomb.BombSprite(x=452, y=196,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Bomb.BombSprite(x=452, y=163,width=32,height=32 ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Rotor.RotorSprite(x=375,y=66,speed=0,angle=0,torque=6)) lb.addObject(Enemy.EnemySprite(x=410, y=97,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=1 ).setName('Enemy')) lb.addObject(Enemy.EnemySprite(x=340, y=97,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=1 ).setName('Enemy')) lb.addObject(Star.StarSprite(x=452, y=19,width=32,height=32)) lb.addObject(SpikeyBuddy.SpikeyBuddySprite(x=359, y=250,width=40,height=40,restitution=0.2,static='false',friction=0.5,density=20 ).setName('Spikey')) lb.addObject(Friend.FriendSprite(x=356, y=315,width=14,height=14,angle='0',restitution=0.2,static='true',friction=0.5,density=20 ).setName('FriendJ')) lb.addObject(Joints.DistanceJoint(body1='FriendJ',body2='Spikey',damping='0.2',freq='5')) lb.render()
5,017
5,017
0.744668
887
5,017
4.21195
0.126268
0.10894
0.114829
0.167827
0.873126
0.846895
0.829764
0.816649
0.816649
0.816649
0
0.119308
0.032689
5,017
1
5,017
5,017
0.650525
0
0
0
0
0
0.06179
0
0
0
0
0
0
1
0.02381
false
0
0.047619
0
0.071429
0
0
0
0
null
0
0
1
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
10
9905a971041f7fb733eec6a6caaaa67dae3b13b1
27,247
py
Python
sdk/yapily/api/application_users_api.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
sdk/yapily/api/application_users_api.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
sdk/yapily/api/application_users_api.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from yapily.api_client import ApiClient class ApplicationUsersApi(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def add_user_using_post(self, new_application_user, **kwargs): # noqa: E501 """Add an application user # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.add_user_using_post(new_application_user, async=True) >>> result = thread.get() :param async bool :param NewApplicationUser new_application_user: newApplicationUser (required) :return: ApplicationUser If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): return self.add_user_using_post_with_http_info(new_application_user, **kwargs) # noqa: E501 else: (data) = self.add_user_using_post_with_http_info(new_application_user, **kwargs) # noqa: E501 return data def add_user_using_post_with_http_info(self, new_application_user, **kwargs): # noqa: E501 """Add an application user # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.add_user_using_post_with_http_info(new_application_user, async=True) >>> result = thread.get() :param async bool :param NewApplicationUser new_application_user: newApplicationUser (required) :return: ApplicationUser If the method is called asynchronously, returns the request thread. """ all_params = ['new_application_user'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method add_user_using_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'new_application_user' is set if ('new_application_user' not in params or params['new_application_user'] is None): raise ValueError("Missing the required parameter `new_application_user` when calling `add_user_using_post`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'new_application_user' in params: body_params = params['new_application_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json;charset=UTF-8']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json;charset=UTF-8']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501 return self.api_client.call_api( '/users', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUser', # noqa: E501 auth_settings=auth_settings, asyncRequest=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def delete_user_using_delete(self, user_uuid, **kwargs): # noqa: E501 """Delete an application user and sub-resources (including consent resources on institution APIs if they exist) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.delete_user_using_delete(user_uuid, async=True) >>> result = thread.get() :param async bool :param str user_uuid: userUuid (required) :return: ApiResponseOfUserDeleteResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): return self.delete_user_using_delete_with_http_info(user_uuid, **kwargs) # noqa: E501 else: (data) = self.delete_user_using_delete_with_http_info(user_uuid, **kwargs) # noqa: E501 return data def delete_user_using_delete_with_http_info(self, user_uuid, **kwargs): # noqa: E501 """Delete an application user and sub-resources (including consent resources on institution APIs if they exist) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.delete_user_using_delete_with_http_info(user_uuid, async=True) >>> result = thread.get() :param async bool :param str user_uuid: userUuid (required) :return: ApiResponseOfUserDeleteResponse If the method is called asynchronously, returns the request thread. """ all_params = ['user_uuid'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_user_using_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'user_uuid' is set if ('user_uuid' not in params or params['user_uuid'] is None): raise ValueError("Missing the required parameter `user_uuid` when calling `delete_user_using_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'user_uuid' in params: path_params['userUuid'] = params['user_uuid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json;charset=UTF-8']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501 return self.api_client.call_api( '/users/{userUuid}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiResponseOfUserDeleteResponse', # noqa: E501 auth_settings=auth_settings, asyncRequest=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_delete_users_job_using_get(self, job_id, **kwargs): # noqa: E501 """Get details of a user deletion job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_delete_users_job_using_get(job_id, async=True) >>> result = thread.get() :param async bool :param str job_id: job-id (required) :return: ApiResponseOfBulkUserDeleteDetails If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): return self.get_delete_users_job_using_get_with_http_info(job_id, **kwargs) # noqa: E501 else: (data) = self.get_delete_users_job_using_get_with_http_info(job_id, **kwargs) # noqa: E501 return data def get_delete_users_job_using_get_with_http_info(self, job_id, **kwargs): # noqa: E501 """Get details of a user deletion job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_delete_users_job_using_get_with_http_info(job_id, async=True) >>> result = thread.get() :param async bool :param str job_id: job-id (required) :return: ApiResponseOfBulkUserDeleteDetails If the method is called asynchronously, returns the request thread. """ all_params = ['job_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_delete_users_job_using_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'job_id' is set if ('job_id' not in params or params['job_id'] is None): raise ValueError("Missing the required parameter `job_id` when calling `get_delete_users_job_using_get`") # noqa: E501 collection_formats = {} path_params = {} if 'job_id' in params: path_params['job-id'] = params['job_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json;charset=UTF-8']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501 return self.api_client.call_api( '/delete-users/{job-id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiResponseOfBulkUserDeleteDetails', # noqa: E501 auth_settings=auth_settings, asyncRequest=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_delete_users_jobs_using_get(self, **kwargs): # noqa: E501 """Get details of all user deletion jobs # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_delete_users_jobs_using_get(async=True) >>> result = thread.get() :param async bool :return: ApiListResponseOfBulkUserDelete If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): return self.get_delete_users_jobs_using_get_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_delete_users_jobs_using_get_with_http_info(**kwargs) # noqa: E501 return data def get_delete_users_jobs_using_get_with_http_info(self, **kwargs): # noqa: E501 """Get details of all user deletion jobs # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_delete_users_jobs_using_get_with_http_info(async=True) >>> result = thread.get() :param async bool :return: ApiListResponseOfBulkUserDelete If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_delete_users_jobs_using_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json;charset=UTF-8']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501 return self.api_client.call_api( '/delete-users', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiListResponseOfBulkUserDelete', # noqa: E501 auth_settings=auth_settings, asyncRequest=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_user_using_get(self, user_uuid, **kwargs): # noqa: E501 """Get an application user # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_user_using_get(user_uuid, async=True) >>> result = thread.get() :param async bool :param str user_uuid: userUuid (required) :return: ApplicationUser If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): return self.get_user_using_get_with_http_info(user_uuid, **kwargs) # noqa: E501 else: (data) = self.get_user_using_get_with_http_info(user_uuid, **kwargs) # noqa: E501 return data def get_user_using_get_with_http_info(self, user_uuid, **kwargs): # noqa: E501 """Get an application user # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_user_using_get_with_http_info(user_uuid, async=True) >>> result = thread.get() :param async bool :param str user_uuid: userUuid (required) :return: ApplicationUser If the method is called asynchronously, returns the request thread. """ all_params = ['user_uuid'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_user_using_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'user_uuid' is set if ('user_uuid' not in params or params['user_uuid'] is None): raise ValueError("Missing the required parameter `user_uuid` when calling `get_user_using_get`") # noqa: E501 collection_formats = {} path_params = {} if 'user_uuid' in params: path_params['userUuid'] = params['user_uuid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json;charset=UTF-8']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501 return self.api_client.call_api( '/users/{userUuid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUser', # noqa: E501 auth_settings=auth_settings, asyncRequest=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_users_using_get(self, **kwargs): # noqa: E501 """Get application users # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_users_using_get(async=True) >>> result = thread.get() :param async bool :return: list[ApplicationUser] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): return self.get_users_using_get_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_users_using_get_with_http_info(**kwargs) # noqa: E501 return data def get_users_using_get_with_http_info(self, **kwargs): # noqa: E501 """Get application users # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.get_users_using_get_with_http_info(async=True) >>> result = thread.get() :param async bool :return: list[ApplicationUser] If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_users_using_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json;charset=UTF-8']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501 return self.api_client.call_api( '/users', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[ApplicationUser]', # noqa: E501 auth_settings=auth_settings, asyncRequest=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def start_delete_users_job_using_post(self, user_delete_request, **kwargs): # noqa: E501 """Start a job to delete application users by specifying their identifiers # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.start_delete_users_job_using_post(user_delete_request, async=True) >>> result = thread.get() :param async bool :param UserDeleteRequest user_delete_request: userDeleteRequest (required) :return: ApiResponseOfBulkUserDeleteDetails If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): return self.start_delete_users_job_using_post_with_http_info(user_delete_request, **kwargs) # noqa: E501 else: (data) = self.start_delete_users_job_using_post_with_http_info(user_delete_request, **kwargs) # noqa: E501 return data def start_delete_users_job_using_post_with_http_info(self, user_delete_request, **kwargs): # noqa: E501 """Start a job to delete application users by specifying their identifiers # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.start_delete_users_job_using_post_with_http_info(user_delete_request, async=True) >>> result = thread.get() :param async bool :param UserDeleteRequest user_delete_request: userDeleteRequest (required) :return: ApiResponseOfBulkUserDeleteDetails If the method is called asynchronously, returns the request thread. """ all_params = ['user_delete_request'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method start_delete_users_job_using_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'user_delete_request' is set if ('user_delete_request' not in params or params['user_delete_request'] is None): raise ValueError("Missing the required parameter `user_delete_request` when calling `start_delete_users_job_using_post`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'user_delete_request' in params: body_params = params['user_delete_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json;charset=UTF-8']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json;charset=UTF-8']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth', 'tokenAuth'] # noqa: E501 return self.api_client.call_api( '/delete-users', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiResponseOfBulkUserDeleteDetails', # noqa: E501 auth_settings=auth_settings, asyncRequest=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
39.035817
158
0.619921
3,105
27,247
5.154589
0.059581
0.046485
0.024492
0.03149
0.942955
0.932396
0.920775
0.907841
0.901843
0.886723
0
0.015487
0.291445
27,247
697
159
39.091822
0.813529
0.312805
0
0.785146
0
0
0.189368
0.067816
0
0
0
0
0
1
0.039788
false
0
0.01061
0
0.108753
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
54eabcadcccd4fb6e7241aa3f7808b9fa1b2e94f
22,937
py
Python
mkdata/make_utils.py
davidath/severe-weather-detect
8575f2949bdba20137498f63895cc0055e2478b1
[ "Apache-2.0" ]
null
null
null
mkdata/make_utils.py
davidath/severe-weather-detect
8575f2949bdba20137498f63895cc0055e2478b1
[ "Apache-2.0" ]
null
null
null
mkdata/make_utils.py
davidath/severe-weather-detect
8575f2949bdba20137498f63895cc0055e2478b1
[ "Apache-2.0" ]
null
null
null
import numpy as np import datetime import csv import itertools import sys from datetime import datetime as dt from imblearn.combine import SMOTEENN from imblearn.over_sampling import SMOTE as OverSampler from imblearn.under_sampling import ClusterCentroids as CC # from imblearn.under_sampling import RandomUnderSampler as RUS from sklearn.model_selection import train_test_split # Logging messages such as loss,loading,etc. def log(s, label='INFO'): sys.stdout.write(label + ' [' + str(dt.now()) + '] ' + str(s) + '\n') sys.stdout.flush() # Util function to save .npz datasets def make_npz(name, train_data=np.zeros(shape=(1, 1)), test_data=np.zeros(shape=(1, 1)), train_labels=np.zeros(shape=(1, 1)), test_labels=np.zeros(shape=(1, 1))): np.savez_compressed(name, train_data=train_data, test_data=test_data, test_labels=test_labels, train_labels=train_labels) # Create Train-Test proof of concept experiment setting def make_tt(START, END, _csv, ght, TEST_LEN=-1, oversample=False, undersample=False, combine=False): # Create primary dataset date range w_date_range = [] curr = START while True: w_date_range.append(curr) curr += datetime.timedelta(hours=6) if curr == END: w_date_range.append(curr) break w_date_range = np.array(w_date_range) # Correlate with CSV dates _rows = [] with open(_csv) as f: reader = csv.reader(f, delimiter=';') for row in reader: _rows.append(row) _rows = _rows[1:] severe = [datetime.datetime.strptime(i[2], '%Y-%m-%d %H:%M:%S') for i in _rows] severe = np.unique(severe) # Mark as anomalies (0) the dates that are found in the CSV file _total = np.ones(shape=(len(w_date_range))) for i in severe: _total[np.where(w_date_range == i)[0]] = 0 _total = np.array(_total) _total = _total.astype(int) if TEST_LEN == -1: y = _total X = ght # check whether to augment anomalous class if oversample: log('Over-sampling') sampler = OverSampler(random_state=1234, sampling_strategy='minority', n_jobs=12) X, y = sampler.fit_sample(X, y) x_train, x_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=1234) make_npz('evi_tt_over.npz', train_labels=y_train) make_npz('data_tt_over.npz', train_data=x_train, test_data=x_test, train_labels=y_train, test_labels=y_test) log('Over-sampling Done!') if undersample: log('Under-sampling') sampler = RUS(random_state=1234, sampling_strategy='majority') X, y = sampler.fit_sample(X, y) x_train, x_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=1234) make_npz('evi_tt_under.npz', train_labels=y_train) make_npz('data_tt_under.npz', train_data=x_train, test_data=x_test, train_labels=y_train, test_labels=y_test) log('Under-sampling Done!') if combine: log('Combine!') sampler = SMOTEENN(random_state=1234, sampling_strategy='all') X, y = sampler.fit_sample(X, y) x_train, x_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=1234) make_npz('evi_tt_combine.npz', train_labels=y_train) make_npz('data_tt_combine.npz', train_data=x_train, test_data=x_test, train_labels=y_train, test_labels=y_test) log('Combine Done!') make_npz('evi_tt.npz', train_labels=y_train) make_npz('data_tt.npz', train_data=x_train, test_data=x_test, train_labels=y_train, test_labels=y_test) else: # Split dataset in train and test _year = [i for i in range(len(w_date_range))] test_slic = _year[-TEST_LEN:] train_slic = _year[:test_slic[0]] # Check whether to augment anomalous class if oversample: sampler = OverSampler(random_state=1234, sampling_strategy='minority') data_tr, evi_tr = sampler.fit_sample(ght[train_slic], _total[train_slic]) make_npz('evi_tt_over.npz', train_labels=evi_tr) make_npz('data_tt_over.npz', train_labels=evi_tr, test_labels=_total[test_slic], train_data=data_tr, test_data=ght[test_slic]) else: make_npz('evi_tt.npz', train_labels=_total[train_slic]) make_npz('data_tt.npz', train_labels=_total[train_slic], test_labels=_total[test_slic], train_data=ght[train_slic], test_data=ght[test_slic]) # Make individual datasets for individual events def make_indvi(START, END, _csv, ght, event_name, short=False, short_num=4000): np.random.seed(1234) # Create primary dataset date range w_date_range = [] curr = START while True: w_date_range.append(curr) curr += datetime.timedelta(hours=6) if curr == END: w_date_range.append(curr) break w_date_range = np.array(w_date_range) # Correlate with CSV dates _rows = [] with open(_csv) as f: reader = csv.reader(f, delimiter=';') for row in reader: _rows.append(row) _rows = _rows[1:] severe = [datetime.datetime.strptime(i[2], '%Y-%m-%d %H:%M:%S') for i in _rows] event = np.array([i[1] for i in _rows]) # Get unique event indices idc = [] for i in np.unique(event): idc.append(np.where(event==i)[0]) # Assign severe event label _total = np.zeros(shape=(len(w_date_range))) for c, i in enumerate(np.unique(event)): if i == 'Windstorm': _total[idc[c]] = 1 elif i == 'Flood': _total[idc[c]] = 2 elif i == 'Hail': _total[idc[c]] = 3 elif i == 'Tornado': _total[idc[c]] = 4 _total = _total.astype(int) # Short version # ------------------------------ if short: idx = [] for i in np.unique(_total): if i == 0: zero = np.where(_total == i)[0] p = np.random.permutation(zero.size) zero = zero[p] idx.append(zero[:short_num]) else: idx.append(np.where(_total == i)[0]) idx = list(itertools.chain(*idx)) idx = np.array(idx) _total = _total[idx] _total[np.where(_total != 0)] = 1 # ------------------------------ # Select event type if event_name == 'Windstorm': total_slic = np.concatenate((np.where(_total == 0)[0], np.where(_total == 1)[0])) elif event_name == 'Flood': total_slic = np.concatenate((np.where(_total == 0)[0], np.where(_total == 2)[0])) elif event_name == 'Hail': total_slic = np.concatenate((np.where(_total == 0)[0], np.where(_total == 3)[0])) elif event_name == 'Tornado': total_slic = np.concatenate((np.where(_total == 0)[0], np.where(_total == 4)[0])) else: total_slic = range(0, len(_total)) y = _total[total_slic] X = ght[total_slic] x_train, x_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=1234) make_npz('evi_'+event_name+'.npz', train_labels=y_train) make_npz('data_'+event_name+'.npz', train_data=x_train, test_data=x_test, train_labels=y_train, test_labels=y_test) # Make 1 event evidence and rest clustering task def make_oneall(START, END, _csv, ght, event_name, short=False, short_num=4000): np.random.seed(1234) # Create primary dataset date range w_date_range = [] curr = START while True: w_date_range.append(curr) curr += datetime.timedelta(hours=6) if curr == END: w_date_range.append(curr) break w_date_range = np.array(w_date_range) # Correlate with CSV dates _rows = [] with open(_csv) as f: reader = csv.reader(f, delimiter=';') for row in reader: _rows.append(row) _rows = _rows[1:] severe = [datetime.datetime.strptime(i[2], '%Y-%m-%d %H:%M:%S') for i in _rows] event = np.array([i[1] for i in _rows]) # Get unique event indices idc = [] for i in np.unique(event): idc.append(np.where(event==i)[0]) # Assign severe event label _total = np.zeros(shape=(len(w_date_range))) for c, i in enumerate(np.unique(event)): if i == 'Windstorm': _total[idc[c]] = 1 elif i == 'Flood': _total[idc[c]] = 2 elif i == 'Hail': _total[idc[c]] = 3 elif i == 'Tornado': _total[idc[c]] = 4 _total = _total.astype(int) # Short version # ------------------------------ if short: idx = [] for i in np.unique(_total): if i == 0: zero = np.where(_total == i)[0] p = np.random.permutation(zero.size) zero = zero[p] idx.append(zero[:short_num]) else: idx.append(np.where(_total == i)[0]) idx = list(itertools.chain(*idx)) idx = np.array(idx) _total = _total[idx] # ------------------------------ # Select event type if event_name == 'Windstorm': train_slic = np.where(_total == 1)[0] other_slic = np.where(_total != 1)[0] elif event_name == 'Flood': train_slic = np.where(_total == 2)[0] other_slic = np.where(_total != 2)[0] elif event_name == 'Hail': train_slic = np.where(_total == 3)[0] other_slic = np.where(_total != 3)[0] elif event_name == 'Tornado': train_slic = np.where(_total == 4)[0] other_slic = np.where(_total != 4)[0] else: print ('Event name not found!') exit() X = ght[range(0, len(_total))] y = _total[range(0, len(_total))] x_train, x_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=1234) evi_data = X[np.concatenate((train_slic, other_slic))] evi_lab = _total[np.concatenate((train_slic, other_slic))] evi_lab[:len(train_slic)] = 0 evi_lab[len(train_slic):len(train_slic)+len(other_slic)] = 1 perm = np.random.permutation(len(evi_data)) evi_data = evi_data[perm] evi_lab = evi_lab[perm] make_npz('evi_1all_'+event_name+'.npz', train_data=evi_data, train_labels=evi_lab) make_npz('data_1all_'+event_name+'.npz', train_data=x_train, test_data=x_test, train_labels=y_train, test_labels=y_test) # Make 1 event evidence and rest clustering task def make_allone(START, END, _csv, ght, event_name, event_name2, short=False, short_num=4000): np.random.seed(1234) # Create primary dataset date range w_date_range = [] curr = START while True: w_date_range.append(curr) curr += datetime.timedelta(hours=6) if curr == END: w_date_range.append(curr) break w_date_range = np.array(w_date_range) # Correlate with CSV dates _rows = [] with open(_csv) as f: reader = csv.reader(f, delimiter=';') for row in reader: _rows.append(row) _rows = _rows[1:] severe = [datetime.datetime.strptime(i[2], '%Y-%m-%d %H:%M:%S') for i in _rows] event = np.array([i[1] for i in _rows]) # Get unique event indices idc = [] for i in np.unique(event): idc.append(np.where(event==i)[0]) # Assign severe event label _total = np.zeros(shape=(len(w_date_range))) for c, i in enumerate(np.unique(event)): if i == 'Windstorm': _total[idc[c]] = 1 elif i == 'Flood': _total[idc[c]] = 2 elif i == 'Hail': _total[idc[c]] = 3 elif i == 'Tornado': _total[idc[c]] = 4 _total = _total.astype(int) # Short version # ------------------------------ if short: idx = [] for i in np.unique(_total): if i == 0: zero = np.where(_total == i)[0] p = np.random.permutation(zero.size) zero = zero[p] idx.append(zero[:short_num]) else: idx.append(np.where(_total == i)[0]) idx = list(itertools.chain(*idx)) idx = np.array(idx) _total = _total[idx] # ------------------------------ # Select event type if event_name == 'Windstorm': train_slic = np.where(_total == 1)[0] # other_slic = np.where(_total != 1)[0] if event_name2 == 'Flood': zero = np.where(_total == 0)[0] two = np.where(_total == 2)[0] elif event_name2 == 'Tornado': zero = np.where(_total == 0)[0] two = np.where(_total == 4)[0] other_slic = np.concatenate((zero, two)) elif event_name == 'Flood': train_slic = np.where(_total == 2)[0] # other_slic = np.where(_total != 2)[0] if event_name2 == 'Windstorm': zero = np.where(_total == 0)[0] two = np.where(_total == 1)[0] elif event_name2 == 'Tornado': zero = np.where(_total == 0)[0] two = np.where(_total == 4)[0] other_slic = np.concatenate((zero, two)) elif event_name == 'Hail': train_slic = np.where(_total == 3)[0] other_slic = np.where(_total != 3)[0] elif event_name == 'Tornado': train_slic = np.where(_total == 4)[0] # other_slic = np.where(_total != 4)[0] if event_name2 == 'Windstorm': zero = np.where(_total == 0)[0] two = np.where(_total == 1)[0] elif event_name2 == 'Flood': zero = np.where(_total == 0)[0] two = np.where(_total == 2)[0] other_slic = np.concatenate((zero, two)) else: print ('Event name not found!') exit() X = ght[np.concatenate((train_slic, other_slic))] y = _total[np.concatenate((train_slic, other_slic))] y[:len(train_slic)] = 0 y[len(train_slic):len(train_slic)+len(other_slic)] = 1 p = np.random.permutation(len(X)) print 'Data:' for c,i in enumerate(np.unique(y)): print i, len(np.where(y == i)[0]) make_npz('data_all1_'+event_name+'_'+event_name2+'.npz', train_data=X[p], train_labels=y[p]) # idx = remove_labs(y, 1, len(np.where(y == 0)[0])) # y = y[idx] # X = X[idx] # sampler = OverSampler(random_state=1234, # sampling_strategy='minority', n_jobs=12) # X, y = sampler.fit_sample(X, y) evi_data = ght[np.concatenate((train_slic, other_slic))] evi_lab = _total[np.concatenate((train_slic, other_slic))] if event_name == 'Windstorm' and event_name2 == 'Flood': evi_lab[np.where(evi_lab == 0)[0]] = 0 evi_lab[np.where(evi_lab == 1)[0]] = 0 evi_lab[np.where(evi_lab == 2)[0]] = 1 elif event_name == 'Windstorm' and event_name2 == 'Tornado': evi_lab[np.where(evi_lab == 0)[0]] = 0 evi_lab[np.where(evi_lab == 1)[0]] = 0 evi_lab[np.where(evi_lab == 4)[0]] = 1 elif event_name == 'Flood' and event_name2 == 'Windstorm': evi_lab[np.where(evi_lab == 0)[0]] = 0 evi_lab[np.where(evi_lab == 2)[0]] = 0 evi_lab[np.where(evi_lab == 1)[0]] = 1 elif event_name == 'Flood' and event_name2 == 'Tornado': evi_lab[np.where(evi_lab == 0)[0]] = 0 evi_lab[np.where(evi_lab == 2)[0]] = 0 evi_lab[np.where(evi_lab == 4)[0]] = 1 elif event_name == 'Tornado' and event_name2 == 'Windstorm': evi_lab[np.where(evi_lab == 0)[0]] = 0 evi_lab[np.where(evi_lab == 4)[0]] = 0 evi_lab[np.where(evi_lab == 1)[0]] = 1 elif event_name == 'Tornado' and event_name2 == 'Flood': evi_lab[np.where(evi_lab == 0)[0]] = 0 evi_lab[np.where(evi_lab == 4)[0]] = 0 evi_lab[np.where(evi_lab == 2)[0]] = 1 # for c,i in enumerate(np.unique(evi_lab)): # evi_lab[np.where(evi_lab == i)[0]] = c # idx = remove_labs(evi_lab, 0, int(len(np.where(_total == 0)[0]) * 0.3)) # idx = remove_labs(evi_lab, 0, 0) # evi_lab = evi_lab[idx] # evi_data = evi_data[idx] # idx = np.where(evi_lab == 1)[0] # other_idx = np.where(evi_lab != 1)[0] # temp_lab = np.copy(evi_lab) # temp_lab[idx] = 0 # temp_lab[other_idx] = 1 # make_npz('evi_all1_'+event_name+'.npz', train_data=evi_data, # train_labels = temp_lab) print 'Evidence:' for c,i in enumerate(np.unique(evi_lab)): print i, len(np.where(evi_lab == i)[0]) # p = np.random.permutation(len(evi_lab)) # sampler = OverSampler(random_state=1234, # sampling_strategy='all', n_jobs=12) # evi_data, evi_lab = sampler.fit_sample(evi_data, evi_lab) make_npz('evi_all1_'+event_name+'_'+event_name2+'.npz', train_data=evi_data[p], train_labels=evi_lab[p]) def remove_labs(labels, rmlab, keep_num): idx = [] for i in np.unique(labels): if i == rmlab: zero = np.where(labels == i)[0] p = np.random.permutation(zero.size) zero = zero[p] if keep_num == 0: continue else: idx.append(zero[:keep_num]) else: idx.append(np.where(labels == i)[0]) idx = list(itertools.chain(*idx)) idx = np.array(idx) return idx def make_dayframes(dataset, frames): if dataset.shape[0] % frames == 0: dataset = np.array([dataset[i:i+frames] for i in range(0, len(dataset), frames)]) dataset = dataset.reshape(dataset.shape[0], frames, dataset.shape[2]) else: div = int(dataset.shape[0] / frames) dataset = np.array([dataset[i:i+frames] for i in range(0, div*frames, frames)]) dataset = dataset.reshape(dataset.shape[0], frames, dataset.shape[2]) return dataset def make_dayframes_labels(dataset, frames): if dataset.shape[0] % frames == 0: dataset = [int(np.average(dataset[i:i+frames])) for i in range(0, len(dataset), frames)] dataset = np.array(dataset) else: div = int(dataset.shape[0] / frames) dataset = [int(np.average(dataset[i:i+frames])) for i in range(0, div * frames, frames)] dataset = np.array(dataset) return dataset # Create Train-Test proof of concept experiment setting (With temporality) def make_tt_tempo(START, END, _csv, ght, TEST_LEN=-1, frames=4, oversample=False, undersample=False, combine=False): np.random.seed(1234) # Create primary dataset date range w_date_range = [] curr = START while True: w_date_range.append(curr) curr += datetime.timedelta(hours=6) if curr == END: w_date_range.append(curr) break w_date_range = np.array(w_date_range) # Correlate with CSV dates _rows = [] with open(_csv) as f: reader = csv.reader(f, delimiter=';') for row in reader: _rows.append(row) _rows = _rows[1:] severe = [datetime.datetime.strptime(i[2], '%Y-%m-%d %H:%M:%S') for i in _rows] severe = np.unique(severe) # Mark as anomalies (0) the dates that are found in the CSV file _total = np.ones(shape=(len(w_date_range))) for i in severe: _total[np.where(w_date_range == i)[0]] = 0 _total = np.array(_total) _total = _total.astype(int) X = make_dayframes(ght, frames) y = make_dayframes_labels(_total, frames) make_npz('data_tt_tempo', train_data=X, train_labels=y) if undersample: SHORT_NUM = 1000 idx = [] for i in np.unique(y): if i == 1: zero = np.where(y == i)[0] p = np.random.permutation(zero.size) zero = zero[p] idx.append(zero[:SHORT_NUM]) else: idx.append(np.where(y == i)[0]) idx = list(itertools.chain(*idx)) idx = np.array(idx) y = y[idx] X = X[idx] x_train, x_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=1234) make_npz('evi_tt_tempo_under.npz', train_labels=y_train) make_npz('data_tt_tempo_under.npz', train_data=x_train, test_data=x_test, train_labels=y_train, test_labels=y_test) #Multiply samples by repeating N times the samples using small uniform noise def noise(_in, channels, repeat_num): noisy = [] for j in range(num): sample = [] div = _in.shape[1]/channels for k in range(repeat_num): rng = np.random.RandomState().uniform(-0.1, 0.1, size=div) noise = np.add(_in[i][k*div:(k+1)*div], np.multiply(_in[i][k*div:(k+1)*div], rng)) sample.append(noise) sample = list(itertools.chain(*sample)) noisy.append(np.array(sample)) noisy = np.array(noisy) return noisy # Same as noise, manual version to confirm frame order for temporal use def noise_confirm_order(_in, channels): noisy = [] # Original for i in range(len(_in)): noisy.append(_in[i]) # 1 for i in range(len(_in)): sample = [] div = _in.shape[1]/channels for k in range(channels): rng = np.random.RandomState().uniform(-0.1, 0.1, size=div) noise = np.add(_in[i][k*div:(k+1)*div], np.multiply(_in[i][k*div:(k+1)*div], rng)) sample.append(noise) sample = list(itertools.chain(*sample)) noisy.append(np.array(sample)) # 2 for i in range(len(_in)): sample = [] div = _in.shape[1]/channels for k in range(channels): rng = np.random.RandomState().uniform(-0.1, 0.1, size=div) noise = np.add(_in[i][k*div:(k+1)*div], np.multiply(_in[i][k*div:(k+1)*div], rng)) sample.append(noise) sample = list(itertools.chain(*sample)) noisy.append(np.array(sample)) # 3 for i in range(len(_in)): sample = [] div = _in.shape[1]/channels for k in range(channels): rng = np.random.RandomState().uniform(-0.1, 0.1, size=div) noise = np.add(_in[i][k*div:(k+1)*div], np.multiply(_in[i][k*div:(k+1)*div], rng)) sample.append(noise) sample = list(itertools.chain(*sample)) noisy.append(np.array(sample)) # 4 for i in range(len(_in)): sample = [] div = _in.shape[1]/channels for k in range(channels): rng = np.random.RandomState().uniform(-0.1, 0.1, size=div) noise = np.add(_in[i][k*div:(k+1)*div], np.multiply(_in[i][k*div:(k+1)*div], rng)) sample.append(noise) sample = list(itertools.chain(*sample)) noisy.append(np.array(sample)) noisy = np.array(noisy) return noisy
36.064465
96
0.577495
3,309
22,937
3.794198
0.071623
0.042931
0.042055
0.02278
0.850259
0.820789
0.777459
0.740104
0.704022
0.667384
0
0.02401
0.273663
22,937
635
97
36.12126
0.729592
0.109038
0
0.725971
0
0
0.041798
0.00221
0
0
0
0
0
0
null
null
0
0.02045
null
null
0.01227
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
54fa106e1894c824559c0b8917b442a6e03b5ab5
121,685
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/operations/_page_blob_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/operations/_page_blob_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/operations/_page_blob_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime from typing import TYPE_CHECKING from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from .. import models as _models from .._vendor import _convert_request, _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False # fmt: off def build_create_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest blob_type = kwargs.pop('blob_type', "PageBlob") # type: str version = kwargs.pop('version', "2021-04-10") # type: str content_length = kwargs.pop('content_length') # type: int blob_content_length = kwargs.pop('blob_content_length') # type: int timeout = kwargs.pop('timeout', None) # type: Optional[int] tier = kwargs.pop('tier', None) # type: Optional[Union[str, "_models.PremiumPageBlobAccessTier"]] blob_content_type = kwargs.pop('blob_content_type', None) # type: Optional[str] blob_content_encoding = kwargs.pop('blob_content_encoding', None) # type: Optional[str] blob_content_language = kwargs.pop('blob_content_language', None) # type: Optional[str] blob_content_md5 = kwargs.pop('blob_content_md5', None) # type: Optional[bytearray] blob_cache_control = kwargs.pop('blob_cache_control', None) # type: Optional[str] metadata = kwargs.pop('metadata', None) # type: Optional[Dict[str, str]] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] blob_content_disposition = kwargs.pop('blob_content_disposition', None) # type: Optional[str] encryption_key = kwargs.pop('encryption_key', None) # type: Optional[str] encryption_key_sha256 = kwargs.pop('encryption_key_sha256', None) # type: Optional[str] encryption_algorithm = kwargs.pop('encryption_algorithm', None) # type: Optional[Union[str, "_models.EncryptionAlgorithmType"]] encryption_scope = kwargs.pop('encryption_scope', None) # type: Optional[str] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] blob_sequence_number = kwargs.pop('blob_sequence_number', 0) # type: Optional[int] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] blob_tags_string = kwargs.pop('blob_tags_string', None) # type: Optional[str] immutability_policy_expiry = kwargs.pop('immutability_policy_expiry', None) # type: Optional[datetime.datetime] immutability_policy_mode = kwargs.pop('immutability_policy_mode', None) # type: Optional[Union[str, "_models.BlobImmutabilityPolicyMode"]] legal_hold = kwargs.pop('legal_hold', None) # type: Optional[bool] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] _header_parameters['x-ms-blob-type'] = _SERIALIZER.header("blob_type", blob_type, 'str') _header_parameters['Content-Length'] = _SERIALIZER.header("content_length", content_length, 'long') if tier is not None: _header_parameters['x-ms-access-tier'] = _SERIALIZER.header("tier", tier, 'str') if blob_content_type is not None: _header_parameters['x-ms-blob-content-type'] = _SERIALIZER.header("blob_content_type", blob_content_type, 'str') if blob_content_encoding is not None: _header_parameters['x-ms-blob-content-encoding'] = _SERIALIZER.header("blob_content_encoding", blob_content_encoding, 'str') if blob_content_language is not None: _header_parameters['x-ms-blob-content-language'] = _SERIALIZER.header("blob_content_language", blob_content_language, 'str') if blob_content_md5 is not None: _header_parameters['x-ms-blob-content-md5'] = _SERIALIZER.header("blob_content_md5", blob_content_md5, 'bytearray') if blob_cache_control is not None: _header_parameters['x-ms-blob-cache-control'] = _SERIALIZER.header("blob_cache_control", blob_cache_control, 'str') if metadata is not None: _header_parameters['x-ms-meta'] = _SERIALIZER.header("metadata", metadata, '{str}') if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if blob_content_disposition is not None: _header_parameters['x-ms-blob-content-disposition'] = _SERIALIZER.header("blob_content_disposition", blob_content_disposition, 'str') if encryption_key is not None: _header_parameters['x-ms-encryption-key'] = _SERIALIZER.header("encryption_key", encryption_key, 'str') if encryption_key_sha256 is not None: _header_parameters['x-ms-encryption-key-sha256'] = _SERIALIZER.header("encryption_key_sha256", encryption_key_sha256, 'str') if encryption_algorithm is not None: _header_parameters['x-ms-encryption-algorithm'] = _SERIALIZER.header("encryption_algorithm", encryption_algorithm, 'str') if encryption_scope is not None: _header_parameters['x-ms-encryption-scope'] = _SERIALIZER.header("encryption_scope", encryption_scope, 'str') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-blob-content-length'] = _SERIALIZER.header("blob_content_length", blob_content_length, 'long') if blob_sequence_number is not None: _header_parameters['x-ms-blob-sequence-number'] = _SERIALIZER.header("blob_sequence_number", blob_sequence_number, 'long') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') if blob_tags_string is not None: _header_parameters['x-ms-tags'] = _SERIALIZER.header("blob_tags_string", blob_tags_string, 'str') if immutability_policy_expiry is not None: _header_parameters['x-ms-immutability-policy-until-date'] = _SERIALIZER.header("immutability_policy_expiry", immutability_policy_expiry, 'rfc-1123') if immutability_policy_mode is not None: _header_parameters['x-ms-immutability-policy-mode'] = _SERIALIZER.header("immutability_policy_mode", immutability_policy_mode, 'str') if legal_hold is not None: _header_parameters['x-ms-legal-hold'] = _SERIALIZER.header("legal_hold", legal_hold, 'bool') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_upload_pages_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "page") # type: str page_write = kwargs.pop('page_write', "update") # type: str version = kwargs.pop('version', "2021-04-10") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] content_length = kwargs.pop('content_length') # type: int transactional_content_md5 = kwargs.pop('transactional_content_md5', None) # type: Optional[bytearray] transactional_content_crc64 = kwargs.pop('transactional_content_crc64', None) # type: Optional[bytearray] timeout = kwargs.pop('timeout', None) # type: Optional[int] range = kwargs.pop('range', None) # type: Optional[str] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] encryption_key = kwargs.pop('encryption_key', None) # type: Optional[str] encryption_key_sha256 = kwargs.pop('encryption_key_sha256', None) # type: Optional[str] encryption_algorithm = kwargs.pop('encryption_algorithm', None) # type: Optional[Union[str, "_models.EncryptionAlgorithmType"]] encryption_scope = kwargs.pop('encryption_scope', None) # type: Optional[str] if_sequence_number_less_than_or_equal_to = kwargs.pop('if_sequence_number_less_than_or_equal_to', None) # type: Optional[int] if_sequence_number_less_than = kwargs.pop('if_sequence_number_less_than', None) # type: Optional[int] if_sequence_number_equal_to = kwargs.pop('if_sequence_number_equal_to', None) # type: Optional[int] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] _header_parameters['x-ms-page-write'] = _SERIALIZER.header("page_write", page_write, 'str') _header_parameters['Content-Length'] = _SERIALIZER.header("content_length", content_length, 'long') if transactional_content_md5 is not None: _header_parameters['Content-MD5'] = _SERIALIZER.header("transactional_content_md5", transactional_content_md5, 'bytearray') if transactional_content_crc64 is not None: _header_parameters['x-ms-content-crc64'] = _SERIALIZER.header("transactional_content_crc64", transactional_content_crc64, 'bytearray') if range is not None: _header_parameters['x-ms-range'] = _SERIALIZER.header("range", range, 'str') if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if encryption_key is not None: _header_parameters['x-ms-encryption-key'] = _SERIALIZER.header("encryption_key", encryption_key, 'str') if encryption_key_sha256 is not None: _header_parameters['x-ms-encryption-key-sha256'] = _SERIALIZER.header("encryption_key_sha256", encryption_key_sha256, 'str') if encryption_algorithm is not None: _header_parameters['x-ms-encryption-algorithm'] = _SERIALIZER.header("encryption_algorithm", encryption_algorithm, 'str') if encryption_scope is not None: _header_parameters['x-ms-encryption-scope'] = _SERIALIZER.header("encryption_scope", encryption_scope, 'str') if if_sequence_number_less_than_or_equal_to is not None: _header_parameters['x-ms-if-sequence-number-le'] = _SERIALIZER.header("if_sequence_number_less_than_or_equal_to", if_sequence_number_less_than_or_equal_to, 'long') if if_sequence_number_less_than is not None: _header_parameters['x-ms-if-sequence-number-lt'] = _SERIALIZER.header("if_sequence_number_less_than", if_sequence_number_less_than, 'long') if if_sequence_number_equal_to is not None: _header_parameters['x-ms-if-sequence-number-eq'] = _SERIALIZER.header("if_sequence_number_equal_to", if_sequence_number_equal_to, 'long') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') if content_type is not None: _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_clear_pages_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "page") # type: str page_write = kwargs.pop('page_write', "clear") # type: str version = kwargs.pop('version', "2021-04-10") # type: str content_length = kwargs.pop('content_length') # type: int timeout = kwargs.pop('timeout', None) # type: Optional[int] range = kwargs.pop('range', None) # type: Optional[str] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] encryption_key = kwargs.pop('encryption_key', None) # type: Optional[str] encryption_key_sha256 = kwargs.pop('encryption_key_sha256', None) # type: Optional[str] encryption_algorithm = kwargs.pop('encryption_algorithm', None) # type: Optional[Union[str, "_models.EncryptionAlgorithmType"]] encryption_scope = kwargs.pop('encryption_scope', None) # type: Optional[str] if_sequence_number_less_than_or_equal_to = kwargs.pop('if_sequence_number_less_than_or_equal_to', None) # type: Optional[int] if_sequence_number_less_than = kwargs.pop('if_sequence_number_less_than', None) # type: Optional[int] if_sequence_number_equal_to = kwargs.pop('if_sequence_number_equal_to', None) # type: Optional[int] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] _header_parameters['x-ms-page-write'] = _SERIALIZER.header("page_write", page_write, 'str') _header_parameters['Content-Length'] = _SERIALIZER.header("content_length", content_length, 'long') if range is not None: _header_parameters['x-ms-range'] = _SERIALIZER.header("range", range, 'str') if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if encryption_key is not None: _header_parameters['x-ms-encryption-key'] = _SERIALIZER.header("encryption_key", encryption_key, 'str') if encryption_key_sha256 is not None: _header_parameters['x-ms-encryption-key-sha256'] = _SERIALIZER.header("encryption_key_sha256", encryption_key_sha256, 'str') if encryption_algorithm is not None: _header_parameters['x-ms-encryption-algorithm'] = _SERIALIZER.header("encryption_algorithm", encryption_algorithm, 'str') if encryption_scope is not None: _header_parameters['x-ms-encryption-scope'] = _SERIALIZER.header("encryption_scope", encryption_scope, 'str') if if_sequence_number_less_than_or_equal_to is not None: _header_parameters['x-ms-if-sequence-number-le'] = _SERIALIZER.header("if_sequence_number_less_than_or_equal_to", if_sequence_number_less_than_or_equal_to, 'long') if if_sequence_number_less_than is not None: _header_parameters['x-ms-if-sequence-number-lt'] = _SERIALIZER.header("if_sequence_number_less_than", if_sequence_number_less_than, 'long') if if_sequence_number_equal_to is not None: _header_parameters['x-ms-if-sequence-number-eq'] = _SERIALIZER.header("if_sequence_number_equal_to", if_sequence_number_equal_to, 'long') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_upload_pages_from_url_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "page") # type: str page_write = kwargs.pop('page_write', "update") # type: str version = kwargs.pop('version', "2021-04-10") # type: str source_url = kwargs.pop('source_url') # type: str source_range = kwargs.pop('source_range') # type: str content_length = kwargs.pop('content_length') # type: int range = kwargs.pop('range') # type: str source_content_md5 = kwargs.pop('source_content_md5', None) # type: Optional[bytearray] source_contentcrc64 = kwargs.pop('source_contentcrc64', None) # type: Optional[bytearray] timeout = kwargs.pop('timeout', None) # type: Optional[int] encryption_key = kwargs.pop('encryption_key', None) # type: Optional[str] encryption_key_sha256 = kwargs.pop('encryption_key_sha256', None) # type: Optional[str] encryption_algorithm = kwargs.pop('encryption_algorithm', None) # type: Optional[Union[str, "_models.EncryptionAlgorithmType"]] encryption_scope = kwargs.pop('encryption_scope', None) # type: Optional[str] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] if_sequence_number_less_than_or_equal_to = kwargs.pop('if_sequence_number_less_than_or_equal_to', None) # type: Optional[int] if_sequence_number_less_than = kwargs.pop('if_sequence_number_less_than', None) # type: Optional[int] if_sequence_number_equal_to = kwargs.pop('if_sequence_number_equal_to', None) # type: Optional[int] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] source_if_modified_since = kwargs.pop('source_if_modified_since', None) # type: Optional[datetime.datetime] source_if_unmodified_since = kwargs.pop('source_if_unmodified_since', None) # type: Optional[datetime.datetime] source_if_match = kwargs.pop('source_if_match', None) # type: Optional[str] source_if_none_match = kwargs.pop('source_if_none_match', None) # type: Optional[str] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] copy_source_authorization = kwargs.pop('copy_source_authorization', None) # type: Optional[str] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] _header_parameters['x-ms-page-write'] = _SERIALIZER.header("page_write", page_write, 'str') _header_parameters['x-ms-copy-source'] = _SERIALIZER.header("source_url", source_url, 'str') _header_parameters['x-ms-source-range'] = _SERIALIZER.header("source_range", source_range, 'str') if source_content_md5 is not None: _header_parameters['x-ms-source-content-md5'] = _SERIALIZER.header("source_content_md5", source_content_md5, 'bytearray') if source_contentcrc64 is not None: _header_parameters['x-ms-source-content-crc64'] = _SERIALIZER.header("source_contentcrc64", source_contentcrc64, 'bytearray') _header_parameters['Content-Length'] = _SERIALIZER.header("content_length", content_length, 'long') _header_parameters['x-ms-range'] = _SERIALIZER.header("range", range, 'str') if encryption_key is not None: _header_parameters['x-ms-encryption-key'] = _SERIALIZER.header("encryption_key", encryption_key, 'str') if encryption_key_sha256 is not None: _header_parameters['x-ms-encryption-key-sha256'] = _SERIALIZER.header("encryption_key_sha256", encryption_key_sha256, 'str') if encryption_algorithm is not None: _header_parameters['x-ms-encryption-algorithm'] = _SERIALIZER.header("encryption_algorithm", encryption_algorithm, 'str') if encryption_scope is not None: _header_parameters['x-ms-encryption-scope'] = _SERIALIZER.header("encryption_scope", encryption_scope, 'str') if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if if_sequence_number_less_than_or_equal_to is not None: _header_parameters['x-ms-if-sequence-number-le'] = _SERIALIZER.header("if_sequence_number_less_than_or_equal_to", if_sequence_number_less_than_or_equal_to, 'long') if if_sequence_number_less_than is not None: _header_parameters['x-ms-if-sequence-number-lt'] = _SERIALIZER.header("if_sequence_number_less_than", if_sequence_number_less_than, 'long') if if_sequence_number_equal_to is not None: _header_parameters['x-ms-if-sequence-number-eq'] = _SERIALIZER.header("if_sequence_number_equal_to", if_sequence_number_equal_to, 'long') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') if source_if_modified_since is not None: _header_parameters['x-ms-source-if-modified-since'] = _SERIALIZER.header("source_if_modified_since", source_if_modified_since, 'rfc-1123') if source_if_unmodified_since is not None: _header_parameters['x-ms-source-if-unmodified-since'] = _SERIALIZER.header("source_if_unmodified_since", source_if_unmodified_since, 'rfc-1123') if source_if_match is not None: _header_parameters['x-ms-source-if-match'] = _SERIALIZER.header("source_if_match", source_if_match, 'str') if source_if_none_match is not None: _header_parameters['x-ms-source-if-none-match'] = _SERIALIZER.header("source_if_none_match", source_if_none_match, 'str') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') if copy_source_authorization is not None: _header_parameters['x-ms-copy-source-authorization'] = _SERIALIZER.header("copy_source_authorization", copy_source_authorization, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_get_page_ranges_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "pagelist") # type: str version = kwargs.pop('version', "2021-04-10") # type: str snapshot = kwargs.pop('snapshot', None) # type: Optional[str] timeout = kwargs.pop('timeout', None) # type: Optional[int] range = kwargs.pop('range', None) # type: Optional[str] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] marker = kwargs.pop('marker', None) # type: Optional[str] maxresults = kwargs.pop('maxresults', None) # type: Optional[int] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if snapshot is not None: _query_parameters['snapshot'] = _SERIALIZER.query("snapshot", snapshot, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) if marker is not None: _query_parameters['marker'] = _SERIALIZER.query("marker", marker, 'str') if maxresults is not None: _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int', minimum=1) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if range is not None: _header_parameters['x-ms-range'] = _SERIALIZER.header("range", range, 'str') if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_get_page_ranges_diff_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "pagelist") # type: str version = kwargs.pop('version', "2021-04-10") # type: str snapshot = kwargs.pop('snapshot', None) # type: Optional[str] timeout = kwargs.pop('timeout', None) # type: Optional[int] prevsnapshot = kwargs.pop('prevsnapshot', None) # type: Optional[str] prev_snapshot_url = kwargs.pop('prev_snapshot_url', None) # type: Optional[str] range = kwargs.pop('range', None) # type: Optional[str] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] marker = kwargs.pop('marker', None) # type: Optional[str] maxresults = kwargs.pop('maxresults', None) # type: Optional[int] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if snapshot is not None: _query_parameters['snapshot'] = _SERIALIZER.query("snapshot", snapshot, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) if prevsnapshot is not None: _query_parameters['prevsnapshot'] = _SERIALIZER.query("prevsnapshot", prevsnapshot, 'str') if marker is not None: _query_parameters['marker'] = _SERIALIZER.query("marker", marker, 'str') if maxresults is not None: _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int', minimum=1) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if prev_snapshot_url is not None: _header_parameters['x-ms-previous-snapshot-url'] = _SERIALIZER.header("prev_snapshot_url", prev_snapshot_url, 'str') if range is not None: _header_parameters['x-ms-range'] = _SERIALIZER.header("range", range, 'str') if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_resize_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "properties") # type: str version = kwargs.pop('version', "2021-04-10") # type: str blob_content_length = kwargs.pop('blob_content_length') # type: int timeout = kwargs.pop('timeout', None) # type: Optional[int] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] encryption_key = kwargs.pop('encryption_key', None) # type: Optional[str] encryption_key_sha256 = kwargs.pop('encryption_key_sha256', None) # type: Optional[str] encryption_algorithm = kwargs.pop('encryption_algorithm', None) # type: Optional[Union[str, "_models.EncryptionAlgorithmType"]] encryption_scope = kwargs.pop('encryption_scope', None) # type: Optional[str] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if encryption_key is not None: _header_parameters['x-ms-encryption-key'] = _SERIALIZER.header("encryption_key", encryption_key, 'str') if encryption_key_sha256 is not None: _header_parameters['x-ms-encryption-key-sha256'] = _SERIALIZER.header("encryption_key_sha256", encryption_key_sha256, 'str') if encryption_algorithm is not None: _header_parameters['x-ms-encryption-algorithm'] = _SERIALIZER.header("encryption_algorithm", encryption_algorithm, 'str') if encryption_scope is not None: _header_parameters['x-ms-encryption-scope'] = _SERIALIZER.header("encryption_scope", encryption_scope, 'str') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-blob-content-length'] = _SERIALIZER.header("blob_content_length", blob_content_length, 'long') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_update_sequence_number_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "properties") # type: str version = kwargs.pop('version', "2021-04-10") # type: str sequence_number_action = kwargs.pop('sequence_number_action') # type: Union[str, "_models.SequenceNumberActionType"] timeout = kwargs.pop('timeout', None) # type: Optional[int] lease_id = kwargs.pop('lease_id', None) # type: Optional[str] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] blob_sequence_number = kwargs.pop('blob_sequence_number', 0) # type: Optional[int] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if lease_id is not None: _header_parameters['x-ms-lease-id'] = _SERIALIZER.header("lease_id", lease_id, 'str') if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-sequence-number-action'] = _SERIALIZER.header("sequence_number_action", sequence_number_action, 'str') if blob_sequence_number is not None: _header_parameters['x-ms-blob-sequence-number'] = _SERIALIZER.header("blob_sequence_number", blob_sequence_number, 'long') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) def build_copy_incremental_request( url, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest comp = kwargs.pop('comp', "incrementalcopy") # type: str version = kwargs.pop('version', "2021-04-10") # type: str copy_source = kwargs.pop('copy_source') # type: str timeout = kwargs.pop('timeout', None) # type: Optional[int] if_modified_since = kwargs.pop('if_modified_since', None) # type: Optional[datetime.datetime] if_unmodified_since = kwargs.pop('if_unmodified_since', None) # type: Optional[datetime.datetime] if_match = kwargs.pop('if_match', None) # type: Optional[str] if_none_match = kwargs.pop('if_none_match', None) # type: Optional[str] if_tags = kwargs.pop('if_tags', None) # type: Optional[str] request_id_parameter = kwargs.pop('request_id_parameter', None) # type: Optional[str] accept = "application/xml" # Construct URL _url = kwargs.pop("template_url", "{url}/{containerName}/{blob}") path_format_arguments = { "url": _SERIALIZER.url("url", url, 'str', skip_quote=True), } _url = _format_url_section(_url, **path_format_arguments) # Construct parameters _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') if timeout is not None: _query_parameters['timeout'] = _SERIALIZER.query("timeout", timeout, 'int', minimum=0) # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if if_modified_since is not None: _header_parameters['If-Modified-Since'] = _SERIALIZER.header("if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: _header_parameters['If-Unmodified-Since'] = _SERIALIZER.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if if_tags is not None: _header_parameters['x-ms-if-tags'] = _SERIALIZER.header("if_tags", if_tags, 'str') _header_parameters['x-ms-copy-source'] = _SERIALIZER.header("copy_source", copy_source, 'str') _header_parameters['x-ms-version'] = _SERIALIZER.header("version", version, 'str') if request_id_parameter is not None: _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("request_id_parameter", request_id_parameter, 'str') _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs ) # fmt: on class PageBlobOperations(object): """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.storage.blob.AzureBlobStorage`'s :attr:`page_blob` attribute. """ models = _models def __init__(self, *args, **kwargs): args = list(args) self._client = args.pop(0) if args else kwargs.pop("client") self._config = args.pop(0) if args else kwargs.pop("config") self._serialize = args.pop(0) if args else kwargs.pop("serializer") self._deserialize = args.pop(0) if args else kwargs.pop("deserializer") @distributed_trace def create( # pylint: disable=inconsistent-return-statements self, content_length, # type: int blob_content_length, # type: int timeout=None, # type: Optional[int] tier=None, # type: Optional[Union[str, "_models.PremiumPageBlobAccessTier"]] metadata=None, # type: Optional[Dict[str, str]] blob_sequence_number=0, # type: Optional[int] request_id_parameter=None, # type: Optional[str] blob_tags_string=None, # type: Optional[str] immutability_policy_expiry=None, # type: Optional[datetime.datetime] immutability_policy_mode=None, # type: Optional[Union[str, "_models.BlobImmutabilityPolicyMode"]] legal_hold=None, # type: Optional[bool] blob_http_headers=None, # type: Optional["_models.BlobHTTPHeaders"] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] cpk_info=None, # type: Optional["_models.CpkInfo"] cpk_scope_info=None, # type: Optional["_models.CpkScopeInfo"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> None """The Create operation creates a new page blob. :param content_length: The length of the request. :type content_length: long :param blob_content_length: This header specifies the maximum size for the page blob, up to 1 TB. The page blob size must be aligned to a 512-byte boundary. :type blob_content_length: long :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param tier: Optional. Indicates the tier to be set on the page blob. Default value is None. :type tier: str or ~azure.storage.blob.models.PremiumPageBlobAccessTier :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value pairs are specified, the operation will copy the metadata from the source blob or file to the destination blob. If one or more name-value pairs are specified, the destination blob is created with the specified metadata, and metadata is not copied from the source blob or file. Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more information. Default value is None. :type metadata: dict[str, str] :param blob_sequence_number: Set for page blobs only. The sequence number is a user-controlled value that you can use to track requests. The value of the sequence number must be between 0 and 2^63 - 1. Default value is 0. :type blob_sequence_number: long :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param blob_tags_string: Optional. Used to set blob tags in various blob operations. Default value is None. :type blob_tags_string: str :param immutability_policy_expiry: Specifies the date time when the blobs immutability policy is set to expire. Default value is None. :type immutability_policy_expiry: ~datetime.datetime :param immutability_policy_mode: Specifies the immutability policy mode to set on the blob. Default value is None. :type immutability_policy_mode: str or ~azure.storage.blob.models.BlobImmutabilityPolicyMode :param legal_hold: Specified if a legal hold should be set on the blob. Default value is None. :type legal_hold: bool :param blob_http_headers: Parameter group. Default value is None. :type blob_http_headers: ~azure.storage.blob.models.BlobHTTPHeaders :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param cpk_info: Parameter group. Default value is None. :type cpk_info: ~azure.storage.blob.models.CpkInfo :param cpk_scope_info: Parameter group. Default value is None. :type cpk_scope_info: ~azure.storage.blob.models.CpkScopeInfo :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword blob_type: Specifies the type of blob to create: block blob, page blob, or append blob. Default value is "PageBlob". Note that overriding this default value may result in unsupported behavior. :paramtype blob_type: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) blob_type = kwargs.pop('blob_type', "PageBlob") # type: str _blob_content_type = None _blob_content_encoding = None _blob_content_language = None _blob_content_md5 = None _blob_cache_control = None _lease_id = None _blob_content_disposition = None _encryption_key = None _encryption_key_sha256 = None _encryption_algorithm = None _encryption_scope = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if blob_http_headers is not None: _blob_content_type = blob_http_headers.blob_content_type _blob_content_encoding = blob_http_headers.blob_content_encoding _blob_content_language = blob_http_headers.blob_content_language _blob_content_md5 = blob_http_headers.blob_content_md5 _blob_cache_control = blob_http_headers.blob_cache_control if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if blob_http_headers is not None: _blob_content_disposition = blob_http_headers.blob_content_disposition if cpk_info is not None: _encryption_key = cpk_info.encryption_key _encryption_key_sha256 = cpk_info.encryption_key_sha256 _encryption_algorithm = cpk_info.encryption_algorithm if cpk_scope_info is not None: _encryption_scope = cpk_scope_info.encryption_scope if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags request = build_create_request( url=self._config.url, blob_type=blob_type, version=self._config.version, content_length=content_length, blob_content_length=blob_content_length, timeout=timeout, tier=tier, blob_content_type=_blob_content_type, blob_content_encoding=_blob_content_encoding, blob_content_language=_blob_content_language, blob_content_md5=_blob_content_md5, blob_cache_control=_blob_cache_control, metadata=metadata, lease_id=_lease_id, blob_content_disposition=_blob_content_disposition, encryption_key=_encryption_key, encryption_key_sha256=_encryption_key_sha256, encryption_algorithm=_encryption_algorithm, encryption_scope=_encryption_scope, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, blob_sequence_number=blob_sequence_number, request_id_parameter=request_id_parameter, blob_tags_string=blob_tags_string, immutability_policy_expiry=immutability_policy_expiry, immutability_policy_mode=immutability_policy_mode, legal_hold=legal_hold, template_url=self.create.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['Content-MD5']=self._deserialize('bytearray', response.headers.get('Content-MD5')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['x-ms-version-id']=self._deserialize('str', response.headers.get('x-ms-version-id')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) response_headers['x-ms-request-server-encrypted']=self._deserialize('bool', response.headers.get('x-ms-request-server-encrypted')) response_headers['x-ms-encryption-key-sha256']=self._deserialize('str', response.headers.get('x-ms-encryption-key-sha256')) response_headers['x-ms-encryption-scope']=self._deserialize('str', response.headers.get('x-ms-encryption-scope')) if cls: return cls(pipeline_response, None, response_headers) create.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def upload_pages( # pylint: disable=inconsistent-return-statements self, content_length, # type: int body, # type: IO transactional_content_md5=None, # type: Optional[bytearray] transactional_content_crc64=None, # type: Optional[bytearray] timeout=None, # type: Optional[int] range=None, # type: Optional[str] request_id_parameter=None, # type: Optional[str] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] cpk_info=None, # type: Optional["_models.CpkInfo"] cpk_scope_info=None, # type: Optional["_models.CpkScopeInfo"] sequence_number_access_conditions=None, # type: Optional["_models.SequenceNumberAccessConditions"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> None """The Upload Pages operation writes a range of pages to a page blob. :param content_length: The length of the request. :type content_length: long :param body: Initial data. :type body: IO :param transactional_content_md5: Specify the transactional md5 for the body, to be validated by the service. Default value is None. :type transactional_content_md5: bytearray :param transactional_content_crc64: Specify the transactional crc64 for the body, to be validated by the service. Default value is None. :type transactional_content_crc64: bytearray :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param range: Return only the bytes of the blob in the specified range. Default value is None. :type range: str :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param cpk_info: Parameter group. Default value is None. :type cpk_info: ~azure.storage.blob.models.CpkInfo :param cpk_scope_info: Parameter group. Default value is None. :type cpk_scope_info: ~azure.storage.blob.models.CpkScopeInfo :param sequence_number_access_conditions: Parameter group. Default value is None. :type sequence_number_access_conditions: ~azure.storage.blob.models.SequenceNumberAccessConditions :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword comp: comp. Default value is "page". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword page_write: Required. You may specify one of the following options: * Update: Writes the bytes specified by the request body into the specified range. The Range and Content-Length headers must match to perform the update. * Clear: Clears the specified range and releases the space used in storage for that range. To clear a range, set the Content-Length header to zero, and the Range header to a value that indicates the range to clear, up to maximum blob size. Default value is "update". Note that overriding this default value may result in unsupported behavior. :paramtype page_write: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "page") # type: str page_write = kwargs.pop('page_write', "update") # type: str content_type = kwargs.pop('content_type', "application/octet-stream") # type: Optional[str] _lease_id = None _encryption_key = None _encryption_key_sha256 = None _encryption_algorithm = None _encryption_scope = None _if_sequence_number_less_than_or_equal_to = None _if_sequence_number_less_than = None _if_sequence_number_equal_to = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if cpk_info is not None: _encryption_key = cpk_info.encryption_key _encryption_key_sha256 = cpk_info.encryption_key_sha256 _encryption_algorithm = cpk_info.encryption_algorithm if cpk_scope_info is not None: _encryption_scope = cpk_scope_info.encryption_scope if sequence_number_access_conditions is not None: _if_sequence_number_less_than_or_equal_to = sequence_number_access_conditions.if_sequence_number_less_than_or_equal_to _if_sequence_number_less_than = sequence_number_access_conditions.if_sequence_number_less_than _if_sequence_number_equal_to = sequence_number_access_conditions.if_sequence_number_equal_to if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags _content = body request = build_upload_pages_request( url=self._config.url, comp=comp, page_write=page_write, version=self._config.version, content_type=content_type, content=_content, content_length=content_length, transactional_content_md5=transactional_content_md5, transactional_content_crc64=transactional_content_crc64, timeout=timeout, range=range, lease_id=_lease_id, encryption_key=_encryption_key, encryption_key_sha256=_encryption_key_sha256, encryption_algorithm=_encryption_algorithm, encryption_scope=_encryption_scope, if_sequence_number_less_than_or_equal_to=_if_sequence_number_less_than_or_equal_to, if_sequence_number_less_than=_if_sequence_number_less_than, if_sequence_number_equal_to=_if_sequence_number_equal_to, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, request_id_parameter=request_id_parameter, template_url=self.upload_pages.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['Content-MD5']=self._deserialize('bytearray', response.headers.get('Content-MD5')) response_headers['x-ms-content-crc64']=self._deserialize('bytearray', response.headers.get('x-ms-content-crc64')) response_headers['x-ms-blob-sequence-number']=self._deserialize('long', response.headers.get('x-ms-blob-sequence-number')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) response_headers['x-ms-request-server-encrypted']=self._deserialize('bool', response.headers.get('x-ms-request-server-encrypted')) response_headers['x-ms-encryption-key-sha256']=self._deserialize('str', response.headers.get('x-ms-encryption-key-sha256')) response_headers['x-ms-encryption-scope']=self._deserialize('str', response.headers.get('x-ms-encryption-scope')) if cls: return cls(pipeline_response, None, response_headers) upload_pages.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def clear_pages( # pylint: disable=inconsistent-return-statements self, content_length, # type: int timeout=None, # type: Optional[int] range=None, # type: Optional[str] request_id_parameter=None, # type: Optional[str] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] cpk_info=None, # type: Optional["_models.CpkInfo"] cpk_scope_info=None, # type: Optional["_models.CpkScopeInfo"] sequence_number_access_conditions=None, # type: Optional["_models.SequenceNumberAccessConditions"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> None """The Clear Pages operation clears a set of pages from a page blob. :param content_length: The length of the request. :type content_length: long :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param range: Return only the bytes of the blob in the specified range. Default value is None. :type range: str :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param cpk_info: Parameter group. Default value is None. :type cpk_info: ~azure.storage.blob.models.CpkInfo :param cpk_scope_info: Parameter group. Default value is None. :type cpk_scope_info: ~azure.storage.blob.models.CpkScopeInfo :param sequence_number_access_conditions: Parameter group. Default value is None. :type sequence_number_access_conditions: ~azure.storage.blob.models.SequenceNumberAccessConditions :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword comp: comp. Default value is "page". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword page_write: Required. You may specify one of the following options: * Update: Writes the bytes specified by the request body into the specified range. The Range and Content-Length headers must match to perform the update. * Clear: Clears the specified range and releases the space used in storage for that range. To clear a range, set the Content-Length header to zero, and the Range header to a value that indicates the range to clear, up to maximum blob size. Default value is "clear". Note that overriding this default value may result in unsupported behavior. :paramtype page_write: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "page") # type: str page_write = kwargs.pop('page_write', "clear") # type: str _lease_id = None _encryption_key = None _encryption_key_sha256 = None _encryption_algorithm = None _encryption_scope = None _if_sequence_number_less_than_or_equal_to = None _if_sequence_number_less_than = None _if_sequence_number_equal_to = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if cpk_info is not None: _encryption_key = cpk_info.encryption_key _encryption_key_sha256 = cpk_info.encryption_key_sha256 _encryption_algorithm = cpk_info.encryption_algorithm if cpk_scope_info is not None: _encryption_scope = cpk_scope_info.encryption_scope if sequence_number_access_conditions is not None: _if_sequence_number_less_than_or_equal_to = sequence_number_access_conditions.if_sequence_number_less_than_or_equal_to _if_sequence_number_less_than = sequence_number_access_conditions.if_sequence_number_less_than _if_sequence_number_equal_to = sequence_number_access_conditions.if_sequence_number_equal_to if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags request = build_clear_pages_request( url=self._config.url, comp=comp, page_write=page_write, version=self._config.version, content_length=content_length, timeout=timeout, range=range, lease_id=_lease_id, encryption_key=_encryption_key, encryption_key_sha256=_encryption_key_sha256, encryption_algorithm=_encryption_algorithm, encryption_scope=_encryption_scope, if_sequence_number_less_than_or_equal_to=_if_sequence_number_less_than_or_equal_to, if_sequence_number_less_than=_if_sequence_number_less_than, if_sequence_number_equal_to=_if_sequence_number_equal_to, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, request_id_parameter=request_id_parameter, template_url=self.clear_pages.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['Content-MD5']=self._deserialize('bytearray', response.headers.get('Content-MD5')) response_headers['x-ms-content-crc64']=self._deserialize('bytearray', response.headers.get('x-ms-content-crc64')) response_headers['x-ms-blob-sequence-number']=self._deserialize('long', response.headers.get('x-ms-blob-sequence-number')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) if cls: return cls(pipeline_response, None, response_headers) clear_pages.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def upload_pages_from_url( # pylint: disable=inconsistent-return-statements self, source_url, # type: str source_range, # type: str content_length, # type: int range, # type: str source_content_md5=None, # type: Optional[bytearray] source_contentcrc64=None, # type: Optional[bytearray] timeout=None, # type: Optional[int] request_id_parameter=None, # type: Optional[str] copy_source_authorization=None, # type: Optional[str] cpk_info=None, # type: Optional["_models.CpkInfo"] cpk_scope_info=None, # type: Optional["_models.CpkScopeInfo"] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] sequence_number_access_conditions=None, # type: Optional["_models.SequenceNumberAccessConditions"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] source_modified_access_conditions=None, # type: Optional["_models.SourceModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> None """The Upload Pages operation writes a range of pages to a page blob where the contents are read from a URL. :param source_url: Specify a URL to the copy source. :type source_url: str :param source_range: Bytes of source data in the specified range. The length of this range should match the ContentLength header and x-ms-range/Range destination range header. :type source_range: str :param content_length: The length of the request. :type content_length: long :param range: The range of bytes to which the source range would be written. The range should be 512 aligned and range-end is required. :type range: str :param source_content_md5: Specify the md5 calculated for the range of bytes that must be read from the copy source. Default value is None. :type source_content_md5: bytearray :param source_contentcrc64: Specify the crc64 calculated for the range of bytes that must be read from the copy source. Default value is None. :type source_contentcrc64: bytearray :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param copy_source_authorization: Only Bearer type is supported. Credentials should be a valid OAuth access token to copy source. Default value is None. :type copy_source_authorization: str :param cpk_info: Parameter group. Default value is None. :type cpk_info: ~azure.storage.blob.models.CpkInfo :param cpk_scope_info: Parameter group. Default value is None. :type cpk_scope_info: ~azure.storage.blob.models.CpkScopeInfo :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param sequence_number_access_conditions: Parameter group. Default value is None. :type sequence_number_access_conditions: ~azure.storage.blob.models.SequenceNumberAccessConditions :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :param source_modified_access_conditions: Parameter group. Default value is None. :type source_modified_access_conditions: ~azure.storage.blob.models.SourceModifiedAccessConditions :keyword comp: comp. Default value is "page". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword page_write: Required. You may specify one of the following options: * Update: Writes the bytes specified by the request body into the specified range. The Range and Content-Length headers must match to perform the update. * Clear: Clears the specified range and releases the space used in storage for that range. To clear a range, set the Content-Length header to zero, and the Range header to a value that indicates the range to clear, up to maximum blob size. Default value is "update". Note that overriding this default value may result in unsupported behavior. :paramtype page_write: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "page") # type: str page_write = kwargs.pop('page_write', "update") # type: str _encryption_key = None _encryption_key_sha256 = None _encryption_algorithm = None _encryption_scope = None _lease_id = None _if_sequence_number_less_than_or_equal_to = None _if_sequence_number_less_than = None _if_sequence_number_equal_to = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None _source_if_modified_since = None _source_if_unmodified_since = None _source_if_match = None _source_if_none_match = None if cpk_info is not None: _encryption_key = cpk_info.encryption_key _encryption_key_sha256 = cpk_info.encryption_key_sha256 _encryption_algorithm = cpk_info.encryption_algorithm if cpk_scope_info is not None: _encryption_scope = cpk_scope_info.encryption_scope if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if sequence_number_access_conditions is not None: _if_sequence_number_less_than_or_equal_to = sequence_number_access_conditions.if_sequence_number_less_than_or_equal_to _if_sequence_number_less_than = sequence_number_access_conditions.if_sequence_number_less_than _if_sequence_number_equal_to = sequence_number_access_conditions.if_sequence_number_equal_to if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags if source_modified_access_conditions is not None: _source_if_modified_since = source_modified_access_conditions.source_if_modified_since _source_if_unmodified_since = source_modified_access_conditions.source_if_unmodified_since _source_if_match = source_modified_access_conditions.source_if_match _source_if_none_match = source_modified_access_conditions.source_if_none_match request = build_upload_pages_from_url_request( url=self._config.url, comp=comp, page_write=page_write, version=self._config.version, source_url=source_url, source_range=source_range, content_length=content_length, range=range, source_content_md5=source_content_md5, source_contentcrc64=source_contentcrc64, timeout=timeout, encryption_key=_encryption_key, encryption_key_sha256=_encryption_key_sha256, encryption_algorithm=_encryption_algorithm, encryption_scope=_encryption_scope, lease_id=_lease_id, if_sequence_number_less_than_or_equal_to=_if_sequence_number_less_than_or_equal_to, if_sequence_number_less_than=_if_sequence_number_less_than, if_sequence_number_equal_to=_if_sequence_number_equal_to, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, source_if_modified_since=_source_if_modified_since, source_if_unmodified_since=_source_if_unmodified_since, source_if_match=_source_if_match, source_if_none_match=_source_if_none_match, request_id_parameter=request_id_parameter, copy_source_authorization=copy_source_authorization, template_url=self.upload_pages_from_url.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['Content-MD5']=self._deserialize('bytearray', response.headers.get('Content-MD5')) response_headers['x-ms-content-crc64']=self._deserialize('bytearray', response.headers.get('x-ms-content-crc64')) response_headers['x-ms-blob-sequence-number']=self._deserialize('long', response.headers.get('x-ms-blob-sequence-number')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) response_headers['x-ms-request-server-encrypted']=self._deserialize('bool', response.headers.get('x-ms-request-server-encrypted')) response_headers['x-ms-encryption-key-sha256']=self._deserialize('str', response.headers.get('x-ms-encryption-key-sha256')) response_headers['x-ms-encryption-scope']=self._deserialize('str', response.headers.get('x-ms-encryption-scope')) if cls: return cls(pipeline_response, None, response_headers) upload_pages_from_url.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def get_page_ranges( self, snapshot=None, # type: Optional[str] timeout=None, # type: Optional[int] range=None, # type: Optional[str] request_id_parameter=None, # type: Optional[str] marker=None, # type: Optional[str] maxresults=None, # type: Optional[int] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> "_models.PageList" """The Get Page Ranges operation returns the list of valid page ranges for a page blob or snapshot of a page blob. :param snapshot: The snapshot parameter is an opaque DateTime value that, when present, specifies the blob snapshot to retrieve. For more information on working with blob snapshots, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating a Snapshot of a Blob.</a>`. Default value is None. :type snapshot: str :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param range: Return only the bytes of the blob in the specified range. Default value is None. :type range: str :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param marker: A string value that identifies the portion of the list of containers to be returned with the next listing operation. The operation returns the NextMarker value within the response body if the listing operation did not return all containers remaining to be listed with the current page. The NextMarker value can be used as the value for the marker parameter in a subsequent call to request the next page of list items. The marker value is opaque to the client. Default value is None. :type marker: str :param maxresults: Specifies the maximum number of containers to return. If the request does not specify maxresults, or specifies a value greater than 5000, the server will return up to 5000 items. Note that if the listing operation crosses a partition boundary, then the service will return a continuation token for retrieving the remainder of the results. For this reason, it is possible that the service will return fewer results than specified by maxresults, or than the default of 5000. Default value is None. :type maxresults: int :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword comp: comp. Default value is "pagelist". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword callable cls: A custom type or function that will be passed the direct response :return: PageList, or the result of cls(response) :rtype: ~azure.storage.blob.models.PageList :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.PageList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "pagelist") # type: str _lease_id = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags request = build_get_page_ranges_request( url=self._config.url, comp=comp, version=self._config.version, snapshot=snapshot, timeout=timeout, range=range, lease_id=_lease_id, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, request_id_parameter=request_id_parameter, marker=marker, maxresults=maxresults, template_url=self.get_page_ranges.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['x-ms-blob-content-length']=self._deserialize('long', response.headers.get('x-ms-blob-content-length')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) deserialized = self._deserialize('PageList', pipeline_response) if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized get_page_ranges.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def get_page_ranges_diff( self, snapshot=None, # type: Optional[str] timeout=None, # type: Optional[int] prevsnapshot=None, # type: Optional[str] prev_snapshot_url=None, # type: Optional[str] range=None, # type: Optional[str] request_id_parameter=None, # type: Optional[str] marker=None, # type: Optional[str] maxresults=None, # type: Optional[int] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> "_models.PageList" """The Get Page Ranges Diff operation returns the list of valid page ranges for a page blob that were changed between target blob and previous snapshot. :param snapshot: The snapshot parameter is an opaque DateTime value that, when present, specifies the blob snapshot to retrieve. For more information on working with blob snapshots, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating a Snapshot of a Blob.</a>`. Default value is None. :type snapshot: str :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param prevsnapshot: Optional in version 2015-07-08 and newer. The prevsnapshot parameter is a DateTime value that specifies that the response will contain only pages that were changed between target blob and previous snapshot. Changed pages include both updated and cleared pages. The target blob may be a snapshot, as long as the snapshot specified by prevsnapshot is the older of the two. Note that incremental snapshots are currently supported only for blobs created on or after January 1, 2016. Default value is None. :type prevsnapshot: str :param prev_snapshot_url: Optional. This header is only supported in service versions 2019-04-19 and after and specifies the URL of a previous snapshot of the target blob. The response will only contain pages that were changed between the target blob and its previous snapshot. Default value is None. :type prev_snapshot_url: str :param range: Return only the bytes of the blob in the specified range. Default value is None. :type range: str :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param marker: A string value that identifies the portion of the list of containers to be returned with the next listing operation. The operation returns the NextMarker value within the response body if the listing operation did not return all containers remaining to be listed with the current page. The NextMarker value can be used as the value for the marker parameter in a subsequent call to request the next page of list items. The marker value is opaque to the client. Default value is None. :type marker: str :param maxresults: Specifies the maximum number of containers to return. If the request does not specify maxresults, or specifies a value greater than 5000, the server will return up to 5000 items. Note that if the listing operation crosses a partition boundary, then the service will return a continuation token for retrieving the remainder of the results. For this reason, it is possible that the service will return fewer results than specified by maxresults, or than the default of 5000. Default value is None. :type maxresults: int :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword comp: comp. Default value is "pagelist". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword callable cls: A custom type or function that will be passed the direct response :return: PageList, or the result of cls(response) :rtype: ~azure.storage.blob.models.PageList :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.PageList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "pagelist") # type: str _lease_id = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags request = build_get_page_ranges_diff_request( url=self._config.url, comp=comp, version=self._config.version, snapshot=snapshot, timeout=timeout, prevsnapshot=prevsnapshot, prev_snapshot_url=prev_snapshot_url, range=range, lease_id=_lease_id, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, request_id_parameter=request_id_parameter, marker=marker, maxresults=maxresults, template_url=self.get_page_ranges_diff.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['x-ms-blob-content-length']=self._deserialize('long', response.headers.get('x-ms-blob-content-length')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) deserialized = self._deserialize('PageList', pipeline_response) if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized get_page_ranges_diff.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def resize( # pylint: disable=inconsistent-return-statements self, blob_content_length, # type: int timeout=None, # type: Optional[int] request_id_parameter=None, # type: Optional[str] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] cpk_info=None, # type: Optional["_models.CpkInfo"] cpk_scope_info=None, # type: Optional["_models.CpkScopeInfo"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> None """Resize the Blob. :param blob_content_length: This header specifies the maximum size for the page blob, up to 1 TB. The page blob size must be aligned to a 512-byte boundary. :type blob_content_length: long :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param cpk_info: Parameter group. Default value is None. :type cpk_info: ~azure.storage.blob.models.CpkInfo :param cpk_scope_info: Parameter group. Default value is None. :type cpk_scope_info: ~azure.storage.blob.models.CpkScopeInfo :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword comp: comp. Default value is "properties". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "properties") # type: str _lease_id = None _encryption_key = None _encryption_key_sha256 = None _encryption_algorithm = None _encryption_scope = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if cpk_info is not None: _encryption_key = cpk_info.encryption_key _encryption_key_sha256 = cpk_info.encryption_key_sha256 _encryption_algorithm = cpk_info.encryption_algorithm if cpk_scope_info is not None: _encryption_scope = cpk_scope_info.encryption_scope if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags request = build_resize_request( url=self._config.url, comp=comp, version=self._config.version, blob_content_length=blob_content_length, timeout=timeout, lease_id=_lease_id, encryption_key=_encryption_key, encryption_key_sha256=_encryption_key_sha256, encryption_algorithm=_encryption_algorithm, encryption_scope=_encryption_scope, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, request_id_parameter=request_id_parameter, template_url=self.resize.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['x-ms-blob-sequence-number']=self._deserialize('long', response.headers.get('x-ms-blob-sequence-number')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) if cls: return cls(pipeline_response, None, response_headers) resize.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def update_sequence_number( # pylint: disable=inconsistent-return-statements self, sequence_number_action, # type: Union[str, "_models.SequenceNumberActionType"] timeout=None, # type: Optional[int] blob_sequence_number=0, # type: Optional[int] request_id_parameter=None, # type: Optional[str] lease_access_conditions=None, # type: Optional["_models.LeaseAccessConditions"] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> None """Update the sequence number of the blob. :param sequence_number_action: Required if the x-ms-blob-sequence-number header is set for the request. This property applies to page blobs only. This property indicates how the service should modify the blob's sequence number. :type sequence_number_action: str or ~azure.storage.blob.models.SequenceNumberActionType :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param blob_sequence_number: Set for page blobs only. The sequence number is a user-controlled value that you can use to track requests. The value of the sequence number must be between 0 and 2^63 - 1. Default value is 0. :type blob_sequence_number: long :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param lease_access_conditions: Parameter group. Default value is None. :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword comp: comp. Default value is "properties". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "properties") # type: str _lease_id = None _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if lease_access_conditions is not None: _lease_id = lease_access_conditions.lease_id if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags request = build_update_sequence_number_request( url=self._config.url, comp=comp, version=self._config.version, sequence_number_action=sequence_number_action, timeout=timeout, lease_id=_lease_id, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, blob_sequence_number=blob_sequence_number, request_id_parameter=request_id_parameter, template_url=self.update_sequence_number.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['x-ms-blob-sequence-number']=self._deserialize('long', response.headers.get('x-ms-blob-sequence-number')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) if cls: return cls(pipeline_response, None, response_headers) update_sequence_number.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore @distributed_trace def copy_incremental( # pylint: disable=inconsistent-return-statements self, copy_source, # type: str timeout=None, # type: Optional[int] request_id_parameter=None, # type: Optional[str] modified_access_conditions=None, # type: Optional["_models.ModifiedAccessConditions"] **kwargs # type: Any ): # type: (...) -> None """The Copy Incremental operation copies a snapshot of the source page blob to a destination page blob. The snapshot is copied such that only the differential changes between the previously copied snapshot are transferred to the destination. The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual. This API is supported since REST version 2016-05-31. :param copy_source: Specifies the name of the source page blob snapshot. This value is a URL of up to 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would appear in a request URI. The source blob must either be public or must be authenticated via a shared access signature. :type copy_source: str :param timeout: The timeout parameter is expressed in seconds. For more information, see :code:`<a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>`. Default value is None. :type timeout: int :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. Default value is None. :type request_id_parameter: str :param modified_access_conditions: Parameter group. Default value is None. :type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions :keyword comp: comp. Default value is "incrementalcopy". Note that overriding this default value may result in unsupported behavior. :paramtype comp: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) comp = kwargs.pop('comp', "incrementalcopy") # type: str _if_modified_since = None _if_unmodified_since = None _if_match = None _if_none_match = None _if_tags = None if modified_access_conditions is not None: _if_modified_since = modified_access_conditions.if_modified_since _if_unmodified_since = modified_access_conditions.if_unmodified_since _if_match = modified_access_conditions.if_match _if_none_match = modified_access_conditions.if_none_match _if_tags = modified_access_conditions.if_tags request = build_copy_incremental_request( url=self._config.url, comp=comp, version=self._config.version, copy_source=copy_source, timeout=timeout, if_modified_since=_if_modified_since, if_unmodified_since=_if_unmodified_since, if_match=_if_match, if_none_match=_if_none_match, if_tags=_if_tags, request_id_parameter=request_id_parameter, template_url=self.copy_incremental.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.StorageError, pipeline_response) raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['ETag']=self._deserialize('str', response.headers.get('ETag')) response_headers['Last-Modified']=self._deserialize('rfc-1123', response.headers.get('Last-Modified')) response_headers['x-ms-client-request-id']=self._deserialize('str', response.headers.get('x-ms-client-request-id')) response_headers['x-ms-request-id']=self._deserialize('str', response.headers.get('x-ms-request-id')) response_headers['x-ms-version']=self._deserialize('str', response.headers.get('x-ms-version')) response_headers['Date']=self._deserialize('rfc-1123', response.headers.get('Date')) response_headers['x-ms-copy-id']=self._deserialize('str', response.headers.get('x-ms-copy-id')) response_headers['x-ms-copy-status']=self._deserialize('str', response.headers.get('x-ms-copy-status')) if cls: return cls(pipeline_response, None, response_headers) copy_incremental.metadata = {'url': "{url}/{containerName}/{blob}"} # type: ignore
56.153669
171
0.697991
15,158
121,685
5.317324
0.032722
0.028685
0.041092
0.022333
0.913263
0.902506
0.876824
0.862494
0.848226
0.829963
0
0.007573
0.201348
121,685
2,166
172
56.179594
0.821781
0.283782
0
0.819261
0
0
0.149418
0.051578
0
0
0
0
0
1
0.012533
false
0
0.007256
0
0.034301
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
0711b5ccedf98d759098fcf4ca4eadbc4df04e09
4,869
py
Python
measures/validation/accuracy.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
3
2019-03-18T03:22:06.000Z
2021-04-06T07:53:51.000Z
measures/validation/accuracy.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
null
null
null
measures/validation/accuracy.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
2
2020-10-05T08:22:25.000Z
2020-10-05T08:24:02.000Z
#!/usr/bin/env # -*- coding: utf-8 -*- # Copyright (C) Victor M. Mendiola Lau - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Victor M. Mendiola Lau <ryuzakyl@gmail.com>, February 2017 from classification.validation import knn as knn_val from classification.validation import svm as svm_val # --------------------------------------------------------------- def knn_accuracy_in_euc_space(X, labels, folds=3): """KNN classifier accuracy in an Euclidean Space. Args: X (np.ndarray): The data array. labels (list, np.ndarray): The data labels. folds (int): Amount of folds for validation. Returns: The result of the grid search procedure in an euclidean space. Notes: * The result is a list if `_CVScoreTuple` instances. If needed, the user should iterate over it and use relevant values for his/hers analysis. """ return knn_val.grid_search_in_euc_space(X, labels, folds) def knn_accuracy_in_pretopological_space(X, labels, measure, folds=3): """KNN classifier accuracy in a Pretopological Space. Args: X (np.ndarray): The data array. labels (list, np.ndarray): The data labels. measure (int): The type of dissimilarity to use as metric (see 'measures' module). folds (int): Amount of folds for validation. Returns: The result of the grid search procedure in a pretopological space. Notes: * The result is a list if `_CVScoreTuple` instances. If needed, the user should iterate over it and use relevant values for his/hers analysis. """ return knn_val.grid_search_in_pretopological_space(X, labels, measure, folds) def knn_accuracy_in_dis_space(X, labels, measure, folds=3): """KNN classifier accuracy in a Dissimilarity Space. Args: X (np.ndarray): The data array. labels (list, np.ndarray): The data labels. measure (int): The type of dissimilarity to use as metric (see 'measures' module). folds (int): Amount of folds for validation. Returns: The result of the grid search procedure in a dissimilarity space. Notes: * The result is a list if `_CVScoreTuple` instances. If needed, the user should iterate over it and use relevant values for his/hers analysis. """ return knn_val.grid_search_in_dis_space(X, labels, measure, folds) def svm_accuracy_in_euc_space(X, labels, folds=3): """SVM classifier accuracy in an Euclidean Space. Args: X (np.ndarray): The data array. labels (list, np.ndarray): The data labels. folds (int): Amount of folds for validation. Returns: The result of the grid search procedure in an euclidean space. Notes: * The result is a list if `_CVScoreTuple` instances. If needed, the user should iterate over it and use relevant values for his/hers analysis. """ return svm_val.grid_search_in_euc_space(X, labels, folds) def svm_accuracy_in_euc_space_params(X, labels, params, folds=3): """SVM classifier accuracy in an Euclidean Space. Args: X (np.ndarray): The data array. labels (list, np.ndarray): The data labels. params (dict): Dictionary of parameters and its values. folds (int): Amount of folds for validation. Returns: The result of the grid search procedure in an euclidean space. Notes: * The result is a list if `_CVScoreTuple` instances. If needed, the user should iterate over it and use relevant values for his/hers analysis. """ return svm_val.grid_search_in_euc_space_params(X, labels, params, folds) def svm_accuracy_in_dis_space(X, labels, measure, folds=3): """Grid search for SVM classifier in a Dissimilarity Space. Args: X (np.ndarray): The data array. labels (list, np.ndarray): The data labels. measure (int): The type of dissimilarity to use as metric (see 'measures' module). folds (int): Amount of folds for validation Returns: The Grid search results for the given data and labels. """ return svm_val.grid_search_in_dis_space(X, labels, measure, folds) def svm_accuracy_in_dis_space_params(X, labels, measure, params, folds=3): """Grid search for SVM classifier in a Dissimilarity Space. Args: X (np.ndarray): The data array. labels (list, np.ndarray): The data labels. measure (int): The type of dissimilarity to use as metric (see 'measures' module). params (dict): Dictionary of parameters and its values. folds (int): Amount of folds for validation Returns: The Grid search results for the given data and labels. """ return svm_val.grid_search_in_dis_space_params(X, labels, measure, params, folds)
33.57931
150
0.681454
694
4,869
4.674352
0.152738
0.049322
0.051788
0.069051
0.894266
0.889951
0.888101
0.866215
0.835697
0.801788
0
0.003196
0.228794
4,869
144
151
33.8125
0.860719
0.705894
0
0
0
0
0
0
0
0
0
0
0
1
0.4375
false
0
0.125
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
8
075edf60dc9bca9389b3a1c341c43dfffd60c02a
1,751
py
Python
Hackathon 4.0_2021-01-08_07-16-34.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
Hackathon 4.0_2021-01-08_07-16-34.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
Hackathon 4.0_2021-01-08_07-16-34.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
# This code is generated automatically by ClointFusion BOT Builder Tool. import ClointFusion as cf import time cf.window_show_desktop() cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2)) try: cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_7th5gfed_generator\Images\Snips\1--1457_343.png',conf=0.7, wait=11),left_or_right='left', single_double_triple = 'single') except: cf.mouse_click(1457,343) time.sleep(1) try: cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_7th5gfed_generator\Images\Snips\2--248_944.png',conf=0.7, wait=10),left_or_right='left', single_double_triple = 'single') except: cf.mouse_click(248,944) time.sleep(0) try: cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_7th5gfed_generator\Images\Snips\3--248_944.png',conf=0.7, wait=12),left_or_right='left', single_double_triple = 'double') except: cf.mouse_click(248,944) time.sleep(2) try: cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_7th5gfed_generator\Images\Snips\4-NewTabGoogleChrome-379_74.png',conf=0.7, wait=11),left_or_right='left', single_double_triple = 'double') except: cf.mouse_click(379,74) time.sleep(1) cf.key_write_enter('modi') time.sleep(0) cf.key_press('enter') time.sleep(1) try: cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_7th5gfed_generator\Images\Snips\5-modiGoogleSearchGoogleChrome-1904_53.png',conf=0.7, wait=10),left_or_right='left', single_double_triple = 'single') except: cf.mouse_click(1904,53) time.sleep(0)
41.690476
256
0.78241
307
1,751
4.18241
0.250814
0.087227
0.102804
0.058411
0.764798
0.764798
0.764798
0.745327
0.721963
0.721963
0
0.064911
0.06739
1,751
41
257
42.707317
0.721372
0.039977
0
0.545455
1
0.151515
0.32162
0.28648
0
0
0
0
0
1
0
true
0
0.060606
0
0.060606
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
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
075f9e53c7d47b4af601bfb32d851f98a1f68ef8
10,379
py
Python
rec_to_nwb/test/processing/validators/test_nTrodeValidator.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
1
2021-01-20T00:26:30.000Z
2021-01-20T00:26:30.000Z
rec_to_nwb/test/processing/validators/test_nTrodeValidator.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
12
2020-11-13T01:36:32.000Z
2022-01-23T20:35:55.000Z
rec_to_nwb/test/processing/validators/test_nTrodeValidator.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
3
2020-10-20T06:52:45.000Z
2021-07-06T23:00:53.000Z
import os from pathlib import Path from unittest import TestCase from testfixtures import should_raise from rec_to_nwb.processing.exceptions.invalid_header_exception import InvalidHeaderException from rec_to_nwb.processing.exceptions.invalid_metadata_exception import InvalidMetadataException from rec_to_nwb.processing.header.module import header from rec_to_nwb.processing.validation.ntrode_validator import NTrodeValidator path = os.path.dirname(os.path.abspath(__file__)) class TestNTrodeValidator(TestCase): def setUp(self): parent_path = str(Path(path).parent) res_path = parent_path + '/res/fl_lab_sample_header.xml' self.header = header.Header(res_path) def test_ntrode_validator_validate_correct_data_successfully(self): probes_metadata = [ {'probe_type': 'tetrode_12.5', 'contact_size': 20.0, 'num_shanks': 1, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 2, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 3, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0} ]} ]}, {'probe_type': '128c-4s8mm6cm-20um-40um-sl', 'contact_size': 20.0, 'num_shanks': 4, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 40.0, 'rel_y': 0.0, 'rel_z': 0.0}]}, {'shank_id': 1, 'electrodes': [ {'id': 32, 'rel_x': 0.0, 'rel_y': 300.0, 'rel_z': 0.0}, {'id': 33, 'rel_x': 40.0, 'rel_y': 300.0, 'rel_z': 0.0}]} ]} ] metadata = { 'electrode_groups': [ {'id': 0, 'location': 'mPFC', 'device_type': 'tetrode_12.5', 'description': 'Probe 1'}, {'id': 1, 'location': 'mPFC', 'device_type': '128c-4s8mm6cm-20um-40um-sl', 'description': 'Probe 2'}, ], "ntrode_electrode_group_channel_map": [ {"ntrode_id": 1, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 0, 1: 1, 2: 2, 3: 3}}, {"ntrode_id": 2, "electrode_group_id": 1, "bad_channels": [0, 1], "map": {0: 4, 1: 5, 2: 6, 3: 7}}, ] } validator = NTrodeValidator(metadata, self.header, probes_metadata) result = validator.create_summary() self.assertTrue(result.is_valid()) def test_ntrode_validator_validate_ndtrodes_num_less_than_spikes_successfully(self): probes_metadata = [ {'probe_type': 'tetrode_12.5', 'contact_size': 20.0, 'num_shanks': 1, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 2, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 3, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0} ]} ]}, {'probe_type': '128c-4s8mm6cm-20um-40um-sl', 'contact_size': 20.0, 'num_shanks': 4, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 40.0, 'rel_y': 0.0, 'rel_z': 0.0}]}, {'shank_id': 1, 'electrodes': [ {'id': 32, 'rel_x': 0.0, 'rel_y': 300.0, 'rel_z': 0.0}, {'id': 33, 'rel_x': 40.0, 'rel_y': 300.0, 'rel_z': 0.0}]} ]} ] metadata = { 'electrode_groups': [ {'id': 0, 'location': 'mPFC', 'device_type': 'tetrode_12.5', 'description': 'Probe 1'}, ], "ntrode_electrode_group_channel_map": [ {"ntrode_id": 1, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 0, 1: 1, 2: 2, 3: 3}}, ] } validator = NTrodeValidator(metadata, self.header, probes_metadata) result = validator.create_summary() self.assertFalse(result.is_valid()) self.assertEqual(result.ntrodes_num, 1) def test_ntrode_validator_validate_ndtrodes_num_greater_than_spikes_successfully(self): probes_metadata = [ {'probe_type': 'tetrode_12.5', 'contact_size': 20.0, 'num_shanks': 1, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 2, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 3, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 4, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 5, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 6, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 7, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0} ]} ]}, {'probe_type': '128c-4s8mm6cm-20um-40um-sl', 'contact_size': 20.0, 'num_shanks': 4, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 40.0, 'rel_y': 0.0, 'rel_z': 0.0}]}, {'shank_id': 1, 'electrodes': [ {'id': 32, 'rel_x': 0.0, 'rel_y': 300.0, 'rel_z': 0.0}, {'id': 33, 'rel_x': 40.0, 'rel_y': 300.0, 'rel_z': 0.0}]} ]} ] metadata = { 'electrode_groups': [ {'id': 0, 'location': 'mPFC', 'device_type': 'tetrode_12.5', 'description': 'Probe 1'}, {'id': 1, 'location': 'mPFC', 'device_type': '128c-4s8mm6cm-20um-40um-sl', 'description': 'Probe 2'}, ], "ntrode_electrode_group_channel_map": [ {"ntrode_id": 1, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 0, 1: 1, 2: 2, 3: 3}}, {"ntrode_id": 2, "electrode_group_id": 1, "bad_channels": [0, 1], "map": {0: 4, 1: 5, 2: 6, 3: 7}}, {"ntrode_id": 3, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 8, 1: 9, 2: 10, 3: 11}}, ] } validator = NTrodeValidator(metadata, self.header, probes_metadata) result = validator.create_summary() self.assertFalse(result.is_valid()) self.assertEqual(result.ntrodes_num, 3) @should_raise(TypeError) def test_ntrode_validator_raise_exception_due_to_empty_param(self): metadata = {"ntrode_electrode_group_channel_map": [ {"ntrode_id": 1, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 0, 1: 1, 2: 2, 3: 3}}, {"ntrode_id": 2, "electrode_group_id": 0, "bad_channels": [0, 1], "map": {0: 4, 1: 5, 2: 6, 3: 7}}, {"ntrode_id": 3, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 8, 1: 9, 2: 10, 3: 11}}, ]} NTrodeValidator(metadata, None, None) @should_raise(InvalidHeaderException) def test_ntrode_validator_raise_exception_due_to_header_without_spike_ntrodes(self): metadata = {"ntrode_electrode_group_channel_map": [ {"ntrode_id": 1, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 0, 1: 1, 2: 2, 3: 3}}, {"ntrode_id": 2, "electrode_group_id": 0, "bad_channels": [0, 1], "map": {0: 4, 1: 5, 2: 6, 3: 7}}, {"ntrode_id": 3, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 8, 1: 9, 2: 10, 3: 11}}, ]} validator = NTrodeValidator(metadata, self.header, []) self.header.configuration.spike_configuration.spike_n_trodes = None validator.create_summary() @should_raise(InvalidMetadataException) def test_should_raise_exception_due_to_metadata_without_ntrodes(self): metadata = {"ntrode_electrode_group_channel_map": []} validator = NTrodeValidator(metadata, self.header, []) validator.create_summary() @should_raise(InvalidMetadataException) def test_should_raise_exception_due_to_incompatible_probes_metadata_with_ntrodes(self): probes_metadata = [ {'probe_type': 'tetrode_12.5', 'contact_size': 20.0, 'num_shanks': 1, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 2, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 3, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 5, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0} ]} ]}, {'probe_type': '128c-4s8mm6cm-20um-40um-sl', 'contact_size': 20.0, 'num_shanks': 4, 'shanks': [ {'shank_id': 0, 'electrodes': [ {'id': 0, 'rel_x': 0.0, 'rel_y': 0.0, 'rel_z': 0.0}, {'id': 1, 'rel_x': 40.0, 'rel_y': 0.0, 'rel_z': 0.0}]}, {'shank_id': 1, 'electrodes': [ {'id': 32, 'rel_x': 0.0, 'rel_y': 300.0, 'rel_z': 0.0}, {'id': 33, 'rel_x': 40.0, 'rel_y': 300.0, 'rel_z': 0.0}]} ]} ] metadata = { 'electrode_groups': [ {'id': 0, 'location': 'mPFC', 'device_type': 'tetrode_12.5', 'description': 'Probe 1'}, {'id': 1, 'location': 'mPFC', 'device_type': '128c-4s8mm6cm-20um-40um-sl', 'description': 'Probe 2'}, ], "ntrode_electrode_group_channel_map": [ {"ntrode_id": 1, "electrode_group_id": 0, "bad_channels": [0, 2], "map": {0: 0, 1: 1, 2: 2, 3: 3}}, {"ntrode_id": 2, "electrode_group_id": 1, "bad_channels": [0, 1], "map": {0: 4, 1: 5, 2: 6, 3: 7}}, ] } validator = NTrodeValidator(metadata, self.header, probes_metadata) validator.create_summary()
48.5
117
0.49446
1,390
10,379
3.432374
0.08705
0.042339
0.060784
0.046531
0.850136
0.825823
0.825823
0.792287
0.763362
0.763362
0
0.087122
0.315445
10,379
213
118
48.7277
0.584377
0
0
0.748634
0
0
0.255059
0.043265
0
0
0
0
0.027322
1
0.043716
false
0
0.043716
0
0.092896
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
4aed536a80edd232cd2cc8a8731649d0ad075fce
42,449
py
Python
sdk/python/pulumi_alicloud/cloudfirewall/control_policy.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/cloudfirewall/control_policy.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/cloudfirewall/control_policy.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.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__ = ['ControlPolicyArgs', 'ControlPolicy'] @pulumi.input_type class ControlPolicyArgs: def __init__(__self__, *, acl_action: pulumi.Input[str], application_name: pulumi.Input[str], description: pulumi.Input[str], destination: pulumi.Input[str], destination_type: pulumi.Input[str], direction: pulumi.Input[str], proto: pulumi.Input[str], source: pulumi.Input[str], source_type: pulumi.Input[str], dest_port: Optional[pulumi.Input[str]] = None, dest_port_group: Optional[pulumi.Input[str]] = None, dest_port_type: Optional[pulumi.Input[str]] = None, ip_version: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, release: Optional[pulumi.Input[str]] = None, source_ip: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a ControlPolicy resource. :param pulumi.Input[str] acl_action: The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`. :param pulumi.Input[str] application_name: The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`. :param pulumi.Input[str] description: The description of the access control policy. :param pulumi.Input[str] destination: The destination address defined in the access control policy. :param pulumi.Input[str] destination_type: DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`. :param pulumi.Input[str] direction: Direction. Valid values: `in`, `out`. :param pulumi.Input[str] proto: Proto. Valid values: ` TCP`, ` UDP`, `ANY`, `ICMP`. :param pulumi.Input[str] source: Source. :param pulumi.Input[str] source_type: SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`. :param pulumi.Input[str] dest_port: The destination port defined in the access control policy. :param pulumi.Input[str] dest_port_group: The destination port address book defined in the access control policy. :param pulumi.Input[str] dest_port_type: The destination port type defined in the access control policy. Valid values: `group`, `port`. :param pulumi.Input[str] ip_version: The ip version. :param pulumi.Input[str] lang: DestPortGroupPorts. Valid values: `en`, `zh`. :param pulumi.Input[str] release: Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`. :param pulumi.Input[str] source_ip: The source ip. """ pulumi.set(__self__, "acl_action", acl_action) pulumi.set(__self__, "application_name", application_name) pulumi.set(__self__, "description", description) pulumi.set(__self__, "destination", destination) pulumi.set(__self__, "destination_type", destination_type) pulumi.set(__self__, "direction", direction) pulumi.set(__self__, "proto", proto) pulumi.set(__self__, "source", source) pulumi.set(__self__, "source_type", source_type) if dest_port is not None: pulumi.set(__self__, "dest_port", dest_port) if dest_port_group is not None: pulumi.set(__self__, "dest_port_group", dest_port_group) if dest_port_type is not None: pulumi.set(__self__, "dest_port_type", dest_port_type) if ip_version is not None: pulumi.set(__self__, "ip_version", ip_version) if lang is not None: pulumi.set(__self__, "lang", lang) if release is not None: pulumi.set(__self__, "release", release) if source_ip is not None: pulumi.set(__self__, "source_ip", source_ip) @property @pulumi.getter(name="aclAction") def acl_action(self) -> pulumi.Input[str]: """ The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`. """ return pulumi.get(self, "acl_action") @acl_action.setter def acl_action(self, value: pulumi.Input[str]): pulumi.set(self, "acl_action", value) @property @pulumi.getter(name="applicationName") def application_name(self) -> pulumi.Input[str]: """ The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`. """ return pulumi.get(self, "application_name") @application_name.setter def application_name(self, value: pulumi.Input[str]): pulumi.set(self, "application_name", value) @property @pulumi.getter def description(self) -> pulumi.Input[str]: """ The description of the access control policy. """ return pulumi.get(self, "description") @description.setter def description(self, value: pulumi.Input[str]): pulumi.set(self, "description", value) @property @pulumi.getter def destination(self) -> pulumi.Input[str]: """ The destination address defined in the access control policy. """ return pulumi.get(self, "destination") @destination.setter def destination(self, value: pulumi.Input[str]): pulumi.set(self, "destination", value) @property @pulumi.getter(name="destinationType") def destination_type(self) -> pulumi.Input[str]: """ DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`. """ return pulumi.get(self, "destination_type") @destination_type.setter def destination_type(self, value: pulumi.Input[str]): pulumi.set(self, "destination_type", value) @property @pulumi.getter def direction(self) -> pulumi.Input[str]: """ Direction. Valid values: `in`, `out`. """ return pulumi.get(self, "direction") @direction.setter def direction(self, value: pulumi.Input[str]): pulumi.set(self, "direction", value) @property @pulumi.getter def proto(self) -> pulumi.Input[str]: """ Proto. Valid values: ` TCP`, ` UDP`, `ANY`, `ICMP`. """ return pulumi.get(self, "proto") @proto.setter def proto(self, value: pulumi.Input[str]): pulumi.set(self, "proto", value) @property @pulumi.getter def source(self) -> pulumi.Input[str]: """ Source. """ return pulumi.get(self, "source") @source.setter def source(self, value: pulumi.Input[str]): pulumi.set(self, "source", value) @property @pulumi.getter(name="sourceType") def source_type(self) -> pulumi.Input[str]: """ SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`. """ return pulumi.get(self, "source_type") @source_type.setter def source_type(self, value: pulumi.Input[str]): pulumi.set(self, "source_type", value) @property @pulumi.getter(name="destPort") def dest_port(self) -> Optional[pulumi.Input[str]]: """ The destination port defined in the access control policy. """ return pulumi.get(self, "dest_port") @dest_port.setter def dest_port(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "dest_port", value) @property @pulumi.getter(name="destPortGroup") def dest_port_group(self) -> Optional[pulumi.Input[str]]: """ The destination port address book defined in the access control policy. """ return pulumi.get(self, "dest_port_group") @dest_port_group.setter def dest_port_group(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "dest_port_group", value) @property @pulumi.getter(name="destPortType") def dest_port_type(self) -> Optional[pulumi.Input[str]]: """ The destination port type defined in the access control policy. Valid values: `group`, `port`. """ return pulumi.get(self, "dest_port_type") @dest_port_type.setter def dest_port_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "dest_port_type", value) @property @pulumi.getter(name="ipVersion") def ip_version(self) -> Optional[pulumi.Input[str]]: """ The ip version. """ return pulumi.get(self, "ip_version") @ip_version.setter def ip_version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ip_version", value) @property @pulumi.getter def lang(self) -> Optional[pulumi.Input[str]]: """ DestPortGroupPorts. Valid values: `en`, `zh`. """ return pulumi.get(self, "lang") @lang.setter def lang(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "lang", value) @property @pulumi.getter def release(self) -> Optional[pulumi.Input[str]]: """ Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`. """ return pulumi.get(self, "release") @release.setter def release(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "release", value) @property @pulumi.getter(name="sourceIp") def source_ip(self) -> Optional[pulumi.Input[str]]: """ The source ip. """ return pulumi.get(self, "source_ip") @source_ip.setter def source_ip(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "source_ip", value) @pulumi.input_type class _ControlPolicyState: def __init__(__self__, *, acl_action: Optional[pulumi.Input[str]] = None, acl_uuid: Optional[pulumi.Input[str]] = None, application_name: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, dest_port: Optional[pulumi.Input[str]] = None, dest_port_group: Optional[pulumi.Input[str]] = None, dest_port_type: Optional[pulumi.Input[str]] = None, destination: Optional[pulumi.Input[str]] = None, destination_type: Optional[pulumi.Input[str]] = None, direction: Optional[pulumi.Input[str]] = None, ip_version: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, proto: Optional[pulumi.Input[str]] = None, release: Optional[pulumi.Input[str]] = None, source: Optional[pulumi.Input[str]] = None, source_ip: Optional[pulumi.Input[str]] = None, source_type: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering ControlPolicy resources. :param pulumi.Input[str] acl_action: The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`. :param pulumi.Input[str] acl_uuid: The unique ID of the access control policy. :param pulumi.Input[str] application_name: The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`. :param pulumi.Input[str] description: The description of the access control policy. :param pulumi.Input[str] dest_port: The destination port defined in the access control policy. :param pulumi.Input[str] dest_port_group: The destination port address book defined in the access control policy. :param pulumi.Input[str] dest_port_type: The destination port type defined in the access control policy. Valid values: `group`, `port`. :param pulumi.Input[str] destination: The destination address defined in the access control policy. :param pulumi.Input[str] destination_type: DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`. :param pulumi.Input[str] direction: Direction. Valid values: `in`, `out`. :param pulumi.Input[str] ip_version: The ip version. :param pulumi.Input[str] lang: DestPortGroupPorts. Valid values: `en`, `zh`. :param pulumi.Input[str] proto: Proto. Valid values: ` TCP`, ` UDP`, `ANY`, `ICMP`. :param pulumi.Input[str] release: Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`. :param pulumi.Input[str] source: Source. :param pulumi.Input[str] source_ip: The source ip. :param pulumi.Input[str] source_type: SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`. """ if acl_action is not None: pulumi.set(__self__, "acl_action", acl_action) if acl_uuid is not None: pulumi.set(__self__, "acl_uuid", acl_uuid) if application_name is not None: pulumi.set(__self__, "application_name", application_name) if description is not None: pulumi.set(__self__, "description", description) if dest_port is not None: pulumi.set(__self__, "dest_port", dest_port) if dest_port_group is not None: pulumi.set(__self__, "dest_port_group", dest_port_group) if dest_port_type is not None: pulumi.set(__self__, "dest_port_type", dest_port_type) if destination is not None: pulumi.set(__self__, "destination", destination) if destination_type is not None: pulumi.set(__self__, "destination_type", destination_type) if direction is not None: pulumi.set(__self__, "direction", direction) if ip_version is not None: pulumi.set(__self__, "ip_version", ip_version) if lang is not None: pulumi.set(__self__, "lang", lang) if proto is not None: pulumi.set(__self__, "proto", proto) if release is not None: pulumi.set(__self__, "release", release) if source is not None: pulumi.set(__self__, "source", source) if source_ip is not None: pulumi.set(__self__, "source_ip", source_ip) if source_type is not None: pulumi.set(__self__, "source_type", source_type) @property @pulumi.getter(name="aclAction") def acl_action(self) -> Optional[pulumi.Input[str]]: """ The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`. """ return pulumi.get(self, "acl_action") @acl_action.setter def acl_action(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "acl_action", value) @property @pulumi.getter(name="aclUuid") def acl_uuid(self) -> Optional[pulumi.Input[str]]: """ The unique ID of the access control policy. """ return pulumi.get(self, "acl_uuid") @acl_uuid.setter def acl_uuid(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "acl_uuid", value) @property @pulumi.getter(name="applicationName") def application_name(self) -> Optional[pulumi.Input[str]]: """ The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`. """ return pulumi.get(self, "application_name") @application_name.setter def application_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "application_name", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ The description of the access control policy. """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter(name="destPort") def dest_port(self) -> Optional[pulumi.Input[str]]: """ The destination port defined in the access control policy. """ return pulumi.get(self, "dest_port") @dest_port.setter def dest_port(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "dest_port", value) @property @pulumi.getter(name="destPortGroup") def dest_port_group(self) -> Optional[pulumi.Input[str]]: """ The destination port address book defined in the access control policy. """ return pulumi.get(self, "dest_port_group") @dest_port_group.setter def dest_port_group(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "dest_port_group", value) @property @pulumi.getter(name="destPortType") def dest_port_type(self) -> Optional[pulumi.Input[str]]: """ The destination port type defined in the access control policy. Valid values: `group`, `port`. """ return pulumi.get(self, "dest_port_type") @dest_port_type.setter def dest_port_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "dest_port_type", value) @property @pulumi.getter def destination(self) -> Optional[pulumi.Input[str]]: """ The destination address defined in the access control policy. """ return pulumi.get(self, "destination") @destination.setter def destination(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "destination", value) @property @pulumi.getter(name="destinationType") def destination_type(self) -> Optional[pulumi.Input[str]]: """ DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`. """ return pulumi.get(self, "destination_type") @destination_type.setter def destination_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "destination_type", value) @property @pulumi.getter def direction(self) -> Optional[pulumi.Input[str]]: """ Direction. Valid values: `in`, `out`. """ return pulumi.get(self, "direction") @direction.setter def direction(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "direction", value) @property @pulumi.getter(name="ipVersion") def ip_version(self) -> Optional[pulumi.Input[str]]: """ The ip version. """ return pulumi.get(self, "ip_version") @ip_version.setter def ip_version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ip_version", value) @property @pulumi.getter def lang(self) -> Optional[pulumi.Input[str]]: """ DestPortGroupPorts. Valid values: `en`, `zh`. """ return pulumi.get(self, "lang") @lang.setter def lang(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "lang", value) @property @pulumi.getter def proto(self) -> Optional[pulumi.Input[str]]: """ Proto. Valid values: ` TCP`, ` UDP`, `ANY`, `ICMP`. """ return pulumi.get(self, "proto") @proto.setter def proto(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "proto", value) @property @pulumi.getter def release(self) -> Optional[pulumi.Input[str]]: """ Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`. """ return pulumi.get(self, "release") @release.setter def release(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "release", value) @property @pulumi.getter def source(self) -> Optional[pulumi.Input[str]]: """ Source. """ return pulumi.get(self, "source") @source.setter def source(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "source", value) @property @pulumi.getter(name="sourceIp") def source_ip(self) -> Optional[pulumi.Input[str]]: """ The source ip. """ return pulumi.get(self, "source_ip") @source_ip.setter def source_ip(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "source_ip", value) @property @pulumi.getter(name="sourceType") def source_type(self) -> Optional[pulumi.Input[str]]: """ SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`. """ return pulumi.get(self, "source_type") @source_type.setter def source_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "source_type", value) class ControlPolicy(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, acl_action: Optional[pulumi.Input[str]] = None, application_name: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, dest_port: Optional[pulumi.Input[str]] = None, dest_port_group: Optional[pulumi.Input[str]] = None, dest_port_type: Optional[pulumi.Input[str]] = None, destination: Optional[pulumi.Input[str]] = None, destination_type: Optional[pulumi.Input[str]] = None, direction: Optional[pulumi.Input[str]] = None, ip_version: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, proto: Optional[pulumi.Input[str]] = None, release: Optional[pulumi.Input[str]] = None, source: Optional[pulumi.Input[str]] = None, source_ip: Optional[pulumi.Input[str]] = None, source_type: Optional[pulumi.Input[str]] = None, __props__=None): """ Provides a Cloud Firewall Control Policy resource. For information about Cloud Firewall Control Policy and how to use it, see [What is Control Policy](https://www.alibabacloud.com/help/doc-detail/138867.htm). > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```python import pulumi import pulumi_alicloud as alicloud example = alicloud.cloudfirewall.ControlPolicy("example", acl_action="accept", application_name="ANY", description="example", destination="100.1.1.0/24", destination_type="net", direction="out", proto="ANY", source="1.2.3.0/24", source_type="net") ``` ## Import Cloud Firewall Control Policy can be imported using the id, e.g. ```sh $ pulumi import alicloud:cloudfirewall/controlPolicy:ControlPolicy example <acl_uuid>:<direction> ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] acl_action: The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`. :param pulumi.Input[str] application_name: The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`. :param pulumi.Input[str] description: The description of the access control policy. :param pulumi.Input[str] dest_port: The destination port defined in the access control policy. :param pulumi.Input[str] dest_port_group: The destination port address book defined in the access control policy. :param pulumi.Input[str] dest_port_type: The destination port type defined in the access control policy. Valid values: `group`, `port`. :param pulumi.Input[str] destination: The destination address defined in the access control policy. :param pulumi.Input[str] destination_type: DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`. :param pulumi.Input[str] direction: Direction. Valid values: `in`, `out`. :param pulumi.Input[str] ip_version: The ip version. :param pulumi.Input[str] lang: DestPortGroupPorts. Valid values: `en`, `zh`. :param pulumi.Input[str] proto: Proto. Valid values: ` TCP`, ` UDP`, `ANY`, `ICMP`. :param pulumi.Input[str] release: Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`. :param pulumi.Input[str] source: Source. :param pulumi.Input[str] source_ip: The source ip. :param pulumi.Input[str] source_type: SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`. """ ... @overload def __init__(__self__, resource_name: str, args: ControlPolicyArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Provides a Cloud Firewall Control Policy resource. For information about Cloud Firewall Control Policy and how to use it, see [What is Control Policy](https://www.alibabacloud.com/help/doc-detail/138867.htm). > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```python import pulumi import pulumi_alicloud as alicloud example = alicloud.cloudfirewall.ControlPolicy("example", acl_action="accept", application_name="ANY", description="example", destination="100.1.1.0/24", destination_type="net", direction="out", proto="ANY", source="1.2.3.0/24", source_type="net") ``` ## Import Cloud Firewall Control Policy can be imported using the id, e.g. ```sh $ pulumi import alicloud:cloudfirewall/controlPolicy:ControlPolicy example <acl_uuid>:<direction> ``` :param str resource_name: The name of the resource. :param ControlPolicyArgs 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(ControlPolicyArgs, 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, acl_action: Optional[pulumi.Input[str]] = None, application_name: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, dest_port: Optional[pulumi.Input[str]] = None, dest_port_group: Optional[pulumi.Input[str]] = None, dest_port_type: Optional[pulumi.Input[str]] = None, destination: Optional[pulumi.Input[str]] = None, destination_type: Optional[pulumi.Input[str]] = None, direction: Optional[pulumi.Input[str]] = None, ip_version: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, proto: Optional[pulumi.Input[str]] = None, release: Optional[pulumi.Input[str]] = None, source: Optional[pulumi.Input[str]] = None, source_ip: Optional[pulumi.Input[str]] = None, source_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__ = ControlPolicyArgs.__new__(ControlPolicyArgs) if acl_action is None and not opts.urn: raise TypeError("Missing required property 'acl_action'") __props__.__dict__["acl_action"] = acl_action if application_name is None and not opts.urn: raise TypeError("Missing required property 'application_name'") __props__.__dict__["application_name"] = application_name if description is None and not opts.urn: raise TypeError("Missing required property 'description'") __props__.__dict__["description"] = description __props__.__dict__["dest_port"] = dest_port __props__.__dict__["dest_port_group"] = dest_port_group __props__.__dict__["dest_port_type"] = dest_port_type if destination is None and not opts.urn: raise TypeError("Missing required property 'destination'") __props__.__dict__["destination"] = destination if destination_type is None and not opts.urn: raise TypeError("Missing required property 'destination_type'") __props__.__dict__["destination_type"] = destination_type if direction is None and not opts.urn: raise TypeError("Missing required property 'direction'") __props__.__dict__["direction"] = direction __props__.__dict__["ip_version"] = ip_version __props__.__dict__["lang"] = lang if proto is None and not opts.urn: raise TypeError("Missing required property 'proto'") __props__.__dict__["proto"] = proto __props__.__dict__["release"] = release if source is None and not opts.urn: raise TypeError("Missing required property 'source'") __props__.__dict__["source"] = source __props__.__dict__["source_ip"] = source_ip if source_type is None and not opts.urn: raise TypeError("Missing required property 'source_type'") __props__.__dict__["source_type"] = source_type __props__.__dict__["acl_uuid"] = None super(ControlPolicy, __self__).__init__( 'alicloud:cloudfirewall/controlPolicy:ControlPolicy', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, acl_action: Optional[pulumi.Input[str]] = None, acl_uuid: Optional[pulumi.Input[str]] = None, application_name: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, dest_port: Optional[pulumi.Input[str]] = None, dest_port_group: Optional[pulumi.Input[str]] = None, dest_port_type: Optional[pulumi.Input[str]] = None, destination: Optional[pulumi.Input[str]] = None, destination_type: Optional[pulumi.Input[str]] = None, direction: Optional[pulumi.Input[str]] = None, ip_version: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, proto: Optional[pulumi.Input[str]] = None, release: Optional[pulumi.Input[str]] = None, source: Optional[pulumi.Input[str]] = None, source_ip: Optional[pulumi.Input[str]] = None, source_type: Optional[pulumi.Input[str]] = None) -> 'ControlPolicy': """ Get an existing ControlPolicy 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] acl_action: The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`. :param pulumi.Input[str] acl_uuid: The unique ID of the access control policy. :param pulumi.Input[str] application_name: The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`. :param pulumi.Input[str] description: The description of the access control policy. :param pulumi.Input[str] dest_port: The destination port defined in the access control policy. :param pulumi.Input[str] dest_port_group: The destination port address book defined in the access control policy. :param pulumi.Input[str] dest_port_type: The destination port type defined in the access control policy. Valid values: `group`, `port`. :param pulumi.Input[str] destination: The destination address defined in the access control policy. :param pulumi.Input[str] destination_type: DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`. :param pulumi.Input[str] direction: Direction. Valid values: `in`, `out`. :param pulumi.Input[str] ip_version: The ip version. :param pulumi.Input[str] lang: DestPortGroupPorts. Valid values: `en`, `zh`. :param pulumi.Input[str] proto: Proto. Valid values: ` TCP`, ` UDP`, `ANY`, `ICMP`. :param pulumi.Input[str] release: Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`. :param pulumi.Input[str] source: Source. :param pulumi.Input[str] source_ip: The source ip. :param pulumi.Input[str] source_type: SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _ControlPolicyState.__new__(_ControlPolicyState) __props__.__dict__["acl_action"] = acl_action __props__.__dict__["acl_uuid"] = acl_uuid __props__.__dict__["application_name"] = application_name __props__.__dict__["description"] = description __props__.__dict__["dest_port"] = dest_port __props__.__dict__["dest_port_group"] = dest_port_group __props__.__dict__["dest_port_type"] = dest_port_type __props__.__dict__["destination"] = destination __props__.__dict__["destination_type"] = destination_type __props__.__dict__["direction"] = direction __props__.__dict__["ip_version"] = ip_version __props__.__dict__["lang"] = lang __props__.__dict__["proto"] = proto __props__.__dict__["release"] = release __props__.__dict__["source"] = source __props__.__dict__["source_ip"] = source_ip __props__.__dict__["source_type"] = source_type return ControlPolicy(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="aclAction") def acl_action(self) -> pulumi.Output[str]: """ The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`. """ return pulumi.get(self, "acl_action") @property @pulumi.getter(name="aclUuid") def acl_uuid(self) -> pulumi.Output[str]: """ The unique ID of the access control policy. """ return pulumi.get(self, "acl_uuid") @property @pulumi.getter(name="applicationName") def application_name(self) -> pulumi.Output[str]: """ The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`. """ return pulumi.get(self, "application_name") @property @pulumi.getter def description(self) -> pulumi.Output[str]: """ The description of the access control policy. """ return pulumi.get(self, "description") @property @pulumi.getter(name="destPort") def dest_port(self) -> pulumi.Output[str]: """ The destination port defined in the access control policy. """ return pulumi.get(self, "dest_port") @property @pulumi.getter(name="destPortGroup") def dest_port_group(self) -> pulumi.Output[str]: """ The destination port address book defined in the access control policy. """ return pulumi.get(self, "dest_port_group") @property @pulumi.getter(name="destPortType") def dest_port_type(self) -> pulumi.Output[str]: """ The destination port type defined in the access control policy. Valid values: `group`, `port`. """ return pulumi.get(self, "dest_port_type") @property @pulumi.getter def destination(self) -> pulumi.Output[str]: """ The destination address defined in the access control policy. """ return pulumi.get(self, "destination") @property @pulumi.getter(name="destinationType") def destination_type(self) -> pulumi.Output[str]: """ DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`. """ return pulumi.get(self, "destination_type") @property @pulumi.getter def direction(self) -> pulumi.Output[str]: """ Direction. Valid values: `in`, `out`. """ return pulumi.get(self, "direction") @property @pulumi.getter(name="ipVersion") def ip_version(self) -> pulumi.Output[Optional[str]]: """ The ip version. """ return pulumi.get(self, "ip_version") @property @pulumi.getter def lang(self) -> pulumi.Output[Optional[str]]: """ DestPortGroupPorts. Valid values: `en`, `zh`. """ return pulumi.get(self, "lang") @property @pulumi.getter def proto(self) -> pulumi.Output[str]: """ Proto. Valid values: ` TCP`, ` UDP`, `ANY`, `ICMP`. """ return pulumi.get(self, "proto") @property @pulumi.getter def release(self) -> pulumi.Output[str]: """ Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`. """ return pulumi.get(self, "release") @property @pulumi.getter def source(self) -> pulumi.Output[str]: """ Source. """ return pulumi.get(self, "source") @property @pulumi.getter(name="sourceIp") def source_ip(self) -> pulumi.Output[str]: """ The source ip. """ return pulumi.get(self, "source_ip") @property @pulumi.getter(name="sourceType") def source_type(self) -> pulumi.Output[str]: """ SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`. """ return pulumi.get(self, "source_type")
44.495807
325
0.62753
5,036
42,449
5.106235
0.046068
0.093253
0.117597
0.103519
0.925141
0.899631
0.881431
0.843671
0.837566
0.822983
0
0.001602
0.249947
42,449
953
326
44.542497
0.806055
0.349243
0
0.745887
1
0
0.095443
0.00197
0
0
0
0
0
1
0.164534
false
0.001828
0.009141
0
0.272395
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
4af001ceba4d8402e0221681809193f5ea4794d1
227
py
Python
qleet/analyzers/__init__.py
AnimeshSinha1309/qaoa-optimizer
2a93a46bacc99f22f49e7b5121eb3aa9f12c0163
[ "Apache-2.0" ]
9
2021-09-26T18:43:43.000Z
2022-03-30T12:34:01.000Z
qleet/analyzers/__init__.py
QLemma/qLEET
2a93a46bacc99f22f49e7b5121eb3aa9f12c0163
[ "Apache-2.0" ]
12
2021-09-19T13:29:33.000Z
2022-01-09T15:22:49.000Z
qleet/analyzers/__init__.py
QLemma/qLEET
2a93a46bacc99f22f49e7b5121eb3aa9f12c0163
[ "Apache-2.0" ]
1
2022-03-14T03:02:24.000Z
2022-03-14T03:02:24.000Z
import qleet.analyzers.loss_landscape import qleet.analyzers.training_path import qleet.analyzers.entanglement import qleet.analyzers.expressibility import qleet.analyzers.histogram import qleet.analyzers.entanglement_spectrum
32.428571
44
0.894273
27
227
7.407407
0.407407
0.33
0.6
0.32
0
0
0
0
0
0
0
0
0.052863
227
6
45
37.833333
0.930233
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
ab01e55b9966c071343507ca2974453a6c977ceb
86,844
py
Python
infoblox_netmri/api/broker/v3_7_0/job_broker.py
NastyaArslanova/infoblox-netmri
399d904399ba7958262c6f107fa3b0efdd55019b
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/broker/v3_7_0/job_broker.py
NastyaArslanova/infoblox-netmri
399d904399ba7958262c6f107fa3b0efdd55019b
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/broker/v3_7_0/job_broker.py
NastyaArslanova/infoblox-netmri
399d904399ba7958262c6f107fa3b0efdd55019b
[ "Apache-2.0" ]
null
null
null
from ..broker import Broker class JobBroker(Broker): controller = "jobs" def index(self, **kwargs): """Lists the available jobs. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this method is most efficient. **Inputs** | ``api version min:`` 2.10 | ``api version max:`` None | ``required:`` False | ``default:`` None :param JobID: The internal NetMRI identifier for this job. :type JobID: Array of Integer | ``api version min:`` 2.10 | ``api version max:`` None | ``required:`` False | ``default:`` None :param id: The internal NetMRI identifier for this job. :type id: Array of Integer | ``api version min:`` 2.10 | ``api version max:`` None | ``required:`` False | ``default:`` None :param name: The name of this job, as entered when the job specification was defined, or when the job was executed from a script. :type name: Array of String | ``api version min:`` 2.10 | ``api version max:`` None | ``required:`` False | ``default:`` None :param started_at: The time this job started execution. :type started_at: Array of DateTime | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of job methods. The listed methods will be called on each job returned and included in the output. Available methods are: meta. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: meta. :type include: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 0 :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information. :type start: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 1000 :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000. :type limit: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` id :param sort: The data field(s) to use for sorting the output. Default is id. Valid values are id, name, category, job_type, taskflow_revert, script_id, config_template_id, description, created_by, run_as, credential_source, approved_by, approval_note, provision_data, input_data, transactional_ind, status, last_status_at, started_at, completed_at, created_at, updated_at, approved_at, script_text, script_language, config_template_text, job_specification_id. :type sort: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` asc :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'. :type dir: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param select: The list of attributes to return for each Job. Valid values are id, name, category, job_type, taskflow_revert, script_id, config_template_id, description, created_by, run_as, credential_source, approved_by, approval_note, provision_data, input_data, transactional_ind, status, last_status_at, started_at, completed_at, created_at, updated_at, approved_at, script_text, script_language, config_template_text, job_specification_id. If empty or omitted, all attributes will be returned. :type select: Array | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records. :type goto_field: String | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records. :type goto_value: String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return jobs: An array of the Job objects that match the specified input criteria. :rtype jobs: Array of Job """ return self.api_list_request(self._get_method_fullname("index"), kwargs) def show(self, **kwargs): """Shows the details for the specified job. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` True | ``default:`` None :param id: The internal NetMRI identifier for this job. :type id: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of job methods. The listed methods will be called on each job returned and included in the output. Available methods are: meta. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: meta. :type include: Array of String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return job: The job identified by the specified id. :rtype job: Job """ return self.api_request(self._get_method_fullname("show"), kwargs) def search(self, **kwargs): """Lists the available jobs matching the input criteria. This method provides a more flexible search interface than the index method, but searching using this method is more demanding on the system and will not perform to the same level as the index method. The input fields listed below will be used as in the index method, to filter the result, along with the optional query string and XML filter described below. **Inputs** | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param approval_note: The approval note. :type approval_note: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param approval_note: The approval note. :type approval_note: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param approved_at: The time when the job was approved. :type approved_at: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param approved_at: The time when the job was approved. :type approved_at: Array of DateTime | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param approved_by: The user that approved the job. :type approved_by: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param approved_by: The user that approved the job. :type approved_by: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param category: The job category. :type category: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param category: The job category. :type category: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param completed_at: The time this job completed execution against all devices. :type completed_at: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param completed_at: The time this job completed execution against all devices. :type completed_at: Array of DateTime | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param config_template_id: The internal identifier for the config template. :type config_template_id: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param config_template_id: The internal identifier for the config template. :type config_template_id: Array of Integer | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param config_template_text: The content of the config template. :type config_template_text: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param config_template_text: The content of the config template. :type config_template_text: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param created_at: The time when the job was created. :type created_at: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param created_at: The time when the job was created. :type created_at: Array of DateTime | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param created_by: The user that created the job. :type created_by: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param created_by: The user that created the job. :type created_by: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param credential_source: The source of a device credential. :type credential_source: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param credential_source: The source of a device credential. :type credential_source: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param description: The description of the job. :type description: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param description: The description of the job. :type description: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param id: The internal NetMRI identifier for this job. :type id: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param id: The internal NetMRI identifier for this job. :type id: Array of Integer | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param input_data: The input data for the job. :type input_data: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param input_data: The input data for the job. :type input_data: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param job_specification_id: The internal identifier for the associated Job Specification. :type job_specification_id: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param job_specification_id: The internal identifier for the associated Job Specification. :type job_specification_id: Array of Integer | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param job_type: The type of job. This can be Scheduled, Ad Hoc, or Run Now. :type job_type: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param job_type: The type of job. This can be Scheduled, Ad Hoc, or Run Now. :type job_type: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param last_status_at: The time when the job status was updated. :type last_status_at: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param last_status_at: The time when the job status was updated. :type last_status_at: Array of DateTime | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param name: The name of this job, as entered when the job specification was defined, or when the job was executed from a script. :type name: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param name: The name of this job, as entered when the job specification was defined, or when the job was executed from a script. :type name: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param provision_data: Internal data for provisioning jobs. :type provision_data: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param provision_data: Internal data for provisioning jobs. :type provision_data: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param run_as: The user that run the job. :type run_as: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param run_as: The user that run the job. :type run_as: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param script_id: The internal identifier for the script. :type script_id: Integer | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param script_id: The internal identifier for the script. :type script_id: Array of Integer | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param script_language: The language of the script. :type script_language: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param script_language: The language of the script. :type script_language: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param script_text: The content of the script. :type script_text: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param script_text: The content of the script. :type script_text: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param started_at: The time this job started execution. :type started_at: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param started_at: The time this job started execution. :type started_at: Array of DateTime | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param status: The current status of this job, based upon all of the statuses for each device in the job. :type status: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param status: The current status of this job, based upon all of the statuses for each device in the job. :type status: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param taskflow_revert: The internal workflow name for job reversion using the script. :type taskflow_revert: String | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param taskflow_revert: The internal workflow name for job reversion using the script. :type taskflow_revert: Array of String | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param transactional_ind: Flag indicating if devices should be reserved during execution of this job. :type transactional_ind: Boolean | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param transactional_ind: Flag indicating if devices should be reserved during execution of this job. :type transactional_ind: Array of Boolean | ``api version min:`` 2.3 | ``api version max:`` 2.4 | ``required:`` False | ``default:`` None :param updated_at: The time when the job was updated. :type updated_at: DateTime | ``api version min:`` 2.5 | ``api version max:`` None | ``required:`` False | ``default:`` None :param updated_at: The time when the job was updated. :type updated_at: Array of DateTime | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of job methods. The listed methods will be called on each job returned and included in the output. Available methods are: meta. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: meta. :type include: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 0 :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information. :type start: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 1000 :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000. :type limit: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` id :param sort: The data field(s) to use for sorting the output. Default is id. Valid values are id, name, category, job_type, taskflow_revert, script_id, config_template_id, description, created_by, run_as, credential_source, approved_by, approval_note, provision_data, input_data, transactional_ind, status, last_status_at, started_at, completed_at, created_at, updated_at, approved_at, script_text, script_language, config_template_text, job_specification_id. :type sort: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` asc :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'. :type dir: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param select: The list of attributes to return for each Job. Valid values are id, name, category, job_type, taskflow_revert, script_id, config_template_id, description, created_by, run_as, credential_source, approved_by, approval_note, provision_data, input_data, transactional_ind, status, last_status_at, started_at, completed_at, created_at, updated_at, approved_at, script_text, script_language, config_template_text, job_specification_id. If empty or omitted, all attributes will be returned. :type select: Array | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records. :type goto_field: String | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records. :type goto_value: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param query: This value will be matched against jobs, looking to see if one or more of the listed attributes contain the passed value. You may also surround the value with '/' and '/' to perform a regular expression search rather than a containment operation. Any record that matches will be returned. The attributes searched are: approval_note, approved_at, approved_by, category, completed_at, config_template_id, config_template_text, created_at, created_by, credential_source, description, id, input_data, job_specification_id, job_type, last_status_at, name, provision_data, run_as, script_id, script_language, script_text, started_at, status, taskflow_revert, transactional_ind, updated_at. :type query: String | ``api version min:`` 2.3 | ``api version max:`` None | ``required:`` False | ``default:`` None :param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering. :type xml_filter: String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return jobs: An array of the Job objects that match the specified input criteria. :rtype jobs: Array of Job """ return self.api_list_request(self._get_method_fullname("search"), kwargs) def find(self, **kwargs): """Lists the available jobs matching the input specification. This provides the most flexible search specification of all the query mechanisms, enabling searching using comparison operations other than equality. However, it is more complex to use and will not perform as efficiently as the index or search methods. In the input descriptions below, 'field names' refers to the following fields: approval_note, approved_at, approved_by, category, completed_at, config_template_id, config_template_text, created_at, created_by, credential_source, description, id, input_data, job_specification_id, job_type, last_status_at, name, provision_data, run_as, script_id, script_language, script_text, started_at, status, taskflow_revert, transactional_ind, updated_at. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_approval_note: The operator to apply to the field approval_note. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. approval_note: The approval note. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_approval_note: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_approval_note: If op_approval_note is specified, the field named in this input will be compared to the value in approval_note using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_approval_note must be specified if op_approval_note is specified. :type val_f_approval_note: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_approval_note: If op_approval_note is specified, this value will be compared to the value in approval_note using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_approval_note must be specified if op_approval_note is specified. :type val_c_approval_note: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_approved_at: The operator to apply to the field approved_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. approved_at: The time when the job was approved. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_approved_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_approved_at: If op_approved_at is specified, the field named in this input will be compared to the value in approved_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_approved_at must be specified if op_approved_at is specified. :type val_f_approved_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_approved_at: If op_approved_at is specified, this value will be compared to the value in approved_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_approved_at must be specified if op_approved_at is specified. :type val_c_approved_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_approved_by: The operator to apply to the field approved_by. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. approved_by: The user that approved the job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_approved_by: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_approved_by: If op_approved_by is specified, the field named in this input will be compared to the value in approved_by using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_approved_by must be specified if op_approved_by is specified. :type val_f_approved_by: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_approved_by: If op_approved_by is specified, this value will be compared to the value in approved_by using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_approved_by must be specified if op_approved_by is specified. :type val_c_approved_by: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_category: The operator to apply to the field category. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. category: The job category. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_category: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_category: If op_category is specified, the field named in this input will be compared to the value in category using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_category must be specified if op_category is specified. :type val_f_category: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_category: If op_category is specified, this value will be compared to the value in category using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_category must be specified if op_category is specified. :type val_c_category: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_completed_at: The operator to apply to the field completed_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. completed_at: The time this job completed execution against all devices. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_completed_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_completed_at: If op_completed_at is specified, the field named in this input will be compared to the value in completed_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_completed_at must be specified if op_completed_at is specified. :type val_f_completed_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_completed_at: If op_completed_at is specified, this value will be compared to the value in completed_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_completed_at must be specified if op_completed_at is specified. :type val_c_completed_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_config_template_id: The operator to apply to the field config_template_id. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. config_template_id: The internal identifier for the config template. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_config_template_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_config_template_id: If op_config_template_id is specified, the field named in this input will be compared to the value in config_template_id using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_config_template_id must be specified if op_config_template_id is specified. :type val_f_config_template_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_config_template_id: If op_config_template_id is specified, this value will be compared to the value in config_template_id using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_config_template_id must be specified if op_config_template_id is specified. :type val_c_config_template_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_config_template_text: The operator to apply to the field config_template_text. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. config_template_text: The content of the config template. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_config_template_text: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_config_template_text: If op_config_template_text is specified, the field named in this input will be compared to the value in config_template_text using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_config_template_text must be specified if op_config_template_text is specified. :type val_f_config_template_text: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_config_template_text: If op_config_template_text is specified, this value will be compared to the value in config_template_text using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_config_template_text must be specified if op_config_template_text is specified. :type val_c_config_template_text: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_created_at: The operator to apply to the field created_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. created_at: The time when the job was created. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_created_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_created_at: If op_created_at is specified, the field named in this input will be compared to the value in created_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_created_at must be specified if op_created_at is specified. :type val_f_created_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_created_at: If op_created_at is specified, this value will be compared to the value in created_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_created_at must be specified if op_created_at is specified. :type val_c_created_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_created_by: The operator to apply to the field created_by. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. created_by: The user that created the job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_created_by: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_created_by: If op_created_by is specified, the field named in this input will be compared to the value in created_by using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_created_by must be specified if op_created_by is specified. :type val_f_created_by: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_created_by: If op_created_by is specified, this value will be compared to the value in created_by using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_created_by must be specified if op_created_by is specified. :type val_c_created_by: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_credential_source: The operator to apply to the field credential_source. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. credential_source: The source of a device credential. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_credential_source: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_credential_source: If op_credential_source is specified, the field named in this input will be compared to the value in credential_source using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_credential_source must be specified if op_credential_source is specified. :type val_f_credential_source: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_credential_source: If op_credential_source is specified, this value will be compared to the value in credential_source using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_credential_source must be specified if op_credential_source is specified. :type val_c_credential_source: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_description: The operator to apply to the field description. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. description: The description of the job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_description: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_description: If op_description is specified, the field named in this input will be compared to the value in description using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_description must be specified if op_description is specified. :type val_f_description: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_description: If op_description is specified, this value will be compared to the value in description using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_description must be specified if op_description is specified. :type val_c_description: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_id: The operator to apply to the field id. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. id: The internal NetMRI identifier for this job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_id: If op_id is specified, the field named in this input will be compared to the value in id using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_id must be specified if op_id is specified. :type val_f_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_id: If op_id is specified, this value will be compared to the value in id using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_id must be specified if op_id is specified. :type val_c_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_input_data: The operator to apply to the field input_data. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. input_data: The input data for the job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_input_data: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_input_data: If op_input_data is specified, the field named in this input will be compared to the value in input_data using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_input_data must be specified if op_input_data is specified. :type val_f_input_data: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_input_data: If op_input_data is specified, this value will be compared to the value in input_data using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_input_data must be specified if op_input_data is specified. :type val_c_input_data: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_job_specification_id: The operator to apply to the field job_specification_id. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. job_specification_id: The internal identifier for the associated Job Specification. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_job_specification_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_job_specification_id: If op_job_specification_id is specified, the field named in this input will be compared to the value in job_specification_id using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_job_specification_id must be specified if op_job_specification_id is specified. :type val_f_job_specification_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_job_specification_id: If op_job_specification_id is specified, this value will be compared to the value in job_specification_id using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_job_specification_id must be specified if op_job_specification_id is specified. :type val_c_job_specification_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_job_type: The operator to apply to the field job_type. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. job_type: The type of job. This can be Scheduled, Ad Hoc, or Run Now. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_job_type: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_job_type: If op_job_type is specified, the field named in this input will be compared to the value in job_type using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_job_type must be specified if op_job_type is specified. :type val_f_job_type: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_job_type: If op_job_type is specified, this value will be compared to the value in job_type using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_job_type must be specified if op_job_type is specified. :type val_c_job_type: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_last_status_at: The operator to apply to the field last_status_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. last_status_at: The time when the job status was updated. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_last_status_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_last_status_at: If op_last_status_at is specified, the field named in this input will be compared to the value in last_status_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_last_status_at must be specified if op_last_status_at is specified. :type val_f_last_status_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_last_status_at: If op_last_status_at is specified, this value will be compared to the value in last_status_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_last_status_at must be specified if op_last_status_at is specified. :type val_c_last_status_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_name: The operator to apply to the field name. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. name: The name of this job, as entered when the job specification was defined, or when the job was executed from a script. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_name: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_name: If op_name is specified, the field named in this input will be compared to the value in name using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_name must be specified if op_name is specified. :type val_f_name: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_name: If op_name is specified, this value will be compared to the value in name using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_name must be specified if op_name is specified. :type val_c_name: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_provision_data: The operator to apply to the field provision_data. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. provision_data: Internal data for provisioning jobs. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_provision_data: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_provision_data: If op_provision_data is specified, the field named in this input will be compared to the value in provision_data using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_provision_data must be specified if op_provision_data is specified. :type val_f_provision_data: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_provision_data: If op_provision_data is specified, this value will be compared to the value in provision_data using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_provision_data must be specified if op_provision_data is specified. :type val_c_provision_data: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_run_as: The operator to apply to the field run_as. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. run_as: The user that run the job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_run_as: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_run_as: If op_run_as is specified, the field named in this input will be compared to the value in run_as using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_run_as must be specified if op_run_as is specified. :type val_f_run_as: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_run_as: If op_run_as is specified, this value will be compared to the value in run_as using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_run_as must be specified if op_run_as is specified. :type val_c_run_as: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_script_id: The operator to apply to the field script_id. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. script_id: The internal identifier for the script. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_script_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_script_id: If op_script_id is specified, the field named in this input will be compared to the value in script_id using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_script_id must be specified if op_script_id is specified. :type val_f_script_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_script_id: If op_script_id is specified, this value will be compared to the value in script_id using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_script_id must be specified if op_script_id is specified. :type val_c_script_id: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_script_language: The operator to apply to the field script_language. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. script_language: The language of the script. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_script_language: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_script_language: If op_script_language is specified, the field named in this input will be compared to the value in script_language using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_script_language must be specified if op_script_language is specified. :type val_f_script_language: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_script_language: If op_script_language is specified, this value will be compared to the value in script_language using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_script_language must be specified if op_script_language is specified. :type val_c_script_language: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_script_text: The operator to apply to the field script_text. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. script_text: The content of the script. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_script_text: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_script_text: If op_script_text is specified, the field named in this input will be compared to the value in script_text using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_script_text must be specified if op_script_text is specified. :type val_f_script_text: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_script_text: If op_script_text is specified, this value will be compared to the value in script_text using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_script_text must be specified if op_script_text is specified. :type val_c_script_text: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_started_at: The operator to apply to the field started_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. started_at: The time this job started execution. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_started_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_started_at: If op_started_at is specified, the field named in this input will be compared to the value in started_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_started_at must be specified if op_started_at is specified. :type val_f_started_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_started_at: If op_started_at is specified, this value will be compared to the value in started_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_started_at must be specified if op_started_at is specified. :type val_c_started_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_status: The operator to apply to the field status. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. status: The current status of this job, based upon all of the statuses for each device in the job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_status: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_status: If op_status is specified, the field named in this input will be compared to the value in status using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_status must be specified if op_status is specified. :type val_f_status: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_status: If op_status is specified, this value will be compared to the value in status using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_status must be specified if op_status is specified. :type val_c_status: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_taskflow_revert: The operator to apply to the field taskflow_revert. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. taskflow_revert: The internal workflow name for job reversion using the script. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_taskflow_revert: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_taskflow_revert: If op_taskflow_revert is specified, the field named in this input will be compared to the value in taskflow_revert using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_taskflow_revert must be specified if op_taskflow_revert is specified. :type val_f_taskflow_revert: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_taskflow_revert: If op_taskflow_revert is specified, this value will be compared to the value in taskflow_revert using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_taskflow_revert must be specified if op_taskflow_revert is specified. :type val_c_taskflow_revert: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_transactional_ind: The operator to apply to the field transactional_ind. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. transactional_ind: Flag indicating if devices should be reserved during execution of this job. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_transactional_ind: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_transactional_ind: If op_transactional_ind is specified, the field named in this input will be compared to the value in transactional_ind using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_transactional_ind must be specified if op_transactional_ind is specified. :type val_f_transactional_ind: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_transactional_ind: If op_transactional_ind is specified, this value will be compared to the value in transactional_ind using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_transactional_ind must be specified if op_transactional_ind is specified. :type val_c_transactional_ind: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param op_updated_at: The operator to apply to the field updated_at. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. updated_at: The time when the job was updated. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values. :type op_updated_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_f_updated_at: If op_updated_at is specified, the field named in this input will be compared to the value in updated_at using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_updated_at must be specified if op_updated_at is specified. :type val_f_updated_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param val_c_updated_at: If op_updated_at is specified, this value will be compared to the value in updated_at using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_updated_at must be specified if op_updated_at is specified. :type val_c_updated_at: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param methods: A list of job methods. The listed methods will be called on each job returned and included in the output. Available methods are: meta. :type methods: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: meta. :type include: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 0 :param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information. :type start: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 1000 :param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000. :type limit: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` id :param sort: The data field(s) to use for sorting the output. Default is id. Valid values are id, name, category, job_type, taskflow_revert, script_id, config_template_id, description, created_by, run_as, credential_source, approved_by, approval_note, provision_data, input_data, transactional_ind, status, last_status_at, started_at, completed_at, created_at, updated_at, approved_at, script_text, script_language, config_template_text, job_specification_id. :type sort: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` asc :param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'. :type dir: Array of String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param select: The list of attributes to return for each Job. Valid values are id, name, category, job_type, taskflow_revert, script_id, config_template_id, description, created_by, run_as, credential_source, approved_by, approval_note, provision_data, input_data, transactional_ind, status, last_status_at, started_at, completed_at, created_at, updated_at, approved_at, script_text, script_language, config_template_text, job_specification_id. If empty or omitted, all attributes will be returned. :type select: Array | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_field: The field name for NIOS GOTO that is used for locating a row position of records. :type goto_field: String | ``api version min:`` 2.8 | ``api version max:`` None | ``required:`` False | ``default:`` None :param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records. :type goto_value: String | ``api version min:`` 2.3 | ``api version max:`` None | ``required:`` False | ``default:`` None :param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering. :type xml_filter: String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return jobs: An array of the Job objects that match the specified input criteria. :rtype jobs: Array of Job """ return self.api_list_request(self._get_method_fullname("find"), kwargs) def script(self, **kwargs): """Downloads the script that ran on each device in a job. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` True | ``default:`` None :param id: The job id to download the script file for. :type id: Integer **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return script: The script file contents ran on each device in a job. It will be presented as type "application/octet-stream". :rtype script: String """ return self.api_mixed_request(self._get_method_fullname("script"), kwargs) def issues(self, **kwargs): """List any issues associated with the specified job. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` True | ``default:`` None :param JobID: The id of the job to list. :type JobID: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 0 :param start: The record number to return as the first record. :type start: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` 1000 :param limit: The maximum number of records to return. :type limit: Integer **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return issue_details: An array of the IssueDetail objects that match the specified input criteria. :rtype issue_details: Array of IssueDetail """ return self.api_list_request(self._get_method_fullname("issues"), kwargs) def job_files(self, **kwargs): """Lists/downloads common files for a job. If no filename is given, a list of files for the job will be returned. If a filename is passed, and it exists, it will be downloaded as type "application/octet-stream". **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` True | ``default:`` None :param id: The job id to list files for. :type id: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param filename: An optional filename to download. :type filename: String **Outputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :return filenames: An array of filenames that match the specified input criteria. :rtype filenames: Array of String """ return self.api_mixed_request(self._get_method_fullname("job_files"), kwargs) def job_archive(self, **kwargs): """Downloads zip archive of whole job or job process. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` True | ``default:`` None :param id: The job id to list files for. :type id: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` True | ``default:`` None :param started_at: The job started at date :type started_at: DateTime | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param process_id: The job process id to list files for. :type process_id: Integer **Outputs** """ return self.api_mixed_request(self._get_method_fullname("job_archive"), kwargs) def log_message(self, **kwargs): """Logs a message to custom log and session log **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param JobID: The id of the job. :type JobID: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param process_id: The id of the job process. :type process_id: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param severity: The severity of the message. :type severity: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param message: A message describing the results. :type message: String **Outputs** """ return self.api_request(self._get_method_fullname("log_message"), kwargs) def log_custom_message(self, **kwargs): """Logs a message to custom log **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param JobID: The id of the job. :type JobID: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param JobDetailID: The id of the individual device job. :type JobDetailID: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param severity: The severity of the message. :type severity: String | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param message: A message describing the results. :type message: String **Outputs** """ return self.api_request(self._get_method_fullname("log_custom_message"), kwargs) def cancel(self, **kwargs): """Cancel the execution of a job or a process **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param id: The id of the job to cancel. :type id: Integer | ``api version min:`` None | ``api version max:`` None | ``required:`` False | ``default:`` None :param process_id: The id of the process to cancel. :type process_id: Integer **Outputs** """ return self.api_request(self._get_method_fullname("cancel"), kwargs)
50.756283
767
0.599109
11,272
86,844
4.499911
0.030075
0.078071
0.050746
0.084222
0.952507
0.949569
0.943753
0.935394
0.902096
0.892889
0
0.004333
0.314345
86,844
1,710
768
50.785965
0.84751
0.813378
0
0
0
0
0.060934
0
0
0
0
0
0
1
0.44
false
0
0.04
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
9
ab0569454504d7ab51b8e4f15006fdf7404112c8
114
py
Python
builder/custom_observables/custom_observable_utils.py
ukncsc/edge-mod
95737e71945f4a8823f20a554e5efb9841183a26
[ "Unlicense" ]
2
2016-08-23T07:55:01.000Z
2016-09-27T15:13:32.000Z
builder/custom_observables/custom_observable_utils.py
ukncsc/edge-mod
95737e71945f4a8823f20a554e5efb9841183a26
[ "Unlicense" ]
null
null
null
builder/custom_observables/custom_observable_utils.py
ukncsc/edge-mod
95737e71945f4a8823f20a554e5efb9841183a26
[ "Unlicense" ]
2
2020-10-02T13:27:10.000Z
2021-04-11T09:45:16.000Z
from edge.tools import rgetattr def collapse_nested_values(value): return rgetattr(value, ['value'], value)
19
44
0.754386
15
114
5.6
0.733333
0.238095
0
0
0
0
0
0
0
0
0
0
0.140351
114
5
45
22.8
0.857143
0
0
0
0
0
0.04386
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
ab20f983ae3009b2e69ff4c3c0998c5fb3aca5e8
5,746
py
Python
src/sim/test_rocket.py
ezander/planets2
96d9f797290ff1ee90b20d1ed14e0fdbfea4842d
[ "MIT" ]
null
null
null
src/sim/test_rocket.py
ezander/planets2
96d9f797290ff1ee90b20d1ed14e0fdbfea4842d
[ "MIT" ]
null
null
null
src/sim/test_rocket.py
ezander/planets2
96d9f797290ff1ee90b20d1ed14e0fdbfea4842d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 1 13:10:30 2013 @author: ezander """ from rocket import SimpleRocket, MultistageRocket from odesim import OdeSimulator from numpy.testing import assert_approx_equal, assert_array_almost_equal, assert_almost_equal from numpy import array, log def test_simple_rocket(): odesim = OdeSimulator() rocket = SimpleRocket(1000.0, 10.0, 90.0, 1) odesim.add(rocket) odesim.integrate(1) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/99.0)])) assert_approx_equal(rocket.stage.state, array([89.0])) assert_approx_equal(rocket.stage.active, True) odesim.integrate(12) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/88.0)])) assert_approx_equal(rocket.stage.state, array([78.0])) assert_approx_equal(rocket.stage.active, True) odesim.integrate(89) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/11.0)]), significant=4) assert_approx_equal(rocket.stage.state, array([1.0])) assert_approx_equal(rocket.stage.active, True) odesim.integrate(90) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/10.0)]), significant=4) assert_approx_equal(rocket.stage.state+1, array([1.0])) odesim.integrate(99.1) assert_approx_equal(rocket.stage.active, True) assert_almost_equal(rocket.stage.state, array([0.0])) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/10.0)]), significant=4) def test_multi_rocket1(): odesim = OdeSimulator() rocket = MultistageRocket() rocket.add_stage(1000.0, 10.0, 90.0, 1) odesim.add(rocket) odesim.integrate(1) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/99.0)])) assert_approx_equal(rocket.stage.state, array([89.0])) assert_approx_equal(rocket.stage.active, True) odesim.integrate(12) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/88.0)])) assert_approx_equal(rocket.stage.state, array([78.0])) assert_approx_equal(rocket.stage.active, True) odesim.integrate(89) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/11.0)]), significant=5) assert_approx_equal(rocket.stage.state, array([1.0])) assert_approx_equal(rocket.stage.active, True) odesim.integrate(90) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/10.0)]), significant=5) assert_approx_equal(rocket.stage.state+1, array([1.0])) odesim.integrate(99.1) assert_approx_equal(rocket.stage.active, True) assert_almost_equal(rocket.stage.state, array([0.0])) assert_approx_equal(rocket.state, array([1000.0 * log(100.0/10.0)]), significant=5) def test_multi_rocket2(): odesim = OdeSimulator(integrator="dop853") rocket = MultistageRocket() rocket.add_stage(1000.0, 10.0, 90.0, 1) rocket.add_stage(1000.0, 2.0, 18.0, 1) odesim.add(rocket) assert_approx_equal(rocket.stages[0].state, array([90.0])) assert_approx_equal(rocket.stages[1].state, array([18.0])) odesim.integrate(1) assert_approx_equal(rocket.stages[0].state, array([89.0])) assert_approx_equal(rocket.stages[1].state, array([18.0])) assert_approx_equal(rocket.state, array([1000.0 * log(120.0/119.0)]), significant=5) assert_approx_equal(len(rocket.stages), 2) odesim.integrate(50) assert_approx_equal(rocket.stages[0].state, array([40.0])) assert_approx_equal(rocket.stages[1].state, array([18.0])) #assert_approx_equal(rocket.state, array([1000.0 * log(120.0/119.0)]), significant=5) assert_approx_equal(len(rocket.stages), 2) odesim.integrate(87) assert_approx_equal(rocket.stages[0].state, array([3.0])) assert_approx_equal(rocket.stages[1].state, array([18.0])) #assert_approx_equal(rocket.state, array([1000.0 * log(120.0/119.0)]), significant=5) assert_approx_equal(len(rocket.stages), 2) # note: multistage rockets do not work correctly because there is not # way to specify events for state changes in the ode solver suite in # scipy. The problem is that the solvers integrate over the state change, # later go back in time with the already changed state, which leads to # nonsense results. This can be fixed either by wrapping lsodar in scipy, # or with some trickery in the rocket code, I don't have time to do now. return odesim.integrate(87) print rocket.stages[0].state, rocket.stages[1].state print odesim.t, rocket.cur_stage, rocket.stage.state #odesim.integrate(87.952) #print rocket.stages[0].state, rocket.stages[1].state #print odesim.t, rocket.cur_stage, rocket.stage.state odesim.integrate(89) odesim.integrate(89) print odesim.t, rocket.cur_stage, rocket.stage.state odesim.integrate(89.9) print odesim.t, rocket.cur_stage, rocket.stage.state #print rocket.stage.state, rocket.stages[1].state odesim.integrate(90) print odesim.t, rocket.cur_stage, rocket.stage.state odesim.integrate(90.01) print odesim.t, rocket.cur_stage, rocket.stage.state print rocket.stage.state #assert_array_almost_equal(rocket.state, 1000.0 * log(120.0/30.0), significant=3) odesim.integrate(95) assert_approx_equal(len(rocket.stages), 1) assert_approx_equal(rocket.stage.state, array([13.0])) assert_array_almost_equal(rocket.state, 1000.0 * (log(120.0/30.0) + log(20.0/15.0)), significant=3) odesim.integrate(125) assert_approx_equal(rocket.stage.state, array([0.0])) assert_array_almost_equal(rocket.state, 1000.0 * (log(120.0/30.0) + log(20.0/2.0)), significant=3) if __name__ == "__main__": from numpy.testing import run_module_suite run_module_suite()
42.25
93
0.704838
876
5,746
4.471461
0.155251
0.134797
0.190962
0.229002
0.779423
0.751596
0.743171
0.726321
0.67807
0.677559
0
0.082922
0.154194
5,746
135
94
42.562963
0.723045
0.151062
0
0.663265
0
0
0.002915
0
0
0
0
0
0.469388
0
null
null
0
0.05102
null
null
0.071429
0
0
0
null
0
1
1
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
8
ab287e355885145a3e19e5af597099763b5a5961
4,979
py
Python
ext/qstm/OF-QSTM/ptms/qstm/data/old/ppopp-flawed/plot-ido.py
roghnin/Montage
40dbd6bb5a506545f01931336bf37b24cdb72a64
[ "MIT" ]
null
null
null
ext/qstm/OF-QSTM/ptms/qstm/data/old/ppopp-flawed/plot-ido.py
roghnin/Montage
40dbd6bb5a506545f01931336bf37b24cdb72a64
[ "MIT" ]
1
2020-11-16T02:57:28.000Z
2020-11-16T02:57:28.000Z
ext/qstm/OF-QSTM/ptms/qstm/data/old/ppopp-flawed/plot-ido.py
roghnin/Montage
40dbd6bb5a506545f01931336bf37b24cdb72a64
[ "MIT" ]
null
null
null
#!/usr/bin/python import matplotlib import csv matplotlib.use('Agg') # This lets it run without an X backend import matplotlib.pyplot as plt import numpy as np linestyles = ['--', '-.','-'] markerstyles = ['^', 'o', '.'] ########################## # Stack, List, Queue, Map ########################## qstm2k_x = [] qstm2k_y = [] qstm_x = [] qstm_y = [] mnem_x = [] mnem_y = [] font = {'family' : 'sans-serif', 'size' : 20} matplotlib.rc('font', **font) fname = "stack" scale = 100000 with open(fname+'.csv','r') as csvfile: plots = csv.reader(csvfile, delimiter=',') for row in plots: if row[0] == "qstm2k": qstm2k_x.append(int(row[1])) qstm2k_y.append(float(row[2])/scale) if row[0] == "qstm8": qstm_x.append(int(row[1])) qstm_y.append(float(row[2])/scale) if row[0] == "mnemosyne": mnem_x.append(int(row[1])) mnem_y.append(float(row[2])/scale) plt.plot(qstm2k_x, qstm2k_y, label='QSTM-2k', linestyle=linestyles[0], linewidth=2, marker=markerstyles[0], markersize=10) plt.plot(qstm_x, qstm_y, label='QSTM-8', linestyle=linestyles[1], linewidth=2, marker=markerstyles[1], markersize=10) plt.plot(mnem_x, mnem_y, label='Mnemosyne', linestyle=linestyles[2], linewidth=2, marker=markerstyles[2], markersize=10) plt.xlabel('Threads') plt.ylabel('Throughput (x$\mathregular{10^5}$ txn/sec)') plt.xlim(0,74) plt.ylim(0,700000/scale) plt.xticks((1, 4, 8, 16, 24, 32, 40, 48, 64, 72)) plt.legend(loc='upper right') plt.tight_layout() plt.savefig(fname+".png",dpi=300) plt.clf() plt.cla() plt.close() qstm2k_x = [] qstm2k_y = [] qstm_x = [] qstm_y = [] mnem_x = [] mnem_y = [] fname = "list" scale = 100000 with open(fname+'.csv','r') as csvfile: plots = csv.reader(csvfile, delimiter=',') for row in plots: if row[0] == "qstm2k": qstm2k_x.append(int(row[1])) qstm2k_y.append(float(row[2])/scale) if row[0] == "qstm128": qstm_x.append(int(row[1])) qstm_y.append(float(row[2])/scale) if row[0] == "mnemosyne": mnem_x.append(int(row[1])) mnem_y.append(float(row[2])/scale) plt.plot(qstm2k_x, qstm2k_y, label='QSTM-2k', linestyle=linestyles[0], linewidth=2, marker=markerstyles[0], markersize=10) plt.plot(qstm_x, qstm_y, label='QSTM-128', linestyle=linestyles[1], linewidth=2, marker=markerstyles[1], markersize=10) plt.plot(mnem_x, mnem_y, label='Mnemosyne', linestyle=linestyles[2], linewidth=2, marker=markerstyles[2], markersize=10) plt.xlabel('Threads') plt.ylabel('Throughput (x$\mathregular{10^5}$ txn/sec)') plt.xlim(0,74) plt.ylim(0,600000/scale) plt.xticks((1, 4, 8, 16, 24, 32, 40, 48, 64, 72)) plt.legend(loc='upper right') plt.tight_layout() plt.savefig(fname+".png",dpi=300) plt.clf() plt.cla() plt.close() qstm2k_x = [] qstm2k_y = [] qstm_x = [] qstm_y = [] mnem_x = [] mnem_y = [] fname = "queue" scale = 100000 with open(fname+'.csv','r') as csvfile: plots = csv.reader(csvfile, delimiter=',') for row in plots: if row[0] == "qstm2k": qstm2k_x.append(int(row[1])) qstm2k_y.append(float(row[2])/scale) if row[0] == "qstm32": qstm_x.append(int(row[1])) qstm_y.append(float(row[2])/scale) if row[0] == "mnemosyne": mnem_x.append(int(row[1])) mnem_y.append(float(row[2])/scale) plt.plot(qstm2k_x, qstm2k_y, label='QSTM-2k', linestyle=linestyles[0], linewidth=2, marker=markerstyles[0], markersize=10) plt.plot(qstm_x, qstm_y, label='QSTM-32', linestyle=linestyles[1], linewidth=2, marker=markerstyles[1], markersize=10) plt.plot(mnem_x, mnem_y, label='Mnemosyne', linestyle=linestyles[2], linewidth=2, marker=markerstyles[2], markersize=10) plt.xlabel('Threads') plt.ylabel('Throughput (x$\mathregular{10^5}$ txn/sec)') plt.xlim(0,74) plt.ylim(0,3000000/scale) plt.xticks((1, 4, 8, 16, 24, 32, 40, 48, 64, 72)) plt.legend(loc='upper right') plt.tight_layout() plt.savefig(fname+".png",dpi=300) plt.clf() plt.cla() plt.close() qstm2k_x = [] qstm2k_y = [] qstm_x = [] qstm_y = [] mnem_x = [] mnem_y = [] fname = "map" scale = 100000 with open(fname+'.csv','r') as csvfile: plots = csv.reader(csvfile, delimiter=',') for row in plots: if row[0] == "qstm2k": qstm2k_x.append(int(row[1])) qstm2k_y.append(float(row[2])/scale) if row[0] == "qstm128": qstm_x.append(int(row[1])) qstm_y.append(float(row[2])/scale) if row[0] == "mnemosyne": mnem_x.append(int(row[1])) mnem_y.append(float(row[2])/scale) plt.plot(qstm2k_x, qstm2k_y, label='QSTM-2k', linestyle=linestyles[0], linewidth=2, marker=markerstyles[0], markersize=10) plt.plot(qstm_x, qstm_y, label='QSTM-128', linestyle=linestyles[1], linewidth=2, marker=markerstyles[1], markersize=10) plt.plot(mnem_x, mnem_y, label='Mnemosyne', linestyle=linestyles[2], linewidth=2, marker=markerstyles[2], markersize=10) plt.xlabel('Threads') plt.ylabel('Throughput (x$\mathregular{10^5}$ txn/sec)') plt.xlim(0,74) plt.ylim(0,3500000/scale) plt.xticks((1, 4, 8, 16, 24, 32, 40, 48, 64, 72)) plt.legend(loc='upper right') plt.tight_layout() plt.savefig(fname+".png",dpi=300)
25.020101
122
0.664993
806
4,979
4.013648
0.136476
0.025966
0.022257
0.048223
0.91592
0.91592
0.91592
0.91592
0.91592
0.91592
0
0.069927
0.121109
4,979
198
123
25.146465
0.669333
0.015666
0
0.846154
0
0
0.105328
0.018174
0
0
0
0
0
1
0
false
0
0.027972
0
0.027972
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
db516b0d9bbd9d95e9706b80d9b84d72539e60c3
71,592
py
Python
octavia/tests/unit/controller/worker/v1/test_controller_worker.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/v1/test_controller_worker.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/v1/test_controller_worker.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # import mock from oslo_config import cfg from oslo_config import fixture as oslo_fixture from oslo_utils import uuidutils from octavia.common import base_taskflow from octavia.common import constants from octavia.common import data_models from octavia.controller.worker.v1 import controller_worker import octavia.tests.unit.base as base AMP_ID = uuidutils.generate_uuid() LB_ID = uuidutils.generate_uuid() POOL_ID = uuidutils.generate_uuid() HM_ID = uuidutils.generate_uuid() MEMBER_ID = uuidutils.generate_uuid() COMPUTE_ID = uuidutils.generate_uuid() L7POLICY_ID = uuidutils.generate_uuid() L7RULE_ID = uuidutils.generate_uuid() HEALTH_UPDATE_DICT = {'delay': 1, 'timeout': 2} LISTENER_UPDATE_DICT = {'name': 'test', 'description': 'test2'} MEMBER_UPDATE_DICT = {'weight': 1, 'ip_address': '10.0.0.0'} POOL_UPDATE_DICT = {'name': 'test', 'description': 'test2'} L7POLICY_UPDATE_DICT = {'action': constants.L7POLICY_ACTION_REJECT} L7RULE_UPDATE_DICT = { 'type': constants.L7RULE_TYPE_PATH, 'compare_type': constants.L7RULE_COMPARE_TYPE_STARTS_WITH, 'value': '/api'} _amphora_mock = mock.MagicMock() _flow_mock = mock.MagicMock() _health_mon_mock = mock.MagicMock() _vip_mock = mock.MagicMock() _listener_mock = mock.MagicMock() _load_balancer_mock = mock.MagicMock() _load_balancer_mock.listeners = [_listener_mock] _member_mock = mock.MagicMock() _pool_mock = mock.MagicMock() _l7policy_mock = mock.MagicMock() _l7rule_mock = mock.MagicMock() _create_map_flow_mock = mock.MagicMock() _amphora_mock.load_balancer_id = LB_ID _amphora_mock.id = AMP_ID _db_session = mock.MagicMock() CONF = cfg.CONF class TestException(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) @mock.patch('octavia.db.repositories.AmphoraRepository.get', return_value=_amphora_mock) @mock.patch('octavia.db.repositories.HealthMonitorRepository.get', return_value=_health_mon_mock) @mock.patch('octavia.db.repositories.LoadBalancerRepository.get', return_value=_load_balancer_mock) @mock.patch('octavia.db.repositories.ListenerRepository.get', return_value=_listener_mock) @mock.patch('octavia.db.repositories.L7PolicyRepository.get', return_value=_l7policy_mock) @mock.patch('octavia.db.repositories.L7RuleRepository.get', return_value=_l7rule_mock) @mock.patch('octavia.db.repositories.MemberRepository.get', return_value=_member_mock) @mock.patch('octavia.db.repositories.PoolRepository.get', return_value=_pool_mock) @mock.patch('octavia.common.base_taskflow.BaseTaskFlowEngine._taskflow_load', return_value=_flow_mock) @mock.patch('taskflow.listeners.logging.DynamicLoggingListener') @mock.patch('octavia.db.api.get_session', return_value=_db_session) class TestControllerWorker(base.TestCase): def setUp(self): self.conf = self.useFixture(oslo_fixture.Config(cfg.CONF)) _pool_mock.listeners = [_listener_mock] _pool_mock.load_balancer = _load_balancer_mock _health_mon_mock.pool = _pool_mock _load_balancer_mock.amphorae = _amphora_mock _load_balancer_mock.vip = _vip_mock _listener_mock.load_balancer = _load_balancer_mock _member_mock.pool = _pool_mock _l7policy_mock.listener = _listener_mock _l7rule_mock.l7policy = _l7policy_mock fetch_mock = mock.MagicMock(return_value=AMP_ID) _flow_mock.storage.fetch = fetch_mock _pool_mock.id = POOL_ID _health_mon_mock.pool_id = POOL_ID _health_mon_mock.id = HM_ID super(TestControllerWorker, self).setUp() @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.get_create_amphora_flow', return_value='TEST') def test_create_amphora(self, mock_get_create_amp_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() amp = cw.create_amphora() (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with( 'TEST', store={constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_SPARES_POOL_PRIORITY, constants.FLAVOR: None, constants.AVAILABILITY_ZONE: None})) _flow_mock.run.assert_called_once_with() _flow_mock.storage.fetch.assert_called_once_with('amphora') self.assertEqual(AMP_ID, amp) @mock.patch('octavia.db.repositories.AvailabilityZoneRepository.' 'get_availability_zone_metadata_dict') @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.get_create_amphora_flow', return_value='TEST') def test_create_amphora_with_az(self, mock_get_create_amp_flow, mock_get_az_metadata, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() az = 'fake_az' az_data = {constants.COMPUTE_ZONE: az} mock_get_az_metadata.return_value = az_data cw = controller_worker.ControllerWorker() amp = cw.create_amphora(availability_zone=az) mock_get_az_metadata.assert_called_once_with(_db_session, az) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with( 'TEST', store={constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_SPARES_POOL_PRIORITY, constants.FLAVOR: None, constants.AVAILABILITY_ZONE: az_data})) _flow_mock.run.assert_called_once_with() _flow_mock.storage.fetch.assert_called_once_with('amphora') self.assertEqual(AMP_ID, amp) @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.get_delete_amphora_flow', return_value='TEST') def test_delete_amphora(self, mock_get_delete_amp_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_amphora(AMP_ID) mock_amp_repo_get.assert_called_once_with( _db_session, id=AMP_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with('TEST', store={constants.AMPHORA: _amphora_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'health_monitor_flows.HealthMonitorFlows.' 'get_create_health_monitor_flow', return_value=_flow_mock) def test_create_health_monitor(self, mock_get_create_hm_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() mock_health_mon_repo_get.side_effect = [None, _health_mon_mock] cw = controller_worker.ControllerWorker() cw.create_health_monitor(_health_mon_mock) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.HEALTH_MON: _health_mon_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.POOL: _pool_mock})) _flow_mock.run.assert_called_once_with() self.assertEqual(2, mock_health_mon_repo_get.call_count) @mock.patch('octavia.controller.worker.v1.flows.' 'health_monitor_flows.HealthMonitorFlows.' 'get_delete_health_monitor_flow', return_value=_flow_mock) def test_delete_health_monitor(self, mock_get_delete_hm_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_health_monitor(HM_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.HEALTH_MON: _health_mon_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.POOL: _pool_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'health_monitor_flows.HealthMonitorFlows.' 'get_update_health_monitor_flow', return_value=_flow_mock) def test_update_health_monitor(self, mock_get_update_hm_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() _health_mon_mock.provisioning_status = constants.PENDING_UPDATE cw = controller_worker.ControllerWorker() cw.update_health_monitor(_health_mon_mock.id, HEALTH_UPDATE_DICT) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.HEALTH_MON: _health_mon_mock, constants.POOL: _pool_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.UPDATE_DICT: HEALTH_UPDATE_DICT})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'listener_flows.ListenerFlows.get_create_listener_flow', return_value=_flow_mock) def test_create_listener(self, mock_get_create_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() mock_listener_repo_get.side_effect = [None, _listener_mock] cw = controller_worker.ControllerWorker() cw.create_listener(LB_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.LOADBALANCER: _load_balancer_mock, constants.LISTENERS: _load_balancer_mock.listeners})) _flow_mock.run.assert_called_once_with() self.assertEqual(2, mock_listener_repo_get.call_count) @mock.patch('octavia.controller.worker.v1.flows.' 'listener_flows.ListenerFlows.get_delete_listener_flow', return_value=_flow_mock) def test_delete_listener(self, mock_get_delete_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_listener(LB_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with( _flow_mock, store={constants.LISTENER: _listener_mock, constants.LOADBALANCER: _load_balancer_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'listener_flows.ListenerFlows.get_update_listener_flow', return_value=_flow_mock) def test_update_listener(self, mock_get_update_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() _listener_mock.provisioning_status = constants.PENDING_UPDATE cw = controller_worker.ControllerWorker() cw.update_listener(LB_ID, LISTENER_UPDATE_DICT) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.LISTENER: _listener_mock, constants.LOADBALANCER: _load_balancer_mock, constants.UPDATE_DICT: LISTENER_UPDATE_DICT, constants.LISTENERS: [_listener_mock]})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows.get_create_load_balancer_flow', return_value=_flow_mock) def test_create_load_balancer_single( self, mock_get_create_load_balancer_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): # Test the code path with an SINGLE topology self.conf.config(group="controller_worker", loadbalancer_topology=constants.TOPOLOGY_SINGLE) _flow_mock.reset_mock() mock_taskflow_load.reset_mock() mock_eng = mock.Mock() mock_taskflow_load.return_value = mock_eng store = { constants.LOADBALANCER_ID: LB_ID, 'update_dict': {'topology': constants.TOPOLOGY_SINGLE}, constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_NORMAL_PRIORITY, constants.FLAVOR: None, constants.AVAILABILITY_ZONE: None, } lb_mock = mock.MagicMock() lb_mock.listeners = [] lb_mock.topology = constants.TOPOLOGY_SINGLE mock_lb_repo_get.side_effect = [None, None, None, lb_mock] cw = controller_worker.ControllerWorker() cw.create_load_balancer(LB_ID) mock_get_create_load_balancer_flow.assert_called_with( topology=constants.TOPOLOGY_SINGLE, listeners=[]) mock_taskflow_load.assert_called_with( mock_get_create_load_balancer_flow.return_value, store=store) mock_eng.run.assert_any_call() self.assertEqual(4, mock_lb_repo_get.call_count) @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows.get_create_load_balancer_flow', return_value=_flow_mock) def test_create_load_balancer_active_standby( self, mock_get_create_load_balancer_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): self.conf.config( group="controller_worker", loadbalancer_topology=constants.TOPOLOGY_ACTIVE_STANDBY) _flow_mock.reset_mock() mock_taskflow_load.reset_mock() mock_eng = mock.Mock() mock_taskflow_load.return_value = mock_eng store = { constants.LOADBALANCER_ID: LB_ID, 'update_dict': {'topology': constants.TOPOLOGY_ACTIVE_STANDBY}, constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_NORMAL_PRIORITY, constants.FLAVOR: None, constants.AVAILABILITY_ZONE: None, } setattr(mock_lb_repo_get.return_value, 'topology', constants.TOPOLOGY_ACTIVE_STANDBY) setattr(mock_lb_repo_get.return_value, 'listeners', []) cw = controller_worker.ControllerWorker() cw.create_load_balancer(LB_ID) mock_get_create_load_balancer_flow.assert_called_with( topology=constants.TOPOLOGY_ACTIVE_STANDBY, listeners=[]) mock_taskflow_load.assert_called_with( mock_get_create_load_balancer_flow.return_value, store=store) mock_eng.run.assert_any_call() @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows.get_create_load_balancer_flow') def test_create_load_balancer_full_graph_single( self, mock_get_create_load_balancer_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): self.conf.config( group="controller_worker", loadbalancer_topology=constants.TOPOLOGY_SINGLE) listeners = [data_models.Listener(id='listener1'), data_models.Listener(id='listener2')] lb = data_models.LoadBalancer(id=LB_ID, listeners=listeners, topology=constants.TOPOLOGY_SINGLE) mock_lb_repo_get.return_value = lb mock_eng = mock.Mock() mock_taskflow_load.return_value = mock_eng store = { constants.LOADBALANCER_ID: LB_ID, 'update_dict': {'topology': constants.TOPOLOGY_SINGLE}, constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_NORMAL_PRIORITY, constants.FLAVOR: None, constants.AVAILABILITY_ZONE: None, } cw = controller_worker.ControllerWorker() cw.create_load_balancer(LB_ID) # mock_create_single_topology.assert_called_once() # mock_create_active_standby_topology.assert_not_called() mock_get_create_load_balancer_flow.assert_called_with( topology=constants.TOPOLOGY_SINGLE, listeners=lb.listeners) mock_taskflow_load.assert_called_with( mock_get_create_load_balancer_flow.return_value, store=store) mock_eng.run.assert_any_call() @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows.get_create_load_balancer_flow') @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows._create_single_topology') @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows._create_active_standby_topology') def test_create_load_balancer_full_graph_active_standby( self, mock_create_active_standby_topology, mock_create_single_topology, mock_get_create_load_balancer_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): self.conf.config( group="controller_worker", loadbalancer_topology=constants.TOPOLOGY_ACTIVE_STANDBY) listeners = [data_models.Listener(id='listener1'), data_models.Listener(id='listener2')] lb = data_models.LoadBalancer( id=LB_ID, listeners=listeners, topology=constants.TOPOLOGY_ACTIVE_STANDBY) mock_lb_repo_get.return_value = lb mock_eng = mock.Mock() mock_taskflow_load.return_value = mock_eng store = { constants.LOADBALANCER_ID: LB_ID, 'update_dict': {'topology': constants.TOPOLOGY_ACTIVE_STANDBY}, constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_NORMAL_PRIORITY, constants.FLAVOR: None, constants.AVAILABILITY_ZONE: None, } cw = controller_worker.ControllerWorker() cw.create_load_balancer(LB_ID) mock_get_create_load_balancer_flow.assert_called_with( topology=constants.TOPOLOGY_ACTIVE_STANDBY, listeners=lb.listeners) mock_taskflow_load.assert_called_with( mock_get_create_load_balancer_flow.return_value, store=store) mock_eng.run.assert_any_call() @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows.get_delete_load_balancer_flow', return_value=(_flow_mock, {'test': 'test'})) def test_delete_load_balancer_without_cascade(self, mock_get_delete_lb_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_load_balancer(LB_ID, cascade=False) mock_lb_repo_get.assert_called_once_with( _db_session, id=LB_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.LOADBALANCER: _load_balancer_mock, constants.SERVER_GROUP_ID: _load_balancer_mock.server_group_id, 'test': 'test' } ) ) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows.get_cascade_delete_load_balancer_flow', return_value=(_flow_mock, {'test': 'test'})) def test_delete_load_balancer_with_cascade(self, mock_get_delete_lb_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_load_balancer(LB_ID, cascade=True) mock_lb_repo_get.assert_called_once_with( _db_session, id=LB_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.LOADBALANCER: _load_balancer_mock, constants.SERVER_GROUP_ID: _load_balancer_mock.server_group_id, 'test': 'test' } ) ) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.load_balancer_flows.' 'LoadBalancerFlows.get_update_load_balancer_flow', return_value=_flow_mock) @mock.patch('octavia.db.repositories.ListenerRepository.get_all', return_value=([_listener_mock], None)) def test_update_load_balancer(self, mock_listener_repo_get_all, mock_get_update_lb_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() _load_balancer_mock.provisioning_status = constants.PENDING_UPDATE cw = controller_worker.ControllerWorker() change = 'TEST2' cw.update_load_balancer(LB_ID, change) mock_lb_repo_get.assert_called_once_with( _db_session, id=LB_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.UPDATE_DICT: change, constants.LOADBALANCER: _load_balancer_mock, constants.LISTENERS: [_listener_mock]})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'member_flows.MemberFlows.get_create_member_flow', return_value=_flow_mock) def test_create_member(self, mock_get_create_member_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() mock_member_repo_get.side_effect = [None, _member_mock] cw = controller_worker.ControllerWorker() cw.create_member(MEMBER_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.MEMBER: _member_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.POOL: _pool_mock})) _flow_mock.run.assert_called_once_with() self.assertEqual(2, mock_member_repo_get.call_count) @mock.patch('octavia.controller.worker.v1.flows.' 'member_flows.MemberFlows.get_delete_member_flow', return_value=_flow_mock) def test_delete_member(self, mock_get_delete_member_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_member(MEMBER_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with( _flow_mock, store={constants.MEMBER: _member_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.POOL: _pool_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'member_flows.MemberFlows.get_update_member_flow', return_value=_flow_mock) def test_update_member(self, mock_get_update_member_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() _member_mock.provisioning_status = constants.PENDING_UPDATE cw = controller_worker.ControllerWorker() cw.update_member(MEMBER_ID, MEMBER_UPDATE_DICT) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.MEMBER: _member_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.POOL: _pool_mock, constants.UPDATE_DICT: MEMBER_UPDATE_DICT})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'member_flows.MemberFlows.get_batch_update_members_flow', return_value=_flow_mock) def test_batch_update_members(self, mock_get_batch_update_members_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.batch_update_members([9], [11], [MEMBER_UPDATE_DICT]) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={ constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.POOL: _pool_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'pool_flows.PoolFlows.get_create_pool_flow', return_value=_flow_mock) def test_create_pool(self, mock_get_create_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() mock_pool_repo_get.side_effect = [None, _pool_mock] cw = controller_worker.ControllerWorker() cw.create_pool(POOL_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.POOL: _pool_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock})) _flow_mock.run.assert_called_once_with() self.assertEqual(2, mock_pool_repo_get.call_count) @mock.patch('octavia.controller.worker.v1.flows.' 'pool_flows.PoolFlows.get_delete_pool_flow', return_value=_flow_mock) def test_delete_pool(self, mock_get_delete_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_pool(POOL_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.POOL: _pool_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'pool_flows.PoolFlows.get_update_pool_flow', return_value=_flow_mock) def test_update_pool(self, mock_get_update_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() _pool_mock.provisioning_status = constants.PENDING_UPDATE cw = controller_worker.ControllerWorker() cw.update_pool(POOL_ID, POOL_UPDATE_DICT) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.POOL: _pool_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.UPDATE_DICT: POOL_UPDATE_DICT})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'l7policy_flows.L7PolicyFlows.get_create_l7policy_flow', return_value=_flow_mock) def test_create_l7policy(self, mock_get_create_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() mock_l7policy_repo_get.side_effect = [None, _l7policy_mock] cw = controller_worker.ControllerWorker() cw.create_l7policy(L7POLICY_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.L7POLICY: _l7policy_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock})) _flow_mock.run.assert_called_once_with() self.assertEqual(2, mock_l7policy_repo_get.call_count) @mock.patch('octavia.controller.worker.v1.flows.' 'l7policy_flows.L7PolicyFlows.get_delete_l7policy_flow', return_value=_flow_mock) def test_delete_l7policy(self, mock_get_delete_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_l7policy(L7POLICY_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.L7POLICY: _l7policy_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'l7policy_flows.L7PolicyFlows.get_update_l7policy_flow', return_value=_flow_mock) def test_update_l7policy(self, mock_get_update_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() _l7policy_mock.provisioning_status = constants.PENDING_UPDATE cw = controller_worker.ControllerWorker() cw.update_l7policy(L7POLICY_ID, L7POLICY_UPDATE_DICT) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.L7POLICY: _l7policy_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.UPDATE_DICT: L7POLICY_UPDATE_DICT})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'l7rule_flows.L7RuleFlows.get_create_l7rule_flow', return_value=_flow_mock) def test_create_l7rule(self, mock_get_create_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() mock_l7rule_repo_get.side_effect = [None, _l7rule_mock] cw = controller_worker.ControllerWorker() cw.create_l7rule(L7RULE_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.L7RULE: _l7rule_mock, constants.L7POLICY: _l7policy_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock})) _flow_mock.run.assert_called_once_with() self.assertEqual(2, mock_l7rule_repo_get.call_count) @mock.patch('octavia.controller.worker.v1.flows.' 'l7rule_flows.L7RuleFlows.get_delete_l7rule_flow', return_value=_flow_mock) def test_delete_l7rule(self, mock_get_delete_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.delete_l7rule(L7RULE_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.L7RULE: _l7rule_mock, constants.L7POLICY: _l7policy_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.controller.worker.v1.flows.' 'l7rule_flows.L7RuleFlows.get_update_l7rule_flow', return_value=_flow_mock) def test_update_l7rule(self, mock_get_update_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() _l7rule_mock.provisioning_status = constants.PENDING_UPDATE cw = controller_worker.ControllerWorker() cw.update_l7rule(L7RULE_ID, L7RULE_UPDATE_DICT) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.L7RULE: _l7rule_mock, constants.L7POLICY: _l7policy_mock, constants.LISTENERS: [_listener_mock], constants.LOADBALANCER: _load_balancer_mock, constants.UPDATE_DICT: L7RULE_UPDATE_DICT})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.db.repositories.AvailabilityZoneRepository.' 'get_availability_zone_metadata_dict', return_value={}) @mock.patch('octavia.db.repositories.FlavorRepository.' 'get_flavor_metadata_dict', return_value={}) @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.get_failover_flow', return_value=_flow_mock) @mock.patch('octavia.db.repositories.LoadBalancerRepository.update') def test_failover_amphora(self, mock_update, mock_get_failover_flow, mock_get_flavor_meta, mock_get_az_meta, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.failover_amphora(AMP_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with( _flow_mock, store={constants.FAILED_AMPHORA: _amphora_mock, constants.LOADBALANCER_ID: _amphora_mock.load_balancer_id, constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_FAILOVER_PRIORITY, constants.FLAVOR: {}, constants.AVAILABILITY_ZONE: {} })) _flow_mock.run.assert_called_once_with() mock_update.assert_called_with(_db_session, LB_ID, provisioning_status=constants.ACTIVE) @mock.patch('octavia.controller.worker.v1.controller_worker.' 'ControllerWorker._perform_amphora_failover') def test_failover_amp_missing_amp(self, mock_perform_amp_failover, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): mock_amp_repo_get.return_value = None cw = controller_worker.ControllerWorker() cw.failover_amphora(AMP_ID) mock_perform_amp_failover.assert_not_called() @mock.patch('octavia.controller.worker.v1.controller_worker.' 'ControllerWorker._perform_amphora_failover') @mock.patch('octavia.db.repositories.LoadBalancerRepository.update') def test_failover_amp_flow_exception(self, mock_update, mock_perform_amp_failover, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): mock_perform_amp_failover.side_effect = TestException('boom') cw = controller_worker.ControllerWorker() self.assertRaises(TestException, cw.failover_amphora, AMP_ID) mock_update.assert_called_with(_db_session, LB_ID, provisioning_status=constants.ERROR) @mock.patch('octavia.controller.worker.v1.controller_worker.' 'ControllerWorker._perform_amphora_failover') @mock.patch('octavia.db.repositories.LoadBalancerRepository.update') def test_failover_amp_no_lb(self, mock_lb_update, mock_perform_amp_failover, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): amphora = mock.MagicMock() amphora.load_balancer_id = None mock_amp_repo_get.return_value = amphora cw = controller_worker.ControllerWorker() cw.failover_amphora(AMP_ID) mock_lb_update.assert_not_called() mock_perform_amp_failover.assert_called_once_with( amphora, constants.LB_CREATE_FAILOVER_PRIORITY) @mock.patch( 'octavia.db.repositories.AmphoraRepository.get_lb_for_amphora', return_value=None) @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.get_failover_flow', return_value=_flow_mock) def test_failover_spare_amphora(self, mock_get_failover_flow, mock_get_lb_for_amphora, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() # simulate a spare amphora (amphora not attached to any load_balancer) mock_amphora = mock.MagicMock() mock_amphora.id = AMP_ID mock_amphora.status = constants.AMPHORA_READY mock_amphora.load_balancer_id = None cw = controller_worker.ControllerWorker() cw._perform_amphora_failover(mock_amphora, constants.LB_CREATE_FAILOVER_PRIORITY) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with( _flow_mock, store={constants.FAILED_AMPHORA: mock_amphora, constants.LOADBALANCER_ID: None, constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_FAILOVER_PRIORITY, constants.FLAVOR: {}, constants.AVAILABILITY_ZONE: {} })) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.db.repositories.AmphoraHealthRepository.delete') def test_failover_deleted_amphora(self, mock_delete, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): mock_taskflow_load.reset_mock() mock_amphora = mock.MagicMock() mock_amphora.id = AMP_ID mock_amphora.status = constants.DELETED cw = controller_worker.ControllerWorker() cw._perform_amphora_failover(mock_amphora, 10) mock_delete.assert_called_with(_db_session, amphora_id=AMP_ID) mock_taskflow_load.assert_not_called() @mock.patch('octavia.controller.worker.v1.' 'controller_worker.ControllerWorker._perform_amphora_failover') @mock.patch('octavia.db.repositories.LoadBalancerRepository.update') def test_failover_loadbalancer(self, mock_update, mock_perform, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _amphora_mock2 = mock.MagicMock() _amphora_mock3 = mock.MagicMock() _amphora_mock3.status = constants.DELETED _load_balancer_mock.amphorae = [ _amphora_mock, _amphora_mock2, _amphora_mock3] cw = controller_worker.ControllerWorker() cw.failover_loadbalancer('123') mock_perform.assert_called_with( _amphora_mock2, constants.LB_CREATE_ADMIN_FAILOVER_PRIORITY) mock_update.assert_called_with(_db_session, '123', provisioning_status=constants.ACTIVE) mock_perform.reset _load_balancer_mock.amphorae = [ _amphora_mock, _amphora_mock2, _amphora_mock3] _amphora_mock2.role = constants.ROLE_BACKUP cw.failover_loadbalancer('123') # because mock2 gets failed over earlier now _amphora_mock # is the last one mock_perform.assert_called_with( _amphora_mock, constants.LB_CREATE_ADMIN_FAILOVER_PRIORITY) mock_update.assert_called_with(_db_session, '123', provisioning_status=constants.ACTIVE) mock_perform.reset mock_perform.side_effect = OverflowError() self.assertRaises(OverflowError, cw.failover_loadbalancer, 123) mock_update.assert_called_with(_db_session, 123, provisioning_status=constants.ERROR) @mock.patch('octavia.db.repositories.AvailabilityZoneRepository.' 'get_availability_zone_metadata_dict', return_value={}) @mock.patch('octavia.db.repositories.FlavorRepository.' 'get_flavor_metadata_dict', return_value={}) @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.get_failover_flow', return_value=_flow_mock) @mock.patch( 'octavia.db.repositories.AmphoraRepository.get_lb_for_amphora', return_value=_load_balancer_mock) @mock.patch('octavia.db.repositories.LoadBalancerRepository.update') def test_failover_amphora_anti_affinity(self, mock_update, mock_get_lb_for_amphora, mock_get_update_listener_flow, mock_get_flavor_meta, mock_get_az_meta, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): self.conf.config(group="nova", enable_anti_affinity=True) _flow_mock.reset_mock() _load_balancer_mock.server_group_id = "123" cw = controller_worker.ControllerWorker() cw.failover_amphora(AMP_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with( _flow_mock, store={constants.FAILED_AMPHORA: _amphora_mock, constants.LOADBALANCER_ID: _amphora_mock.load_balancer_id, constants.BUILD_TYPE_PRIORITY: constants.LB_CREATE_FAILOVER_PRIORITY, constants.SERVER_GROUP_ID: "123", constants.FLAVOR: {}, constants.AVAILABILITY_ZONE: {} })) _flow_mock.run.assert_called_once_with() mock_update.assert_called_with(_db_session, LB_ID, provisioning_status=constants.ACTIVE) @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.cert_rotate_amphora_flow', return_value=_flow_mock) def test_amphora_cert_rotation(self, mock_get_update_listener_flow, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() cw = controller_worker.ControllerWorker() cw.amphora_cert_rotation(AMP_ID) (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.AMPHORA: _amphora_mock, constants.AMPHORA_ID: _amphora_mock.id})) _flow_mock.run.assert_called_once_with() @mock.patch('octavia.db.repositories.FlavorRepository.' 'get_flavor_metadata_dict') @mock.patch('octavia.db.repositories.AmphoraRepository.get_lb_for_amphora') @mock.patch('octavia.controller.worker.v1.flows.' 'amphora_flows.AmphoraFlows.update_amphora_config_flow', return_value=_flow_mock) def test_update_amphora_agent_config(self, mock_update_flow, mock_get_lb_for_amp, mock_flavor_meta, mock_api_get_session, mock_dyn_log_listener, mock_taskflow_load, mock_pool_repo_get, mock_member_repo_get, mock_l7rule_repo_get, mock_l7policy_repo_get, mock_listener_repo_get, mock_lb_repo_get, mock_health_mon_repo_get, mock_amp_repo_get): _flow_mock.reset_mock() mock_lb = mock.MagicMock() mock_lb.flavor_id = 'vanilla' mock_get_lb_for_amp.return_value = mock_lb mock_flavor_meta.return_value = {'test': 'dict'} cw = controller_worker.ControllerWorker() cw.update_amphora_agent_config(AMP_ID) mock_amp_repo_get.assert_called_once_with(_db_session, id=AMP_ID) mock_get_lb_for_amp.assert_called_once_with(_db_session, AMP_ID) mock_flavor_meta.assert_called_once_with(_db_session, 'vanilla') (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.AMPHORA: _amphora_mock, constants.FLAVOR: {'test': 'dict'}})) _flow_mock.run.assert_called_once_with() # Test with no flavor _flow_mock.reset_mock() mock_amp_repo_get.reset_mock() mock_get_lb_for_amp.reset_mock() mock_flavor_meta.reset_mock() base_taskflow.BaseTaskFlowEngine._taskflow_load.reset_mock() mock_lb.flavor_id = None cw.update_amphora_agent_config(AMP_ID) mock_amp_repo_get.assert_called_once_with(_db_session, id=AMP_ID) mock_get_lb_for_amp.assert_called_once_with(_db_session, AMP_ID) mock_flavor_meta.assert_not_called() (base_taskflow.BaseTaskFlowEngine._taskflow_load. assert_called_once_with(_flow_mock, store={constants.AMPHORA: _amphora_mock, constants.FLAVOR: {}})) _flow_mock.run.assert_called_once_with()
45.687301
79
0.525701
6,483
71,592
5.244331
0.041802
0.070002
0.089297
0.044119
0.862937
0.837995
0.807024
0.783347
0.75714
0.753346
0
0.006526
0.419977
71,592
1,566
80
45.716475
0.812234
0.012348
0
0.759314
0
0
0.078559
0.072193
0
0
0
0
0.082712
1
0.031297
false
0
0.006706
0.000745
0.040238
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
db5529eddd2c184b9fb8b4532288ac0c2cbcab5b
38,170
py
Python
plugin.video.bcreborn/resources/lib/indexers/tmdb.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
1
2020-03-03T10:01:21.000Z
2020-03-03T10:01:21.000Z
plugin.video.bcreborn/resources/lib/indexers/tmdb.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
plugin.video.bcreborn/resources/lib/indexers/tmdb.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Bone Crusher Reborn ''' import re, datetime import json, requests, xbmc from resources.lib.modules import control from resources.lib.modules import client from resources.lib.modules import metacache from resources.lib.modules import log_utils # from resources.lib.modules import trakt class Movies: def __init__(self): self.list = [] self.meta = [] self.datetime = (datetime.datetime.utcnow() - datetime.timedelta(hours = 5)) self.lang = control.apiLanguage()['trakt'] self.tmdb_key = control.setting('tm.user') if self.tmdb_key == '' or self.tmdb_key is None: self.tmdb_key = '534af3567d39c2b265ee5251537e13c2' self.tmdb_link = 'http://api.themoviedb.org' self.tmdb_image = 'http://image.tmdb.org/t/p/original' # self.tmdb_poster = 'http://image.tmdb.org/t/p/w500' self.tmdb_poster = 'http://image.tmdb.org/t/p/w300' self.tmdb_fanart = 'http://image.tmdb.org/t/p/w1280' self.tmdb_info_link = 'http://api.themoviedb.org/3/movie/%s?api_key=%s&language=%s&append_to_response=credits,release_dates,external_ids' % ('%s', self.tmdb_key, self.lang) ### other "append_to_response" options alternative_titles,videos,images self.tmdb_art_link = 'http://api.themoviedb.org/3/movie/%s/images?api_key=%s&include_image_language=en,%s,null' % ('%s', self.tmdb_key, self.lang) def get_request(self, url): try: try: response = requests.get(url) except requests.exceptions.SSLError: response = requests.get(url, verify=False) except requests.exceptions.ConnectionError: control.notification(title='default', message=32024, icon='INFO') return if '200' in str(response): return json.loads(response.text) elif 'Retry-After' in response.headers: # API REQUESTS ARE BEING THROTTLED, INTRODUCE WAIT TIME throttleTime = response.headers['Retry-After'] log_utils.log2('TMDB Throttling Applied, Sleeping for %s seconds' % throttleTime, '') sleep(int(throttleTime) + 1) return self.get_request(url) else: log_utils.log2('Get request failed to TMDB URL: %s' % url, 'error') log_utils.log2('TMDB Response: %s' % response.text, 'error') return None def tmdb_list(self, url): next = url try: result = self.get_request(url % self.tmdb_key) items = result['results'] except: return # try: # page = int(result['page']) # total = int(result['total_pages']) # if page >= total: raise Exception() # url2 = '%s&page=%s' % (url.split('&page=', 1)[0], str(page+1)) # result = self.get_request(url2 % self.tmdb_key) # # result = client.request(url2 % self.tmdb_key) # # result = json.loads(result) # items += result['results'] # except: pass try: page = int(result['page']) total = int(result['total_pages']) if page >= total: raise Exception() if not 'page=' in url: raise Exception() next = '%s&page=%s' % (next.split('&page=', 1)[0], str(page+1)) next = next.encode('utf-8') except: next = '' for item in items: try: title = item['title'] title = client.replaceHTMLCodes(title) title = title.encode('utf-8') try: originaltitle = item['original_title'] originaltitle = client.replaceHTMLCodes(title) originaltitle = title.encode('utf-8') except: originaltitle = title year = item['release_date'] year = re.compile('(\d{4})').findall(year)[-1] year = year.encode('utf-8') tmdb = item['id'] tmdb = re.sub('[^0-9]', '', str(tmdb)) tmdb = tmdb.encode('utf-8') # try: # meta_chk = [] # meta_chk.append({'tmdb': tmdb, 'imdb': '0', 'tvdb': '0'}) # meta_chk = metacache.fetch(meta_chk, self.lang, self.tmdb_key) # log_utils.log('meta_chk = %s' % str(meta_chk), __name__, log_utils.LOGDEBUG) # for i in meta_chk: # if 'metacache' in i: # if i['metacache'] is True: # item = meta_chk # log_utils.log('metacache = %s' % i['metacache'], __name__, log_utils.LOGDEBUG) # raise Exception() poster = item['poster_path'] if poster == '' or poster is None: poster = '0' if not poster == '0': poster = '%s%s' % (self.tmdb_poster, poster) poster = poster.encode('utf-8') fanart = item['backdrop_path'] if fanart == '' or fanart is None: fanart = '0' if not fanart == '0': fanart = '%s%s' % (self.tmdb_image, fanart) fanart = fanart.encode('utf-8') premiered = item['release_date'] try: premiered = re.compile('(\d{4}-\d{2}-\d{2})').findall(premiered)[0] except: premiered = '0' premiered = premiered.encode('utf-8') try: rating = str(item['vote_average']).encode('utf-8') except: rating = '0' try: votes = str(format(int(item['vote_count']),',d')).encode('utf-8') except: votes = '0' plot = item['overview'] if plot == '' or plot is None: plot = '0' plot = client.replaceHTMLCodes(plot) plot = plot.encode('utf-8') try: tagline = item['tagline'] tagline = re.compile('[.!?][\s]{1,2}(?=[A-Z])').split(plot)[0] tagline = tagline.encode('utf-8') except: tagline = '0' ##--TMDb additional info url = self.tmdb_info_link % tmdb item = self.get_request(url) imdb = item['external_ids']['imdb_id'] if imdb == '' or imdb is None: imdb = '0' imdb = imdb.encode('utf-8') # studio = item['production_companies'] # try: studio = [x['name'] for x in studio][0] # except: studio = '0' # if studio == '' or studio is None: studio = '0' # studio = studio.encode('utf-8') try: genre = item['genres'] genre = [x['name'] for x in genre] genre = (' / '.join(genre)).encode('utf-8') except: genre = 'NA' try: duration = (str(item['runtime'])).encode('utf-8') except: duration = '0' mpaa = item['release_dates']['results'] mpaa = [i for i in mpaa if i['iso_3166_1'] == 'US'] try: mpaa = mpaa[0].get('release_dates')[-1].get('certification') if not mpaa: mpaa = mpaa[0].get('release_dates')[0].get('certification') if not mpaa: mpaa = mpaa[0].get('release_dates')[1].get('certification') mpaa = str(mpaa).encode('utf-8') except: mpaa = '0' director = item['credits']['crew'] try: director = [x['name'] for x in director if x['job'].encode('utf-8') == 'Director'] except: director = '0' if director == '' or director is None or director == []: director = '0' director = (' / '.join(director)).encode('utf-8') writer = item['credits']['crew'] try: writer = [x['name'] for x in writer if x['job'].encode('utf-8') in ['Writer', 'Screenplay']] except: writer = '0' try: writer = [x for n,x in enumerate(writer) if x not in writer[:n]] except: writer = '0' if writer == '' or writer is None or writer == []: writer = '0' writer = (' / '.join(writer)).encode('utf-8') cast = item['credits']['cast'] try: cast = [(x['name'].encode('utf-8'), x['character'].encode('utf-8')) for x in cast] except: cast = [] try: if not imdb is None or not imdb == '0': url = self.imdbinfo % imdb item = client.request(url, timeout='30') item = json.loads(item) plot2 = item['Plot'] plot2 = client.replaceHTMLCodes(plot2) plot2 = plot.encode('utf-8') if plot == '0' or plot == '' or plot is None: plot = plot2 rating2 = str(item['imdbRating']) rating2 = rating2.encode('utf-8') if rating == '0' or rating == '' or rating is None: rating = rating2 votes2 = str(item['imdbVotes']) votes2 = str(format(int(votes2),',d')) votes2 = votes2.encode('utf-8') if votes == '0' or votes == '' or votes is None: votes = votes2 except: pass item = {} item = {'content': 'movie', 'title': title, 'originaltitle': originaltitle, 'year': year, 'premiered': premiered, 'studio': '0', 'genre': genre, 'duration': duration, 'rating': rating, 'votes': votes, 'mpaa': mpaa, 'director': director, 'writer': writer, 'cast': cast, 'plot': plot, 'tagline': tagline, 'code': tmdb, 'imdb': imdb, 'tmdb': tmdb, 'tvdb': '0', 'poster': poster, 'poster2': '0', 'poster3': '0', 'banner': '0', 'fanart': fanart, 'fanart2': '0', 'fanart3': '0', 'clearlogo': '0', 'clearart': '0', 'landscape': '0', 'metacache': False, 'next': next} meta = {} meta = {'imdb': imdb, 'tmdb': tmdb, 'tvdb': '0', 'lang': self.lang, 'user': self.tmdb_key, 'item': item} # fanart_thread = threading.Thread from resources.lib.indexers import fanarttv extended_art = fanarttv.get_movie_art(tmdb) if not extended_art is None: item.update(extended_art) meta.update(item) self.list.append(item) self.meta.append(meta) metacache.insert(self.meta) # log_utils.log('self.list = %s' % str(self.list), __name__, log_utils.LOGDEBUG) except: pass return self.list def tmdb_collections_list(self, url): try: result = self.get_request(url) items = result['items'] except: return next = '' for item in items: try: media_type = item['media_type'] title = item['title'] if not media_type == 'movie': title = item['name'] title = client.replaceHTMLCodes(title) title = title.encode('utf-8') try: originaltitle = item['original_title'] originaltitle = client.replaceHTMLCodes(title) originaltitle = title.encode('utf-8') except: originaltitle = title year = item['release_date'] year = re.compile('(\d{4})').findall(year)[0] year = year.encode('utf-8') tmdb = item['id'] tmdb = re.sub('[^0-9]', '', str(tmdb)) tmdb = tmdb.encode('utf-8') poster = item['poster_path'] if poster == '' or poster is None: poster = '0' if not poster == '0': poster = '%s%s' % (self.tmdb_poster, poster) poster = poster.encode('utf-8') fanart = item['backdrop_path'] if fanart == '' or fanart is None: fanart = '0' if not fanart == '0': fanart = '%s%s' % (self.tmdb_image, fanart) fanart = fanart.encode('utf-8') premiered = item['release_date'] try: premiered = re.compile('(\d{4}-\d{2}-\d{2})').findall(premiered)[0] except: premiered = '0' premiered = premiered.encode('utf-8') try: rating = str(item['vote_average']).encode('utf-8') except: rating = '0' try: votes = str(format(int(item['vote_count']),',d')).encode('utf-8') except: votes = '0' plot = item['overview'] if plot == '' or plot is None: plot = '0' plot = client.replaceHTMLCodes(plot) plot = plot.encode('utf-8') try: tagline = item['tagline'] if tagline == '' or tagline == '0' or tagline is None: tagline = re.compile('[.!?][\s]{1,2}(?=[A-Z])').split(plot)[0] tagline = tagline.encode('utf-8') except: tagline = '0' ##--TMDb additional info url = self.tmdb_info_link % tmdb item = self.get_request(url) imdb = item['external_ids']['imdb_id'] if imdb == '' or imdb is None: imdb = '0' imdb = imdb.encode('utf-8') # studio = item['production_companies'] # try: studio = [x['name'] for x in studio][0] # except: studio = '0' # if studio == '' or studio is None: studio = '0' # studio = studio.encode('utf-8') genre = item['genres'] try: genre = [x['name'] for x in genre] except: genre = '0' genre = ' / '.join(genre) genre = genre.encode('utf-8') if not genre: genre = 'NA' try: duration = str(item['runtime']) except: duration = '0' if duration == '' or duration is None or duration == 'N/A': duration = '0' duration = duration.encode('utf-8') mpaa = item['release_dates']['results'] mpaa = [i for i in mpaa if i['iso_3166_1'] == 'US'] try: mpaa = mpaa[0].get('release_dates')[-1].get('certification') if not mpaa: mpaa = mpaa[0].get('release_dates')[0].get('certification') if not mpaa: mpaa = mpaa[0].get('release_dates')[1].get('certification') mpaa = str(mpaa).encode('utf-8') except: mpaa = '0' director = item['credits']['crew'] try: director = [x['name'] for x in director if x['job'].encode('utf-8') == 'Director'] except: director = '0' if director == '' or director is None or director == []: director = '0' director = ' / '.join(director) director = director.encode('utf-8') writer = item['credits']['crew'] try: writer = [x['name'] for x in writer if x['job'].encode('utf-8') in ['Writer', 'Screenplay']] except: writer = '0' try: writer = [x for n,x in enumerate(writer) if x not in writer[:n]] except: writer = '0' if writer == '' or writer is None or writer == []: writer = '0' writer = ' / '.join(writer) writer = writer.encode('utf-8') cast = item['credits']['cast'] try: cast = [(x['name'].encode('utf-8'), x['character'].encode('utf-8')) for x in cast] except: cast = [] try: if not imdb is None or not imdb == '0': url = self.imdbinfo % imdb item = client.request(url, timeout='30') item = json.loads(item) plot2 = item['Plot'] plot2 = client.replaceHTMLCodes(plot2) plot2 = plot.encode('utf-8') if plot == '0' or plot == '' or plot is None: plot = plot2 rating2 = str(item['imdbRating']) rating2 = rating2.encode('utf-8') if rating == '0' or rating == '' or rating is None: rating = rating2 votes2 = str(item['imdbVotes']) votes2 = str(format(int(votes2),',d')) votes2 = votes2.encode('utf-8') if votes == '0' or votes == '' or votes is None: votes = votes2 except: pass item = {} item = {'content': 'movie', 'title': title, 'originaltitle': originaltitle, 'year': year, 'premiered': premiered, 'studio': '0', 'genre': genre, 'duration': duration, 'rating': rating, 'votes': votes, 'mpaa': mpaa, 'director': director, 'writer': writer, 'cast': cast, 'plot': plot, 'tagline': tagline, 'code': tmdb, 'imdb': imdb, 'tmdb': tmdb, 'tvdb': '0', 'poster': poster, 'poster2': '0', 'poster3': '0', 'banner': '0', 'fanart': fanart, 'fanart2': '0', 'fanart3': '0', 'clearlogo': '0', 'clearart': '0', 'landscape': '0', 'metacache': False, 'next': next} meta = {} meta = {'imdb': imdb, 'tmdb': tmdb, 'tvdb': '0', 'lang': self.lang, 'user': self.tmdb_key, 'item': item} # fanart_thread = threading.Thread from resources.lib.indexers import fanarttv extended_art = fanarttv.get_movie_art(imdb) if not extended_art is None: item.update(extended_art) meta.update(item) self.list.append(item) self.meta.append(meta) metacache.insert(self.meta) except: pass return self.list def tmdb_art(self, tmdb): try: if self.tmdb_key == '': raise Exception() art3 = self.get_request(self.tmdb_art_link % tmdb) except: import traceback traceback.print_exc() return None url = (self.tmdb_art_link % tmdb) try: poster3 = art3['posters'] poster3 = [(x['width'], x['file_path']) for x in poster3] poster3 = [x[1] for x in poster3] poster3 = self.tmdb_poster + poster3[0] except: poster3 = '0' try: fanart3 = art3['backdrops'] fanart3 = [(x['width'], x['file_path']) for x in fanart3] fanart3 = [x[1] for x in fanart3] fanart3 = self.tmdb_fanart + fanart3[0] except: fanart3 = '0' extended_art = {'extended': True, 'poster3': poster3, 'fanart3': fanart3} return extended_art class TVshows: def __init__(self): self.list = [] self.meta = [] self.datetime = (datetime.datetime.utcnow() - datetime.timedelta(hours = 5)) self.lang = control.apiLanguage()['tvdb'] self.tmdb_key = control.setting('tm.user') if self.tmdb_key == '' or self.tmdb_key is None: self.tmdb_key = '534af3567d39c2b265ee5251537e13c2' self.tmdb_link = 'http://api.themoviedb.org' self.tmdb_image = 'http://image.tmdb.org/t/p/original' self.tmdb_poster = 'http://image.tmdb.org/t/p/w500' self.tmdb_fanart = 'http://image.tmdb.org/t/p/w1280' self.tmdb_info_link = 'http://api.themoviedb.org/3/tv/%s?api_key=%s&language=%s&append_to_response=credits,content_ratings,external_ids' % ('%s', self.tmdb_key, self.lang) ### other "append_to_response" options alternative_titles,videos,images self.tmdb_art_link = 'http://api.themoviedb.org/3/tv/%s/images?api_key=%s&include_image_language=en,%s,null' % ('%s', self.tmdb_key, self.lang) def get_request(self, url): try: try: response = requests.get(url) except requests.exceptions.SSLError: response = requests.get(url, verify=False) except requests.exceptions.ConnectionError: control.notification(title='default', message=32024, icon='INFO') return if '200' in str(response): return json.loads(response.text) elif 'Retry-After' in response.headers: # API REQUESTS ARE BEING THROTTLED, INTRODUCE WAIT TIME throttleTime = response.headers['Retry-After'] log_utils.log2('TMDB Throttling Applied, Sleeping for %s seconds' % throttleTime, '') sleep(int(throttleTime) + 1) return self.get_request(url) else: log_utils.log2('Get request failed to TMDB URL: %s' % url, 'error') log_utils.log2('TMDB Response: %s' % response.text, 'error') return None def tmdb_list(self, url): next = url try: result = self.get_request(url % self.tmdb_key) items = result['results'] except: return # try: # page = int(result['page']) # total = int(result['total_pages']) # if page >= total: raise Exception() # url2 = '%s&page=%s' % (url.split('&page=', 1)[0], str(page+1)) # result = self.get_request(url2 % self.tmdb_key) # # result = client.request(url2 % self.tmdb_key) # # result = json.loads(result) # items += result['results'] # except: pass try: page = int(result['page']) total = int(result['total_pages']) if page >= total: raise Exception() if not 'page=' in url: raise Exception() next = '%s&page=%s' % (next.split('&page=', 1)[0], str(page+1)) next = next.encode('utf-8') except: next = '' for item in items: try: title = item['name'] title = client.replaceHTMLCodes(title) title = title.encode('utf-8') year = item['first_air_date'] year = re.compile('(\d{4})').findall(year)[-1] year = year.encode('utf-8') tmdb = item['id'] tmdb = re.sub('[^0-9]', '', str(tmdb)) tmdb = tmdb.encode('utf-8') poster = item['poster_path'] if poster == '' or poster is None: poster = '0' if not poster == '0': poster = '%s%s' % (self.tmdb_poster, poster) poster = poster.encode('utf-8') fanart = item['backdrop_path'] if fanart == '' or fanart is None: fanart = '0' if not fanart == '0': fanart = '%s%s' % (self.tmdb_image, fanart) fanart = fanart.encode('utf-8') # bannner = item['banner_path'] # if banner == '' or banner is None: banner = '0' # if not banner == '0': banner = self.tmdb_image + banner # banner = banner.encode('utf-8') premiered = item['first_air_date'] try: premiered = re.compile('(\d{4}-\d{2}-\d{2})').findall(premiered)[0] except: premiered = '0' premiered = premiered.encode('utf-8') rating = str(item['vote_average']) if rating == '' or rating is None: rating = '0' rating = rating.encode('utf-8') votes = str(item['vote_count']) try: votes = str(format(int(votes),',d')) except: pass if votes == '' or votes is None: votes = '0' votes = votes.encode('utf-8') plot = item['overview'] if plot == '' or plot is None: plot = '0' plot = client.replaceHTMLCodes(plot) plot = plot.encode('utf-8') tagline = re.compile('[.!?][\s]{1,2}(?=[A-Z])').split(plot)[0] try: tagline = tagline.encode('utf-8') except: tagline = 'NA' ##--TMDb additional info url = self.tmdb_info_link % tmdb item = self.get_request(url) tvdb = item['external_ids']['tvdb_id'] if tvdb == '' or tvdb is None or tvdb == 'N/A' or tvdb == 'NA': tvdb = '0' tvdb = re.sub('[^0-9]', '', str(tvdb)) tvdb = tvdb.encode('utf-8') imdb = item['external_ids']['imdb_id'] if imdb == '' or imdb is None or imdb == 'N/A' or imdb == 'NA': imdb = '0' imdb = imdb.encode('utf-8') genre = item['genres'] try: genre = [x['name'] for x in genre] except: genre = '0' genre = ' / '.join(genre) genre = genre.encode('utf-8') if not genre: genre = 'NA' duration = str(item['episode_run_time'][0]) try: duration = duration.strip("[]") except: duration = '0' duration = duration.encode('utf-8') try: mpaa = [i['rating'] for i in item['content_ratings']['results'] if i['iso_3166_1'] == 'US'][0] except: try: mpaa = item['content_ratings'][0]['rating'] except: mpaa = 'NR' studio = item['networks'] try: studio = [x['name'] for x in studio][0] except: studio = '0' if studio == '' or studio is None: studio = '0' studio = studio.encode('utf-8') director = item['credits']['crew'] try: director = [x['name'] for x in director if x['job'].encode('utf-8') == 'Director'] except: director = '0' if director == '' or director is None or director == []: director = '0' director = ' / '.join(director) director = director.encode('utf-8') cast = item['credits']['cast'] try: cast = [(x['name'].encode('utf-8'), x['character'].encode('utf-8')) for x in cast] except: cast = [] # ##--IMDb additional info if not imdb == '0' or None: try: url = self.imdb_by_query % imdb item2 = client.request(url, timeout='30') item2 = json.loads(item2) except: Exception() try: mpaa2 = item2['Rated'] except: mpaa2 = 'NR' mpaa2 = mpaa.encode('utf-8') if mpaa == '0' or mpaa == 'NR' and not mpaa2 == 'NR': mpaa = mpaa2 try: writer = item2['Writer'] except: writer = 'NA' writer = writer.replace(', ', ' / ') writer = re.sub(r'\(.*?\)', '', writer) writer = ' '.join(writer.split()) writer = writer.encode('utf-8') item = {} item = {'content': 'tvshow', 'title': title, 'originaltitle': title, 'year': year, 'premiered': premiered, 'studio': studio, 'genre': genre, 'duration': duration, 'rating': rating, 'votes': votes, 'mpaa': mpaa, 'director': director, 'writer': writer, 'cast': cast, 'plot': plot, 'tagline': tagline, 'code': tmdb, 'imdb': imdb, 'tmdb': tmdb, 'tvdb': tvdb, 'poster': poster, 'poster2': '0', 'banner': '0', 'banner2': '0', 'fanart': fanart, 'fanart2': '0', 'clearlogo': '0', 'clearart': '0', 'landscape': '0', 'metacache': False, 'next': next} meta = {} meta = {'tmdb': tmdb, 'imdb': imdb, 'tvdb': tvdb, 'lang': self.lang, 'user': self.tmdb_key, 'item': item} # fanart_thread = threading.Thread from resources.lib.indexers import fanarttv extended_art = fanarttv.get_tvshow_art(tvdb) if not extended_art is None: item.update(extended_art) meta.update(item) self.list.append(item) self.meta.append(meta) metacache.insert(self.meta) except: pass return self.list def tmdb_collections_list(self, url): result = self.get_request(url) items = result['items'] next = '' for item in items: try: title = item['name'] title = client.replaceHTMLCodes(title) title = title.encode('utf-8') year = item['first_air_date'] year = re.compile('(\d{4})').findall(year)[-1] year = year.encode('utf-8') tmdb = item['id'] if tmdb == '' or tmdb is None: tmdb = '0' tmdb = re.sub('[^0-9]', '', str(tmdb)) tmdb = tmdb.encode('utf-8') imdb = '0' tvdb = '0' poster = item['poster_path'] if poster == '' or poster is None: poster = '0' else: poster = self.tmdb_poster + poster poster = poster.encode('utf-8') fanart = item['backdrop_path'] if fanart == '' or fanart is None: fanart = '0' if not fanart == '0': fanart = '%s%s' % (self.tmdb_image, fanart) fanart = fanart.encode('utf-8') premiered = item['first_air_date'] try: premiered = re.compile('(\d{4}-\d{2}-\d{2})').findall(premiered)[0] except: premiered = '0' premiered = premiered.encode('utf-8') rating = str(item['vote_average']) if rating == '' or rating is None: rating = '0' rating = rating.encode('utf-8') votes = str(item['vote_count']) try: votes = str(format(int(votes),',d')) except: pass if votes == '' or votes is None: votes = '0' votes = votes.encode('utf-8') plot = item['overview'] if plot == '' or plot is None: plot = '0' plot = client.replaceHTMLCodes(plot) plot = plot.encode('utf-8') try: tagline = item['tagline'] if tagline == '' or tagline == '0' or tagline is None: tagline = re.compile('[.!?][\s]{1,2}(?=[A-Z])').split(plot)[0] tagline = tagline.encode('utf-8') except: tagline = '0' ##--TMDb additional info url = self.tmdb_info_link % tmdb item = self.get_request(url) tvdb = item['external_ids']['tvdb_id'] if tvdb == '' or tvdb is None or tvdb == 'N/A' or tvdb == 'NA': tvdb = '0' tvdb = re.sub('[^0-9]', '', str(tvdb)) tvdb = tvdb.encode('utf-8') imdb = item['external_ids']['imdb_id'] if imdb == '' or imdb is None or imdb == 'N/A' or imdb == 'NA': imdb = '0' imdb = imdb.encode('utf-8') genre = item['genres'] try: genre = [x['name'] for x in genre] except: genre = '0' genre = ' / '.join(genre) genre = genre.encode('utf-8') if not genre: genre = 'NA' try: duration = str(item['runtime']) except: duration = '0' if duration == '' or duration is None or duration == 'N/A': duration = '0' duration = duration.encode('utf-8') try: mpaa = [i['rating'] for i in item['content_ratings']['results'] if i['iso_3166_1'] == 'US'][0] except: try: mpaa = item['content_ratings'][0]['rating'] except: mpaa = 'NR' # studio = item['production_companies'] # try: studio = [x['name'] for x in studio][0] # except: studio = '0' # if studio == '' or studio is None: studio = '0' # studio = studio.encode('utf-8') studio = item['networks'] try: studio = [x['name'] for x in studio][0] except: studio = '0' if studio == '' or studio is None: studio = '0' studio = studio.encode('utf-8') director = item['credits']['crew'] try: director = [x['name'] for x in director if x['job'].encode('utf-8') == 'Director'] except: director = '0' if director == '' or director is None or director == []: director = '0' director = ' / '.join(director) director = director.encode('utf-8') writer = item['credits']['crew'] try: writer = [x['name'] for x in writer if x['job'].encode('utf-8') in ['Writer', 'Screenplay']] except: writer = '0' try: writer = [x for n,x in enumerate(writer) if x not in writer[:n]] except: writer = '0' if writer == '' or writer is None or writer == []: writer = '0' writer = ' / '.join(writer) writer = writer.encode('utf-8') cast = item['credits']['cast'] try: cast = [(x['name'].encode('utf-8'), x['character'].encode('utf-8')) for x in cast] except: cast = [] try: if not imdb is None or not imdb == '0': url = self.imdbinfo % imdb item = client.request(url, timeout='30') item = json.loads(item) plot2 = item['Plot'] plot2 = client.replaceHTMLCodes(plot2) plot2 = plot.encode('utf-8') if plot == '0' or plot == '' or plot is None: plot = plot2 rating2 = str(item['imdbRating']) rating2 = rating2.encode('utf-8') if rating == '0' or rating == '' or rating is None: rating = rating2 votes2 = str(item['imdbVotes']) votes2 = str(format(int(votes2),',d')) votes2 = votes2.encode('utf-8') if votes == '0' or votes == '' or votes is None: votes = votes2 except: pass item = {} item = {'content': 'movie', 'title': title, 'originaltitle': title, 'year': year, 'premiered': premiered, 'studio': studio, 'genre': genre, 'duration': duration, 'rating': rating, 'votes': votes, 'mpaa': mpaa, 'director': director, 'writer': writer, 'cast': cast, 'plot': plot, 'tagline': tagline, 'code': tmdb, 'imdb': imdb, 'tmdb': tmdb, 'tvdb': '0', 'poster': poster, 'poster2': '0', 'poster3': '0', 'banner': '0', 'fanart': fanart, 'fanart2': '0', 'fanart3': '0', 'clearlogo': '0', 'clearart': '0', 'landscape': '0', 'metacache': False, 'next': next} meta = {} meta = {'imdb': imdb, 'tmdb': tmdb, 'tvdb': '0', 'lang': self.lang, 'user': self.tmdb_key, 'item': item} # fanart_thread = threading.Thread from resources.lib.indexers import fanarttv extended_art = fanarttv.get_tvshow_art(tvdb) if not extended_art is None: item.update(extended_art) meta.update(item) self.list.append(item) self.meta.append(meta) metacache.insert(self.meta) except: pass return self.list def tmdb_art(self, tmdb): try: if self.tmdb_key == '': raise Exception() art3 = self.get_request(self.tmdb_art_link % tmdb) except: return None try: poster3 = art3['posters'] poster3 = [(x['width'], x['file_path']) for x in poster3] poster3 = [x[1] for x in poster3] poster3 = self.tmdb_poster + poster3[0] except: poster3 = '0' try: fanart3 = art3['backdrops'] fanart3 = [(x['width'], x['file_path']) for x in fanart3] fanart3 = [x[1] for x in fanart3] fanart3 = self.tmdb_fanart + fanart3[0] except: fanart3 = '0' extended_art = {'extended': True, 'poster3': poster3, 'fanart3': fanart3} return extended_art
42.935883
216
0.465496
4,053
38,170
4.318283
0.063903
0.022855
0.056565
0.014627
0.928751
0.915553
0.914353
0.909039
0.903782
0.902411
0
0.024859
0.391905
38,170
889
217
42.935883
0.72918
0.071286
0
0.882979
0
0.006079
0.12751
0.004412
0
0
0
0
0
1
0.015198
false
0.013678
0.016717
0
0.06383
0.00152
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
9154c5872d28831d85306ef4f112834c08eec925
25,310
py
Python
montezuma-ICLR/trainer.py
root-master/subgoal-dicovery
3f0851f02cb7ebfbb66edde817c5b4e542baf58d
[ "MIT" ]
34
2018-10-25T22:14:17.000Z
2022-03-29T01:22:13.000Z
montezuma-ICLR/trainer.py
root-master/subgoal-dicovery
3f0851f02cb7ebfbb66edde817c5b4e542baf58d
[ "MIT" ]
null
null
null
montezuma-ICLR/trainer.py
root-master/subgoal-dicovery
3f0851f02cb7ebfbb66edde817c5b4e542baf58d
[ "MIT" ]
10
2018-11-05T23:37:04.000Z
2022-03-15T03:43:27.000Z
import random import numpy as np import copy import pickle from image_processing import * from memory import Experience, ExperienceMeta from Environment import Environment import time class IntrinsicMotivation(): def __init__(self, env=None, controller=None, experience_memory=None, image_processor=None, subgoal_discovery=None, **kwargs): self.env = env self.controller = controller self.experience_memory = experience_memory self.image_processor = image_processor self.subgoal_discovery = subgoal_discovery self.testing_env = Environment(task=self.env.task) # testing environment self.testing_scores = [] # record testing scores self.epsilon_testing = 0.05 self.max_steps_testing = 200 # parameters self.max_iter = 2500000 self.controller_target_update_freq = 10000 self.learning_freq = 4 self.learning_starts = 50000 self.save_model_freq = 50000 self.test_freq = 10000 self.subgoal_discovery_freq = 50000 self.epsilon_start = 1.0 self.epsilon_end = 0.1 self.epsilon = self.epsilon_start self.epsilon_annealing_steps = 1000000 self.repeat_noop_action = 0 self.save_results_freq = 100000 self.__dict__.update(kwargs) # updating input kwargs params # counters self.step = 0 self.game_episode = 0 self.intrinsic_motivation_learning_episode = 0 # learning variables self.episode_rewards = 0.0 # including step cost self.episode_scores = 0.0 # keeping records of the performance self.episode_rewards_list = [] self.episode_scores_list = [] print('init: Intrinsic Motivation Trainer --> OK') def train(self): print('-'*60) print('-'*60) print('PHASE I: Initial Intrinsic Motivation Learning and Subgoal Discovery') print('Purpose 1) Training Controller to reach random locations') print('Purpose 2) Discovering subgoals') print('-'*60) print('-'*60) # reset print('-'*60) print('game episode: ', self.game_episode) print('time step: ', self.step) S = self.env.reset() s = four_frames_to_4_84_84(S) man_mask = self.image_processor.get_man_mask(S) man_loc = get_man_xy_np_coordinate(man_mask) g_id, subgoal_mask = self.image_processor.sample_from_random_subgoal_set() # random g print('new subgoal assigned, g_id = ', g_id) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) g = single_channel_frame_to_1_84_84(subgoal_frame) for t in range(self.max_iter+1): self.step = t if t < self.learning_starts: a = self.env.action_space.sample() else: a = self.epsilon_greedy(s,g) old_lives = self.env.lives() SP, r, terminal, step_info = self.env.step(a) new_lives = self.env.lives() self.episode_scores += r sp = four_frames_to_4_84_84(SP) man_mask = self.image_processor.get_man_mask(SP) man_loc = get_man_xy_np_coordinate(man_mask) intrinsic_done_task = is_man_inside_subgoal_mask(man_mask, subgoal_mask) # outlier for the subgoal discovery if r > 0: print('############# found an outlier ###############') self.subgoal_discovery.push_outlier(man_loc) else: r = -0.1 # small negative reward if intrinsic_done_task: intrinsic_done = 1 # binary mask print('succesful intrinsic motivation learning to g_id = ', g_id) r_tilde = +1.0 self.intrinsic_motivation_learning_episode += 1 else: intrinsic_done = 0 r_tilde = -0.1 # small negetive reward to motivate agent to solve task if new_lives < old_lives: print('agent died, current lives = ', new_lives) r = -1.0 r_tilde = -1.0 # dying reward if r > 100: # it means solving room #1 which in our paper is equivalent to task comelition task_done = True done = 1 # binary mask for done print('The room #1 task is completed, needs to reset!') else: task_done = False done = 0 if terminal: print('agent terminated, end of episode') r = -10.0 self.episode_rewards += r # including negative rewards for death r = np.clip(r, -1.0, 1.0) experience = Experience(s, g, g_id, a, r, r_tilde, sp, intrinsic_done, done, man_loc) self.experience_memory.push(experience) s = copy.deepcopy(sp) self.anneal_epsilon() if intrinsic_done_task: # reset subgoal when intrinsic motivation task is accomplished g_id, subgoal_mask = self.image_processor.sample_from_random_subgoal_set() # random g print('new subgoal assigned, g_id = ', g_id) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) g = single_channel_frame_to_1_84_84(subgoal_frame) if (new_lives < old_lives) and not terminal and self.repeat_noop_action>0: for _ in range(self.repeat_noop_action): # do 20 nothing actions to ignore post-death S,_,_,_ = self.env.step(0) s = four_frames_to_4_84_84(S) if terminal or task_done: self.episode_scores_list.append(self.episode_scores) self.episode_rewards_list.append(self.episode_rewards) self.game_episode += 1 self.episode_rewards = 0.0 self.episode_scores = 0.0 print('-'*60) print('game episode: ', self.game_episode) print('time step: ', self.step) S = self.env.reset() # reset S s = four_frames_to_4_84_84(S) # get s man_mask = self.image_processor.get_man_mask(S) # man's mask man_loc = get_man_xy_np_coordinate(man_mask) # man's np location g_id, subgoal_mask = self.image_processor.sample_from_random_subgoal_set() # id and mask of random subgoal print('new subgoal assigned, g_id = ', g_id) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) #subgoal frame g = single_channel_frame_to_1_84_84(subgoal_frame) if (t>self.learning_starts) and (t % self.learning_freq == 0): self.controller.update_w() if (t>0) and (t % self.subgoal_discovery_freq==0): # find centroids X = self.experience_memory.get_man_positions() self.subgoal_discovery.feed_data(X) self.subgoal_discovery.find_kmeans_clusters() results_file_path = './results/subgoal_discovery_step_' + str(t) + '.pkl' self.subgoal_discovery.save_results(results_file_path=results_file_path) if (t>self.learning_starts) and (t % self.test_freq == 0): # test controller's performance self.test() if (t>0) and (t % self.save_model_freq == 0): # save controller model model_save_path = './models/controller_step_' + str(t) + '.model' self.controller.save_model(model_save_path) print('saving model, steps = ', t) if (t>0) and (t % self.save_results_freq == 0): results_file_path = './results/performance_results_' + str(t) + '.pkl' with open(results_file_path, 'wb') as f: pickle.dump([self.episode_scores_list,self.episode_rewards_list,self.testing_scores], f) if (t>self.learning_starts) and (t % self.controller_target_update_freq == 0): self.controller.update_target_params() def test(self): self.total_score_testing = 0 self.testing_task_done = False # subgoals_order_before_key = [0,1,4,5,3,2] # key = [6] # if random.random() < 0.5: # flip a coin # subgoals_order_after_key = [2,3,5,4,1,0,8] # else: # subgoals_order_after_key = [2,3,5,4,1,0,10] # subgoal_orders = subgoals_order_before_key + key + subgoals_order_after_key subgoals_order_before_key = [0,1,2,6,7,8,5,4,3,9] key = [9] subgoals_order_after_key = [3,4,5,8,7,6,2,1,0] if random.random() < 0.5: # flip a coin door = [10] else: door = [11] subgoal_orders = subgoals_order_before_key + key + subgoals_order_after_key + door print('testing the controller') self.S_test = self.testing_env.reset() for g_id in subgoal_orders: self.test_reaching_subgoal(g_id=g_id) if self.testing_task_done: print('testing is succesful!') break if not self.testing_task_done: print('testing is not succesful!') self.testing_scores.append(self.total_score_testing) print('test score: ', self.total_score_testing) def test_reaching_subgoal(self,g_id=0): S = self.S_test s = four_frames_to_4_84_84(S) man_mask = self.image_processor.get_man_mask(S) man_loc = get_man_xy_np_coordinate(man_mask) subgoal_mask = self.image_processor.random_subgoals_set[g_id] print('testing to reach subgoal, g_id = ', g_id) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) g = single_channel_frame_to_1_84_84(subgoal_frame) for t in range(self.max_steps_testing): a = self.epsilon_greedy_testing(s,g) old_lives = self.testing_env.lives() SP, r, terminal, step_info = self.testing_env.step(a) self.total_score_testing += r new_lives = self.testing_env.lives() self.episode_rewards += r sp = four_frames_to_4_84_84(SP) man_mask = self.image_processor.get_man_mask(SP) man_loc = get_man_xy_np_coordinate(man_mask) intrinsic_done_task = is_man_inside_subgoal_mask(man_mask, subgoal_mask) # outlier for the subgoal discovery if r > 0: print('############# found an outlier - test time ###############') self.subgoal_discovery.push_outlier(man_loc) self.episode_scores += r if new_lives < old_lives: print('agent died, current lives = ', new_lives) if r > 100: # it means solving room #1 which in our paper is equivalent to task comelition self.testing_task_done = True break else: self.testing_task_done = False if terminal: print('agent terminated, end of episode') self.S_test = self.testing_env.reset() break if intrinsic_done_task: print('succesful intrinsic motivation learning to g_id = ', g_id) self.S_test = SP break s = copy.deepcopy(sp) self.S_test = SP if (new_lives < old_lives) and not terminal and self.repeat_noop_action > 0: for _ in range(self.repeat_noop_action): # do 40 nothing actions to ignore post-death S,_,_,_ = self.env.step(0) self.S_test = S s = four_frames_to_4_84_84(S) def anneal_epsilon(self): if self.step < self.epsilon_annealing_steps: slop = (self.epsilon_start-self.epsilon_end)/self.epsilon_annealing_steps self.epsilon = self.epsilon_start - slop*self.step def epsilon_greedy(self,s,g): if random.random() < self.epsilon: return self.env.action_space.sample() else: return self.controller.get_best_action(s,g) def epsilon_greedy_testing(self,s,g): if random.random() < self.epsilon_testing: return self.env.action_space.sample() else: return self.controller.get_best_action(s,g) class MetaControllerController(): def __init__(self, env=None, controller=None, meta_controller = None, experience_memory=None, meta_controller_experience_memory=None, image_processor=None, subgoal_discovery=None, **kwargs): self.env = env self.controller = controller self.meta_controller = meta_controller self.experience_memory = experience_memory self.meta_controller_experience_memory = meta_controller_experience_memory self.image_processor = image_processor self.subgoal_discovery = subgoal_discovery self.G = image_processor.discovered_subgoals_set self.testing_env = Environment(task=self.env.task) # testing environment self.epsilon_testing = 0.05 self.epsilon_testing_meta = 0.1 self.max_steps_testing = 200 # parameters self.max_iter = 2500000 self.controller_target_update_freq = 10000 self.meta_controller_target_update_freq = 10000 self.learning_freq = 4 self.meta_learning_freq = 20 self.learning_starts = 50000 self.save_model_freq = 50000 self.test_freq = 10000 self.meta_controller_test_freq = 50000 self.subgoal_discovery_freq = 50000 self.epsilon_start = 1.0 self.epsilon_end = 0.1 self.epsilon = self.epsilon_start self.epsilon_annealing_steps = 1000000 self.repeat_noop_action = 0 self.save_results_freq = 100000 # counters self.step = 0 self.game_episode = 0 self.meta_episode = 0 self.intrinsic_motivation_learning_episode = 0 self.max_episode_steps = 1000 self.episode_steps = 0 # learning variables self.episode_rewards = 0.0 # meta controller episode return including step cost self.game_episode_rewards = 0.0 # game episode return including step cost self.episode_scores = 0.0 # meta controller episode score self.game_episode_scores = 0.0 # game episode score # keeping records of the performance self.episode_rewards_list = [] self.episode_scores_list = [] self.game_episode_scores_list = [] self.game_episode_rewards_list = [] self.train_assignment_subgoal_count = [0]*len(self.G) self.testing_assignment_subgoal_count = [0]*len(self.G) self.train_success_subgoal_count = [0]*len(self.G) self.testing_success_subgoal_count = [0]*len(self.G) self.meta_controller_testing_scores = [] self.testing_scores = [] # record testing scores for controller self.__dict__.update(kwargs) # updating input kwargs params print('init: Meta Controller - Controller Trainer --> OK') def train(self): print('-'*60) print('-'*60) print('PHASE II: Intrinsic Motivation Learning and Meta Learning') print('Purpose 1) Training Controller to reach discovered locations') print('Purpose 2) Training Meta Controller to choose the best subgoal') print('-'*60) print('-'*60) # reset print('-'*60) print('game episode: ', self.game_episode) print('time step: ', self.step) S = self.env.reset() s = four_frames_to_4_84_84(S) s0 = copy.deepcopy(s) man_mask = self.image_processor.get_man_mask(S) man_loc = get_man_xy_np_coordinate(man_mask) g_id, subgoal_mask = self.get_subgoal(s) g0 = copy.deepcopy(g_id) self.train_assignment_subgoal_count[g0]+=1 print('new subgoal assigned = ', self.image_processor.discovered_subgoal_meaning_set[g_id]) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) g = single_channel_frame_to_1_84_84(subgoal_frame) for t in range(self.max_iter+1): self.step = t self.episode_steps += 1 if t < self.learning_starts: a = self.env.action_space.sample() else: a = self.epsilon_greedy(s,g) old_lives = self.env.lives() SP, r, terminal, step_info = self.env.step(a) new_lives = self.env.lives() self.episode_scores += r self.game_episode_scores += r sp = four_frames_to_4_84_84(SP) man_mask = self.image_processor.get_man_mask(SP) man_loc = get_man_xy_np_coordinate(man_mask) intrinsic_done_task = is_man_inside_subgoal_mask(man_mask, subgoal_mask) # outlier for the subgoal discovery if r > 0: print('############# found an outlier ###############') self.subgoal_discovery.push_outlier(man_loc) else: r = -0.1 # small negative reward if intrinsic_done_task: intrinsic_done = 1 # binary mask print('succesful intrinsic motivation learning to ', self.image_processor.discovered_subgoal_meaning_set[g_id]) r_tilde = +1.0 self.intrinsic_motivation_learning_episode += 1 self.train_success_subgoal_count[g0] += 1 else: intrinsic_done = 0 r_tilde = -0.1 # small negetive reward to motivate agent to solve task if new_lives < old_lives: print('agent died, current lives = ', new_lives) r = -1.0 r_tilde = -1.0 # dying reward if r > 100: # it means solving room #1 which in our paper is equivalent to task comelition task_done = True done = 1 # binary mask for done print('The room #1 task is completed, needs to reset!') else: task_done = False done = 0 if terminal: print('agent terminated, end of episode') r = -10.0 self.episode_rewards += r # including negative rewards for death self.game_episode_rewards += r r = np.clip(r, -1.0, 1.0) experience = Experience(s, g, g_id, a, r, r_tilde, sp, intrinsic_done, done, man_loc) self.experience_memory.push(experience) s = copy.deepcopy(sp) self.anneal_epsilon() if intrinsic_done_task or (self.episode_steps>self.max_episode_steps): # reset subgoal when intrinsic motivation task is accomplished self.meta_episode += 1 s1 = copy.deepcopy(s) meta_controller_experience = ExperienceMeta(s0,g0,self.episode_rewards,s1,done) s0 = copy.deepcopy(s1) self.meta_controller_experience_memory.push(meta_controller_experience) self.episode_rewards_list.append(self.episode_rewards) self.episode_scores_list.append(self.episode_scores) self.episode_rewards = 0.0 self.episode_scores = 0.0 self.episode_steps = 0 self.meta_episode = 0 g_id, subgoal_mask = self.get_subgoal(s) # get g print('new subgoal assigned = ', self.image_processor.discovered_subgoal_meaning_set[g_id]) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) g = single_channel_frame_to_1_84_84(subgoal_frame) g0 = copy.deepcopy(g_id) self.train_assignment_subgoal_count[g0] += 1 if (new_lives < old_lives) and not terminal and self.repeat_noop_action>0: for _ in range(self.repeat_noop_action): # do 20 nothing actions to ignore post-death S,_,_,_ = self.env.step(0) s = four_frames_to_4_84_84(S) s0 = copy.deepcopy(s) if terminal or task_done: self.game_episode_scores_list.append(self.game_episode_scores) self.game_episode_rewards_list.append(self.game_episode_rewards) self.game_episode += 1 self.episode_rewards = 0.0 self.game_episode_rewards = 0.0 self.episode_scores = 0.0 self.game_episode_scores = 0.0 self.episode_steps = 0 print('-'*60) print('game episode: ', self.game_episode) print('time step: ', self.step) S = self.env.reset() # reset S s = four_frames_to_4_84_84(S) # get s s0 = copy.deepcopy(s) man_mask = self.image_processor.get_man_mask(S) # man's mask man_loc = get_man_xy_np_coordinate(man_mask) # man's np location g_id, subgoal_mask = self.get_subgoal(s) print('new subgoal assigned = ', self.image_processor.discovered_subgoal_meaning_set[g_id]) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) #subgoal frame g = single_channel_frame_to_1_84_84(subgoal_frame) g0 = copy.deepcopy(g_id) self.train_assignment_subgoal_count[g0] += 1 if (t>self.learning_starts) and (t % self.learning_freq == 0): self.controller.update_w() if (t>self.learning_starts) and (t % self.meta_learning_freq == 0): self.meta_controller.update_w() if (t>0) and (t % self.subgoal_discovery_freq==0): # find centroids X = self.experience_memory.get_man_positions() self.subgoal_discovery.feed_data(X) self.subgoal_discovery.find_kmeans_clusters() results_file_path = './results_phase_2/subgoal_discovery_step_' + str(t) + '.pkl' self.subgoal_discovery.save_results(results_file_path=results_file_path) if (t>self.learning_starts) and (t % self.test_freq == 0): # test controller's performance self.test_controller() if (t>self.learning_starts) and (t % self.meta_controller_test_freq == 0): self.test_meta_controller() if (t>0) and (t % self.save_model_freq == 0): # save controller model model_save_path = './models_phase_2/controller_step_' + str(t) + '.model' self.controller.save_model(model_save_path) model_save_path = './models_phase_2/meta_controller_step_' + str(t) + '.model' self.meta_controller.save_model(model_save_path) print('saving models, steps = ', t) if (t>0) and (t % self.save_results_freq == 0): results_file_path = './results_phase_2/performance_results_' + str(t) + '.pkl' with open(results_file_path, 'wb') as f: pickle.dump([self.episode_scores_list, self.episode_rewards_list, self.game_episode_scores_list, self.game_episode_rewards_list, self.train_assignment_subgoal_count, self.train_success_subgoal_count, self.testing_scores, self.meta_controller_testing_scores], f) if (t>self.learning_starts) and (t % self.controller_target_update_freq == 0): self.controller.update_target_params() if (t>self.learning_starts) and (t % self.meta_controller_target_update_freq == 0): self.meta_controller.update_target_params() def get_subgoal(self,s): if self.step < self.learning_starts: g_id, subgoal_mask = self.image_processor.sample_from_discovered_subgoal_set() else: g_id = self.epsilon_greedy_meta_controller(s) subgoal_mask = self.G[g_id] return g_id, subgoal_mask def test_meta_controller(self): self.max_total_score_testing = 0 print('testing the meta controller') meta_test_episode = 0 self.S_test = self.testing_env.reset() self.task_done = False self.intrinsic_done_task = False while(meta_test_episode<2): # let agent plays 10 episodes self.total_score_testing = 0 if self.task_done: print('meta controller testing is succesful!') break self.terminal = False while not self.terminal: S = self.S_test s = four_frames_to_4_84_84(S) g_id = self.epsilon_greedy_meta_controller_testing(s) self.intrinsic_done_task = False self.test_reaching_subgoal(g_id=g_id) if self.terminal or self.task_done: meta_test_episode += 1 break self.max_total_score_testing = max([self.max_total_score_testing,self.total_score_testing]) if not self.task_done: print('meta controller testing is not succesful!') self.meta_controller_testing_scores.append(self.max_total_score_testing) print('meta controller best test score: ', self.max_total_score_testing) def test_controller(self): self.total_score_testing = 0 self.testing_task_done = False if len(self.G)==6: subgoals_order_before_key = [0,2,1] key = [3] subgoals_order_after_key = [1,2,0] if random.random() < 0.5: # flip a coin door = [4] else: door = [5] if len(self.G)==12: subgoals_order_before_key = [0,1,2,6,7,8,5,4,3,9] key = [9] subgoals_order_after_key = [3,4,5,8,7,6,2,1,0] if random.random() < 0.5: # flip a coin door = [10] else: door = [11] subgoal_orders = subgoals_order_before_key + key + subgoals_order_after_key + door print('testing the controller') self.S_test = self.testing_env.reset() for g_id in subgoal_orders: self.test_reaching_subgoal(g_id=g_id) if self.testing_task_done: print('testing is succesful!') break if not self.testing_task_done: print('testing is not succesful!') self.testing_scores.append(self.total_score_testing) print('test score: ', self.total_score_testing) def test_reaching_subgoal(self,g_id=0): S = self.S_test s = four_frames_to_4_84_84(S) man_mask = self.image_processor.get_man_mask(S) man_loc = get_man_xy_np_coordinate(man_mask) subgoal_mask = self.G[g_id] print('testing to reach subgoal, g_id = ', g_id) subgoal_frame = self.image_processor.create_mask_frame(subgoal_mask) g = single_channel_frame_to_1_84_84(subgoal_frame) self.intrinsic_done_task = False self.terminal = False self.task_done = False for t in range(self.max_steps_testing): a = self.epsilon_greedy_testing(s,g) old_lives = self.testing_env.lives() SP, r, terminal, step_info = self.testing_env.step(a) self.total_score_testing += r new_lives = self.testing_env.lives() sp = four_frames_to_4_84_84(SP) man_mask = self.image_processor.get_man_mask(SP) man_loc = get_man_xy_np_coordinate(man_mask) intrinsic_done_task = is_man_inside_subgoal_mask(man_mask, subgoal_mask) self.intrinsic_done_task = intrinsic_done_task self.terminal = terminal # outlier for the subgoal discovery if r > 0: print('############# found an outlier - test time ###############') self.subgoal_discovery.push_outlier(man_loc) if new_lives < old_lives: print('agent died, current lives = ', new_lives) if r > 100: # it means solving room #1 which in our paper is equivalent to task comelition self.testing_task_done = True self.task_done = True break else: self.testing_task_done = False if terminal: print('agent terminated, end of episode') self.S_test = self.testing_env.reset() break if intrinsic_done_task: print('succesful intrinsic motivation learning to g_id = ', g_id) self.S_test = SP break s = copy.deepcopy(sp) self.S_test = SP if (new_lives < old_lives) and not terminal and self.repeat_noop_action > 0: for _ in range(self.repeat_noop_action): # do 40 nothing actions to ignore post-death S,_,_,_ = self.env.step(0) self.S_test = S s = four_frames_to_4_84_84(S) def anneal_epsilon(self): if self.step < self.epsilon_annealing_steps: slop = (self.epsilon_start-self.epsilon_end)/self.epsilon_annealing_steps self.epsilon = self.epsilon_start - slop*self.step def epsilon_greedy(self,s,g): if random.random() < self.epsilon: return self.env.action_space.sample() else: return self.controller.get_best_action(s,g) def epsilon_greedy_meta_controller(self,s): if random.random() < self.epsilon: return random.randint(0, len(self.G)-1) else: return self.meta_controller.get_best_option(s) def epsilon_greedy_meta_controller_testing(self,s): if random.random() < self.epsilon_testing_meta: return random.randint(0, len(self.G)-1) else: return self.meta_controller.get_best_option(s) def epsilon_greedy_testing(self,s,g): if random.random() < self.epsilon_testing: return self.env.action_space.sample() else: return self.controller.get_best_action(s,g)
35.698166
136
0.723192
3,874
25,310
4.423851
0.064533
0.008402
0.030459
0.011378
0.905357
0.863286
0.837262
0.813572
0.766601
0.751955
0
0.026534
0.172106
25,310
708
137
35.748588
0.791352
0.085816
0
0.811448
0
0
0.091584
0.010325
0
0
0
0
0
1
0.030303
false
0
0.013468
0
0.069024
0.114478
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
9173ee844388d14713e2a068c6fde081cb07e948
4,186
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projects-DS/Data-Structures/avl_tree/test_avl_tree.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projects-DS/Data-Structures/avl_tree/test_avl_tree.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projects-DS/Data-Structures/avl_tree/test_avl_tree.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
import unittest from avl_tree import AVLTree from avl_tree import Node class AVLTreeTests(unittest.TestCase): def setUp(self): self.tree = AVLTree() def test_update_height(self): self.assertEqual(self.tree.height, -1) self.tree.node = Node(5) self.tree.update_height() self.assertEqual(self.tree.height, 0) self.tree.node.left = AVLTree(Node(3)) self.tree.update_height() self.assertEqual(self.tree.node.left.height, 0) self.assertEqual(self.tree.height, 1) self.tree.node.right = AVLTree(Node(6)) self.tree.update_height() self.assertEqual(self.tree.height, 1) self.tree.node.right.node.right = AVLTree(Node(8)) self.tree.update_height() self.assertEqual(self.tree.height, 2) def test_left_rotation(self): self.tree.node = Node(5) self.tree.node.left = AVLTree(Node("x")) self.tree.node.right = AVLTree(Node(8)) self.tree.node.right.node.left = AVLTree(Node("c")) self.tree.node.right.node.right = AVLTree(Node(9)) self.tree.node.right.node.right.node.left = AVLTree(Node("y")) self.tree.node.right.node.right.node.right = AVLTree(Node("z")) self.tree.left_rotate() self.assertEqual(self.tree.node.key, 8) self.assertEqual(self.tree.node.left.node.key, 5) self.assertEqual(self.tree.node.right.node.key, 9) self.assertEqual(self.tree.node.left.node.left.node.key, "x") self.assertEqual(self.tree.node.left.node.right.node.key, "c") self.assertEqual(self.tree.node.right.node.left.node.key, "y") self.assertEqual(self.tree.node.right.node.right.node.key, "z") def test_right_rotation(self): self.tree.node = Node(5) self.tree.node.right = AVLTree(Node("x")) self.tree.node.left = AVLTree(Node(4)) self.tree.node.left.node.right = AVLTree(Node("c")) self.tree.node.left.node.left = AVLTree(Node(3)) self.tree.node.left.node.left.node.left = AVLTree(Node("y")) self.tree.node.left.node.left.node.right = AVLTree(Node("z")) self.tree.right_rotate() self.assertEqual(self.tree.node.key, 4) self.assertEqual(self.tree.node.left.node.key, 3) self.assertEqual(self.tree.node.right.node.key, 5) self.assertEqual(self.tree.node.left.node.left.node.key, "y") self.assertEqual(self.tree.node.left.node.right.node.key, "z") self.assertEqual(self.tree.node.right.node.left.node.key, "c") self.assertEqual(self.tree.node.right.node.right.node.key, "x") def test_rebalancing(self): self.tree.node = Node(5) self.tree.node.right = AVLTree(Node("x")) self.tree.node.left = AVLTree(Node(3)) self.tree.node.left.node.right = AVLTree(Node(4)) self.tree.node.left.node.left = AVLTree(Node("c")) self.tree.node.left.node.right.node.left = AVLTree(Node("y")) self.tree.node.left.node.right.node.right = AVLTree(Node("z")) self.tree.rebalance() self.assertEqual(self.tree.node.key, 4) self.assertEqual(self.tree.node.left.node.key, 3) self.assertEqual(self.tree.node.right.node.key, 5) self.assertEqual(self.tree.node.left.node.left.node.key, "c") self.assertEqual(self.tree.node.left.node.right.node.key, "y") self.assertEqual(self.tree.node.right.node.left.node.key, "z") self.assertEqual(self.tree.node.right.node.right.node.key, "x") def test_insertion(self): self.tree.insert(5) self.assertEqual(self.tree.node.key, 5) self.tree.insert(3) self.assertEqual(self.tree.node.left.node.key, 3) self.tree.insert(6) self.assertEqual(self.tree.node.right.node.key, 6) self.tree.insert(7) self.assertEqual(self.tree.node.right.node.right.node.key, 7) self.tree.insert(8) self.assertEqual(self.tree.node.right.node.key, 7) self.assertEqual(self.tree.node.right.node.left.node.key, 6) self.assertEqual(self.tree.node.right.node.right.node.key, 8) if __name__ == "__main__": unittest.main()
39.121495
71
0.645963
614
4,186
4.364821
0.070033
0.214925
0.241791
0.291791
0.885448
0.885075
0.851119
0.800373
0.652985
0.552985
0
0.011859
0.194219
4,186
106
72
39.490566
0.782686
0
0
0.27381
0
0
0.007645
0
0
0
0
0
0.404762
1
0.071429
false
0
0.035714
0
0.119048
0
0
0
0
null
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
8
9189c415fdace64e3a9db74f9aec3eda21fadff2
2,779
py
Python
src/FieldOperations/binFieldList2LatticeInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/FieldOperations/binFieldList2LatticeInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/FieldOperations/binFieldList2LatticeInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
text = """ //------------------------------------------------------------------------------ // Explicit instantiation. //------------------------------------------------------------------------------ #include "binFieldList2Lattice.cc" namespace Spheral { template std::vector<Dim< %(ndim)s >::Scalar> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::Scalar>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::Scalar>& fieldList, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); template std::vector<Dim< %(ndim)s >::Vector> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::Vector>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::Vector>& fieldList, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); template std::vector<Dim< %(ndim)s >::Tensor> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::Tensor>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::Tensor>& fieldList, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); template std::vector<Dim< %(ndim)s >::SymTensor> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::SymTensor>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::SymTensor>& fieldList, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); template std::vector<Dim< %(ndim)s >::Scalar> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::Scalar>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::Scalar>& fieldList, const TableKernel<Dim< %(ndim)s > >& W, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); template std::vector<Dim< %(ndim)s >::Vector> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::Vector>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::Vector>& fieldList, const TableKernel<Dim< %(ndim)s > >& W, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); template std::vector<Dim< %(ndim)s >::Tensor> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::Tensor>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::Tensor>& fieldList, const TableKernel<Dim< %(ndim)s > >& W, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); template std::vector<Dim< %(ndim)s >::SymTensor> binFieldList2Lattice<Dim< %(ndim)s >, Dim< %(ndim)s >::SymTensor>(const FieldList<Dim< %(ndim)s >, Dim< %(ndim)s >::SymTensor>& fieldList, const TableKernel<Dim< %(ndim)s > >& W, const Dim< %(ndim)s >::Vector& xmin, const Dim< %(ndim)s >::Vector& xmax, const std::vector<unsigned>& nsample); } """
132.333333
340
0.623246
368
2,779
4.706522
0.067935
0.242494
0.277136
0.177829
0.959584
0.959584
0.959584
0.959584
0.959584
0.959584
0
0.003606
0.101835
2,779
20
341
138.95
0.690304
0
0
0.125
0
0.5
0.994962
0.201871
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
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
12
91cd146c05105baf81a889441c10f110c4d3b95a
7,562
py
Python
tests/test_query_engine.py
awm33/restful-ben
deed5a304b717d42d64dc711c91452fffad9cf11
[ "MIT" ]
3
2018-08-12T16:33:02.000Z
2020-10-06T07:59:48.000Z
tests/test_query_engine.py
awm33/restful-ben
deed5a304b717d42d64dc711c91452fffad9cf11
[ "MIT" ]
null
null
null
tests/test_query_engine.py
awm33/restful-ben
deed5a304b717d42d64dc711c91452fffad9cf11
[ "MIT" ]
null
null
null
from app_fixtures import app from restful_ben.test_utils import json_call, login, dict_contains, iso_regex def test_equality(app): test_client = app.test_client() login(test_client) response = json_call(test_client.get, '/cats?pattern=Tabby') assert response.status_code == 200 assert response.json['count'] == 2 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 2 response = json_call(test_client.get, '/cats?pattern__ne=Tabby') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Wilhelmina' def test_greater_less_than(app): test_client = app.test_client() login(test_client) response = json_call(test_client.get, '/cats?pattern=Tabby&age__gt=2') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Ada' response = json_call(test_client.get, '/cats?pattern=Tabby&age__gte=2') assert response.status_code == 200 assert response.json['count'] == 2 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 2 response = json_call(test_client.get, '/cats?pattern=Tabby&age__lte=2') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Leo' response = json_call(test_client.get, '/cats?age__lt=3') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Leo' def test_string_search_operators(app): test_client = app.test_client() login(test_client) ## contains response = json_call(test_client.get, '/users?email__contains=houston') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['email'] == 'whouston@example.com' ## like response = json_call(test_client.get, '/users?email__like=%%houston%%') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['email'] == 'whouston@example.com' ## like is case sensitive response = json_call(test_client.get, '/cats?name__like=%%wilhelmina%%') assert response.status_code == 200 assert response.json['count'] == 0 assert response.json['page'] == 1 assert response.json['total_pages'] == 0 assert len(response.json['data']) == 0 ## notlike response = json_call(test_client.get, '/users?email__notlike=%%houston%%') assert response.status_code == 200 assert response.json['count'] == 3 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 3 ## ilike response = json_call(test_client.get, '/cats?name__ilike=%%wilhelmina%%') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Wilhelmina' ## notilike response = json_call(test_client.get, '/cats?name__notilike=%%wilhelmina%%') assert response.status_code == 200 assert response.json['count'] == 2 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 2 ## startswith response = json_call(test_client.get, '/cats?name__startswith=Wil') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Wilhelmina' ## endswith response = json_call(test_client.get, '/cats?name__endswith=da') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Ada' def test_in_operator(app): test_client = app.test_client() login(test_client) response = json_call(test_client.get, '/cats?name__in=Ada&name__in=Leo') assert response.status_code == 200 assert response.json['count'] == 2 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 2 response = json_call(test_client.get, '/cats?name__notin=Ada&name__notin=Leo') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Wilhelmina' def test_is_operator(app): test_client = app.test_client() login(test_client) ## setup response = json_call(test_client.post, '/cats', { 'name': 'Dr. Kitty McMoewMoew', 'pattern': 'Tabby' }, headers={'X-Requested-With': 'requests'}) assert response.status_code == 201 response = json_call(test_client.get, '/users/1') assert response.status_code == 200 user = response.json user['active'] = False response = json_call(test_client.put, '/users/1', user, headers={'X-Requested-With': 'requests'}) assert response.status_code == 200 ## is null response = json_call(test_client.get, '/cats?age__is=null') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['name'] == 'Dr. Kitty McMoewMoew' ## isnot null response = json_call(test_client.get, '/cats?age__isnot=null') assert response.status_code == 200 assert response.json['count'] == 3 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 3 ## is true response = json_call(test_client.get, '/users?active__is=true') assert response.status_code == 200 assert response.json['count'] == 3 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 3 ## is false response = json_call(test_client.get, '/users?active__is=false') assert response.status_code == 200 assert response.json['count'] == 1 assert response.json['page'] == 1 assert response.json['total_pages'] == 1 assert len(response.json['data']) == 1 assert response.json['data'][0]['email'] == 'amadonna@example.com'
37.251232
101
0.65882
1,008
7,562
4.780754
0.09127
0.288857
0.268935
0.17348
0.902469
0.885661
0.878191
0.871135
0.799336
0.7348
0
0.026875
0.17826
7,562
202
102
37.435644
0.748632
0.016001
0
0.74375
0
0
0.183437
0.065552
0
0
0
0
0.71875
1
0.03125
false
0
0.0125
0
0.04375
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
1
0
0
0
0
0
0
0
0
0
11
53477c80c02712d55bbbd1d01ca65502fbb9e2ab
20,554
py
Python
lib/dm.py
theThing92/dialogue_managment_demo
3e6eb6b034bf52b9f75388749273ac14689ba7d7
[ "MIT" ]
null
null
null
lib/dm.py
theThing92/dialogue_managment_demo
3e6eb6b034bf52b9f75388749273ac14689ba7d7
[ "MIT" ]
null
null
null
lib/dm.py
theThing92/dialogue_managment_demo
3e6eb6b034bf52b9f75388749273ac14689ba7d7
[ "MIT" ]
null
null
null
""" Module for dialog managment. """ from lib.nlu import NLU from lib.nlg import NLG from lib.training import Trainer class DM: def __init__(self, type="hard-coded"): if type in ("hard-coded", "statistical"): self.type = type else: raise ValueError("'type' must be one of 'hard-coded' or 'statistical'") self.stat_model = None if self.type == "statistical": self.stat_model = Trainer().load().model self.current_user_input = None self.current_user_int = None self._slots = {"pizza_quantity":None, "pizza_type":None, "pizza_size":None} # value range system action 1..14 # value range task-dependent & task-independant information 0..2 self._dialogue_registry ={'PREV_SYSTEM_ACTION': None, 'TypeOrder': 0, 'NumberPizzas': 0, 'TypesPizzas': 0, 'SizesPizzas': 0, 'TypesDoughs': 0, 'Drinks': 0, 'Acceptance': 0, 'Rejection': 0, 'NotUnderstood': 0, 'SYSTEM_ACTION': 1} self._nlu = NLU() self._nlg = NLG() def evaluate_turn(self): if self.type == "hard-coded": # initialize dm if self._dialogue_registry["PREV_SYSTEM_ACTION"] is None: self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int # update value dict if self.current_user_int == "order" and any(list(slots.values())): # update slots for k,v in slots.items(): if v is not None: self._slots[k] = v # update dialogue registry if k == "pizza_quantity": self._dialogue_registry["NumberPizzas"] = 1 elif k == "pizza_type": self._dialogue_registry["TypesPizzas"] = 1 elif k == "pizza_size": self._dialogue_registry["SizesPizzas"] = 1 self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # determine penultima system response, check if it gets accepted or rejected elif all(list(self._slots.values())) and\ self._dialogue_registry["NumberPizzas"] == 1 and \ self._dialogue_registry["TypesPizzas"] == 1 and \ self._dialogue_registry["SizesPizzas"] == 1 and \ self._dialogue_registry["SYSTEM_ACTION"] != 14: self._dialogue_registry["NotUnderstood"] == 0 if self._dialogue_registry["SYSTEM_ACTION"] == 3: self._dialogue_registry["SYSTEM_ACTION"] = 9 self._dialogue_registry["PREV_SYSTEM_ACTION"] = 3 elif self._dialogue_registry["SYSTEM_ACTION"] == 4: self._dialogue_registry["SYSTEM_ACTION"] = 10 self._dialogue_registry["PREV_SYSTEM_ACTION"] = 4 elif self._dialogue_registry["SYSTEM_ACTION"] == 5: self._dialogue_registry["SYSTEM_ACTION"] = 11 self._dialogue_registry["PREV_SYSTEM_ACTION"] = 5 elif self._dialogue_registry["SYSTEM_ACTION"] == 1: self._dialogue_registry["SYSTEM_ACTION"] = 9 self._dialogue_registry["PREV_SYSTEM_ACTION"] = 1 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int # user accepts order if self.current_user_int == "acceptance": self._dialogue_registry["Acceptance"] = 1 self._dialogue_registry["Rejection"] = 0 self._dialogue_registry["SYSTEM_ACTION"] = 14 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) return False # user rejects order elif self.current_user_int == "rejection": if self._dialogue_registry["SYSTEM_ACTION"] == 9: self._dialogue_registry["Acceptance"] = 0 self._dialogue_registry["Rejection"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 3 elif self._dialogue_registry["SYSTEM_ACTION"] == 10: self._dialogue_registry["Acceptance"] = 0 self._dialogue_registry["Rejection"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 4 elif self._dialogue_registry["SYSTEM_ACTION"] == 11: self._dialogue_registry["Acceptance"] = 0 self._dialogue_registry["Rejection"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 5 else: self._dialogue_registry["Acceptance"] = 0 self._dialogue_registry["Rejection"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 3 self._dialogue_registry["NumberPizzas"] = 0 self._dialogue_registry["TypesPizzas"] = 0 self._dialogue_registry["SizesPizzas"] = 0 self._slots = {"pizza_quantity": None, "pizza_type": None, "pizza_size": None} self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int # update value dict if user_int == "order" and any(list(slots.values())): # update slots for k, v in slots.items(): if v is not None: self._slots[k] = v # update dialogue registry if k == "pizza_quantity": self._dialogue_registry["NumberPizzas"] = 1 elif k == "pizza_type": self._dialogue_registry["TypesPizzas"] = 1 elif k == "pizza_size": self._dialogue_registry["SizesPizzas"] = 1 self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # all slots have been filled and accepted elif self._dialogue_registry["SYSTEM_ACTION"] == 14 and \ self._dialogue_registry["Acceptance"] == 1 and \ self._dialogue_registry["Rejection"] == 0 and \ self._dialogue_registry["NotUnderstood"] == 0: self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) return True # partially filled # +type, -size, -quantity elif self._dialogue_registry["TypesPizzas"] == 1 and \ self._dialogue_registry["SizesPizzas"] == 0 and \ self._dialogue_registry["NumberPizzas"] == 0: self._dialogue_registry["SYSTEM_ACTION"] = 5 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int if self.current_user_int == "order": self._dialogue_registry["NumberPizzas"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 9 self._slots["pizza_type"] = self.current_user_input # self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # -type, +size, -quantity elif self._dialogue_registry["TypesPizzas"] == 0 and \ self._dialogue_registry["SizesPizzas"] == 1 and \ self._dialogue_registry["NumberPizzas"] == 0: self._dialogue_registry["SYSTEM_ACTION"] = 4 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int if self.current_user_input in ("marinara", "margherita", "barbecue", "sicilian"): self.current_user_int = "order" self._dialogue_registry["TypesPizzas"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 10 self._slots["pizza_type"] = self.current_user_input # self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # -type, -size, +quantity elif self._dialogue_registry["TypesPizzas"] == 0 and \ self._dialogue_registry["SizesPizzas"] == 0 and \ self._dialogue_registry["NumberPizzas"] == 1: self._dialogue_registry["SYSTEM_ACTION"] = 4 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int if self.current_user_input in ("marinara", "margherita", "barbecue", "sicilian"): self.current_user_int = "order" self._dialogue_registry["TypesPizzas"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 10 self._slots["pizza_type"] = self.current_user_input # self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # +type, -size, +quantity elif self._dialogue_registry["TypesPizzas"] == 1 and \ self._dialogue_registry["SizesPizzas"] == 0 and \ self._dialogue_registry["NumberPizzas"] == 1: self._dialogue_registry["SYSTEM_ACTION"] = 5 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int if self.current_user_input in ("large","extra large","small"): self.current_user_int = "order" self._dialogue_registry["TypesPizzas"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 11 self._slots["pizza_size"] = self.current_user_input # self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # +type, +size, -quantity elif self._dialogue_registry["TypesPizzas"] == 1 and \ self._dialogue_registry["SizesPizzas"] == 1 and \ self._dialogue_registry["NumberPizzas"] == 0: self._dialogue_registry["SYSTEM_ACTION"] = 3 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int if self.current_user_int == "order": self._dialogue_registry["NumberPizzas"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 9 self._slots["pizza_quantity"] = self.current_user_input # self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # -type, +size, +quantity elif self._dialogue_registry["TypesPizzas"] == 0 and \ self._dialogue_registry["SizesPizzas"] == 1 and \ self._dialogue_registry["NumberPizzas"] == 1: self._dialogue_registry["SYSTEM_ACTION"] = 4 self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int if self.current_user_input in ("marinara","margherita","barbecue","sicilian"): self.current_user_int = "order" self._dialogue_registry["TypesPizzas"] = 1 self._dialogue_registry["SYSTEM_ACTION"] = 10 self._slots["pizza_type"] = self.current_user_input #self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True # handle unknown elif self.current_user_int is None: self._dialogue_registry["NotUnderstood"] == 1 self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) return True # help caller elif self.current_user_int == "help": self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) return True elif self.type == "statistical": # need to set non-None value for PREV_SYSTEM_ACTION as no empty values are allowed # for predicting with a scikit-learn classifier if self._dialogue_registry["PREV_SYSTEM_ACTION"] == None: self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) self._dialogue_registry["PREV_SYSTEM_ACTION"] = 1 else: self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] prediction_system_reaction = self.stat_model.predict([list(self._dialogue_registry.values())[:-1]])[0] self._dialogue_registry["SYSTEM_ACTION"] = prediction_system_reaction if self._dialogue_registry["PREV_SYSTEM_ACTION"] != 1: self._nlg.generate_response(self._dialogue_registry, self._slots, self.current_user_int) if not (self._dialogue_registry["SYSTEM_ACTION"] == 14 and self._dialogue_registry["Acceptance"] in [0, 1]): self.current_user_input = input() slots, user_int = self._nlu.interpret_input(self.current_user_input) self.current_user_int = user_int if self.current_user_input in ("marinara", "margherita", "barbecue", "sicilian"): self._dialogue_registry["TypesPizzas"] = 1 self._slots["pizza_type"] = self.current_user_input elif self.current_user_input in ("large", "extra large", "small"): self._dialogue_registry["SizesPizzas"] = 1 self._slots["pizza_size"] = self.current_user_input self.current_user_int = user_int # update value dict if self.current_user_int == "order" and any(list(slots.values())): # update slots for k, v in list(slots.items()): if self._slots[k] is None: self._slots[k] = v if v is not None: # update dialogue registry if k == "pizza_quantity": self._dialogue_registry["NumberPizzas"] = 1 elif k == "pizza_type": self._dialogue_registry["TypesPizzas"] = 1 elif k == "pizza_size": self._dialogue_registry["SizesPizzas"] = 1 if all(list(self._slots.values())) and \ self._dialogue_registry["NumberPizzas"] == 1 and \ self._dialogue_registry["TypesPizzas"] == 1 and \ self._dialogue_registry["SizesPizzas"] == 1 and \ self._dialogue_registry["SYSTEM_ACTION"] != 14: self._dialogue_registry["NotUnderstood"] = 0 # manual set of system action because of lack of training examples self._dialogue_registry["SYSTEM_ACTION"] = 14 return True if all(list(self._slots.values())) and \ self._dialogue_registry["NumberPizzas"] == 1 and \ self._dialogue_registry["TypesPizzas"] == 1 and \ self._dialogue_registry["SizesPizzas"] == 1 and \ self._dialogue_registry["SYSTEM_ACTION"] == 14 and \ self._dialogue_registry["NotUnderstood"] == 0: return False elif self.current_user_int == "help": return True elif user_int == None: self._dialogue_registry["NotUnderstood"] == 1 return True elif self.current_user_int == "rejection": self._dialogue_registry["Acceptance"] = 0 self._dialogue_registry["Rejection"] = 1 return True elif self.current_user_int == "acceptance": self._dialogue_registry["Acceptance"] = 1 self._dialogue_registry["Rejection"] = 0 return False else: self._dialogue_registry["PREV_SYSTEM_ACTION"] = self._dialogue_registry["SYSTEM_ACTION"] return True if __name__ == "__main__": # hard-coded print("### Using hard-coded model for inference of system actions ###") dm1 = DM("hard-coded") flag = True while flag: flag = dm1.evaluate_turn() # statistical print("### Using statistical model for inference of system actions ###") dm2 = DM("statistical") flag = True while flag: flag = dm2.evaluate_turn()
40.620553
120
0.560134
2,053
20,554
5.233804
0.073551
0.241228
0.295952
0.085435
0.884877
0.868962
0.828385
0.813588
0.795067
0.758492
0
0.010945
0.346551
20,554
505
121
40.70099
0.78907
0.06787
0
0.755932
0
0
0.137386
0
0
0
0
0
0
1
0.00678
false
0
0.010169
0
0.084746
0.00678
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
0
0
0
0
0
0
0
0
0
0
9
725fd1dafe1734c13801103dd4623613d3d85491
919,931
py
Python
python/phonenumbers/geodata/data25.py
trueroll/python-phonenumbers
96b06f1b0ae593218b2240af3b62975fb97537dd
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/geodata/data25.py
trueroll/python-phonenumbers
96b06f1b0ae593218b2240af3b62975fb97537dd
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/geodata/data25.py
trueroll/python-phonenumbers
96b06f1b0ae593218b2240af3b62975fb97537dd
[ "Apache-2.0" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2020 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. data = { '861820541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861820542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861820543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861820544':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861820545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861820546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861820547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861820548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861820549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861820550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861820551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861820552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861820553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861820554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861820555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861820556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861820557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861820558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861820559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861820560':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861820561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861820562':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861820563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861820564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861820565':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861820566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861820567':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861820568':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861820569':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861820570':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861820571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861820572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861820573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861820574':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861820575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861820576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861820577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861820578':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861820579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861820580':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861820581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861820582':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861820583':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861820584':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861820585':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861820586':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861820587':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861820588':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861820589':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182059':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861820600':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861820601':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861820602':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861820603':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861820604':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861820605':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861820606':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861820607':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861820608':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861820609':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861820610':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861820611':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861820612':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861820613':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861820614':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861820615':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861820616':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861820617':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861820618':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861820619':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86182062':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861820627':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861820628':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861820629':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861820630':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861820631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861820632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861820634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861820635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861820636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861820637':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820638':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861820639':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861820640':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861820641':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861820642':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820643':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861820644':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861820645':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861820646':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861820647':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861820648':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861820649':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861820650':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820651':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820652':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820653':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820654':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861820655':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861820656':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861820657':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861820658':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861820659':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861820660':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861820661':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861820662':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861820663':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861820664':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861820665':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861820666':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861820667':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861820668':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861820669':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '86182067':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182068':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861820690':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861820691':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861820692':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861820693':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861820694':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861820695':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861820696':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861820697':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861820698':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861820699':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861820700':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861820701':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861820702':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861820703':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861820704':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861820705':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861820706':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861820707':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861820708':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861820709':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86182071':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861820720':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861820721':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861820722':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861820723':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861820724':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861820725':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861820726':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861820727':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861820728':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861820729':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861820730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861820731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861820732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861820733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861820734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861820735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861820736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861820737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861820738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861820739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86182074':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861820743':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861820744':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861820745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861820746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861820750':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861820751':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861820752':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861820753':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861820754':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861820755':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861820756':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861820757':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861820758':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861820759':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861820760':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861820761':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861820762':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861820763':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861820764':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861820765':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861820766':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861820767':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861820768':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861820769':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861820770':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861820771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861820772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861820773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861820774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861820775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861820776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861820777':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861820778':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861820779':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861820780':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861820781':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861820782':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861820783':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861820784':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861820785':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861820786':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861820787':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861820788':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861820789':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861820790':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861820791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861820792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861820793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861820794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861820795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861820796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861820797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861820798':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861820799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861820800':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861820801':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861820802':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861820803':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861820804':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861820805':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861820806':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861820807':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861820808':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861820809':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '86182081':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182082':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86182083':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86182084':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861820850':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861820851':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861820852':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861820853':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861820854':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861820855':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861820856':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861820857':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861820858':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861820859':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182086':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182087':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182088':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182089':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861820900':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861820901':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861820902':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861820903':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861820904':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861820905':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861820906':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861820907':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861820908':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861820909':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861820910':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861820911':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861820912':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861820913':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861820914':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861820915':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861820916':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861820917':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861820918':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861820919':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86182092':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861820930':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861820931':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861820932':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861820933':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861820934':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861820935':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861820936':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861820937':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861820938':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861820939':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861820940':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861820941':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861820942':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861820943':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861820944':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861820945':{'en': 'Jinchang, Gansu', 'zh': u('\u7518\u8083\u7701\u91d1\u660c\u5e02')}, '861820946':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861820947':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861820948':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861820949':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861820950':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820951':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820952':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861820953':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861820954':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861820955':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861820956':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861820957':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820958':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820959':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861820960':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820961':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820962':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861820963':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861820964':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861820965':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861820966':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861820967':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820968':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861820969':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861820970':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861820971':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861820972':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861820973':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861820974':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861820975':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861820976':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861820977':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861820978':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861820979':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86182098':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861820990':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861820991':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861820992':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861820993':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861820994':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861820995':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861820996':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861820997':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861820998':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861820999':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '8618210':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86182110':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86182111':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861821120':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821121':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861821122':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821123':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821124':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821125':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821126':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821127':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821128':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821129':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821130':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821131':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861821132':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861821133':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821134':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821135':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861821136':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861821137':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821138':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821139':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861821140':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821141':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821142':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821143':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821144':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821145':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821146':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821147':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821148':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821149':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821150':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821151':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821152':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861821153':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821154':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821155':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821156':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821157':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821158':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861821159':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '86182116':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86182117':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86182118':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86182119':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86182120':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861821200':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861821201':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861821202':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182121':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86182122':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861821220':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861821221':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86182123':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86182124':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861821246':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821247':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821248':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821249':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821250':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821251':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821252':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821253':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821254':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861821255':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821256':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821257':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821258':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821259':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86182126':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86182127':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821280':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821281':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821282':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821283':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861821284':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861821285':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861821286':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861821287':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861821288':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861821289':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182129':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86182130':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182131':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861821310':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861821311':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861821312':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861821313':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '86182132':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861821326':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861821327':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861821328':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861821329':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '86182133':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '86182134':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182135':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182136':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86182137':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '86182138':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182139':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182140':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86182141':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '86182142':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '86182143':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86182144':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861821450':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861821451':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861821452':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861821453':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861821454':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861821455':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821456':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821457':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821458':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821459':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821460':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821461':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821462':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821463':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821464':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861821465':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861821466':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861821467':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861821468':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861821469':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861821470':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861821471':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861821472':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861821473':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861821474':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861821475':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861821476':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861821477':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861821478':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861821479':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861821480':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861821481':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861821482':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861821483':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861821484':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861821485':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861821486':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861821487':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861821488':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861821489':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182149':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861821490':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861821491':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '86182150':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '86182151':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86182152':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '86182153':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '86182154':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '86182155':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182156':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182160':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '86182161':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86182162':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86182163':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861821640':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861821641':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861821642':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861821643':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861821644':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861821645':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861821646':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861821647':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861821648':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861821649':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '86182165':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86182166':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86182167':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86182168':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86182169':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '8618217':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86182178':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '86182179':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861821800':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861821801':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821802':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821803':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861821804':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821805':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861821806':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821807':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821808':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821809':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821810':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861821811':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821812':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821813':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821814':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821815':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821816':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821817':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821818':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821819':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821820':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861821821':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861821822':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821823':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861821824':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821825':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821826':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861821827':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821828':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861821829':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821830':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861821831':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861821832':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861821833':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861821834':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821835':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821836':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821837':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821838':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821839':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861821840':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821841':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821842':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821843':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821844':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821845':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821846':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821847':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821848':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861821849':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821850':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861821851':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821852':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861821853':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821854':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821855':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821856':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821857':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821858':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861821859':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821860':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821861':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821862':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861821863':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821864':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821865':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821866':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821867':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821868':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821869':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821870':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821871':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821872':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821873':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821874':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821875':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821876':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821877':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821878':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821879':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821880':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821881':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821882':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821883':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821884':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821885':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821886':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821887':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821888':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821889':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821890':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861821891':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861821892':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861821893':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861821894':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821895':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821896':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821897':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821898':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821899':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821900':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821901':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821902':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861821903':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821904':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821905':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821906':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861821907':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821908':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861821909':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861821910':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821911':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861821912':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821913':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821914':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821915':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861821916':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821917':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821918':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861821919':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861821920':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821921':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861821922':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861821923':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821924':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821925':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861821926':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821927':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861821928':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861821929':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821930':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821931':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821932':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821933':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861821934':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861821935':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821936':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821937':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821938':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861821939':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821940':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821941':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861821942':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861821943':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821944':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821945':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861821946':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821947':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861821948':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821949':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821950':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861821951':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821952':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861821953':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821954':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861821955':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861821956':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861821957':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861821958':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861821959':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861821960':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861821961':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861821962':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861821963':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861821964':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861821965':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861821966':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861821967':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861821968':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861821969':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861821970':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861821971':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861821972':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861821973':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861821974':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861821975':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861821976':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861821977':{'en': 'Jinchang, Gansu', 'zh': u('\u7518\u8083\u7701\u91d1\u660c\u5e02')}, '861821978':{'en': 'Jinchang, Gansu', 'zh': u('\u7518\u8083\u7701\u91d1\u660c\u5e02')}, '861821979':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861821980':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861821981':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861821982':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861821983':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861821984':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861821985':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861821986':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861821987':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861821988':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861821989':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861821990':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861821991':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861821992':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861821993':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861821994':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861821995':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861821996':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861821997':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861821998':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861821999':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '86182200':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '86182201':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861822017':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861822018':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861822019':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86182202':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '86182203':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861822040':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861822041':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861822042':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861822043':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861822044':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861822045':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861822046':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861822047':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861822048':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861822049':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86182205':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861822060':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861822061':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861822062':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861822063':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861822064':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861822065':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861822066':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861822067':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861822068':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861822069':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '86182207':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861822078':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861822079':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '86182208':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861822088':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '861822089':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861822090':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861822091':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861822092':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861822093':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861822094':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861822095':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861822096':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861822097':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861822098':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861822099':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '8618221':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '8618222':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '8618223':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182240':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861822410':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822411':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822412':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822413':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822414':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822415':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822416':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822417':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822418':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822419':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '86182242':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861822430':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822431':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822432':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822433':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822434':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822435':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822436':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822437':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822438':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822439':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '86182244':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861822450':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861822451':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861822452':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861822453':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861822454':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861822455':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861822456':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861822457':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861822458':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861822459':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86182246':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '86182247':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '86182248':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182249':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182250':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182251':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182252':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182253':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182254':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861822550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861822554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861822555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861822556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861822557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861822560':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861822562':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861822563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861822564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861822565':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861822567':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822568':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822569':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182257':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822570':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861822571':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861822572':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86182258':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822580':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822581':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822582':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822590':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822591':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861822592':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861822593':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861822594':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861822595':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822596':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822597':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822598':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822599':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '86182260':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861822600':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822601':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822602':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822603':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '86182261':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822610':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861822611':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861822612':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '86182262':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822620':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822621':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182263':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822640':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822641':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822642':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822643':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861822644':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861822645':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822646':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861822647':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861822648':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861822649':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861822650':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861822651':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861822652':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861822653':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861822654':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861822655':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822656':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822657':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822658':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822659':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '86182266':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822666':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822667':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822668':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861822669':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '86182267':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861822680':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822681':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822682':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822683':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861822684':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822685':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822686':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822687':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822688':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822689':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861822690':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861822691':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861822692':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861822693':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861822694':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861822695':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861822696':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861822697':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861822698':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861822699':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86182270':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86182271':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86182272':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86182273':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861822740':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822741':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822742':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822743':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861822744':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861822745':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861822746':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861822747':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861822748':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861822749':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861822750':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822751':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822752':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822753':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822754':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861822755':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822756':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822757':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822758':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861822759':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '86182276':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861822770':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861822771':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861822772':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861822773':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861822774':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861822775':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861822776':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861822777':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861822778':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861822779':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861822780':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861822781':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861822782':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861822783':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861822784':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861822785':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861822786':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861822787':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861822788':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861822789':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861822790':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822791':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822792':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822793':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822794':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861822795':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822796':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822797':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822798':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861822799':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '86182280':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182281':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '86182282':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '86182283':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86182284':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '86182285':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '86182286':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86182287':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861822880':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861822881':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861822882':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861822883':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861822884':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861822885':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822886':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822887':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822888':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822889':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861822890':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861822891':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861822892':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861822893':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861822894':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861822895':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861822896':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861822897':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861822898':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861822899':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86182290':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86182291':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '86182292':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '86182293':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861822940':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861822941':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861822942':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861822943':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861822944':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861822945':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861822946':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861822947':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861822948':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861822949':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861822950':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861822951':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861822952':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861822953':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861822954':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861822955':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861822956':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861822957':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861822958':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861822959':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86182296':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86182297':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86182298':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86182299':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861823000':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823001':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861823002':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861823003':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823004':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823005':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823006':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823007':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861823008':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861823009':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861823010':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823011':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861823012':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861823013':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823014':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823015':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861823016':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823017':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861823018':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861823019':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861823020':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823021':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823022':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823023':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823024':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861823025':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861823026':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823027':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823028':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823029':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '86182303':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823034':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823036':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823038':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823040':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861823041':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861823042':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861823043':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823044':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823045':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823046':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823047':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861823048':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861823049':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86182305':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '86182306':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861823070':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861823071':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861823072':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861823073':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861823074':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861823075':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861823076':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861823077':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861823078':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861823079':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86182308':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86182309':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86182310':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86182311':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86182312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86182313':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '86182314':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '86182315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86182316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86182317':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86182318':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '86182319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86182320':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86182321':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86182322':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823230':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823231':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823232':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823233':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823234':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861823235':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823236':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823237':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823238':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823239':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823240':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823241':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823242':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823243':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823244':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823245':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823246':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823247':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823248':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823249':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86182325':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861823260':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823261':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823262':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823263':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823264':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861823265':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823266':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823267':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823268':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823269':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86182327':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86182328':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86182329':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '86182330':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86182331':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86182332':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86182333':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86182334':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86182335':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861823360':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823361':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823362':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823363':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823364':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861823365':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861823366':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861823367':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861823368':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861823369':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86182337':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86182338':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '86182339':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86182340':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86182341':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86182342':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '86182343':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861823430':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861823437':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861823438':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861823439':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '86182344':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86182345':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86182346':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '86182347':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '86182348':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86182349':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '86182350':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '86182351':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86182352':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '86182353':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '86182354':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86182355':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86182356':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '86182357':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '86182358':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86182359':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86182360':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86182361':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861823620':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861823621':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861823622':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861823623':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861823624':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861823625':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823626':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823627':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823628':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823629':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823630':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823631':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823632':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823633':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823634':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823635':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823636':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823637':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823638':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823639':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823640':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823641':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823642':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823643':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823644':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823645':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861823646':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861823647':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861823648':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861823649':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86182365':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '86182366':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861823670':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861823671':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861823672':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861823673':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861823674':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861823675':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823676':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823677':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823678':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823679':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861823680':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861823681':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861823682':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861823683':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861823684':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861823685':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861823686':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861823687':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861823688':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861823689':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86182369':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86182370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86182371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86182372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86182373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86182374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '86182375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86182376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86182377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86182378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '86182379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86182380':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86182381':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861823820':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861823821':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861823822':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861823823':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861823824':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861823825':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823826':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823827':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823828':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861823829':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86182383':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861823840':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861823841':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861823842':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861823843':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861823844':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861823845':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823846':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823847':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823848':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861823849':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86182385':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86182386':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861823870':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823871':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823872':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823873':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823874':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861823875':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861823876':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861823877':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861823878':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861823879':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86182388':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86182389':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86182390':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86182391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86182392':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '86182393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86182394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86182395':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '86182396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86182397':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86182398':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '86182399':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86182400':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86182401':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86182402':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86182403':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86182404':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861824050':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861824051':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861824052':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861824053':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861824054':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861824055':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861824056':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861824057':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861824058':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861824059':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861824060':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861824061':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861824062':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861824063':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861824064':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861824065':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861824066':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861824067':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861824068':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861824069':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861824070':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861824071':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861824072':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861824073':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861824074':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861824075':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861824076':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861824077':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861824078':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861824079':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861824080':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861824081':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861824082':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861824083':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861824084':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861824085':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861824086':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861824087':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861824088':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861824089':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861824090':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861824091':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861824092':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861824093':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861824094':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861824095':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861824096':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861824097':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861824098':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861824099':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86182410':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '86182411':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86182412':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '86182413':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '86182414':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '86182415':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '86182416':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '86182417':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '86182418':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '86182419':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '86182420':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86182421':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '86182422':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '86182423':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '86182424':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '86182425':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861824260':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861824261':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861824262':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861824263':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861824264':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861824265':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861824266':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861824267':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861824268':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861824269':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '86182427':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861824280':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861824281':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861824282':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861824283':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861824284':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861824285':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861824286':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861824287':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861824288':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861824289':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '86182429':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '86182430':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86182431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86182432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '86182433':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '86182434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '86182435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '86182436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '86182437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '86182438':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '86182439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '86182440':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86182441':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '86182442':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861824430':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861824431':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861824432':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861824433':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861824434':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861824435':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861824436':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861824437':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861824438':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861824439':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861824440':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861824441':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861824442':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861824443':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861824444':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861824445':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861824446':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861824447':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861824448':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861824449':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861824450':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861824451':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861824452':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861824453':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861824454':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861824455':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861824456':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861824457':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861824458':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861824459':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861824460':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861824461':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861824462':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861824463':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861824464':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861824465':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861824466':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861824467':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861824468':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861824469':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86182447':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '86182448':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861824488':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861824489':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861824490':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861824491':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861824492':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861824493':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861824494':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861824495':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861824496':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861824497':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861824498':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861824499':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86182450':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86182451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86182452':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '86182453':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '86182454':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '86182455':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '86182456':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861824569':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86182457':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86182458':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861824580':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824588':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86182459':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '8618246':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86182462':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '86182463':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861824636':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824637':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824638':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824639':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824646':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861824649':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861824666':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861824667':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824668':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861824669':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '86182467':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861824678':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824679':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824683':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824684':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824690':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861824691':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824692':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824693':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824694':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824695':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824698':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861824699':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '86182470':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '86182471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86182472':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '86182473':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '86182474':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861824740':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861824741':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861824742':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861824743':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '86182475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '86182476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '86182477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '86182478':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '86182479':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '86182480':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861824802':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861824807':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861824808':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '86182481':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861824810':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861824811':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861824815':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861824816':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '86182482':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '86182483':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861824834':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861824835':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861824836':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861824839':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '86182484':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182485':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861824860':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861824861':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861824862':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861824863':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861824864':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861824865':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861824866':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861824867':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861824868':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861824869':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861824870':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861824871':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861824872':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861824873':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861824874':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861824875':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861824876':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861824877':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861824878':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861824879':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861824880':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861824881':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861824882':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861824883':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861824884':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861824885':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861824886':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861824887':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861824888':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861824889':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861824890':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861824891':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861824892':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861824893':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861824894':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861824895':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861824896':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861824897':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861824898':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861824899':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86182490':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86182491':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824920':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824921':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824922':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824923':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824924':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824925':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824926':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824927':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861824928':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861824929':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '86182493':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861824939':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861824940':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861824941':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861824942':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861824943':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861824944':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824945':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824946':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824947':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824948':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861824949':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861824950':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824951':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824952':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861824953':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861824954':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824955':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824956':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824957':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824958':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824959':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '86182496':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86182497':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861824980':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861824981':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861824982':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824983':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861824984':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861824985':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861824986':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861824987':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861824988':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861824989':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '86182499':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861824990':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861824991':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861824992':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '86182500':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825010':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825011':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825012':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825013':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825014':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825015':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825016':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825017':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825018':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825019':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825020':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825021':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825022':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825023':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825024':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825025':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825026':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825027':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825028':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825029':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825030':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825031':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825032':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825033':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825034':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825035':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825036':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825037':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825038':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825039':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861825040':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825041':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825042':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825043':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825044':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825045':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825046':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825047':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825048':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825049':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861825050':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861825051':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861825052':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861825053':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861825054':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861825055':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861825056':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861825057':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861825058':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861825059':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861825060':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825061':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825062':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825063':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825064':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861825065':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825066':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825067':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825068':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861825069':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86182507':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '86182508':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861825090':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825091':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825092':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825093':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825094':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825095':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825096':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825097':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825098':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825099':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '86182510':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86182511':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861825120':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861825121':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861825122':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861825123':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861825124':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861825125':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861825126':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861825127':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861825128':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861825129':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '86182513':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825140':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861825141':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861825142':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861825143':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861825144':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861825145':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861825146':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861825147':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825148':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825149':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861825150':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861825151':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861825152':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861825153':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861825154':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861825155':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861825156':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861825157':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861825158':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861825159':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86182516':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86182517':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86182518':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86182519':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86182520':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86182521':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86182522':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86182523':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861825240':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861825241':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861825242':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861825243':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861825244':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861825245':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861825246':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825247':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825248':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825249':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825250':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825251':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825252':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861825253':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861825254':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861825255':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861825256':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861825257':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861825258':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825259':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '86182526':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '86182527':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '86182528':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861825290':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861825291':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861825292':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861825293':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825294':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825295':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825296':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825297':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861825298':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861825299':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86182530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86182531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86182532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86182533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86182534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86182535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86182536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86182537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86182538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86182539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86182540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86182541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86182542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86182543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861825440':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861825441':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861825442':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861825443':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861825444':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861825445':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861825446':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861825447':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861825448':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861825449':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86182545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86182546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '86182547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86182548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86182549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86182550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86182551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '86182553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86182554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '86182555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '86182556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86182557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '86182558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86182559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '86182560':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '86182562':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861825622':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861825623':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861825624':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861825625':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86182563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '86182564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86182565':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861825657':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86182566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '86182567':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '86182568':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86182569':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182570':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86182573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861825740':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861825741':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861825742':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861825743':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861825744':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861825745':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861825746':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861825747':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861825748':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861825749':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86182576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86182577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86182578':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182580':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86182581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182582':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182583':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86182584':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182585':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86182586':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86182587':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86182588':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182589':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182590':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86182591':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86182592':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861825930':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825931':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825932':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825933':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825934':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861825935':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825936':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825937':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825938':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861825939':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '86182594':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '86182595':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86182596':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86182597':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '86182598':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '86182599':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '86182600':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86182601':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86182602':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826030':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826031':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826032':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826033':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826034':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826035':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861826036':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861826037':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861826038':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826039':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826040':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826041':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826042':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826043':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826044':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826045':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826046':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826047':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861826048':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861826049':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '86182605':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826060':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826061':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826062':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826063':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826064':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826065':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861826066':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861826067':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861826068':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861826069':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '86182607':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86182608':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182609':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861826100':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826101':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826102':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826103':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826104':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826105':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826106':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826107':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826108':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826109':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826110':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826111':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826112':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826113':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826114':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826115':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826116':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826117':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826118':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826119':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '86182612':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86182613':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86182614':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826147':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861826148':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861826149':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86182615':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86182616':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86182617':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86182618':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826190':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826191':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826192':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826193':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826194':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826195':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826196':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826197':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826198':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826199':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '86182620':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86182621':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86182622':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861826230':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826231':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826232':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826233':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826234':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826235':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826236':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826237':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826238':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826239':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826240':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826241':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826242':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826243':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861826244':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861826245':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826246':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861826247':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861826248':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826249':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826250':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826251':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826252':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826253':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826254':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826255':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826256':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826257':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861826258':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826259':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826260':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826261':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826262':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826263':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826264':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861826265':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826266':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826267':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826268':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826269':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861826270':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826271':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826272':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826273':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826274':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826275':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826276':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826277':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826278':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826279':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826280':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861826281':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826282':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861826283':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861826284':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826285':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826286':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826287':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861826288':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861826289':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861826290':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826291':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826292':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826293':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826294':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861826295':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826296':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826297':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826298':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861826299':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '86182630':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86182631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '86182632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86182633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '86182634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '86182635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86182636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86182637':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86182638':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86182639':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86182640':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86182641':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86182642':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86182643':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86182644':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86182645':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86182646':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86182647':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86182648':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86182649':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86182650':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86182651':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86182652':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861826530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861826531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861826532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861826534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861826535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861826536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861826537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861826538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861826539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861826540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861826541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861826542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861826544':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861826545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861826546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861826547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861826548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861826549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86182655':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86182656':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86182657':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86182658':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861826580':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861826581':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861826582':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86182659':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86182660':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86182661':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86182662':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861826620':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826621':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826622':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826623':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826630':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861826631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861826632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861826633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861826634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861826635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861826636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861826637':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861826638':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861826639':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826640':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861826641':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861826642':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826643':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861826644':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861826645':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861826646':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861826647':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861826648':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826649':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86182665':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861826650':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861826651':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861826652':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861826660':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861826661':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826662':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826663':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826664':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826665':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861826666':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861826667':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861826668':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861826669':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86182667':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861826676':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861826677':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861826678':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861826679':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86182668':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86182669':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182670':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182671':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182672':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86182673':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86182674':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86182675':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86182676':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86182677':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86182678':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86182679':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86182680':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182681':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86182682':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86182683':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86182684':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86182685':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86182686':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861826870':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861826871':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861826872':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861826873':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861826874':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861826875':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861826876':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861826877':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861826878':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861826879':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86182688':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861826890':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861826891':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861826892':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861826893':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861826894':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861826895':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861826896':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861826897':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861826898':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861826899':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '86182690':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182691':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861826919':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '86182692':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86182693':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86182694':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86182695':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86182696':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86182697':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861826970':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861826971':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861826972':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861826973':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86182698':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861826988':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861826989':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86182699':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861826990':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '86182700':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86182701':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861827010':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861827011':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861827012':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861827013':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '86182702':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86182703':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86182704':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86182705':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827060':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827061':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827062':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827063':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827064':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827065':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861827066':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861827067':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861827068':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861827069':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86182707':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86182708':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861827090':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861827091':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861827092':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861827093':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861827094':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861827095':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827096':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861827097':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861827098':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861827099':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '86182710':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861827109':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '86182711':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861827110':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861827111':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861827112':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861827113':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '86182712':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827129':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '86182713':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861827139':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86182714':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86182715':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861827150':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827151':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861827152':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861827159':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '86182716':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861827160':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861827161':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861827170':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827171':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861827172':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861827173':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827174':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827175':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827176':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827177':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827178':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827179':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '86182718':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86182719':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827200':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827201':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827202':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827203':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827204':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827205':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827206':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827207':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827208':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861827209':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827210':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827211':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827212':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861827213':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861827214':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861827215':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861827216':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861827217':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861827218':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861827219':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861827220':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861827221':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861827222':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861827223':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861827224':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861827225':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861827226':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861827227':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861827228':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861827229':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861827230':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861827231':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861827232':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861827233':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861827234':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861827235':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861827236':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861827237':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861827238':{'en': 'Xiantao, Hubei', 'zh': u('\u6e56\u5317\u7701\u4ed9\u6843\u5e02')}, '861827239':{'en': 'Xiantao, Hubei', 'zh': u('\u6e56\u5317\u7701\u4ed9\u6843\u5e02')}, '861827240':{'en': 'Xiantao, Hubei', 'zh': u('\u6e56\u5317\u7701\u4ed9\u6843\u5e02')}, '861827241':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861827242':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861827243':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861827244':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861827245':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861827246':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861827247':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861827248':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827249':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861827250':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861827251':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861827252':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861827253':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861827254':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861827255':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861827256':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861827257':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861827258':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861827259':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86182726':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861827270':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861827271':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861827272':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861827273':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861827274':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861827275':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861827276':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861827277':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861827278':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861827279':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86182728':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86182729':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86182730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86182731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86182732':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86182733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '86182734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '86182735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '86182736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86182737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861827380':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861827381':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861827382':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861827383':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861827384':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861827385':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861827386':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861827387':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861827388':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861827389':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86182739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86182740':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86182741':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861827417':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861827418':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861827419':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '86182742':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '86182743':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86182744':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86182745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '86182746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '86182747':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '86182748':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86182749':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861827490':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861827491':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861827492':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861827493':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '86182750':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182751':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182752':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182753':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182754':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86182755':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86182756':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86182757':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182758':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182759':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182760':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861827607':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861827608':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861827609':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86182761':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182762':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86182763':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86182764':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86182765':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861827660':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861827661':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861827662':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861827663':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861827664':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861827665':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861827666':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861827667':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861827668':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861827669':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86182767':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86182768':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86182769':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861827698':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861827699':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '86182770':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '86182771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86182773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86182774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86182775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86182776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '86182777':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '86182778':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '86182779':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '86182780':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86182781':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86182782':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86182783':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86182784':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86182785':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86182786':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '86182787':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '86182788':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '86182789':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '86182790':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861827900':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827901':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827902':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861827903':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86182791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86182792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86182793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86182794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '86182795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86182796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86182797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861827980':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861827981':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861827982':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861827983':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861827984':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861827985':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861827986':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861827987':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861827988':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861827989':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '86182799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861827990':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861827991':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86182800':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182801':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182802':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182803':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182804':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182805':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86182806':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861828070':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861828071':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861828072':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861828073':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861828074':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861828075':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861828076':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861828077':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861828078':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861828079':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861828080':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828081':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828082':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828083':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828084':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828085':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828086':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828087':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828088':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828089':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828090':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861828091':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861828092':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861828093':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861828094':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861828095':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861828096':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861828097':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861828098':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861828099':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '86182810':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86182811':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86182812':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '86182813':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '86182814':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86182815':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86182816':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86182817':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86182818':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86182819':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86182820':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828210':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861828211':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861828212':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861828213':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861828214':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861828215':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861828216':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861828217':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861828218':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861828219':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '86182822':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86182823':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861828230':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861828231':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '86182824':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861828240':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861828241':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '86182825':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '86182826':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '86182827':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '86182828':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86182829':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86182830':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86182831':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86182832':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '86182833':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86182834':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86182835':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '86182836':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861828360':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861828361':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86182837':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '86182838':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86182839':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '86182840':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '86182841':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86182842':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861828420':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828421':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86182843':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86182845':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86182846':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861828460':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861828461':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861828470':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861828471':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861828472':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861828473':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861828474':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861828475':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828476':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828477':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828478':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861828479':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '86182848':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861828480':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861828481':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86182849':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '86182850':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182851':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182852':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86182853':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '86182854':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182855':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86182856':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86182857':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86182858':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86182859':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182860':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182861':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86182862':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86182863':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '86182864':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182865':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86182866':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86182867':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86182868':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86182869':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182870':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '86182871':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182872':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '86182873':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86182874':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '86182875':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '86182876':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182877':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '86182878':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86182879':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86182880':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '86182881':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '86182882':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182883':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '86182884':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '86182885':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '86182886':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86182887':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861828880':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861828881':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861828882':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861828883':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861828884':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861828885':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861828886':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861828887':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861828888':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861828889':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '86182889':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '8618289':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861828900':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861828901':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861828902':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861828903':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861828904':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861828905':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861828906':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861828907':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861828908':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861828909':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861828910':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861828911':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861828912':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861828913':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861828914':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861828915':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861828916':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861828917':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861828918':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861828919':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '86182900':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86182901':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861829017':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861829018':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861829019':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '86182902':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182903':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182904':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86182905':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861829060':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829061':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829062':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829063':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829064':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829065':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829066':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829067':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829068':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829069':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829070':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829071':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829072':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829073':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829074':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829075':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829076':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829077':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829078':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829079':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '86182908':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829090':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861829091':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861829092':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861829093':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861829094':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861829095':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861829096':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829097':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829098':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829099':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '86182910':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '86182911':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '86182912':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '86182913':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '86182914':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86182915':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861829159':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86182916':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '86182917':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '86182918':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86182919':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86182920':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86182921':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861829216':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829217':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829218':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829219':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '86182922':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '86182923':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '86182924':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829240':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861829242':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861829243':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861829247':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '86182925':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861829256':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829257':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829258':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861829259':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86182926':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861829267':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829268':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861829269':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '86182927':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861829278':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861829279':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86182928':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86182929':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861829300':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829301':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829302':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829303':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829304':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861829305':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861829306':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861829307':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861829308':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861829309':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '86182931':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86182932':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '86182933':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '86182934':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '86182935':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '86182936':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861829367':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861829368':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861829369':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '86182937':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861829378':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829379':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86182938':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '86182939':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829400':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829401':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829402':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861829403':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861829404':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861829405':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861829406':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861829407':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861829408':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861829409':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '86182941':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '86182942':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '86182943':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '86182944':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86182945':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '86182946':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829470':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829471':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829472':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829473':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829474':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829475':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829476':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829477':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829478':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829479':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86182948':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '86182949':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861829500':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829501':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829502':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829503':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829504':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829505':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829506':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829507':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829508':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829509':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829510':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829511':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829512':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829513':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829514':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829515':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829516':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829517':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829518':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829519':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829520':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829521':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829522':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829523':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829524':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829525':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829526':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829527':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829528':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829529':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829530':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829531':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829532':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829533':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829534':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829535':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829536':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829537':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829538':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829539':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829540':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829541':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829542':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829543':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829544':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829545':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829546':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829547':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829548':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829549':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829550':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829551':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829552':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829553':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829554':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829555':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829556':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829557':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829558':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829559':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829560':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829561':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829562':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861829563':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829564':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861829565':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861829566':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861829567':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829568':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861829569':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '86182957':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86182958':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '86182959':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86182960':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86182961':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861829610':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861829618':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861829619':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '86182962':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861829620':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '86182963':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86182964':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861829640':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861829641':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861829642':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861829643':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86182965':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86182966':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861829669':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86182967':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861829680':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861829681':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861829682':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861829683':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861829684':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861829685':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861829686':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861829687':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861829688':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861829689':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861829690':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861829691':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861829692':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861829693':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861829694':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861829695':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861829696':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861829697':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861829698':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861829699':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861829700':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861829701':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861829702':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861829703':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861829704':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829705':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829706':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829707':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829708':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861829709':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '86182971':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861829714':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829715':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829716':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829720':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829721':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861829722':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861829723':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829724':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829725':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829726':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829727':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829728':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829729':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86182973':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861829730':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861829731':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861829732':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861829733':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861829740':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861829741':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861829742':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861829743':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861829744':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861829745':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861829746':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861829747':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861829748':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861829749':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861829750':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861829751':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861829752':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861829753':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861829754':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861829755':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861829756':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861829757':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861829758':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861829759':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861829760':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861829761':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861829762':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861829763':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861829764':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861829765':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861829766':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861829767':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861829768':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861829769':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '86182977':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861829780':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861829781':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861829782':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861829783':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861829784':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861829785':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861829786':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861829787':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861829788':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861829789':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86182979':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182980':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861829800':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861829801':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861829802':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86182981':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861829810':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861829820':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861829821':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861829822':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861829823':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861829824':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861829825':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861829826':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861829827':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861829828':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861829829':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86182983':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86182984':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861829850':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829851':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829852':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829853':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861829854':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861829855':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861829856':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861829857':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861829858':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861829859':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861829860':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861829861':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861829862':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861829863':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861829864':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829865':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829866':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861829867':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861829868':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861829869':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '86182987':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861829877':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861829878':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861829879':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '86182988':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861829890':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861829891':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861829892':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861829893':{'en': 'Jinchang, Gansu', 'zh': u('\u7518\u8083\u7701\u91d1\u660c\u5e02')}, '861829894':{'en': 'Jinchang, Gansu', 'zh': u('\u7518\u8083\u7701\u91d1\u660c\u5e02')}, '861829895':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861829896':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861829897':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861829898':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861829899':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861829900':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829901':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829902':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829903':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829904':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861829905':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861829906':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829907':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829908':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829909':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '86182991':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86182992':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829929':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '86182993':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861829937':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829938':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861829939':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '86182994':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829950':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829951':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829952':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829953':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861829954':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861829955':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829956':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829957':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829958':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829959':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '86182996':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829970':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861829971':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861829972':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829973':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829974':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829975':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861829976':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861829977':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829978':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829979':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829980':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829981':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829982':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829983':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829984':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861829985':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829986':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829987':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829988':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829989':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861829990':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861829991':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861829992':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861829993':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861829994':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861829995':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829996':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829997':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861829998':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861829999':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861830000':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861830001':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861830002':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861830003':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861830004':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861830005':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861830006':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861830007':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861830008':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861830009':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861830010':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861830011':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861830012':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861830013':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861830014':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861830015':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861830016':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861830017':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861830018':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861830019':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86183002':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86183003':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '86183004':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183005':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861830056':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861830057':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861830058':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861830059':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861830060':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830061':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830062':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830063':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830064':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830065':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861830066':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861830067':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861830068':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861830069':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86183007':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861830070':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86183008':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86183009':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '8618301':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86183017':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86183018':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86183019':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86183020':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86183021':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86183022':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86183023':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183024':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86183025':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86183026':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86183027':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183028':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183029':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183030':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830310':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830311':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861830312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861830313':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861830314':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861830315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861830316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861830317':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861830318':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861830319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861830320':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830321':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830322':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830323':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830324':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830325':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861830326':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861830327':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861830328':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861830329':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86183033':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861830335':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861830340':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861830341':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861830342':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861830343':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861830344':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861830345':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861830346':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861830347':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861830348':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861830349':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861830350':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861830351':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861830352':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861830353':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861830354':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861830355':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861830356':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861830357':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861830358':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861830359':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86183036':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861830367':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861830368':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861830369':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861830370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861830371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861830372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861830373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861830374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861830375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861830376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861830377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861830378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861830379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861830380':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861830381':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861830382':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861830383':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861830384':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861830385':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861830386':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861830387':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861830388':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861830389':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861830390':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830392':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861830393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861830394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861830395':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861830396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861830397':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861830398':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861830399':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86183040':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861830410':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861830411':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861830412':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861830413':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861830414':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861830415':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861830416':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861830417':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861830418':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861830419':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861830420':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861830421':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861830422':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861830423':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861830424':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861830425':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861830426':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861830427':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861830428':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861830429':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861830430':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861830431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861830432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861830433':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861830434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861830435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861830436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861830437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861830438':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861830439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '86183044':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861830450':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861830451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861830452':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861830453':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861830454':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861830455':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861830456':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861830457':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861830458':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861830459':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861830460':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861830461':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861830462':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861830463':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861830464':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861830465':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861830466':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861830467':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861830468':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861830469':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861830470':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861830471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861830472':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861830473':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861830474':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861830475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861830476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861830477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861830478':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861830479':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '86183048':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861830483':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '861830487':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861830488':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861830489':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '86183049':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861830500':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861830501':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861830502':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861830503':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861830504':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861830505':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861830506':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861830507':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861830508':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861830509':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86183051':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861830510':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861830511':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861830512':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861830513':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861830520':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861830521':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861830522':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861830523':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861830524':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861830525':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861830526':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861830527':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861830528':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861830529':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861830530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861830531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861830532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861830533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861830534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861830535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861830536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861830537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861830538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861830539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861830540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861830541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861830542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861830543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861830544':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861830545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861830546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861830547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861830548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861830549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861830550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861830551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861830552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861830553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861830554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861830555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861830556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861830557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861830558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861830559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861830560':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861830561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861830562':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861830563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861830564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861830565':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861830566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861830567':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861830568':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861830569':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861830570':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861830571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861830572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861830573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861830574':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861830575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861830576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861830577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861830578':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861830579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861830580':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861830581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861830582':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861830583':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861830584':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861830585':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861830586':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861830587':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861830588':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861830589':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86183059':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86183060':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861830610':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861830611':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861830612':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861830613':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861830614':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861830615':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861830616':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861830617':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861830618':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861830619':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86183062':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861830627':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861830628':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861830629':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861830630':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861830631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861830632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861830633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861830634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861830635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861830636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861830637':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861830638':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861830639':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861830640':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861830641':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861830642':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861830643':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861830644':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861830645':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861830646':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861830647':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861830648':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861830649':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86183065':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861830660':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861830661':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861830662':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861830663':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861830664':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861830665':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861830666':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861830667':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861830668':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861830669':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86183067':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86183068':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86183069':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861830690':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861830691':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861830700':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861830701':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861830702':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861830703':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861830704':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861830705':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861830706':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861830707':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861830708':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861830709':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861830710':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861830711':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861830712':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861830713':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861830714':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861830715':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861830716':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861830717':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861830718':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861830719':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861830720':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861830721':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861830722':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861830723':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861830724':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861830725':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861830726':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861830727':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861830728':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861830729':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861830730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861830731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861830732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861830733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861830734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861830735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861830736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861830737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861830738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861830739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861830740':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861830741':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861830742':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861830743':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861830744':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861830745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861830746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861830747':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861830748':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861830749':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861830750':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861830751':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861830752':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861830753':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861830754':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861830755':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861830756':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861830757':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861830758':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861830759':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861830760':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861830761':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861830762':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861830763':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861830764':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861830765':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861830766':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861830767':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861830768':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861830769':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861830770':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861830771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861830772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861830773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861830774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861830775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861830776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861830777':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861830778':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861830779':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861830780':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861830781':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861830782':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861830783':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861830784':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861830785':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861830786':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861830787':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861830788':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861830789':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861830790':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861830791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861830792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861830793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861830794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861830795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861830796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861830797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861830798':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861830799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861830800':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861830801':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861830802':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861830803':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861830804':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861830805':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861830806':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861830807':{'en': 'Ngari, Tibet', 'zh': u('\u897f\u85cf\u963f\u91cc\u5730\u533a')}, '861830808':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861830809':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '86183081':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86183082':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861830824':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861830825':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861830830':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861830831':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861830832':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861830833':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861830834':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861830835':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861830836':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861830837':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861830838':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861830839':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861830840':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861830841':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861830842':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861830843':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861830844':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861830845':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861830846':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861830847':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861830848':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861830849':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861830850':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861830851':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861830852':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861830853':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861830854':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861830855':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861830856':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861830857':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861830858':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861830859':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861830860':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861830861':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861830862':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861830863':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861830864':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861830865':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861830866':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861830867':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861830868':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861830869':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861830870':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861830871':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861830872':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861830873':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861830874':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861830875':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861830876':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861830877':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861830878':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861830879':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861830880':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861830881':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861830882':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861830883':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861830884':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861830885':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861830886':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861830887':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861830888':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861830889':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '86183089':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861830900':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861830901':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861830902':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861830903':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861830904':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861830905':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861830906':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861830907':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861830908':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861830909':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861830910':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861830911':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861830912':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861830913':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861830914':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861830915':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861830916':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861830917':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861830918':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861830919':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183092':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861830930':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861830931':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861830932':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861830933':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861830934':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861830935':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861830936':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861830937':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861830938':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861830939':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861830940':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861830941':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861830942':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861830943':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861830944':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861830945':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861830946':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861830947':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861830948':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861830949':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861830950':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830951':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830952':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861830953':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861830954':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861830955':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861830956':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861830957':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830958':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830959':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830960':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830961':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830962':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861830963':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861830964':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861830965':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861830966':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861830967':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830968':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830969':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861830970':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861830971':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861830972':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861830973':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861830974':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861830975':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861830976':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861830977':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861830978':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861830979':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86183098':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861830980':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861830990':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861830991':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861830992':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861830993':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861830994':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861830995':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861830996':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861830997':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861830998':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861830999':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '8618310':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86183110':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86183111':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86183112':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86183113':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86183114':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86183115':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86183116':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86183117':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86183118':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86183119':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861831200':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831201':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831202':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831203':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831204':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831205':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831206':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831207':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831208':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831209':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831210':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831211':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831212':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831213':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831214':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831215':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831216':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831217':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831218':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831219':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831220':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831221':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831222':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831223':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831224':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831225':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831226':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831227':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831228':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831229':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831230':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831231':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831232':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831233':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831234':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831235':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831236':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831237':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831238':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831239':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831240':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831241':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831242':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831243':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831244':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831245':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831246':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831247':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831248':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831249':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86183125':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831254':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831255':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831257':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831259':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831260':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831261':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831262':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831263':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831264':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831265':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831266':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831267':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831268':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831269':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831270':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831271':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831272':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831273':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831274':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831275':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831276':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831277':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831278':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831279':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831280':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831281':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831282':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831283':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831284':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831285':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831286':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861831287':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831288':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831289':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831290':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861831291':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861831292':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861831293':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861831294':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861831295':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861831296':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861831297':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861831298':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861831299':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183130':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861831300':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831301':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831302':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831303':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831310':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831311':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831312':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831313':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831314':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831315':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831316':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831317':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831318':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831319':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831320':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861831321':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861831322':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861831323':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861831324':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861831325':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831326':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831327':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831328':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831329':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86183133':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861831330':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861831337':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831338':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831339':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831340':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831341':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831342':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831343':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861831344':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861831345':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861831346':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861831347':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861831348':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861831349':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '86183135':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '86183136':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861831369':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183137':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183138':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183139':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183140':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861831408':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861831409':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '86183141':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861831418':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861831419':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861831420':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831421':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831422':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831423':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861831424':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861831425':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831426':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831427':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831428':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861831429':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '86183143':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183144':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183145':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183146':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861831470':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861831471':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861831472':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861831473':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861831474':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861831475':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861831476':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861831477':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861831478':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861831479':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861831480':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861831481':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861831482':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861831483':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861831484':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861831485':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861831486':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861831487':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861831488':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861831489':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86183149':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86183150':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183151':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183152':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183153':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861831540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861831541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861831542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861831543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861831544':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861831545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861831546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861831547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861831548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861831549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183155':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '86183156':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183157':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183158':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86183159':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861831600':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831601':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831602':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831603':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861831604':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831605':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831606':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861831607':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831608':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831609':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831610':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831611':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831612':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831613':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831614':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831615':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831616':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831617':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831618':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831619':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831620':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831621':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831622':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831623':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831624':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831625':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831626':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831627':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831628':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831629':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '86183163':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831630':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831634':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831640':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831641':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831642':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831643':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831644':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831645':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831646':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831647':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831648':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831649':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831650':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831651':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831652':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831653':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831654':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831655':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831656':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831657':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831658':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831659':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831660':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831661':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831662':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831663':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831664':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831665':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831666':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831667':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831668':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861831669':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831670':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831671':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831672':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831673':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831674':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831675':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831676':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831677':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831678':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831679':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831680':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831681':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831682':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831683':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831684':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831685':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831686':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831687':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831688':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831689':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831690':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831691':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831692':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831693':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831694':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831695':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831696':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831697':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831698':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831699':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86183170':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86183171':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861831720':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861831721':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861831722':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861831723':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861831724':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861831725':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861831726':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861831727':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861831728':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861831729':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86183173':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86183174':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861831747':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861831748':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861831749':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86183175':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861831756':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861831757':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861831758':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861831759':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86183176':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86183177':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86183178':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861831790':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861831791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861831792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861831793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861831794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861831795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861831796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861831797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861831798':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861831799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861831800':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861831801':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831802':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831803':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831804':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831805':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831806':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831807':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831808':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831809':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831810':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831811':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861831812':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831813':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831814':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831815':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831816':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831817':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831818':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831819':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831820':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831821':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831822':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831823':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831824':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831825':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831826':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831827':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831828':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831829':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831830':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831831':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831832':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831833':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831834':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831835':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831836':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831837':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831838':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831839':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831840':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831841':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831842':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831843':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831844':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831845':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831846':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831847':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831848':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831849':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831850':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831851':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831852':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831853':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831854':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831855':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831856':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831857':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831858':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831859':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831860':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831861':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831862':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831863':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831864':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831865':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831866':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831867':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831868':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831869':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831870':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831871':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831872':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831873':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831874':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831875':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831876':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831877':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831878':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831879':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831880':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831881':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831882':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831883':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831884':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861831885':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861831886':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831887':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831888':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831889':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831890':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831891':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831892':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831893':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831894':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831895':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831896':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831897':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861831898':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831899':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '86183190':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831900':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831907':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831908':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831909':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831910':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831911':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831912':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831913':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831914':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831915':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831916':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831917':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831918':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831919':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831920':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831921':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831922':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861831923':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831924':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831925':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831926':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831927':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831928':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831929':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831930':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831931':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831932':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831933':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831934':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831935':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831936':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831937':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831938':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831939':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831940':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831941':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831942':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831943':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831944':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831945':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831946':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861831947':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831948':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831949':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831950':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831951':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831952':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861831953':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861831954':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831955':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831956':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831957':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831958':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861831959':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831960':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831961':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831962':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831963':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831964':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831965':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831966':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831967':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831968':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831969':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86183197':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861831970':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831971':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831977':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861831980':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861831981':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861831982':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861831983':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831984':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831985':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831986':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861831987':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831988':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861831989':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861831990':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861831991':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831992':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861831993':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861831994':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861831995':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861831996':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831997':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861831998':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861831999':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86183200':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86183201':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86183202':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861832020':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861832027':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861832028':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861832029':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '86183203':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861832034':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861832040':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861832041':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861832042':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861832043':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861832044':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861832045':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861832046':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861832047':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861832048':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861832049':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '86183205':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '86183206':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861832066':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861832069':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86183207':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861832070':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861832071':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861832072':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861832073':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86183208':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86183209':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '8618321':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '8618322':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86183228':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861832290':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861832291':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861832292':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861832293':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861832294':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861832295':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861832296':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861832297':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861832298':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861832299':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '8618323':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183240':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861832400':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861832401':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861832402':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861832403':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '86183241':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183242':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86183243':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86183244':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861832450':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861832451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861832452':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861832453':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861832454':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861832455':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832456':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861832457':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832458':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832459':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861832460':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861832461':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861832462':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832463':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861832464':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861832465':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832466':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832467':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861832468':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832469':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861832470':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861832471':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861832472':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861832473':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861832474':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861832475':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861832476':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861832477':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861832478':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861832479':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86183248':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861832490':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861832491':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861832492':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861832493':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861832494':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861832495':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861832496':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861832497':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861832498':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861832499':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86183250':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183251':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183252':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183253':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861832540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861832541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861832542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861832543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861832544':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861832545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861832546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861832547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861832548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861832549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183255':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '86183256':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86183257':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '86183258':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86183259':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86183260':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86183261':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86183262':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86183263':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861832640':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861832641':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861832642':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861832643':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861832644':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861832645':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861832646':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861832647':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861832648':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861832649':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86183265':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861832657':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861832658':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861832659':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '86183266':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86183267':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861832670':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861832671':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '86183268':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86183269':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861832697':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861832698':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861832699':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '86183270':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183271':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183272':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183273':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861832740':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861832741':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861832742':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861832743':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861832744':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861832745':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861832746':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861832747':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861832748':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861832749':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '86183275':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '86183276':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '86183277':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '86183278':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861832788':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861832789':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '86183279':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '8618328':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183281':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '86183282':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '86183288':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183289':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183290':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86183291':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86183292':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '86183293':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861832940':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832941':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861832942':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861832943':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861832944':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861832945':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861832946':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861832947':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861832948':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832949':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183295':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861832956':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832957':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832958':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832959':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183296':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861832967':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861832968':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832969':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183297':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832980':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861832981':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861832982':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861832983':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861832984':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861832985':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861832986':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861832987':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861832988':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861832989':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861832990':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861832991':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861832992':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832993':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832994':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832995':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832996':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861832997':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861832998':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861832999':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183300':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86183301':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183302':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861833030':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833031':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833032':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833033':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833034':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833035':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861833036':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861833037':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861833038':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861833039':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '86183304':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86183305':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86183306':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86183307':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86183308':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '86183309':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86183310':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86183311':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86183312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86183313':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861833140':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861833141':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861833142':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861833143':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861833144':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861833145':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833146':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833147':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833148':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833149':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '86183315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86183316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861833170':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861833171':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861833172':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861833173':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861833174':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861833175':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833176':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833177':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833178':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833179':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833180':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833181':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833182':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833183':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833184':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833185':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861833186':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861833187':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861833188':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861833189':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86183319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86183320':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183321':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183322':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183323':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183324':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183325':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '86183326':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86183327':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86183328':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86183329':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86183330':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86183331':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183332':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86183333':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861833340':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861833341':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861833342':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833343':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833344':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833345':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861833346':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861833347':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861833348':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861833349':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86183335':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '86183336':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86183337':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861833380':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833381':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833382':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833383':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833384':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861833385':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833386':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833387':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833388':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861833389':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86183339':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86183340':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861833410':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861833411':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861833412':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861833413':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861833414':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861833415':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861833416':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861833417':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861833418':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861833419':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86183342':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86183343':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86183344':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86183345':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86183346':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '86183347':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86183348':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86183349':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '86183350':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '86183351':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86183352':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '86183353':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '86183354':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86183355':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86183356':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '86183357':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '86183358':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86183359':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861833600':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833601':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833602':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861833603':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861833604':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861833605':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861833606':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833607':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833608':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833609':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86183361':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861833618':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861833619':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86183362':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861833620':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861833621':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861833622':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861833623':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86183363':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833640':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861833641':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861833642':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861833643':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861833644':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833645':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861833646':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833647':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861833648':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861833649':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86183365':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86183366':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86183367':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86183368':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86183369':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86183370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86183371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86183372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86183373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86183374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '86183375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86183376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86183377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86183378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '86183379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86183380':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861833800':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861833801':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86183381':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86183382':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86183383':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86183384':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861833847':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861833848':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861833849':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86183385':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86183386':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86183387':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86183388':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86183389':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86183390':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '86183391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86183392':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86183393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86183394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861833950':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833951':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833952':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833953':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833954':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861833955':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861833956':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861833957':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861833958':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861833959':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '86183396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86183397':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861833980':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833981':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833982':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833983':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833984':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861833985':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861833986':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861833987':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861833988':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861833989':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '86183399':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86183400':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86183401':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86183402':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '86183403':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86183404':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861834050':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834051':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834052':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834053':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834054':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834055':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861834056':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861834057':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861834058':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861834059':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '86183406':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '86183407':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '86183408':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86183409':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '86183410':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '86183411':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86183412':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '86183413':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '86183414':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '86183415':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '86183416':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '86183417':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '86183418':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '86183419':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '86183420':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86183421':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '86183422':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861834230':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861834231':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861834232':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861834233':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861834234':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861834235':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834236':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834237':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834238':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861834239':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '86183424':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86183425':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '86183426':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '86183427':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '86183428':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '86183429':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '86183430':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86183431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86183432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '86183433':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '86183434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '86183435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '86183436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '86183437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '86183438':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '86183439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861834400':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861834401':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834402':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834403':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834404':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861834405':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861834406':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861834407':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861834408':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834409':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861834410':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861834411':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861834412':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861834413':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861834414':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834415':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861834416':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861834417':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861834418':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834419':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861834420':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861834421':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861834422':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861834423':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861834424':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861834425':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834426':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861834427':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861834428':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861834429':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834430':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834431':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834432':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834433':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861834434':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834435':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861834436':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861834437':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861834438':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834439':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861834440':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861834441':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861834442':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861834443':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861834444':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861834445':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861834446':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861834447':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861834448':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861834449':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861834450':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861834451':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861834452':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861834453':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861834454':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861834455':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861834456':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834457':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834458':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834459':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861834460':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861834461':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861834462':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861834463':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861834464':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861834465':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861834466':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861834467':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861834468':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861834469':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861834470':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861834471':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861834472':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861834473':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861834474':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861834475':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861834476':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861834477':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861834478':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861834479':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861834480':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861834481':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861834482':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861834483':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861834484':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861834485':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861834486':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861834487':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861834488':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861834489':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86183449':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86183450':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183452':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861834522':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861834523':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861834524':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '86183453':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861834540':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861834541':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861834542':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861834543':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861834544':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861834545':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861834546':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861834547':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861834548':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861834549':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183455':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86183456':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '86183457':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861834577':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '86183458':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861834586':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861834587':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861834588':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861834589':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '86183459':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86183460':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183461':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183462':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183463':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '86183464':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861834646':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861834647':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861834648':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861834649':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '86183465':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183466':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86183467':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '86183468':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861834682':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861834683':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861834684':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '86183469':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861834698':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '86183470':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '86183471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86183472':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861834730':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861834731':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861834732':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861834733':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861834734':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861834735':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861834736':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861834737':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861834738':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861834739':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '86183474':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '86183475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '86183476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '86183477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861834778':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861834779':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861834780':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861834781':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861834782':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861834783':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861834784':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861834785':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861834786':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861834787':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861834788':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861834789':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '86183479':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861834790':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '86183480':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861834808':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861834809':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86183481':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861834817':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861834818':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861834819':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86183482':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861834828':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861834829':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86183483':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861834830':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861834831':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86183484':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861834840':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861834841':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861834842':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861834843':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86183485':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183486':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86183487':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86183488':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86183489':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86183490':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86183491':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183492':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183493':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183495':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86183496':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183497':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86183498':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861834990':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861834991':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861834992':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861834993':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861834994':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861834995':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861834996':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861834997':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861834998':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861834999':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '86183500':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86183501':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86183502':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '86183503':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861835040':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835041':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835042':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835043':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835044':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835045':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835046':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835047':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835048':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835049':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '86183505':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86183506':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86183507':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86183508':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '86183509':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861835100':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861835101':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835102':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835103':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835104':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861835105':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861835106':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835107':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835108':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835109':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835110':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835111':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835112':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835113':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835114':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835115':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835116':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835117':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835118':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835119':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835120':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861835121':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861835122':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861835123':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861835124':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835125':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835126':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835127':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861835128':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861835129':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835130':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835131':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835132':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835133':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835134':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861835135':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861835136':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861835137':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835138':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835139':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835140':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861835141':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835142':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835143':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861835144':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861835145':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861835146':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861835147':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861835148':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861835149':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861835150':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835151':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835152':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835153':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861835154':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861835155':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861835156':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835157':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835158':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835159':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86183516':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86183517':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86183518':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86183519':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86183520':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86183521':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86183522':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86183523':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861835239':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86183524':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861835246':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835247':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835248':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835249':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86183525':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835260':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861835261':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835262':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835263':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861835264':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861835265':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835266':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835267':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835268':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861835269':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '86183527':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '86183528':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861835280':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861835281':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861835282':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861835283':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86183529':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86183531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86183532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86183533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86183534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86183535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86183536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86183537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86183538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86183539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86183541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86183542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86183543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86183544':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86183546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '86183547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86183548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86183549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86183551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86183552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861835520':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861835521':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86183553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86183554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '86183555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '86183556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86183557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '86183558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861835590':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861835591':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861835592':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861835593':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861835594':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861835595':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835596':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835597':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835598':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835599':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '86183560':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86183561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861835613':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835614':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835620':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835621':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835622':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835623':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835624':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861835625':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861835626':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861835627':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861835628':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861835629':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '86183563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861835635':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835636':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861835637':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86183564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861835650':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835651':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835652':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835653':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835654':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835655':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835656':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835657':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835658':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835659':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86183566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '86183567':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86183568':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861835690':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835691':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835692':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835693':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861835694':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835695':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835696':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861835697':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835698':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835699':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861835700':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861835701':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861835702':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861835703':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861835704':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861835705':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861835706':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861835707':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861835708':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861835709':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '86183571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861835720':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861835721':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861835722':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861835723':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861835724':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861835725':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861835726':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861835727':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861835728':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861835729':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86183573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86183574':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86183576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86183577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861835780':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861835781':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861835782':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861835783':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861835784':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861835785':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861835786':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861835787':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861835788':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861835789':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '86183579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861835800':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861835801':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861835802':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861835803':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861835804':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861835805':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861835806':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861835807':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861835808':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861835809':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '86183581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86183582':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183583':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86183584':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183585':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86183586':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86183587':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86183588':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '86183589':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861835900':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835901':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835902':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835903':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835904':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861835905':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861835906':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861835907':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861835908':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861835909':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '86183591':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86183592':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861835930':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835931':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835932':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835933':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835934':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861835935':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861835936':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861835937':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861835938':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861835939':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '86183594':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86183595':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86183596':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861835970':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861835971':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861835972':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861835973':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861835974':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861835975':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861835976':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861835977':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861835978':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861835979':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86183598':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86183599':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861835990':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861835991':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86183600':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861836000':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861836001':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '86183601':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86183602':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86183603':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836030':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836031':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836032':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836033':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836040':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861836041':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861836042':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861836043':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861836044':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836045':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836046':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836047':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836048':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836049':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86183605':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86183606':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86183607':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861836080':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861836081':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861836082':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861836083':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861836084':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836085':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836086':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836087':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836088':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836089':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '86183609':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '86183610':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836106':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836107':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836108':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836109':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86183611':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86183612':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86183613':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861836130':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836131':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836140':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861836141':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836142':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836143':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861836144':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836145':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861836146':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836147':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861836148':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836149':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86183615':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86183616':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86183617':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861836180':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861836181':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836182':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836183':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861836184':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836185':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836186':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836187':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861836188':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836189':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86183619':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836200':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836201':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836202':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836203':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836204':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836205':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836206':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836207':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836208':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861836209':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86183621':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '86183622':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861836220':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836221':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86183623':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861836230':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861836231':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861836232':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861836240':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861836241':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861836242':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836243':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836244':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836245':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861836246':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836247':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861836248':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861836249':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86183625':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86183626':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86183627':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861836280':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861836281':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861836282':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861836283':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861836284':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836285':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861836286':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861836287':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861836288':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861836289':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '86183629':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86183630':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86183631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '86183632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86183633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '86183634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '86183635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86183636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86183637':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86183638':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86183639':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86183640':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86183641':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86183642':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86183643':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86183644':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86183645':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86183646':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86183647':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86183648':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86183649':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86183650':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86183651':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861836520':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861836521':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861836522':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861836523':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861836524':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861836525':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861836526':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861836527':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861836528':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861836529':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86183653':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861836538':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861836539':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861836540':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861836541':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861836542':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861836543':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861836544':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861836545':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861836546':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861836547':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861836548':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861836549':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86183655':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86183656':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86183657':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86183658':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86183659':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86183660':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86183661':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86183662':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86183663':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86183664':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86183665':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86183666':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861836666':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861836667':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861836668':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861836669':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86183667':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861836670':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86183668':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86183669':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '86183670':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '86183671':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86183672':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86183673':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86183674':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183675':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861836760':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861836761':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861836762':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861836763':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861836764':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861836765':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861836766':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861836767':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861836768':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861836769':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86183677':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86183678':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86183679':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861836800':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861836801':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861836802':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861836803':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861836804':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861836805':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861836806':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861836807':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861836808':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861836809':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '86183681':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86183682':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183683':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86183684':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183685':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86183686':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861836860':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861836861':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861836862':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '86183687':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86183688':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861836890':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861836891':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861836892':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861836893':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861836894':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861836895':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861836896':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861836897':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861836898':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861836899':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '86183690':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86183691':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861836916':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861836917':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861836918':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861836919':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '86183692':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86183693':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183694':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183695':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183696':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86183697':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86183698':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86183699':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86183700':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861837008':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861837009':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86183701':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861837010':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861837011':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861837012':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861837013':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86183702':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86183703':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86183704':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86183705':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86183706':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86183707':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86183708':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86183709':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861837090':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861837091':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861837092':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861837093':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '86183710':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '86183711':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861837110':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861837117':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837118':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837119':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183712':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861837128':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837129':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183713':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861837140':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861837141':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861837142':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861837143':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861837144':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861837145':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837146':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837147':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837148':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837149':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837150':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861837151':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861837152':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861837153':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861837154':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861837155':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837156':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837157':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837158':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837159':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183716':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '86183717':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '86183718':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837187':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861837188':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861837189':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '86183719':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861837198':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837199':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183720':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183721':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86183722':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861837226':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861837227':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861837228':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861837229':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '86183723':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '86183724':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861837249':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '86183725':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183726':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '86183727':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861837277':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861837278':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861837279':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '86183728':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861837289':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '86183729':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861837298':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861837299':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '86183730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86183731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86183732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '86183733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '86183734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '86183735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '86183736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86183737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '86183738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '86183739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86183740':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837410':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837411':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837412':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837413':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837414':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837415':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861837416':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861837417':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861837418':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861837419':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861837420':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861837421':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861837422':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861837423':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861837424':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861837425':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837426':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837427':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861837428':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837429':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '86183743':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837440':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861837441':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861837442':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861837443':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861837444':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861837445':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837446':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837447':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837448':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837449':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86183745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '86183746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '86183747':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '86183748':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837490':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861837491':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861837492':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861837493':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861837494':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861837495':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837496':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837497':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837498':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861837499':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86183750':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183751':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837520':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837521':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837522':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837523':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837524':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861837525':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861837526':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861837527':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861837528':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861837529':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861837530':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861837531':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861837532':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861837533':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861837534':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861837535':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861837536':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861837537':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861837538':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861837539':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861837540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861837541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861837542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861837543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861837544':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861837545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861837546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861837547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861837548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861837549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183755':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '86183756':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183757':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183758':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86183759':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '8618376':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86183762':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86183763':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86183764':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86183765':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86183770':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '86183771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86183772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86183773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86183774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86183775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86183776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '86183777':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '86183778':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '86183779':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861837800':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861837801':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861837802':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861837803':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861837804':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861837805':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861837806':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861837807':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861837808':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861837809':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86183781':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86183782':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86183783':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86183784':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86183785':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86183786':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861837867':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861837868':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861837869':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86183787':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861837876':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861837877':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861837878':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861837879':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86183788':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861837886':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861837887':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861837888':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861837889':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '86183789':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861837890':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861837891':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861837892':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861837893':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861837900':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861837901':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861837902':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861837903':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861837904':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861837905':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861837906':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861837907':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861837908':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861837909':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86183791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861837910':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861837911':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861837912':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86183792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86183793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86183794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '86183795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861837950':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861837959':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861837960':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861837961':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861837962':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861837963':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861837964':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861837965':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861837966':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861837967':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861837968':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861837969':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86183797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861837973':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86183798':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861837983':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86183799':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861837997':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861837998':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861837999':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86183800':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183801':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183802':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183803':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183804':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183805':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86183806':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86183807':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86183808':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86183809':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86183810':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861838110':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838111':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838112':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838113':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838114':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838115':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861838116':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861838117':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861838118':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861838119':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '86183812':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '86183813':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861838140':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861838141':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861838142':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861838143':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861838144':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861838145':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861838146':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861838147':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861838148':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861838149':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861838150':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861838151':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861838152':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861838153':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861838154':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861838155':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861838156':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861838157':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861838158':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861838159':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '86183816':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86183817':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86183818':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86183819':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86183820':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183821':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183822':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183823':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183824':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183825':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '86183826':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '86183827':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '86183828':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861838280':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861838281':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '86183829':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86183830':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86183831':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86183832':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '86183833':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86183834':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183835':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '86183836':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86183837':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '86183838':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86183839':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861838400':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861838401':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861838402':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861838403':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861838404':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861838405':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861838406':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861838407':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861838408':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861838409':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86183841':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183842':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183843':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86183844':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861838450':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838451':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838452':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838453':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838454':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861838455':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861838456':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861838457':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861838458':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861838459':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '86183846':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86183847':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183848':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86183849':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '86183850':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86183851':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86183852':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86183853':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861838538':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861838539':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '86183854':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861838546':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861838547':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861838548':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861838549':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183855':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183856':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861838567':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838568':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838569':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86183857':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838580':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838581':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838582':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838583':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838584':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861838585':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861838586':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861838587':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861838588':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861838589':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86183859':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86183860':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861838600':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861838601':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861838602':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86183861':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86183862':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86183863':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861838637':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861838638':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861838639':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183864':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183865':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86183866':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86183867':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86183868':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183869':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183870':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '86183871':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183872':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861838729':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183873':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183874':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '86183875':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '86183876':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86183877':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861838776':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861838777':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861838778':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861838779':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '86183878':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183879':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86183880':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183881':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183882':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183883':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861838839':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183884':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86183885':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '86183886':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861838869':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '86183887':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861838880':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861838881':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861838882':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861838883':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861838884':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861838885':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861838886':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861838887':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861838888':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861838889':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '86183889':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861838899':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '8618389':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861838900':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861838901':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861838902':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861838903':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861838904':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861838905':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861838906':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861838907':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861838908':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861838909':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '86183891':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '86183900':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86183901':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86183902':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86183903':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861839040':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861839041':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861839042':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861839043':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861839044':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861839045':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861839046':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861839047':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861839048':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861839049':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '86183905':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '86183906':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86183907':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86183908':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86183909':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86183910':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '86183911':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861839119':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '86183912':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '86183913':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839140':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861839141':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861839142':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861839143':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839144':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839145':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839146':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861839147':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861839148':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839149':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183915':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861839158':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839159':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183916':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861839169':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '86183917':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861839180':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861839181':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861839182':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861839183':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839184':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861839185':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839186':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839187':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861839188':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861839189':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '86183919':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861839198':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861839199':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86183920':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183921':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183922':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861839230':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861839231':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839232':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839233':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839234':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839235':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839236':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839237':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839238':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839239':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183924':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183925':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183926':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183927':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861839280':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839281':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839282':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839283':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839284':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839285':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839286':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839287':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839288':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839289':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839290':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861839291':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861839292':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861839293':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861839294':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839295':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839296':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839297':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839298':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839299':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86183930':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839309':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839310':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839311':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839312':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839313':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839314':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839315':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839316':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839317':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839318':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839319':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '86183932':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '86183933':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839330':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839331':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839332':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839340':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839341':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839342':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839343':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839344':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839345':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839346':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839347':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839348':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839349':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '86183935':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839350':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839351':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839352':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '86183936':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839370':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839371':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839372':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839373':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839374':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839375':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839376':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839377':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839378':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839379':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839380':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839381':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839382':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839383':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839384':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839385':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839386':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839387':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839388':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839389':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861839390':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839391':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839392':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839393':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839394':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839395':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839396':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839397':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839398':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839399':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839400':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839401':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839402':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839403':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839404':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839405':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839406':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839407':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839408':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839409':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '86183941':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839410':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839411':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839412':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839419':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839420':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839421':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839422':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839423':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839424':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839425':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839426':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839427':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839428':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839429':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839430':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839431':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839432':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839433':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839434':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839435':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839436':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839437':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861839438':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839439':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839440':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839441':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839442':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839443':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839444':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839445':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839446':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839447':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839448':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839449':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839450':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839451':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839452':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839453':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839454':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839455':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839456':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839457':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839458':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861839459':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839460':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839461':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839462':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839463':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839464':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861839465':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861839466':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839467':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839468':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839469':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839470':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839471':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839472':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839473':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839474':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839475':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839476':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839477':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861839478':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861839479':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839480':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839481':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861839482':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861839483':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839484':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839485':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839486':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839487':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839488':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839489':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839490':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861839491':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861839492':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861839493':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861839494':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839495':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839496':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839497':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861839498':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839499':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861839500':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839501':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839502':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861839503':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861839504':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861839505':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861839506':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861839507':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839508':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839509':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839510':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839511':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839512':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861839513':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861839514':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861839515':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861839516':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861839517':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839518':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839519':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839520':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839521':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839522':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861839523':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861839524':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861839525':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861839526':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861839527':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839528':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861839529':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '86183953':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861839540':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861839541':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839542':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861839543':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861839544':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861839545':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839546':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861839547':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861839548':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861839549':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861839550':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861839551':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861839552':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861839553':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861839554':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861839555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861839556':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861839557':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861839558':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861839559':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861839560':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861839561':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861839562':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861839563':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861839564':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861839565':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861839566':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861839567':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861839568':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861839569':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86183957':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '86183958':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86183959':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86183960':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '86183961':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861839620':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861839621':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861839622':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861839623':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861839624':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861839625':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839626':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839627':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839628':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839629':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86183963':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861839640':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861839641':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861839642':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861839643':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861839644':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861839645':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839646':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839647':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839648':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839649':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861839650':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861839651':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861839652':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861839653':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861839654':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861839655':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861839656':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861839657':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861839658':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861839659':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '86183966':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86183967':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86183968':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86183969':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861839700':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839701':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861839702':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839703':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839704':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839705':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839706':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839707':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839708':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861839709':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839710':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861839711':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861839712':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839713':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839714':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839715':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861839716':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839717':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839718':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839719':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86183972':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '86183973':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861839740':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861839741':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861839742':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861839743':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861839744':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861839745':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861839746':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861839747':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861839748':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861839749':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '86183975':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '86183976':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86183977':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861839780':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861839781':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861839782':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861839783':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861839784':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861839785':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861839786':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861839787':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861839788':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861839789':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861839790':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861839791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861839792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861839793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861839794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861839795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861839796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861839797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861839798':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861839799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '86183980':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86183981':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '86183982':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861839826':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861839827':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861839828':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861839829':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861839830':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861839831':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861839832':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861839833':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861839834':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861839835':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861839836':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861839837':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861839838':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839839':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861839840':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861839841':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861839842':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861839843':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861839844':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861839845':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861839846':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861839847':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861839848':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861839849':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86183985':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861839860':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861839861':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861839862':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861839863':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861839864':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861839865':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861839866':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861839867':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861839868':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861839869':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861839870':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861839871':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861839872':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861839873':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861839874':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861839875':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861839876':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861839877':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861839878':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861839879':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '86183988':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86183989':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861839900':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839901':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839902':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861839903':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861839904':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839905':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839906':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839907':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839908':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839909':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861839910':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839911':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839912':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839913':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839914':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839915':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839916':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839917':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861839918':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861839919':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839920':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861839921':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839922':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839923':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839924':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839925':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839926':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839927':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839928':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839929':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839930':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839931':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839932':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861839933':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839934':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839935':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839936':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839937':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839938':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839939':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839940':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839941':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839942':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839943':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839944':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839945':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839946':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839947':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861839948':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861839949':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839950':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839951':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839952':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839953':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861839954':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839955':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839956':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839957':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839958':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839959':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '86183996':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861839966':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861839967':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861839968':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861839969':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861839970':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839971':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861839972':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861839973':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861839974':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861839975':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861839976':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861839977':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861839978':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861839979':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '86183998':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861839980':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861839981':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861839982':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861839983':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '86183999':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '86184007':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86184008':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '8618401':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861840200':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861840201':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861840202':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861840203':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861840204':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861840205':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861840206':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861840207':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861840208':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861840209':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '86184021':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86184022':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86184023':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86184024':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86184025':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184026':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '86184027':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86184028':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184029':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861840296':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861840297':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861840298':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861840300':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861840301':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861840302':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861840303':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861840304':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861840305':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861840306':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861840307':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861840308':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861840309':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861840310':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861840311':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861840312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861840313':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861840314':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861840315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861840316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861840317':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861840318':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861840319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861840320':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861840321':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861840322':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861840323':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861840324':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861840325':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861840326':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861840327':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861840328':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861840329':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861840330':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861840331':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861840332':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861840333':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861840334':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861840335':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861840336':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861840337':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861840338':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861840339':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86184034':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861840350':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861840351':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861840352':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861840353':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861840354':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861840355':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861840356':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861840357':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861840358':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861840359':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86184036':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861840370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861840371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861840372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861840373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861840374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861840375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861840376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861840377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861840378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861840379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861840380':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861840381':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861840382':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861840383':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861840384':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861840385':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861840386':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861840387':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861840388':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861840389':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861840390':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861840391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861840392':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861840393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861840394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861840395':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861840396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861840397':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861840398':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861840399':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86184040':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861840410':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861840411':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861840412':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861840413':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861840414':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861840415':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861840416':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861840417':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861840418':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861840419':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '86184042':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861840426':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861840427':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861840428':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861840429':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861840430':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861840431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861840432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861840433':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861840434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861840435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861840436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861840437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861840438':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861840439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '86184044':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861840450':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861840451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861840452':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861840453':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861840454':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861840455':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861840456':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861840457':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861840458':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861840460':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861840461':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861840462':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861840463':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861840464':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861840465':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861840466':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861840467':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861840468':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861840469':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861840470':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861840471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861840472':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861840473':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861840474':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861840475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861840476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861840477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861840478':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861840479':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861840480':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861840481':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861840482':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861840483':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '861840484':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861840485':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861840486':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861840487':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861840488':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861840489':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861840490':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861840491':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861840492':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861840493':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861840494':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861840495':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861840496':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861840497':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861840498':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861840499':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86184050':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861840510':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861840511':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861840512':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861840513':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861840514':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861840515':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861840516':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861840517':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861840518':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861840519':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '86184052':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861840530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861840531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861840532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861840533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861840534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861840535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861840536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861840537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861840538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861840539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861840540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861840541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861840542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861840543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861840544':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861840545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861840546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861840547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861840548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861840549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861840550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861840551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861840552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861840553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861840554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861840555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861840556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861840557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861840558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861840559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861840560':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861840561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861840562':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861840563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861840564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861840565':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861840566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861840567':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861840568':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861840569':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861840570':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861840571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861840572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861840573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861840574':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861840575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861840576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861840577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861840578':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861840579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861840580':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861840581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861840582':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861840583':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861840584':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861840585':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861840586':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861840587':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861840588':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861840589':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86184059':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86184060':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86184061':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861840620':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861840621':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861840622':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861840623':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861840624':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861840625':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861840626':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861840627':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861840628':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861840629':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861840630':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861840631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861840632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861840633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861840634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861840635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861840636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861840637':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861840638':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861840639':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861840640':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861840641':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861840642':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861840643':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861840644':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861840645':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861840646':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861840647':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861840648':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861840649':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86184065':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861840660':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861840661':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861840662':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861840663':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861840664':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861840665':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861840666':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861840667':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861840668':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861840669':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861840670':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861840671':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861840672':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861840673':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861840674':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861840675':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861840676':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861840677':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861840678':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861840679':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86184068':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861840689':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861840690':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861840691':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861840692':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861840693':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861840694':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861840695':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861840696':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861840697':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861840698':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861840699':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '86184070':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861840701':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861840710':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861840711':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861840712':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861840713':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861840714':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861840715':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861840716':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861840717':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861840718':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861840719':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861840720':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861840721':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861840722':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861840723':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861840724':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861840725':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861840726':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861840727':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861840728':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861840729':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861840730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861840731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861840732':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861840733':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861840734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861840735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861840736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861840737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861840738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861840739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '86184074':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861840743':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861840744':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861840745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861840746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861840750':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861840751':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861840752':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861840753':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861840754':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861840755':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861840756':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861840757':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861840758':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861840759':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861840760':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861840761':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861840762':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861840763':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861840764':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861840765':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861840766':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861840767':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861840768':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861840769':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861840770':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861840771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861840772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861840773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861840774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861840775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861840776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861840777':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861840778':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861840779':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '86184078':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861840788':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861840789':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861840790':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861840791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861840792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861840793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861840794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861840795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861840796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861840797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861840798':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861840799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '86184080':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861840810':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861840811':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861840812':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861840813':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861840814':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861840815':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861840816':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861840817':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861840818':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861840819':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86184082':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861840830':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861840831':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861840832':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861840833':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861840834':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861840835':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840836':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840837':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861840838':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861840839':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840840':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861840841':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861840842':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861840843':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840844':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840845':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840846':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840847':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840848':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840849':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840850':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861840851':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861840852':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861840853':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861840854':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861840855':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861840856':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861840857':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861840858':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861840859':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861840860':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840861':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861840862':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861840863':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840864':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840865':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840866':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840867':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861840868':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840869':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840870':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861840871':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861840872':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861840873':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861840874':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861840875':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861840876':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861840877':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861840878':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861840879':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86184088':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861840886':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861840887':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840888':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861840890':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861840891':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861840892':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861840893':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861840894':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861840895':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861840896':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861840897':{'en': 'Ngari, Tibet', 'zh': u('\u897f\u85cf\u963f\u91cc\u5730\u533a')}, '861840898':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861840899':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861840900':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861840901':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861840902':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861840903':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861840904':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861840905':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861840906':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861840907':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861840908':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861840909':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861840910':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861840911':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861840912':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861840913':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861840914':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861840915':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861840916':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861840917':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861840918':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861840919':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '861840920':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861840921':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861840922':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861840923':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861840924':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861840925':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861840926':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861840927':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861840928':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861840929':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861840930':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840931':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861840932':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861840933':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861840934':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861840935':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861840936':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861840937':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861840938':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861840939':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861840940':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840941':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840942':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861840943':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861840944':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861840945':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861840946':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861840947':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861840948':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861840949':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861840950':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840951':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861840952':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861840953':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840954':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840955':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840956':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840957':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840958':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861840959':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840960':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861840961':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840962':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861840963':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840964':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840965':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840966':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861840967':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861840968':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861840969':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861840970':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840971':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861840972':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861840973':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861840974':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861840975':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840976':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840977':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861840978':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861840979':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861840980':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861840981':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861840982':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861840983':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861840984':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861840985':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840986':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840987':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840988':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840989':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840990':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861840991':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861840992':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861840993':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861840994':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861840995':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861840996':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861840997':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861840998':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861840999':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '8618410':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '8618411':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86184136':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '86184137':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86184138':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86184139':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '8618414':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861841430':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861841431':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861841432':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861841433':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861841434':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861841435':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861841436':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861841437':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861841438':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '861841439':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '8618415':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '8618416':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '8618417':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '86184178':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86184179':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86184180':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841800':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841801':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '86184181':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841810':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841811':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '86184182':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86184183':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86184184':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86184185':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86184186':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86184189':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861841900':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861841901':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841902':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841903':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841904':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841905':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841906':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841907':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861841908':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841909':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841910':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841911':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841912':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841913':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841914':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841915':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841916':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841917':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861841918':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841919':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841920':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841921':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841922':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841923':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841924':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841925':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841926':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861841927':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841928':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841929':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861841930':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841931':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841932':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841933':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861841934':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861841935':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861841936':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861841937':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841938':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841939':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841940':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841941':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861841942':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841943':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861841944':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841945':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861841946':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841947':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841948':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841949':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861841950':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841951':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841952':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841953':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861841954':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841955':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861841956':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861841957':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861841958':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861841959':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861841960':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841961':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841962':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841963':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861841964':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861841965':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861841966':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861841967':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861841968':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861841969':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841970':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841971':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841972':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841973':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861841974':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841975':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861841976':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861841977':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841978':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841979':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861841980':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841981':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861841982':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861841983':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861841984':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841985':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841986':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861841987':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841988':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861841989':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861841990':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861841991':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841992':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841993':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841994':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861841995':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841996':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861841997':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841998':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861841999':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861842000':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842001':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861842002':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861842003':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861842004':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861842005':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842006':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861842007':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861842008':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842009':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861842010':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861842011':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861842012':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842013':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861842014':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842015':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861842016':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861842017':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861842018':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861842019':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861842020':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861842021':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861842022':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861842023':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861842024':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842025':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842026':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842027':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861842028':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861842029':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842030':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842031':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842032':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842033':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861842034':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842035':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842036':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861842037':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861842038':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861842039':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842040':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861842041':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861842042':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842043':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842044':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861842045':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861842046':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861842047':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861842048':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861842049':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861842050':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861842051':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861842052':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861842053':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861842054':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861842055':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861842056':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861842057':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861842058':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861842059':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '8618421':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '8618422':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86184229':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '8618423':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86184240':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '86184241':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '86184242':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '86184243':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '86184244':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '86184245':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '86184246':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '86184247':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '86184248':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86184249':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '8618425':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '8618426':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '8618427':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861842710':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861842711':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861842712':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861842713':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861842714':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861842715':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861842716':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861842717':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861842718':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861842719':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '8618428':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86184280':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184281':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184282':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184283':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '8618429':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861842902':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861842903':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861842905':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861842906':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861842907':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861842911':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861842912':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861842913':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861842914':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861842915':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861842916':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861842917':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861842919':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '861842921':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861842923':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861842925':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861842926':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861842927':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861842929':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '8618430':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86184310':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86184311':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86184312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86184313':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861843140':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843141':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843142':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843143':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843144':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843145':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843146':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861843147':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861843148':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843149':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86184315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86184316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86184317':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86184318':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '86184319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86184320':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86184321':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86184322':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861843230':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843231':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843232':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843233':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861843234':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843235':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843236':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861843237':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861843238':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861843239':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861843240':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843241':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843242':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843243':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843244':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843245':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843246':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843247':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861843248':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843249':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86184325':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861843260':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843261':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843262':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843263':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861843264':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861843265':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843266':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861843267':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861843268':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861843269':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861843270':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843271':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843272':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843273':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861843274':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843275':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843276':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861843277':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861843278':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861843279':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861843280':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843281':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843282':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843283':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861843284':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861843285':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843286':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861843287':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861843288':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861843289':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861843290':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861843291':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843292':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861843293':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861843294':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861843295':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861843296':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861843297':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861843298':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861843299':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '8618433':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861843400':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861843401':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861843402':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861843403':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861843404':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861843405':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861843406':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861843407':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861843408':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861843409':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861843410':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861843411':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861843412':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861843413':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861843414':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861843415':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861843416':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861843417':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861843418':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861843419':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861843420':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861843421':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861843422':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861843423':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861843424':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861843425':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861843426':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861843427':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843428':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843429':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86184343':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86184344':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86184345':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861843450':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861843451':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861843452':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861843460':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861843461':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861843462':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861843463':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861843464':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861843465':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861843466':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861843467':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861843468':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861843469':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '86184347':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861843470':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861843471':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861843478':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861843479':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '86184348':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861843486':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843487':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843488':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843489':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86184349':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861843490':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843491':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843492':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861843493':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86184350':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '86184351':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86184352':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '86184353':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '86184354':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86184355':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86184356':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '86184357':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '86184358':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86184359':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '8618436':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861843600':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861843601':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861843602':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861843603':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861843605':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861843606':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861843607':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843608':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843609':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843610':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861843611':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861843612':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861843613':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861843615':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843616':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843617':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861843618':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861843619':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861843620':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861843621':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861843622':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861843623':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861843624':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861843625':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861843626':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861843627':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861843628':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861843629':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843630':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861843631':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861843632':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861843633':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861843634':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861843635':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861843636':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843637':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861843638':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86184370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86184371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86184372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86184373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86184374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '86184375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86184376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86184377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86184378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '86184379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86184380':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86184381':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86184382':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861843820':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86184383':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861843840':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861843841':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861843842':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861843843':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861843844':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861843845':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861843846':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861843847':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843848':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861843849':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861843850':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861843851':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861843852':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861843853':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861843854':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861843855':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843856':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843857':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843858':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861843859':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86184386':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86184387':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '86184388':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861843880':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '86184389':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86184390':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86184391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86184392':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86184393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86184394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861843950':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843951':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843952':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843953':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843954':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861843955':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861843956':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861843957':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861843958':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861843959':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86184396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86184397':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '86184398':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86184399':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86184400':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '86184401':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86184402':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86184403':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86184404':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86184405':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86184406':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86184408':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184409':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '8618441':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '8618442':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86184430':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86184431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86184432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '86184433':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '86184434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '86184435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '86184436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '86184437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '86184438':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '86184439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '86184440':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '86184441':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '86184442':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86184443':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86184444':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86184445':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86184450':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86184451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844520':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861844521':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861844522':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861844529':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '86184453':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '86184454':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '86184455':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861844560':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861844561':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861844562':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861844563':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861844565':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844566':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844567':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844568':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844569':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86184457':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844580':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861844581':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861844582':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861844583':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861844584':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861844585':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844586':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844587':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844588':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844589':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86184459':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '8618446':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861844700':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861844701':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861844702':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861844703':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861844704':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861844705':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861844706':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861844707':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861844708':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861844709':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861844710':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861844711':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861844712':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861844713':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861844714':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861844715':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861844716':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861844717':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861844718':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861844719':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861844720':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861844721':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861844722':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861844723':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861844724':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861844725':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861844726':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861844727':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861844728':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861844729':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '86184473':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861844738':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861844739':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861844740':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861844741':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861844742':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861844743':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861844744':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861844745':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861844746':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861844747':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861844748':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861844749':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '86184475':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86184476':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86184477':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86184478':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86184479':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '8618448':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86184490':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86184491':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '86184492':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844930':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861844931':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861844932':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861844933':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861844934':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861844935':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861844936':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861844937':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861844938':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861844939':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861844940':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861844941':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861844942':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861844943':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861844944':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861844945':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861844946':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861844947':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861844948':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861844949':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '86184495':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '86184496':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861844966':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844967':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844968':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844969':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844970':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844971':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844972':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844973':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844974':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861844975':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844976':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844977':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844978':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844979':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '86184498':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861844990':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861844991':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861844992':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861844993':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861844994':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844995':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844996':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861844997':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861844998':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861844999':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '8618450':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861845000':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845001':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845002':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845003':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845004':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845010':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861845011':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861845012':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861845013':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861845014':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861845015':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861845016':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861845017':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861845018':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861845019':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861845025':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845026':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845027':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845028':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861845029':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '86184510':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861845100':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861845101':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86184511':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86184512':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '86184513':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86184514':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86184515':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86184516':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '86184517':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '86184518':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86184519':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '86184520':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184521':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184522':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845230':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861845231':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861845232':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861845233':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861845234':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845235':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845236':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845237':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845238':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845239':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861845240':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861845241':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861845242':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861845243':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861845244':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845245':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861845246':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861845247':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861845248':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861845249':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861845250':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861845251':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861845252':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861845253':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861845254':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845255':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861845256':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861845257':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861845258':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861845259':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861845260':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861845261':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861845262':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861845263':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861845264':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861845265':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861845266':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861845267':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861845268':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861845269':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '86184527':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861845270':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861845271':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861845273':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861845274':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86184528':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184529':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86184531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86184532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86184533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86184534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86184535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86184536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86184537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86184538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86184539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86184540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86184541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86184542':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86184543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861845440':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861845441':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861845442':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861845443':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861845444':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861845445':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861845446':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861845447':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861845448':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861845449':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86184545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86184546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '86184547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86184548':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861845480':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861845481':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861845482':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861845483':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86184549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86184550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86184551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86184552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '86184553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86184554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '86184555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '86184556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86184557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '86184558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86184559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '86184560':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86184561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '86184562':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '86184563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '86184564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86184565':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86184566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '86184567':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86184568':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86184569':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86184570':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '86184571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86184572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86184573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86184574':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86184575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86184576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86184577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86184578':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '86184579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86184580':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86184581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845820':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845821':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845822':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845823':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845824':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845825':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861845826':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861845827':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861845828':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861845829':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861845830':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845831':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845832':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845833':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845834':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845835':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861845836':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861845837':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861845838':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861845839':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861845840':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845841':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845842':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845843':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845844':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845845':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845846':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845847':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845848':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845849':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86184585':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86184586':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86184587':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845880':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845881':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845882':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845883':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845884':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861845885':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845886':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845887':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845888':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845889':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861845890':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861845891':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861845892':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861845893':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861845894':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861845895':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861845896':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861845897':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861845898':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861845899':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86184590':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861845901':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861845905':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86184591':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86184592':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '86184593':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '86184594':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '86184595':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86184596':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86184597':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '86184598':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '86184599':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '86184600':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86184601':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86184602':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86184603':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861846040':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861846041':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861846042':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861846043':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861846044':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861846045':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861846046':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861846047':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861846048':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861846049':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86184605':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184606':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184607':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184608':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184609':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '8618461':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '8618462':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861846200':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846201':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846202':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846203':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846204':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846205':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846206':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846207':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846208':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846209':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846210':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846211':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846212':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846213':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846214':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846215':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846216':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846217':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846218':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846219':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846220':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846221':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846222':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846223':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846224':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846225':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846226':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846227':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846228':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846229':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846230':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846231':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846232':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846233':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846234':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846235':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846236':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846237':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846238':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846239':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846300':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861846301':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861846302':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846303':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846304':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846305':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846306':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846307':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846308':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846309':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86184631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '86184632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86184633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '86184634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '86184635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '86184636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86184637':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846380':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861846381':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861846382':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861846383':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861846384':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861846385':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846386':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846387':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846388':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846389':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86184639':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846400':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846401':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846402':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846403':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846404':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861846405':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846406':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846407':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846408':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846409':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '86184641':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861846420':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846421':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846422':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846423':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846424':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861846425':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846426':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846427':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846428':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846429':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846430':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846431':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846432':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846433':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846434':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861846435':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846436':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846437':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846438':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846439':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861846440':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846441':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846442':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846443':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846444':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861846445':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861846446':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861846447':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861846448':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861846449':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861846450':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846451':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846452':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846453':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846454':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861846455':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861846456':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861846457':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861846458':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861846459':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861846460':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846461':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846462':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846463':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846464':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861846465':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861846466':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861846467':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861846468':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861846469':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861846470':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846471':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846472':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846473':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846474':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861846475':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861846476':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861846477':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861846478':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861846479':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86184648':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861846490':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846491':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846492':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846493':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846494':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861846495':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846496':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846497':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846498':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846499':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861846500':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861846501':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861846502':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861846503':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861846504':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861846505':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861846506':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861846507':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861846508':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861846509':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861846510':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861846511':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861846512':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861846513':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861846514':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861846515':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861846516':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861846517':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861846518':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861846519':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '86184652':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '86184653':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '86184654':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '86184657':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184658':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184659':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861846700':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846701':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861846702':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846703':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846704':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846705':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846706':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846707':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846708':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861846709':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846710':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846711':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861846712':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846713':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846714':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846715':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846716':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846717':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846718':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846719':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86184672':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '86184673':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '86184674':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '86184675':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184676':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184677':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184678':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184679':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184680':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184681':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184682':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184686':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184687':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184688':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184689':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86184690':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861846900':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861846901':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86184691':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184692':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861846920':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861846921':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '86184693':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861846930':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861846931':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861846932':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '86184694':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861846940':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861846941':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861846942':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861846943':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86184695':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861846950':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861846951':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861846952':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184696':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861846960':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861846961':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861846970':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861846971':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861846972':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861846973':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861846974':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861846975':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861846976':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861846977':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861846978':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861846979':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '86184698':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861846980':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861846981':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861846982':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861846983':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861846990':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861846991':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861846992':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861846993':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861846994':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861846995':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861846996':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861846997':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861846998':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861846999':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86184700':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861847010':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861847011':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861847012':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847013':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847014':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847015':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847016':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847017':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861847018':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861847019':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86184702':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86184703':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86184704':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86184705':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86184706':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86184707':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86184708':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184709':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184710':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '86184711':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861847110':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861847111':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861847112':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861847113':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '86184712':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861847126':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847127':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847128':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861847129':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861847130':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847131':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847132':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847133':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847134':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847135':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861847136':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861847137':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861847138':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861847139':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861847140':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861847141':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847142':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861847143':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861847144':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861847145':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847146':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847147':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847148':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847149':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847150':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861847151':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861847152':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861847153':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847154':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861847155':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847156':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847157':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847158':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861847159':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847160':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861847161':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861847162':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861847163':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861847164':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861847165':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861847166':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861847167':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847168':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847169':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86184717':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861847170':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861847171':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861847172':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861847179':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847180':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861847181':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861847182':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847183':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861847184':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861847185':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861847186':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861847187':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861847188':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861847189':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184719':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86184720':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86184728':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86184729':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86184730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86184731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86184732':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86184733':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86184734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '86184735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '86184736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86184737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '86184738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '86184739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861847400':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847401':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847402':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847403':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847404':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847405':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847406':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847407':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847408':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847409':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847410':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847411':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847412':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847413':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847414':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847415':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847416':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847417':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847418':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847419':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '86184742':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86184743':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184744':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '86184745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '86184746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861847470':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847471':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847472':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847473':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847474':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861847475':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861847476':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861847477':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861847478':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861847479':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '86184748':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86184749':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861847500':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861847501':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861847502':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861847503':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847504':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861847505':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847506':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847507':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861847508':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847509':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847510':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861847511':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861847512':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861847513':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847514':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847515':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847516':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847517':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847518':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847519':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847520':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861847521':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847522':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861847523':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847524':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861847525':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861847526':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861847527':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861847528':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861847529':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847530':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847531':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847532':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847533':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847534':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847535':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847536':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847537':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861847538':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861847539':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86184754':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847540':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847541':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847547':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847549':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '86184755':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847550':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847551':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847553':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847558':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847560':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847561':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847562':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847563':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847564':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847565':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847566':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847567':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847568':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861847569':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861847570':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861847571':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861847572':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847573':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847574':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847575':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861847576':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847577':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847578':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847579':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847580':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861847581':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861847582':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861847583':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847584':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861847585':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847586':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847587':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847588':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847589':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '86184759':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '86184760':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847604':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847606':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847607':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847609':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '86184761':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861847618':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847620':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847621':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847622':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861847623':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861847624':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847625':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861847626':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847627':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847628':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861847629':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847630':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847631':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847632':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847633':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847634':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847635':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847636':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847637':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847638':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847639':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847640':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847641':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847642':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847643':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847644':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847645':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847646':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847647':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847648':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847649':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86184765':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861847654':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847655':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847657':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847658':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847660':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847661':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847662':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861847663':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847664':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847665':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847666':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847667':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847668':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847669':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847670':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861847671':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861847672':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847673':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847674':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847675':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847676':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847677':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847678':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847679':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861847680':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847681':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847682':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847683':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847684':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861847685':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847686':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847687':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847688':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847689':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861847690':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847691':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861847692':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847693':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847694':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847695':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847696':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861847697':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861847698':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861847699':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86184770':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86184771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86184772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86184773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '86184774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86184775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86184776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '86184777':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86184778':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '86184779':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '8618478':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861847800':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861847801':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861847802':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861847803':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861847804':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861847805':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861847806':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861847807':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861847808':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861847809':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861847810':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847811':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847812':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847813':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847814':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861847815':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847816':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847817':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847818':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847819':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861847820':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847821':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847822':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847823':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847824':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861847825':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861847826':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861847827':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861847828':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861847829':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861847830':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861847831':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861847832':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861847833':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861847834':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861847835':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861847836':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861847837':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861847838':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861847839':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861847900':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861847901':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861847902':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847903':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847904':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847905':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847906':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861847907':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861847908':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861847909':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '86184791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86184792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86184793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '86184794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '86184795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '86184796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86184797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '86184798':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861847988':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861847989':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '86184799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '8618480':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86184810':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184811':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184812':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86184813':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '86184815':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86184816':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '86184817':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '86184818':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86184819':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861848198':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861848199':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '86184820':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184821':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184822':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184823':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184825':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '86184826':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '86184827':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '86184828':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861848280':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861848281':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '86184829':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861848290':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861848291':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184830':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '86184831':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '86184832':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '86184833':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861848350':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861848351':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861848352':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861848353':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861848354':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861848355':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861848356':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861848357':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861848358':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861848359':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '86184836':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184837':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86184838':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '86184839':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '86184840':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848410':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848411':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848412':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848413':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848414':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848415':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848416':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848417':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848418':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848419':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '86184842':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86184843':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184844':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86184845':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86184846':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86184847':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86184848':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184849':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184850':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848510':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848511':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848512':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848513':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848514':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861848515':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861848516':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861848517':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861848518':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861848519':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86184852':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861848530':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848531':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848532':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848533':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848534':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861848535':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848536':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848537':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848538':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848539':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848540':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848541':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848542':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848543':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848544':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848545':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861848546':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861848547':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861848548':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861848549':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86184855':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86184856':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '86184857':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861848580':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861848581':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861848582':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861848583':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861848584':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861848585':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861848586':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861848587':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861848588':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861848589':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86184859':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184860':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '86184861':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '86184862':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184863':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '86184864':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86184865':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '86184866':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '86184867':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86184868':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184869':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86184870':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861848707':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861848708':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861848709':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184871':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184872':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184873':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184874':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861848749':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '86184875':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861848756':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861848757':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861848758':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861848759':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '86184876':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861848769':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '86184877':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861848770':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861848771':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861848772':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861848773':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '86184878':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861848789':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '86184879':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861848797':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861848798':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861848799':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '8618488':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86184890':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861848910':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861848911':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861848912':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861848913':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861848914':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861848915':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861848916':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861848917':{'en': 'Ngari, Tibet', 'zh': u('\u897f\u85cf\u963f\u91cc\u5730\u533a')}, '861848918':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861848919':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861848920':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861848921':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '861848922':{'en': 'Xigaze, Tibet', 'zh': u('\u897f\u85cf\u65e5\u5580\u5219\u5730\u533a')}, '861848923':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861848924':{'en': 'Nyingchi, Tibet', 'zh': u('\u897f\u85cf\u6797\u829d\u5730\u533a')}, '861848925':{'en': 'Qamdo, Tibet', 'zh': u('\u897f\u85cf\u660c\u90fd\u5730\u533a')}, '861848926':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '861848927':{'en': 'Ngari, Tibet', 'zh': u('\u897f\u85cf\u963f\u91cc\u5730\u533a')}, '861848928':{'en': 'Shannan, Tibet', 'zh': u('\u897f\u85cf\u5c71\u5357\u5730\u533a')}, '861848929':{'en': 'Nagqu, Tibet', 'zh': u('\u897f\u85cf\u90a3\u66f2\u5730\u533a')}, '86184893':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '86184894':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '86184895':{'en': 'Lhasa, Tibet', 'zh': u('\u897f\u85cf\u62c9\u8428\u5e02')}, '86184898':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '86184899':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '8618500':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '8618501':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861850140':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861850141':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861850142':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861850143':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861850144':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861850145':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861850146':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861850147':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861850148':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861850149':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86185015':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86185016':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86185017':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86185020':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86185021':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86185022':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86185023':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861850240':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861850241':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861850242':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861850243':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861850244':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861850245':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861850246':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861850247':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861850248':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861850249':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '86185025':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861850257':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861850258':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861850259':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '86185026':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86185027':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86185028':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86185029':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86185030':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861850310':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861850311':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861850312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861850313':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861850314':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861850315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861850316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861850317':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861850318':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861850319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86185032':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86185033':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '86185034':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861850346':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861850349':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861850350':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861850351':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861850352':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861850353':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861850354':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861850355':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861850356':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861850357':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861850358':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861850359':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86185036':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861850370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861850371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861850372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861850373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861850374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861850375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861850376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861850377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861850378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861850379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86185038':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861850390':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861850391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861850392':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861850393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861850394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861850395':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861850396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861850397':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861850398':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861850399':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '86185040':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861850406':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861850407':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861850408':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861850409':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861850410':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861850411':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861850412':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861850413':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861850414':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861850415':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861850416':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861850417':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861850418':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861850419':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '86185042':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861850421':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861850426':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861850427':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861850429':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861850430':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861850431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861850432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861850433':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861850434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861850435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861850436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861850437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861850438':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861850439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861850440':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861850441':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861850442':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861850443':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861850444':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861850445':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861850446':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861850447':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861850448':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861850449':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861850450':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861850451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861850452':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861850453':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861850454':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861850455':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861850456':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861850457':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861850458':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861850459':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861850460':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861850461':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861850462':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861850463':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861850464':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861850465':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861850466':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861850467':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861850468':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861850469':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861850470':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861850471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861850472':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861850473':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861850474':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861850475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861850476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861850477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861850478':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861850479':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861850480':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861850481':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861850482':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861850483':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '861850484':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861850485':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861850486':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861850487':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861850488':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861850489':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861850490':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861850491':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861850492':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861850493':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '861850494':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861850495':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861850496':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861850497':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861850498':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861850499':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861850500':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861850501':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861850502':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861850503':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861850504':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861850505':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861850506':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861850507':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861850508':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861850509':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861850510':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861850511':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861850512':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861850513':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861850514':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861850515':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861850516':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861850517':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861850518':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861850519':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861850520':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861850521':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861850522':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861850523':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861850524':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861850525':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861850526':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861850527':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861850528':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861850529':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861850530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861850531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861850532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861850533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861850534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861850535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861850536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861850537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861850538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861850539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861850540':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861850541':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861850542':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861850543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861850544':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861850545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861850546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861850547':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861850548':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861850549':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861850550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861850551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861850552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861850553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861850554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861850555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861850556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861850557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861850558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861850559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861850560':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861850561':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861850562':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861850563':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861850564':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861850565':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861850566':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861850567':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861850568':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861850569':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861850570':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861850571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861850573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861850574':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861850575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861850576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861850577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861850578':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861850579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861850580':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861850581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850582':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861850583':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861850584':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861850585':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861850586':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861850587':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861850588':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861850589':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861850590':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861850591':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861850592':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861850593':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861850594':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861850595':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861850596':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861850597':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861850598':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861850599':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '86185060':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86185061':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86185062':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861850630':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861850631':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861850632':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861850633':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861850634':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861850635':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861850636':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861850637':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861850638':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861850639':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861850640':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861850641':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861850642':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861850643':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861850644':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861850645':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861850646':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861850647':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861850648':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861850649':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86185065':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861850657':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850658':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850659':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850660':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861850661':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861850662':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861850663':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861850664':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861850665':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861850666':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861850667':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861850668':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861850669':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '86185067':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861850670':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861850680':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861850681':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850682':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850683':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850684':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850685':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861850686':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861850687':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861850688':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861850689':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86185069':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861850690':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861850694':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861850698':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861850700':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861850701':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861850702':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861850703':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861850704':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861850705':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861850706':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861850707':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861850708':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861850709':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86185071':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861850720':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861850721':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861850722':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861850723':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861850724':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861850725':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861850726':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861850727':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861850728':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861850729':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861850730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861850731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861850732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861850733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861850734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861850735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861850736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861850737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861850738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861850739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861850740':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861850741':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861850742':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861850743':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861850744':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861850745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861850746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861850747':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861850748':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861850749':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861850750':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861850751':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861850752':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861850753':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861850754':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861850755':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861850756':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861850757':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861850758':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861850759':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861850760':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861850761':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861850762':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861850763':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861850764':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861850765':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861850766':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861850767':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861850768':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861850769':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861850770':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861850771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861850772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861850773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861850774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861850775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861850776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861850777':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861850778':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861850779':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861850780':{'en': 'Chongzuo, Guangxi', 'zh': u('\u5e7f\u897f\u5d07\u5de6\u5e02')}, '861850781':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861850782':{'en': 'Laibin, Guangxi', 'zh': u('\u5e7f\u897f\u6765\u5bbe\u5e02')}, '861850783':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861850784':{'en': 'Hezhou, Guangxi', 'zh': u('\u5e7f\u897f\u8d3a\u5dde\u5e02')}, '861850785':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861850786':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861850787':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861850788':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861850789':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861850790':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861850791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861850792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861850793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861850794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861850795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861850796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861850797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861850798':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861850799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861850810':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861850811':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861850812':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861850813':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861850814':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861850815':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861850816':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861850817':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861850818':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861850819':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86185082':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861850825':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861850826':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861850827':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861850830':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861850831':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861850832':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861850833':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861850834':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861850835':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861850836':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850837':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861850838':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861850839':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '86185084':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861850850':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861850851':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861850852':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861850853':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861850854':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861850855':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861850856':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861850857':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861850858':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861850859':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861850860':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861850861':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861850862':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861850863':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861850864':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861850865':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861850866':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861850867':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861850868':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861850869':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861850870':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861850871':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861850872':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861850873':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861850874':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861850875':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861850876':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861850877':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861850878':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861850879':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '86185088':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861850880':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861850882':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861850887':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '86185089':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861850900':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861850901':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861850902':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861850903':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861850904':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861850905':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861850906':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861850907':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861850908':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861850909':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861850910':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861850911':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861850912':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861850913':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861850914':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861850915':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861850916':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861850917':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861850918':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861850919':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '86185092':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861850930':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861850931':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861850932':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861850933':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861850934':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861850935':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861850936':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861850937':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861850938':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861850939':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861850940':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861850941':{'en': 'Gannan, Gansu', 'zh': u('\u7518\u8083\u7701\u7518\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850942':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861850943':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861850944':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861850945':{'en': 'Jinchang, Gansu', 'zh': u('\u7518\u8083\u7701\u91d1\u660c\u5e02')}, '861850946':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861850947':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861850948':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861850949':{'en': 'Longnan, Gansu', 'zh': u('\u7518\u8083\u7701\u9647\u5357\u5e02')}, '861850950':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861850951':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861850952':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861850953':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861850954':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861850955':{'en': 'Zhongwei, Ningxia', 'zh': u('\u5b81\u590f\u4e2d\u536b\u5e02')}, '861850956':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861850957':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861850958':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861850959':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861850970':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850971':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861850972':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861850973':{'en': 'Huangnan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u9ec4\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850974':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850975':{'en': 'Golog, Qinghai', 'zh': u('\u9752\u6d77\u7701\u679c\u6d1b\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850976':{'en': 'Yushu, Qinghai', 'zh': u('\u9752\u6d77\u7701\u7389\u6811\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850977':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850978':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861850979':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861850990':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861850991':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861850992':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861850993':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861850994':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861850995':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861850996':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861850997':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861850998':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861850999':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861851':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86185120':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '86185121':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86185122':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86185123':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86185124':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86185125':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86185126':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861851260':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861851261':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '86185127':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86185128':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86185129':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861851299':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '86185143':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861851570':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861851571':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861851572':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861851573':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861851574':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861851575':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861851576':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861851577':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861851578':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861851579':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '8618516':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '8618520':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86185208':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86185209':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '8618521':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '8618522':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '8618523':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861852400':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861852401':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861852402':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861852403':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861852404':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861852405':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861852406':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861852407':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861852408':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861852409':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861852410':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861852411':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861852412':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852413':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861852414':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861852415':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861852416':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861852417':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861852418':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861852419':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861852420':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861852421':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861852422':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852423':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861852424':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861852425':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861852426':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861852427':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861852428':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861852429':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861852430':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852431':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852432':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852433':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852434':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852435':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861852436':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861852437':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861852438':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861852439':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '86185244':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86185245':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861852459':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '86185246':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861852467':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861852468':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861852469':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '86185247':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861852470':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861852471':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '86185248':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861852480':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '86185249':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861852499':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '86185250':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86185251':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86185252':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86185253':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86185254':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86185255':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86185256':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861852570':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861852571':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861852572':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861852573':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861852574':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861852575':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861852576':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861852577':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852578':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861852579':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '8618526':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86185270':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86185271':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861852710':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861852711':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861852712':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '86185272':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861852720':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861852721':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861852722':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861852723':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861852730':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861852731':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861852732':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861852733':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861852734':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861852735':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861852736':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861852737':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861852738':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861852739':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '8618528':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86185290':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861852906':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861852907':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861852908':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861852909':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86185291':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86185292':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86185293':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86185294':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86185295':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86185296':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861852967':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861852968':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861852969':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '86185300':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853010':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853011':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853012':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853013':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853014':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853015':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853016':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853017':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853018':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853019':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853020':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853021':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853022':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853023':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853024':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853025':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853026':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853027':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853028':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853029':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853030':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853031':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853032':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853033':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853034':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853035':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853036':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853037':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853038':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853039':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861853040':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861853041':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861853042':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853043':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853044':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853045':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853046':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853047':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853048':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853049':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86185305':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853050':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853060':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853061':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853062':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853063':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853064':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853065':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853066':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853067':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853068':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853069':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853070':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853071':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853072':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853073':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853074':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853075':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853076':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853077':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853078':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853079':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86185308':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185309':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185310':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86185311':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86185312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86185313':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '86185314':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '86185315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86185316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853170':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861853171':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861853172':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861853173':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853174':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853175':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853176':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853177':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853180':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853181':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853182':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853183':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853184':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853185':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853186':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853187':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853188':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853189':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '86185319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '86185320':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861853206':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861853207':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861853208':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861853209':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86185321':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861853220':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853221':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853222':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853223':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853224':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853225':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853226':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853227':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853228':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853229':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853230':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853231':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853232':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853233':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853234':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853235':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853236':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853237':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861853238':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853239':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86185324':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '86185325':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853260':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861853261':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853262':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853263':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853264':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853265':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853266':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853267':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853268':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861853269':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86185330':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853307':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861853308':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861853309':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86185331':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86185332':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86185333':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86185334':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86185335':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '86185336':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86185337':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '86185338':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853390':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853391':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853392':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861853393':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861853394':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861853395':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861853396':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861853397':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853398':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861853399':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '86185340':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861853400':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853401':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861853402':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861853409':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853410':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861853411':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861853412':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861853413':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853414':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853415':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853416':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853417':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853418':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853419':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86185342':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853430':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861853431':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861853432':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861853433':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861853434':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853435':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853436':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853437':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853438':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853439':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853440':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853441':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853442':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853443':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853444':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853445':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861853446':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861853447':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853448':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853449':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861853450':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861853451':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861853452':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861853453':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861853454':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853455':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853456':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853457':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853458':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861853459':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86185346':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853470':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853471':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853472':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853473':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853474':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853475':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861853476':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853477':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853478':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853479':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853480':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853481':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853482':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853483':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853484':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853485':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853486':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853487':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853488':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861853489':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86185349':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '86185350':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '86185351':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86185352':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86185353':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861853537':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861853538':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861853539':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '86185354':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86185355':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86185356':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '86185357':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '86185358':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '86185359':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86185360':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853650':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861853651':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853652':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853653':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861853654':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853655':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861853656':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853657':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861853658':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861853659':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '86185366':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86185367':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861853677':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853678':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853679':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '86185368':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86185369':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861853696':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853697':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853698':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861853699':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '86185370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86185371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861853730':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853731':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853732':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853733':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861853734':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853735':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853736':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853737':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853738':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853739':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861853740':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853741':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853742':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853743':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861853744':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861853745':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861853746':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861853747':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861853748':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861853749':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '86185375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86185376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86185377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86185378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '86185379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86185380':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185381':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185382':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853830':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853831':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853832':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853833':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853834':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861853835':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861853836':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861853837':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861853838':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861853839':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861853840':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853841':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853842':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853843':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853844':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853845':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853846':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853847':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861853848':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861853849':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86185385':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185386':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861853869':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86185387':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185388':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861853890':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853891':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853892':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853893':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853894':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853895':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853896':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853897':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853898':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861853899':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '86185390':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '86185391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '86185392':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853920':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861853921':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861853922':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861853923':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '86185393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86185394':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185395':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861853956':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853957':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861853958':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861853959':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86185396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861853962':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861853963':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861853964':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861853965':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '86185397':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861853980':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853981':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861853982':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853983':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853984':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861853985':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853986':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853987':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853988':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861853989':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86185399':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86185400':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861854008':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '86185401':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86185402':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86185403':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861854300':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861854301':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861854302':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861854303':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861854304':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861854305':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861854306':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861854307':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '86185431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861854310':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '86185432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '86185434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '86185435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '86185436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '86185437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '86185439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861854500':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854501':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854502':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861854503':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861854504':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861854505':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861854506':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861854507':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861854508':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861854509':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '86185451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86185452':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861854520':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861854523':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861854525':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861854526':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '86185453':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861854532':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861854533':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861854534':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86185454':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861854547':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861854548':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861854549':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '86185455':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854560':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861854561':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861854562':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854563':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854564':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861854565':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854566':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854567':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861854568':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861854569':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '86185457':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861854570':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861854571':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '86185458':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86185459':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86185460':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86185461':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86185462':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86185463':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '86185464':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861854650':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861854651':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854652':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854653':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854654':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854655':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854656':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861854657':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861854658':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861854659':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86185466':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861854660':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861854661':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854662':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861854663':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86185467':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '86185469':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861854690':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861854691':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861854692':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '86185470':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '86185471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86185472':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '86185473':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '86185474':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '86185475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '86185476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '86185477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '86185478':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861854790':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861854791':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861854792':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861854793':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861854794':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861854795':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861854800':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861854801':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861854802':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '86185481':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86185482':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861854830':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '861854831':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861854832':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '86185487':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '86185488':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86185489':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '8618549':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86185498':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86185499':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '8618550':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861855066':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861855067':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861855068':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861855069':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861855070':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855071':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861855072':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855073':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855074':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855075':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855100':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861855101':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861855102':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861855103':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855104':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855105':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855106':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855107':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861855108':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861855109':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '86185511':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86185512':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86185513':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861855130':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861855131':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861855140':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855141':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855142':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855143':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855144':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861855145':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855146':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861855147':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861855148':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861855149':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '86185515':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861855157':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861855158':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861855159':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '86185516':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86185517':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86185518':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855188':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861855189':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '86185519':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861855197':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855198':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855199':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '86185520':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86185521':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86185522':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861855226':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855227':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855228':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855229':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '86185523':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861855240':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855241':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855242':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855243':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855244':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861855245':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861855246':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861855247':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861855248':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861855249':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861855250':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861855251':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861855252':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861855253':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861855254':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861855255':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855256':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855257':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855258':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855259':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '86185526':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861855268':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861855269':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '86185527':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855278':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855279':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86185528':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '86185529':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861855296':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861855297':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861855298':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861855299':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '86185530':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '86185531':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86185532':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86185533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86185534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86185535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86185536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86185537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86185538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '86185539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86185540':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861855400':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861855401':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861855410':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861855411':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861855412':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861855413':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861855414':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861855415':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861855416':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861855417':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861855418':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861855419':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861855420':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861855421':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861855422':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861855423':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861855424':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861855425':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861855426':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861855427':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861855428':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861855429':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '86185543':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861855440':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861855441':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861855442':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861855443':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861855444':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861855445':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861855446':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861855447':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861855448':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861855449':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86185545':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861855450':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861855451':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '86185546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '86185547':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861855470':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86185548':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861855480':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861855481':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86185549':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861855500':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861855501':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855502':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861855503':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861855504':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861855505':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855506':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861855507':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861855508':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861855509':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861855510':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861855511':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855512':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861855513':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861855514':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861855515':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855516':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855517':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855518':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861855519':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861855520':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861855521':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861855522':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861855523':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861855524':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861855525':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861855526':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861855527':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861855528':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855529':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '86185553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861855538':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855539':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855540':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855541':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855542':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855543':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861855544':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855545':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855546':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861855547':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861855548':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861855549':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861855550':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861855553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861855554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861855555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861855557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861855558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861855559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '86185556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861855568':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855569':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '86185557':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861855579':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861855580':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855581':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855582':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855583':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855584':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861855585':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855586':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855587':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855588':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861855589':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '86185559':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861855597':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861855598':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861855599':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '86185560':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861855610':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861855611':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861855612':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861855613':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855614':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855615':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861855616':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861855617':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861855618':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861855619':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86185562':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861855624':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855625':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855626':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861855627':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86185563':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855630':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861855631':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861855632':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861855633':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86185565':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861855658':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861855659':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '86185566':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861855660':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861855661':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861855662':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861855663':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '86185567':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86185568':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86185569':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '8618557':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86185576':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86185577':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861855770':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86185578':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861855790':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861855791':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861855792':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861855793':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861855794':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861855795':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861855796':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861855797':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861855798':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861855799':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '86185580':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86185581':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86185582':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861855820':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861855821':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861855822':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86185583':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861855840':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, }
91.782001
139
0.647766
124,020
919,931
4.80487
0.087413
0.050344
0.017063
0.030354
0.851447
0.851312
0.851312
0.847505
0.847505
0.847505
0
0.31653
0.065509
919,931
10,022
140
91.791159
0.376646
0.000735
0
0
1
0.028591
0.727901
0.414292
0
0
0
0
0
1
0
false
0
0.0001
0
0.0001
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
1
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
11
72b8521c684fb6ce535afd0152b20fc64c85192e
14,140
py
Python
contrib/database/schema_migration/versions/36357b09c750_added_inventory_timestamp.py
intel-ctrlsys/sensys-releases
080c0b8b55eecc18b0edea76386923fee3a73f57
[ "BSD-3-Clause-Open-MPI" ]
1
2016-12-17T17:17:15.000Z
2016-12-17T17:17:15.000Z
contrib/database/schema_migration/versions/36357b09c750_added_inventory_timestamp.py
intel-ctrlsys/sensys-releases
080c0b8b55eecc18b0edea76386923fee3a73f57
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
contrib/database/schema_migration/versions/36357b09c750_added_inventory_timestamp.py
intel-ctrlsys/sensys-releases
080c0b8b55eecc18b0edea76386923fee3a73f57
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
# # Copyright (c) 2016 Intel Inc. All rights reserved # """Added Inventory timestamp Added 'time_stamp' column to node_feature Updated add_node_feature(), update_node_feature(), and set_node_feature() to include the new 'time_stamp' field. Revision ID: 36357b09c750 Revises: 6ff60a50de68 Create Date: 02/26/2016 13:30:00.923134 """ # revision identifiers, used by Alembic. revision = '36357b09c750' down_revision = '6ff60a50de68' branch_labels = None from alembic import op import sqlalchemy as sa import textwrap def _postgresql_upgrade_ddl(): """Update stored procedures after added column""" op.execute(textwrap.dedent(""" DROP FUNCTION add_node_feature( integer, integer, bigint, double precision, character varying, character varying);""")) op.execute(textwrap.dedent(""" CREATE OR REPLACE FUNCTION add_node_feature( p_node_id INTEGER, p_feature_id INTEGER, p_value_int BIGINT, p_value_real DOUBLE PRECISION, p_value_str CHARACTER VARYING, p_units CHARACTER VARYING, p_time_stamp TIMESTAMP WITHOUT TIME ZONE) RETURNS VOID AS $BODY$ BEGIN IF (p_time_stamp IS NULL) THEN SELECT CURRENT_TIMESTAMP INTO p_time_stamp; END IF; INSERT INTO node_feature( node_id, feature_id, value_int, value_real, value_str, units, time_stamp) VALUES( p_node_id, p_feature_id, p_value_int, p_value_real, p_value_str, p_units, p_time_stamp); RETURN; END $BODY$ LANGUAGE plpgsql COST 100;""")) op.execute(textwrap.dedent(""" DROP FUNCTION update_node_feature( integer, integer, bigint, double precision, character varying, character varying);""")) op.execute(textwrap.dedent(""" CREATE OR REPLACE FUNCTION update_node_feature( p_node_id INTEGER, p_feature_id INTEGER, p_value_int BIGINT, p_value_real DOUBLE PRECISION, p_value_str CHARACTER VARYING, p_units CHARACTER VARYING, p_time_stamp TIMESTAMP WITHOUT TIME ZONE) RETURNS VOID AS $BODY$ BEGIN IF (p_time_stamp IS NULL) THEN SELECT CURRENT_TIMESTAMP INTO p_time_stamp; END IF; UPDATE node_feature SET value_int = p_value_int, value_real = p_value_real, value_str = p_value_str, units = p_units, time_stamp = p_time_stamp WHERE node_id = p_node_id AND feature_id = p_feature_id; END $BODY$ LANGUAGE plpgsql COST 100;""")) op.execute(textwrap.dedent(""" DROP FUNCTION set_node_feature( character varying, character varying, integer, bigint, double precision, character varying, character varying);""")) op.execute(textwrap.dedent(""" CREATE OR REPLACE FUNCTION set_node_feature( p_hostname CHARACTER VARYING, p_feature CHARACTER VARYING, p_data_type_id INTEGER, p_value_int BIGINT, p_value_real DOUBLE PRECISION, p_value_str CHARACTER VARYING, p_units CHARACTER VARYING, p_time_stamp TIMESTAMP WITHOUT TIME ZONE) RETURNS VOID AS $BODY$ DECLARE v_node_id INTEGER := 0; v_feature_id INTEGER := 0; v_node_feature_exists BOOLEAN := TRUE; BEGIN IF (p_time_stamp IS NULL) THEN SELECT CURRENT_TIMESTAMP INTO p_time_stamp; END IF; -- Get the node ID v_node_id := get_node_id(p_hostname); IF (v_node_id = 0) THEN v_node_id := add_node(p_hostname); v_node_feature_exists := FALSE; END IF; IF (not data_type_exists(p_data_type_id)) THEN PERFORM add_data_type(p_data_type_id, NULL); END IF; -- Get the feature ID v_feature_id := get_feature_id(p_feature); IF (v_feature_id = 0) THEN v_feature_id := add_feature(p_feature, p_data_type_id); v_node_feature_exists := FALSE; END IF; -- Has this feature already been added for this node? IF (v_node_feature_exists) THEN v_node_feature_exists := node_feature_exists(v_node_id, v_feature_id); END IF; IF (v_node_feature_exists) THEN PERFORM update_node_feature( v_node_id, v_feature_id, p_value_int, p_value_real, p_value_str, p_units, p_time_stamp); ELSE PERFORM add_node_feature( v_node_id, v_feature_id, p_value_int, p_value_real, p_value_str, p_units, p_time_stamp); END IF; RETURN; END $BODY$ LANGUAGE plpgsql VOLATILE COST 100;""")) op.execute(textwrap.dedent(""" CREATE OR REPLACE VIEW node_features_view AS SELECT node_feature.node_id::TEXT AS node_id, node.hostname, node_feature.feature_id::TEXT AS feature_id, feature.name AS feature, COALESCE(''::TEXT) AS value_int, COALESCE(''::TEXT) AS value_real, concat(node_feature.value_int::TEXT, node_feature.value_real::TEXT, node_feature.value_str) AS value_str, node_feature.units, CAST(node_feature.time_stamp AS TEXT) AS time_stamp FROM node_feature JOIN node ON node.node_id = node_feature.node_id JOIN feature ON feature.feature_id = node_feature.feature_id;""")) def _postgresql_downgrade_part1_ddl(): """Restore the stored procedures before removing the column""" op.execute(textwrap.dedent("DROP VIEW IF EXISTS node_features_view;")) op.execute(textwrap.dedent(""" DROP FUNCTION set_node_feature( character varying, character varying, integer, bigint, double precision, character varying, character varying, timestamp without time zone);""")) op.execute(textwrap.dedent(""" CREATE OR REPLACE FUNCTION set_node_feature( p_hostname CHARACTER VARYING, p_feature CHARACTER VARYING, p_data_type_id INTEGER, p_value_int BIGINT, p_value_real DOUBLE PRECISION, p_value_str CHARACTER VARYING, p_units CHARACTER VARYING) RETURNS VOID LANGUAGE plpgsql AS $$ DECLARE v_node_id INTEGER := 0; v_feature_id INTEGER := 0; v_node_feature_exists BOOLEAN := TRUE; BEGIN -- Get the node ID v_node_id := get_node_id(p_hostname); IF (v_node_id = 0) THEN v_node_id := add_node(p_hostname); v_node_feature_exists := FALSE; END IF; IF (not data_type_exists(p_data_type_id)) THEN PERFORM add_data_type(p_data_type_id, NULL); END IF; -- Get the feature ID v_feature_id := get_feature_id(p_feature); IF (v_feature_id = 0) THEN v_feature_id := add_feature(p_feature, p_data_type_id); v_node_feature_exists := FALSE; END IF; -- Has this feature already been added for this node? IF (v_node_feature_exists) THEN v_node_feature_exists := node_feature_exists(v_node_id, v_feature_id); END IF; IF (v_node_feature_exists) THEN -- If so, just update it PERFORM update_node_feature( v_node_id, v_feature_id, p_value_int, p_value_real, p_value_str, p_units); ELSE -- If not, add it PERFORM add_node_feature( v_node_id, v_feature_id, p_value_int, p_value_real, p_value_str, p_units); END IF; RETURN; END $$;""")) op.execute(textwrap.dedent(""" DROP FUNCTION update_node_feature( integer, integer, bigint, double precision, character varying, character varying, timestamp without time zone);""")) op.execute(textwrap.dedent(""" CREATE OR REPLACE FUNCTION update_node_feature( p_node_id INTEGER, p_feature_id INTEGER, p_value_int BIGINT, p_value_real DOUBLE PRECISION, p_value_str CHARACTER VARYING, p_units CHARACTER VARYING) RETURNS VOID LANGUAGE plpgsql AS $$ BEGIN UPDATE node_feature SET value_int = p_value_int, value_real = p_value_real, value_str = p_value_str, units = p_units WHERE node_id = p_node_id AND feature_id = p_feature_id; END $$;""")) op.execute(textwrap.dedent(""" DROP FUNCTION add_node_feature( integer, integer, bigint, double precision, character varying, character varying, timestamp without time zone);""")) op.execute(textwrap.dedent(""" CREATE OR REPLACE FUNCTION add_node_feature( p_node_id INTEGER, p_feature_id INTEGER, p_value_int BIGINT, p_value_real DOUBLE PRECISION, p_value_str CHARACTER VARYING, p_units CHARACTER VARYING) RETURNS VOID LANGUAGE plpgsql AS $$ BEGIN INSERT INTO node_feature( node_id, feature_id, value_int, value_real, value_str, units) VALUES( p_node_id, p_feature_id, p_value_int, p_value_real, p_value_str, p_units); RETURN; END $$;""")) def _postgresql_downgrade_part2_ddl(): """Restore 'node_features_view' view""" op.execute(textwrap.dedent(""" CREATE OR REPLACE VIEW node_features_view AS SELECT node_feature.node_id::TEXT AS node_id, node.hostname, node_feature.feature_id::TEXT AS feature_id, feature.name AS feature, COALESCE(''::TEXT) AS value_int, COALESCE(''::TEXT) AS value_real, concat(node_feature.value_int::TEXT, node_feature.value_real::TEXT, node_feature.value_str) AS value_str, node_feature.units FROM node_feature JOIN node ON node.node_id = node_feature.node_id JOIN feature ON feature.feature_id = node_feature.feature_id;""")) def upgrade(): """Add 'time_stamp' column to 'node_feature' table and update all dependencies effected by this change. 1) Drop the dependent view 2) Add the new column 3) Update all dependent stored procedures and recreate the view to include the new column """ db_dialect = op.get_context().dialect if 'postgresql' in db_dialect.name: op.execute(textwrap.dedent("DROP VIEW IF EXISTS node_features_view;")) else: print("View 'node_features_view' was not drop in prepare for adding " "new 'time_stamp' column to 'node_feature' table. " "'%s' is not a supported database dialect." % db_dialect.name) return op.add_column('node_feature', sa.Column('time_stamp', sa.DateTime(), nullable=False, server_default=sa.func.now())) if 'postgresql' in db_dialect.name: _postgresql_upgrade_ddl() else: print("Functions were not updated. " "'%s' is not a supported database dialect." % db_dialect.name) return def downgrade(): """Remove the 'time_stamp' column from 'node_feature' table and restore all dependencies effected by this change. 1) Restore all dependent stored procedures 2) Drop the 'time_stamp' column 3) Restore the view """ db_dialect = op.get_context().dialect if 'postgresql' in db_dialect.name: _postgresql_downgrade_part1_ddl() else: print("Functions were not downgraded. " "'%s' is not a supported database dialect." % db_dialect.name) return op.drop_column('node_feature', 'time_stamp') if 'postgresql' in db_dialect.name: _postgresql_downgrade_part2_ddl() else: print("Functions were not downgraded. " "'%s' is not a supported database dialect." % db_dialect.name) return
33.990385
117
0.540948
1,568
14,140
4.566327
0.108418
0.095251
0.037989
0.051397
0.840782
0.834777
0.824302
0.799441
0.790363
0.790363
0
0.009942
0.395332
14,140
415
118
34.072289
0.827485
0.06761
0
0.905028
0
0.005587
0.859105
0.075866
0
0
0
0
0
1
0.013966
false
0
0.00838
0
0.03352
0.011173
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
72c65f84722763dc266af89eef05f8ce1b301899
24,521
py
Python
tests/test_diagnostics_database.py
jiyojolly/cantools
02ce0e87d33334720990eab9d3fbaddab1bd5c8d
[ "MIT" ]
2
2021-09-24T02:53:57.000Z
2022-01-04T09:09:05.000Z
tests/test_diagnostics_database.py
jiyojolly/cantools
02ce0e87d33334720990eab9d3fbaddab1bd5c8d
[ "MIT" ]
null
null
null
tests/test_diagnostics_database.py
jiyojolly/cantools
02ce0e87d33334720990eab9d3fbaddab1bd5c8d
[ "MIT" ]
null
null
null
import os import unittest import logging import cantools class CanToolsDiagnosticsDatabaseTest(unittest.TestCase): maxDiff = None def test_le_example_cdd(self): db = cantools.db.load_file('tests/files/cdd/le-example.cdd', encoding='iso-8859-1') self.assertEqual(len(db.dids), 15) self.assertEqual([did.name for did in db.dids], [ 'DEFAULT_SESSION', 'ProgrammingSession', 'ECU_Identification', 'Development_Data', 'Serial_Number', 'REQUEST_SEED_SERVICE', 'SUBMIT_KEY_SERVICE', 'A_D_Werte', 'SawTooth', 'Sine', 'FaultMemory_identified', 'FaultMemory_supported', 'TestData', 'Coding', 'InputOutput' ]) # ECU_Identification DID structure. did = db.get_did_by_name('ECU_Identification') self.assertEqual(did.name, 'ECU_Identification') self.assertEqual(did.identifier, 144) self.assertEqual(did.length, 10) self.assertEqual([data.name for data in did.datas], [ 'Ident_Number_7_6', 'Ident_Number_5_4', 'Ident_Number_3_2', 'Ident_Number_1_0', 'Diagnostic_Identification' ]) data = did.get_data_by_name('Diagnostic_Identification') self.assertEqual(data.name, 'Diagnostic_Identification') self.assertEqual(data.start, 64) self.assertEqual(data.length, 16) self.assertEqual(data.byte_order, 'little_endian') self.assertEqual(data.scale, 1) self.assertEqual(data.offset, 0) self.assertEqual(data.minimum, 0) self.assertEqual(data.maximum, 255) self.assertEqual(data.unit, None) self.assertEqual(data.choices, None) decoded_did = { 'Ident_Number_7_6': 0x1234, 'Ident_Number_5_4': 0x5678, 'Ident_Number_3_2': 0x9012, 'Ident_Number_1_0': 0x3456, 'Diagnostic_Identification': 0xabcd } encoded_did = b'\x34\x12\x78\x56\x12\x90\x56\x34\xcd\xab' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) # SawTooth DID structure. did = db.get_did_by_identifier(244) self.assertEqual(did.identifier, 244) decoded_did = { 'ampl': 1, 'period': 40, 'value': 3 } encoded_did = b'\x01\x02\x03' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) # Sine DID structure. did = db.get_did_by_name('Sine') self.assertEqual(len(did.datas), 3) self.assertEqual([data.name for data in did.datas], [ 'ampl', 'period', 'value' ]) self.assertEqual(did.identifier, 243) self.assertEqual(did.datas[1].name, 'period') self.assertEqual(did.datas[1].unit, 'sec') self.assertEqual(did.datas[1].scale, 20) self.assertEqual(did.datas[1].offset, 0) decoded_did = { 'ampl': 1, 'period': 40, 'value': 3 } encoded_did = b'\x01\x02\x03' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) # Coding DID structure. did = db.get_did_by_name('Coding') self.assertEqual(len(did.datas), 3) self.assertEqual([data.name for data in did.datas], [ 'Country_variant', 'Vehicle_type', 'Special_setting' ]) self.assertEqual(did.identifier, 160) self.assertEqual(did.datas[1].name, 'Vehicle_type') self.assertEqual(did.datas[1].choices, { 0: '(not defined)', 1: 'Coupe', 2: 'Sedan', 3: 'Transporter' }) self.assertEqual(did.datas[2].name, 'Special_setting') self.assertEqual(did.datas[2].choices, None) decoded_did = { 'Country_variant': 'Europe', 'Vehicle_type': 'Sedan', 'Special_setting': 3 } encoded_did = b'\x21\x03' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) def test_be_example_cdd(self): db = cantools.db.load_file('tests/files/cdd/example.cdd', encoding = 'iso-8859-1') self.assertEqual(len(db.dids), 15) self.assertEqual([did.name for did in db.dids], [ 'DEFAULT_SESSION', 'ProgrammingSession', 'ECU_Identification', 'Development_Data', 'Serial_Number', 'REQUEST_SEED_SERVICE', 'SUBMIT_KEY_SERVICE', 'A_D_Werte', 'SawTooth', 'Sine', 'FaultMemory_identified', 'FaultMemory_supported', 'TestData', 'Coding', 'InputOutput' ]) # ECU_Identification DID structure. did = db.get_did_by_name('ECU_Identification') self.assertEqual(did.name, 'ECU_Identification') self.assertEqual(did.identifier, 144) self.assertEqual(did.length, 10) self.assertEqual([data.name for data in did.datas], [ 'Ident_Number_7_6', 'Ident_Number_5_4', 'Ident_Number_3_2', 'Ident_Number_1_0', 'Diagnostic_Identification' ]) data = did.get_data_by_name('Diagnostic_Identification') self.assertEqual(data.name, 'Diagnostic_Identification') self.assertEqual(data.start, 71) self.assertEqual(data.length, 16) self.assertEqual(data.byte_order, 'big_endian') self.assertEqual(data.scale, 1) self.assertEqual(data.offset, 0) self.assertEqual(data.minimum, 0) self.assertEqual(data.maximum, 255) self.assertEqual(data.unit, None) self.assertEqual(data.choices, None) decoded_did = { 'Ident_Number_7_6': 0x1234, 'Ident_Number_5_4': 0x5678, 'Ident_Number_3_2': 0x9012, 'Ident_Number_1_0': 0x3456, 'Diagnostic_Identification': 0xabcd } encoded_did = b'\x12\x34\x56\x78\x90\x12\x34\x56\xab\xcd' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) # SawTooth DID structure. did = db.get_did_by_identifier(244) self.assertEqual(did.identifier, 244) decoded_did = { 'ampl': 1, 'period': 40, 'value': 3 } encoded_did = b'\x01\x02\x03' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) # Sine DID structure. did = db.get_did_by_name('Sine') self.assertEqual(len(did.datas), 3) self.assertEqual([data.name for data in did.datas], [ 'ampl', 'period', 'value' ]) self.assertEqual(did.identifier, 243) self.assertEqual(did.datas[1].name, 'period') self.assertEqual(did.datas[1].unit, 'sec') self.assertEqual(did.datas[1].scale, 20) self.assertEqual(did.datas[1].offset, 0) decoded_did = { 'ampl': 1, 'period': 40, 'value': 3 } encoded_did = b'\x01\x02\x03' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) # Coding DID structure. did = db.get_did_by_name('Coding') self.assertEqual(len(did.datas), 3) self.assertEqual([data.name for data in did.datas], [ 'Country_variant', 'Vehicle_type', 'Special_setting' ]) self.assertEqual(did.identifier, 160) self.assertEqual(did.datas[1].name, 'Vehicle_type') self.assertEqual(did.datas[1].choices, { 0: '(not defined)', 1: 'Coupe', 2: 'Sedan', 3: 'Transporter' }) self.assertEqual(did.datas[2].name, 'Special_setting') self.assertEqual(did.datas[2].choices, None) decoded_did = { 'Country_variant': 'Europe', 'Vehicle_type': 'Sedan', 'Special_setting': 3 } encoded_did = b'\x21\x03' encoded = did.encode(decoded_did) self.assertEqual(encoded, encoded_did) decoded = did.decode(encoded) self.assertEqual(decoded, decoded_did) def test_be_example_cdd_repr(self): db = cantools.db.load_file('tests/files/cdd/example.cdd', encoding = 'iso-8859-1') self.assertEqual( repr(db), "did('DEFAULT_SESSION', 0x0081)\n" "\n" "did('ProgrammingSession', 0x0085)\n" "\n" "did('ECU_Identification', 0x0090)\n" " data('Ident_Number_7_6', 7, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('Ident_Number_5_4', 23, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('Ident_Number_3_2', 39, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('Ident_Number_1_0', 55, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('Diagnostic_Identification', 71, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('Development_Data', 0x0091)\n" " data('Operating_System_Version', 7, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('CAN_Driver_Version', 23, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('NM_Version', 39, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('Diagnostic_Module_Version', 55, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('Transport_Layer_Version', 71, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('Serial_Number', 0x0092)\n" " data('Serial_Number', 7, 32, 'big_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('REQUEST_SEED_SERVICE', 0x0001)\n" " data('SEED', 7, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('SUBMIT_KEY_SERVICE', 0x0002)\n" " data('KEY', 7, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('A_D_Werte', 0x0040)\n" " data('Voltage', 7, 8, 'big_endian', 0.1, 0.0, 0, 255, 'V', None)\n" " data('Current', 15, 8, 'big_endian', 0.1, 0.0, 0, 255, 'A', None)\n" " data('Resistance', 23, 16, 'big_endian', 10.0, 0.0, 0, 255, 'Ohm', None)\n" "\n" "did('SawTooth', 0x00f4)\n" " data('ampl', 7, 8, 'big_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('period', 15, 8, 'big_endian', 20.0, 0.0, 0, 255, 'sec', None)\n" " data('value', 23, 8, 'big_endian', 1.0, 0.0, 0, 255, 'None', None)\n" "\n" "did('Sine', 0x00f3)\n" " data('ampl', 7, 8, 'big_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('period', 15, 8, 'big_endian', 20.0, 0.0, 0, 255, 'sec', None)\n" " data('value', 23, 8, 'big_endian', 1.0, 0.0, 0, 255, 'None', None)\n" "\n" "did('FaultMemory_identified', 0x00f2)\n" " data('Number', 7, 8, 'big_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('DTC_1', 15, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_1', 31, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_2', 39, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_2', 55, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_3', 63, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_3', 79, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_4', 87, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_4', 103, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_5', 111, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_5', 127, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_6', 135, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_6', 151, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('FaultMemory_supported', 0x00f1)\n" " data('Number', 7, 8, 'big_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('DTC_1', 15, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_1', 31, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_2', 39, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_2', 55, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_3', 63, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_3', 79, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_4', 87, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_4', 103, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_5', 111, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_5', 127, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_6', 135, 16, 'big_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_6', 151, 8, 'big_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('TestData', 0x0041)\n" " data('DATA_0', 7, 8, 'big_endian', 1, 0, 1, 1, 'None', None)\n" " data('DATA_1', 15, 8, 'big_endian', 1, 0, 1, 1, 'None', None)\n" "\n" "did('Coding', 0x00a0)\n" " data('Country_variant', 3, 4, 'big_endian', 1, 0, 1, 1, 'None', {0: '(not defined)', 1: 'Europe', 2: 'USA', 3: 'Japan', 4: '(others)'})\n" " data('Vehicle_type', 7, 4, 'big_endian', 1, 0, 1, 1, 'None', {0: '(not defined)', 1: 'Coupe', 2: 'Sedan', 3: 'Transporter'})\n" " data('Special_setting', 15, 8, 'big_endian', 1, 0, 1, 1, 'None', None)\n" "\n" "did('InputOutput', 0x0080)\n" " data('Door_contact_front_left', 0, 1, 'big_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('Door_contact_front_right', 1, 1, 'big_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('Door_contact_rear_left', 2, 1, 'big_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('Door_contact_rear_right', 3, 1, 'big_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('_reserved', 7, 4, 'big_endian', 1, 0, 0, 255, 'None', None)\n") def test_le_example_cdd_repr(self): db = cantools.db.load_file('tests/files/cdd/le-example.cdd', encoding = 'iso-8859-1') self.assertEqual( repr(db), "did('DEFAULT_SESSION', 0x0081)\n" "\n" "did('ProgrammingSession', 0x0085)\n" "\n" "did('ECU_Identification', 0x0090)\n" " data('Ident_Number_7_6', 0, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('Ident_Number_5_4', 16, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('Ident_Number_3_2', 32, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('Ident_Number_1_0', 48, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('Diagnostic_Identification', 64, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('Development_Data', 0x0091)\n" " data('Operating_System_Version', 0, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('CAN_Driver_Version', 16, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('NM_Version', 32, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('Diagnostic_Module_Version', 48, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('Transport_Layer_Version', 64, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('Serial_Number', 0x0092)\n" " data('Serial_Number', 0, 32, 'little_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('REQUEST_SEED_SERVICE', 0x0001)\n" " data('SEED', 0, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('SUBMIT_KEY_SERVICE', 0x0002)\n" " data('KEY', 0, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('A_D_Werte', 0x0040)\n" " data('Voltage', 0, 8, 'little_endian', 0.1, 0.0, 0, 255, 'V', None)\n" " data('Current', 8, 8, 'little_endian', 0.1, 0.0, 0, 255, 'A', None)\n" " data('Resistance', 16, 16, 'little_endian', 10.0, 0.0, 0, 255, 'Ohm', None)\n" "\n" "did('SawTooth', 0x00f4)\n" " data('ampl', 0, 8, 'little_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('period', 8, 8, 'little_endian', 20.0, 0.0, 0, 255, 'sec', None)\n" " data('value', 16, 8, 'little_endian', 1.0, 0.0, 0, 255, 'None', None)\n" "\n" "did('Sine', 0x00f3)\n" " data('ampl', 0, 8, 'little_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('period', 8, 8, 'little_endian', 20.0, 0.0, 0, 255, 'sec', None)\n" " data('value', 16, 8, 'little_endian', 1.0, 0.0, 0, 255, 'None', None)\n" "\n" "did('FaultMemory_identified', 0x00f2)\n" " data('Number', 0, 8, 'little_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('DTC_1', 8, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_1', 24, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_2', 32, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_2', 48, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_3', 56, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_3', 72, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_4', 80, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_4', 96, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_5', 104, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_5', 120, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_6', 128, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_6', 144, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('FaultMemory_supported', 0x00f1)\n" " data('Number', 0, 8, 'little_endian', 1.0, 0.0, 0, 255, 'None', None)\n" " data('DTC_1', 8, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_1', 24, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_2', 32, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_2', 48, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_3', 56, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_3', 72, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_4', 80, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_4', 96, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_5', 104, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_5', 120, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('DTC_6', 128, 16, 'little_endian', 1, 0, 0, 255, 'None', None)\n" " data('StatusOfDTC_6', 144, 8, 'little_endian', 1, 0, 0, 255, 'None', None)\n" "\n" "did('TestData', 0x0041)\n" " data('DATA_0', 0, 8, 'little_endian', 1, 0, 1, 1, 'None', None)\n" " data('DATA_1', 8, 8, 'little_endian', 1, 0, 1, 1, 'None', None)\n" "\n" "did('Coding', 0x00a0)\n" " data('Country_variant', 0, 4, 'little_endian', 1, 0, 1, 1, 'None', {0: '(not defined)', 1: 'Europe', 2: 'USA', 3: 'Japan', 4: '(others)'})\n" " data('Vehicle_type', 4, 4, 'little_endian', 1, 0, 1, 1, 'None', {0: '(not defined)', 1: 'Coupe', 2: 'Sedan', 3: 'Transporter'})\n" " data('Special_setting', 8, 8, 'little_endian', 1, 0, 1, 1, 'None', None)\n" "\n" "did('InputOutput', 0x0080)\n" " data('Door_contact_front_left', 0, 1, 'little_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('Door_contact_front_right', 1, 1, 'little_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('Door_contact_rear_left', 2, 1, 'little_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('Door_contact_rear_right', 3, 1, 'little_endian', 1, 0, 1, 1, 'None', {0: 'closed', 1: 'open'})\n" " data('_reserved', 4, 4, 'little_endian', 1, 0, 0, 255, 'None', None)\n") def test_be_cdd_add(self): db = cantools.db.diagnostics.Database() db.add_cdd_file('tests/files/cdd/example.cdd', encoding = 'iso-8859-1') self.assertEqual(len(db.dids), 15) def test_le_cdd_add(self): db = cantools.db.diagnostics.Database() db.add_cdd_file('tests/files/cdd/le-example.cdd', encoding = 'iso-8859-1') self.assertEqual(len(db.dids), 15) def test_unknown_byteorder(self): db = cantools.db.diagnostics.Database() with self.assertRaises(cantools.database.ParseError) as pe: db.add_cdd_file('tests/files/cdd/invalid-bo-example.cdd', encoding = 'iso-8859-1') self.assertEqual(str(pe.exception), "Unknown byte order code: 4321") # This file is not '__main__' when executed via 'python setup.py3 # test'. logging.basicConfig() if __name__ == '__main__': unittest.main()
48.944112
156
0.496187
3,073
24,521
3.79987
0.07452
0.023807
0.072621
0.067826
0.963861
0.962919
0.959236
0.957095
0.953584
0.950929
0
0.099582
0.336976
24,521
500
157
49.042
0.618649
0.011011
0
0.783482
0
0.258929
0.489356
0.097814
0
0
0.009901
0
0.1875
1
0.015625
false
0
0.008929
0
0.029018
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
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
72fcb10783e01053e6ef0e34057ddece7a1f1707
28,384
py
Python
web_service/web_service/ontap/ontap_apis/tests/xtest_ontap_apis.py
NetApp/devops-at-scale
22d56f5ace1c03a5a1b6e8c3769f0e97ba133065
[ "BSD-3-Clause" ]
5
2019-06-04T18:41:20.000Z
2021-08-24T13:44:40.000Z
web_service/web_service/ontap/ontap_apis/tests/xtest_ontap_apis.py
NetApp/build-at-scale
22d56f5ace1c03a5a1b6e8c3769f0e97ba133065
[ "BSD-3-Clause" ]
4
2019-07-10T16:04:59.000Z
2019-09-25T03:39:42.000Z
web_service/web_service/ontap/ontap_apis/tests/xtest_ontap_apis.py
NetApp/devops-at-scale
22d56f5ace1c03a5a1b6e8c3769f0e97ba133065
[ "BSD-3-Clause" ]
6
2019-06-21T15:51:04.000Z
2020-08-26T17:13:27.000Z
""" python wrappers arounf NetApp API services (NSLM) """ import unittest import random import string import requests from .. import ontap_apis as uut # import api_servers as uut VSM_NAME = 'sdot-development-vserver01' AGGR_NAME = 'node01_aggr01' VOLUME_NAME = 'unittest_to_delete' SNAPSHOT_NAME = 'unittest_snapshot_to_delete' class TestAPIBaseClass(unittest.TestCase): """ Test API Base class """ def setUp(self): """ credentials used throughout these tests """ apiuser = 'admin' apipass = 'Password@123' api = '169.47.240.185:8443' self.api_server = uut.APIServer(api, apiuser, apipass) self.aggregate = uut.Aggregate(VSM_NAME, AGGR_NAME, self.api_server) def create_temp_volume(self, name): """ utility function to create a volume. make sure to delete it """ uid = 1000 gid = 1000 size = 23 volume = uut.Volume(name, self.aggregate) response, error_message = volume.make_volume( size, uid, gid) self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") self.assertTrue(volume.check_vol()) self.assertEqual(volume.volume_name, name) return volume def delete_temp_volume(self, volume): """ delete temp vol """ self.assertTrue(volume.check_vol()) response, error_message = volume.unmount() self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") response, error_message = volume.offline_volume() self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") response, error_message = volume.delete_volume() self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") self.assertFalse(volume.check_vol()) def delete_temp_volume_if_present(self, name): volume = uut.Volume(name, self.aggregate) if volume.check_vol(): self.delete_temp_volume(volume) @staticmethod def _return_random_string(n): return ''.join([random.choice(string.ascii_lowercase) for i in range(n)]) @staticmethod def return_random_string(length): rand_str_func = TestAPIBaseClass._return_random_string(length) rand_str = rand_str_func(length) return rand_str class TestAPIMethods(TestAPIBaseClass): """ positive test for ONTAP APIs using NSLM """ def test_get_volume(self): """ test list volume """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) response = self.aggregate.get_volumes() tmp = dict(response) vols = tmp['result']['records'] names = [i['name'] for i in vols] self.assertIn(test_volume_name, names) self.delete_temp_volume(volume) def test_get_volume_clones(self): """ create two clones for given volume and ensure Volume.get_clones() lists both clones""" rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_clone_two_name = "%s_clone_two_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, _, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertEqual(response, "COMPLETED") response, _, clone_two = volume.make_clone( test_snapshot_name, test_clone_two_name, "", "") self.assertEqual(response, "COMPLETED") self.assertTrue(clone.check_vol()) self.assertTrue(clone_two.check_vol()) response = volume.get_clones() tmp = dict(response) vols = tmp['result']['records'] names = [i['name'] for i in vols] self.assertIn(test_clone_name, names) self.assertIn(test_clone_two_name, names) clone.offline_volume() clone.delete_volume() clone_two.offline_volume() clone_two.delete_volume() self.delete_temp_volume(volume) def test_get_aggrs(self): """ assuming node01_aggr01 already exists """ response = self.api_server.get_aggrs() tmp = dict(response) aggrs = tmp['result']['records'] names = [i['name'] for i in aggrs] self.assertIn('node01_aggr01', names) def test_get_snapshots(self): """ test list snapshots """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, error_message = volume.get_snapshots() self.assertEqual(error_message, "") tmp = dict(response) aggrs = tmp['result']['records'] names = [i['name'] for i in aggrs] self.assertEqual(len(names), 1) self.delete_temp_volume(volume) def test_get_size_used(self): rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) size_used = volume.get_size_used() # temp volume size = 23MB self.assertLess(size_used, uut.get_size(23)) self.delete_temp_volume(volume) def test_get_svms(self): """ assuming sdot-development-vserver01 already exists """ response = self.api_server.get_svms() tmp = dict(response) svms = tmp['result']['records'] names = [i['name'] for i in svms] self.assertIn('sdot-development-vserver01', names) def test_get_export_policies(self): """ assuming default export policy already exists """ response = self.api_server.get_export_policies() tmp = dict(response) policies = tmp['result']['records'] names = [i['name'] for i in policies] self.assertIn('default', names) def test_get_uid_gid(self): """ test get uid gid """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) response = volume.get_uid_gid() expected_response = { 'uid': '1000', 'gid': '1000' } self.assertEqual(response, expected_response) self.delete_temp_volume(volume) def test_get_size(self): """ check size is multiplied by 1024 * 1024 """ response = uut.get_size(100) self.assertEqual(100 * 1024 * 1024, response) def test_get_key_aggr(self): """ assuming node01_aggr01 already exists """ response = self.aggregate.get_key_aggr() self.assertIn('3b108cbe-301e-11e7-a2c3-005056815d0c:type=aggregate', response) def test_get_key_vol(self): """ assuming gitlab_helm_gitlab_ce_data already exists """ volume = uut.Volume('gitlab_helm_gitlab_ce_data', self.aggregate) response = volume.get_key_vol() self.assertIn('3b108cbe-301e-11e7-a2c3-005056815d0c:type=volume', response) def test_get_key_svm(self): """ assuming sdot-development-vserver01 already exists """ response = self.aggregate.api_server.get_key_svm(self.aggregate.svm_name) self.assertIn('3b108cbe-301e-11e7-a2c3-005056815d0c:type=vserver', response) def test_get_key_export_policy(self): """ assuming default export policy already exists """ response = self.aggregate.api_server.get_key_export_policy("default") self.assertIn('07e4e37e-2bab-11e5-8836-00a0981a51c0:type=export_policy', response) def test_check_vol(self): rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) response = volume.check_vol() self.delete_temp_volume(volume) self.assertTrue(response) def test_check_snapshot(self): rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response = volume.check_snapshot(test_snapshot_name) self.delete_temp_volume(volume) self.assertTrue(response) def test_get_jpath(self): """ get junction path test """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) response = volume.get_jpath() self.delete_temp_volume(volume) self.assertEqual("/%s" % test_volume_name, response) def test_make_new_volume(self): """ make vol test """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) uid = 1000 gid = 1000 size = 23 volume = uut.Volume(test_volume_name, self.aggregate) response, error_message = volume.make_volume( size, uid, gid) self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") self.assertTrue(volume.check_vol()) self.assertEqual(volume.volume_name, test_volume_name) # cleanup self.delete_temp_volume(volume) def test_make_snapshot(self): """ make snapshot test """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) response, _, _ = volume.make_snapshot(test_snapshot_name) self.assertEqual(response, "COMPLETED") self.assertTrue(volume.check_snapshot(test_snapshot_name)) self.delete_temp_volume(volume) def test_make_snapshot_existing(self): """ make snapshot test - duplicate Snapshot """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) response, error_message, snapshot = volume.make_snapshot(test_snapshot_name) self.assertEqual(response, "COMPLETED") self.assertTrue(volume.check_snapshot(test_snapshot_name)) response, error_message, snapshot = volume.make_snapshot(test_snapshot_name) self.assertEqual(response, "FAILED") self.assertEqual( error_message, "Failed to create snapshot %s of " "volume %s on Vserver " "sdot-development-vserver01. Reason: Snapshot already exists. (errno=13020)" % (test_snapshot_name, test_volume_name)) self.assertTrue(volume.check_snapshot(test_snapshot_name)) self.assertEqual(snapshot.volume_name, test_snapshot_name) self.delete_temp_volume(volume) def test_make_clone(self): """ make clone test """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, _, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertEqual(response, "COMPLETED") self.assertTrue(clone.check_vol()) self.assertEqual(clone.volume_name, test_clone_name) clone.offline_volume() clone.delete_volume() self.delete_temp_volume(volume) def test_mount_clone(self): """ mount clone test """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, error_message, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertTrue(clone.check_vol()) self.assertEqual(clone.volume_name, test_clone_name) response, error_message, junction_path = clone.mount() self.assertEqual(response, "COMPLETED") self.assertEqual(error_message, "") self.assertEqual(junction_path, "/%s" % test_clone_name) clone.unmount() clone.offline_volume() clone.delete_volume() self.delete_temp_volume(volume) def test_set_volume_state(self): """ offline volume or clone """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, error_message, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertTrue(clone.check_vol()) response, error_message = clone.unmount() response, error_message = clone.offline_volume() self.assertTrue(volume.check_vol()) self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") clone.delete_volume() self.delete_temp_volume(volume) class TestAPIMethodsDelete(TestAPIBaseClass): """ positive test for ONTAP APIs using NSLM """ def test_delete_snapshot(self): """ delete snapshot """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) status, _, _ = volume.make_snapshot(test_snapshot_name) self.assertEqual(status, "COMPLETED") self.assertTrue(volume.check_snapshot(test_snapshot_name)) status, error_message = volume.delete_snapshot(test_snapshot_name) self.assertEqual(error_message, "") self.assertEqual(status, "COMPLETED") self.delete_temp_volume(volume) def test_delete_clone(self): """ delete volume or clone """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, error_message, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertTrue(clone.check_vol()) response, error_message = clone.offline_volume() response, error_message = clone.delete_volume() self.assertTrue(volume.check_vol()) self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") self.delete_temp_volume(volume) def test_delete_mounted_clone(self): """ delete mounted volume or clone """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, error_message, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertTrue(clone.check_vol()) clone.mount() clone.unmount() clone.offline_volume() response, error_message = clone.delete_volume() self.assertFalse(clone.check_vol()) self.assertTrue(volume.check_vol()) self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") self.delete_temp_volume(volume) def test_delete_mounted_clone_all(self): """ delete mounted volume or clone """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) _, _, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertTrue(clone.check_vol()) clone.mount() status, error_message, _ = clone.unmount_offline_delete_volume() self.assertFalse(clone.check_vol()) self.assertTrue(volume.check_vol()) self.assertEqual(error_message, "") self.assertEqual(status, "COMPLETED") self.delete_temp_volume(volume) def test_delete_unmounted_clone(self): """ delete unmounted volume or clone """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, error_message, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertTrue(clone.check_vol()) response, error_message, _ = clone.unmount_offline_delete_volume() self.assertFalse(clone.check_vol()) self.assertTrue(volume.check_vol()) self.assertEqual(error_message, "") self.assertEqual(response, "COMPLETED") self.delete_temp_volume(volume) def test_delete_volume_clones(self): """ create two clones for given volume and ensure Volume.delete_all_clones() deletes all clones """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_clone_two_name = "%s_clone_two_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, _, _ = volume.make_clone( test_snapshot_name, test_clone_name, "", "") response, _, _ = volume.make_clone( test_snapshot_name, test_clone_two_name, "", "") response = volume.get_clones() tmp = dict(response) vols = tmp['result']['records'] names = [i['name'] for i in vols] self.assertEqual(len(names), 2) deleted_clones, undeleted_clones = volume.delete_all_clones() self.assertEqual(len(deleted_clones), 2) self.assertEqual(len(undeleted_clones), 0) response = volume.get_clones() tmp = dict(response) vols = tmp['result']['records'] names = [i['name'] for i in vols] self.assertEqual(len(names), 0) self.delete_temp_volume(volume) class TestAPIMethodsNegativeNoAccess(TestAPIBaseClass): """ negative testcases, wrong credentials or wrong IP/port """ def test_get_volume(self): """ unknown user """ apiuser = 'dummy' apipass = 'Password@123' api = '169.47.240.185:8443' api_server = uut.APIServer(api, apiuser, apipass) aggregate = uut.Aggregate(VSM_NAME, AGGR_NAME, api_server) with self.assertRaises(requests.ConnectionError) as exc: _ = aggregate.get_volumes() self.assertEqual(str(exc.exception), "ERROR: status = 401 - Invalid credentials?") def test_get_volume_bp(self): """ bad password """ apiuser = 'admin' apipass = 'Password@1234' api = '169.47.240.185:8443' api_server = uut.APIServer(api, apiuser, apipass) aggregate = uut.Aggregate(VSM_NAME, AGGR_NAME, api_server) with self.assertRaises(requests.ConnectionError) as exc: _ = aggregate.get_volumes() self.assertEqual(str(exc.exception), "ERROR: status = 401 - Invalid credentials?") def test_get_volume_burl(self): """ bad port """ apiuser = 'admin' apipass = 'Password@123' api = '169.47.240.185:8446' api_server = uut.APIServer(api, apiuser, apipass) aggregate = uut.Aggregate(VSM_NAME, AGGR_NAME, api_server) with self.assertRaises(requests.ConnectionError) as exc: _ = aggregate.get_volumes() needle = str(exc.exception).split(':', 1)[0] self.assertEqual( needle, "HTTPSConnectionPool(host='%s', port=%s)" % tuple(api.split(':'))) class TestAPIMethodsNegative(TestAPIBaseClass): """ negative testcases """ def test_make_existing_volume(self): """ volume already exists """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) uid = 1000 gid = 1000 size = 23 self.delete_temp_volume_if_present(test_volume_name) self.create_temp_volume(test_volume_name) # attempt to create one more time volume = uut.Volume(test_volume_name, self.aggregate) response, error_message = volume.make_volume( size, uid, gid) self.assertEqual(response, "FAILED") self.assertEqual(error_message, "Duplicate volume name %s. (errno=17)" % test_volume_name) self.assertTrue(volume.check_vol()) self.assertEqual(volume.volume_name, test_volume_name) # cleanup self.delete_temp_volume(volume) def test_delete_mounted_clone_fail(self): """ delete volume or clone """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) response, error_message, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertTrue(clone.check_vol()) clone.mount() response, error_message = clone.offline_volume() self.assertTrue(volume.check_vol()) self.assertEqual(error_message, "Volume %s on Vserver sdot-development-vserver01 must be unmounted " "before being taken offline or restricted. (errno=160)" % test_clone_name) self.assertEqual(response, "FAILED") response, error_message = clone.unmount() response, error_message = clone.offline_volume() response, error_message = clone.delete_volume() self.delete_temp_volume(volume) def test_create_volume_bad_aggr(self): """ create vol invalid aggr """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) uid = 1000 gid = 1000 size = 23 aggregate = uut.Aggregate(VSM_NAME, 'dummy_aggr', self.api_server) volume = uut.Volume(test_volume_name, aggregate) status, error_message = volume.make_volume( size, uid, gid) self.assertEqual(status, "FAILED") self.assertEqual( error_message, "Missing value for zapi field: containing-aggr-name. (errno=13001)") def test_create_volume_bad_svm(self): """ create vol invalid svm """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) uid = 1000 gid = 1000 size = 23 aggregate = uut.Aggregate('dummy-vserver-xxx', AGGR_NAME, self.api_server) volume = uut.Volume(test_volume_name, aggregate) status, error_message = volume.make_volume( size, uid, gid) self.assertEqual(status, "FAILED") self.assertEqual( error_message, "Could not find storage container object in the service context") def test_make_clone_existing(self): """ should return 202 but not create clone because it is a duplicate name """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_clone_name = "%s_clone_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) volume.make_snapshot(test_snapshot_name) volume.make_clone( test_snapshot_name, test_clone_name, "", "") response, error_message, clone = volume.make_clone( test_snapshot_name, test_clone_name, "", "") self.assertEqual(response, "FAILED") self.assertEqual( error_message, "Duplicate volume name %s. (errno=17)" % test_clone_name) self.assertTrue(clone.check_vol()) self.assertEqual(clone.volume_name, test_clone_name) clone.offline_volume() clone.delete_volume() self.delete_temp_volume(volume) class TestAPIMethodsNegativeDelete(TestAPIBaseClass): """ negative testcases """ def test_delete_with_snapshot(self): """ delete volume with existing snapshot """ rand_str = self.return_random_string(5) test_volume_name = "%s_vol_%s" % (self._testMethodName, rand_str) test_snapshot_name = "%s_snap_%s" % (self._testMethodName, rand_str) volume = self.create_temp_volume(test_volume_name) status, _, _ = volume.make_snapshot(test_snapshot_name) self.assertEqual(status, "COMPLETED") self.assertTrue(volume.check_snapshot(test_snapshot_name)) status, error_message = volume.unmount() self.assertEqual(error_message, "") self.assertEqual(status, "COMPLETED") status, error_message = volume.offline_volume() self.assertEqual(error_message, "") self.assertEqual(status, "COMPLETED") status, error_message = volume.delete_volume() self.assertEqual(error_message, "") self.assertEqual(status, "COMPLETED") if __name__ == '__main__': unittest.main()
41.195936
100
0.644518
3,301
28,384
5.200545
0.075432
0.035067
0.048931
0.075028
0.822334
0.794082
0.775208
0.75715
0.735889
0.694122
0
0.015596
0.25
28,384
688
101
41.255814
0.790821
0.056757
0
0.736014
0
0
0.078048
0.015564
0
0
0
0
0.201049
1
0.075175
false
0.013986
0.008741
0.001748
0.09965
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