code
stringlengths
2
1.05M
repo_name
stringlengths
5
104
path
stringlengths
4
251
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 Smile (<http://www.smile.fr>). All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## { "name": "Smile Access Control", "version": "1.0", "author": "Smile", "website": 'http://www.smile.fr', "category": "Tools", "description": """Manage users thanks to user profiles This is a new way to manage your users' rights : you can manage users by functional profiles. Basically, a « profile » is a fictive user (res.users) tagged as a profile. It means that like before (with the basic rules of OpenERP) you can add groups to your profile. You can associate a profile to your user. Or in an other way, you can add users by profile. You can also set the fields which are private per user or global for all users. NB : to test your profile, you need to set him as « active », which will be disabled afterwards at the next update. Suggestions & Feedback to: [email protected] & [email protected] """, "depends": ['base'], "init_xml": [], "update_xml": [ "view/res_user_view.xml", "data/res_user_data.xml", "view/res_group_view.xml", ], "demo_xml": [], "installable": True, "active": False, }
BorgERP/borg-erp-6of3
base/base_base/res/TODO/smile_access_control/__openerp__.py
Python
agpl-3.0
2,086
#!/usr/bin/env python2.6 #Copyright (C) 2009-2010 : # Gabes Jean, [email protected] # Gerhard Lausser, [email protected] # #This file is part of Shinken. # #Shinken is free software: you can redistribute it and/or modify #it under the terms of the GNU Affero General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. # #Shinken is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU Affero General Public License for more details. # #You should have received a copy of the GNU Affero General Public License #along with Shinken. If not, see <http://www.gnu.org/licenses/>. # # This file is used to test reading and processing of config files # #It's ugly I know.... from shinken_test import * class TestSrvTplOnHostTpl(ShinkenTest): #setUp is in shinken_test def setUp(self): self.setup_with_file('etc/nagios_service_tpl_on_host_tpl.cfg') # Look is a service template apply on a host one will # make hosts that inherit from it got such service def test_service_tpl_on_host_tpl(self): # In fact the whole thing will be to have the service defined :) host = self.sched.hosts.find_by_name("test_host_0") print "All the test_host_0 services" for s in host.services: print s.get_dbg_name() svc = self.sched.services.find_srv_by_name_and_hostname("test_host_0", "Service_Template_Description") self.assert_(svc is not None) # And look for multy layer template too. Like a service is apply on # layer1, that use layer2. And srv is apply on layer2 def test_service_tpl_on_host_tpl_n_layers(self): host = self.sched.hosts.find_by_name("host_multi_layers") print "All the test_host_0 services" for s in host.services: print s.get_dbg_name() svc = self.sched.services.find_srv_by_name_and_hostname("host_multi_layers", "srv_multi_layer") self.assert_(svc is not None) # And look for multy layer template too. Like a service is apply on # layer1, that use layer2. And srv is apply on layer2 def test_complex_expr(self): h_linux = self.sched.hosts.find_by_name("host_linux_http") print "All the host_linux_http services" for s in h_linux.services: print s.get_dbg_name() # The linux and http service should exist on the linux host svc = self.sched.services.find_srv_by_name_and_hostname("host_linux_http", "http_AND_linux") self.assert_(svc is not None) # But not on the windows one h_windows = self.sched.hosts.find_by_name("host_windows_http") print "All the host_windows_http services" for s in h_windows.services: print s.get_dbg_name() # The linux and http service should exist on the linux host svc = self.sched.services.find_srv_by_name_and_hostname("host_windows_http", "http_AND_linux") self.assert_(svc is None) # The http_OR_linux should be every where svc = self.sched.services.find_srv_by_name_and_hostname("host_linux_http", "http_OR_linux") self.assert_(svc is not None) svc = self.sched.services.find_srv_by_name_and_hostname("host_windows_http", "http_OR_linux") self.assert_(svc is not None) # The http_BUT_NOT_linux should be in the windows host only svc = self.sched.services.find_srv_by_name_and_hostname("host_linux_http", "http_BUT_NOT_linux") self.assert_(svc is None) svc = self.sched.services.find_srv_by_name_and_hostname("host_windows_http", "http_BUT_NOT_linux") self.assert_(svc is not None) # The http_ALL_BUT_NOT_linux should be in the windows host only svc = self.sched.services.find_srv_by_name_and_hostname("host_linux_http", "http_ALL_BUT_NOT_linux") self.assert_(svc is None) svc = self.sched.services.find_srv_by_name_and_hostname("host_windows_http", "http_ALL_BUT_NOT_linux") self.assert_(svc is not None) # The http_ALL_BUT_NOT_linux_AND_EVEN_LINUX should be every where :) # yes, it's a stupid example, but at least it help to test :) svc = self.sched.services.find_srv_by_name_and_hostname("host_linux_http", "http_ALL_BUT_NOT_linux_AND_EVEN_LINUX") self.assert_(svc is not None) svc = self.sched.services.find_srv_by_name_and_hostname("host_windows_http", "http_ALL_BUT_NOT_linux_AND_EVEN_LINUX") self.assert_(svc is not None) if __name__ == '__main__': unittest.main()
baloo/shinken
test/test_service_tpl_on_host_tpl.py
Python
agpl-3.0
4,747
# Copyright (c) 2007 Ferran Pegueroles <[email protected]> # Copyright (c) 2009 Albert Cervera i Areny <[email protected]> # Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) # Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) # Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>) # Copyright (C) 2016 SYLEAM (<http://www.syleam.fr>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import errno import logging import os from tempfile import mkstemp from odoo import fields, models _logger = logging.getLogger(__name__) try: import cups except ImportError: _logger.debug("Cannot `import cups`.") class PrintingPrinter(models.Model): """ Printers """ _name = "printing.printer" _description = "Printer" _order = "name" name = fields.Char(required=True, index=True) active = fields.Boolean(default=True) server_id = fields.Many2one( comodel_name="printing.server", string="Server", required=True, help="Server used to access this printer.", ) job_ids = fields.One2many( comodel_name="printing.job", inverse_name="printer_id", string="Jobs", help="Jobs printed on this printer.", ) system_name = fields.Char(required=True, index=True) default = fields.Boolean(readonly=True) status = fields.Selection( selection=[ ("unavailable", "Unavailable"), ("printing", "Printing"), ("unknown", "Unknown"), ("available", "Available"), ("error", "Error"), ("server-error", "Server Error"), ], required=True, readonly=True, default="unknown", ) status_message = fields.Char(readonly=True) model = fields.Char(readonly=True) location = fields.Char(readonly=True) uri = fields.Char(string="URI", readonly=True) tray_ids = fields.One2many( comodel_name="printing.tray", inverse_name="printer_id", string="Paper Sources" ) def _prepare_update_from_cups(self, cups_connection, cups_printer): mapping = {3: "available", 4: "printing", 5: "error"} cups_vals = { "name": cups_printer["printer-info"], "model": cups_printer.get("printer-make-and-model", False), "location": cups_printer.get("printer-location", False), "uri": cups_printer.get("device-uri", False), "status": mapping.get(cups_printer.get("printer-state"), "unknown"), "status_message": cups_printer.get("printer-state-message", ""), } # prevent write if the field didn't change vals = { fieldname: value for fieldname, value in cups_vals.items() if not self or value != self[fieldname] } printer_uri = cups_printer["printer-uri-supported"] printer_system_name = printer_uri[printer_uri.rfind("/") + 1 :] ppd_info = cups_connection.getPPD3(printer_system_name) ppd_path = ppd_info[2] if not ppd_path: return vals ppd = cups.PPD(ppd_path) option = ppd.findOption("InputSlot") try: os.unlink(ppd_path) except OSError as err: # ENOENT means No such file or directory # The file has already been deleted, we can continue the update if err.errno != errno.ENOENT: raise if not option: return vals tray_commands = [] cups_trays = { tray_option["choice"]: tray_option["text"] for tray_option in option.choices } # Add new trays tray_commands.extend( [ (0, 0, {"name": text, "system_name": choice}) for choice, text in cups_trays.items() if choice not in self.tray_ids.mapped("system_name") ] ) # Remove deleted trays tray_commands.extend( [ (2, tray.id) for tray in self.tray_ids.filtered( lambda record: record.system_name not in cups_trays.keys() ) ] ) if tray_commands: vals["tray_ids"] = tray_commands return vals def print_document(self, report, content, **print_opts): """Print a file Format could be pdf, qweb-pdf, raw, ... """ self.ensure_one() fd, file_name = mkstemp() try: os.write(fd, content) finally: os.close(fd) return self.print_file(file_name, report=report, **print_opts) @staticmethod def _set_option_doc_format(report, value): return {"raw": "True"} if value == "raw" else {} # Backwards compatibility of builtin used as kwarg _set_option_format = _set_option_doc_format def _set_option_tray(self, report, value): """Note we use self here as some older PPD use tray rather than InputSlot so we may need to query printer in override""" return {"InputSlot": str(value)} if value else {} @staticmethod def _set_option_noop(report, value): return {} _set_option_action = _set_option_noop _set_option_printer = _set_option_noop def print_options(self, report=None, **print_opts): options = {} for option, value in print_opts.items(): try: options.update(getattr(self, "_set_option_%s" % option)(report, value)) except AttributeError: options[option] = str(value) return options def print_file(self, file_name, report=None, **print_opts): """ Print a file """ self.ensure_one() title = print_opts.pop("title", file_name) connection = self.server_id._open_connection(raise_on_error=True) options = self.print_options(report=report, **print_opts) _logger.debug( "Sending job to CUPS printer %s on %s with options %s" % (self.system_name, self.server_id.address, options) ) connection.printFile(self.system_name, file_name, title, options=options) _logger.info( "Printing job: '{}' on {}".format(file_name, self.server_id.address) ) try: os.remove(file_name) except OSError as exc: _logger.warning("Unable to remove temporary file %s: %s", file_name, exc) return True def set_default(self): if not self: return self.ensure_one() default_printers = self.search([("default", "=", True)]) default_printers.unset_default() self.write({"default": True}) return True def unset_default(self): self.write({"default": False}) return True def get_default(self): return self.search([("default", "=", True)], limit=1) def action_cancel_all_jobs(self): self.ensure_one() return self.cancel_all_jobs() def cancel_all_jobs(self, purge_jobs=False): for printer in self: connection = printer.server_id._open_connection() connection.cancelAllJobs(name=printer.system_name, purge_jobs=purge_jobs) # Update jobs' states into Odoo self.mapped("server_id").update_jobs(which="completed") return True def enable(self): for printer in self: connection = printer.server_id._open_connection() connection.enablePrinter(printer.system_name) # Update printers' stats into Odoo self.mapped("server_id").update_printers() return True def disable(self): for printer in self: connection = printer.server_id._open_connection() connection.disablePrinter(printer.system_name) # Update printers' stats into Odoo self.mapped("server_id").update_printers() return True def print_test_page(self): for printer in self: connection = printer.server_id._open_connection() if printer.model == "Local Raw Printer": fd, file_name = mkstemp() try: os.write(fd, b"TEST") finally: os.close(fd) connection.printTestPage(printer.system_name, file=file_name) else: connection.printTestPage(printer.system_name) self.mapped("server_id").update_jobs(which="completed")
OCA/report-print-send
base_report_to_printer/models/printing_printer.py
Python
agpl-3.0
8,539
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by br _at_ re-web _dot_ eu, 2015 # Modified by ferdinand _at_ zickner _dot_ de, 2017 from __future__ import division from events import Event import pygame import pyqrcode try: import pygame.fastevent as EventModule except ImportError: import pygame.event as EventModule class GuiException(Exception): """Custom exception class to handle GUI class errors""" class GUI_PyGame: def __init__(self, config): self.config = config # Initialize PyGame pygame.init() EventModule.init() # Set window name pygame.display.set_caption(self.config["window_name"]) # Hide mouse cursor if self.config["hide_mouse"]: pygame.mouse.set_cursor(*pygame.cursors.load_xbm('img/mouse/transparent.xbm','img/mouse/transparent.msk')) # Store screen if self.config["fullscreen"]: self.screen = pygame.display.set_mode((0,0), pygame.FULLSCREEN) else: self.screen = pygame.display.set_mode(self.config["window_size"]) # Clear screen self.clear() self.show_background() self.apply() def clear(self, color=(0,0,0)): self.screen.fill(color) self.surface_list = [] def apply(self): for surface in self.surface_list: self.screen.blit(surface[0], surface[1]) pygame.display.update() def get_size(self): return pygame.display.get_surface().get_size() def trigger_event(self, event_channel): EventModule.post(EventModule.Event(pygame.USEREVENT, channel=event_channel)) def show_picture(self, filename, size=(0,0), offset=(0,0), flip=False): # Use window size if none given if size == (0,0): size = self.get_size() try: # Load image from file image = pygame.image.load(filename) except pygame.error as e: raise GuiException("ERROR: Can't open image '" + filename + "': " + e.message) # Extract image size and determine scaling image_size = image.get_rect().size image_scale = min([min(a,b)/b for a,b in zip(size, image_size)]) # New image size new_size = [int(a*image_scale) for a in image_size] # Update offset offset = tuple(a+int((b-c)/2) for a,b,c in zip(offset, size, new_size)) # Apply scaling and display picture image = pygame.transform.scale(image, new_size).convert() # Create surface and blit the image to it surface = pygame.Surface(new_size) surface.blit(image, (0,0)) if flip: surface = pygame.transform.flip(surface, True, False) self.surface_list.append((surface, offset)) def show_background(self): self.show_picture(self.config["background"]) def show_message(self, msg, color=(0,0,0), bg=(230,230,230), transparency=True, outline=(245,245,245)): # Choose font font = pygame.font.Font(None, self.config["font_size"]) # Wrap and render text wrapped_text, text_height = self.wrap_text(msg, font, self.get_size()) rendered_text = self.render_text(wrapped_text, text_height, 3, 3, font, color, bg, transparency, outline) self.surface_list.append((rendered_text, (0,0))) def show_qrcode(self, text, module_color=(0,0,0,0), background=(255,255,255,255)): scale = self.config["qr"]["scale"] filename = self.config["qr"]["filename"] url = pyqrcode.create(text) url.png(filename, scale=scale, module_color=module_color, background=background, quiet_zone=1) img_size = url.get_png_size(scale=scale, quiet_zone=1) offset = tuple(a-b-c for a,b,c in zip(self.get_size(), (50,50), (img_size, img_size))) self.show_picture(filename, size=(img_size,img_size), offset=offset) def show_button(self, text, pos, size=(0,0), color=(230,230,230), bg=(0,0,0), transparency=True, outline=(230,230,230)): # Choose font font = pygame.font.Font(None, 72) text_size = font.size(text) if size == (0,0): size = (text_size[0] + 4, text_size[1] + 4) offset = ( (size[0] - text_size[0]) // 2, (size[1] - text_size[1]) // 2 ) # Create Surface object and fill it with the given background surface = pygame.Surface(self.get_size()) surface.fill(bg) # Render text rendered_text = font.render(text, 1, color) surface.blit(rendered_text, pos) # Render outline pygame.draw.rect(surface, outline, (pos[0]-offset[0], pos[1]-offset[0], size[0], size[1]), 1) # Make background color transparent if transparency: surface.set_colorkey(bg) self.surface_list.append((surface, (0,0))) def wrap_text(self, msg, font, size): final_lines = [] # resulting wrapped text requested_lines = msg.splitlines() # wrap input along line breaks accumulated_height = 0 # accumulated height # Form a series of lines for requested_line in requested_lines: # Handle too long lines if font.size(requested_line)[0] > size[0]: # Split at white spaces words = requested_line.split(' ') # if any of our words are too long to fit, trim them for word in words: while font.size(word)[0] >= size[0]: word = word[:-1] # Start a new line accumulated_line = "" # Put words on the line as long as they fit for word in words: test_line = accumulated_line + word + " " # Build the line while the words fit. if font.size(test_line)[0] < size[0]: accumulated_line = test_line else: # Start a new line line_height = font.size(accumulated_line)[1] if accumulated_height + line_height > size[1]: break else: accumulated_height += line_height final_lines.append(accumulated_line) accumulated_line = word + " " # Finish requested_line line_height = font.size(accumulated_line)[1] if accumulated_height + line_height > size[1]: break else: accumulated_height += line_height final_lines.append(accumulated_line) # Line fits as it is else: accumulated_height += font.size(requested_line)[1] final_lines.append(requested_line) # Check height of wrapped text if accumulated_height >= size[1]: raise GuiException("Wrapped text is too high to fit.") return final_lines, accumulated_height def render_text(self, text, text_height, valign, halign, font, color, bg, transparency, outline): # Determine vertical position if valign == 0: # top aligned voffset = 0 elif valign == 1: # centered voffset = int((self.get_size()[1] - text_height) / 2) elif valign == 2: # bottom aligned voffset = self.get_size()[1] - text_height elif valign == 3: # bottom aligned - 50 px voffset = self.get_size()[1] - text_height - 50 else: raise GuiException("Invalid valign argument: " + str(valign)) # Create Surface object and fill it with the given background surface = pygame.Surface(self.get_size()) surface.fill(bg) # Blit one line after another accumulated_height = 0 for line in text: maintext = font.render(line, 1, color) shadow = font.render(line, 1, outline) if halign == 0: # left aligned hoffset = 0 elif halign == 1: # centered hoffset = (self.get_size()[0] - maintext.get_width()) / 2 elif halign == 2: # right aligned hoffset = rect.width - maintext.get_width() elif halign == 3: # right aligned + 50 px hoffset = 50 else: raise GuiException("Invalid halign argument: " + str(justification)) pos = (hoffset, voffset + accumulated_height) # Outline surface.blit(shadow, (pos[0]-1,pos[1]-1)) surface.blit(shadow, (pos[0]-1,pos[1]+1)) surface.blit(shadow, (pos[0]+1,pos[1]-1)) surface.blit(shadow, (pos[0]+1,pos[1]+1)) # Text surface.blit(maintext, pos) accumulated_height += font.size(line)[1] # Make background color transparent if transparency: surface.set_colorkey(bg) # Return the rendered surface return surface def convert_event(self, event): if event.type == pygame.QUIT: return True, Event(0, 0) elif event.type == pygame.KEYDOWN: return True, Event(1, event.key) elif event.type == pygame.MOUSEBUTTONUP: return True, Event(2, (event.button, event.pos)) elif event.type >= pygame.USEREVENT: return True, Event(3, event.channel) else: return False, '' def check_for_event(self): for event in EventModule.get(): r, e = self.convert_event(event) if r: return r, e return False, '' def wait_for_event(self): # Repeat until a relevant event happened while True: # Discard all input that happened before entering the loop EventModule.get() # Wait for event event = EventModule.wait() # Return Event-Object r, e = self.convert_event(event) if r: return e def teardown(self): pygame.quit()
nerdifant/fotobox
lib/display.py
Python
agpl-3.0
10,191
""" Module that provides a connection to the ModuleStore specified in the django settings. Passes settings.MODULESTORE as kwargs to MongoModuleStore """ from __future__ import absolute_import from importlib import import_module import re from django.conf import settings from django.core.cache import get_cache, InvalidCacheBackendError from django.dispatch import Signal from xmodule.modulestore.loc_mapper_store import LocMapperStore from xmodule.util.django import get_current_request_hostname # We may not always have the request_cache module available try: from request_cache.middleware import RequestCache HAS_REQUEST_CACHE = True except ImportError: HAS_REQUEST_CACHE = False _MODULESTORES = {} FUNCTION_KEYS = ['render_template'] def load_function(path): """ Load a function by name. path is a string of the form "path.to.module.function" returns the imported python object `function` from `path.to.module` """ module_path, _, name = path.rpartition('.') return getattr(import_module(module_path), name) def create_modulestore_instance(engine, doc_store_config, options): """ This will return a new instance of a modulestore given an engine and options """ class_ = load_function(engine) _options = {} _options.update(options) for key in FUNCTION_KEYS: if key in _options and isinstance(_options[key], basestring): _options[key] = load_function(_options[key]) if HAS_REQUEST_CACHE: request_cache = RequestCache.get_request_cache() else: request_cache = None try: metadata_inheritance_cache = get_cache('mongo_metadata_inheritance') except InvalidCacheBackendError: metadata_inheritance_cache = get_cache('default') return class_( metadata_inheritance_cache_subsystem=metadata_inheritance_cache, request_cache=request_cache, modulestore_update_signal=Signal(providing_args=['modulestore', 'course_id', 'location']), xblock_mixins=getattr(settings, 'XBLOCK_MIXINS', ()), xblock_select=getattr(settings, 'XBLOCK_SELECT_FUNCTION', None), doc_store_config=doc_store_config, **_options ) def get_default_store_name_for_current_request(): """ This method will return the appropriate default store mapping for the current Django request, else 'default' which is the system default """ store_name = 'default' # see what request we are currently processing - if any at all - and get hostname for the request hostname = get_current_request_hostname() # get mapping information which is defined in configurations mappings = getattr(settings, 'HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS', None) # compare hostname against the regex expressions set of mappings # which will tell us which store name to use if hostname and mappings: for key in mappings.keys(): if re.match(key, hostname): store_name = mappings[key] return store_name return store_name def modulestore(name=None): """ This returns an instance of a modulestore of given name. This will wither return an existing modulestore or create a new one """ if not name: # If caller did not specify name then we should # determine what should be the default name = get_default_store_name_for_current_request() if name not in _MODULESTORES: _MODULESTORES[name] = create_modulestore_instance( settings.MODULESTORE[name]['ENGINE'], settings.MODULESTORE[name].get('DOC_STORE_CONFIG', {}), settings.MODULESTORE[name].get('OPTIONS', {}) ) # inject loc_mapper into newly created modulestore if it needs it if name == 'split' and _loc_singleton is not None: _MODULESTORES['split'].loc_mapper = _loc_singleton return _MODULESTORES[name] _loc_singleton = None def loc_mapper(): """ Get the loc mapper which bidirectionally maps Locations to Locators. Used like modulestore() as a singleton accessor. """ # pylint: disable=W0603 global _loc_singleton # pylint: disable=W0212 if _loc_singleton is None: try: loc_cache = get_cache('loc_cache') except InvalidCacheBackendError: loc_cache = get_cache('default') # instantiate _loc_singleton = LocMapperStore(loc_cache, **settings.DOC_STORE_CONFIG) # inject into split mongo modulestore if 'split' in _MODULESTORES: _MODULESTORES['split'].loc_mapper = _loc_singleton return _loc_singleton def clear_existing_modulestores(): """ Clear the existing modulestore instances, causing them to be re-created when accessed again. This is useful for flushing state between unit tests. """ _MODULESTORES.clear() # pylint: disable=W0603 global _loc_singleton cache = getattr(_loc_singleton, "cache", None) if cache: cache.clear() _loc_singleton = None def editable_modulestore(name='default'): """ Retrieve a modulestore that we can modify. This is useful for tests that need to insert test data into the modulestore. Currently, only Mongo-backed modulestores can be modified. Returns `None` if no editable modulestore is available. """ # Try to retrieve the ModuleStore # Depending on the settings, this may or may not # be editable. store = modulestore(name) # If this is a `MixedModuleStore`, then we will need # to retrieve the actual Mongo instance. # We assume that the default is Mongo. if hasattr(store, 'modulestores'): store = store.modulestores['default'] # At this point, we either have the ability to create # items in the store, or we do not. if hasattr(store, 'create_xmodule'): return store else: return None
pku9104038/edx-platform
common/lib/xmodule/xmodule/modulestore/django.py
Python
agpl-3.0
5,926
"""Command line display objects""" import sys from namespace import Namespace import display import csv import cStringIO as StringIO class Monthly_Bal(display.Monthly_Bal): def done(self, first_continuous): """This method is called when all the statement periods have been compared to the ledger. On the command line, we can now display the results as we've held off until now. For other interfaces, maybe you display as soon as you get the results and this method doesn't really do anything. first_continuous is the first month that, going backwards from the last month, forms an unbroken string of unbalanced months. We want to know this because gaps in the series of unbalanced months usually indicate correct entries that got recorded in our ledger in a different month than they do in our bank statements. Usually this is because they happened near the boundaries of the statement period. We can generally ignore them, as they aren't errors that affect the final totals. We output csv in excel format. """ csvfile = StringIO.StringIO() csvwriter = csv.writer(csvfile, dialect=csv.excel) csvwriter.writerow(["As of", "Statement Bal", "Ledger Bal", "Monthly Delta", "Cumu Delta"]) first = False last = 0 for m in self.months: if not first: if m.end_date != first_continuous: continue first = True cumu = m.statement_bal - m.ledger_bal monthly = cumu - last csvwriter.writerow([m.end_date, "$%s" % m.statement_bal, "$%s" % m.ledger_bal, "$%s" % monthly, "$%s" % cumu]) last = cumu if self.output_file == "-": print csvfile.getvalue() else: with open(self.output_file, 'w') as OUTF: OUTF.write(csvfile.getvalue()) csvfile.close()
OpenTechStrategies/anvil
display_csv.py
Python
agpl-3.0
1,982
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license import os import json from superdesk.tests import TestCase from superdesk import get_resource_service from apps.validators.command import ValidatorsPopulateCommand from settings import URL_PREFIX class ValidatorsPopulateTest(TestCase): def setUp(self): super(ValidatorsPopulateTest, self).setUp() self.filename = os.path.join(os.path.abspath(os.path.dirname(__file__)), "validators.json") self.json_data = [{"_id": "publish", "schema": {"headline": {"type": "string"}}}] with open(self.filename, "w+") as file: json.dump(self.json_data, file) def test_populate_validators(self): cmd = ValidatorsPopulateCommand() with self.app.test_request_context(URL_PREFIX): cmd.run(self.filename) service = get_resource_service("validators") for item in self.json_data: data = service.find_one(_id=item["_id"], req=None) self.assertEqual(data["_id"], item["_id"]) self.assertDictEqual(data["schema"], item["schema"]) def tearDown(self): os.remove(self.filename) super(ValidatorsPopulateTest, self).tearDown()
vied12/superdesk
server/apps/validators/tests.py
Python
agpl-3.0
1,483
""" Load and save a set of chosen implementations. @since: 0.27 """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import os from zeroinstall import _, zerostore from zeroinstall.injector import model from zeroinstall.injector.policy import get_deprecated_singleton_config from zeroinstall.injector.model import process_binding, process_depends, binding_names, Command from zeroinstall.injector.namespaces import XMLNS_IFACE from zeroinstall.injector.qdom import Element, Prefixes from zeroinstall.support import tasks, basestring class Selection(object): """A single selected implementation in a L{Selections} set. @ivar dependencies: list of dependencies @type dependencies: [L{model.Dependency}] @ivar attrs: XML attributes map (name is in the format "{namespace} {localName}") @type attrs: {str: str} @ivar version: the implementation's version number @type version: str""" interface = property(lambda self: self.attrs['interface']) id = property(lambda self: self.attrs['id']) version = property(lambda self: self.attrs['version']) feed = property(lambda self: self.attrs.get('from-feed', self.interface)) main = property(lambda self: self.attrs.get('main', None)) @property def local_path(self): local_path = self.attrs.get('local-path', None) if local_path: return local_path if self.id.startswith('/'): return self.id return None def __repr__(self): return self.id def is_available(self, stores): """Is this implementation available locally? (a local implementation or a cached ZeroInstallImplementation) @rtype: bool @since: 0.53""" path = self.local_path if path is not None: return os.path.exists(path) path = stores.lookup_maybe(self.digests) return path is not None def get_path(self, stores, missing_ok = False): """Return the root directory of this implementation. For local implementations, this is L{local_path}. For cached implementations, this is the directory in the cache. @param stores: stores to search @type stores: L{zerostore.Stores} @param missing_ok: return None for uncached implementations @type missing_ok: bool @return: the path of the directory @rtype: str | None @since: 1.8""" if self.local_path is not None: return self.local_path if not self.digests: # (for now, we assume this is always an error, even for missing_ok) raise model.SafeException("No digests for {feed} {version}".format(feed = self.feed, version = self.version)) if missing_ok: return stores.lookup_maybe(self.digests) else: return stores.lookup_any(self.digests) class ImplSelection(Selection): """A Selection created from an Implementation""" __slots__ = ['impl', 'dependencies', 'attrs', '_used_commands'] def __init__(self, iface_uri, impl, dependencies): assert impl self.impl = impl self.dependencies = dependencies self._used_commands = {} # name -> Command attrs = impl.metadata.copy() attrs['id'] = impl.id attrs['version'] = impl.get_version() attrs['interface'] = iface_uri attrs['from-feed'] = impl.feed.url if impl.local_path: attrs['local-path'] = impl.local_path self.attrs = attrs @property def bindings(self): return self.impl.bindings @property def digests(self): return self.impl.digests def get_command(self, name): assert name in self._used_commands, "internal error: '{command}' not in my commands list".format(command = name) return self._used_commands[name] def get_commands(self): return self._used_commands class XMLSelection(Selection): """A Selection created by reading an XML selections document. @ivar digests: a list of manifest digests @type digests: [str] """ __slots__ = ['bindings', 'dependencies', 'attrs', 'digests', 'commands'] def __init__(self, dependencies, bindings = None, attrs = None, digests = None, commands = None): if bindings is None: bindings = [] if digests is None: digests = [] self.dependencies = dependencies self.bindings = bindings self.attrs = attrs self.digests = digests self.commands = commands assert self.interface assert self.id assert self.version assert self.feed def get_command(self, name): if name not in self.commands: raise model.SafeException("Command '{name}' not present in selections for {iface}".format(name = name, iface = self.interface)) return self.commands[name] def get_commands(self): return self.commands class Selections(object): """ A selected set of components which will make up a complete program. @ivar interface: the interface of the program @type interface: str @ivar command: the command to run on 'interface' @type command: str @ivar selections: the selected implementations @type selections: {str: L{Selection}} """ __slots__ = ['interface', 'selections', 'command'] def __init__(self, source): """Constructor. @param source: a map of implementations, policy or selections document @type source: L{Element} """ self.selections = {} self.command = None if source is None: # (Solver will fill everything in) pass elif isinstance(source, Element): self._init_from_qdom(source) else: raise Exception(_("Source not a qdom.Element!")) def _init_from_qdom(self, root): """Parse and load a selections document. @param root: a saved set of selections.""" self.interface = root.getAttribute('interface') self.command = root.getAttribute('command') assert self.interface old_commands = [] for selection in root.childNodes: if selection.uri != XMLNS_IFACE: continue if selection.name != 'selection': if selection.name == 'command': old_commands.append(Command(selection, None)) continue requires = [] bindings = [] digests = [] commands = {} for elem in selection.childNodes: if elem.uri != XMLNS_IFACE: continue if elem.name in binding_names: bindings.append(process_binding(elem)) elif elem.name == 'requires': dep = process_depends(elem, None) requires.append(dep) elif elem.name == 'manifest-digest': for aname, avalue in elem.attrs.items(): digests.append(zerostore.format_algorithm_digest_pair(aname, avalue)) elif elem.name == 'command': name = elem.getAttribute('name') assert name, "Missing name attribute on <command>" commands[name] = Command(elem, None) # For backwards compatibility, allow getting the digest from the ID sel_id = selection.attrs['id'] local_path = selection.attrs.get("local-path", None) if (not digests and not local_path) and '=' in sel_id: alg = sel_id.split('=', 1)[0] if alg in ('sha1', 'sha1new', 'sha256'): digests.append(sel_id) iface_uri = selection.attrs['interface'] s = XMLSelection(requires, bindings, selection.attrs, digests, commands) self.selections[iface_uri] = s if self.command is None: # Old style selections document if old_commands: # 0launch 0.52 to 1.1 self.command = 'run' iface = self.interface for command in old_commands: command.qdom.attrs['name'] = 'run' self.selections[iface].commands['run'] = command runner = command.get_runner() if runner: iface = runner.interface else: iface = None else: # 0launch < 0.51 root_sel = self.selections[self.interface] main = root_sel.attrs.get('main', None) if main is not None: root_sel.commands['run'] = Command(Element(XMLNS_IFACE, 'command', {'path': main, 'name': 'run'}), None) self.command = 'run' elif self.command == '': # New style, but no command requested self.command = None assert not old_commands, "<command> list in new-style selections document!" def toDOM(self): """Create a DOM document for the selected implementations. The document gives the URI of the root, plus each selected implementation. For each selected implementation, we record the ID, the version, the URI and (if different) the feed URL. We also record all the bindings needed. @return: a new DOM Document""" from xml.dom import minidom, XMLNS_NAMESPACE assert self.interface impl = minidom.getDOMImplementation() doc = impl.createDocument(XMLNS_IFACE, "selections", None) root = doc.documentElement root.setAttributeNS(XMLNS_NAMESPACE, 'xmlns', XMLNS_IFACE) root.setAttributeNS(None, 'interface', self.interface) root.setAttributeNS(None, 'command', self.command or "") prefixes = Prefixes(XMLNS_IFACE) for iface, selection in sorted(self.selections.items()): selection_elem = doc.createElementNS(XMLNS_IFACE, 'selection') selection_elem.setAttributeNS(None, 'interface', selection.interface) root.appendChild(selection_elem) for name, value in selection.attrs.items(): if ' ' in name: ns, localName = name.split(' ', 1) prefixes.setAttributeNS(selection_elem, ns, localName, value) elif name == 'stability': pass elif name == 'from-feed': # Don't bother writing from-feed attr if it's the same as the interface if value != selection.attrs['interface']: selection_elem.setAttributeNS(None, name, value) elif name not in ('main', 'self-test'): # (replaced by <command>) selection_elem.setAttributeNS(None, name, value) if selection.digests: manifest_digest = doc.createElementNS(XMLNS_IFACE, 'manifest-digest') for digest in selection.digests: aname, avalue = zerostore.parse_algorithm_digest_pair(digest) assert ':' not in aname manifest_digest.setAttribute(aname, avalue) selection_elem.appendChild(manifest_digest) for b in selection.bindings: selection_elem.appendChild(b._toxml(doc, prefixes)) for dep in selection.dependencies: if not isinstance(dep, model.InterfaceDependency): continue dep_elem = doc.createElementNS(XMLNS_IFACE, 'requires') dep_elem.setAttributeNS(None, 'interface', dep.interface) selection_elem.appendChild(dep_elem) for m in dep.metadata: parts = m.split(' ', 1) if len(parts) == 1: ns = None localName = parts[0] dep_elem.setAttributeNS(None, localName, dep.metadata[m]) else: ns, localName = parts prefixes.setAttributeNS(dep_elem, ns, localName, dep.metadata[m]) for b in dep.bindings: dep_elem.appendChild(b._toxml(doc, prefixes)) for command in selection.get_commands().values(): selection_elem.appendChild(command._toxml(doc, prefixes)) for ns, prefix in prefixes.prefixes.items(): root.setAttributeNS(XMLNS_NAMESPACE, 'xmlns:' + prefix, ns) return doc def __repr__(self): return "Selections for " + self.interface def get_unavailable_selections(self, config, include_packages): """Find those selections which are not present. Local implementations are available if their directory exists. Other 0install implementations are available if they are in the cache. Package implementations are available if the Distribution says so. @param include_packages: whether to include <package-implementation>s @rtype: [Selection] @since: 1.16""" iface_cache = config.iface_cache stores = config.stores # Check that every required selection is cached def needs_download(sel): if sel.id.startswith('package:'): if not include_packages: return False feed = iface_cache.get_feed(sel.feed) if not feed: return False impl = feed.implementations.get(sel.id, None) return impl is None or not impl.installed elif sel.local_path: return False else: return sel.get_path(stores, missing_ok = True) is None return [sel for sel in self.selections.values() if needs_download(sel)] def download_missing(self, config, _old = None, include_packages = False): """Check all selected implementations are available. Download any that are not present. Since native distribution packages are usually only available in a single version, which is unlikely to be the one in the selections document, we ignore them by default. Note: package implementations (distribution packages) are ignored. @param config: used to get iface_cache, stores and fetcher @param include_packages: also try to install native packages (since 1.5) @return: a L{tasks.Blocker} or None""" if _old: config = get_deprecated_singleton_config() iface_cache = config.iface_cache stores = config.stores needed_downloads = self.get_unavailable_selections(config, include_packages) if not needed_downloads: return if config.network_use == model.network_offline: from zeroinstall import NeedDownload raise NeedDownload(', '.join([str(x) for x in needed_downloads])) @tasks.async def download(): # We're missing some. For each one, get the feed it came from # and find the corresponding <implementation> in that. This will # tell us where to get it from. # Note: we look for an implementation with the same ID. Maybe we # should check it has the same digest(s) too? needed_impls = [] for sel in needed_downloads: feed_url = sel.attrs.get('from-feed', None) or sel.attrs['interface'] feed = iface_cache.get_feed(feed_url) if feed is None or sel.id not in feed.implementations: fetch_feed = config.fetcher.download_and_import_feed(feed_url, iface_cache) yield fetch_feed tasks.check(fetch_feed) feed = iface_cache.get_feed(feed_url) assert feed, "Failed to get feed for %s" % feed_url impl = feed.implementations[sel.id] needed_impls.append(impl) fetch_impls = config.fetcher.download_impls(needed_impls, stores) yield fetch_impls tasks.check(fetch_impls) return download() # These (deprecated) methods are to make a Selections object look like the old Policy.implementation map... def __getitem__(self, key): # Deprecated if isinstance(key, basestring): return self.selections[key] sel = self.selections[key.uri] return sel and sel.impl def iteritems(self): # Deprecated iface_cache = get_deprecated_singleton_config().iface_cache for (uri, sel) in self.selections.items(): yield (iface_cache.get_interface(uri), sel and sel.impl) def values(self): # Deprecated for (uri, sel) in self.selections.items(): yield sel and sel.impl def __iter__(self): # Deprecated iface_cache = get_deprecated_singleton_config().iface_cache for (uri, sel) in self.selections.items(): yield iface_cache.get_interface(uri) def get(self, iface, if_missing): # Deprecated sel = self.selections.get(iface.uri, None) if sel: return sel.impl return if_missing def copy(self): # Deprecated s = Selections(None) s.interface = self.interface s.selections = self.selections.copy() return s def items(self): # Deprecated return list(self.iteritems()) @property def commands(self): i = self.interface c = self.command commands = [] while c is not None: sel = self.selections[i] command = sel.get_command(c) commands.append(command) runner = command.get_runner() if not runner: break i = runner.metadata['interface'] c = runner.qdom.attrs.get('command', 'run') return commands
dsqmoore/0install
zeroinstall/injector/selections.py
Python
lgpl-2.1
15,088
# python # This file is generated by a program (mib2py). Any edits will be lost. from pycopia.aid import Enum import pycopia.SMI.Basetypes Range = pycopia.SMI.Basetypes.Range Ranges = pycopia.SMI.Basetypes.Ranges from pycopia.SMI.Objects import ColumnObject, MacroObject, NotificationObject, RowObject, ScalarObject, NodeObject, ModuleObject, GroupObject # imports from SNMPv2_SMI import MODULE_IDENTITY, OBJECT_TYPE, Counter32, Integer32 from SNMPv2_CONF import MODULE_COMPLIANCE, OBJECT_GROUP from CISCO_SMI import ciscoMgmt from SNMPv2_TC import TEXTUAL_CONVENTION, RowStatus, DisplayString, TimeStamp from LAN_EMULATION_CLIENT_MIB import AtmLaneAddress class CISCO_BUS_MIB(ModuleObject): path = '/usr/share/snmp/mibs/site/CISCO-BUS-MIB' conformance = 2 name = 'CISCO-BUS-MIB' language = 2 description = ' The MIB module for the management of LANE broadcast and \nunknown servers.' # nodes class ciscoBusMIB(NodeObject): status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40]) name = 'ciscoBusMIB' class ciscoBusMIBObjects(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1]) name = 'ciscoBusMIBObjects' class ciscoBusMIBConformance(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 2]) name = 'ciscoBusMIBConformance' class ciscoBusMIBGroups(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 2, 1]) name = 'ciscoBusMIBGroups' class ciscoBusMIBCompliances(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 2, 2]) name = 'ciscoBusMIBCompliances' # macros # types class CiscoVpiInteger(pycopia.SMI.Basetypes.Integer32): status = 1 ranges = Ranges(Range(-1, 255)) class CiscoVciInteger(pycopia.SMI.Basetypes.Integer32): status = 1 ranges = Ranges(Range(-1, 65535)) # scalars # columns class busElanName(ColumnObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 1]) syntaxobject = pycopia.SMI.Basetypes.DisplayString class busIndex(ColumnObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 2]) syntaxobject = pycopia.SMI.Basetypes.Integer32 class busAtmAddrSpec(ColumnObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 3]) syntaxobject = AtmLaneAddress class busAtmAddrMask(ColumnObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 4]) syntaxobject = pycopia.SMI.Basetypes.OctetString class busAtmAddrActl(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 5]) syntaxobject = AtmLaneAddress class busIfIndex(ColumnObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 6]) syntaxobject = pycopia.SMI.Basetypes.Integer32 class busSubIfNum(ColumnObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 7]) syntaxobject = pycopia.SMI.Basetypes.Integer32 class busUpTime(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 8]) syntaxobject = pycopia.SMI.Basetypes.TimeStamp class busLanType(ColumnObject): status = 1 access = 5 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 9]) syntaxobject = pycopia.SMI.Basetypes.Enumeration enumerations = [Enum(1, 'dot3'), Enum(2, 'dot5')] class busMaxFrm(ColumnObject): status = 1 access = 5 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 10]) syntaxobject = pycopia.SMI.Basetypes.Enumeration enumerations = [Enum(1516, 'dot3'), Enum(4544, 'tr4Mb'), Enum(9234, 'rfc1626'), Enum(18190, 'tr16Mb')] class busMaxFrmAge(ColumnObject): status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 11]) syntaxobject = pycopia.SMI.Basetypes.Integer32 access = 5 units = 'seconds' class busOutFwdOctets(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 12]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class busOutFwdUcastFrms(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 13]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class busOutFwdNUcastFrms(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 14]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class busFrmTimeOuts(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 15]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class busMultiFwdVpi(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 16]) syntaxobject = CiscoVpiInteger class busMultiFwdVci(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 17]) syntaxobject = CiscoVciInteger class busOperStatus(ColumnObject): status = 1 access = 4 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 18]) syntaxobject = pycopia.SMI.Basetypes.Enumeration enumerations = [Enum(1, 'active'), Enum(2, 'inactive')] class busAdminStatus(ColumnObject): status = 1 access = 5 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 19]) syntaxobject = pycopia.SMI.Basetypes.Enumeration enumerations = [Enum(1, 'active'), Enum(2, 'inactive')] class busStatus(ColumnObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1, 20]) syntaxobject = pycopia.SMI.Basetypes.RowStatus class busClientId(ColumnObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 2, 1, 1]) syntaxobject = pycopia.SMI.Basetypes.Integer32 class busClientIfIndex(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 2, 1, 2]) syntaxobject = pycopia.SMI.Basetypes.Integer32 class busClientMSendVpi(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 2, 1, 3]) syntaxobject = CiscoVpiInteger class busClientMSendVci(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 2, 1, 4]) syntaxobject = CiscoVciInteger class busClientAtmAddress(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 2, 1, 5]) syntaxobject = AtmLaneAddress # rows class busEntry(RowObject): status = 1 index = pycopia.SMI.Objects.IndexObjects([busElanName, busIndex], False) create = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 1, 1]) access = 2 rowstatus = busStatus columns = {'busElanName': busElanName, 'busIndex': busIndex, 'busAtmAddrSpec': busAtmAddrSpec, 'busAtmAddrMask': busAtmAddrMask, 'busAtmAddrActl': busAtmAddrActl, 'busIfIndex': busIfIndex, 'busSubIfNum': busSubIfNum, 'busUpTime': busUpTime, 'busLanType': busLanType, 'busMaxFrm': busMaxFrm, 'busMaxFrmAge': busMaxFrmAge, 'busOutFwdOctets': busOutFwdOctets, 'busOutFwdUcastFrms': busOutFwdUcastFrms, 'busOutFwdNUcastFrms': busOutFwdNUcastFrms, 'busFrmTimeOuts': busFrmTimeOuts, 'busMultiFwdVpi': busMultiFwdVpi, 'busMultiFwdVci': busMultiFwdVci, 'busOperStatus': busOperStatus, 'busAdminStatus': busAdminStatus, 'busStatus': busStatus} class busClientEntry(RowObject): status = 1 index = pycopia.SMI.Objects.IndexObjects([busElanName, busIndex, busClientId], False) OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 1, 2, 1]) access = 2 columns = {'busClientId': busClientId, 'busClientIfIndex': busClientIfIndex, 'busClientMSendVpi': busClientMSendVpi, 'busClientMSendVci': busClientMSendVci, 'busClientAtmAddress': busClientAtmAddress} # notifications (traps) # groups class ciscoBusGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 2, 1, 1]) group = [busAtmAddrSpec, busAtmAddrMask, busAtmAddrActl, busIfIndex, busUpTime, busLanType, busMaxFrm, busMaxFrmAge, busOutFwdOctets, busOutFwdUcastFrms, busOutFwdNUcastFrms, busFrmTimeOuts, busMultiFwdVpi, busMultiFwdVci, busOperStatus, busAdminStatus, busStatus] class ciscoBusSubIfGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 2, 1, 2]) group = [busSubIfNum] class ciscoBusClientGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 4, 1, 9, 9, 40, 2, 1, 3]) group = [busClientIfIndex, busClientMSendVpi, busClientMSendVci, busClientAtmAddress] # capabilities # special additions # Add to master OIDMAP. from pycopia import SMI SMI.update_oidmap(__name__)
xiangke/pycopia
mibs/pycopia/mibs/CISCO_BUS_MIB.py
Python
lgpl-2.1
9,324
#!/usr/bin/python import os import logging from subprocess import call import psutil INDIHUB_AGENT_OFF = 'off' INDIHUB_AGENT_DEFAULT_MODE = 'solo' try: INDIHUB_AGENT_CONFIG = os.path.join(os.environ['HOME'], '.indihub') except KeyError: INDIHUB_AGENT_CONFIG = '/tmp/indihub' if not os.path.exists(INDIHUB_AGENT_CONFIG): os.makedirs(INDIHUB_AGENT_CONFIG) INDIHUB_AGENT_CONFIG += '/indihub.json' class IndiHubAgent(object): def __init__(self, web_addr, hostname, port): self.__web_addr = web_addr self.__hostname = hostname self.__port = port self.__mode = INDIHUB_AGENT_OFF # stop running indihub-agent, if any self.stop() def __run(self, profile, mode, conf): cmd = 'indihub-agent -indi-server-manager=%s -indi-profile=%s -mode=%s -conf=%s -api-origins=%s > ' \ '/tmp/indihub-agent.log 2>&1 &' % \ (self.__web_addr, profile, mode, conf, '%s:%d,%s.local:%d' % (self.__hostname, self.__port, self.__hostname, self.__port)) logging.info(cmd) call(cmd, shell=True) def start(self, profile, mode=INDIHUB_AGENT_DEFAULT_MODE, conf=INDIHUB_AGENT_CONFIG): if self.is_running(): self.stop() self.__run(profile, mode, conf) self.__mode = mode def stop(self): self.__mode = 'off' cmd = ['pkill', '-2', 'indihub-agent'] logging.info(' '.join(cmd)) ret = call(cmd) if ret == 0: logging.info('indihub-agent terminated successfully') else: logging.warn('terminating indihub-agent failed code ' + str(ret)) def is_running(self): for proc in psutil.process_iter(): if proc.name() == 'indihub-agent': return True return False def get_mode(self): return self.__mode
knro/indiwebmanager
indiweb/indihub_agent.py
Python
lgpl-2.1
1,871
# -*- test-case-name: higgins.http.test.test_util -*- ## # Copyright (c) 2005 Apple Computer, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # # DRI: Wilfredo Sanchez, [email protected] ## """ Utilities This API is considered private to static.py and is therefore subject to change. """ __all__ = [ "allDataFromStream", "davXMLFromStream", "noDataFromStream", "normalizeURL", "joinURL", "parentForURL", "bindMethods", ] import urllib from urlparse import urlsplit, urlunsplit import posixpath # Careful; this module is not documented as public API from twisted.python import log from twisted.python.failure import Failure from twisted.internet.defer import succeed from higgins.http.stream import readStream from higgins.http.dav import davxml ## # Reading request body ## def allDataFromStream(stream, filter=None): data = [] def gotAllData(_): if not data: return None result = "".join([str(x) for x in data]) if filter is None: return result else: return filter(result) return readStream(stream, data.append).addCallback(gotAllData) def davXMLFromStream(stream): # FIXME: # This reads the request body into a string and then parses it. # A better solution would parse directly and incrementally from the # request stream. if stream is None: return succeed(None) def parse(xml): try: return davxml.WebDAVDocument.fromString(xml) except ValueError: log.err("Bad XML:\n%s" % (xml,)) raise return allDataFromStream(stream, parse) def noDataFromStream(stream): def gotData(data): if data: raise ValueError("Stream contains unexpected data.") return readStream(stream, gotData) ## # URLs ## def normalizeURL(url): """ Normalized a URL. @param url: a URL. @return: the normalized representation of C{url}. The returned URL will never contain a trailing C{"/"}; it is up to the caller to determine whether the resource referred to by the URL is a collection and add a trailing C{"/"} if so. """ def cleanup(path): # For some silly reason, posixpath.normpath doesn't clean up '//' at the # start of a filename, so let's clean it up here. if path[0] == "/": count = 0 for char in path: if char != "/": break count += 1 path = path[count-1:] return path (scheme, host, path, query, fragment) = urlsplit(cleanup(url)) path = cleanup(posixpath.normpath(urllib.unquote(path))) return urlunsplit((scheme, host, urllib.quote(path), query, fragment)) def joinURL(*urls): """ Appends URLs in series. @param urls: URLs to join. @return: the normalized URL formed by combining each URL in C{urls}. The returned URL will contain a trailing C{"/"} if and only if the last given URL contains a trailing C{"/"}. """ if len(urls) > 0 and len(urls[-1]) > 0 and urls[-1][-1] == "/": trailing = "/" else: trailing = "" url = normalizeURL("/".join([url for url in urls])) if url == "/": return "/" else: return url + trailing def parentForURL(url): """ Extracts the URL of the containing collection resource for the resource corresponding to a given URL. @param url: an absolute (server-relative is OK) URL. @return: the normalized URL of the collection resource containing the resource corresponding to C{url}. The returned URL will always contain a trailing C{"/"}. """ (scheme, host, path, query, fragment) = urlsplit(normalizeURL(url)) index = path.rfind("/") if index is 0: if path == "/": return None else: path = "/" else: if index is -1: raise ValueError("Invalid URL: %s" % (url,)) else: path = path[:index] + "/" return urlunsplit((scheme, host, path, query, fragment)) ## # Python magic ## def unimplemented(obj): """ Throw an exception signifying that the current method is unimplemented and should not have been invoked. """ import inspect caller = inspect.getouterframes(inspect.currentframe())[1][3] raise NotImplementedError("Method %s is unimplemented in subclass %s" % (caller, obj.__class__)) def bindMethods(module, clazz, prefixes=("preconditions_", "http_", "report_")): """ Binds all functions in the given module (as defined by that module's C{__all__} attribute) which start with any of the given prefixes as methods of the given class. @param module: the module in which to search for functions. @param clazz: the class to bind found functions to as methods. @param prefixes: a sequence of prefixes to match found functions against. """ for submodule_name in module.__all__: try: __import__(module.__name__ + "." + submodule_name) except ImportError: log.err("Unable to import module %s" % (module.__name__ + "." + submodule_name,)) Failure().raiseException() submodule = getattr(module, submodule_name) for method_name in submodule.__all__: for prefix in prefixes: if method_name.startswith(prefix): method = getattr(submodule, method_name) setattr(clazz, method_name, method) break
msfrank/Higgins
higgins/http/dav/util.py
Python
lgpl-2.1
6,565
from __future__ import absolute_import import os path = os.path import unittest import pytest import myhdl from myhdl import * @block def ternary1(dout, clk, rst): @always(clk.posedge, rst.negedge) def logic(): if rst == 0: dout.next = 0 else: dout.next = (dout + 1) if dout < 127 else 0 return logic @block def ternary2(dout, clk, rst): dout_d = Signal(intbv(0)[len(dout):]) @always(clk.posedge, rst.negedge) def logic(): if rst == 0: dout.next = 0 else: dout.next = dout_d @always_comb def comb(): dout_d.next = (dout + 1) if dout < 127 else 0 return logic, comb @pytest.mark.parametrize('ternary', [ternary1, ternary2]) @pytest.mark.verify_convert @block def TernaryBench(ternary): dout = Signal(intbv(0)[8:]) clk = Signal(bool(0)) rst = Signal(bool(0)) ternary_inst = ternary(dout, clk, rst) @instance def stimulus(): rst.next = 1 clk.next = 0 yield delay(10) rst.next = 0 yield delay(10) rst.next = 1 yield delay(10) for i in range(1000): clk.next = 1 yield delay(10) assert dout == (i + 1) % 128 print(dout) clk.next = 0 yield delay(10) raise StopSimulation() return stimulus, ternary_inst
juhasch/myhdl
myhdl/test/conversion/general/test_ternary.py
Python
lgpl-2.1
1,409
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.10 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('vdisplaymodule', [dirname(__file__)]) except ImportError: import vdisplaymodule return vdisplaymodule if fp is not None: try: _mod = imp.load_module('vdisplaymodule', fp, pathname, description) finally: fp.close() return _mod vdisplaymodule = swig_import_helper() del swig_import_helper else: import vdisplaymodule del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 import VError class VDisplay(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VDisplay, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VDisplay, name) __repr__ = _swig_repr BARCO = vdisplaymodule.VDisplay_BARCO DUMB = vdisplaymodule.VDisplay_DUMB def __init__(self, *args): this = vdisplaymodule.new_VDisplay(*args) try: self.this.append(this) except: self.this = this def __assign__(self, *args): return vdisplaymodule.VDisplay___assign__(self, *args) __swig_destroy__ = vdisplaymodule.delete_VDisplay __del__ = lambda self : None; def disp(self): return vdisplaymodule.VDisplay_disp(self) def luts(self): return vdisplaymodule.VDisplay_luts(self) VDisplay_swigregister = vdisplaymodule.VDisplay_swigregister VDisplay_swigregister(VDisplay) # This file is compatible with both classic and new-style classes.
binarytemple/debian-vips
swig/vipsCC/VDisplay.py
Python
lgpl-2.1
3,103
# Copyright (C) 2010-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : [email protected] # # This case corresponds to: /visu/StreamLines/F4 case # Create Stream Lines for all fields of the the given MED file import sys from paravistest import datadir, pictureext, get_picture_dir from presentations import CreatePrsForFile, PrsTypeEnum import pvserver as paravis # Directory for saving snapshots picturedir = get_picture_dir("StreamLines/F4") # Create presentations myParavis = paravis.myParavis file = datadir + "UO2_250ans.med" print " --------------------------------- " print "file ", file print " --------------------------------- " print "\nCreatePrsForFile..." CreatePrsForFile(myParavis, file, [PrsTypeEnum.STREAMLINES], picturedir, pictureext)
FedoraScientific/salome-paravis
test/VisuPrs/StreamLines/F4.py
Python
lgpl-2.1
1,524
#!/usr/bin/env python # -*- coding: utf-8 -*- from libavg import avg, ui import libavg import gestures RESOLUTION = avg.Point2D(800, 600) nodeList = [] nodesEnabled = True def abortAll(): for node in nodeList: node.recognizer.abort() def switchNodesEnabled(): global nodesEnabled nodesEnabled = not nodesEnabled for node in nodeList: node.recognizer.enable(nodesEnabled) class TapButton(gestures.TextRect): def __init__(self, text, **kwargs): super(TapButton, self).__init__(text, **kwargs) self.recognizer = ui.TapRecognizer(node=self, possibleHandler=self._onPossible, detectedHandler=self._onDetected, failHandler=self._onFail) def _onPossible(self): self.rect.fillcolor = "FFFFFF" def _onDetected(self): self.rect.fillcolor = "000000" self.rect.color = "00FF00" def _onFail(self): self.rect.fillcolor = "000000" self.rect.color = "FF0000" class AbortButton(TapButton): def __init__(self, text, **kwargs): super(AbortButton, self).__init__(text, **kwargs) def _onPossible(self): super(AbortButton, self)._onPossible() self.words.color = "000000" def _onDetected(self): super(AbortButton, self)._onDetected() abortAll() self.words.color = "FFFFFF" def _onFail(self): super(AbortButton, self)._onFail() self.words.color = "FFFFFF" class EnableButton(TapButton): def __init__(self, text, **kwargs): super(EnableButton, self).__init__(text, **kwargs) self.words.color = "FF0000" def changeText(self): if(nodesEnabled): self.words.text = "Disable all" self.words.color = "FF0000" else: self.words.text = "Enable all" self.words.color = "00FF00" def _onDetected(self): super(EnableButton, self)._onDetected() switchNodesEnabled() self.changeText() class GestureDemoApp(libavg.AVGApp): def init(self): avg.WordsNode(text='''a - abort recognition <br/> d - switch enable/disable recognition <br/><br/> or use the buttons on the right side''', pos=(20, 510), parent=self._parentNode) nodeList.append(gestures.HoldNode(text="HoldRecognizer", pos=(20,20), parent=self._parentNode)) nodeList.append(gestures.DragNode(text="DragRecognizer<br/>friction",pos=(200,20), friction=0.05, parent=self._parentNode)) nodeList.append(gestures.TransformNode(text="TransformRecognizer", ignoreRotation=False, ignoreScale=False, pos=(380,20), parent=self._parentNode)) self.abortButton = AbortButton(text="Abort all", pos = (630, 490), parent=self._parentNode) self.enableButton = EnableButton(text="Disable all", pos = (630, 540), parent=self._parentNode) def onKeyDown(self, event): if event.keystring == 'a': abortAll() if event.keystring == 'd': switchNodesEnabled() self.enableButton.changeText() else: libavg.AVGApp.onKeyDown(self, event) if __name__ == '__main__': GestureDemoApp.start(resolution=RESOLUTION)
pararthshah/libavg-vaapi
src/samples/abort_gestures.py
Python
lgpl-2.1
3,343
#!/usr/bin/python # Check that fullscreen apps during callare decorated. #* Test steps # * simulate an ongoing call # * show a fullscreen application window #* Post-conditions # * the decorator is on top of it import os, re, sys, time if os.system('mcompositor-test-init.py'): sys.exit(1) fd = os.popen('windowstack m') s = fd.read(5000) win_re = re.compile('^0x[0-9a-f]+') deco_win = 0 for l in s.splitlines(): if re.search(' viewable mdecorator', l.strip()): deco_win = win_re.match(l.strip()).group() if deco_win == 0: print 'FAIL: decorator window not found' sys.exit(1) # simulate a phone call fd = os.popen('windowctl P') time.sleep(1) # create a fullscreen application window fd = os.popen('windowctl fn') app_win = fd.readline().strip() time.sleep(1) ret = 0 fd = os.popen('windowstack m') s = fd.read(5000) for l in s.splitlines(): if re.search("%s " % deco_win, l.strip()): print deco_win, 'found' break elif re.search("%s " % app_win, l.strip()): print 'FAIL: decorator is below the application' print 'Failed stack:\n', s ret = 1 break # cleanup os.popen('pkill windowctl') os.popen('pkill context-provide') if os.system('/usr/bin/gconftool-2 --type bool --set /desktop/meego/notifications/previews_enabled true'): print 'cannot re-enable notifications' sys.exit(ret)
dudochkin-victor/ux-compositor
tests/functional/test20b.py
Python
lgpl-2.1
1,337
import csv import math from collections import defaultdict from utils import * def getPointsInGrid(dataset,gridNW,gridSE): gridP = [] with open(dataset) as csvfile: reader = csv.reader(csvfile) for row in reader: # row is a list if(gridSE[0] <= float(row[4]) <= gridNW[0] and gridNW[1] <= float(row[5]) <= gridSE[1]): gridP.append(row) return gridP # list in a list def getPointsInCells(gridP,gridNW,gridSE,cellLength): # storage cells = defaultdict(list) # {} = [] gridNWLat = gridNW[0] gridNWLon = gridNW[1] gridSELat = gridSE[0] gridSELon = gridSE[1] for position in gridP: lat = float(position[4]) lon = float(position[5]) # x and y in metres x = haversine((lat,gridNWLon),(lat,lon)) *1000 y = haversine((gridSELat,lon),(lat,lon)) *1000 gridX = int(math.floor(x/cellLength)) gridY = int(math.floor(y/cellLength)) gridID = cantorPair(gridX,gridY) cells[gridID].append(position) return cells def getGlobalPrior(gridsize,ptsgrid,ptscell): globalPrior = [0] * (gridsize*gridsize) pointsInCells = ptscell num = len(ptsgrid) for x in range(0,gridsize): for y in range(0,gridsize): id = cantorPair(x,y) if not pointsInCells[id] == []: globalPrior[(gridsize*x + y)] = len(pointsInCells[id]) / float(num) return globalPrior def getGlobalPriorSemL(gridsize,ptsgrid,ptscell,simulation): globalPriorSemL = [0] * (gridsize*gridsize) pointsInGrid = ptsgrid pointsInCells = ptscell pointsInGridSemL = [] for point in pointsInGrid: if simulation == point[3]: pointsInGridSemL.append(point) total_num_sim = len(pointsInGridSemL) for x in range(0,gridsize): for y in range(0,gridsize): num_in_cell_sim = 0 id = cantorPair(x,y) if not pointsInCells[id] == []: for point in pointsInCells[id]: if simulation == point[3]: num_in_cell_sim += 1 globalPriorSemL[(gridsize*x + y)] = num_in_cell_sim / float(total_num_sim) return globalPriorSemL def getUserPrior(gridsize,ptsgrid,ptscell,writerFile,threshold): userNum = defaultdict(int) # initialize to 0 pointsInGrid = ptsgrid for i in pointsInGrid: userNum[int(i[0])] += 1 out = csv.writer(open(writerFile,"w"), delimiter=',') pointsInCells = ptscell for z in userNum: userPrior = [] boo = False for x in range(0,gridsize): for y in range(0,gridsize): id = cantorPair(x,y) localCount = 0 if not pointsInCells[id] == []: for j in pointsInCells[id]: if int(j[0]) == z: localCount += 1 userPrior.append(localCount/float(userNum[z])) if localCount > threshold: boo = True if boo: out.writerow(userPrior) def getUserPriorSemL(gridsize,ptsgrid,ptscell,writerFile,threshold_sim,simulation): userNumSemL = defaultdict(int) # initialize to 0 pointsInGrid = ptsgrid pointsInCells = ptscell out = csv.writer(open(writerFile,"w"), delimiter=',') for point in pointsInGrid: if simulation == point[3]: userNumSemL[int(point[0])] += 1 print len(userNumSemL) c = 0 for z in userNumSemL: userPriorSemL = [] boo = False for x in range(0,gridsize): for y in range(0,gridsize): id = cantorPair(x,y) localCount_sim = 0 if not pointsInCells[id] == []: for point in pointsInCells[id]: if (int(point[0]) == z and simulation == point[3]): localCount_sim += 1 if localCount_sim >= threshold_sim: boo = True userPriorSemL.append(localCount_sim/float(userNumSemL[z])) if boo: out.writerow(userPriorSemL) c += 1 print c
chatziko/libqif
samples/semantic/preproc_foursquare/foursquare_preproc.py
Python
lgpl-2.1
4,254
#!/usr/bin/python """Test of Dojo combo box presentation.""" from macaroon.playback import * import utils sequence = MacroSequence() #sequence.append(WaitForDocLoad()) sequence.append(PauseAction(5000)) sequence.append(PauseAction(5000)) sequence.append(KeyComboAction("Tab")) sequence.append(KeyComboAction("Tab")) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Tab")) sequence.append(utils.AssertPresentationAction( "1. Tab to the first combo box", ["BRAILLE LINE: 'US State test 1 (200% Courier font): California $l'", " VISIBLE: '(200% Courier font): California ', cursor=32", "BRAILLE LINE: 'Focus mode'", " VISIBLE: 'Focus mode', cursor=0", "BRAILLE LINE: 'US State test 1 (200% Courier font): California $l'", " VISIBLE: '(200% Courier font): California ', cursor=32", "SPEECH OUTPUT: 'collapsed'", "SPEECH OUTPUT: 'US State test 1 (200% Courier font): entry California selected'", "SPEECH OUTPUT: 'Focus mode' voice=system"])) sequence.append(utils.StartRecordingAction()) sequence.append(TypeAction("C")) sequence.append(utils.AssertPresentationAction( "2. Replace existing text with a 'C'", ["KNOWN ISSUE: The braille line is not quite right", "BRAILLE LINE: 'US State test 1 (200% Courier font): C $l'", " VISIBLE: '(200% Courier font): C $l', cursor=23", "BRAILLE LINE: 'US State test 1 (200% Courier font): US State test 1 (200% Courier font): combo box'", " VISIBLE: 'te test 1 (200% Courier font): U', cursor=32", "SPEECH OUTPUT: 'expanded'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Down")) sequence.append(utils.AssertPresentationAction( "3. Down Arrow", ["BRAILLE LINE: 'C alifornia (CA)'", " VISIBLE: 'C alifornia (CA)', cursor=1", "SPEECH OUTPUT: 'C alifornia (CA).'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Down")) sequence.append(utils.AssertPresentationAction( "4. Down Arrow", ["BRAILLE LINE: 'C olorado (CO)'", " VISIBLE: 'C olorado (CO)', cursor=1", "SPEECH OUTPUT: 'C olorado (CO).'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Down")) sequence.append(utils.AssertPresentationAction( "5. Down Arrow", ["BRAILLE LINE: 'C onnecticut (CT)'", " VISIBLE: 'C onnecticut (CT)', cursor=1", "SPEECH OUTPUT: 'C onnecticut (CT).'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Down")) sequence.append(utils.AssertPresentationAction( "6. Down Arrow", ["BRAILLE LINE: 'C alifornia (CA)'", " VISIBLE: 'C alifornia (CA)', cursor=1", "SPEECH OUTPUT: 'C alifornia (CA).'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Up")) sequence.append(utils.AssertPresentationAction( "7. Up Arrow", ["BRAILLE LINE: 'C onnecticut (CT)'", " VISIBLE: 'C onnecticut (CT)', cursor=1", "SPEECH OUTPUT: 'C onnecticut (CT).'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Up")) sequence.append(utils.AssertPresentationAction( "8. Up Arrow", ["BRAILLE LINE: 'C olorado (CO)'", " VISIBLE: 'C olorado (CO)', cursor=1", "SPEECH OUTPUT: 'C olorado (CO).'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Up")) sequence.append(utils.AssertPresentationAction( "9. Up Arrow", ["BRAILLE LINE: 'C alifornia (CA)'", " VISIBLE: 'C alifornia (CA)', cursor=1", "SPEECH OUTPUT: 'C alifornia (CA).'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("KP_Enter")) sequence.append(utils.AssertPresentationAction( "10. Basic Where Am I - Combo box expanded", ["BRAILLE LINE: 'C alifornia (CA)'", " VISIBLE: 'C alifornia (CA)', cursor=1", "SPEECH OUTPUT: 'expanded'", "SPEECH OUTPUT: 'C alifornia (CA).'", "SPEECH OUTPUT: '1 of 3'"])) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("Escape")) sequence.append(utils.AssertPresentationAction( "11. Escape", ["BRAILLE LINE: 'US State test 1 (200% Courier font): US State test 1 (200% Courier font): combo box'", " VISIBLE: 'te test 1 (200% Courier font): U', cursor=32", "BRAILLE LINE: 'US State test 1 (200% Courier font): California $l'", " VISIBLE: '(200% Courier font): California ', cursor=32", "SPEECH OUTPUT: 'collapsed'", "SPEECH OUTPUT: 'US State test 1 (200% Courier font): entry California selected'"])) sequence.append(utils.AssertionSummaryAction()) sequence.start()
chrys87/orca-beep
test/keystrokes/firefox/aria_combobox_dojo.py
Python
lgpl-2.1
4,717
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.36 # # Don't modify this file, modify the SWIG interface instead. import _ivideo import new new_instancemethod = new.instancemethod try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'PySwigObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static) or hasattr(self,name): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) import types try: _object = types.ObjectType _newclass = 1 except AttributeError: class _object : pass _newclass = 0 del types def _swig_setattr_nondynamic_method(set): def set_attr(self,name,value): if (name == "thisown"): return self.this.own(value) if hasattr(self,name) or (name == "this"): set(self,name,value) else: raise AttributeError("You cannot add attributes to %s" % self) return set_attr import core import csgfx _SetSCFPointer = _ivideo._SetSCFPointer _GetSCFPointer = _ivideo._GetSCFPointer if not "core" in dir(): core = __import__("cspace").__dict__["core"] core.AddSCFLink(_SetSCFPointer) CSMutableArrayHelper = core.CSMutableArrayHelper CS_WRITE_BASELINE = _ivideo.CS_WRITE_BASELINE CS_WRITE_NOANTIALIAS = _ivideo.CS_WRITE_NOANTIALIAS class csPixelCoord(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr x = _swig_property(_ivideo.csPixelCoord_x_get, _ivideo.csPixelCoord_x_set) y = _swig_property(_ivideo.csPixelCoord_y_get, _ivideo.csPixelCoord_y_set) def __init__(self, *args): this = _ivideo.new_csPixelCoord(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_csPixelCoord __del__ = lambda self : None; csPixelCoord_swigregister = _ivideo.csPixelCoord_swigregister csPixelCoord_swigregister(csPixelCoord) class iGraphics2D(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def Open(*args): return _ivideo.iGraphics2D_Open(*args) def Close(*args): return _ivideo.iGraphics2D_Close(*args) def GetWidth(*args): return _ivideo.iGraphics2D_GetWidth(*args) def GetHeight(*args): return _ivideo.iGraphics2D_GetHeight(*args) def GetColorDepth(*args): return _ivideo.iGraphics2D_GetColorDepth(*args) def FindRGB(*args): return _ivideo.iGraphics2D_FindRGB(*args) def GetRGB(*args): return _ivideo.iGraphics2D_GetRGB(*args) def GetRGBA(*args): return _ivideo.iGraphics2D_GetRGBA(*args) def SetClipRect(*args): return _ivideo.iGraphics2D_SetClipRect(*args) def GetClipRect(*args): return _ivideo.iGraphics2D_GetClipRect(*args) def BeginDraw(*args): return _ivideo.iGraphics2D_BeginDraw(*args) def FinishDraw(*args): return _ivideo.iGraphics2D_FinishDraw(*args) def Print(*args): return _ivideo.iGraphics2D_Print(*args) def Clear(*args): return _ivideo.iGraphics2D_Clear(*args) def ClearAll(*args): return _ivideo.iGraphics2D_ClearAll(*args) def DrawLine(*args): return _ivideo.iGraphics2D_DrawLine(*args) def DrawBox(*args): return _ivideo.iGraphics2D_DrawBox(*args) def ClipLine(*args): return _ivideo.iGraphics2D_ClipLine(*args) def DrawPixel(*args): return _ivideo.iGraphics2D_DrawPixel(*args) def DrawPixels(*args): return _ivideo.iGraphics2D_DrawPixels(*args) def Blit(*args): return _ivideo.iGraphics2D_Blit(*args) def GetPixel(*args): return _ivideo.iGraphics2D_GetPixel(*args) def AllowResize(*args): return _ivideo.iGraphics2D_AllowResize(*args) def Resize(*args): return _ivideo.iGraphics2D_Resize(*args) def GetFontServer(*args): return _ivideo.iGraphics2D_GetFontServer(*args) def PerformExtension(*args): return _ivideo.iGraphics2D_PerformExtension(*args) def ScreenShot(*args): return _ivideo.iGraphics2D_ScreenShot(*args) def GetNativeWindow(*args): return _ivideo.iGraphics2D_GetNativeWindow(*args) def GetFullScreen(*args): return _ivideo.iGraphics2D_GetFullScreen(*args) def SetFullScreen(*args): return _ivideo.iGraphics2D_SetFullScreen(*args) def SetMousePosition(*args): return _ivideo.iGraphics2D_SetMousePosition(*args) def SetMouseCursor(*args): return _ivideo.iGraphics2D_SetMouseCursor(*args) def SetGamma(*args): return _ivideo.iGraphics2D_SetGamma(*args) def GetGamma(*args): return _ivideo.iGraphics2D_GetGamma(*args) def GetName(*args): return _ivideo.iGraphics2D_GetName(*args) def Write(*args): return _ivideo.iGraphics2D_Write(*args) def SetViewport(*args): return _ivideo.iGraphics2D_SetViewport(*args) def GetViewport(*args): return _ivideo.iGraphics2D_GetViewport(*args) def GetFramebufferDimensions(*args): return _ivideo.iGraphics2D_GetFramebufferDimensions(*args) def GetHWRenderer(*args): return _ivideo.iGraphics2D_GetHWRenderer(*args) def GetHWGLVersion(*args): return _ivideo.iGraphics2D_GetHWGLVersion(*args) def GetHWVendor(*args): return _ivideo.iGraphics2D_GetHWVendor(*args) scfGetVersion = staticmethod(_ivideo.iGraphics2D_scfGetVersion) __swig_destroy__ = _ivideo.delete_iGraphics2D __del__ = lambda self : None; def _PerformExtension(*args): return _ivideo.iGraphics2D__PerformExtension(*args) def PerformExtension (self, command, *args): self._PerformExtension(self.__class__.__name__, command, args); iGraphics2D_swigregister = _ivideo.iGraphics2D_swigregister iGraphics2D_swigregister(iGraphics2D) iGraphics2D_scfGetVersion = _ivideo.iGraphics2D_scfGetVersion CSDRAW_2DGRAPHICS = _ivideo.CSDRAW_2DGRAPHICS CSDRAW_3DGRAPHICS = _ivideo.CSDRAW_3DGRAPHICS CSDRAW_CLEARZBUFFER = _ivideo.CSDRAW_CLEARZBUFFER CSDRAW_CLEARSCREEN = _ivideo.CSDRAW_CLEARSCREEN CSDRAW_NOCLIPCLEAR = _ivideo.CSDRAW_NOCLIPCLEAR CSDRAW_READBACK = _ivideo.CSDRAW_READBACK CS_CLIPPER_NONE = _ivideo.CS_CLIPPER_NONE CS_CLIPPER_OPTIONAL = _ivideo.CS_CLIPPER_OPTIONAL CS_CLIPPER_TOPLEVEL = _ivideo.CS_CLIPPER_TOPLEVEL CS_CLIPPER_REQUIRED = _ivideo.CS_CLIPPER_REQUIRED CS_CLIP_NOT = _ivideo.CS_CLIP_NOT CS_CLIP_NEEDED = _ivideo.CS_CLIP_NEEDED CS_ZBUF_NONE = _ivideo.CS_ZBUF_NONE CS_ZBUF_FILL = _ivideo.CS_ZBUF_FILL CS_ZBUF_TEST = _ivideo.CS_ZBUF_TEST CS_ZBUF_USE = _ivideo.CS_ZBUF_USE CS_ZBUF_EQUAL = _ivideo.CS_ZBUF_EQUAL CS_ZBUF_INVERT = _ivideo.CS_ZBUF_INVERT CS_ZBUF_MESH = _ivideo.CS_ZBUF_MESH CS_ZBUF_MESH2 = _ivideo.CS_ZBUF_MESH2 CS_VATTRIB_SPECIFIC_FIRST = _ivideo.CS_VATTRIB_SPECIFIC_FIRST CS_VATTRIB_SPECIFIC_LAST = _ivideo.CS_VATTRIB_SPECIFIC_LAST CS_VATTRIB_SPECIFIC_NUM = _ivideo.CS_VATTRIB_SPECIFIC_NUM CS_VATTRIB_GENERIC_FIRST = _ivideo.CS_VATTRIB_GENERIC_FIRST CS_VATTRIB_GENERIC_LAST = _ivideo.CS_VATTRIB_GENERIC_LAST CS_VATTRIB_GENERIC_NUM = _ivideo.CS_VATTRIB_GENERIC_NUM CS_IATTRIB_FIRST = _ivideo.CS_IATTRIB_FIRST CS_IATTRIB_LAST = _ivideo.CS_IATTRIB_LAST CS_IATTRIB_NUM = _ivideo.CS_IATTRIB_NUM CS_VATTRIB_UNUSED = _ivideo.CS_VATTRIB_UNUSED CS_VATTRIB_INVALID = _ivideo.CS_VATTRIB_INVALID CS_VATTRIB_POSITION = _ivideo.CS_VATTRIB_POSITION CS_VATTRIB_WEIGHT = _ivideo.CS_VATTRIB_WEIGHT CS_VATTRIB_NORMAL = _ivideo.CS_VATTRIB_NORMAL CS_VATTRIB_COLOR = _ivideo.CS_VATTRIB_COLOR CS_VATTRIB_PRIMARY_COLOR = _ivideo.CS_VATTRIB_PRIMARY_COLOR CS_VATTRIB_SECONDARY_COLOR = _ivideo.CS_VATTRIB_SECONDARY_COLOR CS_VATTRIB_FOGCOORD = _ivideo.CS_VATTRIB_FOGCOORD CS_VATTRIB_TEXCOORD = _ivideo.CS_VATTRIB_TEXCOORD CS_VATTRIB_TEXCOORD0 = _ivideo.CS_VATTRIB_TEXCOORD0 CS_VATTRIB_TEXCOORD1 = _ivideo.CS_VATTRIB_TEXCOORD1 CS_VATTRIB_TEXCOORD2 = _ivideo.CS_VATTRIB_TEXCOORD2 CS_VATTRIB_TEXCOORD3 = _ivideo.CS_VATTRIB_TEXCOORD3 CS_VATTRIB_TEXCOORD4 = _ivideo.CS_VATTRIB_TEXCOORD4 CS_VATTRIB_TEXCOORD5 = _ivideo.CS_VATTRIB_TEXCOORD5 CS_VATTRIB_TEXCOORD6 = _ivideo.CS_VATTRIB_TEXCOORD6 CS_VATTRIB_TEXCOORD7 = _ivideo.CS_VATTRIB_TEXCOORD7 CS_VATTRIB_0 = _ivideo.CS_VATTRIB_0 CS_VATTRIB_1 = _ivideo.CS_VATTRIB_1 CS_VATTRIB_2 = _ivideo.CS_VATTRIB_2 CS_VATTRIB_3 = _ivideo.CS_VATTRIB_3 CS_VATTRIB_4 = _ivideo.CS_VATTRIB_4 CS_VATTRIB_5 = _ivideo.CS_VATTRIB_5 CS_VATTRIB_6 = _ivideo.CS_VATTRIB_6 CS_VATTRIB_7 = _ivideo.CS_VATTRIB_7 CS_VATTRIB_8 = _ivideo.CS_VATTRIB_8 CS_VATTRIB_9 = _ivideo.CS_VATTRIB_9 CS_VATTRIB_10 = _ivideo.CS_VATTRIB_10 CS_VATTRIB_11 = _ivideo.CS_VATTRIB_11 CS_VATTRIB_12 = _ivideo.CS_VATTRIB_12 CS_VATTRIB_13 = _ivideo.CS_VATTRIB_13 CS_VATTRIB_14 = _ivideo.CS_VATTRIB_14 CS_VATTRIB_15 = _ivideo.CS_VATTRIB_15 CS_IATTRIB_OBJECT2WORLD = _ivideo.CS_IATTRIB_OBJECT2WORLD CS_MIXMODE_TYPE_AUTO = _ivideo.CS_MIXMODE_TYPE_AUTO CS_MIXMODE_TYPE_BLENDOP = _ivideo.CS_MIXMODE_TYPE_BLENDOP CS_MIXMODE_FLAG_BLENDOP_ALPHA = _ivideo.CS_MIXMODE_FLAG_BLENDOP_ALPHA CS_MIXMODE_TYPE_MESH = _ivideo.CS_MIXMODE_TYPE_MESH CS_MIXMODE_TYPE_MASK = _ivideo.CS_MIXMODE_TYPE_MASK CS_MIXMODE_FACT_ZERO = _ivideo.CS_MIXMODE_FACT_ZERO CS_MIXMODE_FACT_ONE = _ivideo.CS_MIXMODE_FACT_ONE CS_MIXMODE_FACT_SRCCOLOR = _ivideo.CS_MIXMODE_FACT_SRCCOLOR CS_MIXMODE_FACT_SRCCOLOR_INV = _ivideo.CS_MIXMODE_FACT_SRCCOLOR_INV CS_MIXMODE_FACT_DSTCOLOR = _ivideo.CS_MIXMODE_FACT_DSTCOLOR CS_MIXMODE_FACT_DSTCOLOR_INV = _ivideo.CS_MIXMODE_FACT_DSTCOLOR_INV CS_MIXMODE_FACT_SRCALPHA = _ivideo.CS_MIXMODE_FACT_SRCALPHA CS_MIXMODE_FACT_SRCALPHA_INV = _ivideo.CS_MIXMODE_FACT_SRCALPHA_INV CS_MIXMODE_FACT_DSTALPHA = _ivideo.CS_MIXMODE_FACT_DSTALPHA CS_MIXMODE_FACT_DSTALPHA_INV = _ivideo.CS_MIXMODE_FACT_DSTALPHA_INV CS_MIXMODE_FACT_COUNT = _ivideo.CS_MIXMODE_FACT_COUNT CS_MIXMODE_FACT_MASK = _ivideo.CS_MIXMODE_FACT_MASK CS_MIXMODE_ALPHATEST_AUTO = _ivideo.CS_MIXMODE_ALPHATEST_AUTO CS_MIXMODE_ALPHATEST_ENABLE = _ivideo.CS_MIXMODE_ALPHATEST_ENABLE CS_MIXMODE_ALPHATEST_DISABLE = _ivideo.CS_MIXMODE_ALPHATEST_DISABLE CS_MIXMODE_ALPHATEST_MASK = _ivideo.CS_MIXMODE_ALPHATEST_MASK CS_FX_COPY = _ivideo.CS_FX_COPY CS_FX_MESH = _ivideo.CS_FX_MESH CS_FX_FLAT = _ivideo.CS_FX_FLAT CS_FX_MASK_ALPHA = _ivideo.CS_FX_MASK_ALPHA CS_FX_MASK_MIXMODE = _ivideo.CS_FX_MASK_MIXMODE class csAlphaMode(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr alphaNone = _ivideo.csAlphaMode_alphaNone alphaBinary = _ivideo.csAlphaMode_alphaBinary alphaSmooth = _ivideo.csAlphaMode_alphaSmooth autoAlphaMode = _swig_property(_ivideo.csAlphaMode_autoAlphaMode_get, _ivideo.csAlphaMode_autoAlphaMode_set) def __init__(self, *args): this = _ivideo.new_csAlphaMode(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_csAlphaMode __del__ = lambda self : None; csAlphaMode_swigregister = _ivideo.csAlphaMode_swigregister csAlphaMode_swigregister(csAlphaMode) CS_SHADOW_VOLUME_BEGIN = _ivideo.CS_SHADOW_VOLUME_BEGIN CS_SHADOW_VOLUME_PASS1 = _ivideo.CS_SHADOW_VOLUME_PASS1 CS_SHADOW_VOLUME_PASS2 = _ivideo.CS_SHADOW_VOLUME_PASS2 CS_SHADOW_VOLUME_FAIL1 = _ivideo.CS_SHADOW_VOLUME_FAIL1 CS_SHADOW_VOLUME_FAIL2 = _ivideo.CS_SHADOW_VOLUME_FAIL2 CS_SHADOW_VOLUME_USE = _ivideo.CS_SHADOW_VOLUME_USE CS_SHADOW_VOLUME_FINISH = _ivideo.CS_SHADOW_VOLUME_FINISH G3DRENDERSTATE_EDGES = _ivideo.G3DRENDERSTATE_EDGES class csGraphics3DCaps(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr minTexHeight = _swig_property(_ivideo.csGraphics3DCaps_minTexHeight_get, _ivideo.csGraphics3DCaps_minTexHeight_set) minTexWidth = _swig_property(_ivideo.csGraphics3DCaps_minTexWidth_get, _ivideo.csGraphics3DCaps_minTexWidth_set) maxTexHeight = _swig_property(_ivideo.csGraphics3DCaps_maxTexHeight_get, _ivideo.csGraphics3DCaps_maxTexHeight_set) maxTexWidth = _swig_property(_ivideo.csGraphics3DCaps_maxTexWidth_get, _ivideo.csGraphics3DCaps_maxTexWidth_set) SupportsPointSprites = _swig_property(_ivideo.csGraphics3DCaps_SupportsPointSprites_get, _ivideo.csGraphics3DCaps_SupportsPointSprites_set) DestinationAlpha = _swig_property(_ivideo.csGraphics3DCaps_DestinationAlpha_get, _ivideo.csGraphics3DCaps_DestinationAlpha_set) StencilShadows = _swig_property(_ivideo.csGraphics3DCaps_StencilShadows_get, _ivideo.csGraphics3DCaps_StencilShadows_set) MaxRTColorAttachments = _swig_property(_ivideo.csGraphics3DCaps_MaxRTColorAttachments_get, _ivideo.csGraphics3DCaps_MaxRTColorAttachments_set) def __init__(self, *args): this = _ivideo.new_csGraphics3DCaps(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_csGraphics3DCaps __del__ = lambda self : None; csGraphics3DCaps_swigregister = _ivideo.csGraphics3DCaps_swigregister csGraphics3DCaps_swigregister(csGraphics3DCaps) CS_MESHTYPE_TRIANGLES = _ivideo.CS_MESHTYPE_TRIANGLES CS_MESHTYPE_QUADS = _ivideo.CS_MESHTYPE_QUADS CS_MESHTYPE_TRIANGLESTRIP = _ivideo.CS_MESHTYPE_TRIANGLESTRIP CS_MESHTYPE_TRIANGLEFAN = _ivideo.CS_MESHTYPE_TRIANGLEFAN CS_MESHTYPE_POINTS = _ivideo.CS_MESHTYPE_POINTS CS_MESHTYPE_POINT_SPRITES = _ivideo.CS_MESHTYPE_POINT_SPRITES CS_MESHTYPE_LINES = _ivideo.CS_MESHTYPE_LINES CS_MESHTYPE_LINESTRIP = _ivideo.CS_MESHTYPE_LINESTRIP csSimpleMeshScreenspace = _ivideo.csSimpleMeshScreenspace CS_OPENPORTAL_ZFILL = _ivideo.CS_OPENPORTAL_ZFILL CS_OPENPORTAL_MIRROR = _ivideo.CS_OPENPORTAL_MIRROR CS_OPENPORTAL_FLOAT = _ivideo.CS_OPENPORTAL_FLOAT class csSimpleRenderMesh(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr meshtype = _swig_property(_ivideo.csSimpleRenderMesh_meshtype_get, _ivideo.csSimpleRenderMesh_meshtype_set) indexCount = _swig_property(_ivideo.csSimpleRenderMesh_indexCount_get, _ivideo.csSimpleRenderMesh_indexCount_set) indices = _swig_property(_ivideo.csSimpleRenderMesh_indices_get, _ivideo.csSimpleRenderMesh_indices_set) indexStart = _swig_property(_ivideo.csSimpleRenderMesh_indexStart_get, _ivideo.csSimpleRenderMesh_indexStart_set) indexEnd = _swig_property(_ivideo.csSimpleRenderMesh_indexEnd_get, _ivideo.csSimpleRenderMesh_indexEnd_set) vertexCount = _swig_property(_ivideo.csSimpleRenderMesh_vertexCount_get, _ivideo.csSimpleRenderMesh_vertexCount_set) vertices = _swig_property(_ivideo.csSimpleRenderMesh_vertices_get, _ivideo.csSimpleRenderMesh_vertices_set) texcoords = _swig_property(_ivideo.csSimpleRenderMesh_texcoords_get, _ivideo.csSimpleRenderMesh_texcoords_set) colors = _swig_property(_ivideo.csSimpleRenderMesh_colors_get, _ivideo.csSimpleRenderMesh_colors_set) texture = _swig_property(_ivideo.csSimpleRenderMesh_texture_get, _ivideo.csSimpleRenderMesh_texture_set) shader = _swig_property(_ivideo.csSimpleRenderMesh_shader_get, _ivideo.csSimpleRenderMesh_shader_set) dynDomain = _swig_property(_ivideo.csSimpleRenderMesh_dynDomain_get, _ivideo.csSimpleRenderMesh_dynDomain_set) alphaType = _swig_property(_ivideo.csSimpleRenderMesh_alphaType_get, _ivideo.csSimpleRenderMesh_alphaType_set) z_buf_mode = _swig_property(_ivideo.csSimpleRenderMesh_z_buf_mode_get, _ivideo.csSimpleRenderMesh_z_buf_mode_set) mixmode = _swig_property(_ivideo.csSimpleRenderMesh_mixmode_get, _ivideo.csSimpleRenderMesh_mixmode_set) object2world = _swig_property(_ivideo.csSimpleRenderMesh_object2world_get, _ivideo.csSimpleRenderMesh_object2world_set) renderBuffers = _swig_property(_ivideo.csSimpleRenderMesh_renderBuffers_get, _ivideo.csSimpleRenderMesh_renderBuffers_set) def __init__(self, *args): this = _ivideo.new_csSimpleRenderMesh(*args) try: self.this.append(this) except: self.this = this def SetWithGenmeshFactory(*args): return _ivideo.csSimpleRenderMesh_SetWithGenmeshFactory(*args) __swig_destroy__ = _ivideo.delete_csSimpleRenderMesh __del__ = lambda self : None; csSimpleRenderMesh_swigregister = _ivideo.csSimpleRenderMesh_swigregister csSimpleRenderMesh_swigregister(csSimpleRenderMesh) rtaDepth = _ivideo.rtaDepth rtaColor0 = _ivideo.rtaColor0 rtaColor1 = _ivideo.rtaColor1 rtaColor2 = _ivideo.rtaColor2 rtaColor3 = _ivideo.rtaColor3 rtaColor4 = _ivideo.rtaColor4 rtaColor5 = _ivideo.rtaColor5 rtaColor6 = _ivideo.rtaColor6 rtaColor7 = _ivideo.rtaColor7 rtaColor8 = _ivideo.rtaColor8 rtaColor9 = _ivideo.rtaColor9 rtaColor10 = _ivideo.rtaColor10 rtaColor11 = _ivideo.rtaColor11 rtaColor12 = _ivideo.rtaColor12 rtaColor13 = _ivideo.rtaColor13 rtaColor14 = _ivideo.rtaColor14 rtaColor15 = _ivideo.rtaColor15 rtaNumAttachments = _ivideo.rtaNumAttachments rtaNumColorAttachments = _ivideo.rtaNumColorAttachments class TextureComparisonMode(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr compareNone = _ivideo.TextureComparisonMode_compareNone compareR = _ivideo.TextureComparisonMode_compareR mode = _swig_property(_ivideo.TextureComparisonMode_mode_get, _ivideo.TextureComparisonMode_mode_set) funcLEqual = _ivideo.TextureComparisonMode_funcLEqual funcGEqual = _ivideo.TextureComparisonMode_funcGEqual function = _swig_property(_ivideo.TextureComparisonMode_function_get, _ivideo.TextureComparisonMode_function_set) def __init__(self, *args): this = _ivideo.new_TextureComparisonMode(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_TextureComparisonMode __del__ = lambda self : None; TextureComparisonMode_swigregister = _ivideo.TextureComparisonMode_swigregister TextureComparisonMode_swigregister(TextureComparisonMode) class iGraphics3D(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def Open(*args): return _ivideo.iGraphics3D_Open(*args) def Close(*args): return _ivideo.iGraphics3D_Close(*args) def GetDriver2D(*args): return _ivideo.iGraphics3D_GetDriver2D(*args) def GetTextureManager(*args): return _ivideo.iGraphics3D_GetTextureManager(*args) def SetDimensions(*args): return _ivideo.iGraphics3D_SetDimensions(*args) def GetWidth(*args): return _ivideo.iGraphics3D_GetWidth(*args) def GetHeight(*args): return _ivideo.iGraphics3D_GetHeight(*args) def GetCaps(*args): return _ivideo.iGraphics3D_GetCaps(*args) def SetPerspectiveCenter(*args): return _ivideo.iGraphics3D_SetPerspectiveCenter(*args) def GetPerspectiveCenter(*args): return _ivideo.iGraphics3D_GetPerspectiveCenter(*args) def SetPerspectiveAspect(*args): return _ivideo.iGraphics3D_SetPerspectiveAspect(*args) def GetPerspectiveAspect(*args): return _ivideo.iGraphics3D_GetPerspectiveAspect(*args) def SetRenderTarget(*args): return _ivideo.iGraphics3D_SetRenderTarget(*args) def ValidateRenderTargets(*args): return _ivideo.iGraphics3D_ValidateRenderTargets(*args) def CanSetRenderTarget(*args): return _ivideo.iGraphics3D_CanSetRenderTarget(*args) def GetRenderTarget(*args): return _ivideo.iGraphics3D_GetRenderTarget(*args) def UnsetRenderTargets(*args): return _ivideo.iGraphics3D_UnsetRenderTargets(*args) def BeginDraw(*args): return _ivideo.iGraphics3D_BeginDraw(*args) def FinishDraw(*args): return _ivideo.iGraphics3D_FinishDraw(*args) def Print(*args): return _ivideo.iGraphics3D_Print(*args) def DrawMesh(*args): return _ivideo.iGraphics3D_DrawMesh(*args) def DrawSimpleMesh(*args): return _ivideo.iGraphics3D_DrawSimpleMesh(*args) def DrawPixmap(*args): return _ivideo.iGraphics3D_DrawPixmap(*args) def DrawLine(*args): return _ivideo.iGraphics3D_DrawLine(*args) def ActivateBuffers(*args): return _ivideo.iGraphics3D_ActivateBuffers(*args) def DeactivateBuffers(*args): return _ivideo.iGraphics3D_DeactivateBuffers(*args) def SetTextureState(*args): return _ivideo.iGraphics3D_SetTextureState(*args) def SetClipper(*args): return _ivideo.iGraphics3D_SetClipper(*args) def GetClipper(*args): return _ivideo.iGraphics3D_GetClipper(*args) def GetClipType(*args): return _ivideo.iGraphics3D_GetClipType(*args) def SetNearPlane(*args): return _ivideo.iGraphics3D_SetNearPlane(*args) def ResetNearPlane(*args): return _ivideo.iGraphics3D_ResetNearPlane(*args) def GetNearPlane(*args): return _ivideo.iGraphics3D_GetNearPlane(*args) def HasNearPlane(*args): return _ivideo.iGraphics3D_HasNearPlane(*args) def SetRenderState(*args): return _ivideo.iGraphics3D_SetRenderState(*args) def GetRenderState(*args): return _ivideo.iGraphics3D_GetRenderState(*args) def SetOption(*args): return _ivideo.iGraphics3D_SetOption(*args) def SetWriteMask(*args): return _ivideo.iGraphics3D_SetWriteMask(*args) def GetWriteMask(*args): return _ivideo.iGraphics3D_GetWriteMask(*args) def SetZMode(*args): return _ivideo.iGraphics3D_SetZMode(*args) def GetZMode(*args): return _ivideo.iGraphics3D_GetZMode(*args) def EnableZOffset(*args): return _ivideo.iGraphics3D_EnableZOffset(*args) def DisableZOffset(*args): return _ivideo.iGraphics3D_DisableZOffset(*args) def SetShadowState(*args): return _ivideo.iGraphics3D_SetShadowState(*args) def GetZBuffValue(*args): return _ivideo.iGraphics3D_GetZBuffValue(*args) def OpenPortal(*args): return _ivideo.iGraphics3D_OpenPortal(*args) def ClosePortal(*args): return _ivideo.iGraphics3D_ClosePortal(*args) def CreateHalo(*args): return _ivideo.iGraphics3D_CreateHalo(*args) def SetWorldToCamera(*args): return _ivideo.iGraphics3D_SetWorldToCamera(*args) def PerformExtension(*args): return _ivideo.iGraphics3D_PerformExtension(*args) def GetWorldToCamera(*args): return _ivideo.iGraphics3D_GetWorldToCamera(*args) def GetCurrentDrawFlags(*args): return _ivideo.iGraphics3D_GetCurrentDrawFlags(*args) def GetProjectionMatrix(*args): return _ivideo.iGraphics3D_GetProjectionMatrix(*args) def SetProjectionMatrix(*args): return _ivideo.iGraphics3D_SetProjectionMatrix(*args) def SetTextureComparisonModes(*args): return _ivideo.iGraphics3D_SetTextureComparisonModes(*args) def CopyFromRenderTargets(*args): return _ivideo.iGraphics3D_CopyFromRenderTargets(*args) def DrawSimpleMeshes(*args): return _ivideo.iGraphics3D_DrawSimpleMeshes(*args) def OQInitQueries(*args): return _ivideo.iGraphics3D_OQInitQueries(*args) def OQDelQueries(*args): return _ivideo.iGraphics3D_OQDelQueries(*args) def OQueryFinished(*args): return _ivideo.iGraphics3D_OQueryFinished(*args) def OQIsVisible(*args): return _ivideo.iGraphics3D_OQIsVisible(*args) def OQBeginQuery(*args): return _ivideo.iGraphics3D_OQBeginQuery(*args) def OQEndQuery(*args): return _ivideo.iGraphics3D_OQEndQuery(*args) def DrawMeshBasic(*args): return _ivideo.iGraphics3D_DrawMeshBasic(*args) def SetEdgeDrawing(*args): return _ivideo.iGraphics3D_SetEdgeDrawing(*args) def GetEdgeDrawing(*args): return _ivideo.iGraphics3D_GetEdgeDrawing(*args) def SetTessellation(*args): return _ivideo.iGraphics3D_SetTessellation(*args) def GetTessellation(*args): return _ivideo.iGraphics3D_GetTessellation(*args) scfGetVersion = staticmethod(_ivideo.iGraphics3D_scfGetVersion) __swig_destroy__ = _ivideo.delete_iGraphics3D __del__ = lambda self : None; iGraphics3D_swigregister = _ivideo.iGraphics3D_swigregister iGraphics3D_swigregister(iGraphics3D) iGraphics3D_scfGetVersion = _ivideo.iGraphics3D_scfGetVersion csmcNone = _ivideo.csmcNone csmcArrow = _ivideo.csmcArrow csmcLens = _ivideo.csmcLens csmcCross = _ivideo.csmcCross csmcPen = _ivideo.csmcPen csmcMove = _ivideo.csmcMove csmcSizeNWSE = _ivideo.csmcSizeNWSE csmcSizeNESW = _ivideo.csmcSizeNESW csmcSizeNS = _ivideo.csmcSizeNS csmcSizeEW = _ivideo.csmcSizeEW csmcStop = _ivideo.csmcStop csmcWait = _ivideo.csmcWait CS_ALERT_ERROR = _ivideo.CS_ALERT_ERROR CS_ALERT_WARNING = _ivideo.CS_ALERT_WARNING CS_ALERT_NOTE = _ivideo.CS_ALERT_NOTE class iNativeWindowManager(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def Alert(*args): return _ivideo.iNativeWindowManager_Alert(*args) __swig_destroy__ = _ivideo.delete_iNativeWindowManager __del__ = lambda self : None; iNativeWindowManager_swigregister = _ivideo.iNativeWindowManager_swigregister iNativeWindowManager_swigregister(iNativeWindowManager) class iNativeWindow(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def SetTitle(*args): return _ivideo.iNativeWindow_SetTitle(*args) def SetIcon(*args): return _ivideo.iNativeWindow_SetIcon(*args) def IsWindowTransparencyAvailable(*args): return _ivideo.iNativeWindow_IsWindowTransparencyAvailable(*args) def SetWindowTransparent(*args): return _ivideo.iNativeWindow_SetWindowTransparent(*args) def GetWindowTransparent(*args): return _ivideo.iNativeWindow_GetWindowTransparent(*args) decoCaption = _ivideo.iNativeWindow_decoCaption decoClientFrame = _ivideo.iNativeWindow_decoClientFrame def SetWindowDecoration(*args): return _ivideo.iNativeWindow_SetWindowDecoration(*args) def GetWindowDecoration(*args): return _ivideo.iNativeWindow_GetWindowDecoration(*args) def FitSizeToWorkingArea(*args): return _ivideo.iNativeWindow_FitSizeToWorkingArea(*args) __swig_destroy__ = _ivideo.delete_iNativeWindow __del__ = lambda self : None; iNativeWindow_swigregister = _ivideo.iNativeWindow_swigregister iNativeWindow_swigregister(iNativeWindow) class RenderPriority(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): this = _ivideo.new_RenderPriority(*args) try: self.this.append(this) except: self.this = this def IsValid(*args): return _ivideo.RenderPriority_IsValid(*args) __swig_destroy__ = _ivideo.delete_RenderPriority __del__ = lambda self : None; RenderPriority_swigregister = _ivideo.RenderPriority_swigregister RenderPriority_swigregister(RenderPriority) cullNormal = _ivideo.cullNormal cullFlipped = _ivideo.cullFlipped cullDisabled = _ivideo.cullDisabled GetFlippedCullMode = _ivideo.GetFlippedCullMode atfGreaterEqual = _ivideo.atfGreaterEqual atfGreater = _ivideo.atfGreater atfLowerEqual = _ivideo.atfLowerEqual atfLower = _ivideo.atfLower class AlphaTestOptions(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr threshold = _swig_property(_ivideo.AlphaTestOptions_threshold_get, _ivideo.AlphaTestOptions_threshold_set) func = _swig_property(_ivideo.AlphaTestOptions_func_get, _ivideo.AlphaTestOptions_func_set) def __init__(self, *args): this = _ivideo.new_AlphaTestOptions(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_AlphaTestOptions __del__ = lambda self : None; AlphaTestOptions_swigregister = _ivideo.AlphaTestOptions_swigregister AlphaTestOptions_swigregister(AlphaTestOptions) class RenderMeshModes(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): this = _ivideo.new_RenderMeshModes(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_RenderMeshModes __del__ = lambda self : None; z_buf_mode = _swig_property(_ivideo.RenderMeshModes_z_buf_mode_get, _ivideo.RenderMeshModes_z_buf_mode_set) mixmode = _swig_property(_ivideo.RenderMeshModes_mixmode_get, _ivideo.RenderMeshModes_mixmode_set) alphaToCoverage = _swig_property(_ivideo.RenderMeshModes_alphaToCoverage_get, _ivideo.RenderMeshModes_alphaToCoverage_set) atcMixmode = _swig_property(_ivideo.RenderMeshModes_atcMixmode_get, _ivideo.RenderMeshModes_atcMixmode_set) renderPrio = _swig_property(_ivideo.RenderMeshModes_renderPrio_get, _ivideo.RenderMeshModes_renderPrio_set) cullMode = _swig_property(_ivideo.RenderMeshModes_cullMode_get, _ivideo.RenderMeshModes_cullMode_set) alphaType = _swig_property(_ivideo.RenderMeshModes_alphaType_get, _ivideo.RenderMeshModes_alphaType_set) alphaTest = _swig_property(_ivideo.RenderMeshModes_alphaTest_get, _ivideo.RenderMeshModes_alphaTest_set) zoffset = _swig_property(_ivideo.RenderMeshModes_zoffset_get, _ivideo.RenderMeshModes_zoffset_set) buffers = _swig_property(_ivideo.RenderMeshModes_buffers_get, _ivideo.RenderMeshModes_buffers_set) doInstancing = _swig_property(_ivideo.RenderMeshModes_doInstancing_get, _ivideo.RenderMeshModes_doInstancing_set) instParamNum = _swig_property(_ivideo.RenderMeshModes_instParamNum_get, _ivideo.RenderMeshModes_instParamNum_set) instParamsTargets = _swig_property(_ivideo.RenderMeshModes_instParamsTargets_get, _ivideo.RenderMeshModes_instParamsTargets_set) instanceNum = _swig_property(_ivideo.RenderMeshModes_instanceNum_get, _ivideo.RenderMeshModes_instanceNum_set) instParams = _swig_property(_ivideo.RenderMeshModes_instParams_get, _ivideo.RenderMeshModes_instParams_set) instParamBuffers = _swig_property(_ivideo.RenderMeshModes_instParamBuffers_get, _ivideo.RenderMeshModes_instParamBuffers_set) RenderMeshModes_swigregister = _ivideo.RenderMeshModes_swigregister RenderMeshModes_swigregister(RenderMeshModes) class RenderMeshIndexRange(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr start = _swig_property(_ivideo.RenderMeshIndexRange_start_get, _ivideo.RenderMeshIndexRange_start_set) end = _swig_property(_ivideo.RenderMeshIndexRange_end_get, _ivideo.RenderMeshIndexRange_end_set) def __init__(self, *args): this = _ivideo.new_RenderMeshIndexRange(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_RenderMeshIndexRange __del__ = lambda self : None; RenderMeshIndexRange_swigregister = _ivideo.RenderMeshIndexRange_swigregister RenderMeshIndexRange_swigregister(RenderMeshIndexRange) class CoreRenderMesh(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr db_mesh_name = _swig_property(_ivideo.CoreRenderMesh_db_mesh_name_get) def __init__(self, *args): this = _ivideo.new_CoreRenderMesh(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_CoreRenderMesh __del__ = lambda self : None; clip_portal = _swig_property(_ivideo.CoreRenderMesh_clip_portal_get, _ivideo.CoreRenderMesh_clip_portal_set) clip_plane = _swig_property(_ivideo.CoreRenderMesh_clip_plane_get, _ivideo.CoreRenderMesh_clip_plane_set) clip_z_plane = _swig_property(_ivideo.CoreRenderMesh_clip_z_plane_get, _ivideo.CoreRenderMesh_clip_z_plane_set) do_mirror = _swig_property(_ivideo.CoreRenderMesh_do_mirror_get, _ivideo.CoreRenderMesh_do_mirror_set) meshtype = _swig_property(_ivideo.CoreRenderMesh_meshtype_get, _ivideo.CoreRenderMesh_meshtype_set) multiRanges = _swig_property(_ivideo.CoreRenderMesh_multiRanges_get, _ivideo.CoreRenderMesh_multiRanges_set) rangesNum = _swig_property(_ivideo.CoreRenderMesh_rangesNum_get, _ivideo.CoreRenderMesh_rangesNum_set) indexstart = _swig_property(_ivideo.CoreRenderMesh_indexstart_get, _ivideo.CoreRenderMesh_indexstart_set) indexend = _swig_property(_ivideo.CoreRenderMesh_indexend_get, _ivideo.CoreRenderMesh_indexend_set) material = _swig_property(_ivideo.CoreRenderMesh_material_get, _ivideo.CoreRenderMesh_material_set) object2world = _swig_property(_ivideo.CoreRenderMesh_object2world_get, _ivideo.CoreRenderMesh_object2world_set) bbox = _swig_property(_ivideo.CoreRenderMesh_bbox_get, _ivideo.CoreRenderMesh_bbox_set) CoreRenderMesh_swigregister = _ivideo.CoreRenderMesh_swigregister CoreRenderMesh_swigregister(CoreRenderMesh) class RenderMesh(CoreRenderMesh,RenderMeshModes): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): this = _ivideo.new_RenderMesh(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_RenderMesh __del__ = lambda self : None; geometryInstance = _swig_property(_ivideo.RenderMesh_geometryInstance_get, _ivideo.RenderMesh_geometryInstance_set) portal = _swig_property(_ivideo.RenderMesh_portal_get, _ivideo.RenderMesh_portal_set) variablecontext = _swig_property(_ivideo.RenderMesh_variablecontext_get, _ivideo.RenderMesh_variablecontext_set) worldspace_origin = _swig_property(_ivideo.RenderMesh_worldspace_origin_get, _ivideo.RenderMesh_worldspace_origin_set) RenderMesh_swigregister = _ivideo.RenderMesh_swigregister RenderMesh_swigregister(RenderMesh) CSFONT_LARGE = _ivideo.CSFONT_LARGE CSFONT_ITALIC = _ivideo.CSFONT_ITALIC CSFONT_COURIER = _ivideo.CSFONT_COURIER CSFONT_SMALL = _ivideo.CSFONT_SMALL CS_FONT_DEFAULT_GLYPH = _ivideo.CS_FONT_DEFAULT_GLYPH class iFontDeleteNotify(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def BeforeDelete(*args): return _ivideo.iFontDeleteNotify_BeforeDelete(*args) __swig_destroy__ = _ivideo.delete_iFontDeleteNotify __del__ = lambda self : None; iFontDeleteNotify_swigregister = _ivideo.iFontDeleteNotify_swigregister iFontDeleteNotify_swigregister(iFontDeleteNotify) class csBitmapMetrics(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr width = _swig_property(_ivideo.csBitmapMetrics_width_get, _ivideo.csBitmapMetrics_width_set) height = _swig_property(_ivideo.csBitmapMetrics_height_get, _ivideo.csBitmapMetrics_height_set) left = _swig_property(_ivideo.csBitmapMetrics_left_get, _ivideo.csBitmapMetrics_left_set) top = _swig_property(_ivideo.csBitmapMetrics_top_get, _ivideo.csBitmapMetrics_top_set) def __init__(self, *args): this = _ivideo.new_csBitmapMetrics(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_csBitmapMetrics __del__ = lambda self : None; csBitmapMetrics_swigregister = _ivideo.csBitmapMetrics_swigregister csBitmapMetrics_swigregister(csBitmapMetrics) class csGlyphMetrics(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr advance = _swig_property(_ivideo.csGlyphMetrics_advance_get, _ivideo.csGlyphMetrics_advance_set) def __init__(self, *args): this = _ivideo.new_csGlyphMetrics(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_csGlyphMetrics __del__ = lambda self : None; csGlyphMetrics_swigregister = _ivideo.csGlyphMetrics_swigregister csGlyphMetrics_swigregister(csGlyphMetrics) class iFont(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def AddDeleteCallback(*args): return _ivideo.iFont_AddDeleteCallback(*args) def RemoveDeleteCallback(*args): return _ivideo.iFont_RemoveDeleteCallback(*args) def GetSize(*args): return _ivideo.iFont_GetSize(*args) def GetMaxSize(*args): return _ivideo.iFont_GetMaxSize(*args) def GetGlyphMetrics(*args): return _ivideo.iFont_GetGlyphMetrics(*args) def GetGlyphBitmap(*args): return _ivideo.iFont_GetGlyphBitmap(*args) def GetGlyphAlphaBitmap(*args): return _ivideo.iFont_GetGlyphAlphaBitmap(*args) def GetDimensions(*args): return _ivideo.iFont_GetDimensions(*args) def GetLength(*args): return _ivideo.iFont_GetLength(*args) def GetDescent(*args): return _ivideo.iFont_GetDescent(*args) def GetAscent(*args): return _ivideo.iFont_GetAscent(*args) def HasGlyph(*args): return _ivideo.iFont_HasGlyph(*args) def GetTextHeight(*args): return _ivideo.iFont_GetTextHeight(*args) def GetUnderlinePosition(*args): return _ivideo.iFont_GetUnderlinePosition(*args) def GetUnderlineThickness(*args): return _ivideo.iFont_GetUnderlineThickness(*args) scfGetVersion = staticmethod(_ivideo.iFont_scfGetVersion) __swig_destroy__ = _ivideo.delete_iFont __del__ = lambda self : None; iFont_swigregister = _ivideo.iFont_swigregister iFont_swigregister(iFont) iFont_scfGetVersion = _ivideo.iFont_scfGetVersion class iFontServer(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def LoadFont(*args): return _ivideo.iFontServer_LoadFont(*args) def SetWarnOnError(*args): return _ivideo.iFontServer_SetWarnOnError(*args) def GetWarnOnError(*args): return _ivideo.iFontServer_GetWarnOnError(*args) scfGetVersion = staticmethod(_ivideo.iFontServer_scfGetVersion) __swig_destroy__ = _ivideo.delete_iFontServer __del__ = lambda self : None; iFontServer_swigregister = _ivideo.iFontServer_swigregister iFontServer_swigregister(iFontServer) iFontServer_scfGetVersion = _ivideo.iFontServer_scfGetVersion class iHalo(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def GetWidth(*args): return _ivideo.iHalo_GetWidth(*args) def GetHeight(*args): return _ivideo.iHalo_GetHeight(*args) def SetColor(*args): return _ivideo.iHalo_SetColor(*args) def GetColor(*args): return _ivideo.iHalo_GetColor(*args) def Draw(*args): return _ivideo.iHalo_Draw(*args) scfGetVersion = staticmethod(_ivideo.iHalo_scfGetVersion) __swig_destroy__ = _ivideo.delete_iHalo __del__ = lambda self : None; iHalo_swigregister = _ivideo.iHalo_swigregister iHalo_swigregister(iHalo) iHalo_scfGetVersion = _ivideo.iHalo_scfGetVersion class csShaderVariableStack(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): this = _ivideo.new_csShaderVariableStack(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_csShaderVariableStack __del__ = lambda self : None; def assign(*args): return _ivideo.csShaderVariableStack_assign(*args) def Setup(*args): return _ivideo.csShaderVariableStack_Setup(*args) def MakeOwnArray(*args): return _ivideo.csShaderVariableStack_MakeOwnArray(*args) def GetSize(*args): return _ivideo.csShaderVariableStack_GetSize(*args) def Clear(*args): return _ivideo.csShaderVariableStack_Clear(*args) def MergeFront(*args): return _ivideo.csShaderVariableStack_MergeFront(*args) def MergeBack(*args): return _ivideo.csShaderVariableStack_MergeBack(*args) def Copy(*args): return _ivideo.csShaderVariableStack_Copy(*args) csShaderVariableStack_swigregister = _ivideo.csShaderVariableStack_swigregister csShaderVariableStack_swigregister(csShaderVariableStack) csGetShaderVariableFromStack = _ivideo.csGetShaderVariableFromStack class iShaderVariableContext(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def AddVariable(*args): return _ivideo.iShaderVariableContext_AddVariable(*args) def GetVariable(*args): return _ivideo.iShaderVariableContext_GetVariable(*args) def GetVariableAdd(*args): return _ivideo.iShaderVariableContext_GetVariableAdd(*args) def GetShaderVariables(*args): return _ivideo.iShaderVariableContext_GetShaderVariables(*args) def PushVariables(*args): return _ivideo.iShaderVariableContext_PushVariables(*args) def IsEmpty(*args): return _ivideo.iShaderVariableContext_IsEmpty(*args) def ReplaceVariable(*args): return _ivideo.iShaderVariableContext_ReplaceVariable(*args) def Clear(*args): return _ivideo.iShaderVariableContext_Clear(*args) def RemoveVariable(*args): return _ivideo.iShaderVariableContext_RemoveVariable(*args) scfGetVersion = staticmethod(_ivideo.iShaderVariableContext_scfGetVersion) __swig_destroy__ = _ivideo.delete_iShaderVariableContext __del__ = lambda self : None; iShaderVariableContext_swigregister = _ivideo.iShaderVariableContext_swigregister iShaderVariableContext_swigregister(iShaderVariableContext) iShaderVariableContext_scfGetVersion = _ivideo.iShaderVariableContext_scfGetVersion TagNeutral = _ivideo.TagNeutral TagForbidden = _ivideo.TagForbidden TagRequired = _ivideo.TagRequired class iShaderManager(iShaderVariableContext): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def RegisterShader(*args): return _ivideo.iShaderManager_RegisterShader(*args) def UnregisterShader(*args): return _ivideo.iShaderManager_UnregisterShader(*args) def UnregisterShaders(*args): return _ivideo.iShaderManager_UnregisterShaders(*args) def GetShader(*args): return _ivideo.iShaderManager_GetShader(*args) def GetShaders(*args): return _ivideo.iShaderManager_GetShaders(*args) def RegisterCompiler(*args): return _ivideo.iShaderManager_RegisterCompiler(*args) def GetCompiler(*args): return _ivideo.iShaderManager_GetCompiler(*args) def RegisterShaderVariableAccessor(*args): return _ivideo.iShaderManager_RegisterShaderVariableAccessor(*args) def UnregisterShaderVariableAccessor(*args): return _ivideo.iShaderManager_UnregisterShaderVariableAccessor(*args) def GetShaderVariableAccessor(*args): return _ivideo.iShaderManager_GetShaderVariableAccessor(*args) def UnregisterShaderVariableAcessors(*args): return _ivideo.iShaderManager_UnregisterShaderVariableAcessors(*args) def GetShaderVariableStack(*args): return _ivideo.iShaderManager_GetShaderVariableStack(*args) def SetTagOptions(*args): return _ivideo.iShaderManager_SetTagOptions(*args) def GetTagOptions(*args): return _ivideo.iShaderManager_GetTagOptions(*args) def GetTags(*args): return _ivideo.iShaderManager_GetTags(*args) def GetSVNameStringset(*args): return _ivideo.iShaderManager_GetSVNameStringset(*args) def GetShaderCache(*args): return _ivideo.iShaderManager_GetShaderCache(*args) cachePriorityLowest = _ivideo.iShaderManager_cachePriorityLowest cachePriorityGlobal = _ivideo.iShaderManager_cachePriorityGlobal cachePriorityApp = _ivideo.iShaderManager_cachePriorityApp cachePriorityUser = _ivideo.iShaderManager_cachePriorityUser cachePriorityHighest = _ivideo.iShaderManager_cachePriorityHighest def AddSubShaderCache(*args): return _ivideo.iShaderManager_AddSubShaderCache(*args) def AddSubCacheDirectory(*args): return _ivideo.iShaderManager_AddSubCacheDirectory(*args) def RemoveSubShaderCache(*args): return _ivideo.iShaderManager_RemoveSubShaderCache(*args) def RemoveAllSubShaderCaches(*args): return _ivideo.iShaderManager_RemoveAllSubShaderCaches(*args) scfGetVersion = staticmethod(_ivideo.iShaderManager_scfGetVersion) __swig_destroy__ = _ivideo.delete_iShaderManager __del__ = lambda self : None; iShaderManager_swigregister = _ivideo.iShaderManager_swigregister iShaderManager_swigregister(iShaderManager) iShaderManager_scfGetVersion = _ivideo.iShaderManager_scfGetVersion class csShaderMetadata(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr description = _swig_property(_ivideo.csShaderMetadata_description_get, _ivideo.csShaderMetadata_description_set) numberOfLights = _swig_property(_ivideo.csShaderMetadata_numberOfLights_get, _ivideo.csShaderMetadata_numberOfLights_set) def __init__(self, *args): this = _ivideo.new_csShaderMetadata(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ivideo.delete_csShaderMetadata __del__ = lambda self : None; csShaderMetadata_swigregister = _ivideo.csShaderMetadata_swigregister csShaderMetadata_swigregister(csShaderMetadata) class iShaderPriorityList(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def GetCount(*args): return _ivideo.iShaderPriorityList_GetCount(*args) def GetPriority(*args): return _ivideo.iShaderPriorityList_GetPriority(*args) __swig_destroy__ = _ivideo.delete_iShaderPriorityList __del__ = lambda self : None; iShaderPriorityList_swigregister = _ivideo.iShaderPriorityList_swigregister iShaderPriorityList_swigregister(iShaderPriorityList) class iShader(iShaderVariableContext): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def QueryObject(*args): return _ivideo.iShader_QueryObject(*args) def GetFileName(*args): return _ivideo.iShader_GetFileName(*args) def SetFileName(*args): return _ivideo.iShader_SetFileName(*args) def GetTicket(*args): return _ivideo.iShader_GetTicket(*args) def GetNumberOfPasses(*args): return _ivideo.iShader_GetNumberOfPasses(*args) def ActivatePass(*args): return _ivideo.iShader_ActivatePass(*args) def SetupPass(*args): return _ivideo.iShader_SetupPass(*args) def TeardownPass(*args): return _ivideo.iShader_TeardownPass(*args) def DeactivatePass(*args): return _ivideo.iShader_DeactivatePass(*args) svuTextures = _ivideo.iShader_svuTextures svuBuffers = _ivideo.iShader_svuBuffers svuVProc = _ivideo.iShader_svuVProc svuVP = _ivideo.iShader_svuVP svuFP = _ivideo.iShader_svuFP svuAll = _ivideo.iShader_svuAll def GetUsedShaderVars(*args): return _ivideo.iShader_GetUsedShaderVars(*args) def GetMetadata(*args): return _ivideo.iShader_GetMetadata(*args) def PushShaderVariables(*args): return _ivideo.iShader_PushShaderVariables(*args) def GetPrioritiesTicket(*args): return _ivideo.iShader_GetPrioritiesTicket(*args) def GetAvailablePriorities(*args): return _ivideo.iShader_GetAvailablePriorities(*args) def GetTechniqueMetadata(*args): return _ivideo.iShader_GetTechniqueMetadata(*args) def ForceTechnique(*args): return _ivideo.iShader_ForceTechnique(*args) scfGetVersion = staticmethod(_ivideo.iShader_scfGetVersion) __swig_destroy__ = _ivideo.delete_iShader __del__ = lambda self : None; iShader_swigregister = _ivideo.iShader_swigregister iShader_swigregister(iShader) iShader_scfGetVersion = _ivideo.iShader_scfGetVersion class iShaderCompiler(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def GetName(*args): return _ivideo.iShaderCompiler_GetName(*args) def CompileShader(*args): return _ivideo.iShaderCompiler_CompileShader(*args) def ValidateTemplate(*args): return _ivideo.iShaderCompiler_ValidateTemplate(*args) def IsTemplateToCompiler(*args): return _ivideo.iShaderCompiler_IsTemplateToCompiler(*args) def GetPriorities(*args): return _ivideo.iShaderCompiler_GetPriorities(*args) def PrecacheShader(*args): return _ivideo.iShaderCompiler_PrecacheShader(*args) __swig_destroy__ = _ivideo.delete_iShaderCompiler __del__ = lambda self : None; iShaderCompiler_swigregister = _ivideo.iShaderCompiler_swigregister iShaderCompiler_swigregister(iShaderCompiler) class csRefShaderStringIDHash(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): this = _ivideo.new_csRefShaderStringIDHash(*args) try: self.this.append(this) except: self.this = this def Put(*args): return _ivideo.csRefShaderStringIDHash_Put(*args) def GetAll(*args): return _ivideo.csRefShaderStringIDHash_GetAll(*args) def PutUnique(*args): return _ivideo.csRefShaderStringIDHash_PutUnique(*args) def Contains(*args): return _ivideo.csRefShaderStringIDHash_Contains(*args) def In(*args): return _ivideo.csRefShaderStringIDHash_In(*args) def GetElementPointer(*args): return _ivideo.csRefShaderStringIDHash_GetElementPointer(*args) def Get(*args): return _ivideo.csRefShaderStringIDHash_Get(*args) def GetOrCreate(*args): return _ivideo.csRefShaderStringIDHash_GetOrCreate(*args) def Empty(*args): return _ivideo.csRefShaderStringIDHash_Empty(*args) def DeleteAll(*args): return _ivideo.csRefShaderStringIDHash_DeleteAll(*args) def Delete(*args): return _ivideo.csRefShaderStringIDHash_Delete(*args) def GetSize(*args): return _ivideo.csRefShaderStringIDHash_GetSize(*args) def IsEmpty(*args): return _ivideo.csRefShaderStringIDHash_IsEmpty(*args) def __getitem__(*args): return _ivideo.csRefShaderStringIDHash___getitem__(*args) def __delitem__(*args): return _ivideo.csRefShaderStringIDHash___delitem__(*args) def clear(*args): return _ivideo.csRefShaderStringIDHash_clear(*args) def __nonzero__(*args): return _ivideo.csRefShaderStringIDHash___nonzero__(*args) def __setitem__(*args): return _ivideo.csRefShaderStringIDHash___setitem__(*args) def __len__(*args): return _ivideo.csRefShaderStringIDHash___len__(*args) __swig_destroy__ = _ivideo.delete_csRefShaderStringIDHash __del__ = lambda self : None; csRefShaderStringIDHash_swigregister = _ivideo.csRefShaderStringIDHash_swigregister csRefShaderStringIDHash_swigregister(csRefShaderStringIDHash) class iShaderArray(core.CustomAllocated): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr __swig_destroy__ = _ivideo.delete_iShaderArray __del__ = lambda self : None; def __init__(self, *args): this = _ivideo.new_iShaderArray(*args) try: self.this.append(this) except: self.this = this def GetSize(*args): return _ivideo.iShaderArray_GetSize(*args) def Get(*args): return _ivideo.iShaderArray_Get(*args) def Put(*args): return _ivideo.iShaderArray_Put(*args) def Push(*args): return _ivideo.iShaderArray_Push(*args) def Merge(*args): return _ivideo.iShaderArray_Merge(*args) def MergeSmart(*args): return _ivideo.iShaderArray_MergeSmart(*args) def Pop(*args): return _ivideo.iShaderArray_Pop(*args) def Top(*args): return _ivideo.iShaderArray_Top(*args) def Insert(*args): return _ivideo.iShaderArray_Insert(*args) def Contains(*args): return _ivideo.iShaderArray_Contains(*args) def DeleteAll(*args): return _ivideo.iShaderArray_DeleteAll(*args) def Truncate(*args): return _ivideo.iShaderArray_Truncate(*args) def Empty(*args): return _ivideo.iShaderArray_Empty(*args) def IsEmpty(*args): return _ivideo.iShaderArray_IsEmpty(*args) def SetMinimalCapacity(*args): return _ivideo.iShaderArray_SetMinimalCapacity(*args) def DeleteIndex(*args): return _ivideo.iShaderArray_DeleteIndex(*args) def DeleteIndexFast(*args): return _ivideo.iShaderArray_DeleteIndexFast(*args) def DeleteRange(*args): return _ivideo.iShaderArray_DeleteRange(*args) def __eq__(*args): return _ivideo.iShaderArray___eq__(*args) def __ne__(*args): return _ivideo.iShaderArray___ne__(*args) def GetAllocator(*args): return _ivideo.iShaderArray_GetAllocator(*args) iShaderArray_swigregister = _ivideo.iShaderArray_swigregister iShaderArray_swigregister(iShaderArray) class iTextureHandle(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def GetFlags(*args): return _ivideo.iTextureHandle_GetFlags(*args) def SetKeyColor(*args): return _ivideo.iTextureHandle_SetKeyColor(*args) def GetKeyColorStatus(*args): return _ivideo.iTextureHandle_GetKeyColorStatus(*args) def GetKeyColor(*args): return _ivideo.iTextureHandle_GetKeyColor(*args) CS_TEXTURE_CUBE_POS_X = _ivideo.iTextureHandle_CS_TEXTURE_CUBE_POS_X CS_TEXTURE_CUBE_NEG_X = _ivideo.iTextureHandle_CS_TEXTURE_CUBE_NEG_X CS_TEXTURE_CUBE_POS_Y = _ivideo.iTextureHandle_CS_TEXTURE_CUBE_POS_Y CS_TEXTURE_CUBE_NEG_Y = _ivideo.iTextureHandle_CS_TEXTURE_CUBE_NEG_Y CS_TEXTURE_CUBE_POS_Z = _ivideo.iTextureHandle_CS_TEXTURE_CUBE_POS_Z CS_TEXTURE_CUBE_NEG_Z = _ivideo.iTextureHandle_CS_TEXTURE_CUBE_NEG_Z def GetRendererDimensions(*args): return _ivideo.iTextureHandle_GetRendererDimensions(*args) def GetOriginalDimensions(*args): return _ivideo.iTextureHandle_GetOriginalDimensions(*args) RGBA8888 = _ivideo.iTextureHandle_RGBA8888 BGRA8888 = _ivideo.iTextureHandle_BGRA8888 def Blit(*args): return _ivideo.iTextureHandle_Blit(*args) def GetImageName(*args): return _ivideo.iTextureHandle_GetImageName(*args) def GetAlphaType(*args): return _ivideo.iTextureHandle_GetAlphaType(*args) def Precache(*args): return _ivideo.iTextureHandle_Precache(*args) def IsPrecached(*args): return _ivideo.iTextureHandle_IsPrecached(*args) def SetTextureClass(*args): return _ivideo.iTextureHandle_SetTextureClass(*args) def GetTextureClass(*args): return _ivideo.iTextureHandle_GetTextureClass(*args) def SetAlphaType(*args): return _ivideo.iTextureHandle_SetAlphaType(*args) texType1D = _ivideo.iTextureHandle_texType1D texType2D = _ivideo.iTextureHandle_texType2D texType3D = _ivideo.iTextureHandle_texType3D texTypeCube = _ivideo.iTextureHandle_texTypeCube texTypeRect = _ivideo.iTextureHandle_texTypeRect def GetTextureType(*args): return _ivideo.iTextureHandle_GetTextureType(*args) blitbufReadable = _ivideo.iTextureHandle_blitbufReadable blitbufRetainArea = _ivideo.iTextureHandle_blitbufRetainArea def QueryBlitBuffer(*args): return _ivideo.iTextureHandle_QueryBlitBuffer(*args) def ApplyBlitBuffer(*args): return _ivideo.iTextureHandle_ApplyBlitBuffer(*args) natureIndirect = _ivideo.iTextureHandle_natureIndirect natureDirect = _ivideo.iTextureHandle_natureDirect def GetBufferNature(*args): return _ivideo.iTextureHandle_GetBufferNature(*args) def SetMipmapLimits(*args): return _ivideo.iTextureHandle_SetMipmapLimits(*args) def GetMipmapLimits(*args): return _ivideo.iTextureHandle_GetMipmapLimits(*args) def Readback(*args): return _ivideo.iTextureHandle_Readback(*args) scfGetVersion = staticmethod(_ivideo.iTextureHandle_scfGetVersion) __swig_destroy__ = _ivideo.delete_iTextureHandle __del__ = lambda self : None; iTextureHandle_swigregister = _ivideo.iTextureHandle_swigregister iTextureHandle_swigregister(iTextureHandle) iTextureHandle_scfGetVersion = _ivideo.iTextureHandle_scfGetVersion CS_TEXTURE_2D = _ivideo.CS_TEXTURE_2D CS_TEXTURE_3D = _ivideo.CS_TEXTURE_3D CS_TEXTURE_NOMIPMAPS = _ivideo.CS_TEXTURE_NOMIPMAPS CS_TEXTURE_CLAMP = _ivideo.CS_TEXTURE_CLAMP CS_TEXTURE_NOFILTER = _ivideo.CS_TEXTURE_NOFILTER CS_TEXTURE_NPOTS = _ivideo.CS_TEXTURE_NPOTS CS_TEXTURE_SCALE_UP = _ivideo.CS_TEXTURE_SCALE_UP CS_TEXTURE_SCALE_DOWN = _ivideo.CS_TEXTURE_SCALE_DOWN CS_TEXTURE_CREATE_CLEAR = _ivideo.CS_TEXTURE_CREATE_CLEAR CS_TEXTURE_CUBEMAP_DISABLE_SEAMLESS = _ivideo.CS_TEXTURE_CUBEMAP_DISABLE_SEAMLESS class iTextureManager(core.iBase): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def RegisterTexture(*args): return _ivideo.iTextureManager_RegisterTexture(*args) def GetTextureFormat(*args): return _ivideo.iTextureManager_GetTextureFormat(*args) def GetMaxTextureSize(*args): return _ivideo.iTextureManager_GetMaxTextureSize(*args) def CreateTexture(*args): return _ivideo.iTextureManager_CreateTexture(*args) scfGetVersion = staticmethod(_ivideo.iTextureManager_scfGetVersion) __swig_destroy__ = _ivideo.delete_iTextureManager __del__ = lambda self : None; iTextureManager_swigregister = _ivideo.iTextureManager_swigregister iTextureManager_swigregister(iTextureManager) iTextureManager_scfGetVersion = _ivideo.iTextureManager_scfGetVersion CS_MATERIAL_VARNAME_FLATCOLOR = _ivideo.CS_MATERIAL_VARNAME_FLATCOLOR CS_MATERIAL_TEXTURE_DIFFUSE = _ivideo.CS_MATERIAL_TEXTURE_DIFFUSE class iMaterial(iShaderVariableContext): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def SetShader(*args): return _ivideo.iMaterial_SetShader(*args) def GetShader(*args): return _ivideo.iMaterial_GetShader(*args) def GetShaders(*args): return _ivideo.iMaterial_GetShaders(*args) def GetTexture(*args): return _ivideo.iMaterial_GetTexture(*args) def GetFirstShader(*args): return _ivideo.iMaterial_GetFirstShader(*args) scfGetVersion = staticmethod(_ivideo.iMaterial_scfGetVersion) __swig_destroy__ = _ivideo.delete_iMaterial __del__ = lambda self : None; iMaterial_swigregister = _ivideo.iMaterial_swigregister iMaterial_swigregister(iMaterial) iMaterial_scfGetVersion = _ivideo.iMaterial_scfGetVersion CS_FX_SETALPHA = _ivideo.CS_FX_SETALPHA CS_FX_SETALPHA_INT = _ivideo.CS_FX_SETALPHA_INT CS_REQUEST_PLUGIN = core.CS_REQUEST_PLUGIN def CS_REQUEST_NULL3D (): return CS_REQUEST_PLUGIN("crystalspace.graphics3d.null", iGraphics3D) def CS_REQUEST_SOFTWARE3D (): return CS_REQUEST_PLUGIN("crystalspace.graphics3d.software", iGraphics3D) def CS_REQUEST_OPENGL3D (): return CS_REQUEST_PLUGIN("crystalspace.graphics3d.opengl", iGraphics3D) def CS_REQUEST_FONTSERVER (): return CS_REQUEST_PLUGIN("crystalspace.font.server.default", iFontServer)
crystalspace/CS
scripts/python/frozen/cspace/ivideo.py
Python
lgpl-2.1
60,284
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Rccl(CMakePackage): """RCCL (pronounced "Rickle") is a stand-alone library of standard collective communication routines for GPUs, implementing all-reduce, all-gather, reduce, broadcast, and reduce-scatter.""" homepage = "https://github.com/RadeonOpenCompute/rccl" url = "https://github.com/ROCmSoftwarePlatform/rccl/archive/rocm-3.10.0.tar.gz" maintainers = ['srekolam', 'arjun-raj-kuppala'] version('3.10.0', sha256='d9dd0b0d8b9d056fc5e6c7b814520800190952acd30dac3a7c462c4cb6f42bb3') version('3.9.0', sha256='ff9d03154d668093309ff814a33788f2cc093b3c627e78e42ae246e6017408b0') version('3.8.0', sha256='0b6676d06bdb1f65d511a95db9f842a3443def83d75759dfdf812b5e62d8c910') version('3.7.0', sha256='8273878ff71aac2e7adf5cc8562d2933034c6c6b3652f88fbe3cd4f2691036e3') version('3.5.0', sha256='290b57a66758dce47d0bfff3f5f8317df24764e858af67f60ddcdcadb9337253') patch('0001-Fix-numactl-path-issue.patch', when='@3.7.0:') depends_on('cmake@3:', type='build') for ver in ['3.5.0', '3.7.0', '3.8.0', '3.9.0', '3.10.0']: depends_on('rocm-cmake@' + ver, type='build', when='@' + ver) depends_on('hip@' + ver, type=('build', 'run'), when='@' + ver) depends_on('rocm-device-libs@' + ver, type=('build', 'run'), when='@' + ver) depends_on('comgr@' + ver, type='build', when='@' + ver) depends_on('hsa-rocr-dev@' + ver, type='build', when='@' + ver) if ver in ['3.7.0', '3.8.0', '3.9.0', '3.10.0']: depends_on('[email protected]', type=('build', 'link'), when='@' + ver) def setup_build_environment(self, env): env.set('CXX', self.spec['hip'].hipcc) def cmake_args(self): args = [] if '@3.7.0:' in self.spec: numactl_prefix = self.spec['numactl'].prefix args.append('-DNUMACTL_DIR={0}'.format(numactl_prefix)) return args
iulian787/spack
var/spack/repos/builtin/packages/rccl/package.py
Python
lgpl-2.1
2,124
"""Common Nuxeo Automation client utilities.""" import sys import base64 import json import urllib2 import random import time import os import hashlib import tempfile from urllib import urlencode from poster.streaminghttp import get_handlers from nxdrive.logging_config import get_logger from nxdrive.client.common import BaseClient from nxdrive.client.common import DEFAULT_REPOSITORY_NAME from nxdrive.client.common import FILE_BUFFER_SIZE from nxdrive.client.common import DEFAULT_IGNORED_PREFIXES from nxdrive.client.common import DEFAULT_IGNORED_SUFFIXES from nxdrive.client.common import safe_filename from nxdrive.engine.activity import Action, FileAction from nxdrive.utils import DEVICE_DESCRIPTIONS from nxdrive.utils import TOKEN_PERMISSION from nxdrive.utils import guess_mime_type from nxdrive.utils import guess_digest_algorithm from nxdrive.utils import force_decode from urllib2 import ProxyHandler from urlparse import urlparse import socket log = get_logger(__name__) CHANGE_SUMMARY_OPERATION = 'NuxeoDrive.GetChangeSummary' DEFAULT_NUXEO_TX_TIMEOUT = 300 DOWNLOAD_TMP_FILE_PREFIX = '.' DOWNLOAD_TMP_FILE_SUFFIX = '.nxpart' # 1s audit time resolution because of the datetime resolution of MYSQL AUDIT_CHANGE_FINDER_TIME_RESOLUTION = 1.0 socket.setdefaulttimeout(DEFAULT_NUXEO_TX_TIMEOUT) class InvalidBatchException(Exception): pass def get_proxies_for_handler(proxy_settings): """Return a pair containing proxy string and exceptions list""" if proxy_settings.config == 'None': # No proxy, return an empty dictionary to disable # default proxy detection return {}, None elif proxy_settings.config == 'System': # System proxy, return None to use default proxy detection return None, None else: # Manual proxy settings, build proxy string and exceptions list if proxy_settings.authenticated: proxy_string = ("%s:%s@%s:%s") % ( proxy_settings.username, proxy_settings.password, proxy_settings.server, proxy_settings.port) else: proxy_string = ("%s:%s") % ( proxy_settings.server, proxy_settings.port) if proxy_settings.proxy_type is None: proxies = {'http': proxy_string, 'https': proxy_string} else: proxies = {proxy_settings.proxy_type: ("%s://%s" % (proxy_settings.proxy_type, proxy_string))} if proxy_settings.exceptions and proxy_settings.exceptions.strip(): proxy_exceptions = [e.strip() for e in proxy_settings.exceptions.split(',')] else: proxy_exceptions = None return proxies, proxy_exceptions def get_proxy_config(proxies): if proxies is None: return 'System' elif proxies == {}: return 'None' else: return 'Manual' def get_proxy_handler(proxies, proxy_exceptions=None, url=None): if proxies is None: # No proxies specified, use default proxy detection return urllib2.ProxyHandler() else: # Use specified proxies (can be empty to disable default detection) if proxies: if proxy_exceptions is not None and url is not None: hostname = urlparse(url).hostname for exception in proxy_exceptions: if exception == hostname: # Server URL is in proxy exceptions, # don't use any proxy proxies = {} return urllib2.ProxyHandler(proxies) def get_opener_proxies(opener): for handler in opener.handlers: if isinstance(handler, ProxyHandler): return handler.proxies return None class AddonNotInstalled(Exception): pass class NewUploadAPINotAvailable(Exception): pass class CorruptedFile(Exception): pass class Unauthorized(Exception): def __init__(self, server_url, user_id, code=403): self.server_url = server_url self.user_id = user_id self.code = code def __str__(self): return ("'%s' is not authorized to access '%s' with" " the provided credentials" % (self.user_id, self.server_url)) class BaseAutomationClient(BaseClient): """Client for the Nuxeo Content Automation HTTP API timeout is a short timeout to avoid having calls to fast JSON operations to block and freeze the application in case of network issues. blob_timeout is long (or infinite) timeout dedicated to long HTTP requests involving a blob transfer. Supports HTTP proxies. If proxies is given, it must be a dictionary mapping protocol names to URLs of proxies. If proxies is None, uses default proxy detection: read the list of proxies from the environment variables <PROTOCOL>_PROXY; if no proxy environment variables are set, then in a Windows environment proxy settings are obtained from the registry's Internet Settings section, and in a Mac OS X environment proxy information is retrieved from the OS X System Configuration Framework. To disable autodetected proxy pass an empty dictionary. """ # TODO: handle system proxy detection under Linux, # see https://jira.nuxeo.com/browse/NXP-12068 # Parameters used when negotiating authentication token: application_name = 'Nuxeo Drive' def __init__(self, server_url, user_id, device_id, client_version, proxies=None, proxy_exceptions=None, password=None, token=None, repository=DEFAULT_REPOSITORY_NAME, ignored_prefixes=None, ignored_suffixes=None, timeout=20, blob_timeout=60, cookie_jar=None, upload_tmp_dir=None, check_suspended=None): # Function to check during long-running processing like upload / # download if the synchronization thread needs to be suspended self.check_suspended = check_suspended if timeout is None or timeout < 0: timeout = 20 self.timeout = timeout # Dont allow null timeout if blob_timeout is None or blob_timeout < 0: blob_timeout = 60 self.blob_timeout = blob_timeout if ignored_prefixes is not None: self.ignored_prefixes = ignored_prefixes else: self.ignored_prefixes = DEFAULT_IGNORED_PREFIXES if ignored_suffixes is not None: self.ignored_suffixes = ignored_suffixes else: self.ignored_suffixes = DEFAULT_IGNORED_SUFFIXES self.upload_tmp_dir = (upload_tmp_dir if upload_tmp_dir is not None else tempfile.gettempdir()) if not server_url.endswith('/'): server_url += '/' self.server_url = server_url self.repository = repository self.user_id = user_id self.device_id = device_id self.client_version = client_version self._update_auth(password=password, token=token) self.cookie_jar = cookie_jar cookie_processor = urllib2.HTTPCookieProcessor( cookiejar=cookie_jar) # Get proxy handler proxy_handler = get_proxy_handler(proxies, proxy_exceptions=proxy_exceptions, url=self.server_url) # Build URL openers self.opener = urllib2.build_opener(cookie_processor, proxy_handler) self.streaming_opener = urllib2.build_opener(cookie_processor, proxy_handler, *get_handlers()) # Set Proxy flag self.is_proxy = False opener_proxies = get_opener_proxies(self.opener) log.trace('Proxy configuration: %s, effective proxy list: %r', get_proxy_config(proxies), opener_proxies) if opener_proxies: self.is_proxy = True self.automation_url = server_url + 'site/automation/' self.batch_upload_url = 'batch/upload' self.batch_execute_url = 'batch/execute' # New batch upload API self.new_upload_api_available = True self.rest_api_url = server_url + 'api/v1/' self.batch_upload_path = 'upload' self.fetch_api() def fetch_api(self): base_error_message = ( "Failed to connect to Nuxeo server %s" ) % (self.server_url) url = self.automation_url headers = self._get_common_headers() cookies = self._get_cookies() log.trace("Calling %s with headers %r and cookies %r", url, headers, cookies) req = urllib2.Request(url, headers=headers) try: response = json.loads(self.opener.open( req, timeout=self.timeout).read()) except urllib2.HTTPError as e: if e.code == 401 or e.code == 403: raise Unauthorized(self.server_url, self.user_id, e.code) else: msg = base_error_message + "\nHTTP error %d" % e.code if hasattr(e, 'msg'): msg = msg + ": " + e.msg e.msg = msg raise e except urllib2.URLError as e: msg = base_error_message if hasattr(e, 'message') and e.message: e_msg = force_decode(": " + e.message) if e_msg is not None: msg = msg + e_msg elif hasattr(e, 'reason') and e.reason: if (hasattr(e.reason, 'message') and e.reason.message): e_msg = force_decode(": " + e.reason.message) if e_msg is not None: msg = msg + e_msg elif (hasattr(e.reason, 'strerror') and e.reason.strerror): e_msg = force_decode(": " + e.reason.strerror) if e_msg is not None: msg = msg + e_msg if self.is_proxy: msg = (msg + "\nPlease check your Internet connection," + " make sure the Nuxeo server URL is valid" + " and check the proxy settings.") else: msg = (msg + "\nPlease check your Internet connection" + " and make sure the Nuxeo server URL is valid.") e.msg = msg raise e except Exception as e: msg = base_error_message if hasattr(e, 'msg'): msg = msg + ": " + e.msg e.msg = msg raise e self.operations = {} for operation in response["operations"]: self.operations[operation['id']] = operation op_aliases = operation.get('aliases') if op_aliases: for op_alias in op_aliases: self.operations[op_alias] = operation # Is event log id available in change summary? # See https://jira.nuxeo.com/browse/NXP-14826 change_summary_op = self._check_operation(CHANGE_SUMMARY_OPERATION) self.is_event_log_id = 'lowerBound' in [ param['name'] for param in change_summary_op['params']] def execute(self, command, url=None, op_input=None, timeout=-1, check_params=True, void_op=False, extra_headers=None, file_out=None, **params): """Execute an Automation operation""" if check_params: self._check_params(command, params) if url is None: url = self.automation_url + command headers = { "Content-Type": "application/json+nxrequest", "Accept": "application/json+nxentity, */*", "X-NXproperties": "*", # Keep compatibility with old header name "X-NXDocumentProperties": "*", } if void_op: headers.update({"X-NXVoidOperation": "true"}) if self.repository != DEFAULT_REPOSITORY_NAME: headers.update({"X-NXRepository": self.repository}) if extra_headers is not None: headers.update(extra_headers) headers.update(self._get_common_headers()) json_struct = {'params': {}} for k, v in params.items(): if v is None: continue if k == 'properties': s = "" for propname, propvalue in v.items(): s += "%s=%s\n" % (propname, propvalue) json_struct['params'][k] = s.strip() else: json_struct['params'][k] = v if op_input: json_struct['input'] = op_input data = json.dumps(json_struct) cookies = self._get_cookies() log.trace("Calling %s with headers %r, cookies %r" " and JSON payload %r", url, headers, cookies, data) req = urllib2.Request(url, data, headers) timeout = self.timeout if timeout == -1 else timeout try: resp = self.opener.open(req, timeout=timeout) except Exception as e: self._log_details(e) raise current_action = Action.get_current_action() if current_action and current_action.progress is None: current_action.progress = 0 if file_out is not None: locker = self.unlock_path(file_out) try: with open(file_out, "wb") as f: while True: # Check if synchronization thread was suspended if self.check_suspended is not None: self.check_suspended('File download: %s' % file_out) buffer_ = resp.read(self.get_download_buffer()) if buffer_ == '': break if current_action: current_action.progress += ( self.get_download_buffer()) f.write(buffer_) return None, file_out finally: self.lock_path(file_out, locker) else: return self._read_response(resp, url) def execute_with_blob_streaming(self, command, file_path, filename=None, mime_type=None, **params): """Execute an Automation operation using a batch upload as an input Upload is streamed. """ tick = time.time() action = FileAction("Upload", file_path, filename) retry = True num_retries = 0 while retry and num_retries < 2: try: batch_id = None if self.is_new_upload_api_available(): try: # Init resumable upload getting a batch id generated by the server # This batch id is to be used as a resumable session id batch_id = self.init_upload()['batchId'] except NewUploadAPINotAvailable: log.debug('New upload API is not available on server %s', self.server_url) self.new_upload_api_available = False if batch_id is None: # New upload API is not available, generate a batch id batch_id = self._generate_unique_id() upload_result = self.upload(batch_id, file_path, filename=filename, mime_type=mime_type) upload_duration = int(time.time() - tick) action.transfer_duration = upload_duration # Use upload duration * 2 as Nuxeo transaction timeout tx_timeout = max(DEFAULT_NUXEO_TX_TIMEOUT, upload_duration * 2) log.trace('Using %d seconds [max(%d, 2 * upload time=%d)] as Nuxeo' ' transaction timeout for batch execution of %s' ' with file %s', tx_timeout, DEFAULT_NUXEO_TX_TIMEOUT, upload_duration, command, file_path) if upload_duration > 0: log.trace("Speed for %d o is %d s : %f o/s", os.stat(file_path).st_size, upload_duration, os.stat(file_path).st_size / upload_duration) # NXDRIVE-433: Compat with 7.4 intermediate state if upload_result.get('uploaded') is None: self.new_upload_api_available = False if upload_result.get('batchId') is not None: result = self.execute_batch(command, batch_id, '0', tx_timeout, **params) return result else: raise ValueError("Bad response from batch upload with id '%s'" " and file path '%s'" % (batch_id, file_path)) except InvalidBatchException: num_retries += 1 self.cookie_jar.clear_session_cookies() finally: self.end_action() def get_upload_buffer(self, input_file): if sys.platform != 'win32': return os.fstatvfs(input_file.fileno()).f_bsize else: return FILE_BUFFER_SIZE def init_upload(self): url = self.rest_api_url + self.batch_upload_path headers = self._get_common_headers() # Force empty data to perform a POST request req = urllib2.Request(url, data='', headers=headers) try: resp = self.opener.open(req, timeout=self.timeout) except Exception as e: log_details = self._log_details(e) if isinstance(log_details, tuple): status, code, message, _ = log_details if status == 404: raise NewUploadAPINotAvailable() if status == 500: not_found_exceptions = ['com.sun.jersey.api.NotFoundException', 'org.nuxeo.ecm.webengine.model.TypeNotFoundException'] for exception in not_found_exceptions: if code == exception or exception in message: raise NewUploadAPINotAvailable() raise e return self._read_response(resp, url) def upload(self, batch_id, file_path, filename=None, file_index=0, mime_type=None): """Upload a file through an Automation batch Uses poster.httpstreaming to stream the upload and not load the whole file in memory. """ FileAction("Upload", file_path, filename) # Request URL if self.is_new_upload_api_available(): url = self.rest_api_url + self.batch_upload_path + '/' + batch_id + '/' + str(file_index) else: # Backward compatibility with old batch upload API url = self.automation_url.encode('ascii') + self.batch_upload_url # HTTP headers if filename is None: filename = os.path.basename(file_path) file_size = os.path.getsize(file_path) if mime_type is None: mime_type = guess_mime_type(filename) # Quote UTF-8 filenames even though JAX-RS does not seem to be able # to retrieve them as per: https://tools.ietf.org/html/rfc5987 filename = safe_filename(filename) quoted_filename = urllib2.quote(filename.encode('utf-8')) headers = { "X-File-Name": quoted_filename, "X-File-Size": file_size, "X-File-Type": mime_type, "Content-Type": "application/octet-stream", "Content-Length": file_size, } if not self.is_new_upload_api_available(): headers.update({"X-Batch-Id": batch_id, "X-File-Idx": file_index}) headers.update(self._get_common_headers()) # Request data input_file = open(file_path, 'rb') # Use file system block size if available for streaming buffer fs_block_size = self.get_upload_buffer(input_file) data = self._read_data(input_file, fs_block_size) # Execute request cookies = self._get_cookies() log.trace("Calling %s with headers %r and cookies %r for file %s", url, headers, cookies, file_path) req = urllib2.Request(url, data, headers) try: resp = self.streaming_opener.open(req, timeout=self.blob_timeout) except Exception as e: log_details = self._log_details(e) if isinstance(log_details, tuple): _, _, _, error = log_details if error and error.startswith("Unable to find batch"): raise InvalidBatchException() raise e finally: input_file.close() # CSPII-9144: help diagnose upload problem log.trace('Upload completed. File closed.') self.end_action() return self._read_response(resp, url) def end_action(self): Action.finish_action() def execute_batch(self, op_id, batch_id, file_idx, tx_timeout, **params): """Execute a file upload Automation batch""" extra_headers = {'Nuxeo-Transaction-Timeout': tx_timeout, } if self.is_new_upload_api_available(): url = (self.rest_api_url + self.batch_upload_path + '/' + batch_id + '/' + file_idx + '/execute/' + op_id) return self.execute(None, url=url, timeout=tx_timeout, check_params=False, extra_headers=extra_headers, **params) else: return self.execute(self.batch_execute_url, timeout=tx_timeout, operationId=op_id, batchId=batch_id, fileIdx=file_idx, check_params=False, extra_headers=extra_headers, **params) def is_addon_installed(self): return 'NuxeoDrive.GetRoots' in self.operations def is_event_log_id_available(self): return self.is_event_log_id def is_elasticsearch_audit(self): return 'NuxeoDrive.WaitForElasticsearchCompletion' in self.operations def is_nuxeo_drive_attach_blob(self): return 'NuxeoDrive.AttachBlob' in self.operations def is_new_upload_api_available(self): return self.new_upload_api_available def request_token(self, revoke=False): """Request and return a new token for the user""" base_error_message = ( "Failed to connect to Nuxeo server %s with user %s" " to acquire a token" ) % (self.server_url, self.user_id) parameters = { 'deviceId': self.device_id, 'applicationName': self.application_name, 'permission': TOKEN_PERMISSION, 'revoke': 'true' if revoke else 'false', } device_description = DEVICE_DESCRIPTIONS.get(sys.platform) if device_description: parameters['deviceDescription'] = device_description url = self.server_url + 'authentication/token?' url += urlencode(parameters) headers = self._get_common_headers() cookies = self._get_cookies() log.trace("Calling %s with headers %r and cookies %r", url, headers, cookies) req = urllib2.Request(url, headers=headers) try: token = self.opener.open(req, timeout=self.timeout).read() except urllib2.HTTPError as e: if e.code == 401 or e.code == 403: raise Unauthorized(self.server_url, self.user_id, e.code) elif e.code == 404: # Token based auth is not supported by this server return None else: e.msg = base_error_message + ": HTTP error %d" % e.code raise e except Exception as e: if hasattr(e, 'msg'): e.msg = base_error_message + ": " + e.msg raise cookies = self._get_cookies() log.trace("Got token '%s' with cookies %r", token, cookies) # Use the (potentially re-newed) token from now on if not revoke: self._update_auth(token=token) return token def revoke_token(self): self.request_token(revoke=True) def wait(self): # Used for tests if self.is_elasticsearch_audit(): self.execute("NuxeoDrive.WaitForElasticsearchCompletion") else: # Backward compatibility with JPA audit implementation, # in which case we are also backward compatible with date based resolution if not self.is_event_log_id_available(): time.sleep(AUDIT_CHANGE_FINDER_TIME_RESOLUTION) self.execute("NuxeoDrive.WaitForAsyncCompletion") def make_tmp_file(self, content): """Create a temporary file with the given content for streaming upload purpose. Make sure that you remove the temporary file with os.remove() when done with it. """ fd, path = tempfile.mkstemp(suffix=u'-nxdrive-file-to-upload', dir=self.upload_tmp_dir) with open(path, "wb") as f: f.write(content) os.close(fd) return path def _update_auth(self, password=None, token=None): """Select the most appropriate auth headers based on credentials""" if token is not None: self.auth = ('X-Authentication-Token', token) elif password is not None: basic_auth = 'Basic %s' % base64.b64encode( self.user_id + ":" + password).strip() self.auth = ("Authorization", basic_auth) else: raise ValueError("Either password or token must be provided") def _get_common_headers(self): """Headers to include in every HTTP requests Includes the authentication heads (token based or basic auth if no token). Also include an application name header to make it possible for the server to compute access statistics for various client types (e.g. browser vs devices). """ return { 'X-User-Id': self.user_id, 'X-Device-Id': self.device_id, 'X-Client-Version': self.client_version, 'User-Agent': self.application_name + "/" + self.client_version, 'X-Application-Name': self.application_name, self.auth[0]: self.auth[1], 'Cache-Control': 'no-cache', } def _get_cookies(self): return list(self.cookie_jar) if self.cookie_jar is not None else [] def _check_operation(self, command): if command not in self.operations: if command.startswith('NuxeoDrive.'): raise AddonNotInstalled( "Either nuxeo-drive addon is not installed on server %s or" " server version is lighter than the minimum version" " compatible with the client version %s, in which case a" " downgrade of Nuxeo Drive is needed." % ( self.server_url, self.client_version)) else: raise ValueError("'%s' is not a registered operations." % command) return self.operations[command] def _check_params(self, command, params): method = self._check_operation(command) required_params = [] other_params = [] for param in method['params']: if param['required']: required_params.append(param['name']) else: other_params.append(param['name']) for param in params.keys(): if (not param in required_params and not param in other_params): log.trace("Unexpected param '%s' for operation '%s'", param, command) for param in required_params: if not param in params: raise ValueError( "Missing required param '%s' for operation '%s'" % ( param, command)) # TODO: add typechecking def _read_response(self, response, url): info = response.info() s = response.read() content_type = info.get('content-type', '') cookies = self._get_cookies() if content_type.startswith("application/json"): log.trace("Response for '%s' with cookies %r: %r", url, cookies, s) return json.loads(s) if s else None else: log.trace("Response for '%s' with cookies %r has content-type %r", url, cookies, content_type) return s def _log_details(self, e): if hasattr(e, "fp"): detail = e.fp.read() try: exc = json.loads(detail) message = exc.get('message') stack = exc.get('stack') error = exc.get('error') if message: log.debug('Remote exception message: %s', message) if stack: log.debug('Remote exception stack: %r', exc['stack'], exc_info=True) else: log.debug('Remote exception details: %r', detail) return exc.get('status'), exc.get('code'), message, error except: # Error message should always be a JSON message, # but sometimes it's not if '<html>' in detail: message = e else: message = detail log.error(message) if isinstance(e, urllib2.HTTPError): return e.code, None, message, None # CSPII-9144: help diagnose upload problem log.trace('Non-urllib2 exception: %s', e.message) return None def _generate_unique_id(self): """Generate a unique id based on a timestamp and a random integer""" return str(time.time()) + '_' + str(random.randint(0, 1000000000)) def _read_data(self, file_object, buffer_size): while True: current_action = Action.get_current_action() if current_action is not None and current_action.suspend: break # Check if synchronization thread was suspended if self.check_suspended is not None: self.check_suspended('File upload: %s' % file_object.name) r = file_object.read(buffer_size) if not r: break if current_action is not None: current_action.progress += buffer_size yield r def do_get(self, url, file_out=None, digest=None, digest_algorithm=None): log.trace('Downloading file from %r to %r with digest=%s, digest_algorithm=%s', url, file_out, digest, digest_algorithm) h = None if digest is not None: if digest_algorithm is None: digest_algorithm = guess_digest_algorithm(digest) log.trace('Guessed digest algorithm from digest: %s', digest_algorithm) digester = getattr(hashlib, digest_algorithm, None) if digester is None: raise ValueError('Unknow digest method: ' + digest_algorithm) h = digester() headers = self._get_common_headers() base_error_message = ( "Failed to connect to Nuxeo server %r with user %r" ) % (self.server_url, self.user_id) try: log.trace("Calling '%s' with headers: %r", url, headers) req = urllib2.Request(url, headers=headers) response = self.opener.open(req, timeout=self.blob_timeout) current_action = Action.get_current_action() # Get the size file if (current_action and response is not None and response.info() is not None): current_action.size = int(response.info().getheader( 'Content-Length', 0)) if file_out is not None: locker = self.unlock_path(file_out) try: with open(file_out, "wb") as f: while True: # Check if synchronization thread was suspended if self.check_suspended is not None: self.check_suspended('File download: %s' % file_out) buffer_ = response.read(self.get_download_buffer()) if buffer_ == '': break if current_action: current_action.progress += ( self.get_download_buffer()) f.write(buffer_) if h is not None: h.update(buffer_) if digest is not None: actual_digest = h.hexdigest() if digest != actual_digest: if os.path.exists(file_out): os.remove(file_out) raise CorruptedFile("Corrupted file %r: expected digest = %s, actual digest = %s" % (file_out, digest, actual_digest)) return None, file_out finally: self.lock_path(file_out, locker) else: result = response.read() if h is not None: h.update(result) if digest is not None: actual_digest = h.hexdigest() if digest != actual_digest: raise CorruptedFile("Corrupted file: expected digest = %s, actual digest = %s" % (digest, actual_digest)) return result, None except urllib2.HTTPError as e: if e.code == 401 or e.code == 403: raise Unauthorized(self.server_url, self.user_id, e.code) else: e.msg = base_error_message + ": HTTP error %d" % e.code raise e except Exception as e: if hasattr(e, 'msg'): e.msg = base_error_message + ": " + e.msg raise def get_download_buffer(self): return FILE_BUFFER_SIZE
rsoumyassdi/nuxeo-drive
nuxeo-drive-client/nxdrive/client/base_automation_client.py
Python
lgpl-2.1
34,951
""" Tries different parameter combinations for point-wise interval proposing. """ import sys sys.path.append('..') sys.path.append('../experiments') import numpy as np from collections import OrderedDict from maxdiv import maxdiv, eval import datasets # Constants PROPMETHODS = ['hotellings_t', 'kde'] METHOD = 'gaussian_cov' MODE = 'CROSSENT' MAD = [True, False] FILTERED = [True, False] THS = np.concatenate((np.linspace(0, 2, 20, endpoint = False), np.linspace(2, 4, 9, endpoint = True))) propmeth = sys.argv[1] if (len(sys.argv) > 1) and (sys.argv[1] in PROPMETHODS) else PROPMETHODS[0] dataset = sys.argv[2] if len(sys.argv) > 2 else 'synthetic' # Load test data data = datasets.loadDatasets(dataset) # Try different parameter combinations for interval proposing ap = OrderedDict() # Average Precision mean_ap = OrderedDict() # Mean Average Precision labels = OrderedDict() # Labels for the different combinations for filtered in FILTERED: for useMAD in MAD: id = (filtered, useMAD) ap[id] = {} mean_ap[id] = {} labels[id] = '{}, {}'.format('median' if useMAD else 'mean', 'gradients' if filtered else 'scores') print('Testing {}'.format(labels[id])) sys.stdout.flush() for sd_th in THS: ygts = [] regions = [] aps = [] propparams = { 'useMAD' : useMAD, 'sd_th' : sd_th } if not filtered: propparams['filter'] = None for ftype in data: gts = [] cur_regions = [] for func in data[ftype]: gts.append(func['gt']) cur_regions.append(maxdiv.maxdiv(func['ts'], method = METHOD, mode = MODE, preproc = 'normalize', td_dim = 6, td_lag = 2, num_intervals = None, extint_min_len = 20, extint_max_len = 100, proposals = propmeth, proposalparameters = propparams)) aps.append(eval.average_precision(gts, cur_regions)) ygts += gts regions += cur_regions ap[id][sd_th] = eval.average_precision(ygts, regions) mean_ap[id][sd_th] = np.mean(aps) # Print results as table hdiv_len = 5 + sum(len(lbl) + 3 for lbl in labels.values()) # length of horizontal divider print('\n-- Overall Average Precision --\n') print(' |' + '|'.join(' {} '.format(lbl) for lbl in labels.values())) print('{:-<{}s}'.format('', hdiv_len)) for sd_th in THS: row = '{:4.2f} '.format(sd_th) for id, aps in ap.items(): row += '| {:>{}.4f} '.format(aps[sd_th], len(labels[id])) print(row) print('\n-- Mean Average Precision --\n') print(' |' + '|'.join(' {} '.format(lbl) for lbl in labels.values())) print('{:-<{}s}'.format('', hdiv_len)) for sd_th in THS: row = '{:4.2f} '.format(sd_th) for id, aps in mean_ap.items(): row += '| {:>{}.4f} '.format(aps[sd_th], len(labels[id])) print(row)
cvjena/libmaxdiv
tools/optimize_proposals.py
Python
lgpl-3.0
3,137
""" Differential Evolution optimisation Implemented generically, to optimise opaque objects The optimiser copies objects using deepcopy, and manipulates objects using supplied control objects. Copyright 2019 Ben Dudson, University of York. Email: [email protected] This file is part of FreeGS. FreeGS is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. FreeGS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with FreeGS. If not, see <http://www.gnu.org/licenses/>. """ import random import copy import bisect def mutate(obj, controls): """ Create a new object by taking an object and a set of control objects to change randomly obj An object to copy. This will be deepcopied, not modified controls A list of control objects """ new_obj = copy.deepcopy(obj) for control in controls: # Add 10% variations to controls new_value = control.get(obj) * (1.0 + 0.1 * (random.random() - 0.5)) if abs(new_value) < 1e-10: # Don't know what scale, so add ~1 random value to it new_value += random.normal(loc=0.0, scale=1.0) control.set(new_obj, new_value) return new_obj def pickUnique(N, m, e): """Pick m random values from the range 0...(N-1), excluding those in list e The returned values should be in a random order (not sorted) """ assert m <= N - len(e) inds = sorted(e) # Sorted list of indices. Used to avoid clashes others = [] # The list of three agents for i in range(m): newind = random.randint(0, N - 1 - i - len(e)) for ind in inds: if newind == ind: newind += 1 bisect.insort(inds, newind) others.append(newind) return others def optimise(obj, controls, measure, maxgen=10, N=10, CR=0.3, F=1.0, monitor=None): """Use Differential Evolution to optimise an object https://en.wikipedia.org/wiki/Differential_evolution obj is an object to be used as starting solution These objects are deep copied, and passed as arguments to controls and measure functions controls A list of control objects. These objects must have methods: .set(object, value) which modifies the given object .get(object) which returns the value from the object measure(object) is a function which returns a score (value) for a given object. The optimiser tries to minimise this value. maxgen is the maximum number of generations N >= 4 is the population size CR [0,1] is the crossover probability F [0,2] is the differential weight monitor(generation, best, population) A function to be called each generation with the best solution and the whole population generation = integer best = (score, object) population = [(score, object)] Returns the object with the lowest measure (score). """ assert N >= 4 best = (measure(obj), obj) # Highest score, candidate solution (agent) population = [best] # List of (score, agent) for i in range(N - 1): agent = mutate(obj, controls) score_agent = (measure(agent), agent) population.append(score_agent) if score_agent[0] > best[0]: best = score_agent for generation in range(maxgen): next_pop = [] # Next generation for ai, agent in enumerate(population): # Pick three other random agents, all different others = [population[index][1] for index in pickUnique(N, 3, [ai])] new_obj = copy.deepcopy(agent[1]) R = random.randint(0, len(controls) - 1) # Pick a random control to modify for i, control in enumerate(controls): if i == R or random.random() < CR: control.set( new_obj, control.get(others[0]) + F * (control.get(others[1]) - control.get(others[2])), ) score = measure(new_obj) if score < agent[0]: # Better than original new_agent = (score, new_obj) next_pop.append(new_agent) if score < best[0]: # Now the best candidate best = new_agent else: next_pop.append(agent) # End of generation. Call monitor with best object, score if monitor: monitor(generation, best, next_pop) # Change to next generation population = next_pop # Finished, return best candidate return best[1]
bendudson/freegs
freegs/optimiser.py
Python
lgpl-3.0
5,144
#! /usr/bin/env python ''' Created on Sep 26, 2016 @author: acaproni ''' import argparse import os import socket from subprocess import call import sys from IASLogging.logConf import Log from IASTools.CommonDefs import CommonDefs from IASTools.FileSupport import FileSupport def setProps(propsDict,className,logFileNameId): """ Adds to the passed dictionary, the properties to be passed to all java/scala executables. These properties are common to all IAS executables and can for example be configuration properties. @param propsDict: A dictionary of properties in the form name:value @param className The name of the class to run @param logFileNameId A string identifier to append to the name of the log file """ # Environment variables propsDict["ias.root.folder"]=os.environ["IAS_ROOT"] propsDict["ias.logs.folder"]=os.environ["IAS_LOGS_FOLDER"] propsDict["ias.tmp.folder"]=os.environ["IAS_TMP_FOLDER"] # The name of the host where the tool runs propsDict["ias.hostname"]=socket.gethostname() # get the name of the class without dots # i.e. if className = "org.eso.ias.supervisor.Supervisor" we want # the file to be named "Supervisor" if "scalatest" in className: # logs generated by scalatest are named "org.scalatest.run-2018-03-05T15-55-21.log" # so we catch this case here to have a more meaningful name then just "run" logFileName="ScalaTest" else: temp = className.rsplit(".",1) logFileName = temp[len(temp)-1] # Append the log identifier if it has been passed in the command line if len(logFileNameId.strip())>0: logFileName = logFileName+"-"+logFileNameId.strip() propsDict["ias.logs.filename"]= logFileName propsDict["ias.config.folder"]=os.environ["IAS_CONFIG_FOLDER"] # Set the config file for sl4j (defined in Logging) logbackConfigFileName="logback.xml" fs = FileSupport(logbackConfigFileName,"config") try: path = fs.findFile() propsDict["logback.configurationFile"]=path except: logger.info("No log4j config file (%s) found: using defaults",logbackConfigFileName) # JVM always uses UTC propsDict["user.timezone"]="UTC" # Add environment variables is not needed as environment variables # can be retrieved with System.getEnv def addUserProps(propsDict,userProps): """ Adds to the dictionary the user properties passed in the command line. @param propsDict: A dictionary of properties in the form name:value @param userProps: a list of java properties in the form name=value """ if userProps==None or len(userProps)==0: return for prop in userProps: if len(prop)==0: continue parts=prop[0].split('=') # Integrity check if len(parts)!=2: logger.info("Invalid property: %s",prop[0]) logger.info("Expected format is name=value") sys.exit(-1) # Is th eprop. already defined? if parts[0] in propsDict: logger.info("\nWARNING: overriding %s java property",parts[0]) logger.info("\told value %s new value %s",parts[1],propsDict[parts[0]]) propsDict[parts[0]]=parts[1] def formatProps(propsDict): """ Format the dictionary of properties in a list of strings list [ "-Dp1=v1", -Dp2=v2"] @param propsDict: A dictionary of properties in the form name:value @return A list of java/scala properties """ if len(propsDict)==0: return [] ret = [] keys = list(propsDict.keys()) for key in keys: propStr = "-D"+key+"="+propsDict[key] ret.append(propStr) return ret def javaOpts(): """ Handling of JAVA_OPTS environment variable to pass options to java executables differs from scala and java: * scala passes options to the java executable setting the JAVA_OPTS environment variable * java does not recognize JAVA_OPTS but accepts options as parameters in the command line To unify the handling of java option for the 2 programming languages, this method returns a list of java options (string). Depending on the executable they will be passed differently. @return: A list of java options like ['-Xmx512M', '-Xms16M'] """ try: javaOpts=os.environ["JAVA_OPTS"] return javaOpts.split() except: # JAVA_OPTS environment variable not defined return [] if __name__ == '__main__': """ Run a java or scala tool. """ parser = argparse.ArgumentParser(description='Run a java or scala program.') parser.add_argument( '-l', '--language', help='The programming language: one between scala (or shortly s) and java (or j)', action='store', choices=['java', 'j', 'scala','s'], required=True) parser.add_argument( '-i', '--logfileId', help='The identifier to be appended to the name of the log file', action='store', default="", required=False) parser.add_argument( '-D', '--jProp', help='Set a java property: -Dname=value', nargs="*", action='append', required=False) parser.add_argument( '-v', '--verbose', help='Increase the verbosity of the output', action='store_true', default=False, required=False) parser.add_argument( '-a', '--assertions', help='Disable assertions', action='store_false', default=True, required=False) parser.add_argument( '-lso', '--levelStdOut', help='Logging level: Set the level of the message for the file logger, default: Debug level', action='store', choices=['info', 'debug', 'warning', 'error', 'critical'], default='info', required=False) parser.add_argument( '-lcon', '--levelConsole', help='Logging level: Set the level of the message for the console logger, default: Debug level', action='store', choices=['info', 'debug', 'warning', 'error', 'critical'], default='info', required=False) parser.add_argument('className', help='The name of the class to run the program') parser.add_argument('params', nargs=argparse.REMAINDER, help='Command line parameters') args = parser.parse_args() #Start the logger with param define by the user. stdoutLevel=args.levelStdOut consoleLevel=args.levelConsole logger = Log.getLogger(__file__,stdoutLevel,consoleLevel) logger.info("Start IASRun") verbose = args.verbose if verbose: logger.info("\nVerbose mode ON") # Get java options from JAVA_OPTS environment variable javaOptions=javaOpts() # Build the command line if args.language=='s' or args.language=='scala': cmd=['scala'] if verbose: logger.info("Running a SCALA program.") else: cmd=['java'] if verbose: logger.info("Running a JAVA program.") # Assertions are enabled differently in java (command line) and scala ($JAVA_OPTS) enableAssertions = args.assertions if enableAssertions: javaOptions.append("-ea") if verbose: logger.info("Assertions are enabled.") else: if verbose: logger.info("Assertions disabled.") # Actual environment to pass to the executable # # It is enriched by setting JAVA_OPTS for scala d = dict(os.environ) # Add java options (in the command line for java executables and # in JAVA_OPTS env. variable for scala) if args.language=='s' or args.language=='scala': s=" ".join(map(str, javaOptions)) if verbose: logger.info("Options to pass to the java executable %s",s) d['JAVA_OPTS']=s else: for opt in javaOptions: if verbose: logger.info("Adding %s java option",opt) cmd.append(opt) # Is the environment ok? # Fail fast! if not CommonDefs.checkEnvironment(): logger.info("Some setting missing in IAS environment.") logger.info("Set the environment with ias-bash_profile before running IAS applications") sys.exit(-1) # Create tmp and logs folders if not exists already FileSupport.createLogsFolder() FileSupport.createTmpFolder() # Add the properties # # Default and user defined properties are in a dictionary: # this way it is easy for the user to overrride default properties. props={} setProps(props, args.className,args.logfileId) if args.jProp is not None: addUserProps(props,args.jProp) if len(props)>0: stingOfPros = formatProps(props) # Sort to enhance readability stingOfPros.sort() cmd.extend(formatProps(props)) if verbose: logger.info("java properties:") for p in stingOfPros: logger.info("\t %s",p[2:]) else: if (verbose): logger.info("No java properties defined") #add the classpath theClasspath=CommonDefs.buildClasspath() if (args.language=='j' or args.language=='java'): theClasspath=CommonDefs.addScalaJarsToClassPath(theClasspath) cmd.append("-cp") cmd.append(theClasspath) if verbose: jars = theClasspath.split(":") jars.sort() logger.info("Classpath:") for jar in jars: logger.info("\t %s",jar) # Add the class cmd.append(args.className) # Finally the command line parameters if len(args.params)>0: cmd.extend(args.params) if verbose: if len(args.params)>0: logger.info("with params:") for arg in args.params: logger.info("\t %s",arg) else: logger.info() if verbose: arrowDown = chr(8595) delimiter = "" for t in range(16): delimiter = delimiter + arrowDown logger.info("\n %s %s output %s",delimiter,args.className,delimiter) call(cmd) if verbose: arrowUp = chr(8593) delimiter = "" for t in range(17): delimiter = delimiter + arrowUp logger.info("%s %s done %s",delimiter,args.className,delimiter)
IntegratedAlarmSystem-Group/ias
Utils/src/main/python/iasRun.py
Python
lgpl-3.0
11,119
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2013 Rémi Palancher # # This file is part of Cloubed. # # Cloubed is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # Cloubed is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with Cloubed. If not, see # <http://www.gnu.org/licenses/>. """ ConfigurationStorageVolume class """ from cloubed.conf.ConfigurationItem import ConfigurationItem from cloubed.CloubedException import CloubedConfigurationException class ConfigurationStorageVolume(ConfigurationItem): """ Storage Volume Configuration class """ def __init__(self, conf, storage_volume_item): super(ConfigurationStorageVolume, self).__init__(conf, storage_volume_item) self.size = None self.__parse_size(storage_volume_item) self.storage_pool = None self.__parse_storage_pool(storage_volume_item) self.format = None self.__parse_format(storage_volume_item) self.backing = None self.__parse_backing(storage_volume_item) def __parse_size(self, conf): """ Parses the size parameter over the conf dictionary given in parameter and raises appropriate exception if a problem is found. """ if not conf.has_key('size'): raise CloubedConfigurationException( "size parameter of storage volume {name} is missing" \ .format(name=self.name)) size = conf['size'] if type(size) is not int: raise CloubedConfigurationException( "format of size parameter of storage volume {name} is " \ "not valid".format(name=self.name)) self.size = size def __parse_storage_pool(self, conf): """ Parses the storage pool parameter over the conf dictionary given in parameter and raises appropriate exception if a problem is found. """ if not conf.has_key('storagepool'): # if only storage, pop it for this storage volume volume if len(self.conf.storage_pools) == 1: self.storage_pool = self.conf.storage_pools[0].name else: raise CloubedConfigurationException( "storagepool parameter of storage volume {name} is " \ "missing".format(name=self.name)) else: storage_pool = conf['storagepool'] if type(storage_pool) is not str: raise CloubedConfigurationException( "format of storagepool parameter of storage volume " \ "{name} is not valid".format(name=self.name)) self.storage_pool = storage_pool def __parse_format(self, conf): """ Parses the format parameter over the conf dictionary given in parameter and raises appropriate exception if a problem is found. """ if conf.has_key('format'): vol_format = conf['format'] if type(vol_format) is not str: raise CloubedConfigurationException( "format of format parameter of storage volume " \ "{name} is not valid".format(name=self.name)) valid_vol_formats = [ 'qcow2', 'raw' ] if vol_format not in valid_vol_formats: raise CloubedConfigurationException( "value of format parameter of storage volume " \ "{name} is not valid".format(name=self.name)) self.format = vol_format else: # default value to qcow2 self.format = 'qcow2' def __parse_backing(self, conf): """ Parses the backing parameter over the conf dictionary given in parameter and raises appropriate exception if a problem is found. """ if conf.has_key('backing'): # TODO: is size parameter useless in this case? TBC. backing = conf['backing'] if type(backing) is not str: raise CloubedConfigurationException( "format of backing parameter of storage volume " \ "{name} is not valid".format(name=self.name)) self.backing = backing else: # default to None, aka. no backing self.backing = None def _get_type(self): """ Returns the type of the item """ return u"storage volume" def get_templates_dict(self): """ Returns a dictionary with all parameters of the Storage Volume in Configuration """ clean_name = ConfigurationItem.clean_string_for_template(self.name) return { "storagevolume.{name}.format" \ .format(name=clean_name) : str(self.format), "storagevolume.{name}.size" \ .format(name=clean_name) : str(self.size), "storagevolume.{name}.storagepool" \ .format(name=clean_name) : str(self.storage_pool) }
rezib/cloubed-deb
cloubed/conf/ConfigurationStorageVolume.py
Python
lgpl-3.0
5,605
# -*- coding: utf-8 -*- { 'name': "Mail as Employee", 'summary': """Send Mail as Employee""", 'author': 'ERP Ukraine', 'website': 'https://erp.co.ua', 'license': 'AGPL-3', 'category': 'Sales', 'depends': ['mail', 'hr'], 'data': [ 'views/views.xml', ], }
lem8r/cofair-addons
mail_employee/__manifest__.py
Python
lgpl-3.0
298
# SPDX-License-Identifier: LGPL-3.0-or-later # dlb - a Pythonic build tool # Copyright (C) 2020 Daniel Lutz <[email protected]> """Access a working directory managed by Git - the stupid content tracker.""" # Git: <https://git-scm.com/> # Tested with: git 2.20.1 # Executable: 'git' # # Usage example: # # import dlb.di # import dlb.ex # import dlb_contrib.git # # with dlb.ex.Context(): # result = dlb_contrib.git.GitDescribeWorkingDirectory().start() # # ... = result.tag_name # e.g. 'v1.2.3' # ... = result.branch_refname # 'refs/heads/master' # # if result.untracked_files: # s = ','.join(repr(p.as_string()) for p in result.untracked_files) # dlb.di.inform(f'repository contains {len(result.untracked_files)} ' # f'untracked file(s): {s}', level=dlb.di.WARNING) # # Usage example: # # # Check the syntax of all tag names and that local annotated tags match with annoated tags in remote 'origin'. # # import dlb.ex # import dlb_contrib.git # # with dlb.ex.Context(): # class GitCheckTags(dlb_contrib.git.GitCheckTags): # ANNOTATED_TAG_NAME_REGEX = r'v(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*)){2}' # e.g. 'v1.23.0' # version_tag_names = set(GitCheckTags().start().commit_by_annotated_tag_name) __all__ = [ 'GIT_DESCRIPTION_REGEX', 'modifications_from_status', 'check_refname', 'GitDescribeWorkingDirectory', 'GitCheckTags' ] import sys import re from typing import Dict, Iterable, Optional, Set, Tuple import dlb.fs import dlb.ex import dlb_contrib.backslashescape assert sys.version_info >= (3, 7) GIT_DESCRIPTION_REGEX = re.compile( r'^(?P<tag>.+)-(?P<commit_number>0|[1-9][0-9]*)-g(?P<latest_commit_hash>[0-9a-f]{40})(?P<dirty>\??)$') assert GIT_DESCRIPTION_REGEX.match('v1.2.3-0-ge08663af738857fcb4448d0fc00b95334bbfd500?') C_ESCAPED_PATH_REGEX = re.compile(r'^"([^"\\]|\\.)*"$') STATUS_UPSTREAM_BRANCH_COMPARE_REGEX = re.compile(r'^\+(?P<ahead_count>[0-9]+) -(?P<behind_count>[0-9]+)$') # <XY> <sub> <mH> <mI> <mW> <hH> <hI> <path> ORDINARY_TRACKED_REGEX = re.compile( r'^(?P<change>[A-Z.]{2}) (?P<sub>[A-Z.]{4}) ([0-7]+ ){3}([0-9a-f]+ ){2}(?P<path>.+)$') # <XY> <sub> <mH> <mI> <mW> <hH> <hI> <X><score> <path><sep><origPath> MOVED_TRACKED_REGEX = re.compile( r'^(?P<change>[A-Z.]{2}) (?P<sub>[A-Z.]{4}) ([0-7]+ ){3}([0-9a-f]+ ){2}[RC][0-9]+ ' r'(?P<path_before>.+)\t(?P<path>.+)$') def _without_prefix(s, prefix): if s.startswith(prefix): return s[len(prefix):] def _unquote_path(optionally_quoted_path): # https://github.com/git/git/blob/v2.20.1/wt-status.c#L250 # https://github.com/git/git/blob/v2.20.1/quote.c#L333 # https://github.com/git/git/blob/v2.20.1/quote.c#L258 # https://github.com/git/git/blob/v2.20.1/quote.c#L184 # https://github.com/git/git/blob/v2.20.1/config.c#L1115 # Characters < U+0020: quoted as octal, except these: '\a', '\b', '\t', '\n', '\v', '\f', '\r'. # Characters '"' and '\\' are quoted as '\"' and '\\', respectively. # Characters >= U+0080: quoted as octal if and only if 'core.quotepath' is true (default). m = C_ESCAPED_PATH_REGEX.match(optionally_quoted_path) if not m: return optionally_quoted_path return dlb_contrib.backslashescape.unquote(m.group(0)) def modifications_from_status(lines: Iterable[str]) \ -> Tuple[Dict[dlb.fs.Path, Tuple[str, Optional[dlb.fs.Path]]], Set[dlb.fs.Path], Optional[str], Optional[str], Optional[int], Optional[int]]: # Parse the output lines *lines* of 'git status --porcelain=v2 --untracked-files --branch' branch_refname = None upstream_branch_refname = None before_upstream = None behind_upstream = None # key is a relative path in the Git index or HEAD affected by a modification, # value is a tuple (c, p) where c is two-character string like ' M' and *p* is None or a relative path involved in # the modification modification_by_file: Dict[dlb.fs.Path, Tuple[str, Optional[dlb.fs.Path]]] = {} untracked_files = set() for line in lines: # https://github.com/git/git/blob/0d0ac3826a3bbb9247e39e12623bbcfdd722f24c/Documentation/git-status.txt#L279 branch_header = _without_prefix(line, '# branch.') if branch_header: if _without_prefix(branch_header, 'head '): branch_refname = 'refs/heads/' + _without_prefix(branch_header, 'head ') # in detached state, *branch_refname' will be 'refs/heads/(detached)'; # '(detached)' is also a valid branch name -> cannot determine if in detached state elif _without_prefix(branch_header, 'upstream '): upstream_branch_refname = 'refs/remotes/' + _without_prefix(branch_header, 'upstream ') elif _without_prefix(branch_header, 'ab '): m = STATUS_UPSTREAM_BRANCH_COMPARE_REGEX.match(_without_prefix(branch_header, 'ab ')) if not m: raise ValueError(f'invalid branch header line: {line!r}') before_upstream = int(m.group('ahead_count'), 10) behind_upstream = int(m.group('behind_count'), 10) continue # https://github.com/git/git/blob/v2.20.1/Documentation/git-status.txt#L301 # https://github.com/git/git/blob/v2.20.1/wt-status.c#L2074 ordinary_tracked = _without_prefix(line, '1 ') if ordinary_tracked: m = ORDINARY_TRACKED_REGEX.match(ordinary_tracked) if not m: raise ValueError(f'invalid non-header line: {line!r}') change = m.group('change').replace('.', ' ') path = dlb.fs.Path(_unquote_path(m.group('path'))) modification_by_file[path] = (change, None) continue moved_tracked = _without_prefix(line, '2 ') if moved_tracked: m = MOVED_TRACKED_REGEX.match(moved_tracked) if not m: raise ValueError(f'invalid non-header line: {line!r}') change = m.group('change').replace('.', ' ') path = dlb.fs.Path(_unquote_path(m.group('path'))) modification_by_file[path] = (change, dlb.fs.Path(_unquote_path(m.group('path_before')))) continue untracked = _without_prefix(line, '? ') if untracked: untracked_files.add(dlb.fs.Path(_unquote_path(untracked))) continue return ( modification_by_file, untracked_files, branch_refname, upstream_branch_refname, before_upstream, behind_upstream ) def check_refname(name: str): # Check if *name* is a valid refname according to https://git-scm.com/docs/git-check-ref-format. # Raises ValueError if not. components = name.split('/') if not components: raise ValueError('refname must not be empty') for c in components: if not c: raise ValueError('refname component must not be empty') if c.startswith('.') or c.endswith('.'): raise ValueError("refname component must not start or end with '.'") if c.endswith('.lock'): raise ValueError("refname component must not end with '.lock'") if c == '@': raise ValueError("refname component must not be '@'") if min(c) < ' ' or '\x7F' in c: raise ValueError('refname component must not contain ASCII control character') for s in ('..', '/', '\\', ' ', '~', '^', ':', '?', '*', '[', '@{'): if s in c: raise ValueError('refname component must not contain {}'.format(repr(s))) class GitDescribeWorkingDirectory(dlb.ex.Tool): # Describe the state of the Git working directory at the working tree's root. # This includes tag, commit and changed files. # Fails if the Git working directory contains not annotated tag match *TAG_PATTERN*. # Dynamic helper, looked-up in the context. EXECUTABLE = 'git' # Command line parameters for *EXECUTABLE* to output version information on standard output VERSION_PARAMETERS = ('--version',) # Consider only annotated tags with a name that matches this glob(7) pattern. TAG_PATTERN = 'v[0-9]*' # Number of matching annotated tag reachable from commit *latest_commit_hash* to consider. MATCHING_TAG_CANDIDATE_COUNT = 10 # https://github.com/git/git/blob/v2.20.1/builtin/describe.c # Most recent annotated tag reachable from commit *latest_commit_hash* and matching *TAG_PATTERN*. tag_name = dlb.ex.output.Object(explicit=False) # e.g. 'v1.2.3' # SHA-1 hash of the latest commit as a hex string of 40 characters ('0' - '9', 'a' - 'f'). latest_commit_hash = dlb.ex.output.Object(explicit=False) # e.g. '97db12cb0d88c1c157a371f48cf2e0884bf82ade' # Number of commits since the tag denoted by *tag_name* as a non-negative integer. commit_number_from_tag_to_latest_commit = dlb.ex.output.Object(explicit=False) # True if there are files in the Git index with uncommitted changes. has_changes_in_tracked_files = dlb.ex.output.Object(explicit=False) # Refname of the current branch (refs/heads/...) or None if in detached state. branch_refname = dlb.ex.output.Object(explicit=False, required=False) # e.g. 'refs/heads/master' # Refname of the upstream branch (refs/remotes/...), if any. upstream_branch_refname = dlb.ex.output.Object(explicit=False, required=False) # e.g. 'refs/remotes/origin/master' # Dictionary of files that are in the Git index and have uncommited changes. # The keys are relative paths in the Git index as dlb.fs.Path objects. modification_by_file = dlb.ex.output.Object(explicit=False) # Set of relative paths of files not in the Git index and not to be ignored (according to '.gitignore' in the # Git working directory or 'info/exclude' in the Git directory) as dlb.fs.Path objects. untracked_files = dlb.ex.output.Object(explicit=False) async def redo(self, result, context): arguments = [ 'describe', '--long', '--abbrev=41', '--dirty=?', f'--candidates={self.MATCHING_TAG_CANDIDATE_COUNT}', '--match', self.TAG_PATTERN ] _, stdout = await context.execute_helper_with_output(self.EXECUTABLE, arguments) # Note: untracked files in working directory do not make it dirty in terms of 'git describe' m = GIT_DESCRIPTION_REGEX.match(stdout.strip().decode()) result.tag_name = m.group('tag') result.latest_commit_hash = m.group('latest_commit_hash') result.commit_number_from_tag_to_latest_commit = int(m.group('commit_number'), 10) # Does not include files covered by pattern in a '.gitignore' file (even if not committed), # in '$GIT_DIR/info/exclude', or in the file specified by 'core.excludesFile' # (if not set: '$XDG_CONFIG_HOME/git/ignore' or '$HOME/.config/git/ignore' is used). # # So, if an untracked '.gitignore' file is added that contains a rule to ignore itself, all untracked files # covered by a rule in this '.gitignore' file are silently ignored. arguments = ['-c', 'core.excludesFile=', 'status', '--porcelain=v2', '--untracked-files', '--branch'] _, stdout = await context.execute_helper_with_output(self.EXECUTABLE, arguments) # https://github.com/git/git/blob/v2.20.1/Documentation/i18n.txt: # Path names are encoded in UTF-8 normalization form C ( result.modification_by_file, result.untracked_files, potential_branch_refname, result.upstream_branch_refname, before_upstream, behind_upstream ) = modifications_from_status(line.decode() for line in stdout.strip().splitlines()) result.has_changes_in_tracked_files = bool(m.group('dirty')) or bool(result.modification_by_file) if potential_branch_refname == 'refs/heads/(detached)': # detached? returncode = \ await context.execute_helper(self.EXECUTABLE, ['symbolic-ref', '-q', 'HEAD'], stdout_output=False, expected_returncodes=[0, 1]) if returncode == 1: potential_branch_refname = None # is detached result.branch_refname = potential_branch_refname return True class GitCheckTags(dlb.ex.Tool): # Query and check tags of the Git working directory at the working tree's root and optionally one of its remotes. # Fails if a tag violates the rules expressed by *ANNOTATED_TAG_NAME_REGEX* and *LIGHTWEIGHT_TAG_NAME_REGEX*. # Dynamic helper, looked-up in the context. EXECUTABLE = 'git' # Command line parameters for *EXECUTABLE* to output version information on standard output VERSION_PARAMETERS = ('--version',) # Regular expression that every annotated tag name must match and no lightweight tag name must match. ANNOTATED_TAG_NAME_REGEX = \ r'v(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*([a-z]+(0|[1-9][0-9]*))?' # default: dotted integers without leading zeros and optional letter-only suffix (always ends in decimal digit) # e.g. 'v0.2' or 'v1.2.3pre47' # Regular expression that every lightweight tag name must match. LIGHTWEIGHT_TAG_NAME_REGEX = r'(?!v[0-9]).+' # exclude names that would match `git describe --match "v[0-9]*"' # Optional remote whos tags must match the local tags in name and tagged commit. # Must be None (for local tags) or a valid refname that names a remote. # If empty, no remote repository is accessed. REMOTE_NAME_TO_SYNC_CHECK = 'origin' # If False, do not sync lightweight tags with remote *REMOTE_NAME_TO_SYNC_CHECK*. # Ignored if *REMOTE_NAME_TO_SYNC_CHECK* is empty. DO_SYNC_CHECK_LIGHTWEIGHT_TAGS = False # Dictionary of tagged commits. # Keys: name of annotated tag. # Values: SHA-1 hash of the tagged commit as a hex string of 40 characters ('0' - '9', 'a' - 'f'). commit_by_annotated_tag_name = dlb.ex.output.Object(explicit=False) # e.g. {'v1.2.3': 'deadbeef1234...'} # Dictionary of tagged commits. # Keys: name of lightweight tag. # Values: SHA-1 hash of the tagged commit as a hex string of 40 characters ('0' - '9', 'a' - 'f'). commit_by_lightweight_tag_name = dlb.ex.output.Object(explicit=False) # e.g. {'vw': '1234adee...'} async def get_tagged_commits(self, context, remote_or_url_or_path: str): arguments = ['ls-remote', '--tags', '--quiet', remote_or_url_or_path] # if *remote_or_url_or_path* is an existing remote and an existing path, the remote takes precedence # (which means: always start paths with '.' or '/') _, stdout = await context.execute_helper_with_output(self.EXECUTABLE, arguments) commit_by_annotated_tag_name = {} commit_by_lightweight_tag_name = {} line_regex = re.compile(rb'(?P<commit>[a-f0-9]{40})\trefs/tags/(?P<tag>[^ ^]+)(?P<peeled>\^{})?') for line in stdout.splitlines(): m = line_regex.fullmatch(line) commit_hash = m.group('commit').decode() tag_name = m.group('tag').decode() d = commit_by_lightweight_tag_name if m.group('peeled') is None else commit_by_annotated_tag_name d[tag_name] = commit_hash for tag_name in commit_by_annotated_tag_name: del commit_by_lightweight_tag_name[tag_name] return commit_by_annotated_tag_name, commit_by_lightweight_tag_name async def redo(self, result, context): annotated_tag_regex = re.compile(self.ANNOTATED_TAG_NAME_REGEX) lightweight_tag_regex = re.compile(self.LIGHTWEIGHT_TAG_NAME_REGEX) if self.REMOTE_NAME_TO_SYNC_CHECK: check_refname(self.REMOTE_NAME_TO_SYNC_CHECK) commit_by_annotated_tag_name, commit_by_lightweight_tag_name = await self.get_tagged_commits(context, '.') if self.REMOTE_NAME_TO_SYNC_CHECK: remote_commit_by_annotated_tag_name, remote_commit_by_lightweight_tag_name = \ await self.get_tagged_commits(context, self.REMOTE_NAME_TO_SYNC_CHECK) remote_commit_by_tag_name = remote_commit_by_annotated_tag_name commit_by_tag_name = commit_by_annotated_tag_name if self.DO_SYNC_CHECK_LIGHTWEIGHT_TAGS \ and remote_commit_by_lightweight_tag_name != commit_by_lightweight_tag_name: remote_commit_by_tag_name.update(remote_commit_by_lightweight_tag_name) commit_by_tag_name.update(commit_by_lightweight_tag_name) if remote_commit_by_tag_name != commit_by_tag_name: local_tags = set(commit_by_tag_name) remote_tags = set(remote_commit_by_tag_name) tags_only_in_local = local_tags - remote_tags tags_only_in_remote = remote_tags - local_tags def tag_list_str_for(tags): return ', '.join(repr(t) for t in sorted(tags)) if tags_only_in_local: raise ValueError('local tags missing on remotely: {}'.format(tag_list_str_for(tags_only_in_local))) if tags_only_in_remote: raise ValueError('remote tags missing locally: {}'.format(tag_list_str_for(tags_only_in_remote))) tags_with_different_commits = set( n for n, c in commit_by_tag_name.items() if remote_commit_by_tag_name[n] != c ) if tags_with_different_commits: raise ValueError('tags for different commits locally and remotely: {}'.format( tag_list_str_for(tags_with_different_commits))) for tag_name in commit_by_annotated_tag_name: if not annotated_tag_regex.fullmatch(tag_name): raise ValueError(f"name of annotated tag does not match 'ANNOTATED_TAG_NAME_REGEX': {tag_name!r}") for tag_name in commit_by_lightweight_tag_name: if annotated_tag_regex.fullmatch(tag_name): raise ValueError(f"name of lightweight tag does match 'ANNOTATED_TAG_NAME_REGEX': {tag_name!r}") if not lightweight_tag_regex.fullmatch(tag_name): raise ValueError(f"name of lightweight tag does not match 'LIGHTWEIGHT_TAG_NAME_REGEX': {tag_name!r}") result.commit_by_annotated_tag_name = commit_by_annotated_tag_name result.commit_by_lightweight_tag_name = commit_by_lightweight_tag_name return True
dlu-ch/dlb
src/dlb_contrib/git.py
Python
lgpl-3.0
18,572
# (C) British Crown Copyright 2018, Met Office # # This file is part of cartopy. # # cartopy is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # cartopy is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with cartopy. If not, see <https://www.gnu.org/licenses/>. from __future__ import (absolute_import, division, print_function) import numpy as np import pytest import shapely.geometry as sgeom from matplotlib.transforms import IdentityTransform try: from unittest import mock except ImportError: import mock import cartopy.crs as ccrs import cartopy.mpl.geoaxes as geoaxes from cartopy.feature import ShapelyFeature from cartopy.mpl.feature_artist import FeatureArtist, _freeze, _GeomKey from cartopy.mpl import style @pytest.mark.parametrize("source, expected", [ [{1: 0}, frozenset({(1, 0)})], [[1, 2], (1, 2)], [[1, {}], (1, frozenset())], [[1, {'a': [1, 2, 3]}], (1, frozenset([('a', (1, 2, 3))]))], [{'edgecolor': 'face', 'zorder': -1, 'facecolor': np.array([0.9375, 0.9375, 0.859375])}, frozenset([('edgecolor', 'face'), ('zorder', -1), ('facecolor', (0.9375, 0.9375, 0.859375))])], ]) def test_freeze(source, expected): assert _freeze(source) == expected @pytest.fixture def feature(): unit_circle = sgeom.Point(0, 0).buffer(0.5) unit_square = unit_circle.envelope geoms = [unit_circle, unit_square] feature = ShapelyFeature(geoms, ccrs.PlateCarree()) return feature def mocked_axes(extent, projection=ccrs.PlateCarree()): return mock.MagicMock( get_extent=mock.Mock(return_value=extent), projection=projection, spec=geoaxes.GeoAxes, transData=IdentityTransform(), patch=mock.sentinel.patch, figure=mock.sentinel.figure) def style_from_call(call): args, kwargs = call # Drop the transform keyword. kwargs.pop('transform') return kwargs def cached_paths(geom, target_projection): # Use the cache in FeatureArtist to get back the projected path # for the given geometry. geom_cache = FeatureArtist._geom_key_to_path_cache.get(_GeomKey(geom), {}) return geom_cache.get(target_projection, None) @mock.patch('matplotlib.collections.PathCollection') def test_feature_artist_draw(path_collection_cls, feature): geoms = list(feature.geometries()) fa = FeatureArtist(feature, facecolor='red') prj_crs = ccrs.Robinson() fa.axes = mocked_axes(extent=[-10, 10, -10, 10], projection=prj_crs) fa.draw(mock.sentinel.renderer) transform = prj_crs._as_mpl_transform(fa.axes) expected_paths = (cached_paths(geoms[0], prj_crs) + cached_paths(geoms[1], prj_crs), ) expected_style = {'facecolor': 'red'} args, kwargs = path_collection_cls.call_args_list[0] assert transform == kwargs.pop('transform', None) assert kwargs == expected_style assert args == expected_paths path_collection_cls().set_clip_path.assert_called_once_with(fa.axes.patch) path_collection_cls().set_figure.assert_called_once_with(fa.axes.figure) path_collection_cls().draw(mock.sentinel.renderer) @mock.patch('matplotlib.collections.PathCollection') def test_feature_artist_draw_styler(path_collection_cls, feature): geoms = list(feature.geometries()) style1 = {'facecolor': 'blue', 'edgecolor': 'white'} style2 = {'color': 'black', 'linewidth': 1} style2_finalized = style.finalize(style.merge(style2)) def styler(geom): if geom == geoms[0]: return style1 else: return style2 fa = FeatureArtist(feature, styler=styler, linewidth=2) extent = [-10, 10, -10, 10] prj_crs = ccrs.Robinson() fa.axes = mocked_axes(extent, projection=prj_crs) fa.draw(mock.sentinel.renderer) transform = prj_crs._as_mpl_transform(fa.axes) calls = [{'paths': (cached_paths(geoms[0], prj_crs), ), 'style': dict(linewidth=2, **style1)}, {'paths': (cached_paths(geoms[1], prj_crs), ), 'style': style2_finalized}] assert path_collection_cls.call_count == 2 for expected_call, (actual_args, actual_kwargs) in \ zip(calls, path_collection_cls.call_args_list): assert expected_call['paths'] == actual_args assert transform == actual_kwargs.pop('transform') assert expected_call['style'] == actual_kwargs
pelson/cartopy
lib/cartopy/tests/mpl/test_feature_artist.py
Python
lgpl-3.0
4,837
from __future__ import absolute_import '''Copyright 2015 LinkedIn Corp. 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.''' import os import re import sys sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib') import stat import fnmatch import subprocess import urllib2 import ast import string from subprocess import Popen, PIPE, STDOUT from collections import defaultdict from xml.dom import minidom import traceback import logging import time import shutil from threading import Thread, Lock from Queue import Queue # sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib') from qark.modules.IssueType import IssueSeverity from qark.modules.IssueType import IssueType from qark.modules import common from qark.modules import findExtras from qark.modules import webviews from qark.modules import report from qark.modules import unpackAPK from qark.lib.axmlparserpy import axmlprinter from qark.modules.DetermineMinSDK import determine_min_sdk from qark.modules import sdkManager from qark.modules import createSploit from qark.modules import createExploit from qark.modules import writeExploit from qark.modules import intentTracer from qark.modules import findMethods from qark.modules import findPending from qark.modules import findBroadcasts from qark.modules import findTapJacking from qark.modules import filePermissions from qark.modules import exportedPreferenceActivity from qark.modules import useCheckPermission from qark.modules import cryptoFlaws from qark.modules import certValidation from qark.modules import GeneralIssues from qark.modules import contentProvider from qark.modules.contentProvider import * from qark.modules import filters from qark.modules.report import Severity, ReportIssue from qark.modules.createExploit import ExploitType from qark.modules.common import terminalPrint, Severity, ReportIssue from qark.modules import adb from qark.lib import argparse from qark.lib.pyfiglet import Figlet from qark.lib.pubsub import pub from qark.lib.progressbar import ProgressBar, Percentage, Bar from qark.lib.yapsy.PluginManager import PluginManager #from yapsy.PluginManager import PluginManager common.qark_package_name='' pbar_file_permission_done = False lock = Lock() PROGRESS_BARS = ['X.509 Validation', 'Pending Intents', 'File Permissions (check 1)', 'File Permissions (check 2)', 'Webview checks', 'Broadcast issues', 'Crypto issues', 'Plugin issues' ] def exit(): """ Wrapper for exiting the program gracefully. Internally calls sys.exit() """ sys.exit() def clear_lines(n): """ Clear the space before using it """ thread0 = Thread(name='Clear Lines', target=clear, args=(n,)) thread0.start() thread0.join() def clear(n): """ clears n lines on the terminal """ with common.term.location(): print("\n"*n) def get_manifestXML(mf): common.manifest = mf def apktool(pathToAPK): manifest = "" # If path to APK is /foo/bar/temp/myapp.apk # Create /temp/foo/apktool # Run java -jar apktool_2.1.0.jar d /foo/bar/temp/myapp.apk --no-src --force -m --output /foo/bar/temp/apktool/ # read AndroidManifest.xml and return the content apktool = subprocess.call(['java', '-Djava.awt.headless=true','-jar', common.rootDir + '/lib/apktool_2.1.0.jar', 'd', pathToAPK, '--no-src', '--force', '-m','--output', str(pathToAPK.rsplit(".",1)[0]).rsplit("/",1)[0] + "/apktool"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) print str(pathToAPK.rsplit(".",1)[0]).rsplit("/",1)[0] + "/apktool" + "/AndroidManifest.xml" with open (str(pathToAPK.rsplit(".",1)[0]).rsplit("/",1)[0] + "/apktool" + "/AndroidManifest.xml", "r") as f: manifest = f.read() pub.sendMessage('manifest', mf=manifest) return def progress_bar_update(bar, percent): lock.acquire() global pbar_file_permission_done if bar == "File Permissions" and percent >= 100 and not pbar_file_permission_done: pbar_file_permission_done = True bar = "File Permissions (check 1)" elif bar == "File Permissions" and pbar_file_permission_done: bar = "File Permissions (check 2)" elif bar == "File Permissions": bar = "File Permissions (check 1)" # if the supplied bar name is not in the list then we assume it is a user plugin if bar in PROGRESS_BARS: common.qark_main_pbars[bar].update(percent) else: common.qark_main_pbars["Plugin issues"][bar].update(percent) lock.release() def version(): print "Version 0.8" sys.exit() def show_exports(compList,compType): try: if len(compList)>0: if compType=='activity': print "==>EXPORTED ACTIVITIES: " for index,component in enumerate(compList): print str(index)+": "+str(component) try: adb.show_adb_commands(str(component),compType,common.qark_package_name) except Exception as e: common.logger.error("Problem running adb.show_adb_commands, for Activities, in qark.py: " + str(e)) '''elif compType=='alias': print "==>EXPORTED ACTIVITY ALIASES: " adb.show_adb_commands(component[1],compType,common.qark_package_name)''' elif compType=='service': print "==>EXPORTED SERVICES: " for index,component in enumerate(compList): print str(index)+": "+str(component) try: adb.show_adb_commands(str(component),compType,common.qark_package_name) except Exception as e: common.logger.error("Problem running adb.show_adb_commands, for Services, in qark.py: " + str(e)) '''if compType=='provider': print "==>EXPORTED PROVIDERS: " adb.show_adb_commands(component[1],compType,common.qark_package_name)''' elif compType=='receiver': print "==>EXPORTED RECEIVERS: " for index,component in enumerate(compList): print str(index)+": "+str(component) try: adb.show_adb_commands(str(component),compType,common.qark_package_name) except Exception as e: common.logger.error("Problem running adb.show_adb_commands, for Receivers, in qark.py: " + str(e)) except Exception as e: common.logger.error("Problem running show_exports in qark.py: " + str(e)) return def read_files(filename,rex): things_to_inspect=[] with open(filename) as f: content=f.readlines() for y in content: if re.search(rex,y): if re.match(r'^\s*(\/\/|\/\*)',y): #exclude single-line or beginning comments pass elif re.match(r'^\s*\*',y): #exclude lines that are comment bodies pass elif re.match(r'.*\*\/$',y): #exclude lines that are closing comments pass elif re.match(r'^\s*Log\..\(',y): #exclude Logging functions pass elif re.match(r'(.*)(public|private)\s(String|List)',y): #exclude declarations pass else: things_to_inspect.append(y) return things_to_inspect def process_manifest(manifest): try: common.manifest = os.path.abspath(str(manifest).strip()) common.manifest = re.sub("\\\\\s",' ',common.manifest) common.manifest = minidom.parseString(open(common.manifest, 'r').read()).toxml() common.xmldoc = minidom.parseString(common.manifest.encode('utf-8')) report.write_manifest(common.xmldoc) common.logger.info(common.xmldoc.toxml()) except Exception as e: try: # not human readable yet? ap = axmlprinter.AXMLPrinter(open(common.manifest, 'rb').read()) common.xmldoc = minidom.parseString(ap.getBuff()) common.logger.info(common.xmldoc.toxml()) report.write_manifest(common.xmldoc.toprettyxml()) except Exception as e: if not common.interactive_mode: common.logger.error(str(e) + "\r\nThat didnt work. Try providing an absolute path to the file") exit() common.logger.error(str(e) + "\r\nThat didnt work. Try providing an absolute path to the file\n") def list_all_apk(): result = [] adb = common.getConfig('AndroidSDKPath') + "platform-tools/adb" st = os.stat(adb) os.chmod(adb, st.st_mode | stat.S_IEXEC) while True: p1 = Popen([adb, 'devices'], stdout=PIPE, stdin=PIPE, stderr=STDOUT) a = 0 error = False for line in p1.stdout: a = a+1 if "daemon not running. starting it now on port" in line: error = True # If atleast one device is connected if a >2 and not error: break else: common.logger.warning("Waiting for a device to be connected...") time.sleep(5) p0 = Popen([adb, 'shell', 'pm', 'list', 'packages', '-f'], stdout=PIPE, stdin=PIPE, stderr=STDOUT) index = 0 for line in p0.stdout: path = str(line).find('=') result.append(str(line)[8:path]) index+=1 return result def uninstall(package): print "trying to uninstall " + package result = [] adb = common.getConfig('AndroidSDKPath') + "platform-tools/adb" st = os.stat(adb) os.chmod(adb, st.st_mode | stat.S_IEXEC) while True: p1 = Popen([adb, 'devices'], stdout=PIPE, stdin=PIPE, stderr=STDOUT) a = 0 for line in p1.stdout: a = a+1 # If atleast one device is connected if a >2 : break else: common.logger.warning("Waiting for a device to be connected...") time.sleep(5) uninstall = Popen([adb, 'shell', 'pm', 'uninstall', package], stdout=PIPE, stdin=PIPE, stderr=STDOUT) for line in uninstall.stdout: if "Failure" in line: package = re.sub('-\d$', '', package) uninstall_try_again = Popen([adb, 'shell', 'pm', 'uninstall', package], stdout=PIPE, stdin=PIPE, stderr=STDOUT) return def pull_apk(pathOnDevice): adb = common.getConfig('AndroidSDKPath') + "platform-tools/adb" st = os.stat(adb) os.chmod(adb, st.st_mode | stat.S_IEXEC) if not os.path.exists('temp' + "/"): os.makedirs('temp' + "/") p0 = Popen([adb, 'pull', pathOnDevice, 'temp/'+str(pathOnDevice).split('/')[-1]], stdout=PIPE, stdin=PIPE, stderr=STDOUT) for line in p0.stdout: print line, return 'temp/'+str(pathOnDevice).split('/')[-1] def find_manifest_in_source(): if not common.interactive_mode: manifestPath = common.args.manifest else: common.logger.info('Finding AndroidManifest.xml') listOfFiles = [] manifestPath='' try: for (dirpath, dirnames, filenames) in os.walk(common.sourceDirectory): for filename in filenames: if filename == 'AndroidManifest.xml': listOfFiles.append(os.path.join(dirpath,filename)) if len(listOfFiles)==0: while True: print common.term.cyan + common.term.bold + str(common.config.get('qarkhelper','CANT_FIND_MANIFEST')).decode('string-escape').format(t=common.term) common.sourceDirectory=os.path.abspath(raw_input("Enter path: ")).rstrip() common.sourceDirectory = re.sub("\\\\\s",' ',common.sourceDirectory) if os.path.isdir(common.sourceDirectory): if not common.sourceDirectory.endswith('/'): common.sourceDirectory+='/' manifestPath=find_manifest_in_source() common.manifest=manifestPath break else: common.logger.error("Not a directory. Please try again") elif len(listOfFiles)>1: print "Please enter the number corresponding to the correct file:" for f in enumerate(listOfFiles,1): print str(f) while True: selection=int(raw_input()) r=range(1,len(listOfFiles)+1) if int(selection) in r: manifestPath=listOfFiles[selection-1] break else: print "Invalid selection, please enter a number between 1 and " + str(len(listOfFiles)) else: manifestPath=listOfFiles[0] except Exception as e: common.logger.error(str(e)) exit() return manifestPath def report_badger(identity, objectlist): for item in objectlist: if isinstance(item, ReportIssue): report.write_badger(identity, item.getSeverity(), item.getDetails(), item.getExtras()) def writeReportSection(results, category): if category == "CRYPTO ISSUES": section = report.Section.CRYPTO_BUGS elif category == "BROADCAST ISSUES": section = report.Section.BROADCASTS elif category == "CERTIFICATE VALIDATION ISSUES": section = report.Section.X509 elif category == "PENDING INTENT ISSUES": section = report.Section.PENDING_INTENTS elif category == "FILE PERMISSION ISSUES": section = report.Section.FILE_PERMISSIONS elif category == "WEB-VIEW ISSUES": section = report.Section.WEBVIEW elif category == "PLUGIN ISSUES": section = report.Section.PLUGIN try: report.writeSection(section, results) except Exception as e: print e.message with common.term.location(0,common.term.height): common.logger.log(common.HEADER_ISSUES_LEVEL, category) if not any(isinstance(x, terminalPrint) for x in results): common.logger.info(" No issues to report") for item in results: if isinstance(item, terminalPrint): if item.getLevel() == Severity.INFO: common.logger.info(item.getData()) if item.getLevel() == Severity.WARNING: common.logger.warning(item.getData()) if item.getLevel() == Severity.ERROR: common.logger.error(item.getData()) if item.getLevel() == Severity.VULNERABILITY: common.logger.log(common.VULNERABILITY_LEVEL,item.getData()) def nonAutomatedParseArgs(): ignore = os.system('clear') f = Figlet(font='colossal') print f.renderText('Q A R K') common.logger = logging.getLogger() common.rootDir = os.path.dirname(os.path.realpath(__file__)) #Initialize system #Verify that settings.properties always exists if not os.path.exists(os.path.dirname(os.path.realpath(__file__)) + "/settings.properties"): f = open(os.path.dirname(os.path.realpath(__file__)) + "/settings.properties",'w') f.close() # common.writeKey("rootDir", common.rootDir) common.initialize_logger() ####################################### parser = argparse.ArgumentParser(description='QARK - Andr{o}id Source Code Analyzer and Exploitation Tool') required = parser.add_argument_group('Required') mode = parser.add_argument_group('Mode') advanced = parser.add_argument_group('When --source=2') auto = parser.add_argument_group('When --source=1') optional = parser.add_argument_group('Optional') exploitmenu = parser.add_argument_group('Exploit Generation') mode.add_argument("-s", "--source", dest="source", metavar='int', type=int, help="1 if you have an APK, 2 if you want to specify the source selectively") advanced.add_argument("-m", "--manifest", dest="manifest", help="Enter the full path to the manifest file. Required only when --source==2") auto.add_argument("-p", "--pathtoapk", dest="apkpath", help="Enter the full path to the APK file. Required only when --source==1") advanced_mutual = advanced.add_mutually_exclusive_group() advanced_mutual.add_argument("-a", "--autodetectcodepath", dest="autodetect", help="AutoDetect java source code path based of the path provided for manifest. 1=autodetect, 0=specify manually") advanced_mutual.add_argument("-c", "--codepath", dest="codepath", help="Enter the full path to the root folder containing java source. Required only when --source==2") optional.add_argument("-e", "--exploit", dest="exploit", help="1 to generate a targeted exploit APK, 0 to skip") # optional.add_argument("-n", "--no-progress-bar", dest="noprogressbar", help="dont display progress bar for compatibility reasons", default=False, action='store_true') optional.add_argument("-i", "--install", dest="install", help="1 to install exploit APK on the device, 0 to skip") optional.add_argument("-d", "--debug", dest="debuglevel", help="Debug Level. 10=Debug, 20=INFO, 30=Warning, 40=Error") optional.add_argument("-v", "--version", dest="version", help="Print version info", action='store_true') optional.add_argument("-r", "--reportdir", dest="reportdir", help="Specify full path for output report directory. Defaults to /report") required_group = required.add_mutually_exclusive_group() required_group.add_argument("-t", "--acceptterms", dest="acceptterms", help="Automatically accept terms and conditions when downloading Android SDK") required_group.add_argument("-b", "--basesdk", dest="basesdk", help="specify the full path to the root directory of the android sdk") common.args = parser.parse_args() main() def runAutomated(pathToApk,pathToReport): ignore = os.system('clear') f = Figlet(font='colossal') print f.renderText('Q A R K') common.logger = logging.getLogger() common.rootDir = os.path.dirname(os.path.realpath(__file__)) #Initialize system #Verify that settings.properties always exists if not os.path.exists(os.path.dirname(os.path.realpath(__file__)) + "/settings.properties"): f = open(os.path.dirname(os.path.realpath(__file__)) + "/settings.properties",'w') f.close() # common.writeKey("rootDir", common.rootDir) common.initialize_logger() common.args = argparse.Namespace() common.args.exploit = 0 common.args.install = 0 common.args.source = 1 common.args.reportDir = pathToReport common.args.apkpath = pathToApk common.args.debuglevel = None common.args.acceptterms = None common.args.autodetect = None common.args.basesdk = None common.args.codepath = None common.args.manifest = None common.args.version = False common.interactive_mode = False main() def main(): if len(sys.argv) > 1: common.interactive_mode = False ####################################### #Command line argument sanity checks if not common.interactive_mode: if not common.args.source: common.logger.error("Please specify source (--source=1 or --source==2)") exit() if common.args.source==1: if common.args.apkpath is None: common.logger.error("When selecting --source=1, Please provide the path to the APK via --pathtoapk flag") exit() if common.args.exploit is None: common.logger.error("--exploit flag missing. Possible values 0/1") exit() if int(common.args.exploit) == 1: if common.args.install is None: common.logger.error("--install flag missing. Possible values 0/1") exit() if common.args.source==2: if common.args.autodetect is None: if common.args.manifest is None or common.args.codepath is None: common.logger.error("When selecting --source=2, Please either pass --autodetectcodepath=1 or both --manifest and --codepath") if common.args.exploit is None: common.logger.error("--exploit flag missing. Possible values 0/1") exit() if int(common.args.exploit) == 1: if common.args.install is None: common.logger.error("--install flag missing. Possible values 0/1") exit() if common.args.debuglevel is not None: if int(common.args.debuglevel) in range(10,60): common.logger.setLevel(int(common.args.debuglevel)) else: parser.error("Please provide a valid Debug level (10,20,30,40,50,60)") exploit_choice = 1 if common.args.version: version() if common.args.basesdk is not None: common.writeKey('AndroidSDKPath', str(common.args.basesdk).strip()) ####################################### #Reset any old report report.reset() common.set_environment_variables() #Copy the exploit code into a separate temp directory if not os.path.exists(common.getConfig("rootDir") + "/build"): shutil.copytree(common.getConfig("rootDir") + "/exploitAPKs", common.getConfig("rootDir") + "/build") common.logger.info(common.config.get('qarkhelper', 'STARTUP')) if not sdkManager.is_android_sdk_installed(): sdkManager.get_android_sdk_manager() else: common.logger.info( common.config.get('qarkhelper', 'SDK_INSTALLATION_IDENTIFIED')) common.minSdkVersion=1 #Begin common.logger.info('Initializing QARK\n') common.checkJavaVersion() #Define plugin location and get all plugins manager = PluginManager() manager.setPluginPlaces(["plugins"]) manager.collectPlugins() if common.interactive_mode: while True: try: print common.term.cyan + common.term.bold + str(common.config.get('qarkhelper','APK_OR_SOURCE_PROMPT')).decode('string-escape').format(t=common.term) common.source_or_apk=int(raw_input(common.config.get('qarkhelper','ENTER_YOUR_CHOICE'))) if common.source_or_apk in (1,2): break else: if not common.interactive_mode: common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION')) exit() common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION_INTERACTIVE')) except Exception as e: if not common.interactive_mode: common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION')) exit() common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION_INTERACTIVE')) else: common.source_or_apk = common.args.source if common.source_or_apk==1: while True: try: if common.interactive_mode: while True: print common.term.cyan + common.term.bold + str(common.config.get('qarkhelper','APK_PATH_OR_FROM_PHONE')).decode('string-escape').format(t=common.term) common.apkPathChoice=int(raw_input(common.config.get('qarkhelper','ENTER_YOUR_CHOICE'))) if common.apkPathChoice in (1,2): break else: if not common.interactive_mode: common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION')) common.exitClean() else: common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION_INTERACTIVE')) if (common.apkPathChoice==2): print common.term.cyan + common.term.bold + str(common.config.get('qarkhelper','TRUST_ME')).decode('string-escape').format(t=common.term) apkList = list_all_apk() for apk in apkList: print str(apkList.index(apk)) + ") " + apk print common.term.cyan + common.term.bold + str(common.config.get('qarkhelper','APK_PATH_OR_FROM_PHONE')).decode('string-escape').format(t=common.term) apkIndex = int(raw_input(common.config.get('qarkhelper', 'SELECT_AN_APK') + "[" + "0-" + str(len(apkList)-1) + "]: " )) while apkIndex not in range(0,len(apkList)): common.logger.error('Please select a valid APK number') apkIndex = int(raw_input(common.config.get('qarkhelper', 'SELECT_AN_APK') + "(" + "0-" + str(len(apkList)-1) + "): " )) common.logger.info("Selected:"+ str(apkIndex) + " " + str(apkList[apkIndex])) common.apkPath = pull_apk(str(apkList[apkIndex])) apkName=str(os.path.abspath(common.apkPath)).split("/")[-1] common.sourceDirectory=re.sub(r''+apkName,'',os.path.abspath(common.apkPath)) else: print common.term.cyan + common.term.bold + str(common.config.get('qarkhelper','PATH_PROMPT_APK')).decode('string-escape').format(t=common.term) common.apkPath = str(raw_input(common.config.get('qarkhelper', 'PATH_APK'))).strip() else: if common.args.apkpath is not None: common.apkPath = common.args.apkpath common.logger.debug('User selected APK %s' + common.apkPath) common.apkPath = os.path.abspath(common.apkPath) common.apkPath = re.sub("\\\\\s",' ',common.apkPath) report.write("apkpath", common.apkPath) unpackAPK.unpack() break except Exception as e: continue try: package = defaultdict(list) result = Queue() pub.subscribe(get_manifestXML, 'manifest') thread_get_manifest = Thread(name='apktool-qark', target=apktool, args=(common.apkPath,)) thread_get_manifest.start() thread_get_manifest.join() common.manifest = minidom.parseString(common.manifest).toxml() if common.interactive_mode: show=raw_input("Inspect Manifest?[y/n]") if show in ['y','Y']: common.logger.info(common.manifest) raw_input("Press ENTER key to continue") else: common.logger.info(common.manifest) report.write_manifest(common.manifest.encode( "utf-8" )) #common.manifest = mf except IOError: common.logger.error(IOError.message) #parse xml common.xmldoc = minidom.parseString(common.manifest.encode('utf-8')) elif common.source_or_apk==2: # Check if all required arguments are present before proceeding while True: if common.interactive_mode: common.sourceDirectory=os.path.abspath(raw_input(common.config.get('qarkhelper','SOURCE_PROMPT')).rstrip()) else: common.sourceDirectory=common.args.codepath re.sub(r'AndroidManifest.xml','',common.sourceDirectory) common.sourceDirectory = os.path.abspath(str(common.sourceDirectory).strip()) common.sourceDirectory = re.sub("\\\\\s",' ',common.sourceDirectory) if os.path.isdir(common.sourceDirectory): if not common.sourceDirectory.endswith('/'): common.sourceDirectory+='/' manifest = find_manifest_in_source() if not common.interactive_mode: process_manifest(common.args.manifest) else: process_manifest(manifest) break else: common.logger.error("Not a directory. Please try again") report.write("apkpath", common.sourceDirectory) totalfiles = 0 for root, dirnames, filenames in os.walk(common.sourceDirectory): for filename in fnmatch.filter(filenames, '*'): totalfiles = totalfiles + 1 report.write("totalfiles",totalfiles) else: common.logger.info("You only had 2 options and you still messed up. Let me choose option 2 for you") #Only application and manifest elements are required: http://developer.android.com/guide/topics/manifest/manifest-intro.html try: # THIS SECTION IS THE ONE AFTER VIEWING MANIFEST BEFORE DECOMPILATION # THIS CONTAINS THE CODE THAT FINDS ACTIVITIES THAT HAVEN'T BEEN PROTECTED BY ANY PERMISSIONS determine_min_sdk() common.print_terminal_header("APP COMPONENT ATTACK SURFACE") app = common.xmldoc.getElementsByTagName("application") common.compare(app.length,1,common.config.get('qarkhelper', 'APP_ELEM_ISSUE'), 'true') GeneralIssues.verify_allow_backup(app) GeneralIssues.verify_custom_permissions() GeneralIssues.verify_debuggable(app) common.logger.info("Checking provider") prov_priv_list, prov_exp_list, prov_exp_perm_list, prov_prot_broad_list, report_data, results =common.check_export('provider',True) report_badger("appcomponents", results) common.print_terminal(report_data) common.logger.info("Checking activity") act_priv_list, act_exp_list, act_exp_perm_list, act_prot_broad_list=[],[],[],[] act_priv_list, act_exp_list, act_exp_perm_list, act_prot_broad_list, report_data, results=common.check_export('activity',True) #Normalizing activity names for use in exploit APK, so all will be absolute act_priv_list=common.normalizeActivityNames(act_priv_list,common.qark_package_name) act_exp_list=common.normalizeActivityNames(act_exp_list,common.qark_package_name) act_exp_perm_list=common.normalizeActivityNames(act_exp_perm_list,common.qark_package_name) act_prot_broad_list=common.normalizeActivityNames(act_prot_broad_list,common.qark_package_name) report_badger("appcomponents", results) common.print_terminal(report_data) common.logger.info("Checking activity-alias") #TODO - Normalize activity alias names? actalias_priv_list, actalias_exp_list, actalias_exp_perm_list,actalias_prot_broad_list=[],[],[],[] actalias_priv_list, actalias_exp_list, actalias_exp_perm_list,actalias_prot_broad_list, report_data, results=common.check_export('activity-alias',True) report_badger("appcomponents", results) common.print_terminal(report_data) common.logger.info("Checking services") serv_priv_list, serv_exp_list, serv_exp_perm_list,serv_prot_broad_list=[],[],[],[] serv_priv_list, serv_exp_list, serv_exp_perm_list,serv_prot_broad_list, report_data, results=common.check_export('service',True) report_badger("appcomponents", results) common.print_terminal(report_data) common.logger.info("Checking receivers") rec_priv_list, rec_exp_list, rec_exp_perm_list,rec_prot_broad_list=[],[],[],[] rec_priv_list, rec_exp_list, rec_exp_perm_list,rec_prot_broad_list, report_data, results=common.check_export('receiver',True) report_badger("appcomponents", results) common.print_terminal(report_data) except Exception as e: common.logger.error(traceback.format_exc()) #Begin static code Analysis #Easy Wins first if common.source_or_apk == 1 and common.interactive_mode: stop_point = raw_input("Press ENTER key to begin decompilation") #Converting dex files to jar if common.source_or_apk!=1: try: if os.path.exists(common.manifest.rsplit("/",1)[0] + "/java"): common.pathToUnpackedAPK = common.manifest.rsplit("/",1)[0] + "/java" common.logger.info("Found Java Source at %s", common.pathToUnpackedAPK) confirm = raw_input(common.config.get('qarkhelper', 'SOURCE_CONFIRM')) if str(confirm).lower()=='n': common.sourceDirectory = os.path.abspath(raw_input(common.config.get('qarkhelper', 'SOURCE_PROMPT'))).rstrip() else: common.sourceDirectory = common.pathToUnpackedAPK elif os.path.exists(common.sourceDirectory): common.logger.info("Using "+common.sourceDirectory+" as the project source directory") else: common.sourceDirectory = os.path.abspath(raw_input(common.config.get('qarkhelper', 'SOURCE_PROMPT'))).rstrip() common.sourceDirectory = re.sub("\\\\\s",' ',common.sourceDirectory) except IOError: common.logger.error("Oops! all hope is lost \n %s", IOError.message) else: unpackAPK.decompile(common.pathToDEX) if common.pathToUnpackedAPK != "": common.logger.info('Decompiled code found at:%s', common.pathToUnpackedAPK) common.sourceDirectory = common.pathToUnpackedAPK #find all java files common.java_files=common.find_java(common.sourceDirectory) #find all R.java files common.xml_files=common.find_xml(common.sourceDirectory) if common.interactive_mode: stop_point = raw_input("Press ENTER key to begin Static Code Analysis") #Regex to look for collection of deviceID #Regex to determine if WebViews are imported wv_imp_rex=r'android.webkit.WebView' cp_imp_rex=r'android.content.ContentProvider' #Run through all files, look for regex, print warning/info text and lines of code, with file names/paths cert_queue = Queue() pending_intents_queue = Queue() file_permission_queue = Queue() web_view_queue = Queue() find_broadcast_queue = Queue() crypto_flaw_queue = Queue() plugin_queue = Queue() if common.source_or_apk==1: report.write("javafiles", common.count) else: javafiles = 0 for root, dirnames, filenames in os.walk(common.sourceDirectory): for filename in fnmatch.filter(filenames, '*.java'): javafiles = javafiles + 1 report.write("javafiles", javafiles) common.logger.info("Running Static Code Analysis...") common.keyFiles=common.findKeys(common.sourceDirectory) ''' #Look for improper use of checkCallingPermission, rather than enforceCallingPermission try: use_check_permission() except Exception as e: common.logger.error("Unable to run checks for improper use of checkCallingPermission: " + str(e)) ''' height = common.term.height try: clear_amount = (len(PROGRESS_BARS) - 1) * 2 for plugin in manager.getAllPlugins(): clear_amount += 2 clear_lines(clear_amount) # TODO: change to list comprehension to make it more pythonic # all static writers included in every static analysis writers = [common.Writer((0, height-8)), common.Writer((0, height-6)), common.Writer((0, height-4)), common.Writer((0, height-2)), common.Writer((0, height-10)), common.Writer((0, height-12)), common.Writer((0, height-14))] common.qark_main_pbars = {} # if common.args.noprogressbar: # print('Progress bars disabled. Running...') # create dictionary for progress bars, common.qark_main_pbars = { name: ProgressBar } # else: for barNum in range(len(PROGRESS_BARS)-1): common.qark_main_pbars[PROGRESS_BARS[barNum]] = ProgressBar(widgets=[PROGRESS_BARS[barNum], Percentage(), Bar()], maxval=100, fd=writers[barNum]).start() # create writer and progress bar for each plugin placer = 0 for plugin in manager.getAllPlugins(): writer = common.Writer((0, height-(16+placer))) writers.append(writer) if 'Plugin issues' not in common.qark_main_pbars: common.qark_main_pbars['Plugin issues'] = {} common.qark_main_pbars['Plugin issues'][plugin.plugin_object.getName()] = ProgressBar(widgets=[plugin.plugin_object.getName(), Percentage(), Bar()], maxval=100, fd=writer).start() placer += 2 pub.subscribe(progress_bar_update, 'progress') #Create static analysis threads threads = [] threads.append(Thread(name='Certificate Validation', target=certValidation.validate, args=(cert_queue,height-8))) threads.append(Thread(name='Pending Intent validation', target=findPending.start, args = (pending_intents_queue,height-6))) threads.append(Thread(name='File Permission checks', target=filePermissions.start, args = (file_permission_queue,height-4))) threads.append(Thread(name='Webviews', target=webviews.validate, args = (web_view_queue,))) threads.append(Thread(name='Find Broadcasts', target=findBroadcasts.main, args = (find_broadcast_queue,))) threads.append(Thread(name='Crypto Issues', target=cryptoFlaws.main, args = (crypto_flaw_queue,))) for plugin in manager.getAllPlugins(): threads.append(Thread(name=plugin.plugin_object.getCategory(), target=plugin.plugin_object.getTarget(), args = (plugin_queue,))) for thread in threads: thread.start() for thread in threads: thread.join() clear_lines(5) try: #Start looking for stuff potentially vulnerable to malicious apps if len(prov_exp_list)>0: findMethods.map_from_manifest(prov_exp_list,'provider') if len(prov_exp_perm_list)>0: findMethods.map_from_manifest(prov_exp_perm_list,'provider') if len(act_exp_list)>0: findMethods.map_from_manifest(act_exp_list,'activity') if len(act_exp_perm_list)>0: findMethods.map_from_manifest(act_exp_perm_list,'activity') #BUG Need to customize this if len(actalias_exp_list)>0: findMethods.map_from_manifest(actalias_exp_list,'activity-alias') if len(act_exp_perm_list)>0: findMethods.map_from_manifest(actalias_exp_perm_list,'activity-alias') if len(serv_exp_list)>0: findMethods.map_from_manifest(serv_exp_list,'service') if len(serv_exp_perm_list)>0: findMethods.map_from_manifest(serv_exp_perm_list,'service') if len(rec_exp_list)>0: findMethods.map_from_manifest(rec_exp_list,'receiver') if len(rec_exp_perm_list)>0: findMethods.map_from_manifest(rec_exp_perm_list,'receiver') except Exception as e: common.logger.error("Unable to use findMethods to map from manifest: " + str(e)) results = [ (crypto_flaw_queue.get(), "CRYPTO ISSUES"), (find_broadcast_queue.get(), "BROADCAST ISSUES"), (cert_queue.get(), "CERTIFICATE VALIDATION ISSUES"), (pending_intents_queue.get(), "PENDING INTENT ISSUES"), (file_permission_queue.get(), "FILE PERMISSION ISSUES"), (web_view_queue.get(), "WEB-VIEW ISSUES") ] if not plugin_queue.empty(): for i in range(plugin_queue.qsize()): results.append((plugin_queue.get(), "PLUGIN ISSUES")) for r in results: writeReportSection(r[0], r[1]) except Exception as e: common.logger.error("Unexpected error: " + str(e)) ######################## #Look for exported Preference activities ''' if common.minSdkVersion<19: try: if (len(act_exp_list)>0) or (len(actalias_exp_list>0)): exportedPreferenceActivity.main() except Exception as e: common.logger.error("Unable to check for exported Preference Activities: " + str(e)) ''' ######################### #Look for TapJacking vulnerabilities #Native protection was added in API v. 9, so previous likely vulnerable if common.minSdkVersion >8: common.logger.debug("Beginning TapJacking testing") findTapJacking.start(common.sourceDirectory) else: common.logger.log(common.VULNERABILITY_LEVEL,"Since the minSdkVersion is less that 9, it is likely this application is vulnerable to TapJacking. QARK made no attempt to confirm, as the protection would have to be custom code, which is difficult for QARK to examine and understand properly. This vulnerability allows a malicious application to lay on top of this app, while letting the key strokes pass through to the application below. This can cause users to take unwanted actions, within the victim application, similar to Clickjacking on websites. Please select the appropriate options in the exploitation menus to verify manually using QARK's exploit APK. Note: The QARK proof-of-concept is transparent, but in real-world attacks, it would likely not be. This is done solely to aid in testing. For more information: https://media.blackhat.com/ad-12/Niemietz/bh-ad-12-androidmarcus_niemietz-WP.pdf") ########### #Look for Content Provider issues if len(common.text_scan(common.java_files,cp_imp_rex)) > 1: common.logger.info("Content Providers appear to be in use, locating...") cp_dec_list=contentProvider.find_content_providers() cp_dec_list=filter(None,cp_dec_list) cp_dec_list=common.dedup(cp_dec_list) common.logger.info("FOUND " + str(len(cp_dec_list)) + " CONTENTPROVIDERS:") for p in cp_dec_list: common.logger.info(str(p)) query_rex=r'\.query\(.*\)' update_rex=r'\.update\(.*\)' delete_rex=r'\.delete\(.*\)' insert_rex=r'\.insert\(.*\)' #TODO - Add SQLi checks #VERY LAME SQL INJECTION DETECTION (GUESSING) statement_list=[] statement_list.append([]) for p in cp_dec_list: if len(p)>1: statement_list+=common.text_scan([p[1]],query_rex) statement_list+=common.text_scan([p[1]],update_rex) statement_list+=common.text_scan([p[1]],delete_rex) statement_list+=common.text_scan([p[1]],insert_rex) if len(cp_dec_list)>0: common.logger.info("The Content Providers above should be manually inspected for injection vulnerabilities.") try: #TODO - This is a pain in the ass and incomplete content_provider_uri_permissions() except Exception as e: common.logger.error("Unable to parse Content Provider permissions. Error: " + str(e)) for item in list(common.parsingerrors): report.write("parsingerror-issues-list",item,"strong") #reporting number of vulns before ading ADB commands report.write_counters() common.print_terminal_header("ADB EXPLOIT COMMANDS") for a in common.xmldoc.getElementsByTagName('manifest'): if 'package' in a.attributes.keys(): common.qark_package_name=a.attributes['package'].value try: if ((prov_exp_list is not None) or (act_exp_list is not None) or (actalias_exp_list is not None) or (serv_exp_list is not None) or (rec_exp_list is not None)): common.logger.info("Until we perfect this, for manually testing, run the following command to see all the options and their meanings: adb shell am. Make sure to update qark frequently to get all the enhancements! You'll also find some good examples here: http://xgouchet.fr/android/index.php?article42/launch-intents-using-adb") try: show_exports(prov_exp_list,'provider') show_exports(act_exp_list,'activity') show_exports(actalias_exp_list,'alias') show_exports(serv_exp_list,'service') show_exports(rec_exp_list,'receiver') print "\nTo view any sticky broadcasts on the device:" print "adb shell dumpsys activity| grep sticky\n" common.logger.info("Support for other component types and dynamically adding extras is in the works, please check for updates") except Exception as e: common.logger.error("Problem running show_exports in qark.py: " + str(e)) else: print "Sorry, nothing exploitable via ADB" except Exception as e: common.logger.error("Unfortunately, we were unable to print out the ADB commands for exploitation: " + str(e)) #TODO - return line of code for bugs while True: try: if common.interactive_mode: print common.term.cyan + common.term.bold + str(common.config.get('qarkhelper','EXPLOIT_CHOICE')).decode('string-escape').format(t=common.term) exploit_choice=int(raw_input(common.config.get('qarkhelper','ENTER_YOUR_CHOICE'))) if exploit_choice in (1,2): break else: common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION_INTERACTIVE')) else: if int(common.args.exploit) in (0,1): exploit_choice = int(common.args.exploit) break else: common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION')) common.exitClean() except Exception as e: if not common.interactive_mode: common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION')) exit() common.logger.error(common.config.get('qarkhelper','NOT_A_VALID_OPTION_INTERACTIVE')) if exploit_choice==1: # Exploit all vulnerabilities print "Generating exploit payloads for all vulnerabilities" type_list=['String','StringArray','StringArrayList','Boolean','BooleanArray','Int','Float','Long','LongArray','[]','','IntArray','IntegerArrayList','FloatArray','Double','Char','CharArray','CharSequence','CharSequenceArray','CharSequenceArrayList','Byte','ByteArray', 'Bundle','Short','ShortArray','Serializable','Parcelable','ParcelableArrayList','ParcelableArray','unknownType'] shutil.rmtree(common.getConfig("rootDir") +'/build') if str(createSploit.copy_template(common.getConfig("rootDir") + '/exploitAPKs/qark/',common.getConfig("rootDir") + '/build/qark')) is not 'ERROR': common.exploitLocation = common.getConfig("rootDir") + '/build/qark' if len(prov_exp_list)>0: common.logger.info("Sorry, we're still working on the providers") if len(act_exp_list)>0: common.normalizeActivityNames(act_exp_list,filters.find_package()) for i in act_exp_list: common.logger.debug(str(i)) exploit = createExploit.exploitActivity() print str(i) extras_list=[] entries=common.get_entry_for_component('activity') for n in entries: tmp_extra=findExtras.find_extras(str(i),n) if tmp_extra not in type_list: if tmp_extra not in extras_list: extras_list+=tmp_extra common.dedup(extras_list) if re.match(r'^\..*',str(i)): i=str(common.qark_package_name)+str(i) exploit.setExportedActivity(str(i)) for j in range(0,len(extras_list)): extras_list[j] = str(extras_list[j]).replace('\"','') bad_extras=["\"\"","\" \"","[]"] #if (extras_list[j]==" " or extras_list[j]==""): if extras_list[j] in bad_extras: pass elif extras_list[j] in type_list: pass else: exploit.setExtra(extras_list[j]) try: writeExploit.write(exploit) except Exception as e: common.logger.error("Problems creating exploit (activity): " + str(e)) if len(actalias_exp_list)>0: common.logger.info("Sorry, we're still working on Activity Aliases") if len(serv_exp_list)>0: for i in range(0, len(serv_exp_list)): exploit = createExploit.exploitService() exploit.setIntent(filters.find_package() + serv_exp_list[i]) writeExploit.write(exploit) if len(rec_exp_list)>0: for i in range(0, len(rec_exp_list)): exploit = createExploit.exploitReceiver() action=filters.find_intent_filters(rec_exp_list[i],"receiver") exploit.setIntent(action) print rec_exp_list[i] extras_list=[] entries=common.get_entry_for_component('receiver') for n in entries: tmp_extra=findExtras.find_extras(rec_exp_list[i],n) if tmp_extra not in type_list: if tmp_extra not in extras_list: extras_list+=tmp_extra common.dedup(extras_list) if len(common.sploitparams)==0: for j in range(0,len(extras_list)): extras_list[j] = str(extras_list[j]).replace('\"','') if (extras_list[j]==" " or extras_list[j]==""): pass else: exploit.setExtra(extras_list[j]) else: for j in range(0,len(common.sploitparams)): #exploit.setExtra((common.sploitparams[j])[0]) if type(common.sploitparams[j]) is str: pass #exploit.setExtra(common.sploitparams[j]) else: common.sploitparams[j][0] = str(common.sploitparams[j][0]).replace('\"','') if (common.sploitparams[j][0]==" " or common.sploitparams[j][0]==""): pass else: exploit.setExtra(common.sploitparams[j][0]) try: writeExploit.write(exploit) except Exception as e: common.logger.error("Problems creating exploit (receiver): " + str(e)) sdkManager.build_apk('qark') if common.interactive_mode: install=raw_input("Do you want to install this to your device? (y/n)").lower() else: install_option = common.args.install if install_option: install = "y" else: install_option = "n" if install=='y': apkList = list_all_apk() for apk in apkList: if "com.secbro.qark" in apk: uninstall(str(apk).split("/")[-1].rstrip(".apk")) common.logger.info("Installing...") try: common.logger.info("The apk can be found in the "+common.getConfig("rootDir")+"/build/qark directory") subprocess.call("adb install " + common.getConfig("rootDir") + "/build/qark/app/build/outputs/apk/app-debug.apk",shell=True) except Exception as e: common.logger.error("Problems installing exploit APK: " + str(e)) else: common.logger.info("The apk can be found in the "+common.getConfig("rootDir")+"/build/qark directory") elif exploit_choice==2: if common.reportInitSuccess: print "An html report of the findings is located in : " + common.reportDir else: common.logger.error("Problem with reporting; No html report generated. Please see the readme file for possible solutions.") common.exitClean() if common.reportInitSuccess: print "An html report of the findings is located in : " + common.reportDir else: common.logger.error("Problem with reporting; No html report generated. Please see the readme file for possible solutions.") print "Goodbye!" raise SystemExit if __name__ == "__main__": nonAutomatedParseArgs()
xtiankisutsa/MARA_Framework
tools/qark/qark/qarkMain.py
Python
lgpl-3.0
53,373
# -*- coding: utf-8 -*- { 'name': 'Log\Notify Next Action changes', 'version': '1.0.0', 'author': 'IT-Projects LLC, Ivan Yelizariev', 'license': 'LGPL-3', 'category': 'Customer Relationship Management', 'website': 'https://twitter.com/yelizariev', 'price': 9.00, 'currency': 'EUR', 'depends': ['crm'], 'images': ['images/lead.png'], 'data': ['data.xml'], 'installable': True }
meta-it/misc-addons
crm_next_action/__openerp__.py
Python
lgpl-3.0
425
"""A demo instrument class""" from .place_timer import PlaceTimer
PALab/PLACE
place/plugins/place_timer/__init__.py
Python
lgpl-3.0
66
#-*-coding:utf-8-*- """ @package itool.cmd.report @brief A command for generating any kind of it report @author Sebastian Thiel @copyright [GNU Lesser General Public License](https://www.gnu.org/licenses/lgpl.html) """ __all__ = ['ReportIToolSubCommand'] from .base import IToolSubCommand from bit.cmd import ReportCommandMixin from bit.reports import ReportGenerator class ReportIToolSubCommand(ReportCommandMixin, IToolSubCommand): """ZFS boilerplate for reports""" __slots__ = () description = 'Generate reports about anything in IT' version = '0.1.0' # ------------------------- ## @name Configuration # @{ ReportBaseType = ReportGenerator ## -- End Configuration -- @} # end class ReportIToolSubCommand
Byron/bit
src/python/itool/report.py
Python
lgpl-3.0
758
# coding: utf-8 # pylint: disable=W0201,R0915,R0912 """ Main BDF class. Defines: - BDF see https://docs.plm.automation.siemens.com/tdoc/nxnastran/10/help/#uid:index """ from __future__ import (nested_scopes, generators, division, absolute_import, print_function, unicode_literals) import os import sys import traceback from codecs import open as codec_open from collections import defaultdict from six import string_types, iteritems, itervalues, iterkeys from six.moves.cPickle import load, dump import numpy as np from pyNastran.utils import object_attributes, print_bad_path, _filename from pyNastran.utils.log import get_logger2 from pyNastran.bdf.utils import ( _parse_pynastran_header, to_fields, get_include_filename, parse_executive_control_deck, parse_patran_syntax) #from pyNastran.bdf.field_writer_8 import print_card_8 from pyNastran.bdf.field_writer_16 import print_card_16 from pyNastran.bdf.cards.base_card import _format_comment from pyNastran.bdf.cards.utils import wipe_empty_fields #from pyNastran.bdf.write_path import write_include from pyNastran.bdf.bdf_interface.assign_type import ( integer, integer_or_string, string) #from pyNastran.bdf.errors import CrossReferenceError, DuplicateIDsError, CardParseSyntaxError #from pyNastran.bdf.field_writer_16 import print_field_16 from pyNastran.bdf.case_control_deck import CaseControlDeck from pyNastran.bdf.bdf_interface.bdf_card import BDFCard from pyNastran.bdf.dev_vectorized.bdf_interface2.write_mesh import WriteMesh from pyNastran.bdf.dev_vectorized.bdf_interface2.get_card import GetMethods from pyNastran.bdf.dev_vectorized.bdf_interface2.cross_reference import CrossReference from pyNastran.bdf.dev_vectorized.bdf_interface2.add_card import AddCard from pyNastran.bdf.field_writer_16 import print_field_16 from pyNastran.bdf.dev_vectorized.cards.constraints.spc import SPC, get_spc_constraint from pyNastran.bdf.dev_vectorized.cards.constraints.spcd import SPCD from pyNastran.bdf.dev_vectorized.cards.constraints.spc1 import SPC1, get_spc1_constraint from pyNastran.bdf.dev_vectorized.cards.constraints.spcadd import SPCADD, get_spcadd_constraint from pyNastran.bdf.dev_vectorized.cards.constraints.mpc import MPC, get_mpc_constraint #from pyNastran.bdf.dev_vectorized.cards.constraints.mpcax import MPCAX from pyNastran.bdf.dev_vectorized.cards.constraints.mpcadd import MPCADD from pyNastran.bdf.dev_vectorized.cards.deqatn import DEQATN from pyNastran.bdf.dev_vectorized.cards.dynamic import ( #DELAY, DPHASE, FREQ, FREQ1, FREQ2, FREQ4, TSTEP, TSTEPNL, NLPARM, NLPCI, #TF ) from pyNastran.bdf.dev_vectorized.cards.aero.aero_cards import ( AECOMP, AEFACT, AELINK, AELIST, AEPARM, AESTAT, AESURF, AESURFS, AERO, AEROS, CSSCHD, CAERO1, CAERO2, CAERO3, CAERO4, CAERO5, PAERO1, PAERO2, PAERO3, PAERO4, PAERO5, MONPNT1, FLFACT, FLUTTER, GUST, MKAERO1, MKAERO2, SPLINE1, SPLINE2, SPLINE3, SPLINE4, SPLINE5, TRIM, DIVERG) from pyNastran.bdf.dev_vectorized.cards.optimization import ( DCONADD, DCONSTR, DESVAR, DDVAL, DOPTPRM, DLINK, DRESP1, DRESP2, DRESP3, DVCREL1, DVCREL2, DVMREL1, DVMREL2, DVPREL1, DVPREL2, DVGRID) from pyNastran.bdf.dev_vectorized.cards.bdf_sets import ( ASET, BSET, CSET, QSET, USET, ASET1, BSET1, CSET1, QSET1, USET1, SET1, SET3, #RADSET, SEBSET, SECSET, SEQSET, # SEUSET SEBSET1, SECSET1, SEQSET1, # SEUSET1 SESET, #SEQSEP, ) # old cards from pyNastran.bdf.cards.params import PARAM from pyNastran.bdf.cards.elements.rigid import RBAR, RBAR1, RBE1, RBE2, RBE3, RROD, RSPLINE from pyNastran.bdf.cards.contact import BCRPARA, BCTADD, BCTSET, BSURF, BSURFS, BCTPARA from pyNastran.bdf.cards.elements.elements import PLOTEL #CFAST, CGAP, CRAC2D, CRAC3D, from pyNastran.bdf.cards.methods import EIGB, EIGC, EIGR, EIGP, EIGRL from pyNastran.bdf.cards.dmig import DMIG, DMI, DMIJ, DMIK, DMIJI, DMIG_UACCEL #from pyNastran.bdf.cards.loads.loads import ( #DAREA, #LSEQ, SLOAD, DAREA, RANDPS, RFORCE, RFORCE1, SPCD, LOADCYN #) def read_bdf(bdf_filename=None, validate=True, xref=True, punch=False, encoding=None, log=None, debug=True, mode='msc'): """ Creates the BDF object Parameters ---------- bdf_filename : str (default=None -> popup) the bdf filename debug : bool/None used to set the logger if no logger is passed in True: logs debug/info/error messages False: logs info/error messages None: logs error messages log : logging module object / None if log is set, debug is ignored and uses the settings the logging object has validate : bool runs various checks on the BDF (default=True) xref : bool should the bdf be cross referenced (default=True) punch : bool indicates whether the file is a punch file (default=False) encoding : str the unicode encoding (default=None; system default) Returns ------- model : BDF() an BDF object .. code-block:: python >>> bdf = BDF() >>> bdf.read_bdf(bdf_filename, xref=True) >>> g1 = bdf.Node(1) >>> print(g1.get_position()) [10.0, 12.0, 42.0] >>> bdf.write_card(bdf_filename2) >>> print(bdf.card_stats()) ---BDF Statistics--- SOL 101 bdf.nodes = 20 bdf.elements = 10 etc. .. note :: this method will change in order to return an object that does not have so many methods .. todo:: finish this """ model = BDF(log=log, debug=debug, mode=mode) model.read_bdf(bdf_filename=bdf_filename, validate=validate, xref=xref, punch=punch, read_includes=True, encoding=encoding) #if 0: #keys_to_suppress = [] #method_names = model.object_methods(keys_to_skip=keys_to_suppress) #methods_to_remove = [ #'process_card', 'read_bdf', 'fill_dmigs', 'disable_cards', 'set_dynamic_syntax', #'create_card_object', 'create_card_object_fields', 'create_card_object_list', #'add_AECOMP', 'add_AEFACT', 'add_AELINK', 'add_AELIST', 'add_AEPARM', 'add_AERO', #'add_AEROS', 'add_AESTAT', 'add_AESURF', 'add_ASET', 'add_BCRPARA', 'add_BCTADD', #'add_BCTPARA', 'add_BCTSET', 'add_BSET', 'add_BSURF', 'add_BSURFS', 'add_CAERO', #'add_DIVERG', #'add_CSET', 'add_CSSCHD', 'add_DAREA', 'add_DCONADD', 'add_DCONSTR', 'add_DDVAL', #'add_DELAY', 'add_DEQATN', 'add_DESVAR', 'add_DLINK', 'add_DMI', 'add_DMIG', #'add_DMIJ', 'add_DMIJI', 'add_DMIK', 'add_DPHASE', 'add_DRESP', 'add_DTABLE', #'add_DVMREL', 'add_DVPREL', 'add_EPOINT', 'add_FLFACT', 'add_FLUTTER', 'add_FREQ', #'add_GUST', 'add_LSEQ', 'add_MKAERO', 'add_MONPNT', 'add_NLPARM', 'add_NLPCI', #'add_PAERO', 'add_PARAM', 'add_PBUSHT', 'add_PDAMPT', 'add_PELAST', 'add_PHBDY', #'add_QSET', 'add_SEBSET', 'add_SECSET', 'add_SEQSET', 'add_SESET', 'add_SET', #'add_SEUSET', 'add_SPLINE', 'add_spoint', 'add_tempd', 'add_TF', 'add_TRIM', #'add_TSTEP', 'add_TSTEPNL', 'add_USET', #'add_card', 'add_card_fields', 'add_card_lines', 'add_cmethod', 'add_constraint', #'add_constraint_MPC', 'add_constraint_MPCADD', #'add_constraint_SPC', 'add_constraint_SPCADD', #'add_convection_property', 'add_coord', 'add_creep_material', 'add_damper', #'add_dload', '_add_dload_entry', 'add_element', 'add_hyperelastic_material', #'add_load', 'add_mass', 'add_material_dependence', 'add_method', 'add_node', #'add_plotel', 'add_property', 'add_property_mass', 'add_random_table', #'add_rigid_element', 'add_structural_material', 'add_suport', 'add_suport1', #'add_table', 'add_table_sdamping', 'add_thermal_BC', 'add_thermal_element', #'add_thermal_load', 'add_thermal_material', #'set_as_msc', #'set_as_nx', #'pop_parse_errors', ##'pop_xref_errors', #'set_error_storage', #'is_reject', #] #for method_name in method_names: #if method_name not in methods_to_remove + keys_to_suppress: ##print(method_name) #pass #else: ### TODO: doesn't work... ##delattr(model, method_name) #pass #model.get_bdf_stats() return model class BDF(AddCard, CrossReference, WriteMesh, GetMethods): """ NASTRAN BDF Reader/Writer/Editor class. """ #: required for sphinx bug #: http://stackoverflow.com/questions/11208997/autoclass-and-instance-attributes #__slots__ = ['_is_dynamic_syntax'] def __init__(self, debug=True, log=None, mode='msc'): """ Initializes the BDF object Parameters ---------- debug : bool/None used to set the logger if no logger is passed in True: logs debug/info/error messages False: logs info/error messages None: logs error messages log : logging module object / None if log is set, debug is ignored and uses the settings the logging object has """ AddCard.__init__(self) CrossReference.__init__(self) WriteMesh.__init__(self) GetMethods.__init__(self) assert debug in [True, False, None], 'debug=%r' % debug self.echo = False self.read_includes = True # file management parameters self.active_filenames = [] self.active_filename = None self.include_dir = '' self.dumplines = False # this flag will be flipped to True someday (and then removed), but # doesn't support 100% of cards yet. It enables a new method for card # parsing. # # 80.3 seconds -> 67.2 seconds for full_bay model # (multiple BDF passes among other things) self._fast_add = True self._relpath = True if sys.version_info < (2, 6): self._relpath = False self.log = get_logger2(log, debug) #: list of all read in cards - useful in determining if entire BDF #: was read & really useful in debugging self.card_count = {} #: stores the card_count of cards that have been rejected self.reject_count = {} #: was an ENDDATA card found #self.foundEndData = False #: useful in debugging errors in input self.debug = debug #: flag that allows for OpenMDAO-style optimization syntax to be used self._is_dynamic_syntax = False #: lines that were rejected b/c they were for a card that isnt supported self.reject_lines = [] #: cards that were created, but not processed self.reject_cards = [] # self.__init_attributes() #: the list of possible cards that will be parsed self.cards_to_read = set([ 'GRID', 'SPOINT', 'EPOINT', 'POINT', 'POINTAX', 'PARAM', ## params # coords 'CORD1R', 'CORD1C', 'CORD1S', 'CORD2R', 'CORD2C', 'CORD2S', 'PELAS', 'CELAS1', 'CELAS2', 'CELAS3', 'CELAS4', 'CROD', 'PROD', 'CONROD', 'CTUBE', 'PTUBE', 'PBAR', 'PBARL', 'CBAR', 'CBEAM', 'PSHEAR', 'CSHEAR', 'CQUAD4', 'CTRIA3', 'CQUAD8', 'CTRIA6', 'PSHELL', 'PCOMP', 'PCOMPG', 'PSOLID', 'PLSOLID', 'CTETRA', 'CTETRA4', 'CTETRA10', 'CPYRAM', 'CPYRAM5', 'CPYRAM13', 'CPENTA', 'CPENTA6', 'CPENTA15', 'CHEXA', 'CHEXA8', 'CHEXA20', 'CBUSH', 'CBUSH1D', 'CBUSH2D', #'PBUSH', 'PBUSH1D', 'PBUSH2D', 'CONM1', 'CONM2', 'PLOTEL', 'RBAR', 'RBAR1', 'RBE1', 'RBE2', 'RBE3', 'RROD', 'RSPLINE', 'MAT1', 'MAT8', # loads 'LOAD', 'GRAV', 'FORCE', 'FORCE1', 'FORCE2', 'MOMENT', 'MOMENT1', 'MOMENT2', 'PLOAD', 'PLOAD2', 'PLOAD4', 'PLOADX1', 'TLOAD1', 'TLOAD2', 'DELAY', 'RLOAD1', 'DPHASE', #'RLOAD2', # constraints 'SPC', 'SPCADD', 'SPC1', 'SPCD', 'MPC', 'MPCADD', # aero cards 'AERO', ## aero 'AEROS', ## aeros 'GUST', ## gusts 'FLUTTER', ## flutters 'FLFACT', ## flfacts 'MKAERO1', 'MKAERO2', ## mkaeros 'AECOMP', ## aecomps 'AEFACT', ## aefacts 'AELINK', ## aelinks 'AELIST', ## aelists 'AEPARM', ## aeparams 'AESTAT', ## aestats 'AESURF', ## aesurf #'AESURFS', ## aesurfs 'CAERO1', 'CAERO2', 'CAERO3', 'CAERO4', ## caeros # 'CAERO5', 'PAERO1', 'PAERO2', 'PAERO3', ## paeros 'PAERO4', # 'PAERO5', 'MONPNT1', ## monitor_points 'SPLINE1', 'SPLINE2', 'SPLINE4', 'SPLINE5', ## splines #'SPLINE3', 'SPLINE6', 'SPLINE7', 'TRIM', ## trims 'CSSCHD', ## csschds 'DIVERG', ## divergs # ---- dynamic cards ---- # 'DAREA', ## dareas 'DPHASE', ## dphases 'DELAY', ## delays 'NLPARM', ## nlparms 'NLPCI', ## nlpcis 'TSTEP', ## tsteps 'TSTEPNL', ## tstepnls # direct matrix input cards 'DMIG', 'DMIJ', 'DMIJI', 'DMIK', 'DMI', # optimization cards 'DEQATN', 'DTABLE', 'DCONSTR', 'DESVAR', 'DDVAL', 'DRESP1', 'DRESP2', 'DRESP3', 'DVCREL1', 'DVCREL2', 'DVPREL1', 'DVPREL2', 'DVMREL1', 'DVMREL2', 'DOPTPRM', 'DLINK', 'DCONADD', 'DVGRID', 'SET1', 'SET3', ## sets 'ASET', 'ASET1', ## asets 'BSET', 'BSET1', ## bsets 'CSET', 'CSET1', ## csets 'QSET', 'QSET1', ## qsets 'USET', 'USET1', ## usets ## suport/suport1/se_suport 'SUPORT', 'SUPORT1', 'SESUP', #: methods 'EIGB', 'EIGR', 'EIGRL', #: cMethods 'EIGC', 'EIGP', # other 'INCLUDE', # '=' 'ENDDATA', ]) case_control_cards = set(['FREQ', 'GUST', 'MPC', 'SPC', 'NLPARM', 'NSM', 'TEMP', 'TSTEPNL', 'INCLUDE']) self._unique_bulk_data_cards = self.cards_to_read.difference(case_control_cards) #: / is the delete from restart card self.special_cards = ['DEQATN', '/'] self._make_card_parser() if self.is_msc: self.set_as_msc() elif self.is_nx: self.set_as_nx() else: msg = 'mode=%r is not supported; modes=[msc, nx]' % self._nastran_format raise NotImplementedError(msg) def __getstate__(self): """clears out a few variables in order to pickle the object""" # Copy the object's state from self.__dict__ which contains # all our instance attributes. Always use the dict.copy() # method to avoid modifying the original state. state = self.__dict__.copy() # Remove the unpicklable entries. #del state['spcObject'], state['mpcObject'], del state['_card_parser'], state['_card_parser_b'], state['log'] return state def save(self, obj_filename='model.obj', unxref=True): """ ..warning:: doesn't work right """ #del self.log #del self.spcObject #del self.mpcObject #del self._card_parser, self._card_parser_prepare #try: #del self.log #except AttributeError: #pass #self.case_control_lines = str(self.case_control_deck).split('\n') #del self.case_control_deck if unxref: self.uncross_reference() with open(obj_filename, 'w') as obj_file: dump(self, obj_file) def load(self, obj_filename='model.obj'): """ ..warning:: doesn't work right """ return #del self.log #del self.spcObject #del self.mpcObject #lines = print(self.case_control_deck) #self.case_control_lines = lines.split('\n') #del self.case_control_deck #self.uncross_reference() #import types with open(obj_filename, "r") as obj_file: obj = load(obj_file) keys_to_skip = [ 'case_control_deck', 'log', #'mpcObject', 'spcObject', 'node_ids', 'coord_ids', 'element_ids', 'property_ids', 'material_ids', 'caero_ids', 'is_long_ids', 'nnodes', 'ncoords', 'nelements', 'nproperties', 'nmaterials', 'ncaeros', 'point_ids', 'subcases', '_card_parser', '_card_parser_b', ] for key in object_attributes(self, mode="all", keys_to_skip=keys_to_skip): if key.startswith('__') and key.endswith('__'): continue #print('key =', key) val = getattr(obj, key) #print(key) #if isinstance(val, types.FunctionType): #continue setattr(self, key, val) self.case_control_deck = CaseControlDeck(self.case_control_lines, log=self.log) self.log.debug('done loading!') def replace_cards(self, replace_model): """ Replaces the common cards from the current (self) model from the ones in the new replace_model. The intention is that you're going to replace things like PSHELLs and DESVARs from a pch file in order to update your BDF with the optimized geometry. .. todo:: only does a subset of cards. .. note:: loads/spcs (not supported) are tricky because you can't replace cards one-to-one...not sure what to do """ for nid, node in iteritems(replace_model.nodes): self.nodes[nid] = node for eid, elem in iteritems(replace_model.elements): self.elements[eid] = elem for eid, elem in iteritems(replace_model.rigid_elements): self.rigid_elements[eid] = elem for pid, prop in iteritems(replace_model.properties): self.properties[pid] = prop for mid, mat in iteritems(replace_model.materials): self.materials[mid] = mat for dvid, desvar in iteritems(replace_model.desvars): self.desvars[dvid] = desvar for dvid, dvprel in iteritems(replace_model.dvprels): self.dvprels[dvid] = dvprel for dvid, dvmrel in iteritems(replace_model.dvmrels): self.dvmrels[dvid] = dvmrel for dvid, dvgrid in iteritems(replace_model.dvgrids): self.dvgrids[dvid] = dvgrid def disable_cards(self, cards): """ Method for removing broken cards from the reader Parameters ---------- cards : List[str]; Set[str] a list/set of cards that should not be read .. python :: bdfModel.disable_cards(['DMIG', 'PCOMP']) """ if cards is None: return elif isinstance(cards, string_types): disable_set = set([cards]) else: disable_set = set(cards) self.cards_to_read = self.cards_to_read.difference(disable_set) def set_error_storage(self, nparse_errors=100, stop_on_parsing_error=True, nxref_errors=100, stop_on_xref_error=True): """ Catch parsing errors and store them up to print them out all at once (not all errors are caught). Parameters ---------- nparse_errors : int how many parse errors should be stored (default=0; all=None; no storage=0) stop_on_parsing_error : bool should an error be raised if there are parsing errors (default=True) nxref_errors : int how many cross-reference errors should be stored (default=0; all=None; no storage=0) stop_on_xref_error : bool should an error be raised if there are cross-reference errors (default=True) """ assert isinstance(nparse_errors, int), type(nparse_errors) assert isinstance(nxref_errors, int), type(nxref_errors) self._nparse_errors = nparse_errors self._nxref_errors = nxref_errors self._stop_on_parsing_error = stop_on_parsing_error self._stop_on_xref_error = stop_on_xref_error def validate(self): """runs some checks on the input data beyond just type checking""" return #for eid, elem in sorted(iteritems(model.elements)): #elem.validate() for nid, node in sorted(iteritems(self.nodes)): node.validate() for cid, coord in sorted(iteritems(self.coords)): coord.validate() for eid, elem in sorted(iteritems(self.elements)): elem.validate() for pid, prop in sorted(iteritems(self.properties)): prop.validate() for eid, elem in sorted(iteritems(self.rigid_elements)): elem.validate() for eid, plotel in sorted(iteritems(self.plotels)): plotel.validate() #for eid, mass in sorted(iteritems(self.masses)): #mass.validate() for pid, property_mass in sorted(iteritems(self.properties_mass)): property_mass.validate() #------------------------------------------------ for mid, mat in sorted(iteritems(self.materials)): mat.validate() for mid, mat in sorted(iteritems(self.thermal_materials)): mat.validate() for mid, mat in sorted(iteritems(self.MATS1)): mat.validate() for mid, mat in sorted(iteritems(self.MATS3)): mat.validate() for mid, mat in sorted(iteritems(self.MATS8)): mat.validate() for mid, mat in sorted(iteritems(self.MATT1)): mat.validate() for mid, mat in sorted(iteritems(self.MATT2)): mat.validate() for mid, mat in sorted(iteritems(self.MATT3)): mat.validate() for mid, mat in sorted(iteritems(self.MATT4)): mat.validate() for mid, mat in sorted(iteritems(self.MATT5)): mat.validate() for mid, mat in sorted(iteritems(self.MATT8)): mat.validate() for mid, mat in sorted(iteritems(self.MATT9)): mat.validate() for mid, mat in sorted(iteritems(self.creep_materials)): mat.validate() for mid, mat in sorted(iteritems(self.hyperelastic_materials)): mat.validate() #------------------------------------------------ for key, loads in sorted(iteritems(self.loads)): for loadi in loads: loadi.validate() for key, tic in sorted(iteritems(self.tics)): tic.validate() for key, dloads in sorted(iteritems(self.dloads)): for dload in dloads: dload.validate() for key, dload_entries in sorted(iteritems(self.dload_entries)): for dload_entry in dload_entries: dload_entry.validate() #------------------------------------------------ for key, nlpci in sorted(iteritems(self.nlpcis)): nlpci.validate() for key, nlparm in sorted(iteritems(self.nlparms)): nlparm.validate() for key, tstep in sorted(iteritems(self.tsteps)): tstep.validate() for key, tstepnl in sorted(iteritems(self.tstepnls)): tstepnl.validate() for key, transfer_functions in sorted(iteritems(self.transfer_functions)): for transfer_function in transfer_functions: transfer_function.validate() for key, delay in sorted(iteritems(self.delays)): delay.validate() #------------------------------------------------ if self.aeros is not None: self.aeros.validate() for caero_id, caero in sorted(iteritems(self.caeros)): caero.validate() for key, paero in sorted(iteritems(self.paeros)): paero.validate() for spline_id, spline in sorted(iteritems(self.splines)): spline.validate() for key, aecomp in sorted(iteritems(self.aecomps)): aecomp.validate() for key, aefact in sorted(iteritems(self.aefacts)): aefact.validate() for key, aelinks in sorted(iteritems(self.aelinks)): for aelink in aelinks: aelink.validate() for key, aeparam in sorted(iteritems(self.aeparams)): aeparam.validate() for key, aesurf in sorted(iteritems(self.aesurf)): aesurf.validate() for key, aesurfs in sorted(iteritems(self.aesurfs)): aesurfs.validate() for key, aestat in sorted(iteritems(self.aestats)): aestat.validate() for key, trim in sorted(iteritems(self.trims)): trim.validate() for key, diverg in sorted(iteritems(self.divergs)): diverg.validate() for key, csschd in sorted(iteritems(self.csschds)): csschd.validate() #self.monitor_points = [] #------------------------------------------------ if self.aero is not None: self.aero.validate() for key, flfact in sorted(iteritems(self.flfacts)): flfact.validate() for key, flutter in sorted(iteritems(self.flutters)): flutter.validate() for key, gust in sorted(iteritems(self.gusts)): gust.validate() #self.mkaeros = [] #------------------------------------------------ for key, bcs in sorted(iteritems(self.bcs)): for bc in bcs: bc.validate() for key, phbdy in sorted(iteritems(self.phbdys)): phbdy.validate() for key, convection_property in sorted(iteritems(self.convection_properties)): convection_property.validate() for key, tempd in sorted(iteritems(self.tempds)): tempd.validate() #------------------------------------------------ for key, bcrpara in sorted(iteritems(self.bcrparas)): bcrpara.validate() for key, bctadd in sorted(iteritems(self.bctadds)): bctadd.validate() for key, bctpara in sorted(iteritems(self.bctparas)): bctpara.validate() for key, bctset in sorted(iteritems(self.bctsets)): bctset.validate() for key, bsurf in sorted(iteritems(self.bsurf)): bsurf.validate() for key, bsurfs in sorted(iteritems(self.bsurfs)): bsurfs.validate() #------------------------------------------------ for key, suport1 in sorted(iteritems(self.suport1)): suport1.validate() for suport in self.suport: suport.validate() for se_suport in self.se_suport: se_suport.validate() for key, spcs in sorted(iteritems(self.spcs)): for spc in spcs: spc.validate() for key, spcadd in sorted(iteritems(self.spcadds)): spcadd.validate() for key, mpcs in sorted(iteritems(self.mpcs)): for mpc in mpcs: mpc.validate() for key, mpcadd in sorted(iteritems(self.mpcadds)): mpcadd.validate() #------------------------------------------------ #for key, darea in sorted(iteritems(self.dareas)): #darea.validate() #for key, dphase in sorted(iteritems(self.dphases)): #dphase.validate() for pid, pbusht in sorted(iteritems(self.pbusht)): pbusht.validate() for pid, pdampt in sorted(iteritems(self.pdampt)): pdampt.validate() for pid, pelast in sorted(iteritems(self.pelast)): pelast.validate() for pid, frequency in sorted(iteritems(self.frequencies)): frequency.validate() #------------------------------------------------ for key, dmi in sorted(iteritems(self.dmis)): dmi.validate() for key, dmig in sorted(iteritems(self.dmigs)): dmig.validate() for key, dmij in sorted(iteritems(self.dmijs)): dmij.validate() for key, dmiji in sorted(iteritems(self.dmijis)): dmiji.validate() for key, dmik in sorted(iteritems(self.dmiks)): dmik.validate() #------------------------------------------------ #self.asets = [] #self.bsets = [] #self.csets = [] #self.qsets = [] #self.usets = {} ##: SExSETy #self.se_bsets = [] #self.se_csets = [] #self.se_qsets = [] #self.se_usets = {} #self.se_sets = {} for key, sets in sorted(iteritems(self.sets)): sets.validate() for key, uset in sorted(iteritems(self.usets)): for useti in uset: useti.validate() for aset in self.asets: aset.validate() for bset in self.bsets: bset.validate() for cset in self.csets: cset.validate() for qset in self.qsets: qset.validate() for key, se_set in sorted(iteritems(self.se_sets)): se_set.validate() for key, se_uset in sorted(iteritems(self.se_usets)): se_uset.validate() for se_bset in self.se_bsets: se_bset.validate() for se_cset in self.se_csets: se_cset.validate() for se_qset in self.se_qsets: se_qset.validate() #------------------------------------------------ for key, table in sorted(iteritems(self.tables)): table.validate() for key, random_table in sorted(iteritems(self.random_tables)): random_table.validate() for key, table_sdamping in sorted(iteritems(self.tables_sdamping)): table_sdamping.validate() #------------------------------------------------ for key, method in sorted(iteritems(self.methods)): method.validate() for key, cmethod in sorted(iteritems(self.cMethods)): cmethod.validate() #------------------------------------------------ for key, dconadd in sorted(iteritems(self.dconadds)): dconadd.validate() for key, dconstrs in sorted(iteritems(self.dconstrs)): for dconstr in dconstrs: dconstr.validate() for key, desvar in sorted(iteritems(self.desvars)): desvar.validate() for key, ddval in sorted(iteritems(self.ddvals)): ddval.validate() for key, dlink in sorted(iteritems(self.dlinks)): dlink.validate() for key, dresp in sorted(iteritems(self.dresps)): dresp.validate() if self.dtable is not None: self.dtable.validate() if self.doptprm is not None: self.doptprm.validate() for key, dequation in sorted(iteritems(self.dequations)): dequation.validate() for key, dvprel in sorted(iteritems(self.dvprels)): dvprel.validate() for key, dvmrel in sorted(iteritems(self.dvmrels)): dvmrel.validate() for key, dvcrel in sorted(iteritems(self.dvcrels)): dvcrel.validate() for key, dscreen in sorted(iteritems(self.dscreen)): dscreen.validate() for dvid, dvgrid in iteritems(self.dvgrids): dvgrid.validate() #------------------------------------------------ def read_bdf(self, bdf_filename=None, validate=True, xref=True, punch=False, read_includes=True, encoding=None): """ Read method for the bdf files Parameters ---------- bdf_filename : str / None the input bdf (default=None; popup a dialog) validate : bool runs various checks on the BDF (default=True) xref : bool should the bdf be cross referenced (default=True) punch : bool indicates whether the file is a punch file (default=False) read_includes : bool indicates whether INCLUDE files should be read (default=True) encoding : str the unicode encoding (default=None; system default) .. code-block:: python >>> bdf = BDF() >>> bdf.read_bdf(bdf_filename, xref=True) >>> g1 = bdf.Node(1) >>> print(g1.get_position()) [10.0, 12.0, 42.0] >>> bdf.write_card(bdf_filename2) >>> print(bdf.card_stats()) ---BDF Statistics--- SOL 101 bdf.nodes = 20 bdf.elements = 10 etc. """ self._read_bdf_helper(bdf_filename, encoding, punch, read_includes) self._parse_primary_file_header(bdf_filename) self.log.debug('---starting BDF.read_bdf of %s---' % self.bdf_filename) executive_control_lines, case_control_lines, \ bulk_data_lines = self._get_lines(self.bdf_filename, self.punch) self.case_control_lines = case_control_lines self.executive_control_lines = executive_control_lines sol, method, sol_iline = parse_executive_control_deck(executive_control_lines) self.update_solution(sol, method, sol_iline) self.case_control_deck = CaseControlDeck(self.case_control_lines, self.log) #print(self.object_attributes()) self.case_control_deck.solmap_to_value = self._solmap_to_value self.case_control_deck.rsolmap_to_str = self.rsolmap_to_str if self._is_cards_dict: cards, card_count = self.get_bdf_cards_dict(bulk_data_lines) else: cards, card_count = self.get_bdf_cards(bulk_data_lines) self._parse_cards(cards, card_count) if 0 and self.values_to_skip: for key, values in iteritems(self.values_to_skip): dict_values = getattr(self, key) if not isinstance(dict_values, dict): msg = '%r is an invalid type; only dictionaries are supported' % key raise TypeError(msg) for value in values: del dict_values[value] # TODO: redo get_card_ids_by_card_types & card_count #self.pop_parse_errors() self.fill_dmigs() if validate: self.validate() self.cross_reference(xref=xref) self._xref = xref self.log.debug('---finished BDF.read_bdf of %s---' % self.bdf_filename) #self.pop_xref_errors() def _read_bdf_helper(self, bdf_filename, encoding, punch, read_includes): """creates the file loading if bdf_filename is None""" #self.set_error_storage(nparse_errors=None, stop_on_parsing_error=True, # nxref_errors=None, stop_on_xref_error=True) if encoding is None: encoding = sys.getdefaultencoding() self._encoding = encoding if bdf_filename is None: from pyNastran.utils.gui_io import load_file_dialog wildcard_wx = "Nastran BDF (*.bdf; *.dat; *.nas; *.pch, *.ecd)|" \ "*.bdf;*.dat;*.nas;*.pch|" \ "All files (*.*)|*.*" wildcard_qt = "Nastran BDF (*.bdf *.dat *.nas *.pch *.ecd);;All files (*)" title = 'Please select a BDF/DAT/PCH/ECD to load' bdf_filename = load_file_dialog(title, wildcard_wx, wildcard_qt)[0] assert bdf_filename is not None, bdf_filename if not os.path.exists(bdf_filename): msg = 'cannot find bdf_filename=%r\n%s' % (bdf_filename, print_bad_path(bdf_filename)) raise IOError(msg) if bdf_filename.lower().endswith('.pch'): # .. todo:: should this be removed??? punch = True #: the active filename (string) self.bdf_filename = bdf_filename #: is this a punch file (no executive control deck) self.punch = punch self.read_includes = read_includes self.active_filenames = [] def fill_dmigs(self): """fills the DMIx cards with the column data that's been stored""" return for name, card_comments in iteritems(self._dmig_temp): card0, comment0 = card_comments[0] card_name = card0[0] card_name = card_name.rstrip(' *').upper() if card_name == 'DMIG': # if field2 == 'UACCEL': # special DMIG card card = self.dmigs[name] elif card_name == 'DMI': card = self.dmis[name] elif card_name == 'DMIJ': card = self.dmijs[name] elif card_name == 'DMIJI': card = self.dmijis[name] elif card_name == 'DMIK': card = self.dmiks[name] else: raise NotImplementedError(card_name) for (card_obj, comment) in card_comments: card._add_column(card_obj, comment=comment) card.finalize() self._dmig_temp = defaultdict(list) def pop_parse_errors(self): """raises an error if there are parsing errors""" if self._stop_on_parsing_error: if self._iparse_errors == 1 and self._nparse_errors == 0: raise is_error = False msg = '' if self._duplicate_elements: duplicate_eids = [elem.eid for elem in self._duplicate_elements] uduplicate_eids = np.unique(duplicate_eids) msg += 'self.elements IDs are not unique=%s\n' % uduplicate_eids for eid in uduplicate_eids: msg += 'old_element=\n%s\n' % self.elements[eid].print_repr_card() msg += 'new_elements=\n' for elem, eidi in zip(self._duplicate_elements, duplicate_eids): if eidi == eid: msg += elem.print_repr_card() msg += '\n' is_error = True raise DuplicateIDsError(msg) if self._duplicate_properties: duplicate_pids = [prop.pid for prop in self._duplicate_properties] uduplicate_pids = np.unique(duplicate_pids) msg += 'self.properties IDs are not unique=%s\n' % uduplicate_pids for pid in duplicate_pids: msg += 'old_property=\n%s\n' % self.properties[pid].print_repr_card() msg += 'new_properties=\n' for prop, pidi in zip(self._duplicate_properties, duplicate_pids): if pidi == pid: msg += prop.print_repr_card() msg += '\n' is_error = True if self._duplicate_masses: duplicate_eids = [elem.eid for elem in self._duplicate_masses] uduplicate_eids = np.unique(duplicate_eids) msg += 'self.massses IDs are not unique=%s\n' % uduplicate_eids for eid in uduplicate_eids: msg += 'old_mass=\n%s\n' % self.masses[eid].print_repr_card() msg += 'new_masses=\n' for elem, eidi in zip(self._duplicate_masses, duplicate_eids): if eidi == eid: msg += elem.print_repr_card() msg += '\n' is_error = True if self._duplicate_materials: duplicate_mids = [mat.mid for mat in self._duplicate_materials] uduplicate_mids = np.unique(duplicate_mids) msg += 'self.materials IDs are not unique=%s\n' % uduplicate_mids for mid in uduplicate_mids: msg += 'old_material=\n%s\n' % self.materials[mid].print_repr_card() msg += 'new_materials=\n' for mat, midi in zip(self._duplicate_materials, duplicate_mids): if midi == mid: msg += mat.print_repr_card() msg += '\n' is_error = True if self._duplicate_thermal_materials: duplicate_mids = [mat.mid for mat in self._duplicate_thermal_materials] uduplicate_mids = np.unique(duplicate_mids) msg += 'self.thermal_materials IDs are not unique=%s\n' % uduplicate_mids for mid in uduplicate_mids: msg += 'old_thermal_material=\n%s\n' % ( self.thermal_materials[mid].print_repr_card()) msg += 'new_thermal_materials=\n' for mat, midi in zip(self._duplicate_thermal_materials, duplicate_mids): if midi == mid: msg += mat.print_repr_card() msg += '\n' is_error = True if self._duplicate_coords: duplicate_cids = [coord.cid for coord in self._duplicate_coords] uduplicate_cids = np.unique(duplicate_cids) msg += 'self.coords IDs are not unique=%s\n' % uduplicate_cids for cid in uduplicate_cids: msg += 'old_coord=\n%s\n' % self.coords[cid].print_repr_card() msg += 'new_coords=\n' for coord, cidi in zip(self._duplicate_coords, duplicate_cids): if cidi == cid: msg += coord.print_repr_card() msg += '\n' is_error = True if is_error: msg = 'There are dupliate cards.\n\n' + msg if self._stop_on_xref_error: msg += 'There are parsing errors.\n\n' for (card, an_error) in self._stored_parse_errors: msg += '%scard=%s\n' % (an_error[0], card) msg += 'xref errror: %s\n\n'% an_error[0] is_error = True if is_error: self.log.error('%s' % msg) raise DuplicateIDsError(msg.rstrip()) def pop_xref_errors(self): """raises an error if there are cross-reference errors""" is_error = False if self._stop_on_xref_error: if self._ixref_errors == 1 and self._nxref_errors == 0: raise if self._stored_xref_errors: msg = 'There are cross-reference errors.\n\n' for (card, an_error) in self._stored_xref_errors: msg += '%scard=%s\n' % (an_error[0], card) is_error = True if is_error and self._stop_on_xref_error: raise CrossReferenceError(msg.rstrip()) def get_bdf_cards(self, bulk_data_lines): """Parses the BDF lines into a list of card_lines""" cards = [] #cards = defaultdict(list) card_count = defaultdict(int) full_comment = '' card_lines = [] old_card_name = None backup_comment = '' nlines = len(bulk_data_lines) for i, line in enumerate(bulk_data_lines): #print(' backup=%r' % backup_comment) comment = '' if '$' in line: line, comment = line.split('$', 1) card_name = line.split(',', 1)[0].split('\t', 1)[0][:8].rstrip().upper() if card_name and card_name[0] not in ['+', '*']: if old_card_name: if self.echo: self.log.info('Reading %s:\n' % old_card_name + full_comment + ''.join(card_lines)) # old dictionary version # cards[old_card_name].append([full_comment, card_lines]) # new list version #if full_comment: #print('full_comment = ', full_comment) cards.append([old_card_name, _prep_comment(full_comment), card_lines]) card_count[old_card_name] += 1 card_lines = [] full_comment = '' if old_card_name == 'ECHOON': self.echo = True elif old_card_name == 'ECHOOFF': self.echo = False old_card_name = card_name.rstrip(' *') if old_card_name == 'ENDDATA': self.card_count['ENDDATA'] = 1 if nlines - i > 1: nleftover = nlines - i - 1 msg = 'exiting due to ENDDATA found with %i lines left' % nleftover self.log.debug(msg) return cards, card_count #print("card_name = %s" % card_name) comment = _clean_comment(comment) if line.rstrip(): card_lines.append(line) if backup_comment: if comment: full_comment += backup_comment + comment + '\n' else: full_comment += backup_comment backup_comment = '' elif comment: full_comment += comment + '\n' backup_comment = '' elif comment: backup_comment += comment + '\n' #print('add backup=%r' % backup_comment) #elif comment: #backup_comment += '$' + comment + '\n' if card_lines: if self.echo: self.log.info('Reading %s:\n' % old_card_name + full_comment + ''.join(card_lines)) #print('end_add %s' % card_lines) # old dictionary version #cards[old_card_name].append([backup_comment + full_comment, card_lines]) # new list version #if backup_comment + full_comment: #print('backup_comment + full_comment = ', backup_comment + full_comment) cards.append([old_card_name, _prep_comment(backup_comment + full_comment), card_lines]) card_count[old_card_name] += 1 return cards, card_count def get_bdf_cards_dict(self, bulk_data_lines): """Parses the BDF lines into a list of card_lines""" cards = defaultdict(list) card_count = defaultdict(int) full_comment = '' card_lines = [] old_card_name = None backup_comment = '' nlines = len(bulk_data_lines) for i, line in enumerate(bulk_data_lines): #print(' backup=%r' % backup_comment) comment = '' if '$' in line: line, comment = line.split('$', 1) card_name = line.split(',', 1)[0].split('\t', 1)[0][:8].rstrip().upper() if card_name and card_name[0] not in ['+', '*']: if old_card_name: if self.echo: self.log.info('Reading %s:\n' % old_card_name + full_comment + ''.join(card_lines)) # old dictionary version cards[old_card_name].append([full_comment, card_lines]) # new list version #cards.append([old_card_name, full_comment, card_lines]) card_count[old_card_name] += 1 card_lines = [] full_comment = '' if old_card_name == 'ECHOON': self.echo = True elif old_card_name == 'ECHOOFF': self.echo = False old_card_name = card_name.rstrip(' *') if old_card_name == 'ENDDATA': self.card_count['ENDDATA'] = 1 if nlines - i > 1: nleftover = nlines - i - 1 msg = 'exiting due to ENDDATA found with %i lines left' % nleftover self.log.debug(msg) return cards, card_count #print("card_name = %s" % card_name) comment = _clean_comment(comment) if line.rstrip(): card_lines.append(line) if backup_comment: if comment: full_comment += backup_comment + comment + '\n' else: full_comment += backup_comment backup_comment = '' elif comment: full_comment += comment + '\n' backup_comment = '' elif comment: backup_comment += comment + '\n' #print('add backup=%r' % backup_comment) #elif comment: #backup_comment += comment + '\n' if card_lines: if self.echo: self.log.info('Reading %s:\n' % old_card_name + full_comment + ''.join(card_lines)) #print('end_add %s' % card_lines) # old dictionary version cards[old_card_name].append([backup_comment + full_comment, card_lines]) # new list version #cards.append([old_card_name, backup_comment + full_comment, card_lines]) card_count[old_card_name] += 1 return cards, card_count def update_solution(self, sol, method, sol_iline): """ Updates the overall solution type (e.g. 101,200,600) Parameters ---------- sol : int the solution type (101, 103, etc) method : str the solution method (only for SOL=600) sol_iline : int the line to put the SOL/method on """ self.sol_iline = sol_iline # the integer of the solution type (e.g. SOL 101) if sol is None: self.sol = None self.sol_method = None return try: self.sol = int(sol) except ValueError: try: self.sol = self._solmap_to_value[sol] except KeyError: self.sol = sol if self.sol == 600: #: solution 600 method modifier self.sol_method = method.strip() self.log.debug("sol=%s method=%s" % (self.sol, self.sol_method)) else: # very common self.sol_method = None def set_dynamic_syntax(self, dict_of_vars): """ Uses the OpenMDAO syntax of %varName in an embedded BDF to update the values for an optimization study. Parameters ---------- dict_of_vars : dict[str] = int/float/str dictionary of 7 character variable names to map. .. code-block:: python GRID, 1, %xVar, %yVar, %zVar >>> dict_of_vars = {'xVar': 1.0, 'yVar', 2.0, 'zVar':3.0} >>> bdf = BDF() >>> bdf.set_dynamic_syntax(dict_of_vars) >>> bdf,read_bdf(bdf_filename, xref=True) .. note:: Case sensitivity is supported. .. note:: Variables should be 7 characters or less to fit in an 8-character field. .. warning:: Type matters! """ self.dict_of_vars = {} assert len(dict_of_vars) > 0, 'nvars = %s' % len(dict_of_vars) for (key, value) in sorted(iteritems(dict_of_vars)): assert len(key) <= 7, ('max length for key is 7; ' 'len(%s)=%s' % (key, len(key))) assert len(key) >= 1, ('min length for key is 1; ' 'len(%s)=%s' % (key, len(key))) if not isinstance(key, string_types): msg = 'key=%r must be a string. type=%s' % (key, type(key)) raise TypeError(msg) self.dict_of_vars[key] = value self._is_dynamic_syntax = True def is_reject(self, card_name): """ Can the card be read. If the card is rejected, it's added to self.reject_count Parameters ---------- card_name : str the card_name -> 'GRID' """ if card_name.startswith('='): return False elif card_name in self.cards_to_read: return False if card_name: if card_name not in self.reject_count: self.reject_count[card_name] = 0 self.reject_count[card_name] += 1 return True def process_card(self, card_lines): """ Converts card_lines into a card. Considers dynamic syntax and removes empty fields Parameters ---------- card_lines : List[str] list of strings that represent the card's lines Returns ------- fields : list[str] the parsed card's fields card_name : str the card's name .. code-block:: python >>> card_lines = ['GRID,1,,1.0,2.0,3.0,,'] >>> model = BDF() >>> fields, card_name = model.process_card(card_lines) >>> fields ['GRID', '1', '', '1.0', '2.0', '3.0'] >>> card_name 'GRID' """ card_name = self._get_card_name(card_lines) fields = to_fields(card_lines, card_name) if self._is_dynamic_syntax: fields = [self._parse_dynamic_syntax(field) if '%' in field[0:1] else field for field in fields] card = wipe_empty_fields(fields) card[0] = card_name return card def create_card_object(self, card_lines, card_name, is_list=True, has_none=True): """ Creates a BDFCard object, which is really just a list that allows indexing past the last field Parameters ---------- card_lines: list[str] the list of the card fields input is list of card_lines -> ['GRID, 1, 2, 3.0, 4.0, 5.0'] card_name : str the card_name -> 'GRID' is_list : bool; default=True True : this is a list of fields False : this is a list of lines has_none : bool; default=True can there be trailing Nones in the card data (e.g. ['GRID, 1, 2, 3.0, 4.0, 5.0, ']) Returns ------- card_object : BDFCard() the card object representation of card card : list[str] the card with empty fields removed """ card_name = card_name.upper() self._increase_card_count(card_name) if card_name in ['DEQATN', 'PBRSECT', 'PBMSECT']: card_obj = card_lines card = card_lines else: if is_list: fields = card_lines else: fields = to_fields(card_lines, card_name) # apply OPENMDAO syntax if self._is_dynamic_syntax: fields = [print_field_16(self._parse_dynamic_syntax(field)) if '%' in field.strip()[0:1] else print_field_16(field) for field in fields] has_none = False if has_none: card = wipe_empty_fields([print_field_16(field) for field in fields]) else: #card = remove_trailing_fields(fields) card = wipe_empty_fields(fields) card_obj = BDFCard(card, has_none=False) return card_obj, card def create_card_object_list(self, card_lines, card_name, has_none=True): """ Creates a BDFCard object, which is really just a list that allows indexing past the last field Parameters ---------- card_lines: list[str] the list of the card lines input is list of lines -> ['GRID, 1, 2, 3.0, 4.0, 5.0'] card_name : str the card_name -> 'GRID' has_none : bool; default=True ??? Returns ------- card_obj : BDFCard the BDFCard object card : list[str] the card with empty fields removed """ card_name = card_name.upper() self._increase_card_count(card_name) if card_name in ['DEQATN', 'PBRSECT', 'PBMSECT']: card_obj = card_lines card = card_lines else: fields = card_lines # apply OPENMDAO syntax if self._is_dynamic_syntax: fields = [print_field_16(self._parse_dynamic_syntax(field)) if '%' in field.strip()[0:1] else print_field_16(field) for field in fields] has_none = False if has_none: card = wipe_empty_fields([print_field_16(field) for field in fields]) else: #card = remove_trailing_fields(fields) card = wipe_empty_fields(fields) card_obj = BDFCard(card, has_none=False) return card_obj, card def create_card_object_fields(self, card_lines, card_name, has_none=True): """ Creates a BDFCard object, which is really just a list that allows indexing past the last field Parameters ---------- card_lines: list[str] the list of the card fields input is list of fields -> ['GRID', '1', '2', '3.0', '4.0', '5.0'] card_name : str the card_name -> 'GRID' has_none : bool; default=True can there be trailing Nones in the card data (e.g. ['GRID', '1', '2', '3.0', '4.0', '5.0']) Returns ------- card_obj : BDFCard the BDFCard object card : list[str] the card with empty fields removed """ card_name = card_name.upper() self._increase_card_count(card_name) if card_name in ['DEQATN', 'PBRSECT', 'PBMSECT']: card_obj = card_lines card = card_lines else: fields = to_fields(card_lines, card_name) # apply OPENMDAO syntax if self._is_dynamic_syntax: fields = [print_field_16(self._parse_dynamic_syntax(field)) if '%' in field.strip()[0:1] else print_field_16(field) for field in fields] has_none = False if has_none: card = wipe_empty_fields([print_field_16(field) for field in fields]) else: #card = remove_trailing_fields(fields) card = wipe_empty_fields(fields) card_obj = BDFCard(card, has_none=False) return card_obj, card def _make_card_parser(self): """creates the card parser variables that are used by add_card""" class Crash(object): """class for crashing on specific cards""" def __init__(self): """dummy init""" pass @classmethod def add_card(cls, card, comment=''): """the method that forces the crash""" raise NotImplementedError(card) self._card_parser = { #'=' : (Crash, None), '/' : (Crash, None), # nodes #'GRID' : (GRID, self.add_node), #'SPOINT' : (SPOINTs, self.add_spoint), #'EPOINT' : (EPOINTs, self.add_epoint), #'POINT' : (POINT, self.add_point), 'PARAM' : (PARAM, self.add_param), #'CORD2R' : (CORD2R, self._add_coord_object), #'CORD2C' : (CORD2C, self._add_coord_object), #'CORD2S' : (CORD2S, self._add_coord_object), #'GMCORD' : (GMCORD, self._add_coord_object), 'PLOTEL' : (PLOTEL, self.add_plotel), #'CONROD' : (CONROD, self.add_element), #'CROD' : (CROD, self.add_element), #'PROD' : (PROD, self.add_property), #'CTUBE' : (CTUBE, self.add_element), #'PTUBE' : (PTUBE, self.add_property), #'CBAR' : (CBAR, self.add_element), #'PBAR' : (PBAR, self.add_property), #'PBARL' : (PBARL, self.add_property), #'PBRSECT' : (PBRSECT, self.add_property), #'CBEAM' : (CBEAM, self.add_element), #'PBEAM' : (PBEAM, self.add_property), #'PBEAML' : (PBEAML, self.add_property), #'PBCOMP' : (PBCOMP, self.add_property), #'PBMSECT' : (PBMSECT, self.add_property), #'CBEAM3' : (CBEAM3, self.add_element), #'PBEAM3' : (PBEAM3, self.add_property), #'CBEND' : (CBEND, self.add_element), #'PBEND' : (PBEND, self.add_property), #'CTRIA3' : (CTRIA3, self.add_element), #'CQUAD4' : (CQUAD4, self.add_element), #'CQUAD' : (CQUAD, self.add_element), #'CQUAD8' : (CQUAD8, self.add_element), #'CQUADX' : (CQUADX, self.add_element), #'CQUADR' : (CQUADR, self.add_element), #'CTRIA6' : (CTRIA6, self.add_element), #'CTRIAR' : (CTRIAR, self.add_element), #'CTRIAX' : (CTRIAX, self.add_element), #'CTRIAX6' : (CTRIAX6, self.add_element), #'PCOMP' : (PCOMP, self.add_property), #'PCOMPG' : (PCOMPG, self.add_property), #'PSHELL' : (PSHELL, self.add_property), #'PLPLANE' : (PLPLANE, self.add_property), #'CPLSTN3' : (CPLSTN3, self.add_element), #'CPLSTN4' : (CPLSTN4, self.add_element), #'CPLSTN6' : (CPLSTN6, self.add_element), #'CPLSTN8' : (CPLSTN8, self.add_element), #'PPLANE' : (PPLANE, self.add_property), #'CSHEAR' : (CSHEAR, self.add_element), #'PSHEAR' : (PSHEAR, self.add_property), #'CTETRA' : (CTETRA, self.add_element), #'CPYRAM' : (CPYRAM, self.add_element), #'CPENTA' : (CPENTA, self.add_element), #'CHEXA' : (CHEXA, self.add_element), #'CIHEX1' : (CIHEX1, self.add_element), #'PIHEX' : (PIHEX, self.add_property), #'PSOLID' : (PSOLID, self.add_property), #'PLSOLID' : (PLSOLID, self.add_property), #'PCOMPS' : (PCOMPS, self.add_property), #'CELAS1' : (CELAS1, self.add_element), #'CELAS2' : (CELAS2, self.add_element), #'CELAS3' : (CELAS3, self.add_element), #'CELAS4' : (CELAS4, self.add_element), #'CVISC' : (CVISC, self.add_element), #'PELAST' : (PELAST, self.add_PELAST), #'CDAMP1' : (CDAMP1, self.add_damper), #'CDAMP2' : (CDAMP2, self.add_damper), #'CDAMP3' : (CDAMP3, self.add_damper), # CDAMP4 added later because the documentation is wrong #'CDAMP5' : (CDAMP5, self.add_damper), #'PDAMP5' : (PDAMP5, self.add_property), #'CFAST' : (CFAST, self.add_damper), #'PFAST' : (PFAST, self.add_property), #'CGAP' : (CGAP, self.add_element), #'PGAP' : (PGAP, self.add_property), #'CBUSH' : (CBUSH, self.add_damper), #'CBUSH1D' : (CBUSH1D, self.add_damper), #'CBUSH2D' : (CBUSH2D, self.add_damper), #'PBUSH' : (PBUSH, self.add_property), #'PBUSH1D' : (PBUSH1D, self.add_property), #'CRAC2D' : (CRAC2D, self.add_element), #'PRAC2D' : (PRAC2D, self.add_property), #'CRAC3D' : (CRAC3D, self.add_element), #'PRAC3D' : (PRAC3D, self.add_property), #'PDAMPT' : (PDAMPT, self.add_PDAMPT), #'PBUSHT' : (PBUSHT, self.add_PBUSHT), #'PCONEAX' : (PCONEAX, self.add_property), 'RBAR' : (RBAR, self.add_rigid_element), 'RBAR1' : (RBAR1, self.add_rigid_element), 'RBE1' : (RBE1, self.add_rigid_element), 'RBE2' : (RBE2, self.add_rigid_element), 'RBE3' : (RBE3, self.add_rigid_element), 'RROD' : (RROD, self.add_rigid_element), 'RSPLINE' : (RSPLINE, self.add_rigid_element), ## there is no MAT6 or MAT7 #'MAT1' : (MAT1, self.add_structural_material), #'MAT2' : (MAT2, self.add_structural_material), #'MAT3' : (MAT3, self.add_structural_material), #'MAT8' : (MAT8, self.add_structural_material), #'MAT9' : (MAT9, self.add_structural_material), #'MAT10' : (MAT10, self.add_structural_material), #'MAT11' : (MAT11, self.add_structural_material), #'EQUIV' : (EQUIV, self.add_structural_material), #'MATHE' : (MATHE, self.add_hyperelastic_material), #'MATHP' : (MATHP, self.add_hyperelastic_material), #'MAT4' : (MAT4, self.add_thermal_material), #'MAT5' : (MAT5, self.add_thermal_material), #'MATS1' : (MATS1, self.add_material_dependence), ##'MATS3' : (MATS3, self.add_material_dependence), ##'MATS8' : (MATS8, self.add_material_dependence), #'MATT1' : (MATT1, self.add_material_dependence), #'MATT2' : (MATT2, self.add_material_dependence), ##'MATT3' : (MATT3, self.add_material_dependence), #'MATT4' : (MATT4, self.add_material_dependence), #'MATT5' : (MATT5, self.add_material_dependence), ##'MATT8' : (MATT8, self.add_material_dependence), ##'MATT9' : (MATT9, self.add_material_dependence), ## hasnt been verified, links up to MAT1, MAT2, MAT9 w/ same MID #'CREEP' : (CREEP, self.add_creep_material), #'CONM1' : (CONM1, self.add_mass), #'CONM2' : (CONM2, self.add_mass), #'CMASS1' : (CMASS1, self.add_mass), #'CMASS2' : (CMASS2, self.add_mass), #'CMASS3' : (CMASS3, self.add_mass), ## CMASS4 - added later because documentation is wrong #'MPC' : (MPC, self.add_constraint_MPC), #'MPCADD' : (MPCADD, self.add_constraint_MPC), #'SPC' : (SPC, self.add_constraint_SPC), #'SPC1' : (SPC1, self.add_constraint_SPC1), #'SPCAX' : (SPCAX, self.add_constraint_SPC), #'SPCADD' : (SPCADD, self.add_constraint_SPC), #'GMSPC' : (GMSPC, self.add_constraint_SPC), #'SESUP' : (SESUP, self.add_sesuport), # pseudo-constraint #'SUPORT' : (SUPORT, self.add_suport), # pseudo-constraint #'SUPORT1' : (SUPORT1, self.add_suport1), # pseudo-constraint #'FORCE' : (FORCE, self.add_load), #'FORCE1' : (FORCE1, self.add_load), #'FORCE2' : (FORCE2, self.add_load), #'MOMENT' : (MOMENT, self.add_load), #'MOMENT1' : (MOMENT1, self.add_load), #'MOMENT2' : (MOMENT2, self.add_load), #'LSEQ' : (LSEQ, self.add_LSEQ), #'LOAD' : (LOAD, self.add_load), #'LOADCYN' : (LOADCYN, self.add_load), #'GRAV' : (GRAV, self.add_load), #'ACCEL' : (ACCEL, self.add_load), #'ACCEL1' : (ACCEL1, self.add_load), #'PLOAD' : (PLOAD, self.add_load), #'PLOAD1' : (PLOAD1, self.add_load), #'PLOAD2' : (PLOAD2, self.add_load), #'PLOAD4' : (PLOAD4, self.add_load), #'PLOADX1' : (PLOADX1, self.add_load), #'RFORCE' : (RFORCE, self.add_load), #'RFORCE1' : (RFORCE1, self.add_load), #'SLOAD' : (SLOAD, self.add_load), #'RANDPS' : (RANDPS, self.add_load), #'GMLOAD' : (GMLOAD, self.add_load), #'SPCD' : (SPCD, self.add_load), # enforced displacement #'QVOL' : (QVOL, self.add_load), # thermal #'DLOAD' : (DLOAD, self.add_dload), #'ACSRCE' : (ACSRCE, self._add_dload_entry), #'TLOAD1' : (TLOAD1, self._add_dload_entry), #'TLOAD2' : (TLOAD2, self._add_dload_entry), #'RLOAD1' : (RLOAD1, self._add_dload_entry), #'RLOAD2' : (RLOAD2, self._add_dload_entry), #'FREQ' : (FREQ, self.add_FREQ), #'FREQ1' : (FREQ1, self.add_FREQ), #'FREQ2' : (FREQ2, self.add_FREQ), #'FREQ4' : (FREQ4, self.add_FREQ), 'DOPTPRM' : (DOPTPRM, self._add_doptprm), 'DESVAR' : (DESVAR, self.add_desvar), # BCTSET #'TEMP' : (TEMP, self.add_thermal_load), #'QBDY1' : (QBDY1, self.add_thermal_load), #'QBDY2' : (QBDY2, self.add_thermal_load), #'QBDY3' : (QBDY3, self.add_thermal_load), #'QHBDY' : (QHBDY, self.add_thermal_load), #'PHBDY' : (PHBDY, self.add_PHBDY), #'CHBDYE' : (CHBDYE, self.add_thermal_element), #'CHBDYG' : (CHBDYG, self.add_thermal_element), #'CHBDYP' : (CHBDYP, self.add_thermal_element), #'PCONV' : (PCONV, self.add_convection_property), #'PCONVM' : (PCONVM, self.add_convection_property), # aero 'AECOMP' : (AECOMP, self.add_aecomp), 'AEFACT' : (AEFACT, self.add_aefact), 'AELINK' : (AELINK, self.add_aelink), 'AELIST' : (AELIST, self.add_aelist), 'AEPARM' : (AEPARM, self.add_aeparm), 'AESTAT' : (AESTAT, self.add_aestat), 'AESURF' : (AESURF, self.add_aesurf), 'AESURFS' : (AESURFS, self.add_aesurfs), 'CAERO1' : (CAERO1, self.add_caero), 'CAERO2' : (CAERO2, self.add_caero), 'CAERO3' : (CAERO3, self.add_caero), 'CAERO4' : (CAERO4, self.add_caero), 'CAERO5' : (CAERO5, self.add_caero), 'PAERO1' : (PAERO1, self.add_paero), 'PAERO2' : (PAERO2, self.add_paero), 'PAERO3' : (PAERO3, self.add_paero), 'PAERO4' : (PAERO4, self.add_paero), 'PAERO5' : (PAERO5, self.add_paero), 'SPLINE1' : (SPLINE1, self.add_spline), 'SPLINE2' : (SPLINE2, self.add_spline), 'SPLINE3' : (SPLINE3, self.add_spline), 'SPLINE4' : (SPLINE4, self.add_spline), 'SPLINE5' : (SPLINE5, self.add_spline), # SOL 144 'AEROS' : (AEROS, self.add_aeros), 'TRIM' : (TRIM, self.add_trim), 'DIVERG' : (DIVERG, self.add_diverg), # SOL 145 'AERO' : (AERO, self.add_aero), 'FLUTTER' : (FLUTTER, self.add_flutter), 'FLFACT' : (FLFACT, self.add_flfact), 'MKAERO1' : (MKAERO1, self.add_mkaero), 'MKAERO2' : (MKAERO2, self.add_mkaero), 'GUST' : (GUST, self.add_gust), 'CSSCHD' : (CSSCHD, self.add_csschd), 'MONPNT1' : (MONPNT1, self.add_monpnt), 'NLPARM' : (NLPARM, self.add_nlparm), 'NLPCI' : (NLPCI, self.add_nlpci), 'TSTEP' : (TSTEP, self.add_tstep), 'TSTEPNL' : (TSTEPNL, self.add_tstepnl), #'TF' : (TF, self.add_TF), #'DELAY' : (DELAY, self.add_DELAY), 'DCONADD' : (DCONADD, self.add_dconstr), 'DCONSTR' : (DCONSTR, self.add_dconstr), 'DDVAL' : (DDVAL, self.add_ddval), 'DLINK' : (DLINK, self.add_dlink), #'DTABLE' : (DTABLE, self.add_dtable), 'DRESP1' : (DRESP1, self.add_dresp), 'DRESP2' : (DRESP2, self.add_dresp), # deqatn 'DRESP3' : (DRESP3, self.add_dresp), 'DVCREL1' : (DVCREL1, self.add_dvcrel), # dvcrels 'DVCREL2' : (DVCREL2, self.add_dvcrel), 'DVPREL1' : (DVPREL1, self.add_dvprel), # dvprels 'DVPREL2' : (DVPREL2, self.add_dvprel), 'DVMREL1' : (DVMREL1, self.add_dvmrel), # ddvmrels 'DVMREL2' : (DVMREL2, self.add_dvmrel), 'DVGRID' : (DVGRID, self.add_dvgrid), # dvgrids #'TABLED1' : (TABLED1, self.add_table), #'TABLED2' : (TABLED2, self.add_table), #'TABLED3' : (TABLED3, self.add_table), #'TABLED4' : (TABLED4, self.add_table), #'TABLEM1' : (TABLEM1, self.add_table), #'TABLEM2' : (TABLEM2, self.add_table), #'TABLEM3' : (TABLEM3, self.add_table), #'TABLEM4' : (TABLEM4, self.add_table), #'TABLES1' : (TABLES1, self.add_table), #'TABLEST' : (TABLEST, self.add_table), #'TABDMP1' : (TABDMP1, self.add_table_sdamping), #'TABRND1' : (TABRND1, self.add_random_table), #'TABRNDG' : (TABRNDG, self.add_random_table), 'EIGB' : (EIGB, self.add_method), 'EIGR' : (EIGR, self.add_method), 'EIGRL' : (EIGRL, self.add_method), 'EIGC' : (EIGC, self.add_cmethod), 'EIGP' : (EIGP, self.add_cmethod), 'BCRPARA' : (BCRPARA, self.add_bcrpara), 'BCTADD' : (BCTADD, self.add_bctadd), 'BCTPARA' : (BCTPARA, self.add_bctpara), 'BSURF' : (BSURF, self.add_bsurf), 'BSURFS' : (BSURFS, self.add_bsurfs), 'ASET' : (ASET, self.add_aset), 'ASET1' : (ASET1, self.add_aset), 'BSET' : (BSET, self.add_bset), 'BSET1' : (BSET1, self.add_bset), 'CSET' : (CSET, self.add_cset), 'CSET1' : (CSET1, self.add_cset), 'QSET' : (QSET, self.add_qset), 'QSET1' : (QSET1, self.add_qset), 'USET' : (USET, self.add_uset), 'USET1' : (USET1, self.add_uset), 'SET1' : (SET1, self.add_set), 'SET3' : (SET3, self.add_set), 'SESET' : (SESET, self.add_seset), 'SEBSET' : (SEBSET, self.add_sebset), 'SEBSET1' : (SEBSET1, self.add_sebset), 'SECSET' : (SECSET, self.add_secset), 'SECSET1' : (SECSET1, self.add_secset), 'SEQSET' : (SEQSET, self.add_seqset), 'SEQSET1' : (SEQSET1, self.add_seqset), #'SESUP' : (SESUP, self.add_SESUP), # pseudo-constraint #'SEUSET' : (SEUSET, self.add_SEUSET), #'SEUSET1' : (SEUSET1, self.add_SEUSET), # BCTSET } self._card_parser_prepare = { #'CORD2R' : (CORD2R, self._add_coord_object), # not vectorized #'CORD2C' : (CORD2C, self._add_coord_object), #'CORD2S' : (CORD2S, self._add_coord_object), 'CORD2R' : self._prepare_cord2, # vectorized 'CORD2C' : self._prepare_cord2, 'CORD2S' : self._prepare_cord2, #'CORD1R' : self._prepare_cord1r, #'CORD1C' : self._prepare_cord1c, #'CORD1S' : self._prepare_cord1s, ##'CORD3G' : self._prepare_CORD3G, #'DAREA' : self._prepare_darea, #'DPHASE' : self._prepare_dphase, #'PMASS' : self._prepare_pmass, #'CMASS4' : self._prepare_cmass4, #'CDAMP4' : self._prepare_cdamp4, 'DMIG' : self._prepare_dmig, 'DMI' : self._prepare_dmi, 'DMIJ' : self._prepare_dmij, 'DMIK' : self._prepare_dmik, 'DMIJI' : self._prepare_dmiji, 'DEQATN' : self._prepare_dequatn, #'PVISC' : self._prepare_pvisc, #'PELAS' : self._prepare_pelas, #'PDAMP' : self._prepare_pdamp, #'TEMPD' : self._prepare_tempd, #'CONVM' : self._prepare_convm, #'CONV' : self._prepare_conv, #'RADM' : self._prepare_radm, #'RADBC' : self._prepare_radbc, ## GRDSET-will be last card to update from _card_parser_prepare #'GRDSET' : self._prepare_grdset, #'BCTSET' : self._prepare_bctset, } def reject_card_obj2(self, card_name, card_obj): """rejects a card object""" self.reject_cards.append(card_obj) def reject_card_lines(self, card_name, card_lines, comment=''): """rejects a card""" if card_name.isdigit(): # TODO: this should technically work (I think), but it's a problem # for the code # # prevents: # spc1,100,456,10013832,10013833,10013830,10013831,10013836,10013837, # 10013834,10013835,10013838,10013839,10014508,10008937,10008936,10008935, msg = 'card_name=%r was misparsed...\ncard_lines=%s' % ( card_name, card_lines) raise RuntimeError(msg) if card_name not in self.card_count: if ' ' in card_name: msg = ( 'No spaces allowed in card name %r. ' 'Should this be a comment?\n%s%s' % ( card_name, comment, card_lines)) raise RuntimeError(msg) if card_name in ['SUBCASE ', 'CEND']: raise RuntimeError('No executive/case control deck was defined.') self.log.info(' rejecting card_name = %s' % card_name) self._increase_card_count(card_name) self.rejects.append([comment] + card_lines) def _prepare_bctset(self, card, card_obj, comment=''): """adds a GRDSET""" card = BCTSET.add_card(card_obj, comment=comment, sol=self.sol) self.add_bctset(card) def _prepare_grdset(self, card, card_obj, comment=''): """adds a GRDSET""" self.grdset = GRDSET.add_card(card_obj, comment=comment) #def _prepare_cdamp4(self, card, card_obj, comment=''): #"""adds a CDAMP4""" #self.add_damper(CDAMP4.add_card(card_obj, comment=comment)) #if card_obj.field(5): #self.add_damper(CDAMP4.add_card(card_obj, 1, comment='')) #return card_obj def _prepare_convm(self, card, card_obj, comment=''): """adds a CONVM""" boundary_condition = CONVM.add_card(card_obj, comment=comment) self.add_thermal_bc(boundary_condition, boundary_condition.eid) def _prepare_conv(self, card, card_obj, comment=''): """adds a CONV""" boundary_condition = CONV.add_card(card_obj, comment=comment) self.add_thermal_bc(boundary_condition, boundary_condition.eid) def _prepare_radm(self, card, card_obj, comment=''): """adds a RADM""" boundary_condition = RADM.add_card(card, comment=comment) self.add_thermal_bc(boundary_condition, boundary_condition.radmid) def _prepare_radbc(self, card, card_obj, comment=''): """adds a RADBC""" boundary_condition = RADBC(card_obj, comment=comment) self.add_thermal_bc(boundary_condition, boundary_condition.nodamb) def _prepare_tempd(self, card, card_obj, comment=''): """adds a TEMPD""" self.add_tempd(TEMPD.add_card(card_obj, 0, comment=comment)) if card_obj.field(3): self.add_tempd(TEMPD.add_card(card_obj, 1, comment='')) if card_obj.field(5): self.add_tempd(TEMPD.add_card(card_obj, 2, comment='')) if card_obj.field(7): self.add_tempd(TEMPD.add_card(card_obj, 3, comment='')) def _add_doptprm(self, doptprm, comment=''): """adds a DOPTPRM""" self.doptprm = doptprm def _prepare_dequatn(self, card, card_obj, comment=''): """adds a DEQATN""" if hasattr(self, 'test_deqatn') or 1: self.add_deqatn(DEQATN.add_card(card_obj, comment=comment)) else: if comment: self.rejects.append([comment]) self.rejects.append(card) def _prepare_dmig(self, card, card_obj, comment=''): """adds a DMIG""" name = string(card_obj, 1, 'name') field2 = integer_or_string(card_obj, 2, 'flag') #print('name=%r field2=%r' % (name, field2)) if name == 'UACCEL': # special DMIG card if field2 == 0: card = DMIG_UACCEL.add_card(card_obj, comment=comment) self.add_dmig(card) else: self._dmig_temp[name].append((card_obj, comment)) else: field2 = integer_or_string(card_obj, 2, 'flag') if field2 == 0: card = DMIG(card_obj, comment=comment) self.add_dmig(card) else: self._dmig_temp[name].append((card_obj, comment)) def _prepare_dmix(self, class_obj, add_method, card_obj, comment=''): """adds a DMIx""" #elif card_name in ['DMI', 'DMIJ', 'DMIJI', 'DMIK']: field2 = integer(card_obj, 2, 'flag') if field2 == 0: add_method(class_obj(card_obj, comment=comment)) else: name = string(card_obj, 1, 'name') self._dmig_temp[name].append((card_obj, comment)) def _prepare_dmi(self, card, card_obj, comment=''): """adds a DMI""" self._prepare_dmix(DMI, self.add_dmi, card_obj, comment=comment) def _prepare_dmij(self, card, card_obj, comment=''): """adds a DMIJ""" self._prepare_dmix(DMIJ, self.add_dmij, card_obj, comment=comment) def _prepare_dmik(self, card, card_obj, comment=''): """adds a DMIK""" self._prepare_dmix(DMIK, self.add_dmik, card_obj, comment=comment) def _prepare_dmiji(self, card, card_obj, comment=''): """adds a DMIJI""" self._prepare_dmix(DMIJI, self.add_dmiji, card_obj, comment=comment) #def _prepare_cmass4(self, card, card_obj, comment=''): #"""adds a CMASS4""" #class_instance = CMASS4.add_card(card_obj, icard=0, comment=comment) #self.add_mass(class_instance) #if card_obj.field(5): #class_instance = CMASS4.add_card(card_obj, icard=1, comment=comment) #self.add_mass(class_instance) #def _prepare_pelas(self, card, card_obj, comment=''): #"""adds a PELAS""" #class_instance = PELAS.add_card(card_obj, icard=0, comment=comment) #self.add_property(class_instance) #if card_obj.field(5): #class_instance = PELAS.add_card(card_obj, icard=1, comment=comment) #self.add_property(class_instance) #def _prepare_pvisc(self, card, card_obj, comment=''): #"""adds a PVISC""" #class_instance = PVISC.add_card(card_obj, icard=0, comment=comment) #self.add_property(class_instance) #if card_obj.field(5): #class_instance = PVISC.add_card(card_obj, icard=1, comment=comment) #self.add_property(class_instance) #def _prepare_pdamp(self, card, card_obj, comment=''): #"""adds a PDAMP""" #class_instance = PDAMP.add_card(card_obj, icard=0, comment=comment) #self.add_property(class_instance) #if card_obj.field(3): #class_instance = PDAMP.add_card(card_obj, icard=1, comment=comment) #self.add_property(class_instance) #if card_obj.field(5): #class_instance = PDAMP.add_card(card_obj, icard=2, comment=comment) #self.add_property(class_instance) #if card_obj.field(7): #class_instance = PDAMP.add_card(card_obj, icard=3, comment=comment) #self.add_property(class_instance) #def _prepare_pmass(self, card, card_obj, comment=''): #"""adds a PMASS""" #card_instance = PMASS(card_obj, icard=0, comment=comment) #self.add_property_mass(card_instance) #for (i, j) in enumerate([3, 5, 7]): #if card_obj.field(j): #card_instance = PMASS(card_obj, icard=i+1, comment=comment) #self.add_property_mass(card_instance) #def _prepare_dphase(self, card, card_obj, comment=''): #"""adds a DPHASE""" #class_instance = DPHASE.add_card(card_obj, comment=comment) #self.add_dphase(class_instance) #if card_obj.field(5): #print('card_obj = ', card_obj) #class_instance = DPHASE(card_obj, icard=1, comment=comment) #self.add_DPHASE(class_instance) def _prepare_cord1r(self, card, card_obj, comment=''): """adds a CORD1R""" class_instance = CORD1R.add_card(card_obj, comment=comment) self._add_coord_object(class_instance) if card_obj.field(5): class_instance = CORD1R.add_card(card_obj, icard=1, comment=comment) self._add_coord_object(class_instance) def _prepare_cord1c(self, card, card_obj, comment=''): """adds a CORD1C""" class_instance = CORD1C.add_card(card_obj, comment=comment) self._add_coord_object(class_instance) if card_obj.field(5): class_instance = CORD1C.add_card(card_obj, icard=1, comment=comment) self._add_coord_object(class_instance) def _prepare_cord1s(self, card, card_obj, comment=''): """adds a CORD1S""" class_instance = CORD1S.add_card(card_obj, comment=comment) self._add_coord_object(class_instance) if card_obj.field(5): class_instance = CORD1S.add_card(card_obj, icard=1, comment=comment) self._add_coord_object(class_instance) def _prepare_cord2(self, card, card_obj, comment=''): """adds a CORD2x""" self.coords.add_cord2x(card, card_obj, comment) def add_card(self, card_lines, card_name, comment='', is_list=True, has_none=True): """ Adds a card object to the BDF object. Parameters ---------- card_lines: list[str] the list of the card fields card_name : str the card_name -> 'GRID' comment : str an optional the comment for the card is_list : bool, optional False : input is a list of card fields -> ['GRID', 1, None, 3.0, 4.0, 5.0] True : input is list of card_lines -> ['GRID, 1,, 3.0, 4.0, 5.0'] has_none : bool; default=True can there be trailing Nones in the card data (e.g. ['GRID', 1, 2, 3.0, 4.0, 5.0, None]) can there be trailing Nones in the card data (e.g. ['GRID, 1, 2, 3.0, 4.0, 5.0, ']) Returns ------- card_object : BDFCard() the card object representation of card .. code-block:: python >>> model = BDF() # is_list is a somewhat misleading name; is it a list of card_lines # where a card_line is an unparsed string >>> card_lines = ['GRID,1,2'] >>> comment = 'this is a comment' >>> model.add_card(card_lines, 'GRID', comment, is_list=True) # here is_list=False because it's been parsed >>> card = ['GRID', 1, 2,] >>> model.add_card(card_lines, 'GRID', comment, is_list=False) # here is_list=False because it's been parsed # Note the None at the end of the 1st line, which is there # because the CONM2 card has a blank field. # It must be there. # We also set i32 on the 2nd line, so it will default to 0.0 >>> card = [ 'CONM2', eid, nid, cid, mass, x1, x2, x3, None, i11, i21, i22, i31, None, i33, ] >>> model.add_card(card_lines, 'CONM2', comment, is_list=False) # here's an alternate approach for the CONM2 # we use Nastran's CSV format # There are many blank fields, but it's parsed exactly like a # standard CONM2. >>> card = [ 'CONM2,1,2,3,10.0', ',1.0,,5.0' ] >>> model.add_card(card_lines, 'CONM2', comment, is_list=True) .. note:: this is a very useful method for interfacing with the code .. note:: the card_object is not a card-type object...so not a GRID card or CQUAD4 object. It's a BDFCard Object. However, you know the type (assuming a GRID), so just call the *mesh.Node(nid)* to get the Node object that was just created. """ card_name = card_name.upper() card_obj, card = self.create_card_object(card_lines, card_name, is_list=is_list, has_none=has_none) self._add_card_helper(card_obj, card_name, card_name, comment) return card_obj def add_card_fields(self, card_lines, card_name, comment='', has_none=True): """ Adds a card object to the BDF object. Parameters ---------- card_lines: list[str] the list of the card fields input is a list of card fields -> ['GRID', 1, 2, 3.0, 4.0, 5.0] card_name : str the card_name -> 'GRID' comment : str an optional the comment for the card has_none : bool; default=True can there be trailing Nones in the card data (e.g. ['GRID', 1, 2, 3.0, 4.0, 5.0, None]) Returns ------- card_object : BDFCard() the card object representation of card """ card_name = card_name.upper() card_obj, card = self.create_card_object(card_lines, card_name, is_list=True, has_none=has_none) self._add_card_helper(card_obj, card, card_name, comment) def add_card_lines(self, card_lines, card_name, comment='', has_none=True): """ Adds a card object to the BDF object. Parameters ---------- card_lines: list[str] the list of the card fields input is list of card_lines -> ['GRID, 1, 2, 3.0, 4.0, 5.0'] card_name : str the card_name -> 'GRID' comment : str; default='' an optional the comment for the card has_none : bool; default=True can there be trailing Nones in the card data (e.g. ['GRID, 1, 2, 3.0, 4.0, 5.0, ']) """ card_name = card_name.upper() card_obj, card = self.create_card_object(card_lines, card_name, is_list=False, has_none=has_none) self._add_card_helper(card_obj, card, card_name, comment) @property def nodes(self): ngrids = len(self.grid) assert ngrids > 0, ngrids nspoints = 0 nepoints = 0 if self.spoint.n: spoints = self.spoint.points nspoints = len(spoints) if self.epoint.n: epoints = self.epoint.points nepoints = len(epoints) raise NotImplementedError('EPOINT') assert ngrids + nspoints + nepoints > 0, 'ngrids=%s nspoints=%s nepoints=%s' % (ngrids, nspoints, nepoints) nodes = np.zeros(ngrids + nspoints + nepoints, dtype='int32') nodes[:ngrids] = self.grid.node_id if nspoints: nodes[ngrids:ngrids+nspoints] = self.spoint.points if nepoints: nodes[ngrids+nspoints:] = self.epoint.points return nodes def get_xyz_in_coord(self, cid=0, dtype='float32'): """ Gets the xyz points (including SPOINTS) in the desired coordinate frame Parameters ---------- cid : int; default=0 the desired coordinate system dtype : str; default='float32' the data type of the xyz coordinates Returns ------- xyz : (n, 3) ndarray the xyz points in the cid coordinate frame .. warning:: doesn't support EPOINTs """ ngrids = len(self.grid) nspoints = 0 nepoints = 0 spoints = None if self.spoint.n: spoints = self.point.points nspoints = len(spoints) if self.epoint.n: epoints = self.point.points nepoints = len(epoints) raise NotImplementedError('EPOINT') assert ngrids + nspoints + nepoints > 0, 'ngrids=%s nspoints=%s nepoints=%s' % (ngrids, nspoints, nepoints) xyz_cid0 = np.zeros((ngrids + nspoints + nepoints, 3), dtype=dtype) if cid == 0: xyz_cid0 = self.grid.get_position_by_node_index() assert nspoints == 0, nspoints else: assert cid == 0, cid assert nspoints == 0, nspoints return xyz_cid0 def _add_card_helper(self, card_obj, card, card_name, comment=''): """ Adds a card object to the BDF object. Parameters ---------- card_object : BDFCard() the card object representation of card card : List[str] the fields of the card object; used for rejection and special cards card_name : str the card_name -> 'GRID' comment : str an optional the comment for the card """ if card_name == 'ECHOON': self.echo = True return elif card_name == 'ECHOOFF': self.echo = False return if self.echo: try: print(print_card_8(card_obj).rstrip()) except: print(print_card_16(card_obj).rstrip()) if card_name in self._card_parser: card_class, add_card_function = self._card_parser[card_name] try: class_instance = card_class.add_card(card_obj, comment=comment) add_card_function(class_instance) except TypeError: msg = 'problem adding %s' % card_obj raise raise TypeError(msg) except (SyntaxError, AssertionError, KeyError, ValueError) as exception: raise # WARNING: Don't catch RuntimeErrors or a massive memory leak can occur #tpl/cc451.bdf #raise # NameErrors should be caught #self._iparse_errors += 1 #self.log.error(card_obj) #var = traceback.format_exception_only(type(exception), exception) #self._stored_parse_errors.append((card, var)) #if self._iparse_errors > self._nparse_errors: #self.pop_parse_errors() #raise #except AssertionError as exception: #self.log.error(card_obj) elif card_name in self._card_parser_prepare: add_card_function = self._card_parser_prepare[card_name] try: add_card_function(card, card_obj, comment) except (SyntaxError, AssertionError, KeyError, ValueError) as exception: raise # WARNING: Don't catch RuntimeErrors or a massive memory leak can occur #tpl/cc451.bdf #raise # NameErrors should be caught #self._iparse_errors += 1 #self.log.error(card_obj) #var = traceback.format_exception_only(type(exception), exception) #self._stored_parse_errors.append((card, var)) #if self._iparse_errors > self._nparse_errors: #self.pop_parse_errors() #except AssertionError as exception: #self.log.error(card_obj) #raise else: #raise RuntimeError(card_obj) self.reject_cards.append(card_obj) def add_card_class(self, class_instance): """ Adds a card object to the BDF object. Parameters ---------- class_instance : BaseCard() the card class representation of card """ #if card_name == 'ECHOON': #self.echo = True #return #elif card_name == 'ECHOOFF': #self.echo = False #return if self.echo: try: print(print_card_8(class_instance).rstrip()) except: print(print_card_16(class_instance).rstrip()) card_name = class_instance.type if card_name in self._card_parser: add_card_function = self._card_parser[card_name][1] add_card_function(class_instance) elif card_name in self._card_parser_prepare: # TODO: could be faster... comment = class_instance.comment class_instance.comment = '' card_lines = str(class_instance).split('\n') self.add_card(card_lines, card_name, comment=comment, is_list=False, has_none=True) #add_card_function = self._card_parser_prepare[card_name] #add_card_function(card, card_obj) else: self.reject_cards.append(class_instance) def get_bdf_stats(self, return_type='string'): """ Print statistics for the BDF Parameters ---------- return_type : str (default='string') the output type ('list', 'string') 'list' : list of strings 'string' : single, joined string Returns ------- return_data : str, optional the output data .. note:: if a card is not supported and not added to the proper lists, this method will fail """ return '' card_stats = [ 'params', 'nodes', 'points', 'elements', 'rigid_elements', 'properties', 'materials', 'creep_materials', 'MATT1', 'MATT2', 'MATT3', 'MATT4', 'MATT5', 'MATT8', 'MATT9', 'MATS1', 'MATS3', 'MATT8', 'coords', 'mpcs', 'mpcadds', # dynamic cards 'dareas', 'dphases', 'nlparms', 'nlpcis', 'tsteps', 'tstepnls', # direct matrix input - DMIG - dict 'dmis', 'dmigs', 'dmijs', 'dmijis', 'dmiks', 'dequations', # frequencies - dict 'frequencies', # optimization - dict 'dconadds', 'dconstrs', 'desvars', 'ddvals', 'dlinks', 'dresps', 'dvcrels', 'dvmrels', 'dvprels', 'dvgrids', # SESETx - dict 'suport1', 'se_sets', 'se_usets', # tables 'tables', 'random_tables', # methods 'methods', 'cMethods', # aero 'caeros', 'paeros', 'aecomps', 'aefacts', 'aelinks', 'aelists', 'aeparams', 'aesurfs', 'aestats', 'gusts', 'flfacts', 'flutters', 'splines', 'trims', # thermal 'bcs', 'thermal_materials', 'phbdys', 'convection_properties', ] # These are ignored because they're lists ignored_types = set([ 'spoints', 'spointi', # singleton 'grdset', # singleton 'spcs', 'spcadds', 'suport', 'se_suport', # suport, suport1 - list 'doptprm', # singleton # SETx - list 'sets', 'asets', 'bsets', 'csets', 'qsets', 'se_bsets', 'se_csets', 'se_qsets', ]) ## TODO: why are some of these ignored? ignored_types2 = set([ 'case_control_deck', 'caseControlDeck', 'spcObject2', 'mpcObject2', # done 'sol', 'loads', 'mkaeros', 'rejects', 'reject_cards', # not cards 'debug', 'executive_control_lines', 'case_control_lines', 'cards_to_read', 'card_count', 'isStructured', 'uniqueBulkDataCards', 'nCardLinesMax', 'model_type', 'includeDir', 'sol_method', 'log', 'linesPack', 'lineNumbers', 'sol_iline', 'reject_count', '_relpath', 'isOpened', #'foundEndData', 'specialCards',]) unsupported_types = ignored_types.union(ignored_types2) all_params = object_attributes(self, keys_to_skip=unsupported_types) msg = ['---BDF Statistics---'] # sol msg.append('SOL %s\n' % self.sol) # loads for (lid, loads) in sorted(iteritems(self.loads)): msg.append('bdf.loads[%s]' % lid) groups_dict = {} for loadi in loads: groups_dict[loadi.type] = groups_dict.get(loadi.type, 0) + 1 for name, count_name in sorted(iteritems(groups_dict)): msg.append(' %-8s %s' % (name + ':', count_name)) msg.append('') # dloads for (lid, loads) in sorted(iteritems(self.dloads)): msg.append('bdf.dloads[%s]' % lid) groups_dict = {} for loadi in loads: groups_dict[loadi.type] = groups_dict.get(loadi.type, 0) + 1 for name, count_name in sorted(iteritems(groups_dict)): msg.append(' %-8s %s' % (name + ':', count_name)) msg.append('') for (lid, loads) in sorted(iteritems(self.dload_entries)): msg.append('bdf.dload_entries[%s]' % lid) groups_dict = {} for loadi in loads: groups_dict[loadi.type] = groups_dict.get(loadi.type, 0) + 1 for name, count_name in sorted(iteritems(groups_dict)): msg.append(' %-8s %s' % (name + ':', count_name)) msg.append('') # aero if self.aero: msg.append('bdf:aero') msg.append(' %-8s %s' % ('AERO:', 1)) # aeros if self.aeros: msg.append('bdf:aeros') msg.append(' %-8s %s' % ('AEROS:', 1)) #mkaeros if self.mkaeros: msg.append('bdf:mkaeros') msg.append(' %-8s %s' % ('MKAERO:', len(self.mkaeros))) for card_group_name in card_stats: card_group = getattr(self, card_group_name) groups = set([]) if not isinstance(card_group, dict): msg = '%s is a %s; not dictionary' % (card_group_name, type(card_group)) raise RuntimeError(msg) for card in itervalues(card_group): if isinstance(card, list): for card2 in card: groups.add(card2.type) else: groups.add(card.type) group_msg = [] for card_name in sorted(groups): try: ncards = self.card_count[card_name] group_msg.append(' %-8s : %s' % (card_name, ncards)) except KeyError: group_msg.append(' %-8s : ???' % card_name) #assert card_name == 'CORD2R', self.card_count if group_msg: msg.append('bdf.%s' % card_group_name) msg.append('\n'.join(group_msg)) msg.append('') # rejects if self.rejects: msg.append('Rejected Cards') for name, counter in sorted(iteritems(self.card_count)): if name not in self.cards_to_read: msg.append(' %-8s %s' % (name + ':', counter)) msg.append('') if return_type == 'string': return '\n'.join(msg) else: return msg def get_displacement_index_xyz_cp_cd(self, dtype='float64'): """ Get index and transformation matricies for nodes with their output in coordinate systems other than the global. Used in combination with ``OP2.transform_displacements_to_global`` Returns ---------- icd_transform : dict{int cd : (n,) int ndarray} Dictionary from coordinate id to index of the nodes in ``self.point_ids`` that their output (`CD`) in that coordinate system. icp_transform : dict{int cp : (n,) int ndarray} Dictionary from coordinate id to index of the nodes in ``self.point_ids`` that their input (`CP`) in that coordinate system. xyz_cp : (n, 3) float ndarray points in the CP coordinate system nid_cp_cd : (n, 3) int ndarray node id, CP, CD for each node dtype : str the type of xyz_cp Example ------- # assume GRID 1 has a CD=10 # assume GRID 2 has a CD=10 # assume GRID 5 has a CD=50 >>> model.point_ids [1, 2, 5] >>> i_transform = model.get_displacement_index_xyz_cp_cd() >>> i_transform[10] [0, 1] >>> i_transform[50] [2] """ nids_cd_transform = defaultdict(list) nids_cp_transform = defaultdict(list) i_transform = {} nnodes = len(self.nodes) nspoints = 0 nepoints = 0 spoints = None epoints = None if self.spoints: spoints = self.spoints.points nspoints = len(spoints) if self.epoints is not None: epoints = self.epoints.points nepoints = len(epoints) #raise NotImplementedError('EPOINTs') if nnodes + nspoints + nepoints == 0: msg = 'nnodes=%s nspoints=%s nepoints=%s' % (nnodes, nspoints, nepoints) raise ValueError(msg) #xyz_cid0 = np.zeros((nnodes + nspoints, 3), dtype=dtype) xyz_cp = np.zeros((nnodes + nspoints, 3), dtype=dtype) nid_cp_cd = np.zeros((nnodes + nspoints, 3), dtype='int32') i = 0 for nid, node in sorted(iteritems(self.nodes)): cd = node.Cd() cp = node.Cp() nids_cd_transform[cp].append(nid) nids_cd_transform[cd].append(nid) nid_cp_cd[i, :] = [nid, cp, cd] xyz_cp[i, :] = node.xyz i += 1 if nspoints: for nid in sorted(self.spoints.points): nid_cp_cd[i] = nid i += 1 if nepoints: for nid in sorted(self.epoints.points): nid_cp_cd[i] = nid i += 1 icp_transform = {} icd_transform = {} nids_all = np.array(sorted(self.point_ids)) for cd, nids in sorted(iteritems(nids_cd_transform)): if cd in [0, -1]: continue nids = np.array(nids) icd_transform[cd] = np.where(np.in1d(nids_all, nids))[0] if cd in nids_cp_transform: icp_transform[cd] = icd_transform[cd] for cp, nids in sorted(iteritems(nids_cd_transform)): if cp in [0, -1]: continue if cp in icd_transform: continue nids = np.array(nids) icd_transform[cd] = np.where(np.in1d(nids_all, nids))[0] return icd_transform, icp_transform, xyz_cp, nid_cp_cd def transform_xyzcp_to_xyz_cid(self, xyz_cp, icp_transform, cid=0): """ Working on faster method for calculating node locations Not validated... """ coord2 = self.coords[cid] beta2 = coord2.beta() xyz_cid0 = np.copy(xyz_cp) for cp, inode in iteritems(icp_transform): if cp == 0: continue coord = self.coords[cp] beta = coord.beta() is_beta = np.abs(np.diagonal(beta)).min() == 1. is_origin = np.abs(coord.origin).max() == 0. xyzi = coord.coord_to_xyz_array(xyz_cp[inode, :]) if is_beta and is_origin: xyz_cid0[inode, :] = np.dot(xyzi, beta) + coord.origin elif is_beta: xyz_cid0[inode, :] = np.dot(xyzi, beta) else: xyz_cid0[inode, :] = xyzi + coord.origin if cid == 0: return xyz_cid0 is_beta = np.abs(np.diagonal(beta2)).min() == 1. is_origin = np.abs(coord2.origin).max() == 0. if is_beta and is_origin: xyz_cid = coord2.xyz_to_coord_array(np.dot(xyz_cid0 - coord2.origin, beta2.T)) elif is_beta: xyz_cid = coord2.xyz_to_coord_array(np.dot(xyz_cid0, beta2.T)) else: xyz_cid = coord2.xyz_to_coord_array(xyz_cid0 - coord2.origin) return xyz_cid def get_displacement_index(self): """ Get index and transformation matricies for nodes with their output in coordinate systems other than the global. Used in combination with ``OP2.transform_displacements_to_global`` Returns ---------- i_transform : dict{int cid : (n,) int ndarray} Dictionary from coordinate id to index of the nodes in ``self.point_ids`` that their output (`CD`) in that coordinate system. Example ------- # assume GRID 1 has a CD=10 # assume GRID 2 has a CD=10 # assume GRID 5 has a CD=50 >>> model.point_ids [1, 2, 5] >>> i_transform = model.get_displacement_index() >>> i_transform[10] [0, 1] >>> i_transform[50] [2] """ nids_transform = defaultdict(list) i_transform = {} if len(self.coords) == 1: # was ncoords > 2; changed b/c seems dangerous return i_transform for nid, node in sorted(iteritems(self.nodes)): cid_d = node.Cd() if cid_d: nids_transform[cid_d].append(nid) nids_all = np.array(sorted(self.point_ids)) for cid in sorted(iterkeys(nids_transform)): nids = np.array(nids_transform[cid]) i_transform[cid] = np.where(np.in1d(nids_all, nids))[0] return nids_all, nids_transform, i_transform def get_displacement_index_transforms(self): """ Get index and transformation matricies for nodes with their output in coordinate systems other than the global. Used in combination with ``OP2.transform_displacements_to_global`` Returns ---------- i_transform : dict{int cid : (n,) int ndarray} Dictionary from coordinate id to index of the nodes in ``self.point_ids`` that their output (`CD`) in that coordinate system. beta_transforms : dict{in:3x3 float ndarray} Dictionary from coordinate id to 3 x 3 transformation matrix for that coordinate system. Example ------- # assume GRID 1 has a CD=10 # assume GRID 2 has a CD=10 # assume GRID 5 has a CD=50 >>> model.point_ids [1, 2, 5] >>> i_transform, beta_transforms = model.get_displacement_index_transforms() >>> i_transform[10] [0, 1] >>> beta_transforms[10] [1., 0., 0.] [0., 0., 1.] [0., 1., 0.] >>> i_transform[50] [2] >>> beta_transforms[50] [1., 0., 0.] [0., 1., 0.] [0., 0., 1.] """ self.deprecated('i_transforms, model.get_displacement_index_transforms()', 'itransforms, beta_transforms = model.get_displacement_index()', '0.9.0') nids_transform = defaultdict(list) i_transform = {} beta_transforms = {} if len(self.coords) == 1: # was ncoords > 2; changed b/c seems dangerous return i_transform, beta_transforms for nid, node in sorted(iteritems(self.nodes)): cid_d = node.Cd() if cid_d: nids_transform[cid_d].append(nid) nids_all = np.array(sorted(self.point_ids)) for cid in sorted(iterkeys(nids_transform)): nids = np.array(nids_transform[cid]) i_transform[cid] = np.where(np.in1d(nids_all, nids))[0] beta_transforms[cid] = self.coords[cid].beta() return i_transform, beta_transforms def _get_card_name(self, lines): """ Returns the name of the card defined by the provided lines Parameters ---------- lines : list[str] the lines of the card Returns ------- card_name : str the name of the card """ card_name = lines[0][:8].rstrip('\t, ').split(',')[0].split('\t')[0].strip('*\t ') if len(card_name) == 0: return None if ' ' in card_name or len(card_name) == 0: msg = 'card_name=%r\nline=%r in filename=%r is invalid' \ % (card_name, lines[0], self.active_filename) print(msg) raise CardParseSyntaxError(msg) return card_name.upper() def _show_bad_file(self, bdf_filename): """ Prints the 10 lines before the UnicodeDecodeError occurred. Parameters ---------- bdf_filename : str the filename to print the lines of """ lines = [] self.log.error('ENCODING - show_bad_file=%r' % self._encoding) # rU with codec_open(_filename(bdf_filename), 'r', encoding=self._encoding) as bdf_file: iline = 0 nblank = 0 while 1: try: line = bdf_file.readline().rstrip() except UnicodeDecodeError: iline0 = max([iline - 10, 0]) self.log.error('filename=%s' % self.bdf_filename) for iline1, line in enumerate(lines[iline0:iline]): self.log.error('lines[%i]=%r' % (iline0 + iline1, line)) msg = "\n%s encoding error on line=%s of %s; not '%s'" % ( self._encoding, iline, bdf_filename, self._encoding) raise RuntimeError(msg) if line: nblank = 0 else: nblank += 1 if nblank == 20: raise RuntimeError('20 blank lines') iline += 1 lines.append(line) def _get_lines(self, bdf_filename, punch=False): """ Opens the bdf and extracts the lines Parameters ---------- bdf_filename : str the main bdf_filename punch : bool, optional is this a punch file (default=False; no executive/case control decks) Returns ------- executive_control_lines : list[str] the executive control deck as a list of strings case_control_lines : list[str] the case control deck as a list of strings bulk_data_lines : list[str] the bulk data deck as a list of strings """ #: the directory of the 1st BDF (include BDFs are relative to this one) self.include_dir = os.path.dirname(os.path.abspath(bdf_filename)) with self._open_file(bdf_filename, basename=True) as bdf_file: try: lines = bdf_file.readlines() except: self._show_bad_file(bdf_filename) nlines = len(lines) i = 0 while i < nlines: try: line = lines[i].rstrip('\r\n\t') except IndexError: break uline = line.upper() if uline.startswith('INCLUDE'): j = i + 1 line_base = line.split('$')[0] include_lines = [line_base.strip()] #self.log.debug('----------------------') line_base = line_base[8:].strip() if line_base.startswith("'") and line_base.endswith("'"): pass else: while not line.split('$')[0].endswith("'") and j < nlines: #print('j=%s nlines=%s less?=%s' % (j, nlines, j < nlines)) try: line = lines[j].split('$')[0].strip() except IndexError: #print('bdf_filename=%r' % bdf_filename) crash_name = 'pyNastran_crash.bdf' self._dump_file(crash_name, lines, i+1) msg = 'There was an invalid filename found while parsing (index).\n' msg += 'Check the end of %r\n' % crash_name msg += 'bdf_filename2 = %r' % bdf_filename raise IndexError(msg) #print('endswith_quote=%s; %r' % ( #line.split('$')[0].strip().endswith(""), line.strip())) include_lines.append(line.strip()) j += 1 #print('j=%s nlines=%s less?=%s' % (j, nlines, j < nlines)) #print('*** %s' % line) #bdf_filename2 = line[7:].strip(" '") #include_lines = [line] + lines[i+1:j] #print(include_lines) bdf_filename2 = get_include_filename(include_lines, include_dir=self.include_dir) if self.read_includes: try: self._open_file_checks(bdf_filename2) except IOError: crash_name = 'pyNastran_crash.bdf' self._dump_file(crash_name, lines, j) msg = 'There was an invalid filename found while parsing.\n' msg += 'Check the end of %r\n' % crash_name msg += 'bdf_filename2 = %r\n' % bdf_filename2 msg += 'abs_filename2 = %r\n' % os.path.abspath(bdf_filename2) #msg += 'len(bdf_filename2) = %s' % len(bdf_filename2) print(msg) raise #raise IOError(msg) with self._open_file(bdf_filename2, basename=False) as bdf_file: #print('bdf_file.name = %s' % bdf_file.name) lines2 = bdf_file.readlines() #print('lines2 = %s' % lines2) nlines += len(lines2) #line2 = lines[j].split('$') #if not line2[0].isalpha(): #print('** %s' % line2) include_comment = '\n$ INCLUDE processed: %s\n' % bdf_filename2 #for line in lines2: #print(" ?%s" % line.rstrip()) lines = lines[:i] + [include_comment] + lines2 + lines[j:] #for line in lines: #print(" *%s" % line.rstrip()) else: lines = lines[:i] + lines[j:] self.reject_lines.append(include_lines) #self.reject_lines.append(write_include(bdf_filename2)) i += 1 if self.dumplines: self._dump_file('pyNastran_dump.bdf', lines, i) return _lines_to_decks(lines, i, punch) def _dump_file(self, bdf_dump_filename, lines, i): """ Writes a BDF up to some failed line index Parameters ---------- bdf_dump_filename : str the bdf filename to dump lines : List[str] the entire list of lines i : int the last index to write """ with codec_open(_filename(bdf_dump_filename), 'w', encoding=self._encoding) as crash_file: for line in lines[:i]: crash_file.write(line) def _increase_card_count(self, card_name, count_num=1): """ Used for testing to check that the number of cards going in is the same as each time the model is read verifies proper writing of cards Parameters ---------- card_name : str the card_name -> 'GRID' count_num : int, optional the amount to increment by (default=1) >>> bdf.read_bdf(bdf_filename) >>> bdf.card_count['GRID'] 50 """ if card_name in self.card_count: self.card_count[card_name] += count_num else: self.card_count[card_name] = count_num def _open_file_checks(self, bdf_filename, basename=False): """ Verifies that the BDF about to be opened: 1. Exists 2. Is Unique 3. Isn't an OP2 4. Is a File """ if basename: bdf_filename_inc = os.path.join(self.include_dir, os.path.basename(bdf_filename)) else: bdf_filename_inc = os.path.join(self.include_dir, bdf_filename) if not os.path.exists(_filename(bdf_filename_inc)): msg = 'No such bdf_filename: %r\n' % bdf_filename_inc msg += 'cwd: %r\n' % os.getcwd() msg += 'include_dir: %r\n' % self.include_dir msg += print_bad_path(bdf_filename_inc) print(msg) raise IOError(msg) elif bdf_filename_inc.endswith('.op2'): print(msg) msg = 'Invalid filetype: bdf_filename=%r' % bdf_filename_inc raise IOError(msg) bdf_filename = bdf_filename_inc if bdf_filename in self.active_filenames: msg = 'bdf_filename=%s is already active.\nactive_filenames=%s' \ % (bdf_filename, self.active_filenames) print(msg) raise RuntimeError(msg) elif os.path.isdir(_filename(bdf_filename)): current_filename = self.active_filename if len(self.active_filenames) > 0 else 'None' msg = 'Found a directory: bdf_filename=%r\ncurrent_file=%s' % ( bdf_filename_inc, current_filename) print(msg) raise IOError(msg) elif not os.path.isfile(_filename(bdf_filename)): msg = 'Not a file: bdf_filename=%r' % bdf_filename print(msg) raise IOError(msg) def _open_file(self, bdf_filename, basename=False, check=True): """ Opens a new bdf_filename with the proper encoding and include directory Parameters ---------- bdf_filename : str the filename to open basename : bool (default=False) should the basename of bdf_filename be appended to the include directory """ if basename: bdf_filename_inc = os.path.join(self.include_dir, os.path.basename(bdf_filename)) else: bdf_filename_inc = os.path.join(self.include_dir, bdf_filename) self._validate_open_file(bdf_filename, bdf_filename_inc, check) self.log.debug('opening %r' % bdf_filename_inc) self.active_filenames.append(bdf_filename_inc) #print('ENCODING - _open_file=%r' % self._encoding) bdf_file = codec_open(_filename(bdf_filename_inc), 'r', encoding=self._encoding) return bdf_file def _validate_open_file(self, bdf_filename, bdf_filename_inc, check): """ checks that the file doesn't have obvious errors - hasn't been used - not a directory - is a file Parameters ---------- bdf_filename : str the current bdf filename bdf_filename_inc : str the next bdf filename Raises ------ RuntimeError : file is active IOError : Invalid file type """ if check: if not os.path.exists(_filename(bdf_filename_inc)): msg = 'No such bdf_filename: %r\n' % bdf_filename_inc msg += 'cwd: %r\n' % os.getcwd() msg += 'include_dir: %r\n' % self.include_dir msg += print_bad_path(bdf_filename_inc) raise IOError(msg) elif bdf_filename_inc.endswith('.op2'): raise IOError('Invalid filetype: bdf_filename=%r' % bdf_filename_inc) bdf_filename = bdf_filename_inc if bdf_filename in self.active_filenames: msg = 'bdf_filename=%s is already active.\nactive_filenames=%s' \ % (bdf_filename, self.active_filenames) raise RuntimeError(msg) elif os.path.isdir(_filename(bdf_filename)): current_fname = self.active_filename if len(self.active_filenames) > 0 else 'None' raise IOError('Found a directory: bdf_filename=%r\ncurrent_file=%s' % ( bdf_filename_inc, current_fname)) elif not os.path.isfile(_filename(bdf_filename)): raise IOError('Not a file: bdf_filename=%r' % bdf_filename) def _parse_spc1(self, card_name, cards): """adds SPC1s""" for comment, card_lines in cards: card_obj = self._cardlines_to_card_obj(card_lines, card_name) constraint_id, dofs, node_ids = get_spc1_constraint(card_obj) if constraint_id in self.spc1: spc1 = self.spc1[constraint_id] else: spc1 = SPC1(self) self.spc1[constraint_id] = spc1 #spc1 = self.spc1.setdefault(constraint_id, SPC1(self)) #spc1.add_card(card_obj, comment=comment) spc1.add(constraint_id, dofs, node_ids, comment=comment) self._increase_card_count(card_name, len(cards)) def _parse_mpc(self, card_name, cards): """adds MPCs""" for comment, card_lines in cards: card_obj = self._cardlines_to_card_obj(card_lines, card_name) constraint_id, constraint = get_mpc_constraint(card_obj) if constraint_id in self.mpc: mpc = self.mpc[constraint_id] else: mpc = MPC(self) self.mpc[constraint_id] = mpc #mpc = self.mpc.setdefault(constraint_id, MPC(self)) #mpc.add_card(card_obj, comment=comment) mpc.add(constraint_id, constraint, comment=comment) for constraint_id, constraint in iteritems(self.mpc): constraint.build() self._increase_card_count(card_name, len(cards)) def _parse_spcadd(self, card_name, cards): """adds SPCADDs""" for comment, card_lines in cards: card_obj = self._cardlines_to_card_obj(card_lines, card_name) constraint_id, node_ids = get_spcadd_constraint(card_obj) if constraint_id in self.spcadd: spcadd = self.spcadd[constraint_id] else: spcadd = SPCADD(self) self.spcadd[constraint_id] = spcadd #spcadd.add_card(card_obj, comment=comment) spcadd.add(constraint_id, node_ids, comment=comment) self._increase_card_count(card_name, len(cards)) def _parse_mpcadd(self, card_name, cards): """adds MPCADDs""" for comment, card_lines in cards: card_obj = self._cardlines_to_card_obj(card_lines, card_name) constraint_id, node_ids = get_spcadd_constraint(card_obj) if constraint_id in self.mpcadd: mpcadd = self.mpcadd[constraint_id] else: mpcadd = MPCADD(self) self.mpcadd[constraint_id] = mpcadd #mpcadd.add_card(card_obj, comment=comment) mpcadd.add(constraint_id, node_ids, comment=comment) self._increase_card_count(card_name, len(cards)) def _parse_spc(self, card_name, cards): """SPC""" self._parse_spci(card_name, cards, SPC, self.spc) def _parse_spcd(self, card_name, cards): """SPCD""" self._parse_spci(card_name, cards, SPCD, self.spcd) def _parse_spci(self, card_name, cards, obj, slot): """SPC, SPCD""" #ncards = defaultdict(int) data_comments = defaultdict(list) for comment, card_lines in cards: card_obj = self._cardlines_to_card_obj(card_lines, card_name) for i in [0, 1]: data = get_spc_constraint(card_obj, i) constraint_id, node_id = data[:2] #self.log.debug('constraint_id=%s node_id=%s dofs=%s enforced=%s' % ( #constraint_id, node_id, dofs, enforced_motion)) if node_id is None: continue data_comments[constraint_id].append((data, comment)) comment = '' for constraint_id, data_commentsi in iteritems(data_comments): instance = obj(self) slot[constraint_id] = instance instance.allocate({card_name : len(data_commentsi)}) for data_comment in data_commentsi: data, comment = data_comment constraint_id, node_id, dofs, enforced_motion = data instance.add(constraint_id, node_id, dofs, enforced_motion, comment=comment) def _parse_ctetra(self, card_name, card): """adds ctetras""" self._parse_solid( 'CTETRA', card, 7, ('CTETRA4', self.ctetra4), ('CTETRA10', self.ctetra10), ) def _parse_cpenta(self, card_name, card): """adds cpentas""" self._parse_solid( 'CPENTA', card, 9, ('CPENTA6', self.cpenta6), ('CPENTA15', self.cpenta15), ) def _parse_cpyram(self, card_name, card): """adds cpyrams""" self._parse_solid( 'CPENTA', card, 8, ('CPENTA6', self.cpenta6), ('CPENTA15', self.cpenta15), ) def _parse_chexa(self, card_name, card): """adds chexas""" self._parse_solid( 'CHEXA', card, 11, ('CHEXA8', self.chexa8), ('CHEXA20', self.chexa20), ) @staticmethod def _cardlines_to_card_obj(card_lines, card_name): """makes a BDFCard object""" fields = to_fields(card_lines, card_name) card = wipe_empty_fields(fields) card_obj = BDFCard(card, has_none=False) return card_obj def _parse_darea(self, card_name, cards): """adds dareas""" self._parse_multi(card_name, cards, self.darea, [5]) def _parse_dphase(self, card_name, cards): """adds dphases""" self._parse_multi(card_name, cards, self.dphase, [5]) def _parse_cmass4(self, card_name, cards): """adds cmass4""" self._parse_multi(card_name, cards, self.cmass4, [5]) def _parse_cdamp4(self, card_name, cards): """adds cdamp4""" self._parse_multi(card_name, cards, self.cmass4, [5]) def _parse_pvisc(self, card_name, cards): """adds pvisc""" self._parse_multi(card_name, cards, self.pvisc, [5]) def _parse_pdamp(self, card_name, cards): """adds pdamp""" self._parse_multi(card_name, cards, self.pdamp, [3, 5, 7]) def _parse_pmass(self, card_name, cards): """adds pmass""" self._parse_multi(card_name, cards, self.pmass, [3, 5, 7]) def _parse_multi(self, card_name, cards, card_cls, icard): """parses a DAREA/DPHASE/???""" datas = [] for comment, card_lines in cards: card_obj = self._cardlines_to_card_obj(card_lines, card_name) data = card_cls.parse(card_obj, icard=0, comment=comment) datas.append(data) for icardi in icard: if card_obj.field(icardi): data = card_cls.parse(card_obj, icard=icardi) datas.append(data) ncards = len(datas) self._increase_card_count(card_name, ncards) self.log.debug(' allocating %r' % card_cls.type) card_cls.allocate(self.card_count) for datai, comment in datas: card_cls.add_card(datai, comment) self.log.debug(' building %r; n=%s' % (card_cls.type, card_cls.n)) card_cls.build() #def _prepare_darea(self, card, card_obj, comment=''): #"""adds a DAREA""" ##def add_darea(self, darea, allow_overwrites=False): ##key = (darea.sid, darea.p, darea.c) ##if key in self.dareas and not allow_overwrites: ##if not darea._is_same_card(self.dareas[key]): ##assert key not in self.dareas, '\ndarea=\n%s oldDArea=\n%s' % (darea, self.dareas[key]) ##else: ##assert darea.sid > 0 ##self.dareas[key] = darea ##self._type_to_id_map[darea.type].append(key) #class_instance = DAREA.add_card(card_obj, comment=comment) #self.add_darea(class_instance) #if card_obj.field(5): #class_instance = DAREA.add_card(card_obj, icard=1, comment=comment) #self.add_darea(class_instance) def _parse_solid(self, card_name, cards, nsplit, pair1, pair2): """ adds the cards to the object Parameters ---------- card_name : str the card name cards : List[(comment, card_obj), ...] an series of comments and cards nsplit : int >= 0 the location to identify for a card split (7 for CTETRA4/CTETRA10) pair1 : (card_name, slot) card_name : str the card_name; (e.g., CTETRA4) slot : obj the place to put the data (e.g., self.ctetra4) pair2 : (card_name, slot) card_name : str the card_name; (e.g., CTETRA10) slot : obj the place to put the data (e.g., self.ctetra10) """ cards1 = [] cards2 = [] ncards1 = 0 ncards2 = 0 for comment, card_lines in cards: card_obj = self._cardlines_to_card_obj(card_lines, card_name) if card_obj.nfields == nsplit: ncards1 += 1 cards1.append((comment, card_obj)) else: ncards2 += 1 cards2.append((comment, card_obj)) if ncards1: name1, obj1 = pair1 self._increase_card_count(name1, ncards1) self.log.debug(' allocating %r' % obj1.type) obj1.allocate(self.card_count) for comment, card_obj in cards1: obj1.add_card(card_obj, comment) self.log.debug(' building %r; n=%s' % (obj1.type, obj1.n)) obj1.build() if ncards2: name2, obj2 = pair2 self._increase_card_count(name2, ncards2) self.log.debug(' allocating %r' % obj2.type) obj2.allocate(self.card_count) for comment, card_obj in cards2: obj2.add_card(card_obj, comment) self.log.debug(' building %r; n=%s' % (obj2.type, obj2.n)) obj2.build() def _parse_cards(self, cards, card_count): """creates card objects and adds the parsed cards to the deck""" #print('card_count = %s' % card_count) if isinstance(cards, dict): # TODO: many others... cards_to_get_lengths_of = { 'CTETRA' : self._parse_ctetra, 'CPENTA' : self._parse_cpenta, 'CPYRAM' : self._parse_cpyram, 'CHEXA' : self._parse_chexa, 'SPC1' : self._parse_spc1, 'SPCADD' : self._parse_spcadd, 'SPC' : self._parse_spc, 'SPCD' : self._parse_spcd, 'MPC' : self._parse_mpc, 'MPCADD' : self._parse_mpcadd, 'DAREA' : self._parse_darea, 'DPHASE' : self._parse_dphase, #'PELAS' : self._parse_pelas, 'PVISC' : self._parse_pvisc, 'PDAMP' : self._parse_pdamp, 'CMASS4' : self._parse_cmass4, 'PMASS' : self._parse_pmass, 'CDAMP4' : self._parse_cdamp4, } # self._is_cards_dict = True # this is the loop that hits... card_names = sorted(list(cards.keys())) for card_name in card_names: if card_name in cards_to_get_lengths_of: card = cards[card_name] ncards = len(card) method = cards_to_get_lengths_of[card_name] self.log.info('dynamic vectorized parse of n%s = %s' % (card_name, ncards)) method(card_name, card) del cards[card_name] continue card_name_to_obj_mapper = self.card_name_to_obj for card_name in card_names: card = cards[card_name] ncards = len(card) if self.is_reject(card_name):# and card_name not in : self.log.warning('n%s = %s (rejecting)' % (card_name, ncards)) #self.log.info(' rejecting card_name = %s' % card_name) for comment, card_lines in card: self.rejects.append([_format_comment(comment)] + card_lines) self._increase_card_count(card_name, count_num=ncards) elif card_name in cards_to_get_lengths_of: #raise RuntimeError('this shouldnt happen because we deleted the cards above') continue else: ncards = len(card) self.log.info('n%s = %r' % (card_name, ncards)) if card_name not in card_name_to_obj_mapper: self.log.debug(' card_name=%r is not vectorized' % card_name) for comment, card_lines in card: self.add_card(card_lines, card_name, comment=comment, is_list=False, has_none=False) del cards[card_name] continue obj = card_name_to_obj_mapper[card_name] if obj is None: self.log.debug('card_name=%r is not vectorized, but should be' % card_name) for comment, card_lines in card: self.add_card(card_lines, card_name, comment=comment, is_list=False, has_none=False) del cards[card_name] continue self._increase_card_count(card_name, ncards) obj.allocate(self.card_count) self.log.debug(' allocating %r' % card_name) for comment, card_lines in card: #print('card_lines', card_lines) fields = to_fields(card_lines, card_name) card = wipe_empty_fields(fields) card_obj = BDFCard(card, has_none=False) obj.add_card(card_obj, comment=comment) obj.build() self.log.debug(' building %r; n=%s' % (obj.type, obj.n)) del cards[card_name] #if self.is_reject(card_name): #self.log.info(' rejecting card_name = %s' % card_name) #for cardi in card: #self._increase_card_count(card_name) #self.rejects.append([cardi[0]] + cardi[1]) #else: #for comment, card_lines in card: #print('card_lines', card_lines) #self.add_card(card_lines, card_name, comment=comment, #is_list=False, has_none=False) else: # list - this is the one that's used in the non-vectorized case raise NotImplementedError('dict...') #for card in cards: #card_name, comment, card_lines = card #if card_name is None: #msg = 'card_name = %r\n' % card_name #msg += 'card_lines = %s' % card_lines #raise RuntimeError(msg) #if self.is_reject(card_name): #self.reject_card_lines(card_name, card_lines, comment) self.coords.build() self.elements.build() self.properties.build() self.materials.build() def _parse_dynamic_syntax(self, key): """ Applies the dynamic syntax for %varName Parameters ---------- key : str the uppercased key Returns ------- value : int/float/str the dynamic value defined by dict_of_vars .. seealso:: :func: `set_dynamic_syntax` """ key = key.strip()[1:] self.log.debug("dynamic key = %r" % key) #self.dict_of_vars = {'P5':0.5,'ONEK':1000.} if key not in self.dict_of_vars: msg = "key=%r not found in keys=%s" % (key, self.dict_of_vars.keys()) raise KeyError(msg) return self.dict_of_vars[key] #def _is_case_control_deck(self, line): #line_upper = line.upper().strip() #if 'CEND' in line.upper(): #raise SyntaxError('invalid Case Control Deck card...CEND...') #if '=' in line_upper or ' ' in line_upper: #return True #for card in self.uniqueBulkDataCards: #lenCard = len(card) #if card in line_upper[:lenCard]: #return False #return True def _parse_primary_file_header(self, bdf_filename): """ Extract encoding, nastran_format, and punch from the primary BDF. Parameters ---------- bdf_filename : str the input filename ..code-block :: python $ pyNastran: version=NX $ pyNastran: encoding=latin-1 $ pyNastran: punch=True $ pyNastran: dumplines=True $ pyNastran: nnodes=10 $ pyNastran: nelements=100 $ pyNastran: skip_cards=PBEAM,CBEAM $ pyNastran: units=in,lb,s ..warning :: pyNastran lines must be at the top of the file """ with open(bdf_filename, 'r') as bdf_file: check_header = True while check_header: try: line = bdf_file.readline() except: break if line.startswith('$'): key, value = _parse_pynastran_header(line) if key: #print('pyNastran key=%s value=%s' % (key, value)) if key == 'version': self.nastran_format = value elif key == 'encoding': self._encoding = value elif key == 'punch': self.punch = True if value == 'true' else False elif key in ['nnodes', 'nelements']: pass elif key == 'dumplines': self.dumplines = True if value == 'true' else False elif key == 'skip_cards': cards = {value.strip() for value in value.upper().split(',')} self.cards_to_read = self.cards_to_read - cards elif 'skip ' in key: type_to_skip = key[5:].strip() #values = [int(value) for value in value.upper().split(',')] values = parse_patran_syntax(value) if type_to_skip not in self.object_attributes(): raise RuntimeError('%r is an invalid key' % type_to_skip) if type_to_skip not in self.values_to_skip: self.values_to_skip[type_to_skip] = values else: self.values_to_skip[type_to_skip] = np.hstack([ self.values_to_skip[type_to_skip], values ]) #elif key == 'skip_elements' #elif key == 'skip_properties' elif key == 'units': self.units = [value.strip() for value in value.upper().split(',')] else: raise NotImplementedError(key) else: break else: break def _verify_bdf(self, xref=None): """ Cross reference verification method. """ if xref is None: xref = self._xref #for key, card in sorted(iteritems(self.params)): #card._verify(xref) for key, card in sorted(iteritems(self.nodes)): try: card._verify(xref) except: print(str(card)) raise for key, card in sorted(iteritems(self.coords)): try: card._verify(xref) except: print(str(card)) raise for key, card in sorted(iteritems(self.elements)): try: card._verify(xref) except Exception: exc_type, exc_value, exc_traceback = sys.exc_info() print(repr(traceback.format_exception(exc_type, exc_value, exc_traceback))) print(str(card)) #raise for key, card in sorted(iteritems(self.properties)): try: card._verify(xref) except: print(str(card)) raise for key, card in sorted(iteritems(self.materials)): try: card._verify(xref) except: print(str(card)) raise for key, card in sorted(iteritems(self.dresps)): #try: card._verify(xref) #except: #print(str(card)) #raise for key, card in sorted(iteritems(self.dvcrels)): try: card._verify(xref) except: print(str(card)) raise for key, card in sorted(iteritems(self.dvmrels)): try: card._verify(xref) except: print(str(card)) raise for key, card in sorted(iteritems(self.dvprels)): try: card._verify(xref) except: print(str(card)) raise for key, card in sorted(iteritems(self.dvgrids)): try: card._verify(xref) except: print(str(card)) raise IGNORE_COMMENTS = ( '$EXECUTIVE CONTROL DECK', '$CASE CONTROL DECK', 'NODES', 'SPOINTS', 'EPOINTS', 'ELEMENTS', 'PARAMS', 'PROPERTIES', 'ELEMENTS_WITH_PROPERTIES', 'ELEMENTS_WITH_NO_PROPERTIES (PID=0 and unanalyzed properties)', 'UNASSOCIATED_PROPERTIES', 'MATERIALS', 'THERMAL MATERIALS', 'CONSTRAINTS', 'SPCs', 'MPCs', 'RIGID ELEMENTS', 'LOADS', 'AERO', 'STATIC AERO', 'AERO CONTROL SURFACES', 'FLUTTER', 'GUST', 'DYNAMIC', 'OPTIMIZATION', 'COORDS', 'THERMAL', 'TABLES', 'RANDOM TABLES', 'SETS', 'CONTACT', 'REJECTS', 'REJECT_LINES', 'PROPERTIES_MASS', 'MASSES') def _prep_comment(comment): return comment.rstrip() #print('comment = %r' % comment) #comment = ' this\n is\n a comment\n' #print(comment.rstrip('\n').split('\n')) #sline = [comment[1:] if len(comment) and comment[0] == ' ' else comment #for comment in comment.rstrip().split('\n')] #print('sline = ', sline) #asdh def _clean_comment(comment): """ Removes specific pyNastran comment lines so duplicate lines aren't created. Parameters ---------- comment : str the comment to possibly remove Returns ------- updated_comment : str the comment """ if comment == '': pass elif comment in IGNORE_COMMENTS: comment = '' elif 'pynastran' in comment.lower(): comment = '' #if comment: #print(comment) return comment def _lines_to_decks(lines, i, punch): """ Splits the lines into their deck. """ executive_control_lines = [] case_control_lines = [] bulk_data_lines = [] if punch: bulk_data_lines = lines else: flag = 1 for i, line in enumerate(lines): if flag == 1: #line = line.upper() if line.upper().startswith('CEND'): assert flag == 1 flag = 2 executive_control_lines.append(line.rstrip()) elif flag == 2: uline = line.upper() if 'BEGIN' in uline and ('BULK' in uline or 'SUPER' in uline): assert flag == 2 flag = 3 case_control_lines.append(line.rstrip()) else: break for line in lines[i:]: bulk_data_lines.append(line.rstrip()) del lines #for line in bulk_data_lines: #print(line) # clean comments executive_control_lines = [_clean_comment(line) for line in executive_control_lines] case_control_lines = [_clean_comment(line) for line in case_control_lines] return executive_control_lines, case_control_lines, bulk_data_lines
saullocastro/pyNastran
pyNastran/bdf/dev_vectorized/bdf.py
Python
lgpl-3.0
150,048
from authentication_core import *
simmons-tech/api
src/utils/authentication_core/__init__.py
Python
lgpl-3.0
34
import unittest from chill.api import _short_circuit class ApiTestCase(unittest.TestCase): def setUp(self): pass def tearDown(self): pass class ShortCircuit(ApiTestCase): def test_short_circuit_skip(self): a = "Johnny" b = _short_circuit(a) assert a == b a = ["Johnny", "Johnny Five"] b = _short_circuit(a) assert a == b a = {"id": 5} b = _short_circuit(a) assert a == b a = {"id": 5, "name": "Johnny"} b = _short_circuit(a) assert a == b a = [{"id": 5}, {"id": 4}] b = _short_circuit(a) assert a == b def test_short_circuit_list(self): a = ["Johnny"] b = _short_circuit(a) assert b == "Johnny" a = [["Johnny"]] b = _short_circuit(a) assert b == "Johnny" a = [[{"id": 5}, {"id": 4}]] b = _short_circuit(a) assert b == [{"id": 5}, {"id": 4}] def test_short_circuit_dict(self): a = [{"id": 5, "name": "Johnny Five"}] b = _short_circuit(a) assert b == {"id": 5, "name": "Johnny Five"} a = [{"id": 5}, {"name": "Johnny Five"}] b = _short_circuit(a) assert b == {"id": 5, "name": "Johnny Five"} a = [{"id": 5, "status": "unknown"}, {"name": "Johnny Five"}] b = _short_circuit(a) assert a == b a = [{"id": 5, "name": "Johnny Five"}, {"id": 4, "name": "unknown"}] b = _short_circuit(a) assert a == b a = {"name": "Number Five", "manufacturer": "NOVA Laboratories"} b = _short_circuit(a) assert a == b if __name__ == "__main__": unittest.main()
jkenlooper/chill
src/chill/test_api.py
Python
lgpl-3.0
1,709
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function ''' Created on 13.12.2010 @author: gena ''' ''' This is main run file for locotrack program ''' import sys print("Locotrack software starting") print("Loading PyQt4") from PyQt4.QtGui import QApplication, QIcon from os.path import join, abspath, curdir # Add src and resources to python path sys.path.append(abspath(join(curdir, 'src'))) sys.path.append(abspath(join(curdir, 'resources'))) # Import locotrack modules from ltcore.consts import applicationName, applicationVersion, \ organizationName, organizationDomain from ltgui.ltmainwindow import LtMainWindow def main(): app = QApplication(sys.argv) app.setOrganizationName(organizationName) app.setOrganizationDomain(organizationDomain) app.setApplicationName(applicationName + ' ' + applicationVersion) app.setWindowIcon(QIcon(":/icon.png")) mainWindow = LtMainWindow() mainWindow.show() return app.exec_() if __name__ == '__main__': main()
GennadiyZakharov/locotrack
locotrack.py
Python
lgpl-3.0
1,025
# -*- encoding: utf-8 -*- # pilas engine - a video game framework. # # copyright 2010 - hugo ruscitti # license: lgplv3 (see http://www.gnu.org/licenses/lgpl.html) # # website - http://www.pilas-engine.com.ar import utils import pilas class Colisiones: "Administra todas las colisiones entre actores." def __init__(self): self.colisiones = [] def verificar_colisiones(self): for x in self.colisiones: self._verificar_colisiones_en_tupla(x) def _verificar_colisiones_en_tupla(self, tupla): "Toma dos grupos de actores y analiza colisiones entre ellos." (grupo_a, grupo_b, funcion_a_llamar) = tupla for a in grupo_a: for b in grupo_b: try: if id(a) != id(b) and utils.colisionan(a, b): funcion_a_llamar(a, b) # verifica si alguno de los dos objetos muere en la colision. if a not in pilas.escena_actual().actores: if a in grupo_a: list.remove(grupo_a, a) if b not in pilas.escena_actual().actores: if b in grupo_b: list.remove(grupo_b, b) except Exception as e: list.remove(grupo_a, a) raise e def verificar_colisiones_fisicas(self, id_actor_a, id_actor_b): for x in self.colisiones: self._verificar_colisiones_fisicas_en_tupla(x, id_actor_a, id_actor_b) def _verificar_colisiones_fisicas_en_tupla(self, tupla, id_actor_a, id_actor_b): "Toma dos grupos de actores y analiza colisiones entre ellos." (grupo_a, grupo_b, funcion_a_llamar) = tupla for a in grupo_a: for b in grupo_b: try: if self._es_objeto_fisico_con_actor_asociado(a): a_id = a.figura.id else: a_id = a.id if self._es_objeto_fisico_con_actor_asociado(b): b_id = b.figura.id else: b_id = b.id if a_id == id_actor_a and b_id == id_actor_b: funcion_a_llamar(a, b) # verifica si alguno de los dos objetos muere en la colision. if (self._es_objeto_fisico_con_actor_asociado(a)): if a not in pilas.escena_actual().actores: if a in grupo_a: list.remove(grupo_a, a) if (self._es_objeto_fisico_con_actor_asociado(b)): if b not in pilas.escena_actual().actores: if b in grupo_b: list.remove(grupo_b, b) except Exception as e: list.remove(grupo_a, a) raise e def _es_objeto_fisico_con_actor_asociado(self, objeto): # Comprobamos si el objeto tiene la propiedad "figura" establecida. # Esta propiedad se establece en la Habilidad de Imitar. return hasattr(objeto, 'figura') def agregar(self, grupo_a, grupo_b, funcion_a_llamar): "Agrega dos listas de actores para analizar colisiones." if not isinstance(grupo_a, list): grupo_a = [grupo_a] if not isinstance(grupo_b, list): grupo_b = [grupo_b] self.colisiones.append((grupo_a, grupo_b, funcion_a_llamar)) def eliminar_colisiones_con_actor(self, actor): for x in self.colisiones: grupo_a = x[0] grupo_b = x[1] #funcion_a_llamar = x[2] if actor in grupo_a: # Si solo estaba el actor en este grupo eliminamos la colision. if len(grupo_a) == 1: self.colisiones.remove(x) else: # Si hay mas de un actore eliminamos el actor de la lista. grupo_a.remove(x) break if actor in grupo_b: # Si solo estaba el actor en este grupo eliminamos la colision. if len(grupo_b) == 1: self.colisiones.remove(x) else: # Si hay mas de un actore eliminamos el actor de la lista. grupo_b.remove(x) break def obtener_colisiones(self, actor, grupo_de_actores): "Retorna una lista de los actores que colisionan con uno en particular." lista_de_colisiones = [] for a in grupo_de_actores: if id(actor) != id(a) and utils.colisionan(actor, a): lista_de_colisiones.append(a) return lista_de_colisiones
irvingprog/pilas
pilas/colisiones.py
Python
lgpl-3.0
4,853
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.31 # # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _ANN import new new_instancemethod = new.instancemethod try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'PySwigObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static) or hasattr(self,name): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) import types try: _object = types.ObjectType _newclass = 1 except AttributeError: class _object : pass _newclass = 0 del types class _kdtree(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, _kdtree, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, _kdtree, name) def __init__(self, *args): this = _ANN.new__kdtree(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _ANN.delete__kdtree __del__ = lambda self : None; def _knn2(*args): return _ANN._kdtree__knn2(*args) def __repr__(*args): return _ANN._kdtree___repr__(*args) def __str__(*args): return _ANN._kdtree___str__(*args) _kdtree_swigregister = _ANN._kdtree_swigregister _kdtree_swigregister(_kdtree)
EUPSForge/scikits_ann
scikits/ann/ANN.py
Python
lgpl-3.0
2,286
# Copyright (C) 2015-2022 by the RBniCS authors # # This file is part of RBniCS. # # SPDX-License-Identifier: LGPL-3.0-or-later import types from rbnics.utils.decorators import overload def compute_theta_for_stability_factor(compute_theta): from rbnics.problems.elliptic import EllipticCoerciveProblem module = types.ModuleType("compute_theta_for_stability_factor", "Storage for implementation of compute_theta_for_stability_factor") def compute_theta_for_stability_factor_impl(self, term): return module._compute_theta_for_stability_factor_impl(self, term) # Elliptic coercive problem @overload(EllipticCoerciveProblem, str, module=module) def _compute_theta_for_stability_factor_impl(self_, term): if term == "stability_factor_left_hand_matrix": return tuple(0.5 * t for t in compute_theta(self_, "a")) else: return compute_theta(self_, term) return compute_theta_for_stability_factor_impl
mathLab/RBniCS
rbnics/backends/dolfin/wrapping/compute_theta_for_stability_factor.py
Python
lgpl-3.0
1,005
""" The hidden tunnel community. Author(s): Egbert Bouman """ import hashlib import logging import os import socket import struct import time from collections import defaultdict from Tribler.Core.DecentralizedTracking.pymdht.core.identifier import Id from Tribler.Core.Utilities.encoding import encode, decode from Tribler.Core.simpledefs import DLSTATUS_SEEDING, DLSTATUS_STOPPED, \ NTFY_TUNNEL, NTFY_IP_REMOVED, NTFY_RP_REMOVED, NTFY_IP_RECREATE, \ NTFY_DHT_LOOKUP, NTFY_KEY_REQUEST, NTFY_KEY_RESPOND, NTFY_KEY_RESPONSE, \ NTFY_CREATE_E2E, NTFY_ONCREATED_E2E, NTFY_IP_CREATED, DLSTATUS_DOWNLOADING from Tribler.community.tunnel import CIRCUIT_TYPE_IP, CIRCUIT_TYPE_RP, CIRCUIT_TYPE_RENDEZVOUS, \ EXIT_NODE, EXIT_NODE_SALT, CIRCUIT_ID_PORT from Tribler.community.tunnel.payload import (EstablishIntroPayload, IntroEstablishedPayload, EstablishRendezvousPayload, RendezvousEstablishedPayload, KeyResponsePayload, KeyRequestPayload, CreateE2EPayload, CreatedE2EPayload, LinkE2EPayload, LinkedE2EPayload, DHTRequestPayload, DHTResponsePayload) from Tribler.community.tunnel.routing import RelayRoute, RendezvousPoint, Hop from Tribler.community.tunnel.tunnel_community import TunnelCommunity from Tribler.dispersy.authentication import NoAuthentication from Tribler.dispersy.candidate import Candidate from Tribler.dispersy.destination import CandidateDestination from Tribler.dispersy.distribution import DirectDistribution from Tribler.dispersy.endpoint import TUNNEL_PREFIX from Tribler.dispersy.message import Message, DropMessage from Tribler.dispersy.requestcache import RandomNumberCache from Tribler.dispersy.resolution import PublicResolution from Tribler.dispersy.util import call_on_reactor_thread class IPRequestCache(RandomNumberCache): def __init__(self, community, circuit): super(IPRequestCache, self).__init__(community.request_cache, u"establish-intro") self.tunnel_logger = logging.getLogger('TunnelLogger') self.circuit = circuit self.community = community def on_timeout(self): self.tunnel_logger.info("IPRequestCache: no response on establish-intro (circuit %d)", self.circuit.circuit_id) self.community.remove_circuit(self.circuit.circuit_id, 'establish-intro timeout') class RPRequestCache(RandomNumberCache): def __init__(self, community, rp): super(RPRequestCache, self).__init__(community.request_cache, u"establish-rendezvous") self.tunnel_logger = logging.getLogger('TunnelLogger') self.community = community self.rp = rp def on_timeout(self): self.tunnel_logger.info("RPRequestCache: no response on establish-rendezvous (circuit %d)", self.rp.circuit.circuit_id) self.community.remove_circuit(self.rp.circuit.circuit_id, 'establish-rendezvous timeout') class KeyRequestCache(RandomNumberCache): def __init__(self, community, circuit, sock_addr, info_hash): super(KeyRequestCache, self).__init__(community.request_cache, u"key-request") self.tunnel_logger = logging.getLogger('TunnelLogger') self.circuit = circuit self.sock_addr = sock_addr self.info_hash = info_hash self.community = community def on_timeout(self): self.tunnel_logger.info("KeyRequestCache: no response on key-request to %s", self.sock_addr) if self.info_hash in self.community.infohash_pex: self.tunnel_logger.info("Remove peer %s from the peer exchange cache" % repr(self.sock_addr)) peers = self.community.infohash_pex[self.info_hash] for peer in peers.copy(): peer_sock, _ = peer if self.sock_addr == peer_sock: self.community.infohash_pex[self.info_hash].remove(peer) class DHTRequestCache(RandomNumberCache): def __init__(self, community, circuit, info_hash): super(DHTRequestCache, self).__init__(community.request_cache, u"dht-request") self.circuit = circuit self.info_hash = info_hash def on_timeout(self): pass class KeyRelayCache(RandomNumberCache): def __init__(self, community, identifier, sock_addr): super(KeyRelayCache, self).__init__(community.request_cache, u"key-request") self.identifier = identifier self.return_sock_addr = sock_addr def on_timeout(self): pass class E2ERequestCache(RandomNumberCache): def __init__(self, community, info_hash, circuit, hop, sock_addr): super(E2ERequestCache, self).__init__(community.request_cache, u"e2e-request") self.circuit = circuit self.hop = hop self.info_hash = info_hash self.sock_addr = sock_addr def on_timeout(self): pass class LinkRequestCache(RandomNumberCache): def __init__(self, community, circuit, info_hash): super(LinkRequestCache, self).__init__(community.request_cache, u"link-request") self.circuit = circuit self.info_hash = info_hash def on_timeout(self): pass class HiddenTunnelCommunity(TunnelCommunity): def __init__(self, *args, **kwargs): super(HiddenTunnelCommunity, self).__init__(*args, **kwargs) self.session_keys = {} self.download_states = {} self.my_intro_points = defaultdict(list) self.my_download_points = {} self.intro_point_for = {} self.rendezvous_point_for = {} self.infohash_rp_circuits = defaultdict(list) self.infohash_ip_circuits = defaultdict(list) self.infohash_pex = defaultdict(set) self.dht_blacklist = defaultdict(list) self.last_dht_lookup = {} self.tunnel_logger = logging.getLogger('TunnelLogger') self.hops = {} def initiate_meta_messages(self): return super(HiddenTunnelCommunity, self).initiate_meta_messages() + \ [Message(self, u"dht-request", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), DHTRequestPayload(), self._generic_timeline_check, self.on_dht_request), Message(self, u"dht-response", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), DHTResponsePayload(), self.check_dht_response, self.on_dht_response), Message(self, u"key-request", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), KeyRequestPayload(), self.check_key_request, self.on_key_request), Message(self, u"key-response", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), KeyResponsePayload(), self.check_key_response, self.on_key_response), Message(self, u"create-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), CreateE2EPayload(), self.check_key_request, self.on_create_e2e), Message(self, u"created-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), CreatedE2EPayload(), self.check_created_e2e, self.on_created_e2e), Message(self, u"link-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), LinkE2EPayload(), self.check_link_e2e, self.on_link_e2e), Message(self, u"linked-e2e", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), LinkedE2EPayload(), self.check_linked_e2e, self.on_linked_e2e), Message(self, u"establish-intro", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), EstablishIntroPayload(), self.check_establish_intro, self.on_establish_intro), Message(self, u"intro-established", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), IntroEstablishedPayload(), self.check_intro_established, self.on_intro_established), Message(self, u"establish-rendezvous", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), EstablishRendezvousPayload(), self.check_establish_rendezvous, self.on_establish_rendezvous), Message(self, u"rendezvous-established", NoAuthentication(), PublicResolution(), DirectDistribution(), CandidateDestination(), RendezvousEstablishedPayload(), self.check_rendezvous_established, self.on_rendezvous_established)] def remove_circuit(self, circuit_id, additional_info='', destroy=False): super(HiddenTunnelCommunity, self).remove_circuit(circuit_id, additional_info, destroy) if circuit_id in self.my_intro_points: if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_IP_REMOVED, circuit_id) self.tunnel_logger.info("removed introduction point %d" % circuit_id) self.my_intro_points.pop(circuit_id) if circuit_id in self.my_download_points: if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_RP_REMOVED, circuit_id) self.tunnel_logger.info("removed rendezvous point %d" % circuit_id) self.my_download_points.pop(circuit_id) def ip_to_circuit_id(self, ip_str): return struct.unpack("!I", socket.inet_aton(ip_str))[0] def circuit_id_to_ip(self, circuit_id): return socket.inet_ntoa(struct.pack("!I", circuit_id)) @call_on_reactor_thread def monitor_downloads(self, dslist): # Monitor downloads with anonymous flag set, and build rendezvous/introduction points when needed. new_states = {} hops = {} for ds in dslist: download = ds.get_download() if download.get_hops() > 0: # Convert the real infohash to the infohash used for looking up introduction points real_info_hash = download.get_def().get_infohash() info_hash = self.get_lookup_info_hash(real_info_hash) hops[info_hash] = download.get_hops() new_states[info_hash] = ds.get_status() self.hops = hops for info_hash in set(new_states.keys() + self.download_states.keys()): new_state = new_states.get(info_hash, None) old_state = self.download_states.get(info_hash, None) state_changed = new_state != old_state # Stop creating introduction points if the download doesn't exist anymore if info_hash in self.infohash_ip_circuits and new_state is None: del self.infohash_ip_circuits[info_hash] # If the introducing circuit does not exist anymore or timed out: Build a new circuit if info_hash in self.infohash_ip_circuits: for (circuit_id, time_created) in self.infohash_ip_circuits[info_hash]: if circuit_id not in self.my_intro_points and time_created < time.time() - 30: self.infohash_ip_circuits[info_hash].remove((circuit_id, time_created)) if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_IP_RECREATE, circuit_id, info_hash.encode('hex')[:6]) self.tunnel_logger.info('Recreate the introducing circuit for %s' % info_hash.encode('hex')) self.create_introduction_point(info_hash) time_elapsed = (time.time() - self.last_dht_lookup.get(info_hash, 0)) force_dht_lookup = time_elapsed >= self.settings.dht_lookup_interval if (state_changed or force_dht_lookup) and \ (new_state == DLSTATUS_SEEDING or new_state == DLSTATUS_DOWNLOADING): self.tunnel_logger.info('Do dht lookup to find hidden services peers for %s' % info_hash.encode('hex')) self.do_dht_lookup(info_hash) if state_changed and new_state == DLSTATUS_SEEDING: self.create_introduction_point(info_hash) elif state_changed and new_state in [DLSTATUS_STOPPED, None]: if info_hash in self.infohash_pex: self.infohash_pex.pop(info_hash) for cid, info_hash_hops in self.my_download_points.items(): if info_hash_hops[0] == info_hash: self.remove_circuit(cid, 'download stopped', destroy=True) for cid, info_hash_list in self.my_intro_points.items(): for i in xrange(len(info_hash_list) - 1, -1, -1): if info_hash_list[i] == info_hash: info_hash_list.pop(i) if len(info_hash_list) == 0: self.remove_circuit(cid, 'all downloads stopped', destroy=True) self.download_states = new_states def do_dht_lookup(self, info_hash): # Select a circuit from the pool of exit circuits self.tunnel_logger.info("Do DHT request: select circuit") circuit = self.selection_strategy.select(None, self.hops[info_hash]) if not circuit: self.tunnel_logger.info("No circuit for dht-request") return False # Send a dht-request message over this circuit self.tunnel_logger.info("Do DHT request: send dht request") self.last_dht_lookup[info_hash] = time.time() cache = self.request_cache.add(DHTRequestCache(self, circuit, info_hash)) self.send_cell([Candidate(circuit.first_hop, False)], u"dht-request", (circuit.circuit_id, cache.number, info_hash)) def on_dht_request(self, messages): for message in messages: info_hash = message.payload.info_hash @call_on_reactor_thread def dht_callback(info_hash, peers, _): if not peers: peers = [] meta = self.get_meta_message(u'dht-response') circuit_id = message.payload.circuit_id # Send the list of peers for this info_hash back to the requester dht_response_message = meta.impl(distribution=(self.global_time,), payload=(message.payload.circuit_id, message.payload.identifier, message.payload.info_hash, encode(peers))) if circuit_id in self.exit_sockets: circuit = self.exit_sockets[circuit_id] circuit.tunnel_data(message.candidate.sock_addr, TUNNEL_PREFIX + dht_response_message.packet) else: self.tunnel_logger.info("Circuit %d is not existing anymore, can't send back dht-response" % circuit_id) self.tunnel_logger.info("Doing dht hidden seeders lookup for info_hash %s" % info_hash.encode('HEX')) self.dht_lookup(info_hash, dht_callback) def check_dht_response(self, messages): for message in messages: if not self.is_relay(message.payload.circuit_id): request = self.request_cache.get(u"dht-request", message.payload.identifier) if not request: yield DropMessage(message, "invalid dht-response identifier") continue yield message def on_dht_response(self, messages): for message in messages: self.request_cache.pop(u"dht-request", message.payload.identifier) info_hash = message.payload.info_hash _, peers = decode(message.payload.peers) peers = set(peers) self.tunnel_logger.info("Received dht response containing %d peers" % len(peers)) blacklist = self.dht_blacklist[info_hash] if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_DHT_LOOKUP, info_hash.encode('hex')[:6], peers) # cleanup dht_blacklist for i in xrange(len(blacklist) - 1, -1, -1): if time.time() - blacklist[i][0] > 60: blacklist.pop(i) exclude = [rp[2] for rp in self.my_download_points.values()] + [sock_addr for _, sock_addr in blacklist] for peer in peers: if peer not in exclude: self.tunnel_logger.info("Requesting key from dht peer %s", peer) # Blacklist this sock_addr for a period of at least 60s self.dht_blacklist[info_hash].append((time.time(), peer)) self.create_key_request(info_hash, peer) def create_key_request(self, info_hash, sock_addr): # 1. Select a circuit self.tunnel_logger.info("Create key request: select circuit") circuit = self.selection_strategy.select(None, self.hops[info_hash]) if not circuit: self.tunnel_logger.error("No circuit for key-request") return # 2. Send a key-request message self.tunnel_logger.info("Create key request: send key request") if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_KEY_REQUEST, info_hash.encode('hex')[:6], sock_addr) cache = self.request_cache.add(KeyRequestCache(self, circuit, sock_addr, info_hash)) meta = self.get_meta_message(u'key-request') message = meta.impl(distribution=(self.global_time,), payload=(cache.number, info_hash)) circuit.tunnel_data(sock_addr, TUNNEL_PREFIX + message.packet) def check_key_request(self, messages): for message in messages: self.tunnel_logger.info("Check key request") info_hash = message.payload.info_hash if not message.source.startswith(u"circuit_"): if info_hash not in self.intro_point_for: yield DropMessage(message, "not an intro point for this infohash") continue else: if info_hash not in self.session_keys: yield DropMessage(message, "not seeding this infohash") continue yield message def on_key_request(self, messages): for message in messages: if not message.source.startswith(u"circuit_"): # The intropoint receives the message over a socket, and forwards it to the seeder self.tunnel_logger.info("On key request: relay key request") cache = self.request_cache.add(KeyRelayCache(self, message.payload.identifier, message.candidate.sock_addr)) meta = self.get_meta_message(u'key-request') message = meta.impl(distribution=(self.global_time,), payload=(cache.number, message.payload.info_hash)) relay_circuit = self.intro_point_for[message.payload.info_hash] relay_circuit.tunnel_data(self.dispersy.wan_address, TUNNEL_PREFIX + message.packet) else: # The seeder responds with keys back to the intropoint info_hash = message.payload.info_hash key = self.session_keys[info_hash] circuit = self.circuits[int(message.source[8:])] if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_KEY_RESPOND, info_hash.encode('hex')[:6], circuit.circuit_id) self.tunnel_logger.info("On key request: respond with keys to %s" % repr(message.candidate.sock_addr)) meta = self.get_meta_message(u'key-response') pex_peers = self.infohash_pex.get(info_hash, set()) response = meta.impl(distribution=(self.global_time,), payload=( message.payload.identifier, key.pub().key_to_bin(), encode(list(pex_peers)[:50]))) circuit.tunnel_data(message.candidate.sock_addr, TUNNEL_PREFIX + response.packet) def check_key_response(self, messages): for message in messages: self.tunnel_logger.info("Check key response") request = self.request_cache.get(u"key-request", message.payload.identifier) if not request: yield DropMessage(message, "invalid key-response identifier") continue yield message def on_key_response(self, messages): for message in messages: if not message.source.startswith(u"circuit_"): cache = self.request_cache.pop(u"key-request", message.payload.identifier) self.tunnel_logger.info('On key response: forward message because received over socket') meta = self.get_meta_message(u'key-response') relay_message = meta.impl(distribution=(self.global_time,), payload=(cache.identifier, message.payload.public_key, message.payload.pex_peers)) self.send_packet([Candidate(cache.return_sock_addr, False)], u"key-response", TUNNEL_PREFIX + relay_message.packet) else: # pop key-request cache and notify gui self.tunnel_logger.info("On key response: received keys") cache = self.request_cache.pop(u"key-request", message.payload.identifier) _, pex_peers = decode(message.payload.pex_peers) if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_KEY_RESPONSE, cache.info_hash.encode('hex')[:6], cache.circuit.circuit_id) # Cache this peer and key for pex via key-response self.tunnel_logger.info("Added key to peer exchange cache") self.infohash_pex[cache.info_hash].add((cache.sock_addr, message.payload.public_key)) # Add received pex_peers to own list of known peers for this infohash for pex_peer in pex_peers: pex_peer_sock, pex_peer_key = pex_peer self.infohash_pex[cache.info_hash].add((pex_peer_sock, pex_peer_key)) # Initate end-to-end circuits for all known peers in the pex list for peer in self.infohash_pex[cache.info_hash]: peer_sock, peer_key = peer if cache.info_hash not in self.infohash_ip_circuits: self.tunnel_logger.info("Create end-to-end on pex_peer %s" % repr(peer_sock)) self.create_e2e(cache.circuit, peer_sock, cache.info_hash, peer_key) def create_e2e(self, circuit, sock_addr, info_hash, public_key): hop = Hop(self.crypto.key_from_public_bin(public_key)) hop.dh_secret, hop.dh_first_part = self.crypto.generate_diffie_secret() if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_CREATE_E2E, info_hash.encode('hex')[:6]) self.tunnel_logger.info("Create end to end initiated here") cache = self.request_cache.add(E2ERequestCache(self, info_hash, circuit, hop, sock_addr)) meta = self.get_meta_message(u'create-e2e') message = meta.impl(distribution=(self.global_time,), payload=(cache.number, info_hash, hop.node_id, hop.node_public_key, hop.dh_first_part)) circuit.tunnel_data(sock_addr, TUNNEL_PREFIX + message.packet) def on_create_e2e(self, messages): for message in messages: # if we have received this message over a socket, we need to forward it if not message.source.startswith(u"circuit_"): self.tunnel_logger.info('On create e2e: forward message because received over socket') relay_circuit = self.intro_point_for[message.payload.info_hash] relay_circuit.tunnel_data(message.candidate.sock_addr, TUNNEL_PREFIX + message.packet) else: self.tunnel_logger.info('On create e2e: create rendezvous point') self.create_rendezvous_point(self.hops[message.payload.info_hash], lambda rendezvous_point, message=message: self.create_created_e2e(rendezvous_point, message), message.payload.info_hash) def create_created_e2e(self, rendezvous_point, message): info_hash = message.payload.info_hash key = self.session_keys[info_hash] circuit = self.circuits[int(message.source[8:])] shared_secret, Y, AUTH = self.crypto.generate_diffie_shared_secret(message.payload.key, key) rendezvous_point.circuit.hs_session_keys = self.crypto.generate_session_keys(shared_secret) rp_info_enc = self.crypto.encrypt_str( encode((rendezvous_point.rp_info, rendezvous_point.cookie)), *self.get_session_keys(rendezvous_point.circuit.hs_session_keys, EXIT_NODE)) meta = self.get_meta_message(u'created-e2e') response = meta.impl(distribution=(self.global_time,), payload=( message.payload.identifier, Y, AUTH, rp_info_enc)) circuit.tunnel_data(message.candidate.sock_addr, TUNNEL_PREFIX + response.packet) def check_created_e2e(self, messages): for message in messages: if not message.source.startswith(u"circuit_"): yield DropMessage(message, "must be received from a circuit") continue request = self.request_cache.get(u"e2e-request", message.payload.identifier) if not request: yield DropMessage(message, "invalid created-e2e identifier") continue yield message def on_created_e2e(self, messages): for message in messages: cache = self.request_cache.pop(u"e2e-request", message.payload.identifier) shared_secret = self.crypto.verify_and_generate_shared_secret(cache.hop.dh_secret, message.payload.key, message.payload.auth, cache.hop.public_key.key.pk) session_keys = self.crypto.generate_session_keys(shared_secret) _, decoded = decode(self.crypto.decrypt_str(message.payload.rp_sock_addr, session_keys[EXIT_NODE], session_keys[EXIT_NODE_SALT])) rp_info, cookie = decoded if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_ONCREATED_E2E, cache.info_hash.encode('hex')[:6], rp_info) # Since it is the seeder that chose the rendezvous_point, we're essentially losing 1 hop of anonymity # at the downloader end. To compensate we add an extra hop. required_exit = Candidate(rp_info[:2], False) required_exit.associate(self.get_member(public_key=rp_info[2])) self.create_circuit(self.hops[cache.info_hash] + 1, CIRCUIT_TYPE_RENDEZVOUS, callback=lambda circuit, cookie=cookie, session_keys=session_keys, info_hash=cache.info_hash, sock_addr=cache.sock_addr: self.create_link_e2e(circuit, cookie, session_keys, info_hash, sock_addr), required_exit=required_exit, info_hash=cache.info_hash) def create_link_e2e(self, circuit, cookie, session_keys, info_hash, sock_addr): self.my_download_points[circuit.circuit_id] = (info_hash, circuit.goal_hops, sock_addr) circuit.hs_session_keys = session_keys cache = self.request_cache.add(LinkRequestCache(self, circuit, info_hash)) self.send_cell([Candidate(circuit.first_hop, False)], u'link-e2e', (circuit.circuit_id, cache.number, cookie)) def check_link_e2e(self, messages): for message in messages: if not message.source.startswith(u"circuit_"): yield DropMessage(message, "must be received from a circuit") continue if message.payload.cookie not in self.rendezvous_point_for: yield DropMessage(message, "not a rendezvous point for this cookie") continue circuit_id = int(message.source[8:]) if self.exit_sockets[circuit_id].enabled: yield DropMessage(message, "exit socket for circuit is enabled, cannot link") continue relay_circuit = self.rendezvous_point_for[message.payload.cookie] if self.exit_sockets[relay_circuit.circuit_id].enabled: yield DropMessage(message, "exit socket for relay_circuit is enabled, cannot link") continue yield message def on_link_e2e(self, messages): for message in messages: circuit = self.exit_sockets[int(message.source[8:])] relay_circuit = self.rendezvous_point_for[message.payload.cookie] self.remove_exit_socket(circuit.circuit_id, 'linking circuit') self.remove_exit_socket(relay_circuit.circuit_id, 'linking circuit') self.send_cell([message.candidate], u"linked-e2e", (circuit.circuit_id, message.payload.identifier)) self.relay_from_to[circuit.circuit_id] = RelayRoute(relay_circuit.circuit_id, relay_circuit.sock_addr, True, mid=relay_circuit.mid) self.relay_from_to[relay_circuit.circuit_id] = RelayRoute(circuit.circuit_id, circuit.sock_addr, True, mid=circuit.mid) def check_linked_e2e(self, messages): for message in messages: if not message.source.startswith(u"circuit_"): yield DropMessage(message, "must be received from a circuit") continue request = self.request_cache.get(u"link-request", message.payload.identifier) if not request: yield DropMessage(message, "invalid linked-e2e identifier") continue yield message def on_linked_e2e(self, messages): for message in messages: cache = self.request_cache.pop(u"link-request", message.payload.identifier) download = self.find_download(cache.info_hash) if download: download.add_peer((self.circuit_id_to_ip(cache.circuit.circuit_id), CIRCUIT_ID_PORT)) else: self.tunnel_logger.error('On linked e2e: could not find download!') def find_download(self, lookup_info_hash): for download in self.tribler_session.get_downloads(): if lookup_info_hash == self.get_lookup_info_hash(download.get_def().get_infohash()): return download def create_introduction_point(self, info_hash, amount=1): download = self.find_download(info_hash) if download: download.add_peer(('1.1.1.1', 1024)) else: self.tunnel_logger.error('When creating introduction point: could not find download!') return # Create a separate key per infohash if info_hash not in self.session_keys: self.session_keys[info_hash] = self.crypto.generate_key(u"curve25519") def callback(circuit): # We got a circuit, now let's create an introduction point circuit_id = circuit.circuit_id self.my_intro_points[circuit_id].append((info_hash)) cache = self.request_cache.add(IPRequestCache(self, circuit)) self.send_cell([Candidate(circuit.first_hop, False)], u'establish-intro', (circuit_id, cache.number, info_hash)) self.tunnel_logger.info("Established introduction tunnel %s", circuit_id) if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_IP_CREATED, info_hash.encode('hex')[:6], circuit_id) for _ in range(amount): # Create a circuit to the introduction point + 1 hop, to prevent the introduction # point from knowing what the seeder is seeding circuit_id = self.create_circuit(self.hops[info_hash] + 1, CIRCUIT_TYPE_IP, callback, info_hash=info_hash) self.infohash_ip_circuits[info_hash].append((circuit_id, time.time())) def check_establish_intro(self, messages): for message in messages: if not message.source.startswith(u"circuit_"): yield DropMessage(message, "did not receive this message from a circuit") continue yield message def on_establish_intro(self, messages): for message in messages: circuit = self.exit_sockets[int(message.source[8:])] self.intro_point_for[message.payload.info_hash] = circuit self.send_cell([message.candidate], u"intro-established", (circuit.circuit_id, message.payload.identifier)) self.dht_announce(message.payload.info_hash) def check_intro_established(self, messages): for message in messages: request = self.request_cache.get(u"establish-intro", message.payload.identifier) if not request: yield DropMessage(message, "invalid intro-established request identifier") continue yield message def on_intro_established(self, messages): for message in messages: self.request_cache.pop(u"establish-intro", message.payload.identifier) self.tunnel_logger.info("Got intro-established from %s", message.candidate) def create_rendezvous_point(self, hops, finished_callback, info_hash): def callback(circuit): # We got a circuit, now let's create a rendezvous point circuit_id = circuit.circuit_id rp = RendezvousPoint(circuit, os.urandom(20), finished_callback) cache = self.request_cache.add(RPRequestCache(self, rp)) if self.notifier: self.notifier.notify(NTFY_TUNNEL, NTFY_IP_CREATED, info_hash.encode('hex')[:6], circuit_id) self.send_cell([Candidate(circuit.first_hop, False)], u'establish-rendezvous', (circuit_id, cache.number, rp.cookie)) # create a new circuit to be used for transferring data circuit_id = self.create_circuit(hops, CIRCUIT_TYPE_RP, callback, info_hash=info_hash) self.infohash_rp_circuits[info_hash].append(circuit_id) def check_establish_rendezvous(self, messages): for message in messages: if not message.source.startswith(u"circuit_"): yield DropMessage(message, "did not receive this message from a circuit") continue yield message def on_establish_rendezvous(self, messages): for message in messages: circuit = self.exit_sockets[int(message.source[8:])] self.rendezvous_point_for[message.payload.cookie] = circuit self.send_cell([message.candidate], u"rendezvous-established", ( circuit.circuit_id, message.payload.identifier, self.dispersy.wan_address)) def check_rendezvous_established(self, messages): for message in messages: request = self.request_cache.get(u"establish-rendezvous", message.payload.identifier) if not request: yield DropMessage(message, "invalid rendezvous-established request identifier") continue yield message def on_rendezvous_established(self, messages): for message in messages: rp = self.request_cache.pop(u"establish-rendezvous", message.payload.identifier).rp sock_addr = message.payload.rendezvous_point_addr rp.rp_info = (sock_addr[0], sock_addr[1], self.crypto.key_to_bin(rp.circuit.hops[-1].public_key)) rp.finished_callback(rp) def dht_lookup(self, info_hash, cb): if self.tribler_session: self.tribler_session.lm.mainline_dht.get_peers(info_hash, Id(info_hash), cb) else: self.tunnel_logger.error("Need a Tribler session to lookup to the DHT") def dht_announce(self, info_hash): if self.tribler_session: def cb(info_hash, peers, source): self.tunnel_logger.info("Announced %s to the DHT", info_hash.encode('hex')) port = self.tribler_session.config.get_dispersy_port() self.tribler_session.lm.mainline_dht.get_peers(info_hash, Id(info_hash), cb, bt_port=port) else: self.tunnel_logger.error("Need a Tribler session to announce to the DHT") def get_lookup_info_hash(self, info_hash): return hashlib.sha1('tribler anonymous download' + info_hash.encode('hex')).digest()
vandenheuvel/tribler
Tribler/community/tunnel/hidden_community.py
Python
lgpl-3.0
38,711
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_hello', [dirname(__file__)]) except ImportError: import _hello return _hello if fp is not None: try: _mod = imp.load_module('_hello', fp, pathname, description) finally: fp.close() return _mod _hello = swig_import_helper() del swig_import_helper else: import _hello del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 def say_hello(*args): return _hello.say_hello(*args) say_hello = _hello.say_hello # This file is compatible with both classic and new-style classes.
haphaeu/yoshimi
C_Extension/SWIG/hello/hello.py
Python
lgpl-3.0
2,229
#! /usr/bin/python import time import zmq from HTMLParser import HTMLParser worker_addr = 'tcp://127.0.0.1:5557' results_addr = 'tcp://127.0.0.1:5558' class FindLinks(HTMLParser): links = [] def __init__(self): HTMLParser.__init__(self) def handle_starttag(self, tag, attrs): at = dict(attrs) if tag == 'a' and 'href' in at: self.links.push(at['href']) def parse(self, data): self.links = []; self.feed(data) return self.links link_finder = FindLinks() print "Starting parser..." ctx = zmq.Context() worker_sock = ctx.socket(zmq.PULL) results_sock = ctx.socket(zmq.PUSH) worker_sock.connect(worker_addr) results_sock.connect(results_addr) while True: print "Waiting for contents" data = worker_sock.recv_json() print "Got contents" print "Processing" urls = link_finder.parse(data['contents']) print "Processing complete" print "Sending next url(s)" for url in urls: results_sock.send_json({'type': 'fetch', 'url': url}) print "Sent"
grantmd/BrainSnow
parser.py
Python
unlicense
987
"""Conftest config for pytest.""" import pytest import rsum.loadapps from export.models import ExportDocument from home.models.profile import Profile rsum.loadapps.main() @pytest.fixture(scope="session") def profile(): """Create a profile for testing.""" prof = Profile.create() return prof @pytest.fixture(scope="session") def export_document(): """Return a DB object.""" return ExportDocument()
executive-consultants-of-los-angeles/rsum
rsum/export/tests/conftest.py
Python
unlicense
423
#!/usr/bin/env python # (c) 2013, Jesse Keating <[email protected]> # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. DOCUMENTATION = ''' --- inventory: rax short_description: Rackspace Public Cloud external inventory script description: - Generates inventory that Ansible can understand by making API request to Rackspace Public Cloud API - | When run against a specific host, this script returns the following variables: rax_os-ext-sts_task_state rax_addresses rax_links rax_image rax_os-ext-sts_vm_state rax_flavor rax_id rax_rax-bandwidth_bandwidth rax_user_id rax_os-dcf_diskconfig rax_accessipv4 rax_accessipv6 rax_progress rax_os-ext-sts_power_state rax_metadata rax_status rax_updated rax_hostid rax_name rax_created rax_tenant_id rax_loaded where some item can have nested structure. - credentials are set in a credentials file version_added: None options: creds_file: description: - File to find the Rackspace Public Cloud credentials in required: true default: null region: description: - An optional value to narrow inventory scope, i.e. DFW, ORD, IAD, LON required: false default: null authors: - Jesse Keating <[email protected]> - Paul Durivage <[email protected]> - Matt Martz <[email protected]> notes: - RAX_CREDS_FILE is an optional environment variable that points to a pyrax-compatible credentials file. - If RAX_CREDS_FILE is not supplied, rax.py will look for a credentials file at ~/.rackspace_cloud_credentials. - See https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#authenticating - RAX_REGION is an optional environment variable to narrow inventory search scope - RAX_REGION, if used, needs a value like ORD, DFW, SYD (a Rackspace datacenter) and optionally accepts a comma-separated list - RAX_ENV is an environment variable that will use an environment as configured in ~/.pyrax.cfg, see https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#pyrax-configuration - RAX_META_PREFIX is an environment variable that changes the prefix used for meta key/value groups. For compatibility with ec2.py set to RAX_META_PREFIX=tag requirements: [ "pyrax" ] examples: - description: List server instances code: RAX_CREDS_FILE=~/.raxpub rax.py --list - description: List servers in ORD datacenter only code: RAX_CREDS_FILE=~/.raxpub RAX_REGION=ORD rax.py --list - description: List servers in ORD and DFW datacenters code: RAX_CREDS_FILE=~/.raxpub RAX_REGION=ORD,DFW rax.py --list - description: Get server details for server named "server.example.com" code: RAX_CREDS_FILE=~/.raxpub rax.py --host server.example.com ''' import os import re import sys import argparse import collections from types import NoneType try: import json except: import simplejson as json try: import pyrax except ImportError: print('pyrax is required for this module') sys.exit(1) NON_CALLABLES = (basestring, bool, dict, int, list, NoneType) def rax_slugify(value): return 'rax_%s' % (re.sub('[^\w-]', '_', value).lower().lstrip('_')) def to_dict(obj): instance = {} for key in dir(obj): value = getattr(obj, key) if (isinstance(value, NON_CALLABLES) and not key.startswith('_')): key = rax_slugify(key) instance[key] = value return instance def host(regions, hostname): hostvars = {} for region in regions: # Connect to the region cs = pyrax.connect_to_cloudservers(region=region) for server in cs.servers.list(): if server.name == hostname: for key, value in to_dict(server).items(): hostvars[key] = value # And finally, add an IP address hostvars['ansible_ssh_host'] = server.accessIPv4 print(json.dumps(hostvars, sort_keys=True, indent=4)) def _list(regions): groups = collections.defaultdict(list) hostvars = collections.defaultdict(dict) images = {} # Go through all the regions looking for servers for region in regions: # Connect to the region cs = pyrax.connect_to_cloudservers(region=region) for server in cs.servers.list(): # Create a group on region groups[region].append(server.name) # Check if group metadata key in servers' metadata group = server.metadata.get('group') if group: groups[group].append(server.name) for extra_group in server.metadata.get('groups', '').split(','): if extra_group: groups[extra_group].append(server.name) # Add host metadata for key, value in to_dict(server).items(): hostvars[server.name][key] = value hostvars[server.name]['rax_region'] = region for key, value in server.metadata.iteritems(): prefix = os.getenv('RAX_META_PREFIX', 'meta') groups['%s_%s_%s' % (prefix, key, value)].append(server.name) groups['instance-%s' % server.id].append(server.name) groups['flavor-%s' % server.flavor['id']].append(server.name) try: imagegroup = 'image-%s' % images[server.image['id']] groups[imagegroup].append(server.name) groups['image-%s' % server.image['id']].append(server.name) except KeyError: try: image = cs.images.get(server.image['id']) except cs.exceptions.NotFound: groups['image-%s' % server.image['id']].append(server.name) else: images[image.id] = image.human_id groups['image-%s' % image.human_id].append(server.name) groups['image-%s' % server.image['id']].append(server.name) # And finally, add an IP address hostvars[server.name]['ansible_ssh_host'] = server.accessIPv4 if hostvars: groups['_meta'] = {'hostvars': hostvars} print(json.dumps(groups, sort_keys=True, indent=4)) def parse_args(): parser = argparse.ArgumentParser(description='Ansible Rackspace Cloud ' 'inventory module') group = parser.add_mutually_exclusive_group(required=True) group.add_argument('--list', action='store_true', help='List active servers') group.add_argument('--host', help='List details about the specific host') return parser.parse_args() def setup(): default_creds_file = os.path.expanduser('~/.rackspace_cloud_credentials') env = os.getenv('RAX_ENV', None) if env: pyrax.set_environment(env) keyring_username = pyrax.get_setting('keyring_username') # Attempt to grab credentials from environment first try: creds_file = os.path.expanduser(os.environ['RAX_CREDS_FILE']) except KeyError, e: # But if that fails, use the default location of # ~/.rackspace_cloud_credentials if os.path.isfile(default_creds_file): creds_file = default_creds_file elif not keyring_username: sys.stderr.write('No value in environment variable %s and/or no ' 'credentials file at %s\n' % (e.message, default_creds_file)) sys.exit(1) identity_type = pyrax.get_setting('identity_type') pyrax.set_setting('identity_type', identity_type or 'rackspace') region = pyrax.get_setting('region') try: if keyring_username: pyrax.keyring_auth(keyring_username, region=region) else: pyrax.set_credential_file(creds_file, region=region) except Exception, e: sys.stderr.write("%s: %s\n" % (e, e.message)) sys.exit(1) regions = [] if region: regions.append(region) else: for region in os.getenv('RAX_REGION', 'all').split(','): region = region.strip().upper() if region == 'ALL': regions = pyrax.identity.regions break elif region not in pyrax.identity.regions: sys.stderr.write('Unsupported region %s' % region) sys.exit(1) elif region not in regions: regions.append(region) return regions def main(): args = parse_args() regions = setup() if args.list: _list(regions) elif args.host: host(regions, args.host) sys.exit(0) if __name__ == '__main__': main()
sivel/ansible-samples
rax-httpbin/inventory/rax.py
Python
unlicense
9,478
from bitmovin.resources.models import TextFilter from ..rest_service import RestService class Text(RestService): BASE_ENDPOINT_URL = 'encoding/filters/text' def __init__(self, http_client): super().__init__(http_client=http_client, relative_url=self.BASE_ENDPOINT_URL, class_=TextFilter)
bitmovin/bitmovin-python
bitmovin/services/filters/text_filter_service.py
Python
unlicense
307
import os import errno import json import shlex from pathlib import Path def shquote(string): return shlex.quote(string) def to_string(x): if isinstance(x, bytes): return x.decode("utf-8") return x def jsondump(x): j = json.dumps(x, sort_keys=True, indent=4, separators=(",", ": ")) return to_string(j) + "\n" def file_exists(fpath): return os.path.exists(fpath) def resolve_path_pathlib(p): p = Path(p).expanduser().resolve() real = os.path.realpath(str(p)) real = Path(real) return real def resolve_path(p): p = resolve_path_pathlib(p) return str(p) def unresolve(path, homepath): if path.startswith(homepath): path = path.replace(homepath, "~", 1) return path def create_symlink( target, link_name, fail_if_exists=False, temporary_suffix="_temporary_symlink" ): """ Creates a symlink. If a symlink of this link name already exists, replace it. """ if fail_if_exists and file_exists(link_name): raise OSError( "won't create symlink cos file already exists: {}".format(link_name) ) tempname = link_name + temporary_suffix os.symlink(target, tempname) os.rename(tempname, link_name) def mkdir_p(path): try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): pass else: raise
djrobstep/autovenv
autovenv/util.py
Python
unlicense
1,429
# -------------------------------------------------------------------------- # Logic for the 'init' command. # -------------------------------------------------------------------------- import os import sys import shutil from .. import utils # Command help text. helptext = """ Usage: %s init [FLAGS] [ARGUMENTS] Initialize a new site directory. If a directory path is specified, that directory will be created and initialized. Otherwise, the current directory will be initialized. Existing files will not be overwritten. Arguments: [directory] Directory name. Defaults to the current directory. Flags: --help Print this command's help text and exit. """ % os.path.basename(sys.argv[0]) # Command callback. def callback(parser): arkdir = os.path.dirname(os.path.dirname(__file__)) inidir = os.path.join(arkdir, 'ini') dstdir = parser.get_args()[0] if parser.has_args() else '.' os.makedirs(dstdir, exist_ok=True) os.chdir(dstdir) for name in ('ext', 'inc', 'lib', 'out', 'res', 'src'): os.makedirs(name, exist_ok=True) utils.copydir(inidir, '.', noclobber=True)
dmulholland/ark
malt/cli/init.py
Python
unlicense
1,141
import opencoinage BASE = 'http://opencoinage.org/rdf/' AMOUNT = BASE + 'amount' EXPIRES = BASE + 'expires' IDENTIFIER = BASE + 'identifier' ISSUER = BASE + 'issuer' SIGNATURE = BASE + 'signature' class Vocabulary(object): """An RDFS vocabulary for digital currency issuance.""" pass
opencoinage/opencoinage
src/python/opencoinage/vocabulary.py
Python
unlicense
309
import importlib import json import traceback import time import modular def trackTimeStart(mud, _): if 'honing' in mud.state: skill, counter = mud.state['honing'] mud.send(skill) mud.state['honing'] = (skill, counter + 1) return mud.state['task_start_time'] = time.time() def hone(mud, groups): skill = groups[0] mud.state['honing'] = (skill, 1) mud.send(skill) honeToType = { 'Achilles Armor': 'spell', 'Acid Arrow': 'spell', 'Acid Fog': 'spell', 'Acid Spray': 'spell', 'Add Limb': 'spell', 'Advancement': 'spell', 'Alarm': 'spell', 'Alternate Reality': 'spell', 'Alter Substance': 'spell', 'Analyze Item': 'spell', 'Anchor': 'spell', 'Animate Item': 'spell', 'Animate Weapon': 'spell', 'Anti Plant Shell': 'spell', 'Arcane Mark': 'spell', 'Arcane Possession': 'spell', 'Arms Length': 'spell', 'a Spell': 'spell', 'Astral Step': 'spell', 'Augury': 'spell', 'Awe': 'spell', 'Awe Other': 'spell', 'Big Mouth': 'spell', 'Blademouth': 'spell', 'Blind': 'spell', 'Blink': 'spell', 'Blur': 'spell', 'Brainwash': 'spell', 'Breadcrumbs': 'spell', 'Burning Hands': 'spell', 'Cause Stink': 'spell', 'Chain Lightning': 'spell', 'Change Sex': 'spell', 'Channeled Missiles': 'spell', 'Chant Shield': 'spell', 'Charm': 'spell', 'Charm Ward': 'spell', 'Choke': 'spell', 'Claireaudience': 'spell', 'Clairevoyance': 'spell', 'Clan Donate': 'spell', 'ClanEnchant Acid': 'spell', 'ClanEnchant Cold': 'spell', 'ClanEnchant Disease': 'spell', 'ClanEnchant Electric': 'spell', 'ClanEnchant Fire': 'spell', 'ClanEnchant Gas': 'spell', 'ClanEnchant Mind': 'spell', 'ClanEnchant Paralysis': 'spell', 'ClanEnchant Poison': 'spell', 'ClanEnchant Water': 'spell', 'Clan Experience': 'spell', 'Clan Home': 'spell', 'Clan Ward': 'spell', 'Clarify Scroll': 'spell', 'Clog Mouth': 'spell', 'Clone': 'spell', 'Cloudkill': 'spell', 'Cogniportive': 'spell', 'Color Spray': 'spell', 'Combat Precognition': 'spell', 'Command': 'spell', 'Comprehend Languages': 'spell', 'Confusion': 'spell', 'Conjure Ammunition': 'spell', 'Conjure Nexus': 'spell', 'Continual Light': 'spell', 'Counterspell': 'spell', 'Darkness': 'spell', 'Darkness Globe': 'spell', 'Daydream': 'spell', 'Deaden Smell': 'spell', 'Deafen': 'spell', 'Death Warning': 'spell', 'Delay': 'spell', 'Delirium': 'spell', 'Delude': 'spell', 'Demon Gate': 'spell', 'Destroy Object': 'spell', 'Detect Ambush': 'spell', 'Detect Gold': 'spell', 'Detect Hidden': 'spell', 'Detect Invisible': 'spell', 'Detect Magic': 'spell', 'Detect Metal': 'spell', 'Detect Poison': 'spell', 'Detect Scrying': 'spell', 'Detect Sentience': 'spell', 'Detect Traps': 'spell', 'Detect Undead': 'spell', 'Detect Water': 'spell', 'Detect Weaknesses': 'spell', 'Disenchant': 'spell', 'Disenchant Wand': 'spell', 'Disguise Other': 'spell', 'Disguise Self': 'spell', 'Disguise Undead': 'spell', 'Disintegrate': 'spell', 'Dismissal': 'spell', 'Dispel Divination': 'spell', 'Dispel Magic': 'spell', 'Distant Vision': 'spell', 'Divine Beauty': 'spell', 'Divining Eye': 'spell', 'Dragonfire': 'spell', 'Dream': 'spell', 'Duplicate': 'spell', 'Earthquake': 'spell', 'Elemental Storm': 'spell', 'Enchant Armor': 'spell', 'Enchant Arrows': 'spell', 'Enchant Clan Equipment Base Model': 'spell', 'Enchant Wand': 'spell', 'Enchant Weapon': 'spell', 'Endless Hunger': 'spell', 'Endless Road': 'spell', 'Enlarge Object': 'spell', 'Enlightenment': 'spell', 'Ensnare': 'spell', 'Enthrall': 'spell', 'Erase Scroll': 'spell', 'Exhaustion': 'spell', 'Fabricate': 'spell', 'Faerie Fire': 'spell', 'Faerie Fog': 'spell', 'Fake Armor': 'spell', 'Fake Food': 'spell', 'Fake Spring': 'spell', 'Fake Weapon': 'spell', 'Farsight': 'spell', 'Fatigue': 'spell', 'Fear': 'spell', 'Feather Fall': 'spell', 'Feeblemind': 'spell', 'Feel The Void': 'spell', 'Feign Death': 'spell', 'Feign Invisibility': 'spell', 'Find Directions': 'spell', 'Find Familiar': 'spell', 'Fireball': 'spell', 'Flagportation': 'spell', 'Flameshield': 'spell', 'Flaming Arrows': 'spell', 'Flaming Ensnarement': 'spell', 'Flaming Sword': 'spell', 'Flesh Stone': 'spell', 'Floating Disc': 'spell', 'Fly': 'spell', 'Fools Gold': 'spell', 'Forceful Hand': 'spell', 'Forecast Weather': 'spell', 'Forget': 'spell', 'Forked Lightning': 'spell', 'Frailty': 'spell', 'Free Movement': 'spell', 'Frenzy': 'spell', 'Friends': 'spell', 'Frost': 'spell', 'Future Death': 'spell', 'Gate': 'spell', 'Geas': 'spell', 'Ghost Sound': 'spell', 'Giant Strength': 'spell', 'Globe': 'spell', 'Grace Of The Cat': 'spell', 'Gravity Slam': 'spell', 'Grease': 'spell', 'Greater Enchant Armor': 'spell', 'Greater Enchant Weapon': 'spell', 'Greater Globe': 'spell', 'Greater Image': 'spell', 'Greater Invisibility': 'spell', 'Group Status': 'spell', 'Grow': 'spell', 'Gust of Wind': 'spell', 'Harden Bullets': 'spell', 'Haste': 'spell', 'Hear Thoughts': 'spell', 'Heat Metal': 'spell', 'Helping Hand': 'spell', 'Hold': 'spell', 'Hungerless': 'spell', 'Ice Lance': 'spell', 'Ice Sheet': 'spell', 'Ice Storm': 'spell', 'Identify Object': 'spell', 'Ignite': 'spell', 'Illusory Disease': 'spell', 'Illusory Wall': 'spell', 'Immunity': 'spell', 'Imprisonment': 'spell', 'Improved Clan Ward': 'spell', 'Improved Invisibility': 'spell', 'Improved Planarmorph': 'spell', 'Improved Polymorph': 'spell', 'Improved Repairing Aura': 'spell', 'Increase Gravity': 'spell', 'Infravision': 'spell', 'Insatiable Thirst': 'spell', 'Insect Plague': 'spell', 'Invisibility': 'spell', 'Invisibility Sphere': 'spell', 'Iron Grip': 'spell', 'Irritation': 'spell', 'Keen Edge': 'spell', 'Kinetic Bubble': 'spell', 'Knock': 'spell', 'Know Alignment': 'spell', 'Know Bliss': 'spell', 'Know Fate': 'spell', 'Know Origin': 'spell', 'Know Pain': 'spell', 'Know Value': 'spell', 'Laughter': 'spell', 'Lead Foot': 'spell', 'Lesser Image': 'spell', 'Levitate': 'spell', 'Light': 'spell', 'Light Blindness': 'spell', 'Lighten Item': 'spell', 'Lighthouse': 'spell', 'Lightning Bolt': 'spell', 'Light Sensitivity': 'spell', 'Limb Rack': 'spell', 'Limited Wish': 'spell', 'Locate Object': 'spell', 'Lower Resistance': 'spell', 'Mage Armor': 'spell', 'Mage Claws': 'spell', 'Magical Aura': 'spell', 'Magic Bullets': 'spell', 'Magic Item': 'spell', 'Magic Missile': 'spell', 'Magic Mouth': 'spell', 'Major Mana Shield': 'spell', 'Mana Burn': 'spell', 'Mana Shield': 'spell', 'Marker Portal': 'spell', 'Marker Summoning': 'spell', 'Mass Disintegrate': 'spell', 'Mass FeatherFall': 'spell', 'Mass Fly': 'spell', 'Mass Haste': 'spell', 'Mass Hold': 'spell', 'Mass Invisibility': 'spell', 'Mass Repairing Aura': 'spell', 'Mass Sleep': 'spell', 'Mass Slow': 'spell', 'Mass Waterbreath': 'spell', 'Meld': 'spell', 'Mend': 'spell', 'Meteor Storm': 'spell', 'Mind Block': 'spell', 'Mind Fog': 'spell', 'Mind Light': 'spell', 'Minor Image': 'spell', 'Minor Mana Shield': 'spell', 'Mirage': 'spell', 'Mirror Image': 'spell', 'Misstep': 'spell', 'Monster Summoning': 'spell', 'Mute': 'spell', 'Mystic Loom': 'spell', 'Mystic Shine': 'spell', 'Natural Communion': 'spell', 'Nightmare': 'spell', 'Obscure Self': 'spell', 'Pass Door': 'spell', 'Permanency': 'spell', 'Phantasm': 'spell', 'Phantom Hound': 'spell', 'Planar Banish': 'spell', 'Planar Block': 'spell', 'Planar Bubble': 'spell', 'Planar Burst': 'spell', 'Planar Extension': 'spell', 'Planarmorph': 'spell', 'Planarmorph Self': 'spell', 'Planar Timer': 'spell', 'Planeshift': 'spell', 'Pocket': 'spell', 'Polymorph': 'spell', 'Polymorph Object': 'spell', 'Polymorph Self': 'spell', 'Portal': 'spell', 'Portal Other': 'spell', 'Prayer Shield': 'spell', 'Prestidigitation': 'spell', 'Produce Flame': 'spell', 'Prying Eye': 'spell', 'Purge Invisibility': 'spell', 'Read Magic': 'spell', 'Recharge Wand': 'spell', 'Refit': 'spell', 'Reinforce': 'spell', 'Repairing Aura': 'spell', 'Repulsion': 'spell', 'Resist Acid': 'spell', 'Resist Arrows': 'spell', 'Resist Bludgeoning': 'spell', 'Resist Cold': 'spell', 'Resist Disease': 'spell', 'Resist Divination': 'spell', 'Resist Electricity': 'spell', 'Resist Fire': 'spell', 'Resist Gas': 'spell', 'Resist Indignities': 'spell', 'Resist Magic Missiles': 'spell', 'Resist Paralysis': 'spell', 'Resist Petrification': 'spell', 'Resist Piercing': 'spell', 'Resist Poison': 'spell', 'Resist Slashing': 'spell', 'Returning': 'spell', 'Reverse Gravity': 'spell', 'Rogue Limb': 'spell', 'Scatter': 'spell', 'Scribe': 'spell', 'Scry': 'spell', 'See Aura': 'spell', 'Shape Object': 'spell', 'Shatter': 'spell', 'Shelter': 'spell', 'Shield': 'spell', 'Shocking Grasp': 'spell', 'Shockshield': 'spell', 'Shoddy Aura': 'spell', 'Shove': 'spell', 'Shrink': 'spell', 'Shrink Mouth': 'spell', 'Silence': 'spell', 'Simulacrum': 'spell', 'Siphon': 'spell', 'Sleep': 'spell', 'Slow': 'spell', 'Slow Projectiles': 'spell', 'Solve Maze': 'spell', 'Sonar': 'spell', 'Song Shield': 'spell', 'Spellbinding': 'spell', 'Spell Turning': 'spell', 'Spider Climb': 'spell', 'Spook': 'spell', 'Spotters Orders': 'spell', 'Spying Stone': 'spell', 'Stinking Cloud': 'spell', 'Stone Flesh': 'spell', 'Stoneskin': 'spell', 'Summon': 'spell', 'Summon Army': 'spell', 'Summon Companion': 'spell', 'Summon Enemy': 'spell', 'Summon Flyer': 'spell', 'Summoning Ward': 'spell', 'Summon Marker': 'spell', 'Summon Steed': 'spell', 'Superior Image': 'spell', 'Telepathy': 'spell', 'Teleport': 'spell', 'Teleportation Ward': 'spell', 'Teleport Object': 'spell', 'Thirstless': 'spell', 'Timeport': 'spell', 'Time Stop': 'spell', 'Toadstool': 'spell', 'Torture': 'spell', 'Tourettes': 'spell', 'Transformation': 'spell', 'True Sight': 'spell', 'Ugliness': 'spell', 'Untraceable': 'spell', 'Ventriloquate': 'spell', 'Wall of Air': 'spell', 'Wall of Darkness': 'spell', 'Wall of Fire': 'spell', 'Wall of Force': 'spell', 'Wall of Ice': 'spell', 'Wall of Stone': 'spell', 'Ward Area': 'spell', 'Watchful Hound': 'spell', 'Water Breathing': 'spell', 'Water Cannon': 'spell', 'Weaken': 'spell', 'Weakness to Acid': 'spell', 'Weakness to Cold': 'spell', 'Weakness to Electricity': 'spell', 'Weakness to Fire': 'spell', 'Weakness to Gas': 'spell', 'Web': 'spell', 'Well Dressed': 'spell', 'Wish': 'spell', 'Wizard Lock': 'spell', 'Wizards Chest': 'spell', 'Word of Recall': 'spell', 'Youth': 'spell', 'Acid Rain': 'chants', 'Acid Ward': 'chants', 'Air Wall': 'chants', 'Airy Aura': 'chants', 'Alter Time': 'chants', 'Animal Companion': 'chants', 'Animal Friendship': 'chants', 'Animal Growth': 'chants', 'Animal Spy': 'chants', 'Ant Train': 'chants', 'Aquatic Pass': 'chants', 'Astral Projection': 'chants', 'Barkskin': 'chants', 'Bestow Name': 'chants', 'Bite': 'chants', 'Blight': 'chants', 'Bloodhound': 'chants', 'Bloody Water': 'chants', 'Blue Moon': 'chants', 'Boulderbash': 'chants', 'Brittle': 'chants', 'Brown Mold': 'chants', 'Bull Strength': 'chants', 'Burrowspeak': 'chants', 'Call Companion': 'chants', 'Call Mate': 'chants', 'Calm Animal': 'chants', 'Calm Seas': 'chants', 'Calm Weather': 'chants', 'Calm Wind': 'chants', 'Camelback': 'chants', 'Capsize': 'chants', 'Cats Grace': 'chants', 'Cave Fishing': 'chants', 'Cave-In': 'chants', 'Chant Ward': 'chants', 'Charge Metal': 'chants', 'Charm Animal': 'chants', 'Charm Area': 'chants', 'Cheetah Burst': 'chants', 'Chlorophyll': 'chants', 'Clear Moon': 'chants', 'Cloud Walk': 'chants', 'Cold Moon': 'chants', 'Cold Ward': 'chants', 'Control Fire': 'chants', 'Control Plant': 'chants', 'Control Weather': 'chants', 'Crossbreed': 'chants', 'Crystal Growth': 'chants', 'Darkvision': 'chants', 'Death Moon': 'chants', 'Deep Darkness': 'chants', 'Deep Thoughts': 'chants', 'Dehydrate': 'chants', 'Delay Poison': 'chants', 'Den': 'chants', 'Distant Fungal Growth': 'chants', 'Distant Growth': 'chants', 'Distant Ingrowth': 'chants', 'Distant Overgrowth': 'chants', 'Distant Wind Color': 'chants', 'Dragonsight': 'chants', 'Drifting': 'chants', 'Drown': 'chants', 'Druidic Connection': 'chants', 'Druidic Pass': 'chants', 'Eaglesight': 'chants', 'Earthfeed': 'chants', 'Earthpocket': 'chants', 'Eel Shock': 'chants', 'Eighth Totem': 'chants', 'Eleventh Totem': 'chants', 'Enchant Shards': 'chants', 'Endure Rust': 'chants', 'Enhance Body': 'chants', 'Explosive Decompression': 'chants', 'Favorable Winds': 'chants', 'Feeding Frenzy': 'chants', 'Feel Cold': 'chants', 'Feel Electricity': 'chants', 'Feel Heat': 'chants', 'Feel Hunger': 'chants', 'Feralness': 'chants', 'Fertile Cavern': 'chants', 'Fertility': 'chants', 'Fertilization': 'chants', 'Fifth Totem': 'chants', 'Filter Water': 'chants', 'Find Driftwood': 'chants', 'Find Gem': 'chants', 'Find Mate': 'chants', 'Find Ore': 'chants', 'Find Plant': 'chants', 'Fire Ward': 'chants', 'Fish Gills': 'chants', 'Flippers': 'chants', 'Flood': 'chants', 'Fodder Signal': 'chants', 'Fortify Food': 'chants', 'Fourth Totem': 'chants', 'Free Vine': 'chants', 'Fungal Bloom': 'chants', 'Fungus Feet': 'chants', 'Fur Coat': 'chants', 'Gas Ward': 'chants', 'Give Life': 'chants', 'Golem Form': 'chants', 'Goodberry': 'chants', 'Grapevine': 'chants', 'Grove Walk': 'chants', 'Grow Club': 'chants', 'Grow Food': 'chants', 'Grow Forest': 'chants', 'Grow Item': 'chants', 'Grow Oak': 'chants', 'Harden Skin': 'chants', 'Hawkeye': 'chants', 'Healing Moon': 'chants', 'Hibernation': 'chants', 'High Tide': 'chants', 'Hippieness': 'chants', 'Hold Animal': 'chants', 'Homeopathy': 'chants', 'Honey Moon': 'chants', 'Howlers Moon': 'chants', 'Illusionary Forest': 'chants', 'Killer Vine': 'chants', # 'Know Plants': 'chants', - scholar 'Labyrinth': 'chants', 'Land Legs': 'chants', 'Land Lungs': 'chants', 'Life Echoes': 'chants', 'Lightning Ward': 'chants', 'Locate Animals': 'chants', 'Locate Plants': 'chants', 'Love Moon': 'chants', 'Magma Cannon': 'chants', 'Magnetic Earth': 'chants', 'Magnetic Field': 'chants', 'Manic Moon': 'chants', 'Mass Fungal Growth': 'chants', 'Metal Mold': 'chants', 'Meteor Strike': 'chants', 'Mold': 'chants', 'Moonbeam': 'chants', 'Moon Calf': 'chants', 'Move The Sky': 'chants', 'Muddy Grounds': 'chants', 'My Plants': 'chants', 'Natural Balance': 'chants', 'Natural Order': 'chants', 'Nectar': 'chants', 'Neutralize Poison': 'chants', 'Ninth Totem': 'chants', 'Pack Call': 'chants', 'Pale Moon': 'chants', 'Peace Moon': 'chants', 'Phosphorescence': 'chants', 'Piercing Moon': 'chants', 'Plane Walking': 'chants', 'Plant Bed': 'chants', 'Plant Choke': 'chants', 'Plant Constriction': 'chants', 'Plant Form': 'chants', 'Plant Maze': 'chants', 'Plant Pass': 'chants', 'Plant Self': 'chants', 'Plant Snare': 'chants', 'Plant Trap': 'chants', 'Plant Wall': 'chants', 'Poisonous Vine': 'chants', 'Prayer Ward': 'chants', 'Predict Phase': 'chants', 'Predict Tides': 'chants', 'Predict Weather': 'chants', 'Purple Moon': 'chants', 'Quake': 'chants', 'Reabsorb': 'chants', 'Read Runes': 'chants', 'Recharge Shards': 'chants', 'Recover Voice': 'chants', 'Red Moon': 'chants', 'Reef Walking': 'chants', 'Refresh Runes': 'chants', 'Reincarnation': 'chants', 'Rend': 'chants', 'Repel Vermin': 'chants', 'Restore Mana': 'chants', 'Resuscitate Companion': 'chants', 'Rockfeet': 'chants', 'Rockthought': 'chants', 'Root': 'chants', 'Rust Curse': 'chants', 'Sacred Earth': 'chants', 'Sapling Workers': 'chants', 'Sea Lore': 'chants', 'Second Totem': 'chants', 'Sense Age': 'chants', 'Sense Fluids': 'chants', 'Sense Gems': 'chants', 'Sense Metal': 'chants', 'Sense Ores': 'chants', 'Sense Plants': 'chants', 'Sense Poison': 'chants', 'Sense Pregnancy': 'chants', 'Sense Sentience': 'chants', 'Sense Water': 'chants', 'Seventh Totem': 'chants', 'Shamblermorph': 'chants', 'Shapelessness': 'chants', 'Shape Shift': 'chants', 'Shillelagh': 'chants', 'Sift Wrecks': 'chants', 'Sixth Totem': 'chants', 'Snatch Light': 'chants', 'Snuff Flame': 'chants', 'Soaring Eagle': 'chants', 'Song Ward': 'chants', 'Speak With Animals': 'chants', 'Speed Aging': 'chants', 'Speed Birth': 'chants', 'Speed Time': 'chants', 'Spell Ward': 'chants', 'Star Gazing': 'chants', 'Stone Friend': 'chants', 'Stonewalking': 'chants', 'Strike Barren': 'chants', 'Summon Animal': 'chants', 'Summon Chum': 'chants', 'Summon Cold': 'chants', 'Summon Coral': 'chants', 'Summon Dustdevil': 'chants', 'Summon Elemental': 'chants', 'Summon Fear': 'chants', 'Summon Fire': 'chants', 'Summon Flower': 'chants', 'Summon FlyTrap': 'chants', 'Summon Food': 'chants', 'Summon Fungus': 'chants', 'Summon Heat': 'chants', 'Summon Herbs': 'chants', 'Summon Houseplant': 'chants', 'Summon Insects': 'chants', 'Summon Ivy': 'chants', 'Summon Jellyfish': 'chants', 'Summon Moon': 'chants', 'Summon Mount': 'chants', 'Summon Peace': 'chants', 'Summon Plague': 'chants', 'Summon Plants': 'chants', 'Summon Pool': 'chants', 'Summon Rain': 'chants', 'Summon Rock Golem': 'chants', 'Summon Sapling': 'chants', 'Summon School': 'chants', 'Summon Seaweed': 'chants', 'Summon Seeds': 'chants', 'Summon Sun': 'chants', 'Summon Tree': 'chants', 'Summon Vine': 'chants', 'Summon Water': 'chants', 'Summon Wind': 'chants', 'Sunbeam': 'chants', 'Sunray': 'chants', 'Sweet Scent': 'chants', 'Tangle': 'chants', 'Tap Grapevine': 'chants', 'Tenth Totem': 'chants', 'Tether': 'chants', 'Third Totem': 'chants', 'Thorns': 'chants', 'Tidal Wave': 'chants', 'Tide Moon': 'chants', 'Treeform': 'chants', 'Treehouse': 'chants', 'Treemind': 'chants', 'Treemorph': 'chants', 'Tremor Sense': 'chants', 'Tsunami': 'chants', 'Unbreakable': 'chants', 'Underwater Action': 'chants', 'Unicorns Health': 'chants', 'Uplift': 'chants', 'Vampire Vine': 'chants', 'Venomous Bite': 'chants', 'Venom Ward': 'chants', 'Vine Mass': 'chants', 'Vine Weave': 'chants', 'Volcanic Chasm': 'chants', 'Waking Moon': 'chants', 'Warning Winds': 'chants', 'Warp Wood': 'chants', 'Water Cover': 'chants', 'Waterguard': 'chants', 'Water Hammer': 'chants', 'Waterspout': 'chants', 'Water Walking': 'chants', 'Whirlpool': 'chants', 'Whisperward': 'chants', 'White Moon': 'chants', 'Wind Color': 'chants', 'Wind Shape': 'chants', 'Wind Snatcher': 'chants', 'Worms': 'chants', 'Yearning': 'chants', } def honed(mud, groups): skill = groups[0] if 'honing' in mud.state: mud.log("Honed {} in {} tries".format(skill, mud.state['honing'][1])) del mud.state['honing'] if skill in honeToType: honeType = honeToType[skill] else: honeType = 'skill' mud.timers["honed_skill_scrape_" + skill] = mud.mkdelay(1, lambda m: mud.send(honeType + ' ' + skill)) if 'hones' not in mud.state: mud.state['hones'] = {} mud.state['hones'][skill] = time.time() if 'hone_on_success' in mud.state: mud.state['hone_on_success'](skill) if skill in mud.state['skillLevels'] and mud.state['skillLevels'][skill] > 99: return mud.timers["hone_again_notification_for_" + skill] = mud.mkdelay(301, lambda m: mud.log("You can now hone " + skill)) def showHones(mud, _): found = False if 'hones' in mud.state: remove = set() now = time.time() for skill, honetime in mud.state['hones'].items(): if now - honetime > 300: remove.add(skill) else: found = True mud.show("{}: {}s remaining\n".format(skill, 300 - int(now - honetime))) for skill in remove: del mud.state['hones'][skill] if not mud.state['hones']: del mud.state['hones'] if not found: mud.show("No skills honed recently") def setSkillLevel(mud, groups): if 'skillLevels' not in mud.state: mud.state['skillLevels'] = {} level = int(groups[0]) skill = groups[1] mud.state['skillLevels'][skill] = level ALIASES = { 'newcharsetup': 'prompt %T ^N^h%h/%Hh^q ^m%m/%Mm^q ^v%v/%Vv^q %aa %-LEVELL %Xtnl %z^N %E %B\ny\ncolorset\n16\nblue\nwhite\n\nautodraw on\nautoimprove on\nautogold on\nalias define on open n~n\nalias define oe open e~e\nalias define ow open w~w\nalias define os open s~s\nalias define od open d~d\nalias define ou open u~u', 'home': lambda mud, _: mud.modules['mapper'].go('1115504774', 'go'), 'rt vassendar': 'run 4s d w d 2w d 2n 2e\nopen s\ns\nopen d\nrun 5d\nopen w\nw\nrun 8n w 2s 6w\nopen w\nrun 11w 3n 3w\nopen w\nrun 5w\nrun 3n 5w', 'rt wgate': 'run 2s 3w\nopen w\nw', 'rt sehaire': 'run w u 6w 2n 3w s 6w s 6w 2n 5w 5n w n w n 4w n e', 'rt magic-forest': 'go 2S 3w\n open w\n go 2W U W S 6W 9N W U N E N W 2D N E 3N W 5N W N W N 4W N E', 'rt sengalion': 'go 2S 3w\n open w\n go 2w U 6W 2N 3W S 6W S 3W 7S 6E S', '#hone (.+)': hone, '#hones': showHones, } TRIGGERS = { 'You slip on the cold wet ground.': 'stand', 'You fall asleep from exhaustion!!': 'stand\nsleep', r'(Grumpy|Grumpier|Grumpiest) wants to teach you .*\. Is this Ok .y.N..': 'y', '.* is DEAD!!!': 'look in body', 'You parry ': 'disarm', 'You attempt to disarm .* and fail!': 'disarm', 'A floating log gets caught on the bank. It is large enough to enter and ride': 'enter log\ne', 'A turtle shell gets caught on the rock. It is large enough to enter.': 'enter shell\nn', # "A set of wooden footholds lead up to the top of the coach": 'u\nsay high road', 'Midgaard, a most excellent small city to start in.': 'say Midgaard', "Mrs. Pippet says to you 'If ye're still wanting to go to Midgaard then say": 'say Ready to go!', 'Grumpy wants you to try to teach him about .*\. It will': 'y', 'You feel a little cleaner, but are still very dirty.': 'bathe', 'You feel a little cleaner.': 'bathe', 'You feel a little cleaner; almost perfect.': 'bathe', 'You are no longer hungry.': '!', 'You are no longer thirsty.': '!', 'You are starved, and near death. EAT SOMETHING!': 'sta\neat bread\nquit\ny', 'You are dehydrated, and near death. DRINK SOMETHING!': 'sta\ndrink sink\nquit\ny', 'YOU ARE DYING OF THIRST!': 'sta\ndrink barrel\nquit\ny', 'YOU ARE DYING OF HUNGER!': 'sta\neat bread\nquit\ny', 'Quit -- are you sure .y.N..': 'y', 'You start .*\.': trackTimeStart, 'You study .*\.': trackTimeStart, 'You are done (.*)\.': lambda mud, matches: mud.mud.log("The task took {}s".format(time.time() - (mud.state['task_start_time'] if 'task_start_time' in mud.state else 0))), 'You become better at (.+).': honed, '.* subtly sets something on the ground.': 'get bag\nput bag box\nexam box', "The mayor says, 'I'll give you 1 minute. Go ahead....ask for your reward.'": 'say reward', "The mayor says 'Hello .*. Hope you are enjoying your stay.'": 'drop box\nThese obligations have been met.', '^\[(\d |\d\d |\d\d\d)%\] ([^[]+)$': setSkillLevel, } with open('passwords.json', 'rb') as pws: TRIGGERS.update(json.load(pws)) class Coffee(modular.ModularClient): def __init__(self, mud, name): self.name = name self.logfname = '{}.log'.format(name) self.mapfname = 'coffee.map' import modules.logging import modules.eval import modules.mapper importlib.reload(modular) importlib.reload(modules.logging) importlib.reload(modules.eval) importlib.reload(modules.mapper) self.modules = {} mods = { 'eval': (modules.eval.Eval, []), 'logging': (modules.logging.Logging, [self.logfname]), 'mapper': (modules.mapper.Mapper, [False, self.mapfname]), } if name == 'grumpy' or (False and name == 'grumpier') or name == 'grumpiest' or name == 'dhtnseriao' or name == 'dhtnserioa' or name == 'dhtnseroia': import modules.scholar importlib.reload(modules.scholar) mods['scholar'] = (modules.scholar.Scholar, []) elif name == 'vassal' or name == 'robot' or name == 'landscapegoat': import modules.autosmith importlib.reload(modules.autosmith) mods['autosmith'] = (modules.autosmith.AutoSmith, []) elif name == 'magus': import modules.mage importlib.reload(modules.mage) mods['mage'] = (modules.mage.Mage, []) for modname, module in mods.items(): try: constructor, args = module args = [mud] + args print("Constructing", constructor, "with", repr(args)) self.modules[modname] = constructor(*args) except Exception: traceback.print_exc() super().__init__(mud) self.aliases.update(ALIASES) self.aliases.update({ '#autohone ([^,]+), (.+)': lambda mud, groups: self.startAutoHone(groups[0], groups[1]), }) self.triggers.update(TRIGGERS) self.triggers.update({r'\(Enter your character name to login\)': name}) if name == 'zerleha': self.triggers.update({ 'You are now listed as AFK.': 'sc', 'You are hungry.': 'eat bread', 'You are thirsty.': 'drink drum', }) elif name == 'grumpier': # monk self.aliases.update({ 'kk( +.+)?': lambda mud, groups: self.stackToLag('gouge\ntrip\ndirt\nax\nkick\nbodyflip\natemi\nbodytoss\nemote is done with stacking `kk`.', groups[0]), }) # self.triggers.update({ # 'You is done with stacking `(.+)`.': lambda mud, groups: self.stackToLag('gouge\ntrip\nax\nkick\nbodyflip\nbodytoss\nemote is done with stacking `kk`.', groups[0]), # }) elif name == 'punchee': # group leader self.aliases.update({ 'waa': 'sta\nwake cizra\nwake basso', }) elif name == 'basso' or name == 'cizra': # followers self.triggers.update({ 'Punchee lays down and takes a nap.': 'sleep', }) elif name == 'cizra': self.triggers.update({ '(\w+): A closed door': lambda mud, matches: 'open ' + matches[0], '(\w+) : A closed door': lambda mud, matches: 'open ' + matches[0], 'You point at .*, shooting forth a magic missile!': 'mm', 'You point at .*, shooting forth a blazing fireball!': 'ff', 'You are too close to .* to use Fireball.': 'mm', # spell failures 'You point at .*, but nothing more happens.': 'ff', 'You point at .*, but fizzle the spell.': 'mm', 'You attempt to invoke magical protection, but fail.': 'cast mage armor', 'You shout combatively, but nothing more happens.': 'cast combat precognition', 'You cast a spell on yourself, but the magic fizzles.': 'cast fly', 'You attempt to invoke a spell, but fail miserably.': 'cast shield', # recasts 'Your magical armor fades away.': 'cast mage armor', 'You begin to feel a bit more vulnerable.': 'cast shield', 'The light above you dims.': 'cast light', 'Your combat precognition fades away.': 'cast combat prec', 'You begin to float back down.': 'cast fly', 'Your skin softens.': 'cast stoneskin', }) def stackToLag(self, cmds, target): lag = 0 cmd = cmds.split('\n')[0] if target: cmd = cmd + target self.send(cmd) for cmd in cmds.split('\n')[1:]: self.timers["stackToLag" + cmd] = self.mkdelay(lag, lambda m, cmd=cmd: self.mud.send(cmd)) lag += 2.6 def getHostPort(self): return 'coffeemud.net', 2324 def level(self): return self.gmcp['char']['status']['level'] def exprate(self, mud): if 'char' not in self.gmcp or 'status' not in self.gmcp['char'] or 'tnl' not in self.gmcp['char']['status']: return if 'exprate_prev' not in self.state: self.state['exprate_prev'] = self.gmcp['char']['base']['perlevel'] - self.gmcp['char']['status']['tnl'] else: now = self.gmcp['char']['base']['perlevel'] - self.gmcp['char']['status']['tnl'] self.log("Exp per hour: {}".format(now - self.state['exprate_prev'])) self.state['exprate_prev'] = now def getTimers(self): return { "exprate": (False, 60*60, 30, self.exprate), } def onMaxMana(self): if 'mage' in self.modules: self.modules['mage'].onMaxMana() def handleGmcp(self, cmd, value): super().handleGmcp(cmd, value) if cmd == 'char.status' and 'pos' in value and 'fatigue' in value and 'maxstats' in self.gmcp['char']: if value['pos'] == 'Sleeping' and value['fatigue'] == 0 and self.gmcp['char']['vitals']['moves'] == self.gmcp['char']['maxstats']['maxmoves']: self.log("Rested!") if cmd == 'char.vitals' and 'status' in self.gmcp['char'] and 'maxstats' in self.gmcp['char']: if self.gmcp['char']['status']['pos'] == 'Sleeping' and value['mana'] == self.gmcp['char']['maxstats']['maxmana']: self.onMaxMana() if cmd == 'char.vitals' and 'maxstats' in self.gmcp['char']: if 'prevhp' in self.state and self.gmcp['char']['status']['pos'] == 'Sleeping': hp = self.gmcp['char']['vitals']['hp'] maxhp = self.gmcp['char']['maxstats']['maxhp'] if hp == maxhp and self.state['prevhp'] < maxhp: self.log("Healed!") self.state['prevhp'] = hp pass if cmd == 'char.vitals' and 'maxstats' in self.gmcp['char']: if self.gmcp['char']['status']['pos'] == 'Sleeping' and self.gmcp['char']['vitals']['mana'] > 100: # self.log("Full mana!") if self.name == 'hippie': self.send("sta\nchant speed time\ndrink sink\nsleep") def startAutoHone(self, skill, cmd): self.log("Autohoning {} as {}".format(skill, cmd)) self.timers['autohone_' + cmd] = self.mktimernow(60*5 + 1, lambda mud: self.honeTimer(skill, cmd)) def honeTimer(self, skill, cmd): def onHoneSuccess(skillHoned): if skill == skillHoned: if skill in self.state['skillLevels'] and self.state['skillLevels'][skill] >= 99: self.log("Removing " + skill + " from autohone") del self.timers['autohone_' + cmd] else: self.setTimerRemaining('autohone_' + cmd, 301) self.send('sleep') # multi-hone timers need work self.state['hone_on_success'] = onHoneSuccess self.state['honing'] = (cmd, 1) self.send('sta\n{}'.format(cmd)) def getClass(): return Coffee
cizra/pycat
coffee.py
Python
unlicense
31,643
from simplesignals.process import WorkerProcessBase from hotqueue import HotQueue from redis.exceptions import ConnectionError from time import sleep, time class HotWorkerBase(WorkerProcessBase): """ Base class for worker processes that handle items from HotQueue Redis queues. """ queue_name = 'queue' STARTUP_TIMEOUT = 10 # seconds to wait for a Redis conn on startup def __init__(self): self.queue = self.get_queue() super(HotWorkerBase, self).__init__() def get_queue(self): return HotQueue(self.queue_name) @property def process_title(self): return "hotworker-%s" % self.queue_name def startup(self): """Wait for a Redis connection to be available. Under normal circumstances (if Redis is running) this code should ping Redis once and then return.""" redis = self.queue._HotQueue__redis start_time = time() while time() - start_time <= self.STARTUP_TIMEOUT: try: redis.ping() return # everything's fine! except ConnectionError: sleep(0.5) # If we got here, we failed to connect to Redis at all raise ConnectionError("Failed to connect to Redis after %s" " seconds" % self.STARTUP_TIMEOUT) def do_work(self): item = self.queue.get(block=True, timeout=1) if item: self.process_item(item) def process_item(self, item): raise NotImplementedError() def __call__(self): self.run() def worker(*args, **kwargs): """ Shortcut decorator for creating HotQueue worker processes @worker def printer(item): print item printer() The decorator also accepts arguments: queue_name specifies the name of the queue the worker will listen on. All other kwargs are passed into the HotQueue constructor. """ def decorator(func): queue_name = kwargs.pop('queue_name', func.__name__) class Worker(HotWorkerBase): @property def queue_name(self): return queue_name def get_queue(self): return HotQueue(queue_name, **kwargs) def process_item(self, item): func(item) w = Worker() return w # Make sure the decorator works with or without arguments if len(args) == 1 and callable(args[0]): return decorator(args[0]) return decorator
j4mie/hotworker
hotworker.py
Python
unlicense
2,546
import re print("Enter f(x) in (f o g)(x)") e1 = str(raw_input(">>> ")) print("Enter g(x)") e2 = str(raw_input(">>> ")) from math import * import sympy x = sympy.symbols("x") a = sympy.expand(eval(e1.replace("x", "(" + e2 + ")"))) print a
nasonfish/algebra-py
compose.py
Python
unlicense
240
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class V1beta1ReplicaSetCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): """ V1beta1ReplicaSetCondition - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'last_transition_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', 'type': 'str' } self.attribute_map = { 'last_transition_time': 'lastTransitionTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type' } self._last_transition_time = last_transition_time self._message = message self._reason = reason self._status = status self._type = type @property def last_transition_time(self): """ Gets the last_transition_time of this V1beta1ReplicaSetCondition. The last time the condition transitioned from one status to another. :return: The last_transition_time of this V1beta1ReplicaSetCondition. :rtype: V1Time """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): """ Sets the last_transition_time of this V1beta1ReplicaSetCondition. The last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1beta1ReplicaSetCondition. :type: V1Time """ self._last_transition_time = last_transition_time @property def message(self): """ Gets the message of this V1beta1ReplicaSetCondition. A human readable message indicating details about the transition. :return: The message of this V1beta1ReplicaSetCondition. :rtype: str """ return self._message @message.setter def message(self, message): """ Sets the message of this V1beta1ReplicaSetCondition. A human readable message indicating details about the transition. :param message: The message of this V1beta1ReplicaSetCondition. :type: str """ self._message = message @property def reason(self): """ Gets the reason of this V1beta1ReplicaSetCondition. The reason for the condition's last transition. :return: The reason of this V1beta1ReplicaSetCondition. :rtype: str """ return self._reason @reason.setter def reason(self, reason): """ Sets the reason of this V1beta1ReplicaSetCondition. The reason for the condition's last transition. :param reason: The reason of this V1beta1ReplicaSetCondition. :type: str """ self._reason = reason @property def status(self): """ Gets the status of this V1beta1ReplicaSetCondition. Status of the condition, one of True, False, Unknown. :return: The status of this V1beta1ReplicaSetCondition. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this V1beta1ReplicaSetCondition. Status of the condition, one of True, False, Unknown. :param status: The status of this V1beta1ReplicaSetCondition. :type: str """ if status is None: raise ValueError("Invalid value for `status`, must not be `None`") self._status = status @property def type(self): """ Gets the type of this V1beta1ReplicaSetCondition. Type of replica set condition. :return: The type of this V1beta1ReplicaSetCondition. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this V1beta1ReplicaSetCondition. Type of replica set condition. :param type: The type of this V1beta1ReplicaSetCondition. :type: str """ if type is None: raise ValueError("Invalid value for `type`, must not be `None`") self._type = type def to_dict(self): """ Returns the model properties as a dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """ Returns the string representation of the model """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): """ Returns true if both objects are not equal """ return not self == other
skuda/client-python
kubernetes/client/models/v1beta1_replica_set_condition.py
Python
apache-2.0
6,359
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # 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 .services.cloud_deploy import CloudDeployClient from .services.cloud_deploy import CloudDeployAsyncClient from .types.cloud_deploy import ApproveRolloutRequest from .types.cloud_deploy import ApproveRolloutResponse from .types.cloud_deploy import BuildArtifact from .types.cloud_deploy import Config from .types.cloud_deploy import CreateDeliveryPipelineRequest from .types.cloud_deploy import CreateReleaseRequest from .types.cloud_deploy import CreateRolloutRequest from .types.cloud_deploy import CreateTargetRequest from .types.cloud_deploy import DefaultPool from .types.cloud_deploy import DeleteDeliveryPipelineRequest from .types.cloud_deploy import DeleteTargetRequest from .types.cloud_deploy import DeliveryPipeline from .types.cloud_deploy import ExecutionConfig from .types.cloud_deploy import GetConfigRequest from .types.cloud_deploy import GetDeliveryPipelineRequest from .types.cloud_deploy import GetReleaseRequest from .types.cloud_deploy import GetRolloutRequest from .types.cloud_deploy import GetTargetRequest from .types.cloud_deploy import GkeCluster from .types.cloud_deploy import ListDeliveryPipelinesRequest from .types.cloud_deploy import ListDeliveryPipelinesResponse from .types.cloud_deploy import ListReleasesRequest from .types.cloud_deploy import ListReleasesResponse from .types.cloud_deploy import ListRolloutsRequest from .types.cloud_deploy import ListRolloutsResponse from .types.cloud_deploy import ListTargetsRequest from .types.cloud_deploy import ListTargetsResponse from .types.cloud_deploy import OperationMetadata from .types.cloud_deploy import PipelineCondition from .types.cloud_deploy import PipelineReadyCondition from .types.cloud_deploy import PrivatePool from .types.cloud_deploy import Release from .types.cloud_deploy import Rollout from .types.cloud_deploy import SerialPipeline from .types.cloud_deploy import SkaffoldVersion from .types.cloud_deploy import Stage from .types.cloud_deploy import Target from .types.cloud_deploy import TargetArtifact from .types.cloud_deploy import TargetsPresentCondition from .types.cloud_deploy import UpdateDeliveryPipelineRequest from .types.cloud_deploy import UpdateTargetRequest __all__ = ( "CloudDeployAsyncClient", "ApproveRolloutRequest", "ApproveRolloutResponse", "BuildArtifact", "CloudDeployClient", "Config", "CreateDeliveryPipelineRequest", "CreateReleaseRequest", "CreateRolloutRequest", "CreateTargetRequest", "DefaultPool", "DeleteDeliveryPipelineRequest", "DeleteTargetRequest", "DeliveryPipeline", "ExecutionConfig", "GetConfigRequest", "GetDeliveryPipelineRequest", "GetReleaseRequest", "GetRolloutRequest", "GetTargetRequest", "GkeCluster", "ListDeliveryPipelinesRequest", "ListDeliveryPipelinesResponse", "ListReleasesRequest", "ListReleasesResponse", "ListRolloutsRequest", "ListRolloutsResponse", "ListTargetsRequest", "ListTargetsResponse", "OperationMetadata", "PipelineCondition", "PipelineReadyCondition", "PrivatePool", "Release", "Rollout", "SerialPipeline", "SkaffoldVersion", "Stage", "Target", "TargetArtifact", "TargetsPresentCondition", "UpdateDeliveryPipelineRequest", "UpdateTargetRequest", )
googleapis/python-deploy
google/cloud/deploy_v1/__init__.py
Python
apache-2.0
3,904
# =============================================================================== # Copyright 2013 Jake Ross # # 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. # =============================================================================== # ============= enthought library imports ======================= import hashlib import os import shutil import subprocess import sys import time from datetime import datetime from git import Repo from git.exc import GitCommandError from traits.api import Any, Str, List, Event from pychron.core.helpers.filetools import fileiter from pychron.core.progress import open_progress from pychron.envisage.view_util import open_view from pychron.git_archive.diff_view import DiffView, DiffModel from pychron.git_archive.git_objects import GitSha from pychron.git_archive.history import BaseGitHistory from pychron.git_archive.merge_view import MergeModel, MergeView from pychron.git_archive.utils import get_head_commit, ahead_behind, from_gitlog from pychron.git_archive.views import NewBranchView from pychron.loggable import Loggable from pychron.pychron_constants import DATE_FORMAT, NULL_STR from pychron.updater.commit_view import CommitView def get_repository_branch(path): r = Repo(path) b = r.active_branch return b.name def grep(arg, name): process = subprocess.Popen(['grep', '-lr', arg, name], stdout=subprocess.PIPE) stdout, stderr = process.communicate() return stdout, stderr def format_date(d): return time.strftime("%m/%d/%Y %H:%M", time.gmtime(d)) def isoformat_date(d): if isinstance(d, (float, int)): d = datetime.fromtimestamp(d) return d.strftime('%Y-%m-%d %H:%M:%S') # return time.mktime(time.gmtime(d)) class StashCTX(object): def __init__(self, repo): self._repo = repo def __enter__(self): self._repo.git.stash() def __exit__(self, *args, **kw): try: self._repo.git.stash('pop') except GitCommandError: pass class GitRepoManager(Loggable): """ manage a local git repository """ _repo = Any # root=Directory path = Str selected = Any selected_branch = Str selected_path_commits = List selected_commits = List refresh_commits_table_needed = Event path_dirty = Event remote = Str def set_name(self, p): self.name = '{}<GitRepo>'.format(os.path.basename(p)) def open_repo(self, name, root=None): """ name: name of repo root: root directory to create new repo """ if root is None: p = name else: p = os.path.join(root, name) self.path = p self.set_name(p) if os.path.isdir(p): self.init_repo(p) return True else: os.mkdir(p) repo = Repo.init(p) self.debug('created new repo {}'.format(p)) self._repo = repo return False def init_repo(self, path): """ path: absolute path to repo return True if git repo exists """ if os.path.isdir(path): g = os.path.join(path, '.git') if os.path.isdir(g): self._repo = Repo(path) self.set_name(path) return True else: self.debug('{} is not a valid repo. Initializing now'.format(path)) self._repo = Repo.init(path) self.set_name(path) def delete_local_commits(self, remote='origin', branch=None): if branch is None: branch = self._repo.active_branch.name self._repo.git.reset('--hard', '{}/{}'.format(remote, branch)) def delete_commits(self, hexsha, remote='origin', branch=None): if branch is None: branch = self._repo.active_branch.name self._repo.git.reset('--hard', hexsha) self._repo.git.push(remote, branch, '--force') def add_paths_explicit(self, apaths): self.index.add(apaths) def add_paths(self, apaths): if not isinstance(apaths, (list, tuple)): apaths = (apaths,) changes = self.get_local_changes(change_type=('A', 'R', 'M')) changes = [os.path.join(self.path, c) for c in changes] if changes: self.debug('-------- local changes ---------') for c in changes: self.debug(c) deletes = self.get_local_changes(change_type=('D',)) if deletes: self.debug('-------- deletes ---------') for c in deletes: self.debug(c) untracked = self.untracked_files() if untracked: self.debug('-------- untracked paths --------') for t in untracked: self.debug(t) changes.extend(untracked) self.debug('add paths {}'.format(apaths)) ps = [p for p in apaths if p in changes] self.debug('changed paths {}'.format(ps)) changed = bool(ps) if ps: for p in ps: self.debug('adding to index: {}'.format(os.path.relpath(p, self.path))) self.index.add(ps) ps = [p for p in apaths if p in deletes] self.debug('delete paths {}'.format(ps)) delete_changed = bool(ps) if ps: for p in ps: self.debug('removing from index: {}'.format(os.path.relpath(p, self.path))) self.index.remove(ps, working_tree=True) return changed or delete_changed def add_ignore(self, *args): ignores = [] p = os.path.join(self.path, '.gitignore') if os.path.isfile(p): with open(p, 'r') as rfile: ignores = [line.strip() for line in rfile] args = [a for a in args if a not in ignores] if args: with open(p, 'a') as afile: for a in args: afile.write('{}\n'.format(a)) self.add(p, commit=False) def get_modification_date(self, path): """ "Fri May 18 11:13:57 2018 -0600" :param path: :return: """ d = self.cmd('log', '-1', '--format="%ad"', '--date=format:{}'.format(DATE_FORMAT), '--', path) if d: d = d[1:-1] return d def out_of_date(self, branchname=None): repo = self._repo if branchname is None: branchname = repo.active_branch.name pd = open_progress(2) origin = repo.remotes.origin pd.change_message('Fetching {} {}'.format(origin, branchname)) repo.git.fetch(origin, branchname) pd.change_message('Complete') # try: # oref = origin.refs[branchname] # remote_commit = oref.commit # except IndexError: # remote_commit = None # # branch = getattr(repo.heads, branchname) # local_commit = branch.commit local_commit, remote_commit = self._get_local_remote_commit(branchname) self.debug('out of date {} {}'.format(local_commit, remote_commit)) return local_commit != remote_commit def _get_local_remote_commit(self, branchname=None): repo = self._repo origin = repo.remotes.origin try: oref = origin.refs[branchname] remote_commit = oref.commit except IndexError: remote_commit = None if branchname is None: branch = repo.active_branch.name else: try: branch = repo.heads[branchname] except AttributeError: return None, None local_commit = branch.commit return local_commit, remote_commit @classmethod def clone_from(cls, url, path): repo = cls() repo.clone(url, path) return repo # # progress = open_progress(100) # # # # def func(op_code, cur_count, max_count=None, message=''): # # if max_count: # # progress.max = int(max_count) + 2 # # if message: # # message = 'Cloning repository {} -- {}'.format(url, message[2:]) # # progress.change_message(message, auto_increment=False) # # progress.update(int(cur_count)) # # # # if op_code == 66: # # progress.close() # # rprogress = CallableRemoteProgress(func) # rprogress = None # try: # Repo.clone_from(url, path, progress=rprogress) # except GitCommandError as e: # print(e) # shutil.rmtree(path) # # def foo(): # # try: # # Repo.clone_from(url, path, progress=rprogress) # # except GitCommandError: # # shutil.rmtree(path) # # # # evt.set() # # # t = Thread(target=foo) # # t.start() # # period = 0.1 # # while not evt.is_set(): # # st = time.time() # # # v = prog.get_value() # # # if v == n - 2: # # # prog.increase_max(50) # # # n += 50 # # # # # # prog.increment() # # time.sleep(max(0, period - time.time() + st)) # # prog.close() def clone(self, url, path, reraise=False): try: self._repo = Repo.clone_from(url, path) except GitCommandError as e: self.warning_dialog('Cloning error: {}, url={}, path={}'.format(e, url, path), position=(100,100)) if reraise: raise def unpack_blob(self, hexsha, p): """ p: str. should be absolute path """ repo = self._repo tree = repo.commit(hexsha).tree # blob = next((bi for ti in tree.trees # for bi in ti.blobs # if bi.abspath == p), None) blob = None for ts in ((tree,), tree.trees): for ti in ts: for bi in ti.blobs: # print bi.abspath, p if bi.abspath == p: blob = bi break else: print('failed unpacking', p) return blob.data_stream.read() if blob else '' def shell(self, cmd, *args): repo = self._repo func = getattr(repo.git, cmd) return func(*args) def truncate_repo(self, date='1 month'): repo = self._repo name = os.path.basename(self.path) backup = '.{}'.format(name) repo.git.clone('--mirror', ''.format(name), './{}'.format(backup)) logs = repo.git.log('--pretty=%H', '-after "{}"'.format(date)) logs = reversed(logs.split('\n')) sha = next(logs) gpath = os.path.join(self.path, '.git', 'info', 'grafts') with open(gpath, 'w') as wfile: wfile.write(sha) repo.git.filter_branch('--tag-name-filter', 'cat', '--', '--all') repo.git.gc('--prune=now') def get_dag(self, branch=None, delim='$', limit=None, simplify=True): fmt_args = ('%H', '%ai', '%ar', '%s', '%an', '%ae', '%d', '%P') fmt = delim.join(fmt_args) args = ['--abbrev-commit', '--topo-order', '--reverse', # '--author-date-order', # '--decorate=full', '--format={}'.format(fmt)] if simplify: args.append('--simplify-by-decoration') if branch == NULL_STR: args.append('--all') else: args.append('-b') args.append(branch) if limit: args.append('-{}'.format(limit)) return self._repo.git.log(*args) def commits_iter(self, p, keys=None, limit='-'): repo = self._repo p = os.path.join(repo.working_tree_dir, p) p = p.replace(' ', '\ ') hx = repo.git.log('--pretty=%H', '--follow', '-{}'.format(limit), '--', p).split('\n') def func(hi): commit = repo.rev_parse(hi) r = [hi, ] if keys: r.extend([getattr(commit, ki) for ki in keys]) return r return (func(ci) for ci in hx) def odiff(self, a, b, **kw): a = self._repo.commit(a) return a.diff(b, **kw) def diff(self, a, b, *args): repo = self._repo return repo.git.diff(a, b, *args) def status(self): return self._git_command(self._repo.git.status, 'status') def report_local_changes(self): self.debug('Local Changes to {}'.format(self.path)) for p in self.get_local_changes(): self.debug('\t{}'.format(p)) def commit_dialog(self): from pychron.git_archive.commit_dialog import CommitDialog ps = self.get_local_changes() cd = CommitDialog(ps) info = cd.edit_traits() if info.result: index = self.index index.add([mp.path for mp in cd.valid_paths()]) self.commit(cd.commit_message) return True def get_local_changes(self, change_type=('M',)): repo = self._repo diff = repo.index.diff(None) return [di.a_blob.abspath for change_type in change_type for di in diff.iter_change_type(change_type)] # diff_str = repo.git.diff('HEAD', '--full-index') # diff_str = StringIO(diff_str) # diff_str.seek(0) # # class ProcessWrapper: # stderr = None # stdout = None # # def __init__(self, f): # self._f = f # # def wait(self, *args, **kw): # pass # # def read(self): # return self._f.read() # # proc = ProcessWrapper(diff_str) # # diff = Diff._index_from_patch_format(repo, proc) # root = self.path # # # # for diff_added in hcommit.diff('HEAD~1').iter_change_type('A'): # print(diff_added) # diff = hcommit.diff() # diff = repo.index.diff(repo.head.commit) # return [os.path.relpath(di.a_blob.abspath, root) for di in diff.iter_change_type('M')] # patches = map(str.strip, diff_str.split('diff --git')) # patches = ['\n'.join(p.split('\n')[2:]) for p in patches[1:]] # # diff_str = StringIO(diff_str) # diff_str.seek(0) # index = Diff._index_from_patch_format(repo, diff_str) # # return index, patches # def get_head_object(self): return get_head_commit(self._repo) def get_head(self, commit=True, hexsha=True): head = self._repo if commit: head = head.commit() if hexsha: head = head.hexsha return head # return self._repo.head.commit.hexsha def cmd(self, cmd, *args): return getattr(self._repo.git, cmd)(*args) def is_dirty(self): return self._repo.is_dirty() def untracked_files(self): lines = self._repo.git.status(porcelain=True, untracked_files=True) # Untracked files preffix in porcelain mode prefix = "?? " untracked_files = list() iswindows = sys.platform == 'win32' for line in lines.split('\n'): if not line.startswith(prefix): continue filename = line[len(prefix):].rstrip('\n') # Special characters are escaped if filename[0] == filename[-1] == '"': filename = filename[1:-1].decode('string_escape') if iswindows: filename = filename.replace('/', '\\') untracked_files.append(os.path.join(self.path, filename)) # finalize_process(proc) return untracked_files def has_staged(self): return self._repo.git.diff('HEAD', '--name-only') # return self._repo.is_dirty() def has_unpushed_commits(self, remote='origin', branch='master'): # return self._repo.git.log('--not', '--remotes', '--oneline') return self._repo.git.log('{}/{}..HEAD'.format(remote, branch), '--oneline') def add_unstaged(self, root=None, add_all=False, extension=None, use_diff=False): if root is None: root = self.path index = self.index def func(ps, extension): if extension: if not isinstance(extension, tuple): extension = (extension,) ps = [pp for pp in ps if os.path.splitext(pp)[1] in extension] if ps: self.debug('adding to index {}'.format(ps)) index.add(ps) if use_diff: pass # try: # ps = [diff.a_blob.path for diff in index.diff(None)] # func(ps, extension) # except IOError,e: # print 'exception', e elif add_all: self._repo.git.add('.') else: for r, ds, fs in os.walk(root): ds[:] = [d for d in ds if d[0] != '.'] ps = [os.path.join(r, fi) for fi in fs] func(ps, extension) def update_gitignore(self, *args): p = os.path.join(self.path, '.gitignore') # mode = 'a' if os.path.isfile(p) else 'w' args = list(args) if os.path.isfile(p): with open(p, 'r') as rfile: for line in fileiter(rfile, strip=True): for i, ai in enumerate(args): if line == ai: args.pop(i) if args: with open(p, 'a') as wfile: for ai in args: wfile.write('{}\n'.format(ai)) self._add_to_repo(p, msg='updated .gitignore') def get_commit(self, hexsha): repo = self._repo return repo.commit(hexsha) def tag_branch(self, tagname): repo = self._repo repo.create_tag(tagname) def get_current_branch(self): repo = self._repo return repo.active_branch.name def checkout_branch(self, name, inform=True): repo = self._repo branch = getattr(repo.heads, name) try: branch.checkout() self.selected_branch = name self._load_branch_history() if inform: self.information_dialog('Repository now on branch "{}"'.format(name)) except BaseException as e: self.warning_dialog('There was an issue trying to checkout branch "{}"'.format(name)) raise e def delete_branch(self, name): self._repo.delete_head(name) def get_branch(self, name): return getattr(self._repo.heads, name) def create_branch(self, name=None, commit='HEAD', inform=True): repo = self._repo if name is None: nb = NewBranchView(branches=repo.branches) info = nb.edit_traits() if info.result: name = nb.name else: return if name not in repo.branches: branch = repo.create_head(name, commit=commit) branch.checkout() if inform: self.information_dialog('Repository now on branch "{}"'.format(name)) return name def create_remote(self, url, name='origin', force=False): repo = self._repo if repo: self.debug('setting remote {} {}'.format(name, url)) # only create remote if doesnt exist if not hasattr(repo.remotes, name): self.debug('create remote {}'.format(name, url)) repo.create_remote(name, url) elif force: repo.delete_remote(name) repo.create_remote(name, url) def delete_remote(self, name='origin'): repo = self._repo if repo: if hasattr(repo.remotes, name): repo.delete_remote(name) def get_branch_names(self): return [b.name for b in self._repo.branches] def git_history_view(self, branchname): repo = self._repo h = BaseGitHistory(branchname=branchname) origin = repo.remotes.origin try: oref = origin.refs[branchname] remote_commit = oref.commit except IndexError: remote_commit = None branch = self.get_branch(branchname) local_commit = branch.commit h.local_commit = str(local_commit) txt = repo.git.rev_list('--left-right', '{}...{}'.format(local_commit, remote_commit)) commits = [ci[1:] for ci in txt.split('\n')] commits = [repo.commit(i) for i in commits] h.set_items(commits) commit_view = CommitView(model=h) return commit_view def pull(self, branch='master', remote='origin', handled=True, use_progress=True, use_auto_pull=False): """ fetch and merge if use_auto_pull is False ask user if they want to accept the available updates """ self.debug('pulling {} from {}'.format(branch, remote)) repo = self._repo try: remote = self._get_remote(remote) except AttributeError as e: print('repo man pull', e) return if remote: self.debug('pulling from url: {}'.format(remote.url)) if use_progress: prog = open_progress(3, show_percent=False, title='Pull Repository {}'.format(self.name), close_at_end=False) prog.change_message('Fetching branch:"{}" from "{}"'.format(branch, remote)) try: self.fetch(remote) except GitCommandError as e: self.debug(e) if not handled: raise e self.debug('fetch complete') def merge(): try: repo.git.merge('FETCH_HEAD') except GitCommandError: self.smart_pull(branch=branch, remote=remote) if not use_auto_pull: ahead, behind = self.ahead_behind(remote) if behind: if self.confirmation_dialog('Repository "{}" is behind the official version by {} changes.\n' 'Would you like to pull the available changes?'.format(self.name, behind)): # show the changes h = self.git_history_view(branch) info = h.edit_traits(kind='livemodal') if info.result: merge() else: merge() if use_progress: prog.close() self.debug('pull complete') def has_remote(self, remote='origin'): return bool(self._get_remote(remote)) def push(self, branch='master', remote=None, inform=False): if remote is None: remote = 'origin' repo = self._repo rr = self._get_remote(remote) if rr: self._git_command(lambda: repo.git.push(remote, branch), tag='GitRepoManager.push') if inform: self.information_dialog('{} push complete'.format(self.name)) else: self.warning('No remote called "{}"'.format(remote)) def _git_command(self, func, tag): try: return func() except GitCommandError as e: self.warning('Git command failed. {}, {}'.format(e, tag)) def rebase(self, onto_branch='master'): if self._repo: repo = self._repo branch = self.get_current_branch() self.checkout_branch(onto_branch) self.pull() repo.git.rebase(onto_branch, branch) def smart_pull(self, branch='master', remote='origin', quiet=True, accept_our=False, accept_their=False): try: ahead, behind = self.ahead_behind(remote) except GitCommandError as e: self.debug('Smart pull error: {}'.format(e)) return self.debug('Smart pull ahead: {} behind: {}'.format(ahead, behind)) repo = self._repo if behind: if ahead: if not quiet: if not self.confirmation_dialog('You are {} behind and {} commits ahead. ' 'There are potential conflicts that you will have to resolve.' 'Would you like to Continue?'.format(behind, ahead)): return # potentially conflicts with StashCTX(repo): # do merge try: repo.git.rebase('--preserve-merges', '{}/{}'.format(remote, branch)) except GitCommandError: try: repo.git.rebase('--abort') except GitCommandError: pass if self.confirmation_dialog('There appears to be a problem with {}.' '\n\nWould you like to accept the master copy'.format(self.name)): try: repo.git.pull('-X', 'theirs', '--commit', '--no-edit') return True except GitCommandError: clean = repo.git.clean('-n') if clean: if self.confirmation_dialog('''You have untracked files that could be an issue. {} You like to delete them and try again?'''.format(clean)): try: repo.git.clean('-fd') except GitCommandError: self.warning_dialog('Failed to clean repository') return try: repo.git.pull('-X', 'theirs', '--commit', '--no-edit') return True except GitCommandError: self.warning_dialog('Failed pulling changes for {}'.format(self.name)) else: self.warning_dialog('Failed pulling changes for {}'.format(self.name)) return else: return # get conflicted files out, err = grep('<<<<<<<', self.path) conflict_paths = [os.path.relpath(x, self.path) for x in out.splitlines()] self.debug('conflict_paths: {}'.format(conflict_paths)) if conflict_paths: mm = MergeModel(conflict_paths, branch=branch, remote=remote, repo=self) if accept_our: mm.accept_our() elif accept_their: mm.accept_their() else: mv = MergeView(model=mm) mv.edit_traits() else: if not quiet: self.information_dialog('There were no conflicts identified') else: self.debug('merging {} commits'.format(behind)) self._git_command(lambda: repo.git.merge('FETCH_HEAD'), 'GitRepoManager.smart_pull/!ahead') # repo.git.merge('FETCH_HEAD') else: self.debug('Up-to-date with {}'.format(remote)) if not quiet: self.information_dialog('Repository "{}" up-to-date with {}'.format(self.name, remote)) return True def fetch(self, remote='origin'): if self._repo: return self._git_command(lambda: self._repo.git.fetch(remote), 'GitRepoManager.fetch') # return self._repo.git.fetch(remote) def ahead_behind(self, remote='origin'): self.debug('ahead behind') repo = self._repo ahead, behind = ahead_behind(repo, remote) return ahead, behind def merge(self, src, dest): repo = self._repo dest = getattr(repo.branches, dest) dest.checkout() src = getattr(repo.branches, src) # repo.git.merge(src.commit) self._git_command(lambda: repo.git.merge(src.commit), 'GitRepoManager.merge') def commit(self, msg): self.debug('commit message={}'.format(msg)) index = self.index if index: index.commit(msg) def add(self, p, msg=None, msg_prefix=None, verbose=True, **kw): repo = self._repo # try: # n = len(repo.untracked_files) # except IOError: # n = 0 # try: # if not repo.is_dirty() and not n: # return # except OSError: # pass bp = os.path.basename(p) dest = os.path.join(repo.working_dir, p) dest_exists = os.path.isfile(dest) if msg_prefix is None: msg_prefix = 'modified' if dest_exists else 'added' if not dest_exists: self.debug('copying to destination.{}>>{}'.format(p, dest)) shutil.copyfile(p, dest) if msg is None: msg = '{}'.format(bp) msg = '{} - {}'.format(msg_prefix, msg) if verbose: self.debug('add to repo msg={}'.format(msg)) self._add_to_repo(dest, msg, **kw) def get_log(self, branch, *args): if branch is None: branch = self._repo.active_branch # repo = self._repo # l = repo.active_branch.log(*args) l = self.cmd('log', branch, '--oneline', *args) return l.split('\n') def get_commits_from_log(self, greps=None, max_count=None, after=None, before=None): repo = self._repo args = [repo.active_branch.name, '--remove-empty', '--simplify-merges'] if max_count: args.append('--max-count={}'.format(max_count)) if after: args.append('--after={}'.format(after)) if before: args.append('--before={}'.format(before)) if greps: greps = '\|'.join(greps) args.append('--grep=^{}'.format(greps)) args.append('--pretty=%H|%cn|%ce|%ct|%s') txt = self.cmd('log', *args) cs = [] if txt: cs = [from_gitlog(l.strip()) for l in txt.split('\n')] return cs def get_active_branch(self): return self._repo.active_branch.name def get_sha(self, path=None): sha = '' if path: l = self.cmd('ls-tree', 'HEAD', path) try: mode, kind, sha_name = l.split(' ') sha, name = sha_name.split('\t') except ValueError: pass return sha def add_tag(self, name, message, hexsha=None): args = ('-a', name, '-m', message) if hexsha: args = args + (hexsha,) self.cmd('tag', *args) # action handlers def diff_selected(self): if self._validate_diff(): if len(self.selected_commits) == 2: l, r = self.selected_commits dv = self._diff_view_factory(l, r) open_view(dv) def revert_to_selected(self): # check for uncommitted changes # warn user the uncommitted changes will be lost if revert now commit = self.selected_commits[-1] self.revert(commit.hexsha, self.selected) def revert(self, hexsha, path): self._repo.git.checkout(hexsha, path) self.path_dirty = path self._set_active_commit() def load_file_history(self, p): repo = self._repo try: hexshas = repo.git.log('--pretty=%H', '--follow', '--', p).split('\n') self.selected_path_commits = self._parse_commits(hexshas, p) self._set_active_commit() except GitCommandError: self.selected_path_commits = [] def get_modified_files(self, hexsha): repo = self._repo def func(): return repo.git.diff_tree('--no-commit-id', '--name-only', '-r', hexsha) txt = self._git_command(func, 'get_modified_files') return txt.split('\n') # private def _validate_diff(self): return True def _diff_view_factory(self, a, b): # d = self.diff(a.hexsha, b.hexsha) if not a.blob: a.blob = self.unpack_blob(a.hexsha, a.name) if not b.blob: b.blob = self.unpack_blob(b.hexsha, b.name) model = DiffModel(left_text=b.blob, right_text=a.blob) dv = DiffView(model=model) return dv def _add_to_repo(self, p, msg, commit=True): index = self.index if index: if not isinstance(p, list): p = [p] try: index.add(p) except IOError as e: self.warning('Failed to add file. Error:"{}"'.format(e)) # an IOError has been caused in the past by "'...index.lock' could not be obtained" os.remove(os.path.join(self.path, '.git', 'index.lock')) try: self.warning('Retry after "Failed to add file"'.format(e)) index.add(p) except IOError as e: self.warning('Retry failed. Error:"{}"'.format(e)) return if commit: index.commit(msg) def _get_remote(self, remote): repo = self._repo try: return getattr(repo.remotes, remote) except AttributeError: pass def _get_branch_history(self): repo = self._repo hexshas = repo.git.log('--pretty=%H').split('\n') return hexshas def _load_branch_history(self): hexshas = self._get_branch_history() self.commits = self._parse_commits(hexshas) def _parse_commits(self, hexshas, p=''): def factory(ci): repo = self._repo obj = repo.rev_parse(ci) cx = GitSha(message=obj.message, hexsha=obj.hexsha, name=p, date=obj.committed_datetime) # date=format_date(obj.committed_date)) return cx return [factory(ci) for ci in hexshas] def _set_active_commit(self): p = self.selected with open(p, 'r') as rfile: chexsha = hashlib.sha1(rfile.read()).hexdigest() for c in self.selected_path_commits: blob = self.unpack_blob(c.hexsha, p) c.active = chexsha == hashlib.sha1(blob).hexdigest() if blob else False self.refresh_commits_table_needed = True # handlers def _selected_fired(self, new): if new: self._selected_hook(new) self.load_file_history(new) def _selected_hook(self, new): pass def _remote_changed(self, new): if new: self.delete_remote() r = 'https://github.com/{}'.format(new) self.create_remote(r) @property def index(self): return self._repo.index @property def active_repo(self): return self._repo if __name__ == '__main__': repo = GitRepoManager() repo.open_repo('/Users/ross/Sandbox/mergetest/blocal') repo.smart_pull() # rp = GitRepoManager() # rp.init_repo('/Users/ross/Pychrondata_dev/scripts') # rp.commit_dialog() # ============= EOF ============================================= # repo manager protocol # def get_local_changes(self, repo=None): # repo = self._get_repo(repo) # diff_str = repo.git.diff('--full-index') # patches = map(str.strip, diff_str.split('diff --git')) # patches = ['\n'.join(p.split('\n')[2:]) for p in patches[1:]] # # diff_str = StringIO(diff_str) # diff_str.seek(0) # index = Diff._index_from_patch_format(repo, diff_str) # # return index, patches # def is_dirty(self, repo=None): # repo = self._get_repo(repo) # return repo.is_dirty() # def get_untracked(self): # return self._repo.untracked_files # def _add_repo(self, root): # existed=True # if not os.path.isdir(root): # os.mkdir(root) # existed=False # # gitdir=os.path.join(root, '.git') # if not os.path.isdir(gitdir): # repo = Repo.init(root) # existed = False # else: # repo = Repo(root) # # return repo, existed # def add_repo(self, localpath): # """ # add a blank repo at ``localpath`` # """ # repo, existed=self._add_repo(localpath) # self._repo=repo # self.root=localpath # return existed
UManPychron/pychron
pychron/git_archive/repo_manager.py
Python
apache-2.0
38,240
# Importing non-modules that are not used explicitly from .create_backup_strategy import CreateBackupStrategy # noqa
openstack/trove-dashboard
trove_dashboard/content/backup_strategies/workflows/__init__.py
Python
apache-2.0
119
from typing import Optional from plenum.common.constants import DATA from plenum.common.request import Request from plenum.server.database_manager import DatabaseManager from plenum.test.plugin.demo_plugin.constants import AUCTION_START from plenum.test.plugin.demo_plugin.request_handlers.abstract_auction_req_handler import AbstractAuctionReqHandler class AuctionStartHandler(AbstractAuctionReqHandler): def __init__(self, database_manager: DatabaseManager, auctions: dict): super().__init__(database_manager, AUCTION_START, auctions) def dynamic_validation(self, request: Request, req_pp_time: Optional[int]): self._validate_request_type(request) operation = request.operation data = operation.get(DATA) self.auctions[data['id']] = {}
evernym/zeno
plenum/test/plugin/demo_plugin/request_handlers/auction_start_handler.py
Python
apache-2.0
791
#!/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 import time from ambari_commons import subprocess32 from Hardware import Hardware import hostname from HostInfo import HostInfo firstContact = True class Register: """ Registering with the server. Get the hardware profile and declare success for now """ def __init__(self, config): self.config = config self.hardware = Hardware(self.config) def build(self, version, id='-1'): global clusterId, clusterDefinitionRevision, firstContact timestamp = int(time.time()*1000) hostInfo = HostInfo(self.config) agentEnv = { } hostInfo.register(agentEnv, False, False) current_ping_port = self.config.get('agent','current_ping_port') register = { 'responseId' : int(id), 'timestamp' : timestamp, 'hostname' : hostname.hostname(self.config), 'currentPingPort' : int(current_ping_port), 'publicHostname' : hostname.public_hostname(self.config), 'hardwareProfile' : self.hardware.get(), 'agentEnv' : agentEnv, 'agentVersion' : version, 'prefix' : self.config.get('agent', 'prefix') } return register
arenadata/ambari
ambari-agent/src/main/python/ambari_agent/Register.py
Python
apache-2.0
2,045
from . import astrometry from . import photometry from . import solve from . import sources from . import catalog from . import process from . import pipeline from .process import Process from .sources import SourceTable from .catalog import StarCatalog __all__ = ['astrometry', 'photometry', 'solve', 'sources', 'catalog', 'process', 'pipeline']
astrotuvi/pyplate
pyplate/process/__init__.py
Python
apache-2.0
359
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-17 06:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Choice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('choice_text', models.CharField(max_length=200)), ('votes', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Question', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('question_text', models.CharField(max_length=200)), ('pub_date', models.DateTimeField(verbose_name='date published')), ], ), migrations.AddField( model_name='choice', name='question', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='polls.Question'), ), ]
bfrick22/vegaspirates
mysite/polls/migrations/0001_initial.py
Python
apache-2.0
1,230
# @MUNTJAC_COPYRIGHT@ # @MUNTJAC_LICENSE@ """Class for holding information about a mouse click event.""" from muntjac.terminal.gwt.client.mouse_event_details import MouseEventDetails from muntjac.event.component_event_listener import IComponentEventListener from muntjac.ui.component import Event as ComponentEvent class ClickEvent(ComponentEvent): """Class for holding information about a mouse click event. A L{ClickEvent} is fired when the user clicks on a C{Component}. The information available for click events are terminal dependent. Correct values for all event details cannot be guaranteed. @author: Vaadin Ltd. @author: Richard Lincoln @see: L{ClickListener} @version: @VERSION@ """ BUTTON_LEFT = MouseEventDetails.BUTTON_LEFT BUTTON_MIDDLE = MouseEventDetails.BUTTON_MIDDLE BUTTON_RIGHT = MouseEventDetails.BUTTON_RIGHT def __init__(self, source, mouseEventDetails): super(ClickEvent, self).__init__(source) self._details = mouseEventDetails def getButton(self): """Returns an identifier describing which mouse button the user pushed. Compare with L{BUTTON_LEFT}, L{BUTTON_MIDDLE}, L{BUTTON_RIGHT} to find out which button it is. @return: one of L{BUTTON_LEFT}, L{BUTTON_MIDDLE}, L{BUTTON_RIGHT}. """ return self._details.getButton() def getClientX(self): """Returns the mouse position (x coordinate) when the click took place. The position is relative to the browser client area. @return: The mouse cursor x position """ return self._details.getClientX() def getClientY(self): """Returns the mouse position (y coordinate) when the click took place. The position is relative to the browser client area. @return: The mouse cursor y position """ return self._details.getClientY() def getRelativeX(self): """Returns the relative mouse position (x coordinate) when the click took place. The position is relative to the clicked component. @return: The mouse cursor x position relative to the clicked layout component or -1 if no x coordinate available """ return self._details.getRelativeX() def getRelativeY(self): """Returns the relative mouse position (y coordinate) when the click took place. The position is relative to the clicked component. @return: The mouse cursor y position relative to the clicked layout component or -1 if no y coordinate available """ return self._details.getRelativeY() def isDoubleClick(self): """Checks if the event is a double click event. @return: true if the event is a double click event, false otherwise """ return self._details.isDoubleClick() def isAltKey(self): """Checks if the Alt key was down when the mouse event took place. @return: true if Alt was down when the event occured, false otherwise """ return self._details.isAltKey() def isCtrlKey(self): """Checks if the Ctrl key was down when the mouse event took place. @return: true if Ctrl was pressed when the event occured, false otherwise """ return self._details.isCtrlKey() def isMetaKey(self): """Checks if the Meta key was down when the mouse event took place. @return: true if Meta was pressed when the event occured, false otherwise """ return self._details.isMetaKey() def isShiftKey(self): """Checks if the Shift key was down when the mouse event took place. @return: true if Shift was pressed when the event occured, false otherwise """ return self._details.isShiftKey() def getButtonName(self): """Returns a human readable string representing which button has been pushed. This is meant for debug purposes only and the string returned could change. Use L{getButton} to check which button was pressed. @return: A string representation of which button was pushed. """ return self._details.getButtonName() class IClickListener(IComponentEventListener): """Interface for listening for a L{ClickEvent} fired by a L{Component}. @see: L{ClickEvent} @author: Vaadin Ltd. @author: Richard Lincoln @version: @VERSION@ """ def click(self, event): """Called when a L{Component} has been clicked. A reference to the component is given by L{ClickEvent.getComponent}. @param event: An event containing information about the click. """ raise NotImplementedError clickMethod = click class DoubleClickEvent(ComponentEvent): """Class for holding additional event information for DoubleClick events. Fired when the user double-clicks on a C{Component}. @see: L{ClickEvent} @author: Vaadin Ltd. @author: Richard Lincoln @version: @VERSION@ """ def __init__(self, source): super(DoubleClickEvent, self).__init__(source) class IDoubleClickListener(IComponentEventListener): """Interface for listening for a L{DoubleClickEvent} fired by a L{Component}. @see: L{DoubleClickEvent} @author: Vaadin Ltd. @author: Richard Lincoln @version: @VERSION@ """ def doubleClick(self, event): """Called when a L{Component} has been double clicked. A reference to the component is given by L{DoubleClickEvent.getComponent}. @param event: An event containing information about the double click. """ raise NotImplementedError doubleClickMethod = doubleClick
rwl/muntjac
muntjac/event/mouse_events.py
Python
apache-2.0
5,824
import os, subprocess, threading def main(): with open("conf.txt") as file: exe = os.path.join(os.getcwd(), "..\\Package\\Google.ProtocolBuffers.2.4.1.555\\tools\\ProtoGen.exe") out = "-output_directory=%s" % (os.path.join(os.getcwd(), "..\\Common\\libs\\protos")) def gen(proto): subprocess.check_call([exe, os.path.join("protos", proto), out]) list = [] for proto in file.read().split(','): t = threading.Thread(target = gen, args = (proto, )) t.start() list.append(t) for t in list: t.join() if __name__ == '__main__': main()
easily/EasyServer
Protocol/gen.py
Python
apache-2.0
559
# Copyright 2010 OpenStack Foundation # Copyright 2012 University Of Minho # # 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 contextlib import copy import errno import eventlet import fixtures import functools import mox import os import re import shutil import tempfile from eventlet import greenthread from lxml import etree import mock from oslo.config import cfg from xml.dom import minidom from nova.api.ec2 import cloud from nova.compute import flavors from nova.compute import manager from nova.compute import power_state from nova.compute import task_states from nova.compute import vm_mode from nova.compute import vm_states from nova import context from nova import db from nova import exception from nova.network import model as network_model from nova.objects import flavor as flavor_obj from nova.objects import instance as instance_obj from nova.objects import pci_device as pci_device_obj from nova.objects import service as service_obj from nova.openstack.common import fileutils from nova.openstack.common import importutils from nova.openstack.common import jsonutils from nova.openstack.common import loopingcall from nova.openstack.common import processutils from nova.openstack.common import units from nova.openstack.common import uuidutils from nova.pci import pci_manager from nova import test from nova.tests import fake_block_device from nova.tests import fake_network import nova.tests.image.fake from nova.tests import matchers from nova.tests.objects import test_pci_device from nova.tests.virt.libvirt import fake_libvirt_utils from nova import utils from nova import version from nova.virt import configdrive from nova.virt.disk import api as disk from nova.virt import driver from nova.virt import event as virtevent from nova.virt import fake from nova.virt import firewall as base_firewall from nova.virt import images from nova.virt.libvirt import blockinfo from nova.virt.libvirt import config as vconfig from nova.virt.libvirt import driver as libvirt_driver from nova.virt.libvirt import firewall from nova.virt.libvirt import imagebackend from nova.virt.libvirt import utils as libvirt_utils from nova.virt import netutils try: import libvirt except ImportError: import nova.tests.virt.libvirt.fakelibvirt as libvirt libvirt_driver.libvirt = libvirt CONF = cfg.CONF CONF.import_opt('compute_manager', 'nova.service') CONF.import_opt('host', 'nova.netconf') CONF.import_opt('my_ip', 'nova.netconf') CONF.import_opt('image_cache_subdirectory_name', 'nova.virt.imagecache') CONF.import_opt('instances_path', 'nova.compute.manager') _fake_network_info = fake_network.fake_get_instance_nw_info _fake_stub_out_get_nw_info = fake_network.stub_out_nw_api_get_instance_nw_info _ipv4_like = fake_network.ipv4_like _fake_NodeDevXml = \ {"pci_0000_04_00_3": """ <device> <name>pci_0000_04_00_3</name> <parent>pci_0000_00_01_1</parent> <driver> <name>igb</name> </driver> <capability type='pci'> <domain>0</domain> <bus>4</bus> <slot>0</slot> <function>3</function> <product id='0x1521'>I350 Gigabit Network Connection</product> <vendor id='0x8086'>Intel Corporation</vendor> <capability type='virt_functions'> <address domain='0x0000' bus='0x04' slot='0x10' function='0x3'/> <address domain='0x0000' bus='0x04' slot='0x10' function='0x7'/> <address domain='0x0000' bus='0x04' slot='0x11' function='0x3'/> <address domain='0x0000' bus='0x04' slot='0x11' function='0x7'/> </capability> </capability> </device>""", "pci_0000_04_10_7": """ <device> <name>pci_0000_04_10_7</name> <parent>pci_0000_00_01_1</parent> <driver> <name>igbvf</name> </driver> <capability type='pci'> <domain>0</domain> <bus>4</bus> <slot>16</slot> <function>7</function> <product id='0x1520'>I350 Ethernet Controller Virtual Function</product> <vendor id='0x8086'>Intel Corporation</vendor> <capability type='phys_function'> <address domain='0x0000' bus='0x04' slot='0x00' function='0x3'/> </capability> <capability type='virt_functions'> </capability> </capability> </device>"""} def mocked_bdm(id, bdm_info): bdm_mock = mock.MagicMock() bdm_mock.__getitem__ = lambda s, k: bdm_info[k] bdm_mock.get = lambda *k, **kw: bdm_info.get(*k, **kw) bdm_mock.id = id return bdm_mock def _concurrency(signal, wait, done, target, is_block_dev=False): signal.send() wait.wait() done.send() class FakeVirDomainSnapshot(object): def __init__(self, dom=None): self.dom = dom def delete(self, flags): pass class FakeVirtDomain(object): def __init__(self, fake_xml=None, uuidstr=None): self.uuidstr = uuidstr if fake_xml: self._fake_dom_xml = fake_xml else: self._fake_dom_xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> </disk> </devices> </domain> """ def name(self): return "fake-domain %s" % self def info(self): return [power_state.RUNNING, None, None, None, None] def create(self): pass def managedSave(self, *args): pass def createWithFlags(self, launch_flags): pass def XMLDesc(self, *args): return self._fake_dom_xml def UUIDString(self): return self.uuidstr def attachDeviceFlags(self, xml, flags): pass def detachDeviceFlags(self, xml, flags): pass def snapshotCreateXML(self, xml, flags): pass def blockCommit(self, disk, base, top, bandwidth=0, flags=0): pass def blockRebase(self, disk, base, bandwidth=0, flags=0): pass def blockJobInfo(self, path, flags): pass def resume(self): pass class CacheConcurrencyTestCase(test.TestCase): def setUp(self): super(CacheConcurrencyTestCase, self).setUp() self.flags(instances_path=self.useFixture(fixtures.TempDir()).path) # utils.synchronized() will create the lock_path for us if it # doesn't already exist. It will also delete it when it's done, # which can cause race conditions with the multiple threads we # use for tests. So, create the path here so utils.synchronized() # won't delete it out from under one of the threads. self.lock_path = os.path.join(CONF.instances_path, 'locks') fileutils.ensure_tree(self.lock_path) def fake_exists(fname): basedir = os.path.join(CONF.instances_path, CONF.image_cache_subdirectory_name) if fname == basedir or fname == self.lock_path: return True return False def fake_execute(*args, **kwargs): pass def fake_extend(image, size, use_cow=False): pass self.stubs.Set(os.path, 'exists', fake_exists) self.stubs.Set(utils, 'execute', fake_execute) self.stubs.Set(imagebackend.disk, 'extend', fake_extend) self.useFixture(fixtures.MonkeyPatch( 'nova.virt.libvirt.imagebackend.libvirt_utils', fake_libvirt_utils)) def test_same_fname_concurrency(self): # Ensures that the same fname cache runs at a sequentially. uuid = uuidutils.generate_uuid() backend = imagebackend.Backend(False) wait1 = eventlet.event.Event() done1 = eventlet.event.Event() sig1 = eventlet.event.Event() thr1 = eventlet.spawn(backend.image({'name': 'instance', 'uuid': uuid}, 'name').cache, _concurrency, 'fname', None, signal=sig1, wait=wait1, done=done1) eventlet.sleep(0) # Thread 1 should run before thread 2. sig1.wait() wait2 = eventlet.event.Event() done2 = eventlet.event.Event() sig2 = eventlet.event.Event() thr2 = eventlet.spawn(backend.image({'name': 'instance', 'uuid': uuid}, 'name').cache, _concurrency, 'fname', None, signal=sig2, wait=wait2, done=done2) wait2.send() eventlet.sleep(0) try: self.assertFalse(done2.ready()) finally: wait1.send() done1.wait() eventlet.sleep(0) self.assertTrue(done2.ready()) # Wait on greenthreads to assert they didn't raise exceptions # during execution thr1.wait() thr2.wait() def test_different_fname_concurrency(self): # Ensures that two different fname caches are concurrent. uuid = uuidutils.generate_uuid() backend = imagebackend.Backend(False) wait1 = eventlet.event.Event() done1 = eventlet.event.Event() sig1 = eventlet.event.Event() thr1 = eventlet.spawn(backend.image({'name': 'instance', 'uuid': uuid}, 'name').cache, _concurrency, 'fname2', None, signal=sig1, wait=wait1, done=done1) eventlet.sleep(0) # Thread 1 should run before thread 2. sig1.wait() wait2 = eventlet.event.Event() done2 = eventlet.event.Event() sig2 = eventlet.event.Event() thr2 = eventlet.spawn(backend.image({'name': 'instance', 'uuid': uuid}, 'name').cache, _concurrency, 'fname1', None, signal=sig2, wait=wait2, done=done2) eventlet.sleep(0) # Wait for thread 2 to start. sig2.wait() wait2.send() tries = 0 while not done2.ready() and tries < 10: eventlet.sleep(0) tries += 1 try: self.assertTrue(done2.ready()) finally: wait1.send() eventlet.sleep(0) # Wait on greenthreads to assert they didn't raise exceptions # during execution thr1.wait() thr2.wait() class FakeVolumeDriver(object): def __init__(self, *args, **kwargs): pass def attach_volume(self, *args): pass def detach_volume(self, *args): pass def get_xml(self, *args): return "" def connect_volume(self, *args): """Connect the volume to a fake device.""" conf = vconfig.LibvirtConfigGuestDisk() conf.source_type = "network" conf.source_protocol = "fake" conf.source_name = "fake" conf.target_dev = "fake" conf.target_bus = "fake" return conf class FakeConfigGuestDisk(object): def __init__(self, *args, **kwargs): self.source_type = None self.driver_cache = None class FakeConfigGuest(object): def __init__(self, *args, **kwargs): self.driver_cache = None class FakeNodeDevice(object): def __init__(self, fakexml): self.xml = fakexml def XMLDesc(self, *args): return self.xml class LibvirtConnTestCase(test.TestCase): def setUp(self): super(LibvirtConnTestCase, self).setUp() self.useFixture(test.SampleNetworks()) self.flags(fake_call=True) self.user_id = 'fake' self.project_id = 'fake' self.context = context.get_admin_context() temp_dir = self.useFixture(fixtures.TempDir()).path self.flags(instances_path=temp_dir) self.flags(snapshots_directory=temp_dir, group='libvirt') self.useFixture(fixtures.MonkeyPatch( 'nova.virt.libvirt.driver.libvirt_utils', fake_libvirt_utils)) # Force libvirt to return a host UUID that matches the serial in # nova.tests.fakelibvirt. This is necessary because the host UUID # returned by libvirt becomes the serial whose value is checked for in # test_xml_and_uri_* below. self.useFixture(fixtures.MonkeyPatch( 'nova.virt.libvirt.driver.LibvirtDriver.get_host_uuid', lambda _: 'cef19ce0-0ca2-11df-855d-b19fbce37686')) self.useFixture(fixtures.MonkeyPatch( 'nova.virt.libvirt.imagebackend.libvirt_utils', fake_libvirt_utils)) def fake_extend(image, size, use_cow=False): pass self.stubs.Set(libvirt_driver.disk, 'extend', fake_extend) self.stubs.Set(imagebackend.Image, 'resolve_driver_format', imagebackend.Image._get_driver_format) class FakeConn(): def baselineCPU(self, cpu, flag): """Add new libvirt API.""" return """<cpu mode='custom' match='exact'> <model fallback='allow'>Westmere</model> <vendor>Intel</vendor> <feature policy='require' name='aes'/> </cpu>""" def getCapabilities(self): """Ensure standard capabilities being returned.""" return """<capabilities> <host><cpu><arch>x86_64</arch></cpu></host> </capabilities>""" def getVersion(self): return 1005001 def getLibVersion(self): return (0 * 1000 * 1000) + (9 * 1000) + 11 def domainEventRegisterAny(self, *args, **kwargs): pass def registerCloseCallback(self, cb, opaque): pass def nwfilterDefineXML(self, *args, **kwargs): pass def nodeDeviceLookupByName(self, x): pass def lookupByName(self, name): pass self.conn = FakeConn() self.stubs.Set(libvirt_driver.LibvirtDriver, '_connect', lambda *a, **k: self.conn) flavor = db.flavor_get(self.context, 5) sys_meta = flavors.save_flavor_info({}, flavor) nova.tests.image.fake.stub_out_image_service(self.stubs) self.test_instance = { 'uuid': '32dfcb37-5af1-552b-357c-be8c3aa38310', 'memory_kb': '1024000', 'basepath': '/some/path', 'bridge_name': 'br100', 'vcpus': 2, 'project_id': 'fake', 'bridge': 'br101', 'image_ref': '155d900f-4e14-4e4c-a73d-069cbf4541e6', 'root_gb': 10, 'ephemeral_gb': 20, 'instance_type_id': '5', # m1.small 'extra_specs': {}, 'system_metadata': sys_meta, "pci_devices": []} def relpath(self, path): return os.path.relpath(path, CONF.instances_path) def tearDown(self): nova.tests.image.fake.FakeImageService_reset() super(LibvirtConnTestCase, self).tearDown() def create_fake_libvirt_mock(self, **kwargs): """Defining mocks for LibvirtDriver(libvirt is not used).""" # A fake libvirt.virConnect class FakeLibvirtDriver(object): def defineXML(self, xml): return FakeVirtDomain() # Creating mocks volume_driver = ('iscsi=nova.tests.virt.libvirt.test_libvirt' '.FakeVolumeDriver') self.flags(volume_drivers=[volume_driver], group='libvirt') fake = FakeLibvirtDriver() # Customizing above fake if necessary for key, val in kwargs.items(): fake.__setattr__(key, val) self.flags(vif_driver="nova.tests.fake_network.FakeVIFDriver", group='libvirt') self.stubs.Set(libvirt_driver.LibvirtDriver, '_conn', fake) def fake_lookup(self, instance_name): return FakeVirtDomain() def fake_execute(self, *args, **kwargs): open(args[-1], "a").close() def _create_service(self, **kwargs): service_ref = {'host': kwargs.get('host', 'dummy'), 'disabled': kwargs.get('disabled', False), 'binary': 'nova-compute', 'topic': 'compute', 'report_count': 0} return db.service_create(context.get_admin_context(), service_ref) def _get_host_disabled(self, host): return db.service_get_by_compute_host(context.get_admin_context(), host)['disabled'] def test_set_host_enabled_with_disable(self): # Tests disabling an enabled host. conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self._create_service(host='fake-mini') conn._set_host_enabled(False) self.assertTrue(self._get_host_disabled('fake-mini')) def test_set_host_enabled_with_enable(self): # Tests enabling a disabled host. conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self._create_service(disabled=True, host='fake-mini') conn._set_host_enabled(True) self.assertTrue(self._get_host_disabled('fake-mini')) def test_set_host_enabled_with_enable_state_enabled(self): # Tests enabling an enabled host. conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self._create_service(disabled=False, host='fake-mini') conn._set_host_enabled(True) self.assertFalse(self._get_host_disabled('fake-mini')) def test_set_host_enabled_with_disable_state_disabled(self): # Tests disabling a disabled host. conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self._create_service(disabled=True, host='fake-mini') conn._set_host_enabled(False) self.assertTrue(self._get_host_disabled('fake-mini')) def test_set_host_enabled_swallows_exceptions(self): # Tests that set_host_enabled will swallow exceptions coming from the # db_api code so they don't break anything calling it, e.g. the # _get_new_connection method. conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) with mock.patch.object(db, 'service_get_by_compute_host') as db_mock: # Make db.service_get_by_compute_host raise NovaException; this # is more robust than just raising ComputeHostNotFound. db_mock.side_effect = exception.NovaException conn._set_host_enabled(False) def create_instance_obj(self, context, **params): default_params = self.test_instance default_params['pci_devices'] = pci_device_obj.PciDeviceList() default_params.update(params) instance = instance_obj.Instance(context, **params) instance.create() return instance def test_prepare_pci_device(self): pci_devices = [dict(hypervisor_name='xxx')] self.flags(virt_type='xen', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) class FakeDev(): def attach(self): pass def dettach(self): pass def reset(self): pass self.mox.StubOutWithMock(self.conn, 'nodeDeviceLookupByName') self.conn.nodeDeviceLookupByName('xxx').AndReturn(FakeDev()) self.conn.nodeDeviceLookupByName('xxx').AndReturn(FakeDev()) self.mox.ReplayAll() conn._prepare_pci_devices_for_use(pci_devices) def test_prepare_pci_device_exception(self): pci_devices = [dict(hypervisor_name='xxx', id='id1', instance_uuid='uuid')] self.flags(virt_type='xen', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) class FakeDev(): def attach(self): pass def dettach(self): raise libvirt.libvirtError("xxxxx") def reset(self): pass self.stubs.Set(self.conn, 'nodeDeviceLookupByName', lambda x: FakeDev()) self.assertRaises(exception.PciDevicePrepareFailed, conn._prepare_pci_devices_for_use, pci_devices) def test_detach_pci_devices_exception(self): pci_devices = [dict(hypervisor_name='xxx', id='id1', instance_uuid='uuid')] conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, 'has_min_version') libvirt_driver.LibvirtDriver.has_min_version = lambda x, y: False self.assertRaises(exception.PciDeviceDetachFailed, conn._detach_pci_devices, None, pci_devices) def test_detach_pci_devices(self): fake_domXML1 =\ """<domain> <devices> <hostdev mode="subsystem" type="pci" managed="yes"> <source> <address function="0x1" slot="0x10" domain="0x0000" bus="0x04"/> </source> </hostdev></devices></domain>""" pci_devices = [dict(hypervisor_name='xxx', id='id1', instance_uuid='uuid', address="0001:04:10:1")] conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, 'has_min_version') libvirt_driver.LibvirtDriver.has_min_version = lambda x, y: True self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, 'get_guest_pci_device') class FakeDev(): def to_xml(self): pass libvirt_driver.LibvirtDriver.get_guest_pci_device =\ lambda x, y: FakeDev() class FakeDomain(): def detachDeviceFlags(self, xml, flag): pci_devices[0]['hypervisor_name'] = 'marked' pass def XMLDesc(self, flag): return fake_domXML1 conn._detach_pci_devices(FakeDomain(), pci_devices) self.assertEqual(pci_devices[0]['hypervisor_name'], 'marked') def test_detach_pci_devices_timeout(self): fake_domXML1 =\ """<domain> <devices> <hostdev mode="subsystem" type="pci" managed="yes"> <source> <address function="0x1" slot="0x10" domain="0x0000" bus="0x04"/> </source> </hostdev> </devices> </domain>""" pci_devices = [dict(hypervisor_name='xxx', id='id1', instance_uuid='uuid', address="0000:04:10:1")] conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, 'has_min_version') libvirt_driver.LibvirtDriver.has_min_version = lambda x, y: True self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, 'get_guest_pci_device') class FakeDev(): def to_xml(self): pass libvirt_driver.LibvirtDriver.get_guest_pci_device =\ lambda x, y: FakeDev() class FakeDomain(): def detachDeviceFlags(self, xml, flag): pass def XMLDesc(self, flag): return fake_domXML1 self.assertRaises(exception.PciDeviceDetachFailed, conn._detach_pci_devices, FakeDomain(), pci_devices) def test_get_connector(self): initiator = 'fake.initiator.iqn' ip = 'fakeip' host = 'fakehost' wwpns = ['100010604b019419'] wwnns = ['200010604b019419'] self.flags(my_ip=ip) self.flags(host=host) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) expected = { 'ip': ip, 'initiator': initiator, 'host': host, 'wwpns': wwpns, 'wwnns': wwnns } volume = { 'id': 'fake' } result = conn.get_volume_connector(volume) self.assertThat(expected, matchers.DictMatches(result)) def test_lifecycle_event_registration(self): calls = [] def fake_registerErrorHandler(*args, **kwargs): calls.append('fake_registerErrorHandler') def fake_get_host_capabilities(**args): cpu = vconfig.LibvirtConfigGuestCPU() cpu.arch = "armv7l" caps = vconfig.LibvirtConfigCaps() caps.host = vconfig.LibvirtConfigCapsHost() caps.host.cpu = cpu calls.append('fake_get_host_capabilities') return caps @mock.patch.object(libvirt, 'registerErrorHandler', side_effect=fake_registerErrorHandler) @mock.patch.object(libvirt_driver.LibvirtDriver, 'get_host_capabilities', side_effect=fake_get_host_capabilities) def test_init_host(get_host_capabilities, register_error_handler): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) conn.init_host("test_host") test_init_host() # NOTE(dkliban): Will fail if get_host_capabilities is called before # registerErrorHandler self.assertEqual(['fake_registerErrorHandler', 'fake_get_host_capabilities'], calls) def test_sanitize_log_to_xml(self): # setup fake data data = {'auth_password': 'scrubme'} bdm = [{'connection_info': {'data': data}}] bdi = {'block_device_mapping': bdm} # Tests that the parameters to the to_xml method are sanitized for # passwords when logged. def fake_debug(*args, **kwargs): if 'auth_password' in args[0]: self.assertNotIn('scrubme', args[0]) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) conf = mock.Mock() with contextlib.nested( mock.patch.object(libvirt_driver.LOG, 'debug', side_effect=fake_debug), mock.patch.object(conn, 'get_guest_config', return_value=conf) ) as ( debug_mock, conf_mock ): conn.to_xml(self.context, self.test_instance, network_info={}, disk_info={}, image_meta={}, block_device_info=bdi) # we don't care what the log message is, we just want to make sure # our stub method is called which asserts the password is scrubbed self.assertTrue(debug_mock.called) def test_close_callback(self): self.close_callback = None def set_close_callback(cb, opaque): self.close_callback = cb conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) service_mock = mock.MagicMock() service_mock.disabled.return_value = False with contextlib.nested( mock.patch.object(conn, "_connect", return_value=self.conn), mock.patch.object(self.conn, "registerCloseCallback", side_effect=set_close_callback), mock.patch.object(service_obj.Service, "get_by_compute_host", return_value=service_mock)): # verify that the driver registers for the close callback # and re-connects after receiving the callback conn._get_connection() self.assertFalse(service_mock.disabled) self.assertTrue(self.close_callback) conn._init_events_pipe() self.close_callback(self.conn, 1, None) conn._dispatch_events() self.assertTrue(service_mock.disabled) conn._get_connection() def test_close_callback_bad_signature(self): '''Validates that a connection to libvirt exist, even when registerCloseCallback method has a different number of arguments in the libvirt python library. ''' conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) service_mock = mock.MagicMock() service_mock.disabled.return_value = False with contextlib.nested( mock.patch.object(conn, "_connect", return_value=self.conn), mock.patch.object(self.conn, "registerCloseCallback", side_effect=TypeError('dd')), mock.patch.object(service_obj.Service, "get_by_compute_host", return_value=service_mock)): connection = conn._get_connection() self.assertTrue(connection) def test_close_callback_not_defined(self): '''Validates that a connection to libvirt exist, even when registerCloseCallback method missing from the libvirt python library. ''' conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) service_mock = mock.MagicMock() service_mock.disabled.return_value = False with contextlib.nested( mock.patch.object(conn, "_connect", return_value=self.conn), mock.patch.object(self.conn, "registerCloseCallback", side_effect=AttributeError('dd')), mock.patch.object(service_obj.Service, "get_by_compute_host", return_value=service_mock)): connection = conn._get_connection() self.assertTrue(connection) def test_cpu_features_bug_1217630(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) # Test old version of libvirt, it shouldn't see the `aes' feature with mock.patch('nova.virt.libvirt.driver.libvirt') as mock_libvirt: del mock_libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES caps = conn.get_host_capabilities() self.assertNotIn('aes', [x.name for x in caps.host.cpu.features]) # Test new verion of libvirt, should find the `aes' feature with mock.patch('nova.virt.libvirt.driver.libvirt') as mock_libvirt: mock_libvirt['VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES'] = 1 # Cleanup the capabilities cache firstly conn._caps = None caps = conn.get_host_capabilities() self.assertIn('aes', [x.name for x in caps.host.cpu.features]) def test_lxc_get_host_capabilities_failed(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) with mock.patch.object(conn._conn, 'baselineCPU', return_value=-1): setattr(libvirt, 'VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES', 1) caps = conn.get_host_capabilities() delattr(libvirt, 'VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES') self.assertEqual(vconfig.LibvirtConfigCaps, type(caps)) self.assertNotIn('aes', [x.name for x in caps.host.cpu.features]) def test_get_guest_config(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertEqual(cfg.uuid, instance_ref["uuid"]) self.assertEqual(cfg.acpi, True) self.assertEqual(cfg.apic, True) self.assertEqual(cfg.memory, 2 * units.Mi) self.assertEqual(cfg.vcpus, 1) self.assertEqual(cfg.os_type, vm_mode.HVM) self.assertEqual(cfg.os_boot_dev, ["hd"]) self.assertIsNone(cfg.os_root) self.assertEqual(len(cfg.devices), 8) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestInterface) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[7], vconfig.LibvirtConfigGuestVideo) def test_get_guest_config_clock(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {} hpet_map = { "x86_64": True, "i686": True, "ppc": False, "ppc64": False, "armv7": False, "aarch64": False, } for arch, expect_hpet in hpet_map.items(): with mock.patch.object(libvirt_driver.libvirt_utils, 'get_arch', return_value=arch): cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertIsInstance(cfg.clock, vconfig.LibvirtConfigGuestClock) self.assertEqual(cfg.clock.offset, "utc") self.assertIsInstance(cfg.clock.timers[0], vconfig.LibvirtConfigGuestTimer) self.assertIsInstance(cfg.clock.timers[1], vconfig.LibvirtConfigGuestTimer) self.assertEqual(cfg.clock.timers[0].name, "pit") self.assertEqual(cfg.clock.timers[0].tickpolicy, "delay") self.assertEqual(cfg.clock.timers[1].name, "rtc") self.assertEqual(cfg.clock.timers[1].tickpolicy, "catchup") if expect_hpet: self.assertEqual(4, len(cfg.clock.timers)) self.assertIsInstance(cfg.clock.timers[3], vconfig.LibvirtConfigGuestTimer) self.assertEqual('hpet', cfg.clock.timers[3].name) self.assertFalse(cfg.clock.timers[3].present) else: self.assertEqual(3, len(cfg.clock.timers)) def test_get_guest_config_windows(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) instance_ref['os_type'] = 'windows' disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsInstance(cfg.clock, vconfig.LibvirtConfigGuestClock) self.assertEqual(cfg.clock.offset, "localtime") def test_get_guest_config_with_two_nics(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 2), None, disk_info) self.assertEqual(cfg.acpi, True) self.assertEqual(cfg.memory, 2 * units.Mi) self.assertEqual(cfg.vcpus, 1) self.assertEqual(cfg.os_type, vm_mode.HVM) self.assertEqual(cfg.os_boot_dev, ["hd"]) self.assertIsNone(cfg.os_root) self.assertEqual(len(cfg.devices), 9) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestInterface) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestInterface) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[7], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[8], vconfig.LibvirtConfigGuestVideo) def test_get_guest_config_bug_1118829(self): self.flags(virt_type='uml', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = {'disk_bus': 'virtio', 'cdrom_bus': 'ide', 'mapping': {u'vda': {'bus': 'virtio', 'type': 'disk', 'dev': u'vda'}, 'root': {'bus': 'virtio', 'type': 'disk', 'dev': 'vda'}}} # NOTE(jdg): For this specific test leave this blank # This will exercise the failed code path still, # and won't require fakes and stubs of the iscsi discovery block_device_info = {} cfg = conn.get_guest_config(instance_ref, [], None, disk_info, None, block_device_info) instance_ref = db.instance_get(self.context, instance_ref['id']) self.assertEqual(instance_ref['root_device_name'], '/dev/vda') def test_get_guest_config_with_root_device_name(self): self.flags(virt_type='uml', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) block_device_info = {'root_device_name': '/dev/vdb'} disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref, block_device_info) cfg = conn.get_guest_config(instance_ref, [], None, disk_info, None, block_device_info) self.assertEqual(cfg.acpi, False) self.assertEqual(cfg.memory, 2 * units.Mi) self.assertEqual(cfg.vcpus, 1) self.assertEqual(cfg.os_type, "uml") self.assertEqual(cfg.os_boot_dev, []) self.assertEqual(cfg.os_root, '/dev/vdb') self.assertEqual(len(cfg.devices), 3) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestConsole) def test_get_guest_config_with_block_device(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) conn_info = {'driver_volume_type': 'fake'} info = {'block_device_mapping': [ mocked_bdm(1, {'connection_info': conn_info, 'mount_device': '/dev/vdc'}), mocked_bdm(2, {'connection_info': conn_info, 'mount_device': '/dev/vdd'}), ]} disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref, info) cfg = conn.get_guest_config(instance_ref, [], None, disk_info, None, info) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestDisk) self.assertEqual(cfg.devices[2].target_dev, 'vdc') self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestDisk) self.assertEqual(cfg.devices[3].target_dev, 'vdd') self.assertTrue(info['block_device_mapping'][0].save.called) self.assertTrue(info['block_device_mapping'][1].save.called) def test_get_guest_config_with_configdrive(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) # make configdrive.required_by() return True instance_ref['config_drive'] = True disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestDisk) self.assertEqual(cfg.devices[2].target_dev, 'hdd') def test_get_guest_config_with_virtio_scsi_bus(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) image_meta = {"properties": {"hw_scsi_model": "virtio-scsi"}} instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref, [], image_meta) cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestController) self.assertEqual(cfg.devices[2].model, 'virtio-scsi') def test_get_guest_config_with_virtio_scsi_bus_bdm(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) image_meta = {"properties": {"hw_scsi_model": "virtio-scsi"}} instance_ref = db.instance_create(self.context, self.test_instance) conn_info = {'driver_volume_type': 'fake'} bd_info = {'block_device_mapping': [ mocked_bdm(1, {'connection_info': conn_info, 'mount_device': '/dev/sdc', 'disk_bus': 'scsi'}), mocked_bdm(2, {'connection_info': conn_info, 'mount_device': '/dev/sdd', 'disk_bus': 'scsi'}), ]} disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref, bd_info, image_meta) cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info, [], bd_info) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestDisk) self.assertEqual(cfg.devices[2].target_dev, 'sdc') self.assertEqual(cfg.devices[2].target_bus, 'scsi') self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestDisk) self.assertEqual(cfg.devices[3].target_dev, 'sdd') self.assertEqual(cfg.devices[3].target_bus, 'scsi') self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestController) self.assertEqual(cfg.devices[4].model, 'virtio-scsi') def test_get_guest_config_with_vnc(self): self.flags(vnc_enabled=True) self.flags(virt_type='kvm', use_usb_tablet=False, group='libvirt') self.flags(enabled=False, group='spice') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) self.assertEqual(len(cfg.devices), 6) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[4].type, "vnc") def test_get_guest_config_with_vnc_and_tablet(self): self.flags(vnc_enabled=True) self.flags(virt_type='kvm', use_usb_tablet=True, group='libvirt') self.flags(enabled=False, group='spice') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[4].type, "tablet") self.assertEqual(cfg.devices[5].type, "vnc") def test_get_guest_config_with_spice_and_tablet(self): self.flags(vnc_enabled=False) self.flags(virt_type='kvm', use_usb_tablet=True, group='libvirt') self.flags(enabled=True, agent_enabled=False, group='spice') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[4].type, "tablet") self.assertEqual(cfg.devices[5].type, "spice") def test_get_guest_config_with_spice_and_agent(self): self.flags(vnc_enabled=False) self.flags(virt_type='kvm', use_usb_tablet=True, group='libvirt') self.flags(enabled=True, agent_enabled=True, group='spice') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestChannel) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[4].target_name, "com.redhat.spice.0") self.assertEqual(cfg.devices[5].type, "spice") self.assertEqual(cfg.devices[6].type, "qxl") def test_get_guest_config_with_type_xen(self): self.flags(vnc_enabled=True) self.flags(virt_type='xen', use_usb_tablet=False, group='libvirt') self.flags(enabled=False, group='spice') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) self.assertEqual(len(cfg.devices), 5) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestConsole) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[3].type, "vnc") self.assertEqual(cfg.devices[4].type, "xen") def test_get_guest_config_with_vnc_and_spice(self): self.flags(vnc_enabled=True) self.flags(virt_type='kvm', use_usb_tablet=True, group='libvirt') self.flags(enabled=True, agent_enabled=True, group='spice') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) self.assertEqual(len(cfg.devices), 9) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestChannel) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[7], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[8], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[4].type, "tablet") self.assertEqual(cfg.devices[5].target_name, "com.redhat.spice.0") self.assertEqual(cfg.devices[6].type, "vnc") self.assertEqual(cfg.devices[7].type, "spice") def test_invalid_watchdog_action(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_watchdog_action": "something"}} self.assertRaises(exception.InvalidWatchdogAction, conn.get_guest_config, instance_ref, [], image_meta, disk_info) def test_get_guest_config_with_watchdog_action_through_image_meta(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_watchdog_action": "none"}} cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 8) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertIsInstance(cfg.devices[7], vconfig.LibvirtConfigGuestWatchdog) self.assertEqual("none", cfg.devices[7].action) def test_get_guest_config_with_watchdog_action_through_flavor(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) flavor = db.flavor_get(self.context, self.test_instance['instance_type_id']) db.flavor_extra_specs_update_or_create( self.context, flavor['flavorid'], {'hw_watchdog_action': 'none'}) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], {}, disk_info) db.flavor_extra_specs_delete(self.context, flavor['flavorid'], 'hw_watchdog_action') self.assertEqual(8, len(cfg.devices)) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertIsInstance(cfg.devices[7], vconfig.LibvirtConfigGuestWatchdog) self.assertEqual("none", cfg.devices[7].action) def test_get_guest_config_with_watchdog_action_meta_overrides_flavor(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) flavor = db.flavor_get(self.context, self.test_instance['instance_type_id']) db.flavor_extra_specs_update_or_create( self.context, flavor['flavorid'], {'hw_watchdog_action': 'none'}) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_watchdog_action": "pause"}} cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) db.flavor_extra_specs_delete(self.context, flavor['flavorid'], 'hw_watchdog_action') self.assertEqual(8, len(cfg.devices)) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertIsInstance(cfg.devices[7], vconfig.LibvirtConfigGuestWatchdog) self.assertEqual("pause", cfg.devices[7].action) def test_unsupported_video_driver_through_image_meta(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_video_model": "something"}} self.assertRaises(exception.InvalidVideoMode, conn.get_guest_config, instance_ref, [], image_meta, disk_info) def test_get_guest_config_with_video_driver_through_image_meta(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_video_model": "vmvga"}} cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[5].type, "vnc") self.assertEqual(cfg.devices[6].type, "vmvga") def test_get_guest_config_with_qga_through_image_meta(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_qemu_guest_agent": "yes"}} cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 8) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertIsInstance(cfg.devices[7], vconfig.LibvirtConfigGuestChannel) self.assertEqual(cfg.devices[4].type, "tablet") self.assertEqual(cfg.devices[5].type, "vnc") self.assertEqual(cfg.devices[7].type, "unix") self.assertEqual(cfg.devices[7].target_name, "org.qemu.guest_agent.0") def test_get_guest_config_with_video_driver_vram(self): self.flags(vnc_enabled=False) self.flags(virt_type='kvm', group='libvirt') self.flags(enabled=True, agent_enabled=True, group='spice') instance_type = flavor_obj.Flavor.get_by_id(self.context, 5) instance_type.extra_specs = {'hw_video:ram_max_mb': "100"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_video_model": "qxl", "hw_video_ram": "64"}} with mock.patch.object(flavor_obj.Flavor, 'get_by_id', return_value=instance_type): cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestChannel) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[5].type, "spice") self.assertEqual(cfg.devices[6].type, "qxl") self.assertEqual(cfg.devices[6].vram, 64) def test_video_driver_flavor_limit_not_set(self): self.flags(virt_type='kvm', group='libvirt') self.flags(enabled=True, agent_enabled=True, group='spice') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_video_model": "qxl", "hw_video_ram": "64"}} self.assertRaises(exception.RequestedVRamTooHigh, conn.get_guest_config, instance_ref, [], image_meta, disk_info) def test_video_driver_ram_above_flavor_limit(self): self.flags(virt_type='kvm', group='libvirt') self.flags(enabled=True, agent_enabled=True, group='spice') instance_type = flavor_obj.Flavor.get_by_id(self.context, 5) instance_type.extra_specs = {'hw_video:ram_max_mb': "50"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_video_model": "qxl", "hw_video_ram": "64"}} with mock.patch.object(flavor_obj.Flavor, 'get_by_id', return_value=instance_type): self.assertRaises(exception.RequestedVRamTooHigh, conn.get_guest_config, instance_ref, [], image_meta, disk_info) def test_get_guest_config_without_qga_through_image_meta(self): self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_qemu_guest_agent": "no"}} cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestInput) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[4].type, "tablet") self.assertEqual(cfg.devices[5].type, "vnc") def test_get_guest_config_with_rng_device(self): self.flags(virt_type='kvm', use_usb_tablet=False, group='libvirt') fake_flavour = flavor_obj.Flavor.get_by_id( self.context, self.test_instance['instance_type_id']) fake_flavour.extra_specs = {'hw_rng:allowed': 'True'} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_rng_model": "virtio"}} with mock.patch.object(flavor_obj.Flavor, 'get_by_id', return_value=fake_flavour): cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestVideo) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestRng) self.assertEqual(cfg.devices[6].model, 'random') self.assertIsNone(cfg.devices[6].backend) self.assertIsNone(cfg.devices[6].rate_bytes) self.assertIsNone(cfg.devices[6].rate_period) def test_get_guest_config_with_rng_not_allowed(self): self.flags(virt_type='kvm', use_usb_tablet=False, group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_rng_model": "virtio"}} cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 6) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestVideo) def test_get_guest_config_with_rng_limits(self): self.flags(virt_type='kvm', use_usb_tablet=False, group='libvirt') fake_flavour = flavor_obj.Flavor.get_by_id( self.context, self.test_instance['instance_type_id']) fake_flavour.extra_specs = {'hw_rng:allowed': 'True', 'hw_rng:rate_bytes': '1024', 'hw_rng:rate_period': '2'} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_rng_model": "virtio"}} with mock.patch.object(flavor_obj.Flavor, 'get_by_id', return_value=fake_flavour): cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestVideo) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestRng) self.assertEqual(cfg.devices[6].model, 'random') self.assertIsNone(cfg.devices[6].backend) self.assertEqual(cfg.devices[6].rate_bytes, 1024) self.assertEqual(cfg.devices[6].rate_period, 2) def test_get_guest_config_with_rng_backend(self): self.flags(virt_type='kvm', use_usb_tablet=False, rng_dev_path='/dev/hw_rng', group='libvirt') fake_flavour = flavor_obj.Flavor.get_by_id( self.context, self.test_instance['instance_type_id']) fake_flavour.extra_specs = {'hw_rng:allowed': 'True'} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_rng_model": "virtio"}} with contextlib.nested(mock.patch.object(flavor_obj.Flavor, 'get_by_id', return_value=fake_flavour), mock.patch('nova.virt.libvirt.driver.os.path.exists', return_value=True)): cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertEqual(len(cfg.devices), 7) self.assertIsInstance(cfg.devices[0], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[1], vconfig.LibvirtConfigGuestDisk) self.assertIsInstance(cfg.devices[2], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[3], vconfig.LibvirtConfigGuestSerial) self.assertIsInstance(cfg.devices[4], vconfig.LibvirtConfigGuestGraphics) self.assertIsInstance(cfg.devices[5], vconfig.LibvirtConfigGuestVideo) self.assertIsInstance(cfg.devices[6], vconfig.LibvirtConfigGuestRng) self.assertEqual(cfg.devices[6].model, 'random') self.assertEqual(cfg.devices[6].backend, '/dev/hw_rng') self.assertIsNone(cfg.devices[6].rate_bytes) self.assertIsNone(cfg.devices[6].rate_period) def test_get_guest_config_with_rng_dev_not_present(self): self.flags(virt_type='kvm', use_usb_tablet=False, rng_dev_path='/dev/hw_rng', group='libvirt') fake_flavour = flavor_obj.Flavor.get_by_id( self.context, self.test_instance['instance_type_id']) fake_flavour.extra_specs = {'hw_rng:allowed': 'True'} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_rng_model": "virtio"}} with contextlib.nested(mock.patch.object(flavor_obj.Flavor, 'get_by_id', return_value=fake_flavour), mock.patch('nova.virt.libvirt.driver.os.path.exists', return_value=False)): self.assertRaises(exception.RngDeviceNotExist, conn.get_guest_config, instance_ref, [], image_meta, disk_info) def _create_fake_service_compute(self): service_info = { 'host': 'fake', 'report_count': 0 } service_ref = db.service_create(self.context, service_info) compute_info = { 'vcpus': 2, 'memory_mb': 1024, 'local_gb': 2048, 'vcpus_used': 0, 'memory_mb_used': 0, 'local_gb_used': 0, 'free_ram_mb': 1024, 'free_disk_gb': 2048, 'hypervisor_type': 'xen', 'hypervisor_version': 1, 'running_vms': 0, 'cpu_info': '', 'current_workload': 0, 'service_id': service_ref['id'] } compute_ref = db.compute_node_create(self.context, compute_info) return (service_ref, compute_ref) def test_get_guest_config_with_pci_passthrough_kvm(self): self.flags(virt_type='kvm', group='libvirt') service_ref, compute_ref = self._create_fake_service_compute() instance_ref = db.instance_create(self.context, self.test_instance) pci_device_info = dict(test_pci_device.fake_db_dev) pci_device_info.update(compute_node_id=1, label='fake', status='allocated', address='0000:00:00.1', compute_id=compute_ref['id'], instance_uuid=instance_ref['uuid'], extra_info=jsonutils.dumps({})) db.pci_device_update(self.context, pci_device_info['compute_node_id'], pci_device_info['address'], pci_device_info) instance_ref = db.instance_get(self.context, instance_ref['id']) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) had_pci = 0 # care only about the PCI devices for dev in cfg.devices: if type(dev) == vconfig.LibvirtConfigGuestHostdevPCI: had_pci += 1 self.assertEqual(dev.type, 'pci') self.assertEqual(dev.managed, 'yes') self.assertEqual(dev.mode, 'subsystem') self.assertEqual(dev.domain, "0000") self.assertEqual(dev.bus, "00") self.assertEqual(dev.slot, "00") self.assertEqual(dev.function, "1") self.assertEqual(had_pci, 1) def test_get_guest_config_with_pci_passthrough_xen(self): self.flags(virt_type='xen', group='libvirt') service_ref, compute_ref = self._create_fake_service_compute() instance_ref = db.instance_create(self.context, self.test_instance) pci_device_info = dict(test_pci_device.fake_db_dev) pci_device_info.update(compute_node_id=1, label='fake', status='allocated', address='0000:00:00.2', compute_id=compute_ref['id'], instance_uuid=instance_ref['uuid'], extra_info=jsonutils.dumps({})) db.pci_device_update(self.context, pci_device_info['compute_node_id'], pci_device_info['address'], pci_device_info) instance_ref = db.instance_get(self.context, instance_ref['id']) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) cfg = conn.get_guest_config(instance_ref, [], None, disk_info) had_pci = 0 # care only about the PCI devices for dev in cfg.devices: if type(dev) == vconfig.LibvirtConfigGuestHostdevPCI: had_pci += 1 self.assertEqual(dev.type, 'pci') self.assertEqual(dev.managed, 'no') self.assertEqual(dev.mode, 'subsystem') self.assertEqual(dev.domain, "0000") self.assertEqual(dev.bus, "00") self.assertEqual(dev.slot, "00") self.assertEqual(dev.function, "2") self.assertEqual(had_pci, 1) def test_get_guest_config_os_command_line_through_image_meta(self): self.flags(virt_type="kvm", cpu_mode=None, group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"os_command_line": "fake_os_command_line"}} cfg = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), image_meta, disk_info) self.assertEqual(cfg.os_cmdline, "fake_os_command_line") def test_get_guest_config_armv7(self): def get_host_capabilities_stub(self): cpu = vconfig.LibvirtConfigGuestCPU() cpu.arch = "armv7l" caps = vconfig.LibvirtConfigCaps() caps.host = vconfig.LibvirtConfigCapsHost() caps.host.cpu = cpu return caps self.flags(virt_type="kvm", group="libvirt") instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) self.stubs.Set(libvirt_driver.LibvirtDriver, "get_host_capabilities", get_host_capabilities_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) cfg = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertEqual(cfg.os_mach_type, "vexpress-a15") def test_get_guest_config_aarch64(self): def get_host_capabilities_stub(self): cpu = vconfig.LibvirtConfigGuestCPU() cpu.arch = "aarch64" caps = vconfig.LibvirtConfigCaps() caps.host = vconfig.LibvirtConfigCapsHost() caps.host.cpu = cpu return caps self.flags(virt_type="kvm", group="libvirt") instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) self.stubs.Set(libvirt_driver.LibvirtDriver, "get_host_capabilities", get_host_capabilities_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) cfg = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertEqual(cfg.os_mach_type, "virt") def test_get_guest_config_machine_type_through_image_meta(self): self.flags(virt_type="kvm", group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {"properties": {"hw_machine_type": "fake_machine_type"}} cfg = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), image_meta, disk_info) self.assertEqual(cfg.os_mach_type, "fake_machine_type") def _test_get_guest_config_ppc64(self, device_index): """Test for nova.virt.libvirt.driver.LibvirtDriver.get_guest_config. """ self.flags(virt_type='kvm', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) image_meta = {} expected = ('ppc64', 'ppc') for arch in expected: with mock.patch.object(libvirt_driver.libvirt_utils, 'get_arch', return_value=arch): cfg = conn.get_guest_config(instance_ref, [], image_meta, disk_info) self.assertIsInstance(cfg.devices[device_index], vconfig.LibvirtConfigGuestVideo) self.assertEqual(cfg.devices[device_index].type, 'vga') def test_get_guest_config_ppc64_through_image_meta_vnc_enabled(self): self.flags(vnc_enabled=True) self._test_get_guest_config_ppc64(6) def test_get_guest_config_ppc64_through_image_meta_spice_enabled(self): self.flags(enabled=True, agent_enabled=True, group='spice') self._test_get_guest_config_ppc64(8) def test_get_guest_cpu_config_none(self): self.flags(cpu_mode="none", group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsNone(conf.cpu) def test_get_guest_cpu_config_default_kvm(self): self.flags(virt_type="kvm", cpu_mode=None, group='libvirt') def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 11 self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsInstance(conf.cpu, vconfig.LibvirtConfigGuestCPU) self.assertEqual(conf.cpu.mode, "host-model") self.assertIsNone(conf.cpu.model) def test_get_guest_cpu_config_default_uml(self): self.flags(virt_type="uml", cpu_mode=None, group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsNone(conf.cpu) def test_get_guest_cpu_config_default_lxc(self): self.flags(virt_type="lxc", cpu_mode=None, group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsNone(conf.cpu) def test_get_guest_cpu_config_host_passthrough_new(self): def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 11 self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) self.flags(cpu_mode="host-passthrough", group='libvirt') disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsInstance(conf.cpu, vconfig.LibvirtConfigGuestCPU) self.assertEqual(conf.cpu.mode, "host-passthrough") self.assertIsNone(conf.cpu.model) def test_get_guest_cpu_config_host_model_new(self): def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 11 self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) self.flags(cpu_mode="host-model", group='libvirt') disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsInstance(conf.cpu, vconfig.LibvirtConfigGuestCPU) self.assertEqual(conf.cpu.mode, "host-model") self.assertIsNone(conf.cpu.model) def test_get_guest_cpu_config_custom_new(self): def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 11 self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) self.flags(cpu_mode="custom", cpu_model="Penryn", group='libvirt') disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsInstance(conf.cpu, vconfig.LibvirtConfigGuestCPU) self.assertEqual(conf.cpu.mode, "custom") self.assertEqual(conf.cpu.model, "Penryn") def test_get_guest_cpu_config_host_passthrough_old(self): def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 7 self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) self.flags(cpu_mode="host-passthrough", group='libvirt') disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) self.assertRaises(exception.NovaException, conn.get_guest_config, instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) def test_get_guest_cpu_config_host_model_old(self): def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 7 # Ensure we have a predictable host CPU def get_host_capabilities_stub(self): cpu = vconfig.LibvirtConfigGuestCPU() cpu.model = "Opteron_G4" cpu.vendor = "AMD" cpu.features.append(vconfig.LibvirtConfigGuestCPUFeature("tm2")) cpu.features.append(vconfig.LibvirtConfigGuestCPUFeature("ht")) caps = vconfig.LibvirtConfigCaps() caps.host = vconfig.LibvirtConfigCapsHost() caps.host.cpu = cpu return caps self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) self.stubs.Set(libvirt_driver.LibvirtDriver, "get_host_capabilities", get_host_capabilities_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) self.flags(cpu_mode="host-model", group='libvirt') disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsInstance(conf.cpu, vconfig.LibvirtConfigGuestCPU) self.assertIsNone(conf.cpu.mode) self.assertEqual(conf.cpu.model, "Opteron_G4") self.assertEqual(conf.cpu.vendor, "AMD") self.assertEqual(len(conf.cpu.features), 2) self.assertEqual(conf.cpu.features[0].name, "tm2") self.assertEqual(conf.cpu.features[1].name, "ht") def test_get_guest_cpu_config_custom_old(self): def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 7 self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, self.test_instance) self.flags(cpu_mode="custom", cpu_model="Penryn", group='libvirt') disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) conf = conn.get_guest_config(instance_ref, _fake_network_info(self.stubs, 1), None, disk_info) self.assertIsInstance(conf.cpu, vconfig.LibvirtConfigGuestCPU) self.assertIsNone(conf.cpu.mode) self.assertEqual(conf.cpu.model, "Penryn") def test_xml_and_uri_no_ramdisk_no_kernel(self): instance_data = dict(self.test_instance) self._check_xml_and_uri(instance_data, expect_kernel=False, expect_ramdisk=False) def test_xml_and_uri_no_ramdisk_no_kernel_xen_hvm(self): instance_data = dict(self.test_instance) instance_data.update({'vm_mode': vm_mode.HVM}) self._check_xml_and_uri(instance_data, expect_kernel=False, expect_ramdisk=False, expect_xen_hvm=True) def test_xml_and_uri_no_ramdisk_no_kernel_xen_pv(self): instance_data = dict(self.test_instance) instance_data.update({'vm_mode': vm_mode.XEN}) self._check_xml_and_uri(instance_data, expect_kernel=False, expect_ramdisk=False, expect_xen_hvm=False, xen_only=True) def test_xml_and_uri_no_ramdisk(self): instance_data = dict(self.test_instance) instance_data['kernel_id'] = 'aki-deadbeef' self._check_xml_and_uri(instance_data, expect_kernel=True, expect_ramdisk=False) def test_xml_and_uri_no_kernel(self): instance_data = dict(self.test_instance) instance_data['ramdisk_id'] = 'ari-deadbeef' self._check_xml_and_uri(instance_data, expect_kernel=False, expect_ramdisk=False) def test_xml_and_uri(self): instance_data = dict(self.test_instance) instance_data['ramdisk_id'] = 'ari-deadbeef' instance_data['kernel_id'] = 'aki-deadbeef' self._check_xml_and_uri(instance_data, expect_kernel=True, expect_ramdisk=True) def test_xml_and_uri_rescue(self): instance_data = dict(self.test_instance) instance_data['ramdisk_id'] = 'ari-deadbeef' instance_data['kernel_id'] = 'aki-deadbeef' self._check_xml_and_uri(instance_data, expect_kernel=True, expect_ramdisk=True, rescue=instance_data) def test_xml_and_uri_rescue_no_kernel_no_ramdisk(self): instance_data = dict(self.test_instance) self._check_xml_and_uri(instance_data, expect_kernel=False, expect_ramdisk=False, rescue=instance_data) def test_xml_and_uri_rescue_no_kernel(self): instance_data = dict(self.test_instance) instance_data['ramdisk_id'] = 'aki-deadbeef' self._check_xml_and_uri(instance_data, expect_kernel=False, expect_ramdisk=True, rescue=instance_data) def test_xml_and_uri_rescue_no_ramdisk(self): instance_data = dict(self.test_instance) instance_data['kernel_id'] = 'aki-deadbeef' self._check_xml_and_uri(instance_data, expect_kernel=True, expect_ramdisk=False, rescue=instance_data) def test_xml_uuid(self): self._check_xml_and_uuid({"disk_format": "raw"}) def test_lxc_container_and_uri(self): instance_data = dict(self.test_instance) self._check_xml_and_container(instance_data) def test_xml_disk_prefix(self): instance_data = dict(self.test_instance) self._check_xml_and_disk_prefix(instance_data) def test_xml_user_specified_disk_prefix(self): instance_data = dict(self.test_instance) self._check_xml_and_disk_prefix(instance_data, 'sd') def test_xml_disk_driver(self): instance_data = dict(self.test_instance) self._check_xml_and_disk_driver(instance_data) def test_xml_disk_bus_virtio(self): self._check_xml_and_disk_bus({"disk_format": "raw"}, None, (("disk", "virtio", "vda"),)) def test_xml_disk_bus_ide(self): self._check_xml_and_disk_bus({"disk_format": "iso"}, None, (("cdrom", "ide", "hda"),)) def test_xml_disk_bus_ide_and_virtio(self): swap = {'device_name': '/dev/vdc', 'swap_size': 1} ephemerals = [{'device_type': 'disk', 'disk_bus': 'virtio', 'device_name': '/dev/vdb', 'size': 1}] block_device_info = { 'swap': swap, 'ephemerals': ephemerals} self._check_xml_and_disk_bus({"disk_format": "iso"}, block_device_info, (("cdrom", "ide", "hda"), ("disk", "virtio", "vdb"), ("disk", "virtio", "vdc"))) def test_list_instances(self): self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByID = self.fake_lookup libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 2 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: [0, 1] libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instances = conn.list_instances() # Only one should be listed, since domain with ID 0 must be skipped self.assertEqual(len(instances), 1) def test_list_instance_uuids(self): self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByID = self.fake_lookup libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 2 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: [0, 1] libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instances = conn.list_instance_uuids() # Only one should be listed, since domain with ID 0 must be skipped self.assertEqual(len(instances), 1) def test_list_defined_instances(self): self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByID = self.fake_lookup libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 1 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: [0] libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [1] self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instances = conn.list_instances() # Only one defined domain should be listed self.assertEqual(len(instances), 1) def test_list_instances_when_instance_deleted(self): def fake_lookup(instance_name): raise libvirt.libvirtError("we deleted an instance!") self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByID = fake_lookup libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 1 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: [0, 1] libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] self.mox.StubOutWithMock(libvirt.libvirtError, "get_error_code") libvirt.libvirtError.get_error_code().AndReturn( libvirt.VIR_ERR_NO_DOMAIN) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instances = conn.list_instances() # None should be listed, since we fake deleted the last one self.assertEqual(len(instances), 0) def test_list_instance_uuids_when_instance_deleted(self): def fake_lookup(instance_name): raise libvirt.libvirtError("we deleted an instance!") self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByID = fake_lookup libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 1 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: [0, 1] libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] self.mox.StubOutWithMock(libvirt.libvirtError, "get_error_code") libvirt.libvirtError.get_error_code().AndReturn( libvirt.VIR_ERR_NO_DOMAIN) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instances = conn.list_instance_uuids() # None should be listed, since we fake deleted the last one self.assertEqual(len(instances), 0) def test_list_instances_throws_nova_exception(self): def fake_lookup(instance_name): raise libvirt.libvirtError("we deleted an instance!") self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByID = fake_lookup libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 1 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: [0, 1] libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] self.mox.StubOutWithMock(libvirt.libvirtError, "get_error_code") libvirt.libvirtError.get_error_code().AndReturn( libvirt.VIR_ERR_INTERNAL_ERROR) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertRaises(exception.NovaException, conn.list_instances) def test_list_instance_uuids_throws_nova_exception(self): def fake_lookup(instance_name): raise libvirt.libvirtError("we deleted an instance!") self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByID = fake_lookup libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 1 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: [0, 1] libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] self.mox.StubOutWithMock(libvirt.libvirtError, "get_error_code") libvirt.libvirtError.get_error_code().AndReturn( libvirt.VIR_ERR_INTERNAL_ERROR) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertRaises(exception.NovaException, conn.list_instance_uuids) def test_get_all_block_devices(self): xml = [ # NOTE(vish): id 0 is skipped None, """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> </disk> </devices> </domain> """, """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> </disk> </devices> </domain> """, """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> </disk> <disk type='block'> <source dev='/path/to/dev/3'/> </disk> </devices> </domain> """, ] def fake_lookup(id): return FakeVirtDomain(xml[id]) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 4 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: range(4) libvirt_driver.LibvirtDriver._conn.lookupByID = fake_lookup self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) devices = conn.get_all_block_devices() self.assertEqual(devices, ['/path/to/dev/1', '/path/to/dev/3']) def test_get_disks(self): xml = [ # NOTE(vish): id 0 is skipped None, """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> <target dev='vdb' bus='virtio'/> </disk> </devices> </domain> """, """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> </devices> </domain> """, """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> <disk type='block'> <source dev='/path/to/dev/3'/> <target dev='vdb' bus='virtio'/> </disk> </devices> </domain> """, ] def fake_lookup(id): return FakeVirtDomain(xml[id]) def fake_lookup_name(name): return FakeVirtDomain(xml[1]) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.numOfDomains = lambda: 4 libvirt_driver.LibvirtDriver._conn.listDomainsID = lambda: range(4) libvirt_driver.LibvirtDriver._conn.lookupByID = fake_lookup libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup_name libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) devices = conn.get_disks(conn.list_instances()[0]) self.assertEqual(devices, ['vda', 'vdb']) def test_snapshot_in_ami_format(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assign different image_ref from nova/images/fakes for testing ami test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = 'c905cedb-7281-47e4-8a62-f26bc5fc4c77' # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute libvirt_driver.libvirt_utils.disk_type = "qcow2" self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['disk_format'], 'ami') self.assertEqual(snapshot['name'], snapshot_name) def test_lxc_snapshot_in_ami_format(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', virt_type='lxc', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assign different image_ref from nova/images/fakes for testing ami test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = 'c905cedb-7281-47e4-8a62-f26bc5fc4c77' # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute libvirt_driver.libvirt_utils.disk_type = "qcow2" self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['disk_format'], 'ami') self.assertEqual(snapshot['name'], snapshot_name) def test_snapshot_in_raw_format(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, self.test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.stubs.Set(libvirt_driver.libvirt_utils, 'disk_type', 'raw') def convert_image(source, dest, out_format): libvirt_driver.libvirt_utils.files[dest] = '' self.stubs.Set(images, 'convert_image', convert_image) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['disk_format'], 'raw') self.assertEqual(snapshot['name'], snapshot_name) def test_lxc_snapshot_in_raw_format(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', virt_type='lxc', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, self.test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.stubs.Set(libvirt_driver.libvirt_utils, 'disk_type', 'raw') def convert_image(source, dest, out_format): libvirt_driver.libvirt_utils.files[dest] = '' self.stubs.Set(images, 'convert_image', convert_image) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['disk_format'], 'raw') self.assertEqual(snapshot['name'], snapshot_name) def test_snapshot_in_qcow2_format(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshot_image_format='qcow2', snapshots_directory='./', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, self.test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute libvirt_driver.libvirt_utils.disk_type = "qcow2" self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['disk_format'], 'qcow2') self.assertEqual(snapshot['name'], snapshot_name) def test_lxc_snapshot_in_qcow2_format(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshot_image_format='qcow2', snapshots_directory='./', virt_type='lxc', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, self.test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute libvirt_driver.libvirt_utils.disk_type = "qcow2" self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['disk_format'], 'qcow2') self.assertEqual(snapshot['name'], snapshot_name) def test_snapshot_no_image_architecture(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assign different image_ref from nova/images/fakes for # testing different base image test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = '76fa36fc-c930-4bf3-8c8a-ea2a2420deb6' # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['name'], snapshot_name) def test_lxc_snapshot_no_image_architecture(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', virt_type='lxc', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assign different image_ref from nova/images/fakes for # testing different base image test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = '76fa36fc-c930-4bf3-8c8a-ea2a2420deb6' # Assuming that base image already exists in image_service instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} # Create new image. It will be updated in snapshot method # To work with it from snapshot, the single image_service is needed recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['name'], snapshot_name) def test_snapshot_no_original_image(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assign a non-existent image test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = '661122aa-1234-dede-fefe-babababababa' instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['name'], snapshot_name) def test_lxc_snapshot_no_original_image(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', virt_type='lxc', group='libvirt') # Start test image_service = nova.tests.image.fake.FakeImageService() # Assign a non-existent image test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = '661122aa-1234-dede-fefe-babababababa' instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id)} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['name'], snapshot_name) def test_snapshot_metadata_image(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', group='libvirt') image_service = nova.tests.image.fake.FakeImageService() # Assign an image with an architecture defined (x86_64) test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = 'a440c04b-79fa-479c-bed1-0b816eaec379' instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id), 'architecture': 'fake_arch', 'key_a': 'value_a', 'key_b': 'value_b'} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['properties']['architecture'], 'fake_arch') self.assertEqual(snapshot['properties']['key_a'], 'value_a') self.assertEqual(snapshot['properties']['key_b'], 'value_b') self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['name'], snapshot_name) def test_snapshot_with_os_type(self): expected_calls = [ {'args': (), 'kwargs': {'task_state': task_states.IMAGE_PENDING_UPLOAD}}, {'args': (), 'kwargs': {'task_state': task_states.IMAGE_UPLOADING, 'expected_state': task_states.IMAGE_PENDING_UPLOAD}}] func_call_matcher = matchers.FunctionCallMatcher(expected_calls) self.flags(snapshots_directory='./', group='libvirt') image_service = nova.tests.image.fake.FakeImageService() # Assign a non-existent image test_instance = copy.deepcopy(self.test_instance) test_instance["image_ref"] = '661122aa-1234-dede-fefe-babababababa' test_instance["os_type"] = 'linux' instance_ref = db.instance_create(self.context, test_instance) properties = {'instance_id': instance_ref['id'], 'user_id': str(self.context.user_id), 'os_type': instance_ref['os_type']} snapshot_name = 'test-snap' sent_meta = {'name': snapshot_name, 'is_public': False, 'status': 'creating', 'properties': properties} recv_meta = image_service.create(context, sent_meta) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.StubOutWithMock(libvirt_driver.utils, 'execute') libvirt_driver.utils.execute = self.fake_execute self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.snapshot(self.context, instance_ref, recv_meta['id'], func_call_matcher.call) snapshot = image_service.show(context, recv_meta['id']) self.assertIsNone(func_call_matcher.match()) self.assertEqual(snapshot['properties']['image_state'], 'available') self.assertEqual(snapshot['properties']['os_type'], instance_ref['os_type']) self.assertEqual(snapshot['status'], 'active') self.assertEqual(snapshot['name'], snapshot_name) def test__create_snapshot_metadata(self): base = {} instance = {'kernel_id': 'kernel', 'project_id': 'prj_id', 'ramdisk_id': 'ram_id', 'os_type': None} img_fmt = 'raw' snp_name = 'snapshot_name' conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) ret = conn._create_snapshot_metadata(base, instance, img_fmt, snp_name) expected = {'is_public': False, 'status': 'active', 'name': snp_name, 'properties': { 'kernel_id': instance['kernel_id'], 'image_location': 'snapshot', 'image_state': 'available', 'owner_id': instance['project_id'], 'ramdisk_id': instance['ramdisk_id'], }, 'disk_format': img_fmt, 'container_format': base.get('container_format', 'bare') } self.assertEqual(ret, expected) # simulate an instance with os_type field defined # disk format equals to ami # container format not equals to bare instance['os_type'] = 'linux' base['disk_format'] = 'ami' base['container_format'] = 'test_container' expected['properties']['os_type'] = instance['os_type'] expected['disk_format'] = base['disk_format'] expected['container_format'] = base.get('container_format', 'bare') ret = conn._create_snapshot_metadata(base, instance, img_fmt, snp_name) self.assertEqual(ret, expected) def test_attach_invalid_volume_type(self): self.create_fake_libvirt_mock() libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertRaises(exception.VolumeDriverNotFound, conn.attach_volume, None, {"driver_volume_type": "badtype"}, {"name": "fake-instance"}, "/dev/sda") def test_attach_blockio_invalid_hypervisor(self): self.flags(virt_type='fake_type', group='libvirt') self.create_fake_libvirt_mock() libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertRaises(exception.InvalidHypervisorType, conn.attach_volume, None, {"driver_volume_type": "fake", "data": {"logical_block_size": "4096", "physical_block_size": "4096"} }, {"name": "fake-instance"}, "/dev/sda") def test_attach_blockio_invalid_version(self): def get_lib_version_stub(): return (0 * 1000 * 1000) + (9 * 1000) + 8 self.flags(virt_type='qemu', group='libvirt') self.create_fake_libvirt_mock() libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(self.conn, "getLibVersion", get_lib_version_stub) self.assertRaises(exception.Invalid, conn.attach_volume, None, {"driver_volume_type": "fake", "data": {"logical_block_size": "4096", "physical_block_size": "4096"} }, {"name": "fake-instance"}, "/dev/sda") def test_multi_nic(self): instance_data = dict(self.test_instance) network_info = _fake_network_info(self.stubs, 2) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) instance_ref = db.instance_create(self.context, instance_data) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) xml = conn.to_xml(self.context, instance_ref, network_info, disk_info) tree = etree.fromstring(xml) interfaces = tree.findall("./devices/interface") self.assertEqual(len(interfaces), 2) self.assertEqual(interfaces[0].get('type'), 'bridge') def _behave_supports_direct_io(self, raise_open=False, raise_write=False, exc=ValueError()): open_behavior = os.open(os.path.join('.', '.directio.test'), os.O_CREAT | os.O_WRONLY | os.O_DIRECT) if raise_open: open_behavior.AndRaise(exc) else: open_behavior.AndReturn(3) write_bahavior = os.write(3, mox.IgnoreArg()) if raise_write: write_bahavior.AndRaise(exc) else: os.close(3) os.unlink(3) def test_supports_direct_io(self): einval = OSError() einval.errno = errno.EINVAL self.mox.StubOutWithMock(os, 'open') self.mox.StubOutWithMock(os, 'write') self.mox.StubOutWithMock(os, 'close') self.mox.StubOutWithMock(os, 'unlink') _supports_direct_io = libvirt_driver.LibvirtDriver._supports_direct_io self._behave_supports_direct_io() self._behave_supports_direct_io(raise_write=True) self._behave_supports_direct_io(raise_open=True) self._behave_supports_direct_io(raise_write=True, exc=einval) self._behave_supports_direct_io(raise_open=True, exc=einval) self.mox.ReplayAll() self.assertTrue(_supports_direct_io('.')) self.assertRaises(ValueError, _supports_direct_io, '.') self.assertRaises(ValueError, _supports_direct_io, '.') self.assertFalse(_supports_direct_io('.')) self.assertFalse(_supports_direct_io('.')) self.mox.VerifyAll() def _check_xml_and_container(self, instance): user_context = context.RequestContext(self.user_id, self.project_id) instance_ref = db.instance_create(user_context, instance) self.flags(virt_type='lxc', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.assertEqual(conn.uri(), 'lxc:///') network_info = _fake_network_info(self.stubs, 1) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) xml = conn.to_xml(self.context, instance_ref, network_info, disk_info) tree = etree.fromstring(xml) check = [ (lambda t: t.find('.').get('type'), 'lxc'), (lambda t: t.find('./os/type').text, 'exe'), (lambda t: t.find('./devices/filesystem/target').get('dir'), '/')] for i, (check, expected_result) in enumerate(check): self.assertEqual(check(tree), expected_result, '%s failed common check %d' % (xml, i)) target = tree.find('./devices/filesystem/source').get('dir') self.assertTrue(len(target) > 0) def _check_xml_and_disk_prefix(self, instance, prefix=None): user_context = context.RequestContext(self.user_id, self.project_id) instance_ref = db.instance_create(user_context, instance) def _get_prefix(p, default): if p: return p + 'a' return default type_disk_map = { 'qemu': [ (lambda t: t.find('.').get('type'), 'qemu'), (lambda t: t.find('./devices/disk/target').get('dev'), _get_prefix(prefix, 'vda'))], 'xen': [ (lambda t: t.find('.').get('type'), 'xen'), (lambda t: t.find('./devices/disk/target').get('dev'), _get_prefix(prefix, 'sda'))], 'kvm': [ (lambda t: t.find('.').get('type'), 'kvm'), (lambda t: t.find('./devices/disk/target').get('dev'), _get_prefix(prefix, 'vda'))], 'uml': [ (lambda t: t.find('.').get('type'), 'uml'), (lambda t: t.find('./devices/disk/target').get('dev'), _get_prefix(prefix, 'ubda'))] } for (virt_type, checks) in type_disk_map.iteritems(): self.flags(virt_type=virt_type, group='libvirt') if prefix: self.flags(disk_prefix=prefix, group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) network_info = _fake_network_info(self.stubs, 1) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) xml = conn.to_xml(self.context, instance_ref, network_info, disk_info) tree = etree.fromstring(xml) for i, (check, expected_result) in enumerate(checks): self.assertEqual(check(tree), expected_result, '%s != %s failed check %d' % (check(tree), expected_result, i)) def _check_xml_and_disk_driver(self, image_meta): os_open = os.open directio_supported = True def os_open_stub(path, flags, *args, **kwargs): if flags & os.O_DIRECT: if not directio_supported: raise OSError(errno.EINVAL, '%s: %s' % (os.strerror(errno.EINVAL), path)) flags &= ~os.O_DIRECT return os_open(path, flags, *args, **kwargs) self.stubs.Set(os, 'open', os_open_stub) @staticmethod def connection_supports_direct_io_stub(dirpath): return directio_supported self.stubs.Set(libvirt_driver.LibvirtDriver, '_supports_direct_io', connection_supports_direct_io_stub) user_context = context.RequestContext(self.user_id, self.project_id) instance_ref = db.instance_create(user_context, self.test_instance) network_info = _fake_network_info(self.stubs, 1) drv = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) xml = drv.to_xml(self.context, instance_ref, network_info, disk_info, image_meta) tree = etree.fromstring(xml) disks = tree.findall('./devices/disk/driver') for disk in disks: self.assertEqual(disk.get("cache"), "none") directio_supported = False # The O_DIRECT availability is cached on first use in # LibvirtDriver, hence we re-create it here drv = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) xml = drv.to_xml(self.context, instance_ref, network_info, disk_info, image_meta) tree = etree.fromstring(xml) disks = tree.findall('./devices/disk/driver') for disk in disks: self.assertEqual(disk.get("cache"), "writethrough") def _check_xml_and_disk_bus(self, image_meta, block_device_info, wantConfig): user_context = context.RequestContext(self.user_id, self.project_id) instance_ref = db.instance_create(user_context, self.test_instance) network_info = _fake_network_info(self.stubs, 1) drv = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref, block_device_info, image_meta) xml = drv.to_xml(self.context, instance_ref, network_info, disk_info, image_meta, block_device_info=block_device_info) tree = etree.fromstring(xml) got_disks = tree.findall('./devices/disk') got_disk_targets = tree.findall('./devices/disk/target') for i in range(len(wantConfig)): want_device_type = wantConfig[i][0] want_device_bus = wantConfig[i][1] want_device_dev = wantConfig[i][2] got_device_type = got_disks[i].get('device') got_device_bus = got_disk_targets[i].get('bus') got_device_dev = got_disk_targets[i].get('dev') self.assertEqual(got_device_type, want_device_type) self.assertEqual(got_device_bus, want_device_bus) self.assertEqual(got_device_dev, want_device_dev) def _check_xml_and_uuid(self, image_meta): user_context = context.RequestContext(self.user_id, self.project_id) instance_ref = db.instance_create(user_context, self.test_instance) network_info = _fake_network_info(self.stubs, 1) drv = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref) xml = drv.to_xml(self.context, instance_ref, network_info, disk_info, image_meta) tree = etree.fromstring(xml) self.assertEqual(tree.find('./uuid').text, instance_ref['uuid']) def _check_xml_and_uri(self, instance, expect_ramdisk, expect_kernel, rescue=None, expect_xen_hvm=False, xen_only=False): user_context = context.RequestContext(self.user_id, self.project_id) instance_ref = db.instance_create(user_context, instance) network_ref = db.project_get_networks(context.get_admin_context(), self.project_id)[0] xen_vm_mode = vm_mode.XEN if expect_xen_hvm: xen_vm_mode = vm_mode.HVM type_uri_map = {'qemu': ('qemu:///system', [(lambda t: t.find('.').get('type'), 'qemu'), (lambda t: t.find('./os/type').text, vm_mode.HVM), (lambda t: t.find('./devices/emulator'), None)]), 'kvm': ('qemu:///system', [(lambda t: t.find('.').get('type'), 'kvm'), (lambda t: t.find('./os/type').text, vm_mode.HVM), (lambda t: t.find('./devices/emulator'), None)]), 'uml': ('uml:///system', [(lambda t: t.find('.').get('type'), 'uml'), (lambda t: t.find('./os/type').text, vm_mode.UML)]), 'xen': ('xen:///', [(lambda t: t.find('.').get('type'), 'xen'), (lambda t: t.find('./os/type').text, xen_vm_mode)])} if expect_xen_hvm or xen_only: hypervisors_to_check = ['xen'] else: hypervisors_to_check = ['qemu', 'kvm', 'xen'] for hypervisor_type in hypervisors_to_check: check_list = type_uri_map[hypervisor_type][1] if rescue: suffix = '.rescue' else: suffix = '' if expect_kernel: check = (lambda t: self.relpath(t.find('./os/kernel').text). split('/')[1], 'kernel' + suffix) else: check = (lambda t: t.find('./os/kernel'), None) check_list.append(check) if expect_kernel: check = (lambda t: "no_timer_check" in t.find('./os/cmdline'). text, hypervisor_type == "qemu") check_list.append(check) # Hypervisors that only support vm_mode.HVM and Xen # should not produce configuration that results in kernel # arguments if not expect_kernel and (hypervisor_type in ['qemu', 'kvm', 'xen']): check = (lambda t: t.find('./os/root'), None) check_list.append(check) check = (lambda t: t.find('./os/cmdline'), None) check_list.append(check) if expect_ramdisk: check = (lambda t: self.relpath(t.find('./os/initrd').text). split('/')[1], 'ramdisk' + suffix) else: check = (lambda t: t.find('./os/initrd'), None) check_list.append(check) if hypervisor_type in ['qemu', 'kvm']: xpath = "./sysinfo/system/entry" check = (lambda t: t.findall(xpath)[0].get("name"), "manufacturer") check_list.append(check) check = (lambda t: t.findall(xpath)[0].text, version.vendor_string()) check_list.append(check) check = (lambda t: t.findall(xpath)[1].get("name"), "product") check_list.append(check) check = (lambda t: t.findall(xpath)[1].text, version.product_string()) check_list.append(check) check = (lambda t: t.findall(xpath)[2].get("name"), "version") check_list.append(check) # NOTE(sirp): empty strings don't roundtrip in lxml (they are # converted to None), so we need an `or ''` to correct for that check = (lambda t: t.findall(xpath)[2].text or '', version.version_string_with_package()) check_list.append(check) check = (lambda t: t.findall(xpath)[3].get("name"), "serial") check_list.append(check) check = (lambda t: t.findall(xpath)[3].text, "cef19ce0-0ca2-11df-855d-b19fbce37686") check_list.append(check) check = (lambda t: t.findall(xpath)[4].get("name"), "uuid") check_list.append(check) check = (lambda t: t.findall(xpath)[4].text, instance['uuid']) check_list.append(check) if hypervisor_type in ['qemu', 'kvm']: check = (lambda t: t.findall('./devices/serial')[0].get( 'type'), 'file') check_list.append(check) check = (lambda t: t.findall('./devices/serial')[1].get( 'type'), 'pty') check_list.append(check) check = (lambda t: self.relpath(t.findall( './devices/serial/source')[0].get('path')). split('/')[1], 'console.log') check_list.append(check) else: check = (lambda t: t.find('./devices/console').get( 'type'), 'pty') check_list.append(check) common_checks = [ (lambda t: t.find('.').tag, 'domain'), (lambda t: t.find('./memory').text, '2097152')] if rescue: common_checks += [ (lambda t: self.relpath(t.findall('./devices/disk/source')[0]. get('file')).split('/')[1], 'disk.rescue'), (lambda t: self.relpath(t.findall('./devices/disk/source')[1]. get('file')).split('/')[1], 'disk')] else: common_checks += [(lambda t: self.relpath(t.findall( './devices/disk/source')[0].get('file')).split('/')[1], 'disk')] common_checks += [(lambda t: self.relpath(t.findall( './devices/disk/source')[1].get('file')).split('/')[1], 'disk.local')] for virt_type in hypervisors_to_check: expected_uri = type_uri_map[virt_type][0] checks = type_uri_map[virt_type][1] self.flags(virt_type=virt_type, group='libvirt') with mock.patch('nova.virt.libvirt.driver.libvirt') as old_virt: del old_virt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.assertEqual(conn.uri(), expected_uri) network_info = _fake_network_info(self.stubs, 1) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance_ref, rescue=rescue) xml = conn.to_xml(self.context, instance_ref, network_info, disk_info, rescue=rescue) tree = etree.fromstring(xml) for i, (check, expected_result) in enumerate(checks): self.assertEqual(check(tree), expected_result, '%s != %s failed check %d' % (check(tree), expected_result, i)) for i, (check, expected_result) in enumerate(common_checks): self.assertEqual(check(tree), expected_result, '%s != %s failed common check %d' % (check(tree), expected_result, i)) filterref = './devices/interface/filterref' vif = network_info[0] nic_id = vif['address'].replace(':', '') fw = firewall.NWFilterFirewall(fake.FakeVirtAPI(), conn) instance_filter_name = fw._instance_filter_name(instance_ref, nic_id) self.assertEqual(tree.find(filterref).get('filter'), instance_filter_name) # This test is supposed to make sure we don't # override a specifically set uri # # Deliberately not just assigning this string to CONF.connection_uri # and checking against that later on. This way we make sure the # implementation doesn't fiddle around with the CONF. testuri = 'something completely different' self.flags(connection_uri=testuri, group='libvirt') for (virt_type, (expected_uri, checks)) in type_uri_map.iteritems(): self.flags(virt_type=virt_type, group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.assertEqual(conn.uri(), testuri) db.instance_destroy(user_context, instance_ref['uuid']) def test_ensure_filtering_rules_for_instance_timeout(self): # ensure_filtering_fules_for_instance() finishes with timeout. # Preparing mocks def fake_none(self, *args): return def fake_raise(self): raise libvirt.libvirtError('ERR') class FakeTime(object): def __init__(self): self.counter = 0 def sleep(self, t): self.counter += t fake_timer = FakeTime() # _fake_network_info must be called before create_fake_libvirt_mock(), # as _fake_network_info calls importutils.import_class() and # create_fake_libvirt_mock() mocks importutils.import_class(). network_info = _fake_network_info(self.stubs, 1) self.create_fake_libvirt_mock() instance_ref = db.instance_create(self.context, self.test_instance) # Start test self.mox.ReplayAll() try: conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn.firewall_driver, 'setup_basic_filtering', fake_none) self.stubs.Set(conn.firewall_driver, 'prepare_instance_filter', fake_none) self.stubs.Set(conn.firewall_driver, 'instance_filter_exists', fake_none) conn.ensure_filtering_rules_for_instance(instance_ref, network_info, time_module=fake_timer) except exception.NovaException as e: msg = ('The firewall filter for %s does not exist' % instance_ref['name']) c1 = (0 <= str(e).find(msg)) self.assertTrue(c1) self.assertEqual(29, fake_timer.counter, "Didn't wait the expected " "amount of time") db.instance_destroy(self.context, instance_ref['uuid']) def test_check_can_live_migrate_dest_all_pass_with_block_migration(self): instance_ref = db.instance_create(self.context, self.test_instance) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) compute_info = {'disk_available_least': 400, 'cpu_info': 'asdf', } filename = "file" pclm = "pclm" self.mox.StubOutWithMock(conn, '_create_shared_storage_test_file') self.mox.StubOutWithMock(conn, '_compare_cpu') # _check_cpu_match conn._compare_cpu("asdf") # mounted_on_same_shared_storage conn._create_shared_storage_test_file().AndReturn(filename) self.mox.ReplayAll() return_value = conn.check_can_live_migrate_destination(self.context, instance_ref, compute_info, compute_info, pclm=pclm) self.assertThat({"filename": "file", 'disk_available_mb': None, "disk_over_commit": False, "block_migration": False, "pclm": pclm}, matchers.DictMatches(return_value)) def test_check_can_live_migrate_dest_all_pass_no_block_migration(self): instance_ref = db.instance_create(self.context, self.test_instance) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) compute_info = {'cpu_info': 'asdf'} filename = "file" pclm = "pclm" self.mox.StubOutWithMock(conn, '_create_shared_storage_test_file') self.mox.StubOutWithMock(conn, '_compare_cpu') # _check_cpu_match conn._compare_cpu("asdf") # mounted_on_same_shared_storage conn._create_shared_storage_test_file().AndReturn(filename) self.mox.ReplayAll() return_value = conn.check_can_live_migrate_destination(self.context, instance_ref, compute_info, compute_info, pclm=pclm) self.assertThat({"filename": "file", "block_migration": False, "disk_over_commit": False, "disk_available_mb": None, "pclm": pclm}, matchers.DictMatches(return_value)) def test_check_can_live_migrate_dest_incompatible_cpu_raises(self): instance_ref = db.instance_create(self.context, self.test_instance) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) compute_info = {'cpu_info': 'asdf'} self.mox.StubOutWithMock(conn, '_compare_cpu') conn._compare_cpu("asdf").AndRaise(exception.InvalidCPUInfo( reason='foo') ) self.mox.ReplayAll() self.assertRaises(exception.InvalidCPUInfo, conn.check_can_live_migrate_destination, self.context, instance_ref, compute_info, compute_info, False) def test_check_can_live_migrate_dest_cleanup_works_correctly(self): instance_ref = db.instance_create(self.context, self.test_instance) dest_check_data = {"filename": "file", "block_migration": True, "disk_over_commit": False, "disk_available_mb": 1024, "pclm": "pclm"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, '_cleanup_shared_storage_test_file') conn._cleanup_shared_storage_test_file("file") self.mox.ReplayAll() conn.check_can_live_migrate_destination_cleanup(self.context, dest_check_data) def test_check_can_live_migrate_source_works_correctly(self): instance_ref = db.instance_create(self.context, self.test_instance) dest_check_data = {"filename": "file", "block_migration": True, "disk_over_commit": False, "disk_available_mb": 1024, "pclm": "pclm"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_check_shared_storage_test_file") conn._check_shared_storage_test_file("file").AndReturn(False) self.mox.StubOutWithMock(conn, "get_instance_disk_info") conn.get_instance_disk_info(instance_ref['name']).AndReturn('[]') self.mox.StubOutWithMock(conn, "_assert_dest_node_has_enough_disk") conn._assert_dest_node_has_enough_disk( self.context, instance_ref, dest_check_data['disk_available_mb'], False) self.mox.ReplayAll() conn.check_can_live_migrate_source(self.context, instance_ref, dest_check_data) def test_check_can_live_migrate_source_vol_backed_works_correctly(self): instance_ref = db.instance_create(self.context, self.test_instance) dest_check_data = {"filename": "file", "block_migration": False, "disk_over_commit": False, "disk_available_mb": 1024, "is_volume_backed": True, "pclm": "pclm"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_check_shared_storage_test_file") conn._check_shared_storage_test_file("file").AndReturn(False) self.mox.StubOutWithMock(conn, "get_instance_disk_info") conn.get_instance_disk_info(instance_ref['name']).AndReturn('[]') self.mox.ReplayAll() ret = conn.check_can_live_migrate_source(self.context, instance_ref, dest_check_data) self.assertTrue(type(ret) == dict) self.assertIn('is_shared_storage', ret) def test_check_can_live_migrate_source_vol_backed_w_disk_raises(self): instance_ref = db.instance_create(self.context, self.test_instance) dest_check_data = {"filename": "file", "block_migration": False, "disk_over_commit": False, "disk_available_mb": 1024, "is_volume_backed": True, "pclm": "pclm"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_check_shared_storage_test_file") conn._check_shared_storage_test_file("file").AndReturn(False) self.mox.StubOutWithMock(conn, "get_instance_disk_info") conn.get_instance_disk_info(instance_ref['name']).AndReturn( '[{"fake_disk_attr": "fake_disk_val"}]') self.mox.ReplayAll() self.assertRaises(exception.InvalidSharedStorage, conn.check_can_live_migrate_source, self.context, instance_ref, dest_check_data) def test_check_can_live_migrate_source_vol_backed_fails(self): instance_ref = db.instance_create(self.context, self.test_instance) dest_check_data = {"filename": "file", "block_migration": False, "disk_over_commit": False, "disk_available_mb": 1024, "is_volume_backed": False, "pclm": "pclm"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_check_shared_storage_test_file") conn._check_shared_storage_test_file("file").AndReturn(False) self.mox.StubOutWithMock(conn, "get_instance_disk_info") conn.get_instance_disk_info(instance_ref['name']).AndReturn( '[{"fake_disk_attr": "fake_disk_val"}]') self.mox.ReplayAll() self.assertRaises(exception.InvalidSharedStorage, conn.check_can_live_migrate_source, self.context, instance_ref, dest_check_data) def test_check_can_live_migrate_dest_fail_shared_storage_with_blockm(self): instance_ref = db.instance_create(self.context, self.test_instance) dest_check_data = {"filename": "file", "block_migration": True, "disk_over_commit": False, 'disk_available_mb': 1024, "pclm": "pclm"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_check_shared_storage_test_file") conn._check_shared_storage_test_file("file").AndReturn(True) self.mox.StubOutWithMock(conn, "get_instance_disk_info") conn.get_instance_disk_info(instance_ref['name']).AndReturn('[]') self.mox.ReplayAll() self.assertRaises(exception.InvalidLocalStorage, conn.check_can_live_migrate_source, self.context, instance_ref, dest_check_data) def test_check_can_live_migrate_no_shared_storage_no_blck_mig_raises(self): instance_ref = db.instance_create(self.context, self.test_instance) dest_check_data = {"filename": "file", "block_migration": False, "disk_over_commit": False, 'disk_available_mb': 1024, "pclm": "pclm"} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_check_shared_storage_test_file") conn._check_shared_storage_test_file("file").AndReturn(False) self.mox.StubOutWithMock(conn, "get_instance_disk_info") conn.get_instance_disk_info(instance_ref['name']).AndReturn('[]') self.mox.ReplayAll() self.assertRaises(exception.InvalidSharedStorage, conn.check_can_live_migrate_source, self.context, instance_ref, dest_check_data) def test_check_can_live_migrate_source_with_dest_not_enough_disk(self): instance_ref = db.instance_create(self.context, self.test_instance) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_check_shared_storage_test_file") conn._check_shared_storage_test_file("file").AndReturn(False) self.mox.StubOutWithMock(conn, "get_instance_disk_info") conn.get_instance_disk_info(instance_ref["name"]).AndReturn( '[{"virt_disk_size":2}]') conn.get_instance_disk_info(instance_ref["name"]).AndReturn( '[{"virt_disk_size":2}]') dest_check_data = {"filename": "file", "disk_available_mb": 0, "block_migration": True, "disk_over_commit": False, "pclm": "pclm"} self.mox.ReplayAll() self.assertRaises(exception.MigrationError, conn.check_can_live_migrate_source, self.context, instance_ref, dest_check_data) def test_live_migration_raises_exception(self): # Confirms recover method is called when exceptions are raised. # Preparing data self.compute = importutils.import_object(CONF.compute_manager) instance_dict = {'host': 'fake', 'power_state': power_state.RUNNING, 'vm_state': vm_states.ACTIVE} instance_ref = db.instance_create(self.context, self.test_instance) instance_ref = db.instance_update(self.context, instance_ref['uuid'], instance_dict) # Preparing mocks vdmock = self.mox.CreateMock(libvirt.virDomain) self.mox.StubOutWithMock(vdmock, "migrateToURI") _bandwidth = CONF.libvirt.live_migration_bandwidth vdmock.migrateToURI(CONF.libvirt.live_migration_uri % 'dest', mox.IgnoreArg(), None, _bandwidth).AndRaise(libvirt.libvirtError('ERR')) def fake_lookup(instance_name): if instance_name == instance_ref['name']: return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) self.mox.StubOutWithMock(self.compute, "_rollback_live_migration") self.compute._rollback_live_migration(self.context, instance_ref, 'dest', False) #start test self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertRaises(libvirt.libvirtError, conn._live_migration, self.context, instance_ref, 'dest', False, self.compute._rollback_live_migration) instance_ref = db.instance_get(self.context, instance_ref['id']) self.assertTrue(instance_ref['vm_state'] == vm_states.ACTIVE) self.assertTrue(instance_ref['power_state'] == power_state.RUNNING) db.instance_destroy(self.context, instance_ref['uuid']) def test_rollback_live_migration_at_destination(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) with mock.patch.object(conn, "destroy") as mock_destroy: conn.rollback_live_migration_at_destination("context", "instance", [], None) mock_destroy.assert_called_once_with("context", "instance", [], None) def _do_test_create_images_and_backing(self, disk_type): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, '_fetch_instance_kernel_ramdisk') self.mox.StubOutWithMock(libvirt_driver.libvirt_utils, 'create_image') disk_info = {'path': 'foo', 'type': disk_type, 'disk_size': 1 * 1024 ** 3, 'virt_disk_size': 20 * 1024 ** 3, 'backing_file': None} disk_info_json = jsonutils.dumps([disk_info]) libvirt_driver.libvirt_utils.create_image( disk_info['type'], mox.IgnoreArg(), disk_info['virt_disk_size']) conn._fetch_instance_kernel_ramdisk(self.context, self.test_instance) self.mox.ReplayAll() self.stubs.Set(os.path, 'exists', lambda *args: False) conn._create_images_and_backing(self.context, self.test_instance, "/fake/instance/dir", disk_info_json) def test_create_images_and_backing_qcow2(self): self._do_test_create_images_and_backing('qcow2') def test_create_images_and_backing_raw(self): self._do_test_create_images_and_backing('raw') def test_create_images_and_backing_ephemeral_gets_created(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) disk_info_json = jsonutils.dumps( [{u'backing_file': u'fake_image_backing_file', u'disk_size': 10747904, u'path': u'disk_path', u'type': u'qcow2', u'virt_disk_size': 25165824}, {u'backing_file': u'ephemeral_1_default', u'disk_size': 393216, u'over_committed_disk_size': 1073348608, u'path': u'disk_eph_path', u'type': u'qcow2', u'virt_disk_size': 1073741824}]) base_dir = os.path.join(CONF.instances_path, CONF.image_cache_subdirectory_name) self.test_instance.update({'name': 'fake_instance', 'user_id': 'fake-user', 'os_type': None, 'project_id': 'fake-project'}) with contextlib.nested( mock.patch.object(conn, '_fetch_instance_kernel_ramdisk'), mock.patch.object(libvirt_driver.libvirt_utils, 'fetch_image'), mock.patch.object(conn, '_create_ephemeral') ) as (fetch_kernel_ramdisk_mock, fetch_image_mock, create_ephemeral_mock): conn._create_images_and_backing(self.context, self.test_instance, "/fake/instance/dir", disk_info_json) self.assertEqual(len(create_ephemeral_mock.call_args_list), 1) m_args, m_kwargs = create_ephemeral_mock.call_args_list[0] self.assertEqual( os.path.join(base_dir, 'ephemeral_1_default'), m_kwargs['target']) self.assertEqual(len(fetch_image_mock.call_args_list), 1) m_args, m_kwargs = fetch_image_mock.call_args_list[0] self.assertEqual( os.path.join(base_dir, 'fake_image_backing_file'), m_kwargs['target']) def test_create_images_and_backing_disk_info_none(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, '_fetch_instance_kernel_ramdisk') conn._fetch_instance_kernel_ramdisk(self.context, self.test_instance) self.mox.ReplayAll() conn._create_images_and_backing(self.context, self.test_instance, "/fake/instance/dir", None) def test_pre_live_migration_works_correctly_mocked(self): # Creating testdata vol = {'block_device_mapping': [ {'connection_info': 'dummy', 'mount_device': '/dev/sda'}, {'connection_info': 'dummy', 'mount_device': '/dev/sdb'}]} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) class FakeNetworkInfo(): def fixed_ips(self): return ["test_ip_addr"] def fake_none(*args, **kwargs): return self.stubs.Set(conn, '_create_images_and_backing', fake_none) inst_ref = {'id': 'foo'} c = context.get_admin_context() nw_info = FakeNetworkInfo() # Creating mocks self.mox.StubOutWithMock(driver, "block_device_info_get_mapping") driver.block_device_info_get_mapping(vol ).AndReturn(vol['block_device_mapping']) self.mox.StubOutWithMock(conn, "volume_driver_method") for v in vol['block_device_mapping']: disk_info = { 'bus': "scsi", 'dev': v['mount_device'].rpartition("/")[2], 'type': "disk" } conn.volume_driver_method('connect_volume', v['connection_info'], disk_info) self.mox.StubOutWithMock(conn, 'plug_vifs') conn.plug_vifs(mox.IsA(inst_ref), nw_info) self.mox.ReplayAll() result = conn.pre_live_migration(c, inst_ref, vol, nw_info, None) self.assertIsNone(result) def test_pre_live_migration_block_with_config_drive_mocked(self): # Creating testdata vol = {'block_device_mapping': [ {'connection_info': 'dummy', 'mount_device': '/dev/sda'}, {'connection_info': 'dummy', 'mount_device': '/dev/sdb'}]} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) def fake_true(*args, **kwargs): return True self.stubs.Set(configdrive, 'required_by', fake_true) inst_ref = {'id': 'foo'} c = context.get_admin_context() self.assertRaises(exception.NoBlockMigrationForConfigDriveInLibVirt, conn.pre_live_migration, c, inst_ref, vol, None, None, {'is_shared_storage': False}) def test_pre_live_migration_vol_backed_works_correctly_mocked(self): # Creating testdata, using temp dir. with utils.tempdir() as tmpdir: self.flags(instances_path=tmpdir) vol = {'block_device_mapping': [ {'connection_info': 'dummy', 'mount_device': '/dev/sda'}, {'connection_info': 'dummy', 'mount_device': '/dev/sdb'}]} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) def fake_none(*args, **kwargs): return self.stubs.Set(conn, '_create_images_and_backing', fake_none) class FakeNetworkInfo(): def fixed_ips(self): return ["test_ip_addr"] inst_ref = db.instance_create(self.context, self.test_instance) c = context.get_admin_context() nw_info = FakeNetworkInfo() # Creating mocks self.mox.StubOutWithMock(conn, "volume_driver_method") for v in vol['block_device_mapping']: disk_info = { 'bus': "scsi", 'dev': v['mount_device'].rpartition("/")[2], 'type': "disk" } conn.volume_driver_method('connect_volume', v['connection_info'], disk_info) self.mox.StubOutWithMock(conn, 'plug_vifs') conn.plug_vifs(mox.IsA(inst_ref), nw_info) self.mox.ReplayAll() migrate_data = {'is_shared_storage': False, 'is_volume_backed': True, 'block_migration': False, 'instance_relative_path': inst_ref['name'], "pclm": "pclm" } ret = conn.pre_live_migration(c, inst_ref, vol, nw_info, None, migrate_data) self.assertIsNone(ret) self.assertTrue(os.path.exists('%s/%s/' % (tmpdir, inst_ref['name']))) db.instance_destroy(self.context, inst_ref['uuid']) def test_pre_live_migration_plug_vifs_retry_fails(self): self.flags(live_migration_retry_count=3) instance = {'name': 'test', 'uuid': 'uuid'} def fake_plug_vifs(instance, network_info): raise processutils.ProcessExecutionError() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'plug_vifs', fake_plug_vifs) self.stubs.Set(eventlet.greenthread, 'sleep', lambda x: None) self.assertRaises(processutils.ProcessExecutionError, conn.pre_live_migration, self.context, instance, block_device_info=None, network_info=[], disk_info={}) def test_pre_live_migration_plug_vifs_retry_works(self): self.flags(live_migration_retry_count=3) called = {'count': 0} instance = {'name': 'test', 'uuid': 'uuid'} def fake_plug_vifs(instance, network_info): called['count'] += 1 if called['count'] < CONF.live_migration_retry_count: raise processutils.ProcessExecutionError() else: return conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'plug_vifs', fake_plug_vifs) self.stubs.Set(eventlet.greenthread, 'sleep', lambda x: None) conn.pre_live_migration(self.context, instance, block_device_info=None, network_info=[], disk_info={}) def test_get_instance_disk_info_works_correctly(self): # Test data instance_ref = db.instance_create(self.context, self.test_instance) dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices>" "<disk type='file'><driver name='qemu' type='raw'/>" "<source file='/test/disk'/>" "<target dev='vda' bus='virtio'/></disk>" "<disk type='file'><driver name='qemu' type='qcow2'/>" "<source file='/test/disk.local'/>" "<target dev='vdb' bus='virtio'/></disk>" "</devices></domain>") # Preparing mocks vdmock = self.mox.CreateMock(libvirt.virDomain) self.mox.StubOutWithMock(vdmock, "XMLDesc") vdmock.XMLDesc(0).AndReturn(dummyxml) def fake_lookup(instance_name): if instance_name == instance_ref['name']: return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) fake_libvirt_utils.disk_sizes['/test/disk'] = 10 * units.Gi fake_libvirt_utils.disk_sizes['/test/disk.local'] = 20 * units.Gi fake_libvirt_utils.disk_backing_files['/test/disk.local'] = 'file' self.mox.StubOutWithMock(os.path, "getsize") os.path.getsize('/test/disk').AndReturn((10737418240)) os.path.getsize('/test/disk.local').AndReturn((3328599655)) ret = ("image: /test/disk\n" "file format: raw\n" "virtual size: 20G (21474836480 bytes)\n" "disk size: 3.1G\n" "cluster_size: 2097152\n" "backing file: /test/dummy (actual path: /backing/file)\n") self.mox.StubOutWithMock(os.path, "exists") os.path.exists('/test/disk.local').AndReturn(True) self.mox.StubOutWithMock(utils, "execute") utils.execute('env', 'LC_ALL=C', 'LANG=C', 'qemu-img', 'info', '/test/disk.local').AndReturn((ret, '')) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) info = conn.get_instance_disk_info(instance_ref['name']) info = jsonutils.loads(info) self.assertEqual(info[0]['type'], 'raw') self.assertEqual(info[0]['path'], '/test/disk') self.assertEqual(info[0]['disk_size'], 10737418240) self.assertEqual(info[0]['backing_file'], "") self.assertEqual(info[0]['over_committed_disk_size'], 0) self.assertEqual(info[1]['type'], 'qcow2') self.assertEqual(info[1]['path'], '/test/disk.local') self.assertEqual(info[1]['virt_disk_size'], 21474836480) self.assertEqual(info[1]['backing_file'], "file") self.assertEqual(info[1]['over_committed_disk_size'], 18146236825) db.instance_destroy(self.context, instance_ref['uuid']) def test_post_live_migration(self): vol = {'block_device_mapping': [ {'connection_info': 'dummy1', 'mount_device': '/dev/sda'}, {'connection_info': 'dummy2', 'mount_device': '/dev/sdb'}]} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) inst_ref = {'id': 'foo'} cntx = context.get_admin_context() # Set up the mock expectations with contextlib.nested( mock.patch.object(driver, 'block_device_info_get_mapping', return_value=vol['block_device_mapping']), mock.patch.object(conn, 'volume_driver_method') ) as (block_device_info_get_mapping, volume_driver_method): conn.post_live_migration(cntx, inst_ref, vol) block_device_info_get_mapping.assert_has_calls([ mock.call(vol)]) volume_driver_method.assert_has_calls([ mock.call('disconnect_volume', v['connection_info'], v['mount_device'].rpartition("/")[2]) for v in vol['block_device_mapping']]) def test_get_instance_disk_info_excludes_volumes(self): # Test data instance_ref = db.instance_create(self.context, self.test_instance) dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices>" "<disk type='file'><driver name='qemu' type='raw'/>" "<source file='/test/disk'/>" "<target dev='vda' bus='virtio'/></disk>" "<disk type='file'><driver name='qemu' type='qcow2'/>" "<source file='/test/disk.local'/>" "<target dev='vdb' bus='virtio'/></disk>" "<disk type='file'><driver name='qemu' type='qcow2'/>" "<source file='/fake/path/to/volume1'/>" "<target dev='vdc' bus='virtio'/></disk>" "<disk type='file'><driver name='qemu' type='qcow2'/>" "<source file='/fake/path/to/volume2'/>" "<target dev='vdd' bus='virtio'/></disk>" "</devices></domain>") # Preparing mocks vdmock = self.mox.CreateMock(libvirt.virDomain) self.mox.StubOutWithMock(vdmock, "XMLDesc") vdmock.XMLDesc(0).AndReturn(dummyxml) def fake_lookup(instance_name): if instance_name == instance_ref['name']: return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) fake_libvirt_utils.disk_sizes['/test/disk'] = 10 * units.Gi fake_libvirt_utils.disk_sizes['/test/disk.local'] = 20 * units.Gi fake_libvirt_utils.disk_backing_files['/test/disk.local'] = 'file' self.mox.StubOutWithMock(os.path, "getsize") os.path.getsize('/test/disk').AndReturn((10737418240)) os.path.getsize('/test/disk.local').AndReturn((3328599655)) ret = ("image: /test/disk\n" "file format: raw\n" "virtual size: 20G (21474836480 bytes)\n" "disk size: 3.1G\n" "cluster_size: 2097152\n" "backing file: /test/dummy (actual path: /backing/file)\n") self.mox.StubOutWithMock(os.path, "exists") os.path.exists('/test/disk.local').AndReturn(True) self.mox.StubOutWithMock(utils, "execute") utils.execute('env', 'LC_ALL=C', 'LANG=C', 'qemu-img', 'info', '/test/disk.local').AndReturn((ret, '')) self.mox.ReplayAll() conn_info = {'driver_volume_type': 'fake'} info = {'block_device_mapping': [ {'connection_info': conn_info, 'mount_device': '/dev/vdc'}, {'connection_info': conn_info, 'mount_device': '/dev/vdd'}]} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) info = conn.get_instance_disk_info(instance_ref['name'], block_device_info=info) info = jsonutils.loads(info) self.assertEqual(info[0]['type'], 'raw') self.assertEqual(info[0]['path'], '/test/disk') self.assertEqual(info[0]['disk_size'], 10737418240) self.assertEqual(info[0]['backing_file'], "") self.assertEqual(info[0]['over_committed_disk_size'], 0) self.assertEqual(info[1]['type'], 'qcow2') self.assertEqual(info[1]['path'], '/test/disk.local') self.assertEqual(info[1]['virt_disk_size'], 21474836480) self.assertEqual(info[1]['backing_file'], "file") self.assertEqual(info[1]['over_committed_disk_size'], 18146236825) db.instance_destroy(self.context, instance_ref['uuid']) def test_spawn_with_network_info(self): # Preparing mocks def fake_none(*args, **kwargs): return def fake_getLibVersion(): return 9007 def fake_getCapabilities(): return """ <capabilities> <host> <uuid>cef19ce0-0ca2-11df-855d-b19fbce37686</uuid> <cpu> <arch>x86_64</arch> <model>Penryn</model> <vendor>Intel</vendor> <topology sockets='1' cores='2' threads='1'/> <feature name='xtpr'/> </cpu> </host> </capabilities> """ def fake_baselineCPU(cpu, flag): return """<cpu mode='custom' match='exact'> <model fallback='allow'>Penryn</model> <vendor>Intel</vendor> <feature policy='require' name='xtpr'/> </cpu> """ # _fake_network_info must be called before create_fake_libvirt_mock(), # as _fake_network_info calls importutils.import_class() and # create_fake_libvirt_mock() mocks importutils.import_class(). network_info = _fake_network_info(self.stubs, 1) self.create_fake_libvirt_mock(getLibVersion=fake_getLibVersion, getCapabilities=fake_getCapabilities, getVersion=lambda: 1005001, baselineCPU=fake_baselineCPU) instance_ref = self.test_instance instance_ref['image_ref'] = 123456 # we send an int to test sha1 call flavor = db.flavor_get(self.context, instance_ref['instance_type_id']) sys_meta = flavors.save_flavor_info({}, flavor) instance_ref['system_metadata'] = sys_meta instance = db.instance_create(self.context, instance_ref) # Mock out the get_info method of the LibvirtDriver so that the polling # in the spawn method of the LibvirtDriver returns immediately self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, 'get_info') libvirt_driver.LibvirtDriver.get_info(instance ).AndReturn({'state': power_state.RUNNING}) # Start test self.mox.ReplayAll() with mock.patch('nova.virt.libvirt.driver.libvirt') as old_virt: del old_virt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn.firewall_driver, 'setup_basic_filtering', fake_none) self.stubs.Set(conn.firewall_driver, 'prepare_instance_filter', fake_none) self.stubs.Set(imagebackend.Image, 'cache', fake_none) conn.spawn(self.context, instance, None, [], 'herp', network_info=network_info) path = os.path.join(CONF.instances_path, instance['name']) if os.path.isdir(path): shutil.rmtree(path) path = os.path.join(CONF.instances_path, CONF.image_cache_subdirectory_name) if os.path.isdir(path): shutil.rmtree(os.path.join(CONF.instances_path, CONF.image_cache_subdirectory_name)) def test_spawn_without_image_meta(self): self.create_image_called = False def fake_none(*args, **kwargs): return def fake_create_image(*args, **kwargs): self.create_image_called = True def fake_get_info(instance): return {'state': power_state.RUNNING} instance_ref = self.test_instance instance_ref['image_ref'] = 1 instance = db.instance_create(self.context, instance_ref) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'to_xml', fake_none) self.stubs.Set(conn, '_create_image', fake_create_image) self.stubs.Set(conn, '_create_domain_and_network', fake_none) self.stubs.Set(conn, 'get_info', fake_get_info) conn.spawn(self.context, instance, None, [], None) self.assertTrue(self.create_image_called) conn.spawn(self.context, instance, {'id': instance['image_ref']}, [], None) self.assertTrue(self.create_image_called) def test_spawn_from_volume_calls_cache(self): self.cache_called_for_disk = False def fake_none(*args, **kwargs): return def fake_cache(*args, **kwargs): if kwargs.get('image_id') == 'my_fake_image': self.cache_called_for_disk = True def fake_get_info(instance): return {'state': power_state.RUNNING} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'to_xml', fake_none) self.stubs.Set(imagebackend.Image, 'cache', fake_cache) self.stubs.Set(conn, '_create_domain_and_network', fake_none) self.stubs.Set(conn, 'get_info', fake_get_info) block_device_info = {'root_device_name': '/dev/vda', 'block_device_mapping': [ {'mount_device': 'vda', 'boot_index': 0} ] } # Volume-backed instance created without image instance_ref = self.test_instance instance_ref['image_ref'] = '' instance_ref['root_device_name'] = '/dev/vda' instance_ref['uuid'] = uuidutils.generate_uuid() instance = db.instance_create(self.context, instance_ref) conn.spawn(self.context, instance, None, [], None, block_device_info=block_device_info) self.assertFalse(self.cache_called_for_disk) db.instance_destroy(self.context, instance['uuid']) # Booted from volume but with placeholder image instance_ref = self.test_instance instance_ref['image_ref'] = 'my_fake_image' instance_ref['root_device_name'] = '/dev/vda' instance_ref['uuid'] = uuidutils.generate_uuid() instance = db.instance_create(self.context, instance_ref) conn.spawn(self.context, instance, None, [], None, block_device_info=block_device_info) self.assertFalse(self.cache_called_for_disk) db.instance_destroy(self.context, instance['uuid']) # Booted from an image instance_ref['image_ref'] = 'my_fake_image' instance_ref['uuid'] = uuidutils.generate_uuid() instance = db.instance_create(self.context, instance_ref) conn.spawn(self.context, instance, None, [], None) self.assertTrue(self.cache_called_for_disk) db.instance_destroy(self.context, instance['uuid']) def test_spawn_with_pci_devices(self): def fake_none(*args, **kwargs): return None def fake_get_info(instance): return {'state': power_state.RUNNING} class FakeLibvirtPciDevice(): def dettach(self): return None def reset(self): return None def fake_node_device_lookup_by_name(address): pattern = ("pci_%(hex)s{4}_%(hex)s{2}_%(hex)s{2}_%(oct)s{1}" % dict(hex='[\da-f]', oct='[0-8]')) pattern = re.compile(pattern) if pattern.match(address) is None: raise libvirt.libvirtError() return FakeLibvirtPciDevice() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'to_xml', fake_none) self.stubs.Set(conn, '_create_image', fake_none) self.stubs.Set(conn, '_create_domain_and_network', fake_none) self.stubs.Set(conn, 'get_info', fake_get_info) conn._conn.nodeDeviceLookupByName = \ fake_node_device_lookup_by_name instance_ref = self.test_instance instance_ref['image_ref'] = 'my_fake_image' instance = db.instance_create(self.context, instance_ref) instance = dict(instance.iteritems()) instance['pci_devices'] = [{'address': '0000:00:00.0'}] conn.spawn(self.context, instance, None, [], None) def test_chown_disk_config_for_instance(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instance = copy.deepcopy(self.test_instance) instance['name'] = 'test_name' self.mox.StubOutWithMock(fake_libvirt_utils, 'get_instance_path') self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(fake_libvirt_utils, 'chown') fake_libvirt_utils.get_instance_path(instance).AndReturn('/tmp/uuid') os.path.exists('/tmp/uuid/disk.config').AndReturn(True) fake_libvirt_utils.chown('/tmp/uuid/disk.config', os.getuid()) self.mox.ReplayAll() conn._chown_disk_config_for_instance(instance) def _test_create_image_plain(self, os_type='', filename='', mkfs=False): gotFiles = [] def fake_image(self, instance, name, image_type=''): class FakeImage(imagebackend.Image): def __init__(self, instance, name, is_block_dev=False): self.path = os.path.join(instance['name'], name) self.is_block_dev = is_block_dev def create_image(self, prepare_template, base, size, *args, **kwargs): pass def cache(self, fetch_func, filename, size=None, *args, **kwargs): gotFiles.append({'filename': filename, 'size': size}) def snapshot(self, name): pass return FakeImage(instance, name) def fake_none(*args, **kwargs): return def fake_get_info(instance): return {'state': power_state.RUNNING} # Stop 'libvirt_driver._create_image' touching filesystem self.stubs.Set(nova.virt.libvirt.imagebackend.Backend, "image", fake_image) instance_ref = self.test_instance instance_ref['image_ref'] = 1 instance = db.instance_create(self.context, instance_ref) instance['os_type'] = os_type conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'to_xml', fake_none) self.stubs.Set(conn, '_create_domain_and_network', fake_none) self.stubs.Set(conn, 'get_info', fake_get_info) if mkfs: self.stubs.Set(nova.virt.disk.api, '_MKFS_COMMAND', {os_type: 'mkfs.ext3 --label %(fs_label)s %(target)s'}) image_meta = {'id': instance['image_ref']} disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance, None, image_meta) conn._create_image(context, instance, disk_info['mapping']) xml = conn.to_xml(self.context, instance, None, disk_info, image_meta) wantFiles = [ {'filename': '356a192b7913b04c54574d18c28d46e6395428ab', 'size': 10 * units.Gi}, {'filename': filename, 'size': 20 * units.Gi}, ] self.assertEqual(gotFiles, wantFiles) def test_create_image_plain_os_type_blank(self): self._test_create_image_plain(os_type='', filename='ephemeral_20_default', mkfs=False) def test_create_image_plain_os_type_none(self): self._test_create_image_plain(os_type=None, filename='ephemeral_20_default', mkfs=False) def test_create_image_plain_os_type_set_no_fs(self): self._test_create_image_plain(os_type='test', filename='ephemeral_20_default', mkfs=False) def test_create_image_plain_os_type_set_with_fs(self): self._test_create_image_plain(os_type='test', filename='ephemeral_20_test', mkfs=True) def test_create_image_with_swap(self): gotFiles = [] def fake_image(self, instance, name, image_type=''): class FakeImage(imagebackend.Image): def __init__(self, instance, name, is_block_dev=False): self.path = os.path.join(instance['name'], name) self.is_block_dev = is_block_dev def create_image(self, prepare_template, base, size, *args, **kwargs): pass def cache(self, fetch_func, filename, size=None, *args, **kwargs): gotFiles.append({'filename': filename, 'size': size}) def snapshot(self, name): pass return FakeImage(instance, name) def fake_none(*args, **kwargs): return def fake_get_info(instance): return {'state': power_state.RUNNING} # Stop 'libvirt_driver._create_image' touching filesystem self.stubs.Set(nova.virt.libvirt.imagebackend.Backend, "image", fake_image) instance_ref = self.test_instance instance_ref['image_ref'] = 1 # Turn on some swap to exercise that codepath in _create_image instance_ref['system_metadata']['instance_type_swap'] = 500 instance = db.instance_create(self.context, instance_ref) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'to_xml', fake_none) self.stubs.Set(conn, '_create_domain_and_network', fake_none) self.stubs.Set(conn, 'get_info', fake_get_info) image_meta = {'id': instance['image_ref']} disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance, None, image_meta) conn._create_image(context, instance, disk_info['mapping']) xml = conn.to_xml(self.context, instance, None, disk_info, image_meta) wantFiles = [ {'filename': '356a192b7913b04c54574d18c28d46e6395428ab', 'size': 10 * units.Gi}, {'filename': 'ephemeral_20_default', 'size': 20 * units.Gi}, {'filename': 'swap_500', 'size': 500 * units.Mi}, ] self.assertEqual(gotFiles, wantFiles) def test_create_ephemeral_default(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(utils, 'execute') utils.execute('mkfs', '-t', 'ext3', '-F', '-L', 'myVol', '/dev/something', run_as_root=True) self.mox.ReplayAll() conn._create_ephemeral('/dev/something', 20, 'myVol', 'linux', is_block_dev=True, max_size=20) def test_create_ephemeral_with_conf(self): CONF.set_override('default_ephemeral_format', 'ext4') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(utils, 'execute') utils.execute('mkfs', '-t', 'ext4', '-F', '-L', 'myVol', '/dev/something', run_as_root=True) self.mox.ReplayAll() conn._create_ephemeral('/dev/something', 20, 'myVol', 'linux', is_block_dev=True) def test_create_ephemeral_with_arbitrary(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(nova.virt.disk.api, '_MKFS_COMMAND', {'linux': 'mkfs.ext3 --label %(fs_label)s %(target)s'}) self.mox.StubOutWithMock(utils, 'execute') utils.execute('mkfs.ext3', '--label', 'myVol', '/dev/something', run_as_root=True) self.mox.ReplayAll() conn._create_ephemeral('/dev/something', 20, 'myVol', 'linux', is_block_dev=True) def test_create_swap_default(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(utils, 'execute') utils.execute('mkswap', '/dev/something', run_as_root=False) self.mox.ReplayAll() conn._create_swap('/dev/something', 1, max_size=20) def test_get_console_output_file(self): fake_libvirt_utils.files['console.log'] = '01234567890' with utils.tempdir() as tmpdir: self.flags(instances_path=tmpdir) instance_ref = self.test_instance instance_ref['image_ref'] = 123456 instance = db.instance_create(self.context, instance_ref) console_dir = (os.path.join(tmpdir, instance['name'])) console_log = '%s/console.log' % (console_dir) fake_dom_xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> </disk> <console type='file'> <source path='%s'/> <target port='0'/> </console> </devices> </domain> """ % console_log def fake_lookup(id): return FakeVirtDomain(fake_dom_xml) self.create_fake_libvirt_mock() libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) try: prev_max = libvirt_driver.MAX_CONSOLE_BYTES libvirt_driver.MAX_CONSOLE_BYTES = 5 output = conn.get_console_output(self.context, instance) finally: libvirt_driver.MAX_CONSOLE_BYTES = prev_max self.assertEqual('67890', output) def test_get_console_output_pty(self): fake_libvirt_utils.files['pty'] = '01234567890' with utils.tempdir() as tmpdir: self.flags(instances_path=tmpdir) instance_ref = self.test_instance instance_ref['image_ref'] = 123456 instance = db.instance_create(self.context, instance_ref) console_dir = (os.path.join(tmpdir, instance['name'])) pty_file = '%s/fake_pty' % (console_dir) fake_dom_xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> </disk> <console type='pty'> <source path='%s'/> <target port='0'/> </console> </devices> </domain> """ % pty_file def fake_lookup(id): return FakeVirtDomain(fake_dom_xml) def _fake_flush(self, fake_pty): return 'foo' def _fake_append_to_file(self, data, fpath): return 'pty' self.create_fake_libvirt_mock() libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup libvirt_driver.LibvirtDriver._flush_libvirt_console = _fake_flush libvirt_driver.LibvirtDriver._append_to_file = _fake_append_to_file conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) try: prev_max = libvirt_driver.MAX_CONSOLE_BYTES libvirt_driver.MAX_CONSOLE_BYTES = 5 output = conn.get_console_output(self.context, instance) finally: libvirt_driver.MAX_CONSOLE_BYTES = prev_max self.assertEqual('67890', output) def test_get_host_ip_addr(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) ip = conn.get_host_ip_addr() self.assertEqual(ip, CONF.my_ip) def test_broken_connection(self): for (error, domain) in ( (libvirt.VIR_ERR_SYSTEM_ERROR, libvirt.VIR_FROM_REMOTE), (libvirt.VIR_ERR_SYSTEM_ERROR, libvirt.VIR_FROM_RPC), (libvirt.VIR_ERR_INTERNAL_ERROR, libvirt.VIR_FROM_RPC)): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, "_wrapped_conn") self.mox.StubOutWithMock(conn._wrapped_conn, "getLibVersion") self.mox.StubOutWithMock(libvirt.libvirtError, "get_error_code") self.mox.StubOutWithMock(libvirt.libvirtError, "get_error_domain") conn._wrapped_conn.getLibVersion().AndRaise( libvirt.libvirtError("fake failure")) libvirt.libvirtError.get_error_code().AndReturn(error) libvirt.libvirtError.get_error_domain().AndReturn(domain) self.mox.ReplayAll() self.assertFalse(conn._test_connection(conn._wrapped_conn)) self.mox.UnsetStubs() def test_command_with_broken_connection(self): self.mox.UnsetStubs() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) with contextlib.nested( mock.patch.object(libvirt, 'openAuth', side_effect=libvirt.libvirtError("fake")), mock.patch.object(libvirt.libvirtError, "get_error_code"), mock.patch.object(libvirt.libvirtError, "get_error_domain"), mock.patch.object(conn, '_set_host_enabled')): self.assertRaises(exception.HypervisorUnavailable, conn.get_num_instances) def test_broken_connection_disable_service(self): self.mox.UnsetStubs() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn._init_events_pipe() with contextlib.nested( mock.patch.object(conn, '_set_host_enabled')): conn._close_callback(conn._wrapped_conn, 'ERROR!', '') conn._dispatch_events() conn._set_host_enabled.assert_called_once_with( False, disable_reason=u'Connection to libvirt lost: ERROR!') def test_service_resume_after_broken_connection(self): self.mox.UnsetStubs() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) service_mock = mock.MagicMock() service_mock.disabled.return_value = True with contextlib.nested( mock.patch.object(libvirt, 'openAuth', return_value=mock.MagicMock()), mock.patch.object(service_obj.Service, "get_by_compute_host", return_value=service_mock)): conn.get_num_instances() self.assertTrue(not service_mock.disabled and service_mock.disabled_reason is 'None') def test_broken_connection_no_wrapped_conn(self): # Tests that calling _close_callback when _wrapped_conn is None # is a no-op, i.e. set_host_enabled won't be called. self.mox.UnsetStubs() # conn._wrapped_conn will be None since we never call libvirt.openAuth conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI()) # create our mock connection that libvirt will send to the callback mock_failed_conn = mock.MagicMock() mock_failed_conn.__getitem__.return_value = True # nothing should happen when calling _close_callback since # _wrapped_conn is None in the driver conn._init_events_pipe() conn._close_callback(mock_failed_conn, reason=None, opaque=None) conn._dispatch_events() def test_immediate_delete(self): def fake_lookup_by_name(instance_name): raise exception.InstanceNotFound(instance_id=instance_name) def fake_delete_instance_files(instance): pass conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, '_delete_instance_files', fake_delete_instance_files) instance = db.instance_create(self.context, self.test_instance) conn.destroy(self.context, instance, {}) def _test_destroy_removes_disk(self, volume_fail=False): instance = {"name": "instancename", "id": "42", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64", "cleaned": 0, 'info_cache': None, 'security_groups': []} vol = {'block_device_mapping': [ {'connection_info': 'dummy', 'mount_device': '/dev/sdb'}]} self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_undefine_domain') libvirt_driver.LibvirtDriver._undefine_domain(instance) self.mox.StubOutWithMock(db, 'instance_get_by_uuid') db.instance_get_by_uuid(mox.IgnoreArg(), mox.IgnoreArg(), columns_to_join=['info_cache', 'security_groups'], use_slave=False ).AndReturn(instance) self.mox.StubOutWithMock(driver, "block_device_info_get_mapping") driver.block_device_info_get_mapping(vol ).AndReturn(vol['block_device_mapping']) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, "volume_driver_method") if volume_fail: libvirt_driver.LibvirtDriver.volume_driver_method( mox.IgnoreArg(), mox.IgnoreArg(), mox.IgnoreArg()).\ AndRaise(exception.VolumeNotFound('vol')) else: libvirt_driver.LibvirtDriver.volume_driver_method( mox.IgnoreArg(), mox.IgnoreArg(), mox.IgnoreArg()) self.mox.StubOutWithMock(shutil, "rmtree") shutil.rmtree(os.path.join(CONF.instances_path, 'instance-%08x' % int(instance['id']))) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_cleanup_lvm') libvirt_driver.LibvirtDriver._cleanup_lvm(instance) # Start test self.mox.ReplayAll() def fake_destroy(instance): pass def fake_os_path_exists(path): return True def fake_unplug_vifs(instance, network_info, ignore_errors=False): pass def fake_unfilter_instance(instance, network_info): pass def fake_obj_load_attr(self, attrname): if not hasattr(self, attrname): self[attrname] = {} def fake_save(self, context): pass conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_destroy', fake_destroy) self.stubs.Set(conn, 'unplug_vifs', fake_unplug_vifs) self.stubs.Set(conn.firewall_driver, 'unfilter_instance', fake_unfilter_instance) self.stubs.Set(os.path, 'exists', fake_os_path_exists) self.stubs.Set(instance_obj.Instance, 'fields', {'id': int, 'uuid': str, 'cleaned': int}) self.stubs.Set(instance_obj.Instance, 'obj_load_attr', fake_obj_load_attr) self.stubs.Set(instance_obj.Instance, 'save', fake_save) conn.destroy(self.context, instance, [], vol) def test_destroy_removes_disk(self): self._test_destroy_removes_disk(volume_fail=False) def test_destroy_removes_disk_volume_fails(self): self._test_destroy_removes_disk(volume_fail=True) def test_destroy_not_removes_disk(self): instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_undefine_domain') libvirt_driver.LibvirtDriver._undefine_domain(instance) # Start test self.mox.ReplayAll() def fake_destroy(instance): pass def fake_os_path_exists(path): return True def fake_unplug_vifs(instance, network_info, ignore_errors=False): pass def fake_unfilter_instance(instance, network_info): pass conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_destroy', fake_destroy) self.stubs.Set(conn, 'unplug_vifs', fake_unplug_vifs) self.stubs.Set(conn.firewall_driver, 'unfilter_instance', fake_unfilter_instance) self.stubs.Set(os.path, 'exists', fake_os_path_exists) conn.destroy(self.context, instance, [], None, False) def test_delete_instance_files(self): instance = {"name": "instancename", "id": "42", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64", "cleaned": 0, 'info_cache': None, 'security_groups': []} self.mox.StubOutWithMock(db, 'instance_get_by_uuid') self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(shutil, "rmtree") db.instance_get_by_uuid(mox.IgnoreArg(), mox.IgnoreArg(), columns_to_join=['info_cache', 'security_groups'], use_slave=False ).AndReturn(instance) os.path.exists(mox.IgnoreArg()).AndReturn(False) os.path.exists(mox.IgnoreArg()).AndReturn(True) shutil.rmtree(os.path.join(CONF.instances_path, instance['uuid'])) os.path.exists(mox.IgnoreArg()).AndReturn(True) os.path.exists(mox.IgnoreArg()).AndReturn(False) os.path.exists(mox.IgnoreArg()).AndReturn(True) shutil.rmtree(os.path.join(CONF.instances_path, instance['uuid'])) os.path.exists(mox.IgnoreArg()).AndReturn(False) self.mox.ReplayAll() def fake_obj_load_attr(self, attrname): if not hasattr(self, attrname): self[attrname] = {} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(instance_obj.Instance, 'fields', {'id': int, 'uuid': str, 'cleaned': int}) self.stubs.Set(instance_obj.Instance, 'obj_load_attr', fake_obj_load_attr) inst_obj = instance_obj.Instance.get_by_uuid(None, instance['uuid']) self.assertFalse(conn.delete_instance_files(inst_obj)) self.assertTrue(conn.delete_instance_files(inst_obj)) def test_reboot_different_ids(self): class FakeLoopingCall: def start(self, *a, **k): return self def wait(self): return None self.flags(wait_soft_reboot_seconds=1, group='libvirt') info_tuple = ('fake', 'fake', 'fake', 'also_fake') self.reboot_create_called = False # Mock domain mock_domain = self.mox.CreateMock(libvirt.virDomain) mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_RUNNING,) + info_tuple) mock_domain.ID().AndReturn('some_fake_id') mock_domain.shutdown() mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_CRASHED,) + info_tuple) mock_domain.ID().AndReturn('some_other_fake_id') self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock_domain def fake_create_domain(**kwargs): self.reboot_create_called = True conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64", "pci_devices": []} self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, '_create_domain', fake_create_domain) self.stubs.Set(loopingcall, 'FixedIntervalLoopingCall', lambda *a, **k: FakeLoopingCall()) conn.reboot(None, instance, []) self.assertTrue(self.reboot_create_called) def test_reboot_same_ids(self): class FakeLoopingCall: def start(self, *a, **k): return self def wait(self): return None self.flags(wait_soft_reboot_seconds=1, group='libvirt') info_tuple = ('fake', 'fake', 'fake', 'also_fake') self.reboot_hard_reboot_called = False # Mock domain mock_domain = self.mox.CreateMock(libvirt.virDomain) mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_RUNNING,) + info_tuple) mock_domain.ID().AndReturn('some_fake_id') mock_domain.shutdown() mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_CRASHED,) + info_tuple) mock_domain.ID().AndReturn('some_fake_id') self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock_domain def fake_hard_reboot(*args, **kwargs): self.reboot_hard_reboot_called = True def fake_sleep(interval): pass conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64", "pci_devices": []} self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(greenthread, 'sleep', fake_sleep) self.stubs.Set(conn, '_hard_reboot', fake_hard_reboot) self.stubs.Set(loopingcall, 'FixedIntervalLoopingCall', lambda *a, **k: FakeLoopingCall()) conn.reboot(None, instance, []) self.assertTrue(self.reboot_hard_reboot_called) def test_soft_reboot_libvirt_exception(self): # Tests that a hard reboot is performed when a soft reboot results # in raising a libvirtError. info_tuple = ('fake', 'fake', 'fake', 'also_fake') # setup mocks mock_domain = self.mox.CreateMock(libvirt.virDomain) mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_RUNNING,) + info_tuple) mock_domain.ID().AndReturn('some_fake_id') mock_domain.shutdown().AndRaise(libvirt.libvirtError('Err')) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) context = None instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} network_info = [] self.mox.StubOutWithMock(conn, '_lookup_by_name') conn._lookup_by_name(instance['name']).AndReturn(mock_domain) self.mox.StubOutWithMock(conn, '_hard_reboot') conn._hard_reboot(context, instance, network_info, None) self.mox.ReplayAll() conn.reboot(context, instance, network_info) def _test_resume_state_on_host_boot_with_state(self, state): called = {'count': 0} mock = self.mox.CreateMock(libvirt.virDomain) mock.info().AndReturn([state, None, None, None, None]) self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock def fake_hard_reboot(*args): called['count'] += 1 conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, '_hard_reboot', fake_hard_reboot) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} network_info = _fake_network_info(self.stubs, 1) conn.resume_state_on_host_boot(self.context, instance, network_info, block_device_info=None) ignored_states = (power_state.RUNNING, power_state.SUSPENDED, power_state.NOSTATE, power_state.PAUSED) if state in ignored_states: self.assertEqual(called['count'], 0) else: self.assertEqual(called['count'], 1) def test_resume_state_on_host_boot_with_running_state(self): self._test_resume_state_on_host_boot_with_state(power_state.RUNNING) def test_resume_state_on_host_boot_with_suspended_state(self): self._test_resume_state_on_host_boot_with_state(power_state.SUSPENDED) def test_resume_state_on_host_boot_with_paused_state(self): self._test_resume_state_on_host_boot_with_state(power_state.PAUSED) def test_resume_state_on_host_boot_with_nostate(self): self._test_resume_state_on_host_boot_with_state(power_state.NOSTATE) def test_resume_state_on_host_boot_with_shutdown_state(self): self._test_resume_state_on_host_boot_with_state(power_state.RUNNING) def test_resume_state_on_host_boot_with_crashed_state(self): self._test_resume_state_on_host_boot_with_state(power_state.CRASHED) def test_resume_state_on_host_boot_with_instance_not_found_on_driver(self): called = {'count': 0} instance = {'name': 'test'} def fake_instance_exists(name): return False def fake_hard_reboot(*args): called['count'] += 1 conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'instance_exists', fake_instance_exists) self.stubs.Set(conn, '_hard_reboot', fake_hard_reboot) conn.resume_state_on_host_boot(self.context, instance, network_info=[], block_device_info=None) self.assertEqual(called['count'], 1) def test_hard_reboot(self): called = {'count': 0} instance = db.instance_create(self.context, self.test_instance) network_info = _fake_network_info(self.stubs, 1) block_device_info = None dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices>" "<disk type='file'><driver name='qemu' type='raw'/>" "<source file='/test/disk'/>" "<target dev='vda' bus='virtio'/></disk>" "<disk type='file'><driver name='qemu' type='qcow2'/>" "<source file='/test/disk.local'/>" "<target dev='vdb' bus='virtio'/></disk>" "</devices></domain>") conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.mox.StubOutWithMock(conn, '_destroy') self.mox.StubOutWithMock(conn, 'get_instance_disk_info') self.mox.StubOutWithMock(conn, 'to_xml') self.mox.StubOutWithMock(conn, '_create_images_and_backing') self.mox.StubOutWithMock(conn, '_create_domain_and_network') def fake_get_info(instance_name): called['count'] += 1 if called['count'] == 1: state = power_state.SHUTDOWN else: state = power_state.RUNNING return dict(state=state) self.stubs.Set(conn, 'get_info', fake_get_info) conn._destroy(instance) disk_info = blockinfo.get_disk_info(CONF.libvirt.virt_type, instance, block_device_info) conn.to_xml(self.context, instance, network_info, disk_info, block_device_info=block_device_info, write_to_disk=True).AndReturn(dummyxml) disk_info_json = '[{"virt_disk_size": 2}]' conn.get_instance_disk_info(instance["name"], dummyxml, block_device_info).AndReturn(disk_info_json) conn._create_images_and_backing(self.context, instance, libvirt_utils.get_instance_path(instance), disk_info_json) conn._create_domain_and_network(self.context, dummyxml, instance, network_info, block_device_info, reboot=True, vifs_already_plugged=True) self.mox.ReplayAll() conn._hard_reboot(self.context, instance, network_info, block_device_info) def test_power_on(self): def _check_xml_bus(name, xml, block_info): tree = etree.fromstring(xml) got_disks = tree.findall('./devices/disk') got_disk_targets = tree.findall('./devices/disk/target') system_meta = utils.instance_sys_meta(instance) image_meta = utils.get_image_from_system_metadata(system_meta) want_device_bus = image_meta.get('hw_disk_bus') if not want_device_bus: want_device_bus = self.fake_img['properties']['hw_disk_bus'] got_device_bus = got_disk_targets[0].get('bus') self.assertEqual(got_device_bus, want_device_bus) def fake_get_info(instance_name): called['count'] += 1 if called['count'] == 1: state = power_state.SHUTDOWN else: state = power_state.RUNNING return dict(state=state) def _get_inst(with_meta=True): inst_ref = self.test_instance inst_ref['uuid'] = uuidutils.generate_uuid() if with_meta: inst_ref['system_metadata']['image_hw_disk_bus'] = 'ide' instance = db.instance_create(self.context, inst_ref) instance['image_ref'] = '70a599e0-31e7-49b7-b260-868f221a761e' return instance called = {'count': 0} self.fake_img = {'id': '70a599e0-31e7-49b7-b260-868f221a761e', 'name': 'myfakeimage', 'created_at': '', 'updated_at': '', 'deleted_at': None, 'deleted': False, 'status': 'active', 'is_public': False, 'container_format': 'bare', 'disk_format': 'qcow2', 'size': '74185822', 'properties': {'hw_disk_bus': 'ide'}} instance = _get_inst() network_info = _fake_network_info(self.stubs, 1) block_device_info = None image_service_mock = mock.Mock() image_service_mock.show.return_value = self.fake_img conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) with contextlib.nested( mock.patch.object(conn, '_destroy', return_value=None), mock.patch.object(conn, '_create_images_and_backing'), mock.patch.object(conn, '_create_domain_and_network'), mock.patch('nova.image.glance.get_remote_image_service', return_value=(image_service_mock, instance['image_ref']))): conn.get_info = fake_get_info conn.get_instance_disk_info = _check_xml_bus conn._hard_reboot(self.context, instance, network_info, block_device_info) instance = _get_inst(with_meta=False) conn._hard_reboot(self.context, instance, network_info, block_device_info) def _test_clean_shutdown(self, seconds_to_shutdown, timeout, retry_interval, shutdown_attempts, succeeds): info_tuple = ('fake', 'fake', 'fake', 'also_fake') shutdown_count = [] def count_shutdowns(): shutdown_count.append("shutdown") # Mock domain mock_domain = self.mox.CreateMock(libvirt.virDomain) mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_RUNNING,) + info_tuple) mock_domain.shutdown().WithSideEffects(count_shutdowns) retry_countdown = retry_interval for x in xrange(min(seconds_to_shutdown, timeout)): mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_RUNNING,) + info_tuple) if retry_countdown == 0: mock_domain.shutdown().WithSideEffects(count_shutdowns) retry_countdown = retry_interval else: retry_countdown -= 1 if seconds_to_shutdown < timeout: mock_domain.info().AndReturn( (libvirt_driver.VIR_DOMAIN_SHUTDOWN,) + info_tuple) self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock_domain def fake_create_domain(**kwargs): self.reboot_create_called = True conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, '_create_domain', fake_create_domain) result = conn._clean_shutdown(instance, timeout, retry_interval) self.assertEqual(succeeds, result) self.assertEqual(shutdown_attempts, len(shutdown_count)) def test_clean_shutdown_first_time(self): self._test_clean_shutdown(seconds_to_shutdown=2, timeout=5, retry_interval=3, shutdown_attempts=1, succeeds=True) def test_clean_shutdown_with_retry(self): self._test_clean_shutdown(seconds_to_shutdown=4, timeout=5, retry_interval=3, shutdown_attempts=2, succeeds=True) def test_clean_shutdown_failure(self): self._test_clean_shutdown(seconds_to_shutdown=6, timeout=5, retry_interval=3, shutdown_attempts=2, succeeds=False) def test_clean_shutdown_no_wait(self): self._test_clean_shutdown(seconds_to_shutdown=6, timeout=0, retry_interval=3, shutdown_attempts=1, succeeds=False) def test_resume(self): dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices>" "<disk type='file'><driver name='qemu' type='raw'/>" "<source file='/test/disk'/>" "<target dev='vda' bus='virtio'/></disk>" "<disk type='file'><driver name='qemu' type='qcow2'/>" "<source file='/test/disk.local'/>" "<target dev='vdb' bus='virtio'/></disk>" "</devices></domain>") instance = db.instance_create(self.context, self.test_instance) network_info = _fake_network_info(self.stubs, 1) block_device_info = None conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) with contextlib.nested( mock.patch.object(conn, '_get_existing_domain_xml', return_value=dummyxml), mock.patch.object(conn, '_create_domain_and_network', return_value='fake_dom'), mock.patch.object(conn, '_attach_pci_devices'), mock.patch.object(pci_manager, 'get_instance_pci_devs', return_value='fake_pci_devs'), ) as (_get_existing_domain_xml, _create_domain_and_network, _attach_pci_devices, get_instance_pci_devs): conn.resume(self.context, instance, network_info, block_device_info) _get_existing_domain_xml.assert_has_calls([mock.call(instance, network_info, block_device_info)]) _create_domain_and_network.assert_has_calls([mock.call( self.context, dummyxml, instance, network_info, block_device_info=block_device_info, vifs_already_plugged=True)]) _attach_pci_devices.assert_has_calls([mock.call('fake_dom', 'fake_pci_devs')]) def test_destroy_undefines(self): mock = self.mox.CreateMock(libvirt.virDomain) mock.ID() mock.destroy() mock.undefineFlags(1).AndReturn(1) self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock def fake_get_info(instance_name): return {'state': power_state.SHUTDOWN, 'id': -1} def fake_delete_instance_files(instance): return None conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, 'get_info', fake_get_info) self.stubs.Set(conn, '_delete_instance_files', fake_delete_instance_files) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} conn.destroy(self.context, instance, []) def test_cleanup_rbd(self): mock = self.mox.CreateMock(libvirt.virDomain) def fake_lookup_by_name(instance_name): return mock def fake_get_info(instance_name): return {'state': power_state.SHUTDOWN, 'id': -1} fake_volumes = ['875a8070-d0b9-4949-8b31-104d125c9a64.local', '875a8070-d0b9-4949-8b31-104d125c9a64.swap', '875a8070-d0b9-4949-8b31-104d125c9a64', 'wrong875a8070-d0b9-4949-8b31-104d125c9a64'] fake_pool = 'fake_pool' fake_instance = {'name': 'fakeinstancename', 'id': 'instanceid', 'uuid': '875a8070-d0b9-4949-8b31-104d125c9a64'} conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, 'get_info', fake_get_info) self.flags(images_rbd_pool=fake_pool, group='libvirt') self.mox.StubOutWithMock(libvirt_driver.libvirt_utils, 'remove_rbd_volumes') libvirt_driver.libvirt_utils.remove_rbd_volumes(fake_pool, *fake_volumes[:3]) self.mox.ReplayAll() conn._cleanup_rbd(fake_instance) self.mox.VerifyAll() def test_destroy_undefines_no_undefine_flags(self): mock = self.mox.CreateMock(libvirt.virDomain) mock.ID() mock.destroy() mock.undefineFlags(1).AndRaise(libvirt.libvirtError('Err')) mock.undefine() self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock def fake_get_info(instance_name): return {'state': power_state.SHUTDOWN, 'id': -1} def fake_delete_instance_files(instance): return None conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, 'get_info', fake_get_info) self.stubs.Set(conn, '_delete_instance_files', fake_delete_instance_files) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} conn.destroy(self.context, instance, []) def test_destroy_undefines_no_attribute_with_managed_save(self): mock = self.mox.CreateMock(libvirt.virDomain) mock.ID() mock.destroy() mock.undefineFlags(1).AndRaise(AttributeError()) mock.hasManagedSaveImage(0).AndReturn(True) mock.managedSaveRemove(0) mock.undefine() self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock def fake_get_info(instance_name): return {'state': power_state.SHUTDOWN, 'id': -1} def fake_delete_instance_files(instance): return None conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, 'get_info', fake_get_info) self.stubs.Set(conn, '_delete_instance_files', fake_delete_instance_files) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} conn.destroy(self.context, instance, []) def test_destroy_undefines_no_attribute_no_managed_save(self): mock = self.mox.CreateMock(libvirt.virDomain) mock.ID() mock.destroy() mock.undefineFlags(1).AndRaise(AttributeError()) mock.hasManagedSaveImage(0).AndRaise(AttributeError()) mock.undefine() self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock def fake_get_info(instance_name): return {'state': power_state.SHUTDOWN, 'id': -1} def fake_delete_instance_files(instance): return None conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, 'get_info', fake_get_info) self.stubs.Set(conn, '_delete_instance_files', fake_delete_instance_files) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} conn.destroy(self.context, instance, []) def test_destroy_timed_out(self): mock = self.mox.CreateMock(libvirt.virDomain) mock.ID() mock.destroy().AndRaise(libvirt.libvirtError("timed out")) self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock def fake_get_error_code(self): return libvirt.VIR_ERR_OPERATION_TIMEOUT conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(libvirt.libvirtError, 'get_error_code', fake_get_error_code) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} self.assertRaises(exception.InstancePowerOffFailure, conn.destroy, self.context, instance, []) def test_private_destroy_not_found(self): mock = self.mox.CreateMock(libvirt.virDomain) mock.ID() mock.destroy() self.mox.ReplayAll() def fake_lookup_by_name(instance_name): return mock def fake_get_info(instance_name): raise exception.InstanceNotFound(instance_id=instance_name) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_by_name) self.stubs.Set(conn, 'get_info', fake_get_info) instance = {"name": "instancename", "id": "instanceid", "uuid": "875a8070-d0b9-4949-8b31-104d125c9a64"} # NOTE(vish): verifies destroy doesn't raise if the instance disappears conn._destroy(instance) def test_undefine_domain_with_not_found_instance(self): def fake_lookup(instance_name): raise libvirt.libvirtError("not found") self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup self.mox.StubOutWithMock(libvirt.libvirtError, "get_error_code") libvirt.libvirtError.get_error_code().AndReturn( libvirt.VIR_ERR_NO_DOMAIN) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instance = {'name': 'test'} # NOTE(wenjianhn): verifies undefine doesn't raise if the # instance disappears conn._undefine_domain(instance) def test_disk_over_committed_size_total(self): # Ensure destroy calls managedSaveRemove for saved instance. conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) def list_instances(): return ['fake1', 'fake2'] self.stubs.Set(conn, 'list_instances', list_instances) fake_disks = {'fake1': [{'type': 'qcow2', 'path': '/somepath/disk1', 'virt_disk_size': '10737418240', 'backing_file': '/somepath/disk1', 'disk_size': '83886080', 'over_committed_disk_size': '10653532160'}], 'fake2': [{'type': 'raw', 'path': '/somepath/disk2', 'virt_disk_size': '0', 'backing_file': '/somepath/disk2', 'disk_size': '10737418240', 'over_committed_disk_size': '0'}]} def get_info(instance_name): return jsonutils.dumps(fake_disks.get(instance_name)) self.stubs.Set(conn, 'get_instance_disk_info', get_info) result = conn.get_disk_over_committed_size_total() self.assertEqual(result, 10653532160) def test_cpu_info(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) def get_host_capabilities_stub(self): cpu = vconfig.LibvirtConfigCPU() cpu.model = "Opteron_G4" cpu.vendor = "AMD" cpu.arch = "x86_64" cpu.cores = 2 cpu.threads = 1 cpu.sockets = 4 cpu.add_feature(vconfig.LibvirtConfigCPUFeature("extapic")) cpu.add_feature(vconfig.LibvirtConfigCPUFeature("3dnow")) caps = vconfig.LibvirtConfigCaps() caps.host = vconfig.LibvirtConfigCapsHost() caps.host.cpu = cpu guest = vconfig.LibvirtConfigGuest() guest.ostype = vm_mode.HVM guest.arch = "x86_64" guest.domtype = ["kvm"] caps.guests.append(guest) guest = vconfig.LibvirtConfigGuest() guest.ostype = vm_mode.HVM guest.arch = "i686" guest.domtype = ["kvm"] caps.guests.append(guest) return caps self.stubs.Set(libvirt_driver.LibvirtDriver, 'get_host_capabilities', get_host_capabilities_stub) want = {"vendor": "AMD", "features": ["extapic", "3dnow"], "model": "Opteron_G4", "arch": "x86_64", "topology": {"cores": 2, "threads": 1, "sockets": 4}} got = jsonutils.loads(conn.get_cpu_info()) self.assertEqual(want, got) def test_get_pcidev_info(self): def fake_nodeDeviceLookupByName(name): return FakeNodeDevice(_fake_NodeDevXml[name]) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.nodeDeviceLookupByName =\ fake_nodeDeviceLookupByName conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) actualvf = conn._get_pcidev_info("pci_0000_04_00_3") expect_vf = { "dev_id": "pci_0000_04_00_3", "address": "0000:04:00.3", "product_id": '1521', "vendor_id": '8086', "label": 'label_8086_1521', "dev_type": 'type-PF', } self.assertEqual(actualvf, expect_vf) actualvf = conn._get_pcidev_info("pci_0000_04_10_7") expect_vf = { "dev_id": "pci_0000_04_10_7", "address": "0000:04:10.7", "product_id": '1520', "vendor_id": '8086', "label": 'label_8086_1520', "dev_type": 'type-VF', "phys_function": '0000:04:00.3', } self.assertEqual(actualvf, expect_vf) def test_pci_device_assignable(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn.dev_filter, 'device_assignable', lambda x: True) fake_dev = {'dev_type': 'type-PF'} self.assertFalse(conn._pci_device_assignable(fake_dev)) fake_dev = {'dev_type': 'type-VF'} self.assertTrue(conn._pci_device_assignable(fake_dev)) fake_dev = {'dev_type': 'type-PCI'} self.assertTrue(conn._pci_device_assignable(fake_dev)) def test_get_pci_passthrough_devices(self): def fakelistDevices(caps, fakeargs=0): return ['pci_0000_04_00_3', 'pci_0000_04_10_7'] self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.listDevices = fakelistDevices def fake_nodeDeviceLookupByName(name): return FakeNodeDevice(_fake_NodeDevXml[name]) libvirt_driver.LibvirtDriver._conn.nodeDeviceLookupByName =\ fake_nodeDeviceLookupByName conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn.dev_filter, 'device_assignable', lambda x: x) actjson = conn.get_pci_passthrough_devices() expectvfs = [ { "dev_id": "pci_0000_04_00_3", "address": "0000:04:10.3", "product_id": '1521', "vendor_id": '8086', "dev_type": 'type-PF', "phys_function": None}, { "dev_id": "pci_0000_04_10_7", "domain": 0, "address": "0000:04:10.7", "product_id": '1520', "vendor_id": '8086', "dev_type": 'type-VF', "phys_function": [('0x0000', '0x04', '0x00', '0x3')], } ] actctualvfs = jsonutils.loads(actjson) for key in actctualvfs[0].keys(): if key not in ['phys_function', 'virt_functions', 'label']: self.assertEqual(actctualvfs[0][key], expectvfs[1][key]) def test_diagnostic_vcpus_exception(self): xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> <target dev='vdb' bus='virtio'/> </disk> <interface type='network'> <mac address='52:54:00:a4:38:38'/> <source network='default'/> <target dev='vnet0'/> </interface> </devices> </domain> """ class DiagFakeDomain(FakeVirtDomain): def __init__(self): super(DiagFakeDomain, self).__init__(fake_xml=xml) def vcpus(self): raise libvirt.libvirtError('vcpus missing') def blockStats(self, path): return (169L, 688640L, 0L, 0L, -1L) def interfaceStats(self, path): return (4408L, 82L, 0L, 0L, 0L, 0L, 0L, 0L) def memoryStats(self): return {'actual': 220160L, 'rss': 200164L} def maxMemory(self): return 280160L def fake_lookup_name(name): return DiagFakeDomain() self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup_name conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) actual = conn.get_diagnostics({"name": "testvirt"}) expect = {'vda_read': 688640L, 'vda_read_req': 169L, 'vda_write': 0L, 'vda_write_req': 0L, 'vda_errors': -1L, 'vdb_read': 688640L, 'vdb_read_req': 169L, 'vdb_write': 0L, 'vdb_write_req': 0L, 'vdb_errors': -1L, 'memory': 280160L, 'memory-actual': 220160L, 'memory-rss': 200164L, 'vnet0_rx': 4408L, 'vnet0_rx_drop': 0L, 'vnet0_rx_errors': 0L, 'vnet0_rx_packets': 82L, 'vnet0_tx': 0L, 'vnet0_tx_drop': 0L, 'vnet0_tx_errors': 0L, 'vnet0_tx_packets': 0L, } self.assertEqual(actual, expect) def test_diagnostic_blockstats_exception(self): xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> <target dev='vdb' bus='virtio'/> </disk> <interface type='network'> <mac address='52:54:00:a4:38:38'/> <source network='default'/> <target dev='vnet0'/> </interface> </devices> </domain> """ class DiagFakeDomain(FakeVirtDomain): def __init__(self): super(DiagFakeDomain, self).__init__(fake_xml=xml) def vcpus(self): return ([(0, 1, 15340000000L, 0), (1, 1, 1640000000L, 0), (2, 1, 3040000000L, 0), (3, 1, 1420000000L, 0)], [(True, False), (True, False), (True, False), (True, False)]) def blockStats(self, path): raise libvirt.libvirtError('blockStats missing') def interfaceStats(self, path): return (4408L, 82L, 0L, 0L, 0L, 0L, 0L, 0L) def memoryStats(self): return {'actual': 220160L, 'rss': 200164L} def maxMemory(self): return 280160L def fake_lookup_name(name): return DiagFakeDomain() self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup_name conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) actual = conn.get_diagnostics({"name": "testvirt"}) expect = {'cpu0_time': 15340000000L, 'cpu1_time': 1640000000L, 'cpu2_time': 3040000000L, 'cpu3_time': 1420000000L, 'memory': 280160L, 'memory-actual': 220160L, 'memory-rss': 200164L, 'vnet0_rx': 4408L, 'vnet0_rx_drop': 0L, 'vnet0_rx_errors': 0L, 'vnet0_rx_packets': 82L, 'vnet0_tx': 0L, 'vnet0_tx_drop': 0L, 'vnet0_tx_errors': 0L, 'vnet0_tx_packets': 0L, } self.assertEqual(actual, expect) def test_diagnostic_interfacestats_exception(self): xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> <target dev='vdb' bus='virtio'/> </disk> <interface type='network'> <mac address='52:54:00:a4:38:38'/> <source network='default'/> <target dev='vnet0'/> </interface> </devices> </domain> """ class DiagFakeDomain(FakeVirtDomain): def __init__(self): super(DiagFakeDomain, self).__init__(fake_xml=xml) def vcpus(self): return ([(0, 1, 15340000000L, 0), (1, 1, 1640000000L, 0), (2, 1, 3040000000L, 0), (3, 1, 1420000000L, 0)], [(True, False), (True, False), (True, False), (True, False)]) def blockStats(self, path): return (169L, 688640L, 0L, 0L, -1L) def interfaceStats(self, path): raise libvirt.libvirtError('interfaceStat missing') def memoryStats(self): return {'actual': 220160L, 'rss': 200164L} def maxMemory(self): return 280160L def fake_lookup_name(name): return DiagFakeDomain() self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup_name conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) actual = conn.get_diagnostics({"name": "testvirt"}) expect = {'cpu0_time': 15340000000L, 'cpu1_time': 1640000000L, 'cpu2_time': 3040000000L, 'cpu3_time': 1420000000L, 'vda_read': 688640L, 'vda_read_req': 169L, 'vda_write': 0L, 'vda_write_req': 0L, 'vda_errors': -1L, 'vdb_read': 688640L, 'vdb_read_req': 169L, 'vdb_write': 0L, 'vdb_write_req': 0L, 'vdb_errors': -1L, 'memory': 280160L, 'memory-actual': 220160L, 'memory-rss': 200164L, } self.assertEqual(actual, expect) def test_diagnostic_memorystats_exception(self): xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> <target dev='vdb' bus='virtio'/> </disk> <interface type='network'> <mac address='52:54:00:a4:38:38'/> <source network='default'/> <target dev='vnet0'/> </interface> </devices> </domain> """ class DiagFakeDomain(FakeVirtDomain): def __init__(self): super(DiagFakeDomain, self).__init__(fake_xml=xml) def vcpus(self): return ([(0, 1, 15340000000L, 0), (1, 1, 1640000000L, 0), (2, 1, 3040000000L, 0), (3, 1, 1420000000L, 0)], [(True, False), (True, False), (True, False), (True, False)]) def blockStats(self, path): return (169L, 688640L, 0L, 0L, -1L) def interfaceStats(self, path): return (4408L, 82L, 0L, 0L, 0L, 0L, 0L, 0L) def memoryStats(self): raise libvirt.libvirtError('memoryStats missing') def maxMemory(self): return 280160L def fake_lookup_name(name): return DiagFakeDomain() self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup_name conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) actual = conn.get_diagnostics({"name": "testvirt"}) expect = {'cpu0_time': 15340000000L, 'cpu1_time': 1640000000L, 'cpu2_time': 3040000000L, 'cpu3_time': 1420000000L, 'vda_read': 688640L, 'vda_read_req': 169L, 'vda_write': 0L, 'vda_write_req': 0L, 'vda_errors': -1L, 'vdb_read': 688640L, 'vdb_read_req': 169L, 'vdb_write': 0L, 'vdb_write_req': 0L, 'vdb_errors': -1L, 'memory': 280160L, 'vnet0_rx': 4408L, 'vnet0_rx_drop': 0L, 'vnet0_rx_errors': 0L, 'vnet0_rx_packets': 82L, 'vnet0_tx': 0L, 'vnet0_tx_drop': 0L, 'vnet0_tx_errors': 0L, 'vnet0_tx_packets': 0L, } self.assertEqual(actual, expect) def test_diagnostic_full(self): xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='filename'/> <target dev='vda' bus='virtio'/> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> <target dev='vdb' bus='virtio'/> </disk> <interface type='network'> <mac address='52:54:00:a4:38:38'/> <source network='default'/> <target dev='vnet0'/> </interface> </devices> </domain> """ class DiagFakeDomain(FakeVirtDomain): def __init__(self): super(DiagFakeDomain, self).__init__(fake_xml=xml) def vcpus(self): return ([(0, 1, 15340000000L, 0), (1, 1, 1640000000L, 0), (2, 1, 3040000000L, 0), (3, 1, 1420000000L, 0)], [(True, False), (True, False), (True, False), (True, False)]) def blockStats(self, path): return (169L, 688640L, 0L, 0L, -1L) def interfaceStats(self, path): return (4408L, 82L, 0L, 0L, 0L, 0L, 0L, 0L) def memoryStats(self): return {'actual': 220160L, 'rss': 200164L} def maxMemory(self): return 280160L def fake_lookup_name(name): return DiagFakeDomain() self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup_name conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) actual = conn.get_diagnostics({"name": "testvirt"}) expect = {'cpu0_time': 15340000000L, 'cpu1_time': 1640000000L, 'cpu2_time': 3040000000L, 'cpu3_time': 1420000000L, 'vda_read': 688640L, 'vda_read_req': 169L, 'vda_write': 0L, 'vda_write_req': 0L, 'vda_errors': -1L, 'vdb_read': 688640L, 'vdb_read_req': 169L, 'vdb_write': 0L, 'vdb_write_req': 0L, 'vdb_errors': -1L, 'memory': 280160L, 'memory-actual': 220160L, 'memory-rss': 200164L, 'vnet0_rx': 4408L, 'vnet0_rx_drop': 0L, 'vnet0_rx_errors': 0L, 'vnet0_rx_packets': 82L, 'vnet0_tx': 0L, 'vnet0_tx_drop': 0L, 'vnet0_tx_errors': 0L, 'vnet0_tx_packets': 0L, } self.assertEqual(actual, expect) def test_failing_vcpu_count(self): """Domain can fail to return the vcpu description in case it's just starting up or shutting down. Make sure None is handled gracefully. """ class DiagFakeDomain(object): def __init__(self, vcpus): self._vcpus = vcpus def vcpus(self): if self._vcpus is None: raise libvirt.libvirtError("fake-error") else: return ([1] * self._vcpus, [True] * self._vcpus) driver = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) conn = driver._conn self.mox.StubOutWithMock(driver, 'list_instance_ids') conn.lookupByID = self.mox.CreateMockAnything() driver.list_instance_ids().AndReturn([1, 2]) conn.lookupByID(1).AndReturn(DiagFakeDomain(None)) conn.lookupByID(2).AndReturn(DiagFakeDomain(5)) self.mox.ReplayAll() self.assertEqual(5, driver.get_vcpu_used()) def test_failing_vcpu_count_none(self): """Domain will return zero if the current number of vcpus used is None. This is in case of VM state starting up or shutting down. None type returned is counted as zero. """ class DiagFakeDomain(object): def __init__(self): pass def vcpus(self): return None driver = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) conn = driver._conn self.mox.StubOutWithMock(driver, 'list_instance_ids') conn.lookupByID = self.mox.CreateMockAnything() driver.list_instance_ids().AndReturn([1]) conn.lookupByID(1).AndReturn(DiagFakeDomain()) self.mox.ReplayAll() self.assertEqual(0, driver.get_vcpu_used()) def test_get_instance_capabilities(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) def get_host_capabilities_stub(self): caps = vconfig.LibvirtConfigCaps() guest = vconfig.LibvirtConfigGuest() guest.ostype = 'hvm' guest.arch = 'x86_64' guest.domtype = ['kvm', 'qemu'] caps.guests.append(guest) guest = vconfig.LibvirtConfigGuest() guest.ostype = 'hvm' guest.arch = 'i686' guest.domtype = ['kvm'] caps.guests.append(guest) return caps self.stubs.Set(libvirt_driver.LibvirtDriver, 'get_host_capabilities', get_host_capabilities_stub) want = [('x86_64', 'kvm', 'hvm'), ('x86_64', 'qemu', 'hvm'), ('i686', 'kvm', 'hvm')] got = conn.get_instance_capabilities() self.assertEqual(want, got) def test_event_dispatch(self): # Validate that the libvirt self-pipe for forwarding # events between threads is working sanely conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) got_events = [] def handler(event): got_events.append(event) conn.register_event_listener(handler) conn._init_events_pipe() event1 = virtevent.LifecycleEvent( "cef19ce0-0ca2-11df-855d-b19fbce37686", virtevent.EVENT_LIFECYCLE_STARTED) event2 = virtevent.LifecycleEvent( "cef19ce0-0ca2-11df-855d-b19fbce37686", virtevent.EVENT_LIFECYCLE_PAUSED) conn._queue_event(event1) conn._queue_event(event2) conn._dispatch_events() want_events = [event1, event2] self.assertEqual(want_events, got_events) event3 = virtevent.LifecycleEvent( "cef19ce0-0ca2-11df-855d-b19fbce37686", virtevent.EVENT_LIFECYCLE_RESUMED) event4 = virtevent.LifecycleEvent( "cef19ce0-0ca2-11df-855d-b19fbce37686", virtevent.EVENT_LIFECYCLE_STOPPED) conn._queue_event(event3) conn._queue_event(event4) conn._dispatch_events() want_events = [event1, event2, event3, event4] self.assertEqual(want_events, got_events) def test_event_lifecycle(self): # Validate that libvirt events are correctly translated # to Nova events conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) got_events = [] def handler(event): got_events.append(event) conn.register_event_listener(handler) conn._init_events_pipe() fake_dom_xml = """ <domain type='kvm'> <uuid>cef19ce0-0ca2-11df-855d-b19fbce37686</uuid> <devices> <disk type='file'> <source file='filename'/> </disk> </devices> </domain> """ dom = FakeVirtDomain(fake_dom_xml, "cef19ce0-0ca2-11df-855d-b19fbce37686") conn._event_lifecycle_callback(conn._conn, dom, libvirt.VIR_DOMAIN_EVENT_STOPPED, 0, conn) conn._dispatch_events() self.assertEqual(len(got_events), 1) self.assertIsInstance(got_events[0], virtevent.LifecycleEvent) self.assertEqual(got_events[0].uuid, "cef19ce0-0ca2-11df-855d-b19fbce37686") self.assertEqual(got_events[0].transition, virtevent.EVENT_LIFECYCLE_STOPPED) def test_set_cache_mode(self): self.flags(disk_cachemodes=['file=directsync'], group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) fake_conf = FakeConfigGuestDisk() fake_conf.source_type = 'file' conn.set_cache_mode(fake_conf) self.assertEqual(fake_conf.driver_cache, 'directsync') def test_set_cache_mode_invalid_mode(self): self.flags(disk_cachemodes=['file=FAKE'], group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) fake_conf = FakeConfigGuestDisk() fake_conf.source_type = 'file' conn.set_cache_mode(fake_conf) self.assertIsNone(fake_conf.driver_cache) def test_set_cache_mode_invalid_object(self): self.flags(disk_cachemodes=['file=directsync'], group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) fake_conf = FakeConfigGuest() fake_conf.driver_cache = 'fake' conn.set_cache_mode(fake_conf) self.assertEqual(fake_conf.driver_cache, 'fake') def _test_shared_storage_detection(self, is_same): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.mox.StubOutWithMock(conn, 'get_host_ip_addr') self.mox.StubOutWithMock(utils, 'execute') self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(os, 'unlink') conn.get_host_ip_addr().AndReturn('bar') utils.execute('ssh', 'foo', 'touch', mox.IgnoreArg()) os.path.exists(mox.IgnoreArg()).AndReturn(is_same) if is_same: os.unlink(mox.IgnoreArg()) else: utils.execute('ssh', 'foo', 'rm', mox.IgnoreArg()) self.mox.ReplayAll() return conn._is_storage_shared_with('foo', '/path') def test_shared_storage_detection_same_host(self): self.assertTrue(self._test_shared_storage_detection(True)) def test_shared_storage_detection_different_host(self): self.assertFalse(self._test_shared_storage_detection(False)) def test_shared_storage_detection_easy(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.mox.StubOutWithMock(conn, 'get_host_ip_addr') self.mox.StubOutWithMock(utils, 'execute') self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(os, 'unlink') conn.get_host_ip_addr().AndReturn('foo') self.mox.ReplayAll() self.assertTrue(conn._is_storage_shared_with('foo', '/path')) def test_create_domain_define_xml_fails(self): """Tests that the xml is logged when defining the domain fails.""" fake_xml = "<test>this is a test</test>" def fake_defineXML(xml): self.assertEqual(fake_xml, xml) raise libvirt.libvirtError('virDomainDefineXML() failed') self.log_error_called = False def fake_error(msg): self.log_error_called = True self.assertIn(fake_xml, msg) self.stubs.Set(nova.virt.libvirt.driver.LOG, 'error', fake_error) self.create_fake_libvirt_mock(defineXML=fake_defineXML) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.assertRaises(libvirt.libvirtError, conn._create_domain, fake_xml) self.assertTrue(self.log_error_called) def test_create_domain_with_flags_fails(self): """Tests that the xml is logged when creating the domain with flags fails """ fake_xml = "<test>this is a test</test>" fake_domain = FakeVirtDomain(fake_xml) def fake_createWithFlags(launch_flags): raise libvirt.libvirtError('virDomainCreateWithFlags() failed') self.log_error_called = False def fake_error(msg): self.log_error_called = True self.assertIn(fake_xml, msg) self.stubs.Set(fake_domain, 'createWithFlags', fake_createWithFlags) self.stubs.Set(nova.virt.libvirt.driver.LOG, 'error', fake_error) self.create_fake_libvirt_mock() self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.assertRaises(libvirt.libvirtError, conn._create_domain, domain=fake_domain) self.assertTrue(self.log_error_called) def test_create_domain_enable_hairpin_fails(self): """Tests that the xml is logged when enabling hairpin mode for the domain fails. """ utils.reset_is_neutron() fake_xml = "<test>this is a test</test>" fake_domain = FakeVirtDomain(fake_xml) def fake_enable_hairpin(launch_flags): raise processutils.ProcessExecutionError('error') self.log_error_called = False def fake_error(msg): self.log_error_called = True self.assertIn(fake_xml, msg) self.stubs.Set(nova.virt.libvirt.driver.LOG, 'error', fake_error) self.create_fake_libvirt_mock() self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.stubs.Set(conn, '_enable_hairpin', fake_enable_hairpin) self.assertRaises(processutils.ProcessExecutionError, conn._create_domain, domain=fake_domain, power_on=False) self.assertTrue(self.log_error_called) def test_get_vnc_console(self): instance = self.create_instance_obj(self.context) dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices>" "<graphics type='vnc' port='5900'/>" "</devices></domain>") vdmock = self.mox.CreateMock(libvirt.virDomain) self.mox.StubOutWithMock(vdmock, "XMLDesc") vdmock.XMLDesc(0).AndReturn(dummyxml) def fake_lookup(instance_name): if instance_name == instance['name']: return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) vnc_dict = conn.get_vnc_console(self.context, instance) self.assertEqual(vnc_dict['port'], '5900') def test_get_vnc_console_unavailable(self): instance = self.create_instance_obj(self.context) dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices></devices></domain>") vdmock = self.mox.CreateMock(libvirt.virDomain) self.mox.StubOutWithMock(vdmock, "XMLDesc") vdmock.XMLDesc(0).AndReturn(dummyxml) def fake_lookup(instance_name): if instance_name == instance['name']: return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertRaises(exception.ConsoleTypeUnavailable, conn.get_vnc_console, self.context, instance) def test_get_spice_console(self): instance = self.create_instance_obj(self.context) dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices>" "<graphics type='spice' port='5950'/>" "</devices></domain>") vdmock = self.mox.CreateMock(libvirt.virDomain) self.mox.StubOutWithMock(vdmock, "XMLDesc") vdmock.XMLDesc(0).AndReturn(dummyxml) def fake_lookup(instance_name): if instance_name == instance['name']: return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) spice_dict = conn.get_spice_console(self.context, instance) self.assertEqual(spice_dict['port'], '5950') def test_get_spice_console_unavailable(self): instance = self.create_instance_obj(self.context) dummyxml = ("<domain type='kvm'><name>instance-0000000a</name>" "<devices></devices></domain>") vdmock = self.mox.CreateMock(libvirt.virDomain) self.mox.StubOutWithMock(vdmock, "XMLDesc") vdmock.XMLDesc(0).AndReturn(dummyxml) def fake_lookup(instance_name): if instance_name == instance['name']: return vdmock self.create_fake_libvirt_mock(lookupByName=fake_lookup) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertRaises(exception.ConsoleTypeUnavailable, conn.get_spice_console, self.context, instance) def test_detach_volume_with_instance_not_found(self): # Test that detach_volume() method does not raise exception, # if the instance does not exist. instance = self.create_instance_obj(self.context) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) with contextlib.nested( mock.patch.object(conn, '_lookup_by_name', side_effect=exception.InstanceNotFound( instance_id=instance.name)), mock.patch.object(conn, 'volume_driver_method') ) as (_lookup_by_name, volume_driver_method): connection_info = {'driver_volume_type': 'fake'} conn.detach_volume(connection_info, instance, '/dev/sda') _lookup_by_name.assert_called_once_with(instance.name) volume_driver_method.assert_called_once_with('disconnect_volume', connection_info, 'sda') def _test_attach_detach_interface_get_config(self, method_name): """Tests that the get_config() method is properly called in attach_interface() and detach_interface(). method_name: either \"attach_interface\" or \"detach_interface\" depending on the method to test. """ self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.lookupByName = self.fake_lookup test_instance = copy.deepcopy(self.test_instance) test_instance['name'] = "test" network_info = _fake_network_info(self.stubs, 1) conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) if method_name == "attach_interface": fake_image_meta = {'id': test_instance['image_ref']} elif method_name == "detach_interface": fake_image_meta = None else: raise ValueError("Unhandled method %" % method_name) fake_flavor = flavor_obj.Flavor.get_by_id( self.context, test_instance['instance_type_id']) expected = conn.vif_driver.get_config(test_instance, network_info[0], fake_image_meta, fake_flavor) self.mox.StubOutWithMock(conn.vif_driver, 'get_config') conn.vif_driver.get_config(test_instance, network_info[0], fake_image_meta, mox.IsA(flavor_obj.Flavor)).\ AndReturn(expected) self.mox.ReplayAll() if method_name == "attach_interface": conn.attach_interface(test_instance, fake_image_meta, network_info[0]) elif method_name == "detach_interface": conn.detach_interface(test_instance, network_info[0]) else: raise ValueError("Unhandled method %" % method_name) def test_attach_interface_get_config(self): """Tests that the get_config() method is properly called in attach_interface(). """ self._test_attach_detach_interface_get_config("attach_interface") def test_detach_interface_get_config(self): """Tests that the get_config() method is properly called in detach_interface(). """ self._test_attach_detach_interface_get_config("detach_interface") def test_default_root_device_name(self): instance = {'uuid': 'fake_instance'} image_meta = {'id': 'fake'} root_bdm = {'source_type': 'image', 'detination_type': 'volume', 'image_id': 'fake_id'} self.flags(virt_type='fake_libvirt_type', group='libvirt') self.mox.StubOutWithMock(blockinfo, 'get_disk_bus_for_device_type') self.mox.StubOutWithMock(blockinfo, 'get_root_info') blockinfo.get_disk_bus_for_device_type('fake_libvirt_type', image_meta, 'disk').InAnyOrder().\ AndReturn('virtio') blockinfo.get_disk_bus_for_device_type('fake_libvirt_type', image_meta, 'cdrom').InAnyOrder().\ AndReturn('ide') blockinfo.get_root_info('fake_libvirt_type', image_meta, root_bdm, 'virtio', 'ide').AndReturn({'dev': 'vda'}) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.assertEqual(conn.default_root_device_name(instance, image_meta, root_bdm), '/dev/vda') def test_default_device_names_for_instance(self): instance = {'uuid': 'fake_instance'} root_device_name = '/dev/vda' ephemerals = [{'device_name': 'vdb'}] swap = [{'device_name': 'vdc'}] block_device_mapping = [{'device_name': 'vdc'}] self.flags(virt_type='fake_libvirt_type', group='libvirt') self.mox.StubOutWithMock(blockinfo, 'default_device_names') blockinfo.default_device_names('fake_libvirt_type', mox.IgnoreArg(), instance, root_device_name, ephemerals, swap, block_device_mapping) self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn.default_device_names_for_instance(instance, root_device_name, ephemerals, swap, block_device_mapping) def test_hypervisor_hostname_caching(self): # Make sure that the first hostname is always returned class FakeConn(object): def getHostname(self): pass def getLibVersion(self): return 99999 conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) conn._wrapped_conn = FakeConn() self.mox.StubOutWithMock(conn._wrapped_conn, 'getHostname') conn._conn.getHostname().AndReturn('foo') conn._conn.getHostname().AndReturn('bar') self.mox.ReplayAll() self.assertEqual('foo', conn.get_hypervisor_hostname()) self.assertEqual('foo', conn.get_hypervisor_hostname()) def test_get_connection_serial(self): def get_conn_currency(driver): driver._conn.getLibVersion() def connect_with_block(*a, **k): # enough to allow another connect to run eventlet.sleep(0) self.connect_calls += 1 return self.conn def fake_register(*a, **k): self.register_calls += 1 self.connect_calls = 0 self.register_calls = 0 self.stubs.Set(libvirt_driver.LibvirtDriver, '_connect', connect_with_block) driver = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.stubs.Set(self.conn, 'domainEventRegisterAny', fake_register) # call serially get_conn_currency(driver) get_conn_currency(driver) self.assertEqual(self.connect_calls, 1) self.assertEqual(self.register_calls, 1) def test_get_connection_concurrency(self): def get_conn_currency(driver): driver._conn.getLibVersion() def connect_with_block(*a, **k): # enough to allow another connect to run eventlet.sleep(0) self.connect_calls += 1 return self.conn def fake_register(*a, **k): self.register_calls += 1 self.connect_calls = 0 self.register_calls = 0 self.stubs.Set(libvirt_driver.LibvirtDriver, '_connect', connect_with_block) driver = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) self.stubs.Set(self.conn, 'domainEventRegisterAny', fake_register) # call concurrently thr1 = eventlet.spawn(get_conn_currency, driver=driver) thr2 = eventlet.spawn(get_conn_currency, driver=driver) # let threads run eventlet.sleep(0) thr1.wait() thr2.wait() self.assertEqual(self.connect_calls, 1) self.assertEqual(self.register_calls, 1) def test_post_live_migration_at_destination_with_block_device_info(self): # Preparing mocks mock_domain = self.mox.CreateMock(libvirt.virDomain) self.resultXML = None def fake_none(*args, **kwargs): return def fake_getLibVersion(): return 9007 def fake_getCapabilities(): return """ <capabilities> <host> <uuid>cef19ce0-0ca2-11df-855d-b19fbce37686</uuid> <cpu> <arch>x86_64</arch> <model>Penryn</model> <vendor>Intel</vendor> <topology sockets='1' cores='2' threads='1'/> <feature name='xtpr'/> </cpu> </host> </capabilities> """ def fake_to_xml(context, instance, network_info, disk_info, image_meta=None, rescue=None, block_device_info=None, write_to_disk=False): conf = conn.get_guest_config(instance, network_info, image_meta, disk_info, rescue, block_device_info) self.resultXML = conf.to_xml() return self.resultXML def fake_lookup_name(instance_name): return mock_domain def fake_defineXML(xml): return def fake_baselineCPU(cpu, flag): return """<cpu mode='custom' match='exact'> <model fallback='allow'>Westmere</model> <vendor>Intel</vendor> <feature policy='require' name='aes'/> </cpu> """ network_info = _fake_network_info(self.stubs, 1) self.create_fake_libvirt_mock(getLibVersion=fake_getLibVersion, getCapabilities=fake_getCapabilities, getVersion=lambda: 1005001) instance_ref = self.test_instance instance_ref['image_ref'] = 123456 # we send an int to test sha1 call instance_type = db.flavor_get(self.context, instance_ref['instance_type_id']) sys_meta = flavors.save_flavor_info({}, instance_type) instance_ref['system_metadata'] = sys_meta instance = db.instance_create(self.context, instance_ref) self.mox.StubOutWithMock(libvirt_driver.LibvirtDriver, '_conn') libvirt_driver.LibvirtDriver._conn.listDefinedDomains = lambda: [] libvirt_driver.LibvirtDriver._conn.getCapabilities = \ fake_getCapabilities libvirt_driver.LibvirtDriver._conn.getVersion = lambda: 1005001 libvirt_driver.LibvirtDriver._conn.lookupByName = fake_lookup_name libvirt_driver.LibvirtDriver._conn.defineXML = fake_defineXML libvirt_driver.LibvirtDriver._conn.baselineCPU = fake_baselineCPU self.mox.ReplayAll() conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.stubs.Set(conn, 'to_xml', fake_to_xml) self.stubs.Set(conn, '_lookup_by_name', fake_lookup_name) block_device_info = {'block_device_mapping': [ mocked_bdm(1, {'guest_format': None, 'boot_index': 0, 'mount_device': '/dev/vda', 'connection_info': {'driver_volume_type': 'iscsi'}, 'disk_bus': 'virtio', 'device_type': 'disk', 'delete_on_termination': False}), ]} conn.post_live_migration_at_destination(self.context, instance, network_info, True, block_device_info=block_device_info) self.assertTrue('fake' in self.resultXML) self.assertTrue( block_device_info['block_device_mapping'][0].save.called) def test_create_without_pause(self): self.flags(virt_type='lxc', group='libvirt') conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) instance = instance_obj.Instance(id=1, uuid='fake-uuid') with contextlib.nested( mock.patch.object(conn, 'plug_vifs'), mock.patch.object(conn, 'firewall_driver'), mock.patch.object(conn, '_create_domain'), mock.patch.object(conn, 'cleanup')) as ( cleanup, firewall_driver, create, plug_vifs): domain = conn._create_domain_and_network(self.context, 'xml', instance, None) self.assertEqual(0, create.call_args_list[0][1]['launch_flags']) self.assertEqual(0, domain.resume.call_count) def _test_create_with_network_events(self, neutron_failure=None, power_on=True): self.flags(vif_driver="nova.tests.fake_network.FakeVIFDriver", group='libvirt') generated_events = [] def wait_timeout(): event = mock.MagicMock() if neutron_failure == 'timeout': raise eventlet.timeout.Timeout() elif neutron_failure == 'error': event.status = 'failed' else: event.status = 'completed' return event def fake_prepare(instance, event_name): m = mock.MagicMock() m.instance = instance m.event_name = event_name m.wait.side_effect = wait_timeout generated_events.append(m) return m virtapi = manager.ComputeVirtAPI(mock.MagicMock()) prepare = virtapi._compute.instance_events.prepare_for_instance_event prepare.side_effect = fake_prepare conn = libvirt_driver.LibvirtDriver(virtapi, False) instance = instance_obj.Instance(id=1, uuid='fake-uuid') vifs = [{'id': 'vif1', 'active': False}, {'id': 'vif2', 'active': False}] @mock.patch.object(conn, 'plug_vifs') @mock.patch.object(conn, 'firewall_driver') @mock.patch.object(conn, '_create_domain') @mock.patch.object(conn, 'cleanup') def test_create(cleanup, create, fw_driver, plug_vifs): domain = conn._create_domain_and_network(self.context, 'xml', instance, vifs, power_on=power_on) plug_vifs.assert_called_with(instance, vifs) event = (utils.is_neutron() and CONF.vif_plugging_timeout and power_on) flag = event and libvirt.VIR_DOMAIN_START_PAUSED or 0 self.assertEqual(flag, create.call_args_list[0][1]['launch_flags']) if flag: domain.resume.assert_called_once_with() if neutron_failure and CONF.vif_plugging_is_fatal: cleanup.assert_called_once_with(self.context, instance, network_info=vifs, block_device_info=None) test_create() if utils.is_neutron() and CONF.vif_plugging_timeout and power_on: prepare.assert_has_calls([ mock.call(instance, 'network-vif-plugged-vif1'), mock.call(instance, 'network-vif-plugged-vif2')]) for event in generated_events: if neutron_failure and generated_events.index(event) != 0: self.assertEqual(0, event.call_count) elif (neutron_failure == 'error' and not CONF.vif_plugging_is_fatal): event.wait.assert_called_once_with() else: self.assertEqual(0, prepare.call_count) @mock.patch('nova.utils.is_neutron', return_value=True) def test_create_with_network_events_neutron(self, is_neutron): self._test_create_with_network_events() @mock.patch('nova.utils.is_neutron', return_value=True) def test_create_with_network_events_neutron_power_off(self, is_neutron): # Tests that we don't wait for events if we don't start the instance. self._test_create_with_network_events(power_on=False) @mock.patch('nova.utils.is_neutron', return_value=True) def test_create_with_network_events_neutron_nowait(self, is_neutron): self.flags(vif_plugging_timeout=0) self._test_create_with_network_events() @mock.patch('nova.utils.is_neutron', return_value=True) def test_create_with_network_events_neutron_failed_nonfatal_timeout( self, is_neutron): self.flags(vif_plugging_is_fatal=False) self._test_create_with_network_events(neutron_failure='timeout') @mock.patch('nova.utils.is_neutron', return_value=True) def test_create_with_network_events_neutron_failed_fatal_timeout( self, is_neutron): self.assertRaises(exception.VirtualInterfaceCreateException, self._test_create_with_network_events, neutron_failure='timeout') @mock.patch('nova.utils.is_neutron', return_value=True) def test_create_with_network_events_neutron_failed_nonfatal_error( self, is_neutron): self.flags(vif_plugging_is_fatal=False) self._test_create_with_network_events(neutron_failure='error') @mock.patch('nova.utils.is_neutron', return_value=True) def test_create_with_network_events_neutron_failed_fatal_error( self, is_neutron): self.assertRaises(exception.VirtualInterfaceCreateException, self._test_create_with_network_events, neutron_failure='error') @mock.patch('nova.utils.is_neutron', return_value=False) def test_create_with_network_events_non_neutron(self, is_neutron): self._test_create_with_network_events() def test_get_neutron_events(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) network_info = [network_model.VIF(id='1'), network_model.VIF(id='2', active=True)] events = conn._get_neutron_events(network_info) self.assertEqual([('network-vif-plugged', '1')], events) def test_unplug_vifs_ignores_errors(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI()) with mock.patch.object(conn, 'vif_driver') as vif_driver: vif_driver.unplug.side_effect = exception.AgentError( method='unplug') conn.unplug_vifs('inst', [1], ignore_errors=True) vif_driver.unplug.assert_called_once_with('inst', 1) def test_unplug_vifs_reports_errors(self): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI()) with mock.patch.object(conn, 'vif_driver') as vif_driver: vif_driver.unplug.side_effect = exception.AgentError( method='unplug') self.assertRaises(exception.AgentError, conn.unplug_vifs, 'inst', [1]) vif_driver.unplug.assert_called_once_with('inst', 1) @mock.patch('nova.virt.libvirt.driver.LibvirtDriver.unplug_vifs') @mock.patch('nova.virt.libvirt.driver.LibvirtDriver._undefine_domain') def test_cleanup_wants_vif_errors_ignored(self, undefine, unplug): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI()) fake_inst = {'name': 'foo'} with mock.patch.object(conn._conn, 'lookupByName') as lookup: lookup.return_value = fake_inst # NOTE(danms): Make unplug cause us to bail early, since # we only care about how it was called unplug.side_effect = test.TestingException self.assertRaises(test.TestingException, conn.cleanup, 'ctxt', fake_inst, 'netinfo') unplug.assert_called_once_with(fake_inst, 'netinfo', ignore_errors=True) class HostStateTestCase(test.TestCase): cpu_info = ('{"vendor": "Intel", "model": "pentium", "arch": "i686", ' '"features": ["ssse3", "monitor", "pni", "sse2", "sse", ' '"fxsr", "clflush", "pse36", "pat", "cmov", "mca", "pge", ' '"mtrr", "sep", "apic"], ' '"topology": {"cores": "1", "threads": "1", "sockets": "1"}}') instance_caps = [("x86_64", "kvm", "hvm"), ("i686", "kvm", "hvm")] pci_devices = [{ "dev_id": "pci_0000_04_00_3", "address": "0000:04:10.3", "product_id": '1521', "vendor_id": '8086', "dev_type": 'type-PF', "phys_function": None}] class FakeConnection(object): """Fake connection object.""" def get_vcpu_total(self): return 1 def get_vcpu_used(self): return 0 def get_cpu_info(self): return HostStateTestCase.cpu_info def get_disk_over_committed_size_total(self): return 0 def get_local_gb_info(self): return {'total': 100, 'used': 20, 'free': 80} def get_memory_mb_total(self): return 497 def get_memory_mb_used(self): return 88 def get_hypervisor_type(self): return 'QEMU' def get_hypervisor_version(self): return 13091 def get_hypervisor_hostname(self): return 'compute1' def get_host_uptime(self): return ('10:01:16 up 1:36, 6 users, ' 'load average: 0.21, 0.16, 0.19') def get_disk_available_least(self): return 13091 def get_instance_capabilities(self): return HostStateTestCase.instance_caps def get_pci_passthrough_devices(self): return jsonutils.dumps(HostStateTestCase.pci_devices) def test_update_status(self): hs = libvirt_driver.HostState(self.FakeConnection()) stats = hs._stats self.assertEqual(stats["vcpus"], 1) self.assertEqual(stats["memory_mb"], 497) self.assertEqual(stats["local_gb"], 100) self.assertEqual(stats["vcpus_used"], 0) self.assertEqual(stats["memory_mb_used"], 88) self.assertEqual(stats["local_gb_used"], 20) self.assertEqual(stats["hypervisor_type"], 'QEMU') self.assertEqual(stats["hypervisor_version"], 13091) self.assertEqual(stats["hypervisor_hostname"], 'compute1') self.assertEqual(jsonutils.loads(stats["cpu_info"]), {"vendor": "Intel", "model": "pentium", "arch": "i686", "features": ["ssse3", "monitor", "pni", "sse2", "sse", "fxsr", "clflush", "pse36", "pat", "cmov", "mca", "pge", "mtrr", "sep", "apic"], "topology": {"cores": "1", "threads": "1", "sockets": "1"} }) self.assertEqual(stats["disk_available_least"], 80) self.assertEqual(jsonutils.loads(stats["pci_passthrough_devices"]), HostStateTestCase.pci_devices) class NWFilterFakes: def __init__(self): self.filters = {} def nwfilterLookupByName(self, name): if name in self.filters: return self.filters[name] raise libvirt.libvirtError('Filter Not Found') def filterDefineXMLMock(self, xml): class FakeNWFilterInternal: def __init__(self, parent, name, xml): self.name = name self.parent = parent self.xml = xml def undefine(self): del self.parent.filters[self.name] pass tree = etree.fromstring(xml) name = tree.get('name') if name not in self.filters: self.filters[name] = FakeNWFilterInternal(self, name, xml) return True class IptablesFirewallTestCase(test.TestCase): def setUp(self): super(IptablesFirewallTestCase, self).setUp() self.user_id = 'fake' self.project_id = 'fake' self.context = context.RequestContext(self.user_id, self.project_id) class FakeLibvirtDriver(object): def nwfilterDefineXML(*args, **kwargs): """setup_basic_rules in nwfilter calls this.""" pass self.fake_libvirt_connection = FakeLibvirtDriver() self.fw = firewall.IptablesFirewallDriver( fake.FakeVirtAPI(), get_connection=lambda: self.fake_libvirt_connection) in_rules = [ '# Generated by iptables-save v1.4.10 on Sat Feb 19 00:03:19 2011', '*nat', ':PREROUTING ACCEPT [1170:189210]', ':INPUT ACCEPT [844:71028]', ':OUTPUT ACCEPT [5149:405186]', ':POSTROUTING ACCEPT [5063:386098]', '# Completed on Tue Dec 18 15:50:25 2012', '# Generated by iptables-save v1.4.12 on Tue Dec 18 15:50:25 201;', '*mangle', ':PREROUTING ACCEPT [241:39722]', ':INPUT ACCEPT [230:39282]', ':FORWARD ACCEPT [0:0]', ':OUTPUT ACCEPT [266:26558]', ':POSTROUTING ACCEPT [267:26590]', '-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM ' '--checksum-fill', 'COMMIT', '# Completed on Tue Dec 18 15:50:25 2012', '# Generated by iptables-save v1.4.4 on Mon Dec 6 11:54:13 2010', '*filter', ':INPUT ACCEPT [969615:281627771]', ':FORWARD ACCEPT [0:0]', ':OUTPUT ACCEPT [915599:63811649]', ':nova-block-ipv4 - [0:0]', '[0:0] -A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT ', '[0:0] -A FORWARD -d 192.168.122.0/24 -o virbr0 -m state --state RELATED' ',ESTABLISHED -j ACCEPT ', '[0:0] -A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT ', '[0:0] -A FORWARD -i virbr0 -o virbr0 -j ACCEPT ', '[0:0] -A FORWARD -o virbr0 -j REJECT ' '--reject-with icmp-port-unreachable ', '[0:0] -A FORWARD -i virbr0 -j REJECT ' '--reject-with icmp-port-unreachable ', 'COMMIT', '# Completed on Mon Dec 6 11:54:13 2010', ] in6_filter_rules = [ '# Generated by ip6tables-save v1.4.4 on Tue Jan 18 23:47:56 2011', '*filter', ':INPUT ACCEPT [349155:75810423]', ':FORWARD ACCEPT [0:0]', ':OUTPUT ACCEPT [349256:75777230]', 'COMMIT', '# Completed on Tue Jan 18 23:47:56 2011', ] def _create_instance_ref(self): return db.instance_create(self.context, {'user_id': 'fake', 'project_id': 'fake', 'instance_type_id': 1}) def test_static_filters(self): instance_ref = self._create_instance_ref() src_instance_ref = self._create_instance_ref() admin_ctxt = context.get_admin_context() secgroup = db.security_group_create(admin_ctxt, {'user_id': 'fake', 'project_id': 'fake', 'name': 'testgroup', 'description': 'test group'}) src_secgroup = db.security_group_create(admin_ctxt, {'user_id': 'fake', 'project_id': 'fake', 'name': 'testsourcegroup', 'description': 'src group'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'icmp', 'from_port': -1, 'to_port': -1, 'cidr': '192.168.11.0/24'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'icmp', 'from_port': 8, 'to_port': -1, 'cidr': '192.168.11.0/24'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'tcp', 'from_port': 80, 'to_port': 81, 'cidr': '192.168.10.0/24'}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'protocol': 'tcp', 'from_port': 80, 'to_port': 81, 'group_id': src_secgroup['id']}) db.security_group_rule_create(admin_ctxt, {'parent_group_id': secgroup['id'], 'group_id': src_secgroup['id']}) db.instance_add_security_group(admin_ctxt, instance_ref['uuid'], secgroup['id']) db.instance_add_security_group(admin_ctxt, src_instance_ref['uuid'], src_secgroup['id']) instance_ref = db.instance_get(admin_ctxt, instance_ref['id']) src_instance_ref = db.instance_get(admin_ctxt, src_instance_ref['id']) def fake_iptables_execute(*cmd, **kwargs): process_input = kwargs.get('process_input', None) if cmd == ('ip6tables-save', '-c'): return '\n'.join(self.in6_filter_rules), None if cmd == ('iptables-save', '-c'): return '\n'.join(self.in_rules), None if cmd == ('iptables-restore', '-c'): lines = process_input.split('\n') if '*filter' in lines: self.out_rules = lines return '', '' if cmd == ('ip6tables-restore', '-c',): lines = process_input.split('\n') if '*filter' in lines: self.out6_rules = lines return '', '' network_model = _fake_network_info(self.stubs, 1) from nova.network import linux_net linux_net.iptables_manager.execute = fake_iptables_execute from nova.compute import utils as compute_utils self.stubs.Set(compute_utils, 'get_nw_info_for_instance', lambda instance: network_model) self.fw.prepare_instance_filter(instance_ref, network_model) self.fw.apply_instance_filter(instance_ref, network_model) in_rules = filter(lambda l: not l.startswith('#'), self.in_rules) for rule in in_rules: if 'nova' not in rule: self.assertTrue(rule in self.out_rules, 'Rule went missing: %s' % rule) instance_chain = None for rule in self.out_rules: # This is pretty crude, but it'll do for now # last two octets change if re.search('-d 192.168.[0-9]{1,3}.[0-9]{1,3} -j', rule): instance_chain = rule.split(' ')[-1] break self.assertTrue(instance_chain, "The instance chain wasn't added") security_group_chain = None for rule in self.out_rules: # This is pretty crude, but it'll do for now if '-A %s -j' % instance_chain in rule: security_group_chain = rule.split(' ')[-1] break self.assertTrue(security_group_chain, "The security group chain wasn't added") regex = re.compile('\[0\:0\] -A .* -j ACCEPT -p icmp ' '-s 192.168.11.0/24') self.assertTrue(len(filter(regex.match, self.out_rules)) > 0, "ICMP acceptance rule wasn't added") regex = re.compile('\[0\:0\] -A .* -j ACCEPT -p icmp -m icmp ' '--icmp-type 8 -s 192.168.11.0/24') self.assertTrue(len(filter(regex.match, self.out_rules)) > 0, "ICMP Echo Request acceptance rule wasn't added") for ip in network_model.fixed_ips(): if ip['version'] != 4: continue regex = re.compile('\[0\:0\] -A .* -j ACCEPT -p tcp -m multiport ' '--dports 80:81 -s %s' % ip['address']) self.assertTrue(len(filter(regex.match, self.out_rules)) > 0, "TCP port 80/81 acceptance rule wasn't added") regex = re.compile('\[0\:0\] -A .* -j ACCEPT -s ' '%s' % ip['address']) self.assertTrue(len(filter(regex.match, self.out_rules)) > 0, "Protocol/port-less acceptance rule wasn't added") regex = re.compile('\[0\:0\] -A .* -j ACCEPT -p tcp ' '-m multiport --dports 80:81 -s 192.168.10.0/24') self.assertTrue(len(filter(regex.match, self.out_rules)) > 0, "TCP port 80/81 acceptance rule wasn't added") db.instance_destroy(admin_ctxt, instance_ref['uuid']) def test_filters_for_instance_with_ip_v6(self): self.flags(use_ipv6=True) network_info = _fake_network_info(self.stubs, 1) rulesv4, rulesv6 = self.fw._filters_for_instance("fake", network_info) self.assertEqual(len(rulesv4), 2) self.assertEqual(len(rulesv6), 1) def test_filters_for_instance_without_ip_v6(self): self.flags(use_ipv6=False) network_info = _fake_network_info(self.stubs, 1) rulesv4, rulesv6 = self.fw._filters_for_instance("fake", network_info) self.assertEqual(len(rulesv4), 2) self.assertEqual(len(rulesv6), 0) def test_multinic_iptables(self): ipv4_rules_per_addr = 1 ipv4_addr_per_network = 2 ipv6_rules_per_addr = 1 ipv6_addr_per_network = 1 networks_count = 5 instance_ref = self._create_instance_ref() network_info = _fake_network_info(self.stubs, networks_count, ipv4_addr_per_network) network_info[0]['network']['subnets'][0]['meta']['dhcp_server'] = \ '1.1.1.1' ipv4_len = len(self.fw.iptables.ipv4['filter'].rules) ipv6_len = len(self.fw.iptables.ipv6['filter'].rules) inst_ipv4, inst_ipv6 = self.fw.instance_rules(instance_ref, network_info) self.fw.prepare_instance_filter(instance_ref, network_info) ipv4 = self.fw.iptables.ipv4['filter'].rules ipv6 = self.fw.iptables.ipv6['filter'].rules ipv4_network_rules = len(ipv4) - len(inst_ipv4) - ipv4_len ipv6_network_rules = len(ipv6) - len(inst_ipv6) - ipv6_len # Extra rules are for the DHCP request rules = (ipv4_rules_per_addr * ipv4_addr_per_network * networks_count) + 2 self.assertEqual(ipv4_network_rules, rules) self.assertEqual(ipv6_network_rules, ipv6_rules_per_addr * ipv6_addr_per_network * networks_count) def test_do_refresh_security_group_rules(self): instance_ref = self._create_instance_ref() self.mox.StubOutWithMock(self.fw, 'instance_rules') self.mox.StubOutWithMock(self.fw, 'add_filters_for_instance', use_mock_anything=True) self.mox.StubOutWithMock(self.fw.iptables.ipv4['filter'], 'has_chain') self.fw.instance_rules(instance_ref, mox.IgnoreArg()).AndReturn((None, None)) self.fw.add_filters_for_instance(instance_ref, mox.IgnoreArg(), mox.IgnoreArg(), mox.IgnoreArg()) self.fw.instance_rules(instance_ref, mox.IgnoreArg()).AndReturn((None, None)) self.fw.iptables.ipv4['filter'].has_chain(mox.IgnoreArg() ).AndReturn(True) self.fw.add_filters_for_instance(instance_ref, mox.IgnoreArg(), mox.IgnoreArg(), mox.IgnoreArg()) self.mox.ReplayAll() self.fw.prepare_instance_filter(instance_ref, mox.IgnoreArg()) self.fw.instance_info[instance_ref['id']] = (instance_ref, None) self.fw.do_refresh_security_group_rules("fake") def test_do_refresh_security_group_rules_instance_disappeared(self): instance1 = {'id': 1, 'uuid': 'fake-uuid1'} instance2 = {'id': 2, 'uuid': 'fake-uuid2'} self.fw.instance_info = {1: (instance1, 'netinfo1'), 2: (instance2, 'netinfo2')} mock_filter = mock.MagicMock() with mock.patch.dict(self.fw.iptables.ipv4, {'filter': mock_filter}): mock_filter.has_chain.return_value = False with mock.patch.object(self.fw, 'instance_rules') as mock_ir: mock_ir.return_value = (None, None) self.fw.do_refresh_security_group_rules('secgroup') self.assertEqual(2, mock_ir.call_count) # NOTE(danms): Make sure that it is checking has_chain each time, # continuing to process all the instances, and never adding the # new chains back if has_chain() is False mock_filter.has_chain.assert_has_calls([mock.call('inst-1'), mock.call('inst-2')], any_order=True) self.assertEqual(0, mock_filter.add_chain.call_count) def test_unfilter_instance_undefines_nwfilter(self): admin_ctxt = context.get_admin_context() fakefilter = NWFilterFakes() _xml_mock = fakefilter.filterDefineXMLMock self.fw.nwfilter._conn.nwfilterDefineXML = _xml_mock _lookup_name = fakefilter.nwfilterLookupByName self.fw.nwfilter._conn.nwfilterLookupByName = _lookup_name instance_ref = self._create_instance_ref() network_info = _fake_network_info(self.stubs, 1) self.fw.setup_basic_filtering(instance_ref, network_info) self.fw.prepare_instance_filter(instance_ref, network_info) self.fw.apply_instance_filter(instance_ref, network_info) original_filter_count = len(fakefilter.filters) self.fw.unfilter_instance(instance_ref, network_info) # should undefine just the instance filter self.assertEqual(original_filter_count - len(fakefilter.filters), 1) db.instance_destroy(admin_ctxt, instance_ref['uuid']) def test_provider_firewall_rules(self): # setup basic instance data instance_ref = self._create_instance_ref() # FRAGILE: peeks at how the firewall names chains chain_name = 'inst-%s' % instance_ref['id'] # create a firewall via setup_basic_filtering like libvirt_conn.spawn # should have a chain with 0 rules network_info = _fake_network_info(self.stubs, 1) self.fw.setup_basic_filtering(instance_ref, network_info) self.assertIn('provider', self.fw.iptables.ipv4['filter'].chains) rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(0, len(rules)) admin_ctxt = context.get_admin_context() # add a rule and send the update message, check for 1 rule provider_fw0 = db.provider_fw_rule_create(admin_ctxt, {'protocol': 'tcp', 'cidr': '10.99.99.99/32', 'from_port': 1, 'to_port': 65535}) self.fw.refresh_provider_fw_rules() rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(1, len(rules)) # Add another, refresh, and make sure number of rules goes to two provider_fw1 = db.provider_fw_rule_create(admin_ctxt, {'protocol': 'udp', 'cidr': '10.99.99.99/32', 'from_port': 1, 'to_port': 65535}) self.fw.refresh_provider_fw_rules() rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(2, len(rules)) # create the instance filter and make sure it has a jump rule self.fw.prepare_instance_filter(instance_ref, network_info) self.fw.apply_instance_filter(instance_ref, network_info) inst_rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == chain_name] jump_rules = [rule for rule in inst_rules if '-j' in rule.rule] provjump_rules = [] # IptablesTable doesn't make rules unique internally for rule in jump_rules: if 'provider' in rule.rule and rule not in provjump_rules: provjump_rules.append(rule) self.assertEqual(1, len(provjump_rules)) # remove a rule from the db, cast to compute to refresh rule db.provider_fw_rule_destroy(admin_ctxt, provider_fw1['id']) self.fw.refresh_provider_fw_rules() rules = [rule for rule in self.fw.iptables.ipv4['filter'].rules if rule.chain == 'provider'] self.assertEqual(1, len(rules)) class NWFilterTestCase(test.TestCase): def setUp(self): super(NWFilterTestCase, self).setUp() class Mock(object): pass self.user_id = 'fake' self.project_id = 'fake' self.context = context.RequestContext(self.user_id, self.project_id) self.fake_libvirt_connection = Mock() self.fw = firewall.NWFilterFirewall(fake.FakeVirtAPI(), lambda: self.fake_libvirt_connection) def test_cidr_rule_nwfilter_xml(self): cloud_controller = cloud.CloudController() cloud_controller.create_security_group(self.context, 'testgroup', 'test group description') cloud_controller.authorize_security_group_ingress(self.context, 'testgroup', from_port='80', to_port='81', ip_protocol='tcp', cidr_ip='0.0.0.0/0') security_group = db.security_group_get_by_name(self.context, 'fake', 'testgroup') self.teardown_security_group() def teardown_security_group(self): cloud_controller = cloud.CloudController() cloud_controller.delete_security_group(self.context, 'testgroup') def setup_and_return_security_group(self): cloud_controller = cloud.CloudController() cloud_controller.create_security_group(self.context, 'testgroup', 'test group description') cloud_controller.authorize_security_group_ingress(self.context, 'testgroup', from_port='80', to_port='81', ip_protocol='tcp', cidr_ip='0.0.0.0/0') return db.security_group_get_by_name(self.context, 'fake', 'testgroup') def _create_instance(self): return db.instance_create(self.context, {'user_id': 'fake', 'project_id': 'fake', 'instance_type_id': 1}) def test_creates_base_rule_first(self): # These come pre-defined by libvirt self.defined_filters = ['no-mac-spoofing', 'no-ip-spoofing', 'no-arp-spoofing', 'allow-dhcp-server'] self.recursive_depends = {} for f in self.defined_filters: self.recursive_depends[f] = [] def _filterDefineXMLMock(xml): dom = minidom.parseString(xml) name = dom.firstChild.getAttribute('name') self.recursive_depends[name] = [] for f in dom.getElementsByTagName('filterref'): ref = f.getAttribute('filter') self.assertTrue(ref in self.defined_filters, ('%s referenced filter that does ' + 'not yet exist: %s') % (name, ref)) dependencies = [ref] + self.recursive_depends[ref] self.recursive_depends[name] += dependencies self.defined_filters.append(name) return True self.fake_libvirt_connection.nwfilterDefineXML = _filterDefineXMLMock instance_ref = self._create_instance() inst_id = instance_ref['id'] inst_uuid = instance_ref['uuid'] def _ensure_all_called(mac, allow_dhcp): instance_filter = 'nova-instance-%s-%s' % (instance_ref['name'], mac.translate({ord(':'): None})) requiredlist = ['no-arp-spoofing', 'no-ip-spoofing', 'no-mac-spoofing'] required_not_list = [] if allow_dhcp: requiredlist.append('allow-dhcp-server') else: required_not_list.append('allow-dhcp-server') for required in requiredlist: self.assertTrue(required in self.recursive_depends[instance_filter], "Instance's filter does not include %s" % required) for required_not in required_not_list: self.assertFalse(required_not in self.recursive_depends[instance_filter], "Instance filter includes %s" % required_not) self.security_group = self.setup_and_return_security_group() db.instance_add_security_group(self.context, inst_uuid, self.security_group['id']) instance = db.instance_get(self.context, inst_id) network_info = _fake_network_info(self.stubs, 1) # since there is one (network_info) there is one vif # pass this vif's mac to _ensure_all_called() # to set the instance_filter properly mac = network_info[0]['address'] network_info[0]['network']['subnets'][0]['meta']['dhcp_server'] = \ '1.1.1.1' self.fw.setup_basic_filtering(instance, network_info) allow_dhcp = True _ensure_all_called(mac, allow_dhcp) network_info[0]['network']['subnets'][0]['meta']['dhcp_server'] = None self.fw.setup_basic_filtering(instance, network_info) allow_dhcp = False _ensure_all_called(mac, allow_dhcp) db.instance_remove_security_group(self.context, inst_uuid, self.security_group['id']) self.teardown_security_group() db.instance_destroy(context.get_admin_context(), instance_ref['uuid']) def test_unfilter_instance_undefines_nwfilters(self): admin_ctxt = context.get_admin_context() fakefilter = NWFilterFakes() self.fw._conn.nwfilterDefineXML = fakefilter.filterDefineXMLMock self.fw._conn.nwfilterLookupByName = fakefilter.nwfilterLookupByName instance_ref = self._create_instance() inst_id = instance_ref['id'] inst_uuid = instance_ref['uuid'] self.security_group = self.setup_and_return_security_group() db.instance_add_security_group(self.context, inst_uuid, self.security_group['id']) instance = db.instance_get(self.context, inst_id) network_info = _fake_network_info(self.stubs, 1) self.fw.setup_basic_filtering(instance, network_info) original_filter_count = len(fakefilter.filters) self.fw.unfilter_instance(instance, network_info) self.assertEqual(original_filter_count - len(fakefilter.filters), 1) db.instance_destroy(admin_ctxt, instance_ref['uuid']) def test_nwfilter_parameters(self): admin_ctxt = context.get_admin_context() fakefilter = NWFilterFakes() self.fw._conn.nwfilterDefineXML = fakefilter.filterDefineXMLMock self.fw._conn.nwfilterLookupByName = fakefilter.nwfilterLookupByName instance_ref = self._create_instance() inst_id = instance_ref['id'] inst_uuid = instance_ref['uuid'] self.security_group = self.setup_and_return_security_group() db.instance_add_security_group(self.context, inst_uuid, self.security_group['id']) instance = db.instance_get(self.context, inst_id) network_info = _fake_network_info(self.stubs, 1) self.fw.setup_basic_filtering(instance, network_info) vif = network_info[0] nic_id = vif['address'].replace(':', '') instance_filter_name = self.fw._instance_filter_name(instance, nic_id) f = fakefilter.nwfilterLookupByName(instance_filter_name) tree = etree.fromstring(f.xml) for fref in tree.findall('filterref'): parameters = fref.findall('./parameter') for parameter in parameters: subnet_v4, subnet_v6 = vif['network']['subnets'] if parameter.get('name') == 'IP': self.assertTrue(_ipv4_like(parameter.get('value'), '192.168')) elif parameter.get('name') == 'DHCPSERVER': dhcp_server = subnet_v4.get('dhcp_server') self.assertEqual(parameter.get('value'), dhcp_server) elif parameter.get('name') == 'RASERVER': ra_server = subnet_v6['gateway']['address'] + "/128" self.assertEqual(parameter.get('value'), ra_server) elif parameter.get('name') == 'PROJNET': ipv4_cidr = subnet_v4['cidr'] net, mask = netutils.get_net_and_mask(ipv4_cidr) self.assertEqual(parameter.get('value'), net) elif parameter.get('name') == 'PROJMASK': ipv4_cidr = subnet_v4['cidr'] net, mask = netutils.get_net_and_mask(ipv4_cidr) self.assertEqual(parameter.get('value'), mask) elif parameter.get('name') == 'PROJNET6': ipv6_cidr = subnet_v6['cidr'] net, prefix = netutils.get_net_and_prefixlen(ipv6_cidr) self.assertEqual(parameter.get('value'), net) elif parameter.get('name') == 'PROJMASK6': ipv6_cidr = subnet_v6['cidr'] net, prefix = netutils.get_net_and_prefixlen(ipv6_cidr) self.assertEqual(parameter.get('value'), prefix) else: raise exception.InvalidParameterValue('unknown parameter ' 'in filter') db.instance_destroy(admin_ctxt, instance_ref['uuid']) def test_multinic_base_filter_selection(self): fakefilter = NWFilterFakes() self.fw._conn.nwfilterDefineXML = fakefilter.filterDefineXMLMock self.fw._conn.nwfilterLookupByName = fakefilter.nwfilterLookupByName instance_ref = self._create_instance() inst_id = instance_ref['id'] inst_uuid = instance_ref['uuid'] self.security_group = self.setup_and_return_security_group() db.instance_add_security_group(self.context, inst_uuid, self.security_group['id']) instance = db.instance_get(self.context, inst_id) network_info = _fake_network_info(self.stubs, 2) network_info[0]['network']['subnets'][0]['meta']['dhcp_server'] = \ '1.1.1.1' self.fw.setup_basic_filtering(instance, network_info) def assert_filterref(instance, vif, expected=[]): nic_id = vif['address'].replace(':', '') filter_name = self.fw._instance_filter_name(instance, nic_id) f = fakefilter.nwfilterLookupByName(filter_name) tree = etree.fromstring(f.xml) frefs = [fr.get('filter') for fr in tree.findall('filterref')] self.assertTrue(set(expected) == set(frefs)) assert_filterref(instance, network_info[0], expected=['nova-base']) assert_filterref(instance, network_info[1], expected=['nova-nodhcp']) db.instance_remove_security_group(self.context, inst_uuid, self.security_group['id']) self.teardown_security_group() db.instance_destroy(context.get_admin_context(), instance_ref['uuid']) class LibvirtUtilsTestCase(test.TestCase): def test_create_image(self): self.mox.StubOutWithMock(utils, 'execute') utils.execute('qemu-img', 'create', '-f', 'raw', '/some/path', '10G') utils.execute('qemu-img', 'create', '-f', 'qcow2', '/some/stuff', '1234567891234') # Start test self.mox.ReplayAll() libvirt_utils.create_image('raw', '/some/path', '10G') libvirt_utils.create_image('qcow2', '/some/stuff', '1234567891234') def test_create_cow_image(self): self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(utils, 'execute') rval = ('', '') os.path.exists('/some/path').AndReturn(True) utils.execute('env', 'LC_ALL=C', 'LANG=C', 'qemu-img', 'info', '/some/path').AndReturn(rval) utils.execute('qemu-img', 'create', '-f', 'qcow2', '-o', 'backing_file=/some/path', '/the/new/cow') # Start test self.mox.ReplayAll() libvirt_utils.create_cow_image('/some/path', '/the/new/cow') def test_pick_disk_driver_name(self): type_map = {'kvm': ([True, 'qemu'], [False, 'qemu'], [None, 'qemu']), 'qemu': ([True, 'qemu'], [False, 'qemu'], [None, 'qemu']), 'xen': ([True, 'phy'], [False, 'tap2'], [None, 'tap2']), 'uml': ([True, None], [False, None], [None, None]), 'lxc': ([True, None], [False, None], [None, None])} for (virt_type, checks) in type_map.iteritems(): if virt_type == "xen": version = 4001000 else: version = 1005001 self.flags(virt_type=virt_type, group='libvirt') for (is_block_dev, expected_result) in checks: result = libvirt_utils.pick_disk_driver_name(version, is_block_dev) self.assertEqual(result, expected_result) def test_pick_disk_driver_name_xen_4_0_0(self): self.flags(virt_type="xen", group='libvirt') result = libvirt_utils.pick_disk_driver_name(4000000, False) self.assertEqual(result, "tap") def test_get_disk_size(self): self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(utils, 'execute') os.path.exists('/some/path').AndReturn(True) utils.execute('env', 'LC_ALL=C', 'LANG=C', 'qemu-img', 'info', '/some/path').AndReturn(('''image: 00000001 file format: raw virtual size: 4.4M (4592640 bytes) disk size: 4.4M''', '')) # Start test self.mox.ReplayAll() self.assertEqual(disk.get_disk_size('/some/path'), 4592640) def test_copy_image(self): dst_fd, dst_path = tempfile.mkstemp() try: os.close(dst_fd) src_fd, src_path = tempfile.mkstemp() try: with os.fdopen(src_fd, 'w') as fp: fp.write('canary') libvirt_utils.copy_image(src_path, dst_path) with open(dst_path, 'r') as fp: self.assertEqual(fp.read(), 'canary') finally: os.unlink(src_path) finally: os.unlink(dst_path) def test_write_to_file(self): dst_fd, dst_path = tempfile.mkstemp() try: os.close(dst_fd) libvirt_utils.write_to_file(dst_path, 'hello') with open(dst_path, 'r') as fp: self.assertEqual(fp.read(), 'hello') finally: os.unlink(dst_path) def test_write_to_file_with_umask(self): dst_fd, dst_path = tempfile.mkstemp() try: os.close(dst_fd) os.unlink(dst_path) libvirt_utils.write_to_file(dst_path, 'hello', umask=0o277) with open(dst_path, 'r') as fp: self.assertEqual(fp.read(), 'hello') mode = os.stat(dst_path).st_mode self.assertEqual(mode & 0o277, 0) finally: os.unlink(dst_path) def test_chown(self): self.mox.StubOutWithMock(utils, 'execute') utils.execute('chown', 'soren', '/some/path', run_as_root=True) self.mox.ReplayAll() libvirt_utils.chown('/some/path', 'soren') def _do_test_extract_snapshot(self, dest_format='raw', out_format='raw'): self.mox.StubOutWithMock(utils, 'execute') utils.execute('qemu-img', 'convert', '-f', 'qcow2', '-O', out_format, '/path/to/disk/image', '/extracted/snap') # Start test self.mox.ReplayAll() libvirt_utils.extract_snapshot('/path/to/disk/image', 'qcow2', '/extracted/snap', dest_format) def test_extract_snapshot_raw(self): self._do_test_extract_snapshot() def test_extract_snapshot_iso(self): self._do_test_extract_snapshot(dest_format='iso') def test_extract_snapshot_qcow2(self): self._do_test_extract_snapshot(dest_format='qcow2', out_format='qcow2') def test_load_file(self): dst_fd, dst_path = tempfile.mkstemp() try: os.close(dst_fd) # We have a test for write_to_file. If that is sound, this suffices libvirt_utils.write_to_file(dst_path, 'hello') self.assertEqual(libvirt_utils.load_file(dst_path), 'hello') finally: os.unlink(dst_path) def test_file_open(self): dst_fd, dst_path = tempfile.mkstemp() try: os.close(dst_fd) # We have a test for write_to_file. If that is sound, this suffices libvirt_utils.write_to_file(dst_path, 'hello') with libvirt_utils.file_open(dst_path, 'r') as fp: self.assertEqual(fp.read(), 'hello') finally: os.unlink(dst_path) def test_get_fs_info(self): class FakeStatResult(object): def __init__(self): self.f_bsize = 4096 self.f_frsize = 4096 self.f_blocks = 2000 self.f_bfree = 1000 self.f_bavail = 900 self.f_files = 2000 self.f_ffree = 1000 self.f_favail = 900 self.f_flag = 4096 self.f_namemax = 255 self.path = None def fake_statvfs(path): self.path = path return FakeStatResult() self.stubs.Set(os, 'statvfs', fake_statvfs) fs_info = libvirt_utils.get_fs_info('/some/file/path') self.assertEqual('/some/file/path', self.path) self.assertEqual(8192000, fs_info['total']) self.assertEqual(3686400, fs_info['free']) self.assertEqual(4096000, fs_info['used']) def test_fetch_image(self): self.mox.StubOutWithMock(images, 'fetch_to_raw') context = 'opaque context' target = '/tmp/targetfile' image_id = '4' user_id = 'fake' project_id = 'fake' images.fetch_to_raw(context, image_id, target, user_id, project_id, max_size=0) self.mox.ReplayAll() libvirt_utils.fetch_image(context, target, image_id, user_id, project_id) def test_fetch_raw_image(self): def fake_execute(*cmd, **kwargs): self.executes.append(cmd) return None, None def fake_rename(old, new): self.executes.append(('mv', old, new)) def fake_unlink(path): self.executes.append(('rm', path)) def fake_rm_on_error(path, remove=None): self.executes.append(('rm', '-f', path)) def fake_qemu_img_info(path): class FakeImgInfo(object): pass file_format = path.split('.')[-1] if file_format == 'part': file_format = path.split('.')[-2] elif file_format == 'converted': file_format = 'raw' if 'backing' in path: backing_file = 'backing' else: backing_file = None if 'big' in path: virtual_size = 2 else: virtual_size = 1 FakeImgInfo.file_format = file_format FakeImgInfo.backing_file = backing_file FakeImgInfo.virtual_size = virtual_size return FakeImgInfo() self.stubs.Set(utils, 'execute', fake_execute) self.stubs.Set(os, 'rename', fake_rename) self.stubs.Set(os, 'unlink', fake_unlink) self.stubs.Set(images, 'fetch', lambda *_, **__: None) self.stubs.Set(images, 'qemu_img_info', fake_qemu_img_info) self.stubs.Set(fileutils, 'delete_if_exists', fake_rm_on_error) # Since the remove param of fileutils.remove_path_on_error() # is initialized at load time, we must provide a wrapper # that explicitly resets it to our fake delete_if_exists() old_rm_path_on_error = fileutils.remove_path_on_error f = functools.partial(old_rm_path_on_error, remove=fake_rm_on_error) self.stubs.Set(fileutils, 'remove_path_on_error', f) context = 'opaque context' image_id = '4' user_id = 'fake' project_id = 'fake' target = 't.qcow2' self.executes = [] expected_commands = [('qemu-img', 'convert', '-O', 'raw', 't.qcow2.part', 't.qcow2.converted'), ('rm', 't.qcow2.part'), ('mv', 't.qcow2.converted', 't.qcow2')] images.fetch_to_raw(context, image_id, target, user_id, project_id, max_size=1) self.assertEqual(self.executes, expected_commands) target = 't.raw' self.executes = [] expected_commands = [('mv', 't.raw.part', 't.raw')] images.fetch_to_raw(context, image_id, target, user_id, project_id) self.assertEqual(self.executes, expected_commands) target = 'backing.qcow2' self.executes = [] expected_commands = [('rm', '-f', 'backing.qcow2.part')] self.assertRaises(exception.ImageUnacceptable, images.fetch_to_raw, context, image_id, target, user_id, project_id) self.assertEqual(self.executes, expected_commands) target = 'big.qcow2' self.executes = [] expected_commands = [('rm', '-f', 'big.qcow2.part')] self.assertRaises(exception.FlavorDiskTooSmall, images.fetch_to_raw, context, image_id, target, user_id, project_id, max_size=1) self.assertEqual(self.executes, expected_commands) del self.executes def test_get_disk_backing_file(self): with_actual_path = False def fake_execute(*args, **kwargs): if with_actual_path: return ("some: output\n" "backing file: /foo/bar/baz (actual path: /a/b/c)\n" "...: ...\n"), '' else: return ("some: output\n" "backing file: /foo/bar/baz\n" "...: ...\n"), '' def return_true(*args, **kwargs): return True self.stubs.Set(utils, 'execute', fake_execute) self.stubs.Set(os.path, 'exists', return_true) out = libvirt_utils.get_disk_backing_file('') self.assertEqual(out, 'baz') with_actual_path = True out = libvirt_utils.get_disk_backing_file('') self.assertEqual(out, 'c') class LibvirtDriverTestCase(test.TestCase): """Test for nova.virt.libvirt.libvirt_driver.LibvirtDriver.""" def setUp(self): super(LibvirtDriverTestCase, self).setUp() self.libvirtconnection = libvirt_driver.LibvirtDriver( fake.FakeVirtAPI(), read_only=True) self.context = context.get_admin_context() def _create_instance(self, params=None): """Create a test instance.""" if not params: params = {} sys_meta = flavors.save_flavor_info( {}, flavors.get_flavor_by_name('m1.tiny')) inst = {} inst['image_ref'] = '1' inst['reservation_id'] = 'r-fakeres' inst['user_id'] = 'fake' inst['project_id'] = 'fake' type_id = flavors.get_flavor_by_name('m1.tiny')['id'] inst['instance_type_id'] = type_id inst['ami_launch_index'] = 0 inst['host'] = 'host1' inst['root_gb'] = 10 inst['ephemeral_gb'] = 20 inst['config_drive'] = True inst['kernel_id'] = 2 inst['ramdisk_id'] = 3 inst['key_data'] = 'ABCDEFG' inst['system_metadata'] = sys_meta inst.update(params) return db.instance_create(self.context, inst) def test_migrate_disk_and_power_off_exception(self): """Test for nova.virt.libvirt.libvirt_driver.LivirtConnection .migrate_disk_and_power_off. """ self.counter = 0 self.checked_shared_storage = False def fake_get_instance_disk_info(instance, xml=None, block_device_info=None): return '[]' def fake_destroy(instance): pass def fake_get_host_ip_addr(): return '10.0.0.1' def fake_execute(*args, **kwargs): self.counter += 1 if self.counter == 1: assert False, "intentional failure" def fake_os_path_exists(path): return True def fake_is_storage_shared(dest, inst_base): self.checked_shared_storage = True return False self.stubs.Set(self.libvirtconnection, 'get_instance_disk_info', fake_get_instance_disk_info) self.stubs.Set(self.libvirtconnection, '_destroy', fake_destroy) self.stubs.Set(self.libvirtconnection, 'get_host_ip_addr', fake_get_host_ip_addr) self.stubs.Set(self.libvirtconnection, '_is_storage_shared_with', fake_is_storage_shared) self.stubs.Set(utils, 'execute', fake_execute) self.stubs.Set(os.path, 'exists', fake_os_path_exists) ins_ref = self._create_instance() flavor = {'root_gb': 10, 'ephemeral_gb': 20} self.assertRaises(AssertionError, self.libvirtconnection.migrate_disk_and_power_off, None, ins_ref, '10.0.0.2', flavor, None) def test_migrate_disk_and_power_off(self): """Test for nova.virt.libvirt.libvirt_driver.LivirtConnection .migrate_disk_and_power_off. """ disk_info = [{'type': 'qcow2', 'path': '/test/disk', 'virt_disk_size': '10737418240', 'backing_file': '/base/disk', 'disk_size': '83886080'}, {'type': 'raw', 'path': '/test/disk.local', 'virt_disk_size': '10737418240', 'backing_file': '/base/disk.local', 'disk_size': '83886080'}] disk_info_text = jsonutils.dumps(disk_info) def fake_get_instance_disk_info(instance, xml=None, block_device_info=None): return disk_info_text def fake_destroy(instance): pass def fake_get_host_ip_addr(): return '10.0.0.1' def fake_execute(*args, **kwargs): pass self.stubs.Set(self.libvirtconnection, 'get_instance_disk_info', fake_get_instance_disk_info) self.stubs.Set(self.libvirtconnection, '_destroy', fake_destroy) self.stubs.Set(self.libvirtconnection, 'get_host_ip_addr', fake_get_host_ip_addr) self.stubs.Set(utils, 'execute', fake_execute) ins_ref = self._create_instance() flavor = {'root_gb': 10, 'ephemeral_gb': 20} # dest is different host case out = self.libvirtconnection.migrate_disk_and_power_off( None, ins_ref, '10.0.0.2', flavor, None) self.assertEqual(out, disk_info_text) # dest is same host case out = self.libvirtconnection.migrate_disk_and_power_off( None, ins_ref, '10.0.0.1', flavor, None) self.assertEqual(out, disk_info_text) def test_migrate_disk_and_power_off_resize_error(self): instance = self._create_instance() flavor = {'root_gb': 5} self.assertRaises( exception.InstanceFaultRollback, self.libvirtconnection.migrate_disk_and_power_off, 'ctx', instance, '10.0.0.1', flavor, None) def test_wait_for_running(self): def fake_get_info(instance): if instance['name'] == "not_found": raise exception.InstanceNotFound(instance_id=instance['uuid']) elif instance['name'] == "running": return {'state': power_state.RUNNING} else: return {'state': power_state.SHUTDOWN} self.stubs.Set(self.libvirtconnection, 'get_info', fake_get_info) # instance not found case self.assertRaises(exception.InstanceNotFound, self.libvirtconnection._wait_for_running, {'name': 'not_found', 'uuid': 'not_found_uuid'}) # instance is running case self.assertRaises(loopingcall.LoopingCallDone, self.libvirtconnection._wait_for_running, {'name': 'running', 'uuid': 'running_uuid'}) # else case self.libvirtconnection._wait_for_running({'name': 'else', 'uuid': 'other_uuid'}) def _test_finish_migration(self, power_on): """Test for nova.virt.libvirt.libvirt_driver.LivirtConnection .finish_migration. """ disk_info = [{'type': 'qcow2', 'path': '/test/disk', 'local_gb': 10, 'backing_file': '/base/disk'}, {'type': 'raw', 'path': '/test/disk.local', 'local_gb': 10, 'backing_file': '/base/disk.local'}] disk_info_text = jsonutils.dumps(disk_info) powered_on = power_on self.fake_create_domain_called = False def fake_can_resize_image(path, size): return False def fake_extend(path, size, use_cow=False): pass def fake_to_xml(context, instance, network_info, disk_info, image_meta=None, rescue=None, block_device_info=None, write_to_disk=False): return "" def fake_plug_vifs(instance, network_info): pass def fake_create_image(context, inst, disk_mapping, suffix='', disk_images=None, network_info=None, block_device_info=None, inject_files=True): self.assertFalse(inject_files) def fake_create_domain(xml, instance=None, launch_flags=0, power_on=True): self.fake_create_domain_called = True self.assertEqual(powered_on, power_on) return mock.MagicMock() def fake_enable_hairpin(instance): pass def fake_execute(*args, **kwargs): pass def fake_get_info(instance): if powered_on: return {'state': power_state.RUNNING} else: return {'state': power_state.SHUTDOWN} self.flags(use_cow_images=True) self.stubs.Set(libvirt_driver.disk, 'extend', fake_extend) self.stubs.Set(libvirt_driver.disk, 'can_resize_image', fake_can_resize_image) self.stubs.Set(self.libvirtconnection, 'to_xml', fake_to_xml) self.stubs.Set(self.libvirtconnection, 'plug_vifs', fake_plug_vifs) self.stubs.Set(self.libvirtconnection, '_create_image', fake_create_image) self.stubs.Set(self.libvirtconnection, '_create_domain', fake_create_domain) self.stubs.Set(self.libvirtconnection, '_enable_hairpin', fake_enable_hairpin) self.stubs.Set(utils, 'execute', fake_execute) fw = base_firewall.NoopFirewallDriver() self.stubs.Set(self.libvirtconnection, 'firewall_driver', fw) self.stubs.Set(self.libvirtconnection, 'get_info', fake_get_info) ins_ref = self._create_instance() self.libvirtconnection.finish_migration( context.get_admin_context(), None, ins_ref, disk_info_text, [], None, None, None, power_on) self.assertTrue(self.fake_create_domain_called) def test_finish_migration_power_on(self): self._test_finish_migration(True) def test_finish_migration_power_off(self): self._test_finish_migration(False) def _test_finish_revert_migration(self, power_on): """Test for nova.virt.libvirt.libvirt_driver.LivirtConnection .finish_revert_migration. """ powered_on = power_on self.fake_create_domain_called = False def fake_execute(*args, **kwargs): pass def fake_plug_vifs(instance, network_info): pass def fake_create_domain(xml, instance=None, launch_flags=0, power_on=True): self.fake_create_domain_called = True self.assertEqual(powered_on, power_on) return mock.MagicMock() def fake_enable_hairpin(instance): pass def fake_get_info(instance): if powered_on: return {'state': power_state.RUNNING} else: return {'state': power_state.SHUTDOWN} def fake_to_xml(context, instance, network_info, disk_info, image_meta=None, rescue=None, block_device_info=None): return "" self.stubs.Set(self.libvirtconnection, 'to_xml', fake_to_xml) self.stubs.Set(self.libvirtconnection, 'plug_vifs', fake_plug_vifs) self.stubs.Set(utils, 'execute', fake_execute) fw = base_firewall.NoopFirewallDriver() self.stubs.Set(self.libvirtconnection, 'firewall_driver', fw) self.stubs.Set(self.libvirtconnection, '_create_domain', fake_create_domain) self.stubs.Set(self.libvirtconnection, '_enable_hairpin', fake_enable_hairpin) self.stubs.Set(self.libvirtconnection, 'get_info', fake_get_info) with utils.tempdir() as tmpdir: self.flags(instances_path=tmpdir) ins_ref = self._create_instance() os.mkdir(os.path.join(tmpdir, ins_ref['name'])) libvirt_xml_path = os.path.join(tmpdir, ins_ref['name'], 'libvirt.xml') f = open(libvirt_xml_path, 'w') f.close() self.libvirtconnection.finish_revert_migration( context.get_admin_context(), ins_ref, [], None, power_on) self.assertTrue(self.fake_create_domain_called) def test_finish_revert_migration_power_on(self): self._test_finish_revert_migration(True) def test_finish_revert_migration_power_off(self): self._test_finish_revert_migration(False) def _test_finish_revert_migration_after_crash(self, backup_made=True, del_inst_failed=False): class FakeLoopingCall: def start(self, *a, **k): return self def wait(self): return None context = 'fake_context' self.mox.StubOutWithMock(libvirt_utils, 'get_instance_path') self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(shutil, 'rmtree') self.mox.StubOutWithMock(utils, 'execute') self.stubs.Set(blockinfo, 'get_disk_info', lambda *a: None) self.stubs.Set(self.libvirtconnection, 'to_xml', lambda *a, **k: None) self.stubs.Set(self.libvirtconnection, '_create_domain_and_network', lambda *a: None) self.stubs.Set(loopingcall, 'FixedIntervalLoopingCall', lambda *a, **k: FakeLoopingCall()) libvirt_utils.get_instance_path({}).AndReturn('/fake/foo') os.path.exists('/fake/foo_resize').AndReturn(backup_made) if backup_made: if del_inst_failed: os_error = OSError(errno.ENOENT, 'No such file or directory') shutil.rmtree('/fake/foo').AndRaise(os_error) else: shutil.rmtree('/fake/foo') utils.execute('mv', '/fake/foo_resize', '/fake/foo') self.mox.ReplayAll() self.libvirtconnection.finish_revert_migration(context, {}, []) def test_finish_revert_migration_after_crash(self): self._test_finish_revert_migration_after_crash(backup_made=True) def test_finish_revert_migration_after_crash_before_new(self): self._test_finish_revert_migration_after_crash(backup_made=True) def test_finish_revert_migration_after_crash_before_backup(self): self._test_finish_revert_migration_after_crash(backup_made=False) def test_finish_revert_migration_after_crash_delete_failed(self): self._test_finish_revert_migration_after_crash(backup_made=True, del_inst_failed=True) def test_cleanup_failed_migration(self): self.mox.StubOutWithMock(shutil, 'rmtree') shutil.rmtree('/fake/inst') self.mox.ReplayAll() self.libvirtconnection._cleanup_failed_migration('/fake/inst') def test_confirm_migration(self): ins_ref = self._create_instance() self.mox.StubOutWithMock(self.libvirtconnection, "_cleanup_resize") self.libvirtconnection._cleanup_resize(ins_ref, _fake_network_info(self.stubs, 1)) self.mox.ReplayAll() self.libvirtconnection.confirm_migration("migration_ref", ins_ref, _fake_network_info(self.stubs, 1)) def test_cleanup_resize_same_host(self): ins_ref = self._create_instance({'host': CONF.host}) def fake_os_path_exists(path): return True self.stubs.Set(os.path, 'exists', fake_os_path_exists) self.mox.StubOutWithMock(libvirt_utils, 'get_instance_path') self.mox.StubOutWithMock(utils, 'execute') libvirt_utils.get_instance_path(ins_ref).AndReturn('/fake/inst') utils.execute('rm', '-rf', '/fake/inst_resize', delay_on_retry=True, attempts=5) self.mox.ReplayAll() self.libvirtconnection._cleanup_resize(ins_ref, _fake_network_info(self.stubs, 1)) def test_cleanup_resize_not_same_host(self): host = 'not' + CONF.host ins_ref = self._create_instance({'host': host}) def fake_os_path_exists(path): return True def fake_undefine_domain(instance): pass def fake_unplug_vifs(instance, network_info, ignore_errors=False): pass def fake_unfilter_instance(instance, network_info): pass self.stubs.Set(os.path, 'exists', fake_os_path_exists) self.stubs.Set(self.libvirtconnection, '_undefine_domain', fake_undefine_domain) self.stubs.Set(self.libvirtconnection, 'unplug_vifs', fake_unplug_vifs) self.stubs.Set(self.libvirtconnection.firewall_driver, 'unfilter_instance', fake_unfilter_instance) self.mox.StubOutWithMock(libvirt_utils, 'get_instance_path') self.mox.StubOutWithMock(utils, 'execute') libvirt_utils.get_instance_path(ins_ref).AndReturn('/fake/inst') utils.execute('rm', '-rf', '/fake/inst_resize', delay_on_retry=True, attempts=5) self.mox.ReplayAll() self.libvirtconnection._cleanup_resize(ins_ref, _fake_network_info(self.stubs, 1)) def test_get_instance_disk_info_exception(self): instance_name = "fake-instance-name" class FakeExceptionDomain(FakeVirtDomain): def __init__(self): super(FakeExceptionDomain, self).__init__() def XMLDesc(self, *args): raise libvirt.libvirtError("Libvirt error") def fake_lookup_by_name(instance_name): return FakeExceptionDomain() self.stubs.Set(self.libvirtconnection, '_lookup_by_name', fake_lookup_by_name) self.assertRaises(exception.InstanceNotFound, self.libvirtconnection.get_instance_disk_info, instance_name) @mock.patch('os.path.exists') @mock.patch('nova.virt.libvirt.utils.list_logical_volumes') def test_lvm_disks(self, listlvs, exists): instance = instance_obj.Instance(uuid='fake-uuid', id=1) self.flags(images_volume_group='vols', group='libvirt') exists.return_value = True listlvs.return_value = ['fake-uuid_foo', 'instance-00000001_bar', 'other-uuid_foo', 'instance-00000002_bar'] disks = self.libvirtconnection._lvm_disks(instance) self.assertEqual(['/dev/vols/fake-uuid_foo', '/dev/vols/instance-00000001_bar'], disks) def test_is_booted_from_volume(self): func = libvirt_driver.LibvirtDriver._is_booted_from_volume instance, disk_mapping = {}, {} self.assertTrue(func(instance, disk_mapping)) disk_mapping['disk'] = 'map' self.assertTrue(func(instance, disk_mapping)) instance['image_ref'] = 'uuid' self.assertFalse(func(instance, disk_mapping)) @mock.patch('nova.virt.netutils.get_injected_network_template') @mock.patch('nova.virt.disk.api.inject_data') def _test_inject_data(self, driver_params, disk_params, disk_inject_data, inj_network, called=True): conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI()) class i(object): path = '/path' def fake_inj_network(*args, **kwds): return args[0] or None inj_network.side_effect = fake_inj_network with mock.patch.object( conn.image_backend, 'image', return_value=i()): self.flags(inject_partition=0, group='libvirt') conn._inject_data(**driver_params) if called: disk_inject_data.assert_called_once_with( *disk_params, partition=None, mandatory=('files',), use_cow=True) self.assertEqual(disk_inject_data.called, called) def _test_inject_data_default_driver_params(self): return { 'instance': { 'uuid': 'fake-uuid', 'id': 1, 'kernel_id': None, 'image_ref': 1, 'key_data': None, 'metadata': None }, 'network_info': None, 'admin_pass': None, 'files': None, 'suffix': '' } def test_inject_data_adminpass(self): self.flags(inject_password=True, group='libvirt') driver_params = self._test_inject_data_default_driver_params() driver_params['admin_pass'] = 'foobar' disk_params = [ '/path', # injection_path None, # key None, # net None, # metadata 'foobar', # admin_pass None, # files ] self._test_inject_data(driver_params, disk_params) # Test with the configuration setted to false. self.flags(inject_password=False, group='libvirt') self._test_inject_data(driver_params, disk_params, called=False) def test_inject_data_key(self): driver_params = self._test_inject_data_default_driver_params() driver_params['instance']['key_data'] = 'key-content' self.flags(inject_key=True, group='libvirt') disk_params = [ '/path', # injection_path 'key-content', # key None, # net None, # metadata None, # admin_pass None, # files ] self._test_inject_data(driver_params, disk_params) # Test with the configuration setted to false. self.flags(inject_key=False, group='libvirt') self._test_inject_data(driver_params, disk_params, called=False) def test_inject_data_metadata(self): driver_params = self._test_inject_data_default_driver_params() driver_params['instance']['metadata'] = 'data' disk_params = [ '/path', # injection_path None, # key None, # net 'data', # metadata None, # admin_pass None, # files ] self._test_inject_data(driver_params, disk_params) def test_inject_data_files(self): driver_params = self._test_inject_data_default_driver_params() driver_params['files'] = ['file1', 'file2'] disk_params = [ '/path', # injection_path None, # key None, # net None, # metadata None, # admin_pass ['file1', 'file2'], # files ] self._test_inject_data(driver_params, disk_params) def test_inject_data_net(self): driver_params = self._test_inject_data_default_driver_params() driver_params['network_info'] = {'net': 'eno1'} disk_params = [ '/path', # injection_path None, # key {'net': 'eno1'}, # net None, # metadata None, # admin_pass None, # files ] self._test_inject_data(driver_params, disk_params) def _test_attach_detach_interface(self, method, power_state, expected_flags): instance = self._create_instance() network_info = _fake_network_info(self.stubs, 1) domain = FakeVirtDomain() self.mox.StubOutWithMock(self.libvirtconnection, '_lookup_by_name') self.mox.StubOutWithMock(self.libvirtconnection.firewall_driver, 'setup_basic_filtering') self.mox.StubOutWithMock(domain, 'attachDeviceFlags') self.mox.StubOutWithMock(domain, 'info') self.libvirtconnection._lookup_by_name( 'instance-00000001').AndReturn(domain) if method == 'attach_interface': self.libvirtconnection.firewall_driver.setup_basic_filtering( instance, [network_info[0]]) fake_flavor = flavor_obj.Flavor.get_by_id( self.context, instance['instance_type_id']) if method == 'attach_interface': fake_image_meta = {'id': instance['image_ref']} elif method == 'detach_interface': fake_image_meta = None expected = self.libvirtconnection.vif_driver.get_config( instance, network_info[0], fake_image_meta, fake_flavor) self.mox.StubOutWithMock(self.libvirtconnection.vif_driver, 'get_config') self.libvirtconnection.vif_driver.get_config( instance, network_info[0], fake_image_meta, mox.IsA(flavor_obj.Flavor)).AndReturn(expected) domain.info().AndReturn([power_state]) if method == 'attach_interface': domain.attachDeviceFlags(expected.to_xml(), expected_flags) elif method == 'detach_interface': domain.detachDeviceFlags(expected.to_xml(), expected_flags) self.mox.ReplayAll() if method == 'attach_interface': self.libvirtconnection.attach_interface( instance, fake_image_meta, network_info[0]) elif method == 'detach_interface': self.libvirtconnection.detach_interface( instance, network_info[0]) self.mox.VerifyAll() def test_attach_interface_with_running_instance(self): self._test_attach_detach_interface( 'attach_interface', power_state.RUNNING, expected_flags=(libvirt.VIR_DOMAIN_AFFECT_CONFIG | libvirt.VIR_DOMAIN_AFFECT_LIVE)) def test_attach_interface_with_pause_instance(self): self._test_attach_detach_interface( 'attach_interface', power_state.PAUSED, expected_flags=(libvirt.VIR_DOMAIN_AFFECT_CONFIG | libvirt.VIR_DOMAIN_AFFECT_LIVE)) def test_attach_interface_with_shutdown_instance(self): self._test_attach_detach_interface( 'attach_interface', power_state.SHUTDOWN, expected_flags=(libvirt.VIR_DOMAIN_AFFECT_CONFIG)) def test_detach_interface_with_running_instance(self): self._test_attach_detach_interface( 'detach_interface', power_state.RUNNING, expected_flags=(libvirt.VIR_DOMAIN_AFFECT_CONFIG | libvirt.VIR_DOMAIN_AFFECT_LIVE)) def test_detach_interface_with_pause_instance(self): self._test_attach_detach_interface( 'detach_interface', power_state.PAUSED, expected_flags=(libvirt.VIR_DOMAIN_AFFECT_CONFIG | libvirt.VIR_DOMAIN_AFFECT_LIVE)) def test_detach_interface_with_shutdown_instance(self): self._test_attach_detach_interface( 'detach_interface', power_state.SHUTDOWN, expected_flags=(libvirt.VIR_DOMAIN_AFFECT_CONFIG)) class LibvirtVolumeUsageTestCase(test.TestCase): """Test for LibvirtDriver.get_all_volume_usage.""" def setUp(self): super(LibvirtVolumeUsageTestCase, self).setUp() self.conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.c = context.get_admin_context() # creating instance inst = {} inst['uuid'] = '875a8070-d0b9-4949-8b31-104d125c9a64' self.ins_ref = db.instance_create(self.c, inst) # verify bootable volume device path also self.bdms = [{'volume_id': 1, 'device_name': '/dev/vde'}, {'volume_id': 2, 'device_name': 'vda'}] def test_get_all_volume_usage(self): def fake_block_stats(instance_name, disk): return (169L, 688640L, 0L, 0L, -1L) self.stubs.Set(self.conn, 'block_stats', fake_block_stats) vol_usage = self.conn.get_all_volume_usage(self.c, [dict(instance=self.ins_ref, instance_bdms=self.bdms)]) expected_usage = [{'volume': 1, 'instance': self.ins_ref, 'rd_bytes': 688640L, 'wr_req': 0L, 'flush_operations': -1L, 'rd_req': 169L, 'wr_bytes': 0L}, {'volume': 2, 'instance': self.ins_ref, 'rd_bytes': 688640L, 'wr_req': 0L, 'flush_operations': -1L, 'rd_req': 169L, 'wr_bytes': 0L}] self.assertEqual(vol_usage, expected_usage) def test_get_all_volume_usage_device_not_found(self): def fake_lookup(instance_name): raise libvirt.libvirtError('invalid path') self.stubs.Set(self.conn, '_lookup_by_name', fake_lookup) vol_usage = self.conn.get_all_volume_usage(self.c, [dict(instance=self.ins_ref, instance_bdms=self.bdms)]) self.assertEqual(vol_usage, []) class LibvirtNonblockingTestCase(test.TestCase): """Test libvirtd calls are nonblocking.""" def setUp(self): super(LibvirtNonblockingTestCase, self).setUp() self.flags(connection_uri="test:///default", group='libvirt') def test_connection_to_primitive(self): # Test bug 962840. import nova.virt.libvirt.driver as libvirt_driver connection = libvirt_driver.LibvirtDriver('') connection.set_host_enabled = mock.Mock() jsonutils.to_primitive(connection._conn, convert_instances=True) def test_tpool_execute_calls_libvirt(self): conn = libvirt.virConnect() conn.is_expected = True self.mox.StubOutWithMock(eventlet.tpool, 'execute') eventlet.tpool.execute( libvirt.openAuth, 'test:///default', mox.IgnoreArg(), mox.IgnoreArg()).AndReturn(conn) eventlet.tpool.execute( conn.domainEventRegisterAny, None, libvirt.VIR_DOMAIN_EVENT_ID_LIFECYCLE, mox.IgnoreArg(), mox.IgnoreArg()) if hasattr(libvirt.virConnect, 'registerCloseCallback'): eventlet.tpool.execute( conn.registerCloseCallback, mox.IgnoreArg(), mox.IgnoreArg()) self.mox.ReplayAll() driver = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), True) c = driver._get_connection() self.assertEqual(True, c.is_expected) class LibvirtVolumeSnapshotTestCase(test.TestCase): """Tests for libvirtDriver.volume_snapshot_create/delete.""" def setUp(self): super(LibvirtVolumeSnapshotTestCase, self).setUp() self.conn = libvirt_driver.LibvirtDriver(fake.FakeVirtAPI(), False) self.c = context.get_admin_context() self.flags(instance_name_template='instance-%s') # creating instance self.inst = {} self.inst['uuid'] = uuidutils.generate_uuid() self.inst['id'] = '1' # create domain info self.dom_xml = """ <domain type='kvm'> <devices> <disk type='file'> <source file='disk1_file'/> <target dev='vda' bus='virtio'/> <serial>0e38683e-f0af-418f-a3f1-6b67ea0f919d</serial> </disk> <disk type='block'> <source dev='/path/to/dev/1'/> <target dev='vdb' bus='virtio' serial='1234'/> </disk> </devices> </domain>""" self.create_info = {'type': 'qcow2', 'snapshot_id': '1234-5678', 'new_file': 'new-file'} self.volume_uuid = '0e38683e-f0af-418f-a3f1-6b67ea0f919d' self.snapshot_id = '9c3ca9f4-9f4e-4dba-bedd-5c5e4b52b162' self.delete_info_1 = {'type': 'qcow2', 'file_to_merge': 'snap.img', 'merge_target_file': None} self.delete_info_2 = {'type': 'qcow2', 'file_to_merge': 'snap.img', 'merge_target_file': 'other-snap.img'} self.delete_info_invalid_type = {'type': 'made_up_type', 'file_to_merge': 'some_file', 'merge_target_file': 'some_other_file'} def tearDown(self): super(LibvirtVolumeSnapshotTestCase, self).tearDown() @mock.patch('nova.virt.block_device.DriverVolumeBlockDevice.' 'refresh_connection_info') @mock.patch('nova.objects.block_device.BlockDeviceMapping.' 'get_by_volume_id') def test_volume_refresh_connection_info(self, mock_get_by_volume_id, mock_refresh_connection_info): fake_bdm = fake_block_device.FakeDbBlockDeviceDict({ 'id': 123, 'instance_uuid': 'fake-instance', 'device_name': '/dev/sdb', 'source_type': 'volume', 'destination_type': 'volume', 'volume_id': 'fake-volume-id-1', 'connection_info': '{"fake": "connection_info"}'}) mock_get_by_volume_id.return_value = fake_bdm self.conn._volume_refresh_connection_info(self.c, self.inst, self.volume_uuid) mock_get_by_volume_id.assert_called_once_with(self.c, self.volume_uuid) mock_refresh_connection_info.assert_called_once_with(self.c, self.inst, self.conn._volume_api, self.conn) def test_volume_snapshot_create(self, quiesce=True): CONF.instance_name_template = 'instance-%s' self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, '_volume_api') instance = db.instance_create(self.c, self.inst) snapshot_id = 'snap-asdf-qwert' new_file = 'new-file' domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(domain, 'XMLDesc') self.mox.StubOutWithMock(domain, 'snapshotCreateXML') domain.XMLDesc(0).AndReturn(self.dom_xml) snap_xml_src = ( '<domainsnapshot>\n' ' <disks>\n' ' <disk name="disk1_file" snapshot="external" type="file">\n' ' <source file="new-file"/>\n' ' </disk>\n' ' <disk name="/path/to/dev/1" snapshot="no"/>\n' ' </disks>\n' '</domainsnapshot>\n') # Older versions of libvirt may be missing these. libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT = 32 libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE = 64 snap_flags = (libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY | libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA | libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT) snap_flags_q = snap_flags | libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE if quiesce: domain.snapshotCreateXML(snap_xml_src, snap_flags_q) else: domain.snapshotCreateXML(snap_xml_src, snap_flags_q).\ AndRaise(libvirt.libvirtError('quiescing failed, no qemu-ga')) domain.snapshotCreateXML(snap_xml_src, snap_flags).AndReturn(0) self.mox.ReplayAll() self.conn._volume_snapshot_create(self.c, instance, domain, self.volume_uuid, snapshot_id, new_file) self.mox.VerifyAll() def test_volume_snapshot_create_noquiesce(self): self.test_volume_snapshot_create(quiesce=False) def test_volume_snapshot_create_outer_success(self): instance = db.instance_create(self.c, self.inst) domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, '_volume_api') self.mox.StubOutWithMock(self.conn, '_volume_snapshot_create') self.conn._lookup_by_name('instance-1').AndReturn(domain) self.conn._volume_snapshot_create(self.c, instance, domain, self.volume_uuid, self.create_info['snapshot_id'], self.create_info['new_file']) self.conn._volume_api.update_snapshot_status( self.c, self.create_info['snapshot_id'], 'creating') self.mox.StubOutWithMock(self.conn._volume_api, 'get_snapshot') self.conn._volume_api.get_snapshot(self.c, self.create_info['snapshot_id']).AndReturn({'status': 'available'}) self.mox.StubOutWithMock(self.conn, '_volume_refresh_connection_info') self.conn._volume_refresh_connection_info(self.c, instance, self.volume_uuid) self.mox.ReplayAll() self.conn.volume_snapshot_create(self.c, instance, self.volume_uuid, self.create_info) def test_volume_snapshot_create_outer_failure(self): instance = db.instance_create(self.c, self.inst) domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, '_volume_api') self.mox.StubOutWithMock(self.conn, '_volume_snapshot_create') self.conn._lookup_by_name('instance-1').AndReturn(domain) self.conn._volume_snapshot_create(self.c, instance, domain, self.volume_uuid, self.create_info['snapshot_id'], self.create_info['new_file']).\ AndRaise(exception.NovaException('oops')) self.conn._volume_api.update_snapshot_status( self.c, self.create_info['snapshot_id'], 'error') self.mox.ReplayAll() self.assertRaises(exception.NovaException, self.conn.volume_snapshot_create, self.c, instance, self.volume_uuid, self.create_info) def test_volume_snapshot_delete_1(self): """Deleting newest snapshot -- blockRebase.""" instance = db.instance_create(self.c, self.inst) snapshot_id = 'snapshot-1234' domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(domain, 'XMLDesc') domain.XMLDesc(0).AndReturn(self.dom_xml) self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, 'has_min_version') self.mox.StubOutWithMock(domain, 'blockRebase') self.mox.StubOutWithMock(domain, 'blockCommit') self.mox.StubOutWithMock(domain, 'blockJobInfo') self.conn._lookup_by_name('instance-%s' % instance['id']).\ AndReturn(domain) self.conn.has_min_version(mox.IgnoreArg()).AndReturn(True) domain.blockRebase('vda', 'snap.img', 0, 0) domain.blockJobInfo('vda', 0).AndReturn({'cur': 1, 'end': 1000}) domain.blockJobInfo('vda', 0).AndReturn({'cur': 1000, 'end': 1000}) self.mox.ReplayAll() self.conn._volume_snapshot_delete(self.c, instance, self.volume_uuid, snapshot_id, self.delete_info_1) self.mox.VerifyAll() def test_volume_snapshot_delete_2(self): """Deleting older snapshot -- blockCommit.""" instance = db.instance_create(self.c, self.inst) snapshot_id = 'snapshot-1234' domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(domain, 'XMLDesc') domain.XMLDesc(0).AndReturn(self.dom_xml) self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, 'has_min_version') self.mox.StubOutWithMock(domain, 'blockRebase') self.mox.StubOutWithMock(domain, 'blockCommit') self.mox.StubOutWithMock(domain, 'blockJobInfo') self.conn._lookup_by_name('instance-%s' % instance['id']).\ AndReturn(domain) self.conn.has_min_version(mox.IgnoreArg()).AndReturn(True) domain.blockCommit('vda', 'other-snap.img', 'snap.img', 0, 0) domain.blockJobInfo('vda', 0).AndReturn({'cur': 1, 'end': 1000}) domain.blockJobInfo('vda', 0).AndReturn({}) self.mox.ReplayAll() self.conn._volume_snapshot_delete(self.c, instance, self.volume_uuid, snapshot_id, self.delete_info_2) self.mox.VerifyAll() def test_volume_snapshot_delete_outer_success(self): instance = db.instance_create(self.c, self.inst) snapshot_id = 'snapshot-1234' domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, '_volume_api') self.mox.StubOutWithMock(self.conn, '_volume_snapshot_delete') self.conn._volume_snapshot_delete(self.c, instance, self.volume_uuid, snapshot_id, delete_info=self.delete_info_1) self.conn._volume_api.update_snapshot_status( self.c, snapshot_id, 'deleting') self.mox.StubOutWithMock(self.conn, '_volume_refresh_connection_info') self.conn._volume_refresh_connection_info(self.c, instance, self.volume_uuid) self.mox.ReplayAll() self.conn.volume_snapshot_delete(self.c, instance, self.volume_uuid, snapshot_id, self.delete_info_1) self.mox.VerifyAll() def test_volume_snapshot_delete_outer_failure(self): instance = db.instance_create(self.c, self.inst) snapshot_id = '1234-9876' domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, '_volume_api') self.mox.StubOutWithMock(self.conn, '_volume_snapshot_delete') self.conn._volume_snapshot_delete(self.c, instance, self.volume_uuid, snapshot_id, delete_info=self.delete_info_1).\ AndRaise(exception.NovaException('oops')) self.conn._volume_api.update_snapshot_status( self.c, snapshot_id, 'error_deleting') self.mox.ReplayAll() self.assertRaises(exception.NovaException, self.conn.volume_snapshot_delete, self.c, instance, self.volume_uuid, snapshot_id, self.delete_info_1) self.mox.VerifyAll() def test_volume_snapshot_delete_invalid_type(self): instance = db.instance_create(self.c, self.inst) domain = FakeVirtDomain(fake_xml=self.dom_xml) self.mox.StubOutWithMock(self.conn, '_lookup_by_name') self.mox.StubOutWithMock(self.conn, '_volume_api') self.mox.StubOutWithMock(self.conn, 'has_min_version') self.conn.has_min_version(mox.IgnoreArg()).AndReturn(True) self.conn._volume_api.update_snapshot_status( self.c, self.snapshot_id, 'error_deleting') self.mox.ReplayAll() self.assertRaises(exception.NovaException, self.conn.volume_snapshot_delete, self.c, instance, self.volume_uuid, self.snapshot_id, self.delete_info_invalid_type)
shahar-stratoscale/nova
nova/tests/virt/libvirt/test_libvirt.py
Python
apache-2.0
400,957
#!/usr/bin/env python # Copyright 2017 Calico LLC # # 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 # # https://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 __future__ import print_function from optparse import OptionParser import gc import json import os from queue import Queue import sys from threading import Thread import h5py import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import tensorflow as tf if tf.__version__[0] == '1': tf.compat.v1.enable_eager_execution() from basenji import dna_io from basenji import seqnn from basenji import stream from basenji import vcf from basenji_sat_bed import ScoreWorker, satmut_gen ''' sonnet_sat_vcf.py Perform an in silico saturated mutagenesis of the sequences surrounding variants given in a VCF file. ''' ################################################################################ # main ################################################################################ def main(): usage = 'usage: %prog [options] <model> <vcf_file>' parser = OptionParser(usage) parser.add_option('-d', dest='mut_down', default=0, type='int', help='Nucleotides downstream of center sequence to mutate [Default: %default]') parser.add_option('-f', dest='figure_width', default=20, type='float', help='Figure width [Default: %default]') parser.add_option('--f1', dest='genome1_fasta', default='%s/data/hg38.fa' % os.environ['BASENJIDIR'], help='Genome FASTA which which major allele sequences will be drawn') parser.add_option('--f2', dest='genome2_fasta', default=None, help='Genome FASTA which which minor allele sequences will be drawn') parser.add_option('-l', dest='mut_len', default=200, type='int', help='Length of centered sequence to mutate [Default: %default]') parser.add_option('-o', dest='out_dir', default='sat_vcf', help='Output directory [Default: %default]') parser.add_option('--rc', dest='rc', default=False, action='store_true', help='Ensemble forward and reverse complement predictions [Default: %default]') parser.add_option('--shifts', dest='shifts', default='0', help='Ensemble prediction shifts [Default: %default]') parser.add_option('--species', dest='species', default='human') parser.add_option('--stats', dest='sad_stats', default='sum', help='Comma-separated list of stats to save. [Default: %default]') parser.add_option('-t', dest='targets_file', default=None, type='str', help='File specifying target indexes and labels in table format') parser.add_option('-u', dest='mut_up', default=0, type='int', help='Nucleotides upstream of center sequence to mutate [Default: %default]') (options, args) = parser.parse_args() if len(args) != 2: parser.error('Must provide model and VCF') else: model_file = args[0] vcf_file = args[1] if not os.path.isdir(options.out_dir): os.mkdir(options.out_dir) options.shifts = [int(shift) for shift in options.shifts.split(',')] options.sad_stats = [sad_stat.lower() for sad_stat in options.sad_stats.split(',')] if options.mut_up > 0 or options.mut_down > 0: options.mut_len = options.mut_up + options.mut_down else: assert(options.mut_len > 0) options.mut_up = options.mut_len // 2 options.mut_down = options.mut_len - options.mut_up ################################################################# # read parameters and targets # read targets if options.targets_file is None: target_slice = None else: targets_df = pd.read_table(options.targets_file, index_col=0) target_slice = targets_df.index ################################################################# # setup model seqnn_model = tf.saved_model.load(model_file).model # query num model targets seq_length = seqnn_model.predict_on_batch.input_signature[0].shape[1] null_1hot = np.zeros((1,seq_length,4)) null_preds = seqnn_model.predict_on_batch(null_1hot) null_preds = null_preds[options.species].numpy() _, preds_length, num_targets = null_preds.shape ################################################################# # SNP sequence dataset # load SNPs snps = vcf.vcf_snps(vcf_file) # get one hot coded input sequences if not options.genome2_fasta: seqs_1hot, seq_headers, snps, seqs_dna = vcf.snps_seq1( snps, seq_length, options.genome1_fasta, return_seqs=True) else: seqs_1hot, seq_headers, snps, seqs_dna = vcf.snps2_seq1( snps, seq_length, options.genome1_fasta, options.genome2_fasta, return_seqs=True) num_seqs = seqs_1hot.shape[0] # determine mutation region limits seq_mid = seq_length // 2 mut_start = seq_mid - options.mut_up mut_end = mut_start + options.mut_len # make sequence generator seqs_gen = satmut_gen(seqs_dna, mut_start, mut_end) ################################################################# # setup output scores_h5_file = '%s/scores.h5' % options.out_dir if os.path.isfile(scores_h5_file): os.remove(scores_h5_file) scores_h5 = h5py.File(scores_h5_file, 'w') scores_h5.create_dataset('label', data=np.array(seq_headers, dtype='S')) scores_h5.create_dataset('seqs', dtype='bool', shape=(num_seqs, options.mut_len, 4)) for sad_stat in options.sad_stats: scores_h5.create_dataset(sad_stat, dtype='float16', shape=(num_seqs, options.mut_len, 4, num_targets)) preds_per_seq = 1 + 3*options.mut_len score_threads = [] score_queue = Queue() for i in range(1): sw = ScoreWorker(score_queue, scores_h5, options.sad_stats, mut_start, mut_end) sw.start() score_threads.append(sw) ################################################################# # predict scores and write output # find center center_start = preds_length // 2 if preds_length % 2 == 0: center_end = center_start + 2 else: center_end = center_start + 1 # initialize predictions stream preds_stream = stream.PredStreamSonnet(seqnn_model, seqs_gen, rc=options.rc, shifts=options.shifts, species=options.species) # predictions index pi = 0 for si in range(num_seqs): print('Predicting %d' % si, flush=True) # collect sequence predictions seq_preds_sum = [] seq_preds_center = [] seq_preds_scd = [] preds_mut0 = preds_stream[pi] for spi in range(preds_per_seq): preds_mut = preds_stream[pi] preds_sum = preds_mut.sum(axis=0) seq_preds_sum.append(preds_sum) if 'center' in options.sad_stats: preds_center = preds_mut[center_start:center_end,:].sum(axis=0) seq_preds_center.append(preds_center) if 'scd' in options.sad_stats: preds_scd = np.sqrt(((preds_mut-preds_mut0)**2).sum(axis=0)) seq_preds_scd.append(preds_scd) pi += 1 seq_preds_sum = np.array(seq_preds_sum) seq_preds_center = np.array(seq_preds_center) seq_preds_scd = np.array(seq_preds_scd) # wait for previous to finish score_queue.join() # queue sequence for scoring seq_pred_stats = (seq_preds_sum, seq_preds_center, seq_preds_scd) score_queue.put((seqs_dna[si], seq_pred_stats, si)) gc.collect() # finish queue print('Waiting for threads to finish.', flush=True) score_queue.join() # close output HDF5 scores_h5.close() ################################################################################ # __main__ ################################################################################ if __name__ == '__main__': main() # pdb.runcall(main)
calico/basenji
bin/sonnet_sat_vcf.py
Python
apache-2.0
8,142
#! /usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # IMPORTS # ============================================================================== import datetime class Base(object): def __init__(self, *args, **kwargs): for arg in args: for key in arg: setattr(self, key, arg[key]) for key in kwargs: setattr(self, key, kwargs[key]) class Website(Base): def __init__(self, *args, **kwargs): self.element_type = "Website" self.name = None self.domain = None self.description = None self.content = None super(Website, self).__init__(*args, **kwargs) class Page(Base): def __init__(self, *args, **kwargs): self.element_type = "Page" self.title = None self.url = None super(Page, self).__init__(*args, **kwargs) class WebsiteHostsPage(Base): def __init__(self, *args, **kwargs): self.label = 'hosts' self.since = datetime.datetime.now() self.accessible = None super(WebsiteHostsPage, self).__init__(*args, **kwargs) from graphalchemy.blueprints.schema import MetaData from graphalchemy.ogm.mapper import Mapper metadata = MetaData() mapper = Mapper() from graphalchemy.blueprints.schema import Relationship from graphalchemy.blueprints.schema import Node from graphalchemy.blueprints.schema import Adjacency from graphalchemy.blueprints.types import String from graphalchemy.blueprints.types import Boolean from graphalchemy.blueprints.types import Url from graphalchemy.blueprints.types import DateTime from graphalchemy.blueprints.schema import Property website = Node('Website', metadata, Property('name', String(127), nullable=False, index=True), Property('domain', Url(2801)), Property('description', String(1024)), Property('content', String(1024)) ) page = Node('Page', metadata, Property('title', String(127), nullable=False), Property('url', Url(2801)) ) websiteHostsPageZ = Relationship('hosts', metadata, Property('since', DateTime(), nullable=False), Property('accessible', Boolean()) ) websiteHostsPage_adj = Adjacency(website, websiteHostsPageZ, page, unique=False, nullable=True ) mapper(WebsiteHostsPage, websiteHostsPageZ) mapper(Page, page, adjacencies={ 'isHostedBy': websiteHostsPage_adj }) mapper(Website, website, adjacencies={ 'hosts': websiteHostsPage_adj })
alkemics/graphalchemy
graphalchemy/fixture/declarative.py
Python
apache-2.0
2,535
# 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. """ MKL-DNN related test cases """ import sys import os import numpy as np import mxnet as mx from mxnet.test_utils import rand_ndarray, assert_almost_equal from mxnet import gluon from mxnet.gluon import nn from mxnet.test_utils import * curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) sys.path.append(os.path.join(curr_path, '../unittest/')) from common import with_seed def test_mkldnn_model(): model = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data", "test_mkldnn_test_mkldnn_model_model1.json") shape = (32, 3, 300, 300) ctx = mx.cpu() sym = mx.sym.load(model) args = sym.list_arguments() shapes = sym.infer_shape(data=shape) def get_tensors(args, shapes, ctx): return {x: mx.nd.ones(y, ctx) for x, y in zip(args, shapes)} inputs = get_tensors(args, shapes[0], ctx) grads = get_tensors(args, shapes[0], ctx) try: exe = sym.bind(ctx, inputs, args_grad=grads) for _ in range(2): exe.forward(is_train=True) for y in exe.outputs: y.wait_to_read() exe.backward() for y in exe.grad_arrays: y.wait_to_read() except: # pylint: disable=bare-except assert 0, "test_mkldnn_model exception in bind and execution" def test_mkldnn_ndarray_slice(): ctx = mx.cpu() net = gluon.nn.HybridSequential() with net.name_scope(): net.add(gluon.nn.Conv2D(channels=32, kernel_size=3, activation=None)) net.collect_params().initialize(ctx=ctx) x = mx.nd.array(np.ones([32, 3, 224, 224]), ctx) y = net(x) # trigger computation on ndarray slice assert_almost_equal(y[0].asnumpy()[0, 0, 0], 0.3376348) def test_mkldnn_engine_threading(): net = gluon.nn.HybridSequential() with net.name_scope(): net.add(gluon.nn.Conv2D(channels=32, kernel_size=3, activation=None)) net.collect_params().initialize(ctx=mx.cpu()) class Dummy(gluon.data.Dataset): def __len__(self): return 2 def __getitem__(self, key): return key, np.ones((3, 224, 224)), np.ones((10, )) loader = gluon.data.DataLoader(Dummy(), batch_size=2, num_workers=1) X = (32, 3, 32, 32) # trigger mkldnn execution thread y = net(mx.nd.array(np.ones(X))).asnumpy() # Use Gluon dataloader to trigger different thread. # below line triggers different execution thread for _ in loader: y = net(mx.nd.array(np.ones(X))).asnumpy() # output should be 016711406 (non-mkldnn mode output) assert_almost_equal(y[0, 0, 0, 0], 0.016711406) break @with_seed() def test_reshape_before_conv(): class Net(gluon.HybridBlock): """ test Net """ def __init__(self, **kwargs): super(Net, self).__init__(**kwargs) with self.name_scope(): self.conv0 = nn.Conv2D(10, (3, 3)) self.conv1 = nn.Conv2D(5, (3, 3)) def hybrid_forward(self, F, x, *args, **kwargs): x_reshape = x.reshape((0, 0, 20, 5)) y = self.conv0(x_reshape) y_reshape = y.reshape((0, 0, 9, 6)) out = self.conv1(y_reshape) return out x = mx.nd.random.uniform(shape=(2, 4, 10, 10)) x.attach_grad() net = Net() net.collect_params().initialize() with mx.autograd.record(): out1 = net(x) out1.backward() dx1 = x.grad net.hybridize() with mx.autograd.record(): out2 = net(x) out2.backward() mx.test_utils.assert_almost_equal(dx1.asnumpy(), x.grad.asnumpy(), rtol=1e-5, atol=1e-6) mx.test_utils.assert_almost_equal(out1.asnumpy(), out2.asnumpy(), rtol=1e-5, atol=1e-6) @with_seed() def test_slice_before_conv(): class Net(gluon.HybridBlock): """ test Net """ def __init__(self, **kwargs): super(Net, self).__init__(**kwargs) with self.name_scope(): self.conv0 = nn.Conv2D(4, (3, 3)) self.conv1 = nn.Conv2D(4, (3, 3)) def hybrid_forward(self, F, x, *args, **kwargs): x_slice = x.slice(begin=(0, 0, 0, 0), end=(2, 4, 10, 10)) y = self.conv0(x_slice) y_slice = y.slice(begin=(1, 0, 2, 2), end=(2, 1, 7, 7)) out = self.conv1(y_slice) return out x = mx.nd.random.uniform(shape=(2, 10, 10, 10)) x.attach_grad() net = Net() net.collect_params().initialize() with mx.autograd.record(): out1 = net(x) out1.backward() dx1 = x.grad net.hybridize() with mx.autograd.record(): out2 = net(x) out2.backward() mx.test_utils.assert_almost_equal(dx1.asnumpy(), x.grad.asnumpy(), rtol=1e-5, atol=1e-6) mx.test_utils.assert_almost_equal(out1.asnumpy(), out2.asnumpy(), rtol=1e-5, atol=1e-6) @with_seed() def test_slice_reshape_before_conv(): class Net(gluon.HybridBlock): """ test Net """ def __init__(self, **kwargs): super(Net, self).__init__(**kwargs) with self.name_scope(): self.conv0 = nn.Conv2D(4, (3, 3)) self.conv1 = nn.Conv2D(4, (3, 3)) def hybrid_forward(self, F, x, *args, **kwargs): x_slice = x.slice(begin=(0, 0, 0, 0), end=(2, 4, 8, 9)) y = self.conv0(x_slice) y_reshape = y.reshape((0, 0, 14, 3)) out = self.conv1(y_reshape) return out x = mx.nd.random.uniform(shape=(2, 10, 10, 10)) x.attach_grad() net = Net() net.collect_params().initialize() with mx.autograd.record(): out1 = net(x) out1.backward() dx1 = x.grad net.hybridize() with mx.autograd.record(): out2 = net(x) out2.backward() mx.test_utils.assert_almost_equal(dx1.asnumpy(), x.grad.asnumpy(), rtol=1e-5, atol=1e-6) mx.test_utils.assert_almost_equal(out1.asnumpy(), out2.asnumpy(), rtol=1e-5, atol=1e-6) def test_mkldnn_sum_inplace_with_cpu_layout(): x_shape = (32, 3, 224, 224) x_npy = np.ones(x_shape) y_shape = (32, 32, 222, 222) y_npy = np.ones(y_shape) x = mx.sym.Variable("x") y = mx.sym.Variable("y") z = mx.symbol.Convolution(data=x, num_filter=32, kernel=(3, 3)) z = mx.sym.add_n(z, y) exe = z.simple_bind(ctx=mx.cpu(), x=x_shape, y=y_shape) out = exe.forward(is_train=False, x=x_npy, y=y_npy)[0] assert_almost_equal(out[0].asnumpy()[0, 0, 0], 1.0) @with_seed() def test_batchnorm(): def check_batchnorm_training(stype): for shape in [(2, 3), (2, 3, 2, 2)]: data_tmp = np.random.normal(-0.1, 0.1, size=shape) s = shape[1], gamma = np.ones(s) beta = np.ones(s) gamma[1] = 3 beta[0] = 3 rolling_mean = np.random.uniform(size=s) rolling_std = np.random.uniform(size=s) data = mx.symbol.Variable('data', stype=stype) in_location = [mx.nd.array(data_tmp).tostype(stype), mx.nd.array(gamma).tostype(stype), mx.nd.array(beta).tostype(stype)] mean_std = [mx.nd.array(rolling_mean).tostype(stype), mx.nd.array(rolling_std).tostype(stype)] test = mx.symbol.BatchNorm(data, fix_gamma=True) check_numeric_gradient(test, in_location, mean_std, numeric_eps=1e-2, rtol=0.16, atol=1e-2) stypes = ['row_sparse', 'default'] for stype in stypes: check_batchnorm_training(stype) @with_seed() def test_fullyconnected(): def check_fullyconnected_training(stype): data_shape = rand_shape_nd(2) weight_shape = rand_shape_nd(2) weight_shape = (weight_shape[0], data_shape[1]) for density in [1.0, 0.5, 0.0]: x = rand_ndarray(shape=data_shape, stype=stype, density=density) w = rand_ndarray(shape=weight_shape, stype=stype, density=density) x_sym = mx.sym.Variable("data") w_sym = mx.sym.Variable("weight") sym = mx.sym.FullyConnected(data=x_sym, weight=w_sym, num_hidden=weight_shape[0], no_bias=True) in_location = [x, w] check_numeric_gradient(sym, in_location, numeric_eps=1e-3, rtol=1e-3, atol=5e-3) stypes = ['row_sparse', 'default'] for stype in stypes: check_fullyconnected_training(stype) if __name__ == '__main__': test_mkldnn_install()
precedenceguo/mxnet
tests/python/mkl/test_mkldnn.py
Python
apache-2.0
9,226
"""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-2016 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 = { '861308306':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308307':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861306016':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861306017':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861306014':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861306015':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861306012':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '55893515':{'en': 'Floriano - PI', 'pt': 'Floriano - PI'}, '861306010':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861306011':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861306018':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861306019':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861305514':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '55913216':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '818462':{'en': 'Takehara, Hiroshima', 'ja': u('\u7af9\u539f')}, '55913617':{'en': 'Cotijuba - PA', 'pt': 'Cotijuba - PA'}, '57290':{'en': 'Cali', 'es': 'Cali'}, '57292':{'en': 'Cali', 'es': 'Cali'}, '55873839':{'en': 'Alagoinha - PE', 'pt': 'Alagoinha - PE'}, '55873838':{'en': 'Afogados da Ingazeira - PE', 'pt': 'Afogados da Ingazeira - PE'}, '55873835':{'en': 'Pesqueira - PE', 'pt': 'Pesqueira - PE'}, '55873834':{'en': u('Po\u00e7\u00e3o - PE'), 'pt': u('Po\u00e7\u00e3o - PE')}, '55873837':{'en': 'Iguaraci - PE', 'pt': 'Iguaraci - PE'}, '55873836':{'en': u('Sanhar\u00f3 - PE'), 'pt': u('Sanhar\u00f3 - PE')}, '55873831':{'en': 'Serra Talhada - PE', 'pt': 'Serra Talhada - PE'}, '55873830':{'en': u('Solid\u00e3o - PE'), 'pt': u('Solid\u00e3o - PE')}, '55873833':{'en': 'Venturosa - PE', 'pt': 'Venturosa - PE'}, '55913772':{'en': 'Mosqueiro - PA', 'pt': 'Mosqueiro - PA'}, '55913771':{'en': 'Mosqueiro - PA', 'pt': 'Mosqueiro - PA'}, '55913777':{'en': 'Ponta de Pedras - PA', 'pt': 'Ponta de Pedras - PA'}, '55913776':{'en': u('Santa B\u00e1rbara do Par\u00e1 - PA'), 'pt': u('Santa B\u00e1rbara do Par\u00e1 - PA')}, '55913775':{'en': u('Santo Ant\u00f4nio do Tau\u00e1 - PA'), 'pt': u('Santo Ant\u00f4nio do Tau\u00e1 - PA')}, '55913774':{'en': u('S\u00e3o Francisco do Par\u00e1 - PA'), 'pt': u('S\u00e3o Francisco do Par\u00e1 - PA')}, '55913809':{'en': 'Inhangapi - PA', 'pt': 'Inhangapi - PA'}, '592327':{'en': 'Blairmont/Cumberland'}, '592326':{'en': 'Adelphi/Fryish/No. 40'}, '592325':{'en': 'Mibikuri/No: 34/Joppa/Brighton'}, '592322':{'en': 'Kilcoy/Hampshire/Nigg'}, '861301541':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861301540':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861301543':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861301542':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861301545':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861301544':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '592329':{'en': 'Willemstad/Fort Wellington/Ithaca'}, '861301546':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861301721':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861300148':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861300149':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301720':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861300142':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861300143':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861300140':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861300141':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861300146':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861300147':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861300144':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861300145':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861301722':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861301057':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301056':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '55883696':{'en': 'Monsenhor Tabosa - CE', 'pt': 'Monsenhor Tabosa - CE'}, '818562':{'en': 'Masuda, Shimane', 'ja': u('\u76ca\u7530')}, '55883695':{'en': 'Sobral - CE', 'pt': 'Sobral - CE'}, '55883692':{'en': u('Crate\u00fas - CE'), 'pt': u('Crate\u00fas - CE')}, '55993578':{'en': u('S\u00e3o Domingos do Maranh\u00e3o - MA'), 'pt': u('S\u00e3o Domingos do Maranh\u00e3o - MA')}, '55883691':{'en': u('Crate\u00fas - CE'), 'pt': u('Crate\u00fas - CE')}, '55993575':{'en': u('Gra\u00e7a Aranha - MA'), 'pt': u('Gra\u00e7a Aranha - MA')}, '55993574':{'en': 'Fortuna - MA', 'pt': 'Fortuna - MA'}, '55993577':{'en': 'Parnarama - MA', 'pt': 'Parnarama - MA'}, '55993576':{'en': u('Mat\u00f5es - MA'), 'pt': u('Mat\u00f5es - MA')}, '55993571':{'en': 'Porto Franco - MA', 'pt': 'Porto Franco - MA'}, '55993572':{'en': 'Buriti Bravo - MA', 'pt': 'Buriti Bravo - MA'}, '861301729':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861305498':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861303406':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '5718417':{'en': 'Guaduas', 'es': 'Guaduas'}, '5718416':{'en': 'Guaduas', 'es': 'Guaduas'}, '55973451':{'en': 'Boca do Acre - AM', 'pt': 'Boca do Acre - AM'}, '55973453':{'en': 'Boca do Acre - AM', 'pt': 'Boca do Acre - AM'}, '55973458':{'en': 'Pauini - AM', 'pt': 'Pauini - AM'}, '55973373':{'en': u('Humait\u00e1 - AM'), 'pt': u('Humait\u00e1 - AM')}, '861304365':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861304362':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861304363':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861304360':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861304361':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861303961':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '55973379':{'en': u('Novo Aripuan\u00e3 - AM'), 'pt': u('Novo Aripuan\u00e3 - AM')}, '861306013':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861303408':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861303149':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303148':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303147':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861303146':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861303145':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '58212':{'en': 'Caracas/Miranda/Vargas', 'es': 'Distrito Capital/Miranda/Vargas'}, '861303143':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861303142':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861303141':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861303140':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '55983475':{'en': 'Mata Roma - MA', 'pt': 'Mata Roma - MA'}, '55983474':{'en': 'Duque Bacelar - MA', 'pt': 'Duque Bacelar - MA'}, '861303963':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '55983477':{'en': u('S\u00e3o Bernardo - MA'), 'pt': u('S\u00e3o Bernardo - MA')}, '86130799':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '55994102':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '861303962':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '55983472':{'en': 'Brejo - MA', 'pt': 'Brejo - MA'}, '55923528':{'en': 'Silves - AM', 'pt': 'Silves - AM'}, '55923524':{'en': 'Urucurituba - AM', 'pt': 'Urucurituba - AM'}, '55923521':{'en': 'Itacoatiara - AM', 'pt': 'Itacoatiara - AM'}, '86130797':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '86130794':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '68825':{'en': 'Nukulaelae'}, '68824':{'en': 'Nukufetau'}, '68827':{'en': 'Nanumaga'}, '68826':{'en': 'Nanumea'}, '68820':{'en': 'Funafuti'}, '68823':{'en': 'Nui'}, '68822':{'en': 'Niulakita'}, '861304525':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '68829':{'en': 'Vaitupu'}, '68828':{'en': 'Niutao'}, '861306243':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861306242':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861306241':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861306240':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861306247':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861306246':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861306245':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861306244':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861306249':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861306248':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861308284':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '819578':{'en': 'Shimabara, Nagasaki', 'ja': u('\u5cf6\u539f')}, '819574':{'en': 'Isahaya, Nagasaki', 'ja': u('\u8aeb\u65e9')}, '819575':{'en': 'Isahaya, Nagasaki', 'ja': u('\u8aeb\u65e9')}, '819576':{'en': 'Shimabara, Nagasaki', 'ja': u('\u5cf6\u539f')}, '819577':{'en': 'Shimabara, Nagasaki', 'ja': u('\u5cf6\u539f')}, '819572':{'en': 'Isahaya, Nagasaki', 'ja': u('\u8aeb\u65e9')}, '819573':{'en': 'Isahaya, Nagasaki', 'ja': u('\u8aeb\u65e9')}, '861304860':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861303543':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861304863':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861308948':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861308949':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861308942':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308943':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861308940':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308941':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308946':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861308947':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861308944':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861308945':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304521':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '55983654':{'en': 'Santa Luzia - MA', 'pt': 'Santa Luzia - MA'}, '861304448':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '55993017':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55993014':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55993015':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '811638':{'en': '', 'ja': u('\u5229\u5c3b\u793c\u6587')}, '861301044':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861301045':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861301046':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861301731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861301736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861301737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861301042':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861301735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861301738':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '77282':{'en': 'Taldykorgan', 'ru': u('\u0422\u0430\u043b\u0434\u044b\u043a\u043e\u0440\u0433\u0430\u043d')}, '861301048':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861301049':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '81534':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '77272983':{'en': 'Kaskelen'}, '861304864':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '62454':{'en': 'Tinombo', 'id': 'Tinombo'}, '81532':{'en': 'Toyohashi, Aichi', 'ja': u('\u8c4a\u6a4b')}, '81533':{'en': 'Toyohashi, Aichi', 'ja': u('\u8c4a\u6a4b')}, '861304867':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861304546':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861303066':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861304866':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '817356':{'en': 'Kushimoto, Wakayama', 'ja': u('\u4e32\u672c')}, '817357':{'en': 'Kushimoto, Wakayama', 'ja': u('\u4e32\u672c')}, '817354':{'en': 'Shingu, Fukuoka', 'ja': u('\u65b0\u5bae')}, '817355':{'en': 'Shingu, Fukuoka', 'ja': u('\u65b0\u5bae')}, '817352':{'en': 'Shingu, Fukuoka', 'ja': u('\u65b0\u5bae')}, '817353':{'en': 'Shingu, Fukuoka', 'ja': u('\u65b0\u5bae')}, '861301950':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301951':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861301958':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861301959':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861304440':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '86130640':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86130642':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '86130645':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86130646':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86130647':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861303778':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861303779':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '55883579':{'en': u('Quixel\u00f4 - CE'), 'pt': u('Quixel\u00f4 - CE')}, '55883578':{'en': 'Umari - CE', 'pt': 'Umari - CE'}, '861303770':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861303771':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '55883571':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '861303773':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861303774':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '55883576':{'en': 'Jaguaretama - CE', 'pt': 'Jaguaretama - CE'}, '55883575':{'en': 'Jati - CE', 'pt': 'Jati - CE'}, '55883574':{'en': 'Barbalha - CE', 'pt': 'Barbalha - CE'}, '86130465':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '86130466':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '57887':{'en': 'Neiva', 'es': 'Neiva'}, '57886':{'en': 'Neiva', 'es': 'Neiva'}, '55873035':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '772775':{'en': 'Esik', 'ru': u('\u0415\u043d\u0431\u0435\u043a\u0448\u0438\u043a\u0430\u0437\u0430\u0445\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772776':{'en': 'Shelek', 'ru': u('\u0415\u043d\u0431\u0435\u043a\u0448\u0438\u043a\u0430\u0437\u0430\u0445\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772777':{'en': 'Kegen', 'ru': u('\u0420\u0430\u0439\u044b\u043c\u0431\u0435\u043a\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '55873031':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '772771':{'en': 'Kaskelen', 'ru': u('\u041a\u0430\u0440\u0430\u0441\u0430\u0439\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772772':{'en': 'Kapchagai', 'ru': u('\u041a\u0430\u043f\u0448\u0430\u0433\u0430\u0439')}, '55873032':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '772778':{'en': 'Chundzha', 'ru': u('\u0423\u0439\u0433\u0443\u0440\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772779':{'en': 'Narynkol', 'ru': u('\u0420\u0430\u0439\u044b\u043c\u0431\u0435\u043a\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861303808':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302932':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861303558':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861303559':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861303554':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861302935':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861303556':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861303557':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861303550':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861303551':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861303552':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861302934':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861302937':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861302609':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861302608':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861302607':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861302606':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861302605':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861302604':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861302603':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861302602':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861302601':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861302600':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861308717':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861308716':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861308715':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861308714':{'en': 'Alxa, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u963f\u62c9\u5584\u76df')}, '861308713':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '55913803':{'en': 'Bonito - PA', 'pt': 'Bonito - PA'}, '861308711':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861308710':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '55913802':{'en': u('M\u00e3e do Rio - PA'), 'pt': u('M\u00e3e do Rio - PA')}, '861303522':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861308719':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861308718':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861309743':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861309742':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861309741':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861301549':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309740':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '64675':{'en': 'New Plymouth/Mokau'}, '64676':{'en': 'New Plymouth/Opunake/Stratford'}, '861309746':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861309745':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861309744':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861302753':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861303330':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861303332':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861303333':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '55963622':{'en': u('Vit\u00f3ria do Jari - AP'), 'pt': u('Vit\u00f3ria do Jari - AP')}, '861301547':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '55963332':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963621':{'en': 'Laranjal do Jari - AP', 'pt': 'Laranjal do Jari - AP'}, '861303334':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '592328':{'en': 'Cottage/Tempe/Onverwagt/Bath/Waterloo'}, '861303335':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '55983181':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861303336':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '55983182':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861303337':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861305428':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861305429':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861306038':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861306039':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861306034':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861306035':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861306036':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861306037':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861306030':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861306031':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861306032':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861306033':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '55893536':{'en': u('Flores do Piau\u00ed - PI'), 'pt': u('Flores do Piau\u00ed - PI')}, '55893537':{'en': 'Eliseu Martins - PI', 'pt': 'Eliseu Martins - PI'}, '55893535':{'en': u('Manoel Em\u00eddio - PI'), 'pt': u('Manoel Em\u00eddio - PI')}, '55893532':{'en': u('Paje\u00fa do Piau\u00ed - PI'), 'pt': u('Paje\u00fa do Piau\u00ed - PI')}, '55893533':{'en': u('Rio Grande do Piau\u00ed - PI'), 'pt': u('Rio Grande do Piau\u00ed - PI')}, '55893531':{'en': 'Canto do Buriti - PI', 'pt': 'Canto do Buriti - PI'}, '861305420':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '55893538':{'en': u('Col\u00f4nia do Gurgu\u00e9ia - PI'), 'pt': u('Col\u00f4nia do Gurgu\u00e9ia - PI')}, '55893539':{'en': u('Porto Alegre do Piau\u00ed - PI'), 'pt': u('Porto Alegre do Piau\u00ed - PI')}, '861305421':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861305426':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861305427':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861305424':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861308349':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861305425':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '86130969':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '55913636':{'en': 'Limoeiro do Ajuru - PA', 'pt': 'Limoeiro do Ajuru - PA'}, '55913637':{'en': u('Melga\u00e7o - PA'), 'pt': u('Melga\u00e7o - PA')}, '55913633':{'en': 'Curralinho - PA', 'pt': 'Curralinho - PA'}, '861300388':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300389':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300384':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300385':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861300386':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861300387':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '57272':{'en': 'Pasto', 'es': 'Pasto'}, '57273':{'en': 'Pasto', 'es': 'Pasto'}, '861300382':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300383':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861308151':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '55913758':{'en': 'Cachoeira do Arari - PA', 'pt': 'Cachoeira do Arari - PA'}, '861308153':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861308152':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861308155':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861308154':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861308157':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308156':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '55913751':{'en': 'Abaetetuba - PA', 'pt': 'Abaetetuba - PA'}, '861308158':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '55913753':{'en': 'Barcarena - PA', 'pt': 'Barcarena - PA'}, '55913752':{'en': u('Tail\u00e2ndia - PA'), 'pt': u('Tail\u00e2ndia - PA')}, '55913755':{'en': u('Igarap\u00e9-Miri - PA'), 'pt': u('Igarap\u00e9-Miri - PA')}, '55913754':{'en': 'Barcarena - PA', 'pt': 'Barcarena - PA'}, '55913756':{'en': 'Moju - PA', 'pt': 'Moju - PA'}, '64795':{'en': 'Hamilton'}, '861304712':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861304711':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861304710':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861304717':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861304716':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861304715':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861304714':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861304869':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861304868':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861304719':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304718':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '81191':{'en': 'Ichinoseki, Iwate', 'ja': u('\u4e00\u95a2')}, '81192':{'en': 'Ofunato, Iwate', 'ja': u('\u5927\u8239\u6e21')}, '81196':{'en': 'Morioka, Iwate', 'ja': u('\u76db\u5ca1')}, '861301568':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861301567':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '81199':{'en': 'Morioka, Iwate', 'ja': u('\u76db\u5ca1')}, '861301565':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861301564':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861301563':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861301562':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861301561':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861301560':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861300160':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300161':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300162':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300163':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861300164':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861300165':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861300166':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861300167':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861300168':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861300169':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '818563':{'en': 'Masuda, Shimane', 'ja': u('\u76ca\u7530')}, '818564':{'en': 'Masuda, Shimane', 'ja': u('\u76ca\u7530')}, '818565':{'en': 'Masuda, Shimane', 'ja': u('\u76ca\u7530')}, '55993592':{'en': u('A\u00e7ail\u00e2ndia - MA'), 'pt': u('A\u00e7ail\u00e2ndia - MA')}, '57182429':{'en': 'Subachique', 'es': 'Subachique'}, '57182428':{'en': 'Subachoque', 'es': 'Subachoque'}, '818567':{'en': 'Tsuwano, Shimane', 'ja': u('\u6d25\u548c\u91ce')}, '57182420':{'en': 'La Pradera', 'es': 'La Pradera'}, '81998':{'en': 'Kagoshima, Kagoshima', 'ja': u('\u9e7f\u5150\u5cf6')}, '818568':{'en': 'Tsuwano, Shimane', 'ja': u('\u6d25\u548c\u91ce')}, '81778':{'en': 'Takefu, Fukui', 'ja': u('\u6b66\u751f')}, '81779':{'en': 'Ono, Gifu', 'ja': u('\u5927\u91ce')}, '81774':{'en': 'Uji, Kyoto', 'ja': u('\u5b87\u6cbb')}, '81775':{'en': 'Otsu, Shiga', 'ja': u('\u5927\u6d25')}, '81992':{'en': 'Kagoshima, Kagoshima', 'ja': u('\u9e7f\u5150\u5cf6')}, '64923':{'en': 'Pukekohe'}, '86130967':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '812678':{'en': 'Saku, Nagano', 'ja': u('\u4f50\u4e45')}, '861300912':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '58237':{'en': 'Federal Dependencies', 'es': 'Dependencias Federales'}, '58235':{'en': u('Anzo\u00e1tegui/Bol\u00edvar/Gu\u00e1rico'), 'es': u('Anzo\u00e1tegui/Bol\u00edvar/Gu\u00e1rico')}, '58234':{'en': 'Miranda', 'es': 'Miranda'}, '58239':{'en': 'Miranda', 'es': 'Miranda'}, '58238':{'en': u('Gu\u00e1rico'), 'es': u('Gu\u00e1rico')}, '861303125':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861303124':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861303127':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861303126':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861303121':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861303120':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861303123':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861303122':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861303129':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861303128':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '55973473':{'en': u('S\u00e3o Gabriel da Cachoeira - AM'), 'pt': u('S\u00e3o Gabriel da Cachoeira - AM')}, '55973471':{'en': u('S\u00e3o Gabriel da Cachoeira - AM'), 'pt': u('S\u00e3o Gabriel da Cachoeira - AM')}, '861306309':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861306307':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861309700':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861306302':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86130071':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '5718412':{'en': u('Santa In\u00e9s'), 'es': u('Santa In\u00e9s')}, '861306303':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '814249':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814248':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814245':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814244':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814247':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814246':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814241':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814240':{'en': 'Kokubunji, Tokyo', 'ja': u('\u56fd\u5206\u5bfa')}, '55953263':{'en': 'Alto Alegre - RR', 'pt': 'Alto Alegre - RR'}, '55953262':{'en': 'Normandia - RR', 'pt': 'Normandia - RR'}, '5718419':{'en': 'Pandi', 'es': 'Pandi'}, '861303390':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '817954':{'en': 'Nishiwaki, Hyogo', 'ja': u('\u897f\u8107')}, '861308960':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861308961':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861308962':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861308963':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861308964':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861308965':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861308966':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '819935':{'en': 'Kaseda, Kagoshima', 'ja': u('\u52a0\u4e16\u7530')}, '861308968':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861308969':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861301718':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861301719':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861301710':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861301711':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861301712':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861301713':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861301714':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861301715':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861301716':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861301717':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861308829':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '55983479':{'en': u('Tut\u00f3ia - MA'), 'pt': u('Tut\u00f3ia - MA')}, '771436':{'en': 'Taranovskoye'}, '861308169':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '771437':{'en': 'Kamysty'}, '81561':{'en': 'Seto, Aichi', 'ja': u('\u702c\u6238')}, '81563':{'en': 'Nishio, Aichi', 'ja': u('\u897f\u5c3e')}, '81562':{'en': '', 'ja': u('\u5c3e\u5f35\u6a2a\u9808\u8cc0')}, '81565':{'en': 'Toyota, Aichi', 'ja': u('\u8c4a\u7530')}, '81564':{'en': 'Okazaki, Aichi', 'ja': u('\u5ca1\u5d0e')}, '81567':{'en': 'Tsushima, Aichi', 'ja': u('\u6d25\u5cf6')}, '81566':{'en': 'Kariya, Aichi', 'ja': u('\u5208\u8c37')}, '81569':{'en': 'Handa, Aichi', 'ja': u('\u534a\u7530')}, '81568':{'en': 'Kasugai, Aichi', 'ja': u('\u6625\u65e5\u4e95')}, '86130900':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '817998':{'en': 'Tsuna, Hyogo', 'ja': u('\u6d25\u540d')}, '817994':{'en': 'Sumoto, Hyogo', 'ja': u('\u6d32\u672c')}, '817995':{'en': 'Sumoto, Hyogo', 'ja': u('\u6d32\u672c')}, '817996':{'en': 'Tsuna, Hyogo', 'ja': u('\u6d25\u540d')}, '817997':{'en': 'Tsuna, Hyogo', 'ja': u('\u6d25\u540d')}, '817992':{'en': 'Sumoto, Hyogo', 'ja': u('\u6d32\u672c')}, '817993':{'en': 'Sumoto, Hyogo', 'ja': u('\u6d32\u672c')}, '8183760':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '8183761':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '8183762':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '8183763':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '8183764':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '8183765':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '8183766':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u95a2')}, '8183767':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u95a2')}, '8183768':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u95a2')}, '8183769':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '812247':{'en': 'Ogawara, Miyagi', 'ja': u('\u5927\u6cb3\u539f')}, '812246':{'en': 'Ogawara, Miyagi', 'ja': u('\u5927\u6cb3\u539f')}, '772832':{'en': 'Zhansugurov', 'ru': u('\u0410\u043a\u0441\u0443\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772831':{'en': 'Zharkent', 'ru': u('\u041f\u0430\u043d\u0444\u0438\u043b\u043e\u0432\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861305659':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861305658':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861305655':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '772837':{'en': 'Kabanbai', 'ru': u('\u0410\u043b\u0430\u043a\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861305657':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861305656':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861305651':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861305650':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861305653':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '772836':{'en': 'Karabulak', 'ru': u('\u0415\u0441\u043a\u0435\u043b\u044c\u0434\u0438\u043d\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772835':{'en': 'Tekeli', 'ru': u('\u0422\u0435\u043a\u0435\u043b\u0438')}, '772834':{'en': 'Ushtobe', 'ru': u('\u041a\u0430\u0440\u0430\u0442\u0430\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861301978':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861301979':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861301974':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861301975':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861301976':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861301977':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861301970':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861301971':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861301972':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861301973':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '819828':{'en': 'Takachiho, Miyazaki', 'ja': u('\u9ad8\u5343\u7a42')}, '819826':{'en': 'Hyuga, Miyazaki', 'ja': u('\u65e5\u5411')}, '819827':{'en': 'Takachiho, Miyazaki', 'ja': u('\u9ad8\u5343\u7a42')}, '819824':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '819825':{'en': 'Hyuga, Miyazaki', 'ja': u('\u65e5\u5411')}, '819822':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '819823':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '8199338':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199339':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '861305070':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '8199334':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199335':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '771845':{'en': 'Pavlodar area'}, '8199337':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199330':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199331':{'en': 'Kagoshima, Kagoshima', 'ja': u('\u9e7f\u5150\u5cf6')}, '771841':{'en': 'Aktogai'}, '771840':{'en': 'Bayanaul'}, '861309473':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861305076':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861300599':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861300598':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '86130665':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130662':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '86130663':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '77274023':{'ru': u('\u0416\u0430\u043b\u0430\u043d\u0430\u0448, \u0420\u0430\u0439\u044b\u043c\u0431\u0435\u043a\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '86130661':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861300591':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861300590':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861300593':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861300592':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861300595':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861300594':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861300597':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861300596':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '86130411':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861308368':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861308369':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86130410':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861308362':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861308363':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861308360':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861308361':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861308366':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861308367':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861308364':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861308365':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '55883553':{'en': 'Milagres - CE', 'pt': 'Milagres - CE'}, '55883552':{'en': 'Mauriti - CE', 'pt': 'Mauriti - CE'}, '55883555':{'en': 'Jardim - CE', 'pt': 'Jardim - CE'}, '55883554':{'en': 'Barro - CE', 'pt': 'Barro - CE'}, '55883557':{'en': 'Porteiras - CE', 'pt': 'Porteiras - CE'}, '55883556':{'en': 'Catarina - CE', 'pt': 'Catarina - CE'}, '55883559':{'en': 'Penaforte - CE', 'pt': 'Penaforte - CE'}, '55883558':{'en': 'Abaiara - CE', 'pt': 'Abaiara - CE'}, '6231':{'en': 'Surabaya', 'id': 'Surabaya'}, '86130414':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861302441':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861302440':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861302443':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861302442':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861302445':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861302444':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861302447':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861302446':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861302449':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861302448':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861302995':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861302994':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861302993':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861302992':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861302991':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861302990':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861300629':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861300628':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861300627':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '57687':{'en': 'Manizales', 'es': 'Manizales'}, '861300625':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861300624':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861300623':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861300622':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861300621':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300620':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861303144':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861303030':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '86130841':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861308163':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861303820':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861303821':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861303822':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861303823':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861303824':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861303825':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861303826':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861303827':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861303828':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861303829':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861304298':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '813':{'en': 'Tokyo', 'ja': u('\u6771\u4eac')}, '84711':{'en': 'Hau Giang province', 'vi': u('H\u1eadu Giang')}, '84710':{'en': 'Can Tho', 'vi': u('TP C\u1ea7n Th\u01a1')}, '816':{'en': 'Osaka, Osaka', 'ja': u('\u5927\u962a')}, '861308164':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861308779':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861308778':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861308775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861308774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861308777':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861308776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861308771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '55963084':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861308773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861308772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '68634':{'en': 'Marakei'}, '68635':{'en': 'Butaritari'}, '68636':{'en': 'Makin'}, '68637':{'en': 'Banaba'}, '68630':{'en': 'Tarawa'}, '68631':{'en': 'Abaokoro'}, '68632':{'en': 'Abaokoro'}, '68633':{'en': 'Abaiang'}, '861308165':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '68638':{'en': 'Maiana'}, '68639':{'en': 'Kuria'}, '811754':{'en': 'Mutsu, Aomori', 'ja': u('\u3080\u3064')}, '811756':{'en': 'Noheji, Aomori', 'ja': u('\u91ce\u8fba\u5730')}, '811757':{'en': 'Noheji, Aomori', 'ja': u('\u91ce\u8fba\u5730')}, '811752':{'en': 'Mutsu, Aomori', 'ja': u('\u3080\u3064')}, '811753':{'en': 'Mutsu, Aomori', 'ja': u('\u3080\u3064')}, '861303819':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861308167':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861303818':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861304269':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861304268':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '55933067':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '771542':{'en': 'Kishkenekol'}, '771543':{'en': 'Yavlenka'}, '771541':{'en': 'Mamlutka'}, '771546':{'en': 'Talshik'}, '771544':{'en': 'Presnovka'}, '5671':{'en': 'Talca, Maule', 'es': 'Talca, Maule'}, '5672':{'en': 'Rancagua, O\'Higgins', 'es': 'Rancagua, O\'Higgins'}, '5673':{'en': 'Linares, Maule', 'es': 'Linares, Maule'}, '5675':{'en': u('Curic\u00f3, Maule'), 'es': u('Curic\u00f3, Maule')}, '861303542':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861303541':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861303540':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861304618':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '55963312':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861303547':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '55913411':{'en': 'Capanema - PA', 'pt': 'Capanema - PA'}, '55963314':{'en': 'Santana - AP', 'pt': 'Santana - AP'}, '861303546':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861304616':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861303545':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861304617':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861303039':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861303544':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861303934':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861304615':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861304612':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861304613':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861304610':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861304965':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861303038':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861308726':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861304611':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '55893558':{'en': u('S\u00e3o Francisco do Piau\u00ed - PI'), 'pt': u('S\u00e3o Francisco do Piau\u00ed - PI')}, '55893559':{'en': 'Itaueira - PI', 'pt': 'Itaueira - PI'}, '55893554':{'en': u('S\u00e3o Jos\u00e9 do Peixe - PI'), 'pt': u('S\u00e3o Jos\u00e9 do Peixe - PI')}, '55893555':{'en': 'Arraial - PI', 'pt': 'Arraial - PI'}, '55893557':{'en': u('Nazar\u00e9 do Piau\u00ed - PI'), 'pt': u('Nazar\u00e9 do Piau\u00ed - PI')}, '55893550':{'en': 'Jerumenha - PI', 'pt': 'Jerumenha - PI'}, '55893552':{'en': 'Guadalupe - PI', 'pt': 'Guadalupe - PI'}, '55893553':{'en': u('J\u00falio Borges - PI'), 'pt': u('J\u00falio Borges - PI')}, '861304963':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861301651':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861301650':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861301653':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861301652':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861301655':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861301654':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '55913656':{'en': u('Santa B\u00e1rbara do Par\u00e1 - PA'), 'pt': u('Santa B\u00e1rbara do Par\u00e1 - PA')}, '861301657':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861301656':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '55913658':{'en': 'Santa Cruz do Arari - PA', 'pt': 'Santa Cruz do Arari - PA'}, '861309393':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861304036':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861303734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861308177':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861308176':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861308175':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861308174':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861308173':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861308172':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '55913739':{'en': 'Paragominas - PA', 'pt': 'Paragominas - PA'}, '55913738':{'en': 'Km 12 - PA', 'pt': 'Km 12 - PA'}, '55913734':{'en': 'Quatro Bocas - PA', 'pt': 'Quatro Bocas - PA'}, '55913733':{'en': 'Murucupi - PA', 'pt': 'Murucupi - PA'}, '55913732':{'en': u('Acar\u00e1 - PA'), 'pt': u('Acar\u00e1 - PA')}, '55913731':{'en': 'Vigia - PA', 'pt': 'Vigia - PA'}, '55883303':{'en': 'Aracati - CE', 'pt': 'Aracati - CE'}, '861309567':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '55993602':{'en': 'Nova Colinas - MA', 'pt': 'Nova Colinas - MA'}, '55993601':{'en': u('Feira Nova do Maranh\u00e3o - MA'), 'pt': u('Feira Nova do Maranh\u00e3o - MA')}, '861309564':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861309563':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861309562':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861309561':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '55993604':{'en': u('S\u00e3o Pedro dos Crentes - MA'), 'pt': u('S\u00e3o Pedro dos Crentes - MA')}, '818692':{'en': 'Oku, Okayama', 'ja': u('\u9091\u4e45')}, '818693':{'en': 'Oku, Okayama', 'ja': u('\u9091\u4e45')}, '818690':{'en': 'Okayama, Okayama', 'ja': u('\u5ca1\u5c71')}, '861304031':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '818696':{'en': 'Bizen, Okayama', 'ja': u('\u5099\u524d')}, '818697':{'en': 'Bizen, Okayama', 'ja': u('\u5099\u524d')}, '818694':{'en': 'Okayama, Okayama', 'ja': u('\u5ca1\u5c71')}, '818695':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '861301505':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301504':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301507':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861301506':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301501':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301500':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301503':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '62431':{'en': 'Manado/Tomohon/Tondano', 'id': 'Manado/Tomohon/Tondano'}, '64630':{'en': 'Featherston'}, '81177':{'en': 'Aomori, Aomori', 'ja': u('\u9752\u68ee')}, '64632':{'en': 'Palmerston North/Marton'}, '64634':{'en': 'Wanganui'}, '861301508':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '64636':{'en': 'Levin'}, '64637':{'en': 'Masterton/Dannevirke/Pahiatua'}, '861308722':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861308289':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861308288':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861308723':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861308285':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '62434':{'en': 'Kotamobagu', 'id': 'Kotamobagu'}, '861308287':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861308286':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861308281':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861308280':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861308283':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '62435':{'en': 'Gorontalo', 'id': 'Gorontalo'}, '861308721':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861304599':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861304598':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861304595':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861304594':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861304597':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861304039':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861304591':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304590':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861304593':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861304592':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '64490':{'en': 'Paraparaumu'}, '861307044':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '64378':{'en': 'Westport'}, '861308725':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '64948':{'en': 'Auckland'}, '64942':{'en': 'Helensville/Warkworth/Hibiscus Coast/Great Barrier Island'}, '64943':{'en': 'Whangarei/Maungaturoto'}, '64940':{'en': 'Kaikohe/Kaitaia/Kawakawa'}, '64941':{'en': 'Auckland'}, '64947':{'en': 'Auckland'}, '64944':{'en': 'Auckland'}, '861308729':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861309721':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861309399':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '81925':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '64376':{'en': 'Greymouth'}, '861303459':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861303458':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861303451':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861303450':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861303453':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861303452':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861303455':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861303454':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861303457':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861303456':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '62338':{'en': 'Situbondo', 'id': 'Situbondo'}, '62333':{'en': 'Banyuwangi', 'id': 'Banyuwangi'}, '62332':{'en': 'Bondowoso', 'id': 'Bondowoso'}, '62331':{'en': 'Jember', 'id': 'Jember'}, '861303733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '62336':{'en': 'Jember', 'id': 'Jember'}, '62335':{'en': 'Probolinggo', 'id': 'Probolinggo'}, '62334':{'en': 'Lumajang', 'id': 'Lumajang'}, '55993665':{'en': 'Capinzal do Norte - MA', 'pt': 'Capinzal do Norte - MA'}, '55923877':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302858':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861302859':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861302856':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861302857':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861302854':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861302855':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861302852':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861302853':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861302850':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '861302851':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '55973491':{'en': 'Carauari - AM', 'pt': 'Carauari - AM'}, '861308387':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '86130051':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130050':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '771043':{'en': 'Zhairem'}, '86130054':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '771040':{'en': 'Zhairem (GOK)'}, '86130058':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '55993668':{'en': 'Timbiras - MA', 'pt': 'Timbiras - MA'}, '861303073':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861304630':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861302278':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861302279':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861302272':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861302273':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861302270':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861302271':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861302276':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861302277':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861302274':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861302275':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '55943222':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '861304633':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '814998':{'en': 'Ogasawara, Tokyo', 'ja': u('\u5c0f\u7b20\u539f')}, '7498':{'en': 'Moscow'}, '7499':{'en': 'Moscow'}, '7492':{'en': 'Vladimir'}, '814992':{'en': '', 'ja': u('\u4f0a\u8c46\u5927\u5cf6')}, '7496':{'en': 'Moscow'}, '814994':{'en': '', 'ja': u('\u4e09\u5b85')}, '7494':{'en': 'Kostroma'}, '814996':{'en': '', 'ja': u('\u516b\u4e08\u5cf6')}, '861308906':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308907':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308904':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308905':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308902':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308903':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308900':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308901':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308908':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308909':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861301778':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861301779':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861301776':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861301777':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861301774':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861301775':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861301772':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861301773':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861301770':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '77242':{'en': 'Kyzylorda', 'ru': u('\u041a\u044b\u0437\u044b\u043b\u043e\u0440\u0434\u0430')}, '812698':{'en': 'Iiyama, Nagano', 'ja': u('\u98ef\u5c71')}, '812694':{'en': 'Nakano, Nagano', 'ja': u('\u4e2d\u91ce')}, '812695':{'en': 'Nakano, Nagano', 'ja': u('\u4e2d\u91ce')}, '812696':{'en': 'Iiyama, Nagano', 'ja': u('\u98ef\u5c71')}, '812697':{'en': 'Iiyama, Nagano', 'ja': u('\u98ef\u5c71')}, '812692':{'en': 'Nakano, Nagano', 'ja': u('\u4e2d\u91ce')}, '812693':{'en': 'Nakano, Nagano', 'ja': u('\u4e2d\u91ce')}, '55983221':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983222':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983223':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983224':{'en': u('S\u00e3o Jos\u00e9 de Ribamar - MA'), 'pt': u('S\u00e3o Jos\u00e9 de Ribamar - MA')}, '81549':{'en': 'Shizuoka, Shizuoka', 'ja': u('\u9759\u5ca1')}, '81548':{'en': 'Haibara, Shizuoka', 'ja': u('\u699b\u539f')}, '81547':{'en': 'Shimada, Shizuoka', 'ja': u('\u5cf6\u7530')}, '81546':{'en': 'Shizuoka, Shizuoka', 'ja': u('\u9759\u5ca1')}, '81545':{'en': 'Fuji, Shizuoka', 'ja': u('\u5bcc\u58eb')}, '81544':{'en': 'Fujinomiya, Shizuoka', 'ja': u('\u5bcc\u58eb\u5bae')}, '81543':{'en': 'Shizuoka, Shizuoka', 'ja': u('\u9759\u5ca1')}, '81542':{'en': 'Shizuoka, Shizuoka', 'ja': u('\u9759\u5ca1')}, '861308009':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861304638':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '64796':{'en': 'Hamilton'}, '861301198':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861301199':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '64793':{'en': 'Tauranga'}, '64792':{'en': 'Rotorua/Whakatane/Tauranga'}, '64790':{'en': 'Taupo'}, '861301192':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301193':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861301190':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301191':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301196':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861301197':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861301194':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861301195':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861304639':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '55933793':{'en': 'Porto de Moz - PA', 'pt': 'Porto de Moz - PA'}, '861300359':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861300821':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861300820':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861300823':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861300822':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861300825':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861300824':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861300827':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861300826':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861300829':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861300828':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '574911':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '861301992':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861301993':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861301990':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861301991':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861301996':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861301997':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861301994':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861301995':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '55933533':{'en': 'Monte Alegre - PA', 'pt': 'Monte Alegre - PA'}, '55933532':{'en': u('Uruar\u00e1 - PA'), 'pt': u('Uruar\u00e1 - PA')}, '55933531':{'en': u('Medicil\u00e2ndia - PA'), 'pt': u('Medicil\u00e2ndia - PA')}, '861301999':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '55933537':{'en': u('Muju\u00ed dos Campos - PA'), 'pt': u('Muju\u00ed dos Campos - PA')}, '55933536':{'en': 'Juruti - PA', 'pt': 'Juruti - PA'}, '55933534':{'en': 'Prainha - PA', 'pt': 'Prainha - PA'}, '819808':{'en': 'Yaeyama District, Okinawa', 'ja': u('\u516b\u91cd\u5c71')}, '819809':{'en': 'Yaeyama District, Okinawa', 'ja': u('\u516b\u91cd\u5c71')}, '819802':{'en': 'Minamidaito, Okinawa', 'ja': u('\u5357\u5927\u6771')}, '819803':{'en': 'Nago, Okinawa', 'ja': u('\u540d\u8b77')}, '819804':{'en': 'Nago, Okinawa', 'ja': u('\u540d\u8b77')}, '819805':{'en': 'Nago, Okinawa', 'ja': u('\u540d\u8b77')}, '819806':{'en': '', 'ja': u('\u6c96\u7e04\u5bae\u53e4')}, '819807':{'en': '', 'ja': u('\u6c96\u7e04\u5bae\u53e4')}, '55883629':{'en': 'Novo Oriente - CE', 'pt': 'Novo Oriente - CE'}, '861301954':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '86130608':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130609':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130606':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130600':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86130602':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861303020':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '55983014':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861303022':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '55983012':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861308340':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308341':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308342':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303023':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861308344':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308345':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308346':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861308347':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861308348':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303024':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '55883626':{'en': u('S\u00e3o Benedito - CE'), 'pt': u('S\u00e3o Benedito - CE')}, '55883537':{'en': 'Salitre - CE', 'pt': 'Salitre - CE'}, '55883536':{'en': 'Lavras da Mangabeira - CE', 'pt': 'Lavras da Mangabeira - CE'}, '55883535':{'en': u('Assar\u00e9 - CE'), 'pt': u('Assar\u00e9 - CE')}, '861303737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '55883533':{'en': 'Campos Sales - CE', 'pt': 'Campos Sales - CE'}, '55883532':{'en': 'Barbalha - CE', 'pt': 'Barbalha - CE'}, '55883531':{'en': 'Brejo Santo - CE', 'pt': 'Brejo Santo - CE'}, '55883530':{'en': 'Araripe - CE', 'pt': 'Araripe - CE'}, '861309358':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861309359':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861303027':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861303738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861303739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '55883539':{'en': 'Baixio - CE', 'pt': 'Baixio - CE'}, '55883538':{'en': 'Potengi - CE', 'pt': 'Potengi - CE'}, '861302467':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861302466':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861302465':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861302464':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861302463':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861302462':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861302461':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861302460':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86130937':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861302469':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861302468':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861300645':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861300644':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861300647':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861300646':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861300641':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861300640':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861300643':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861300642':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861300649':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861300648':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861303598':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861303599':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861303590':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861303591':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861303015':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861303593':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '861303594':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861303595':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861303596':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861303597':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861303846':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861303847':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861303844':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861300307':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861300753':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861303843':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861303840':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861303841':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861303848':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861303849':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861303014':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '55953542':{'en': u('Mucaja\u00ed - RR'), 'pt': u('Mucaja\u00ed - RR')}, '55953543':{'en': 'Iracema - RR', 'pt': 'Iracema - RR'}, '861307033':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861307032':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861300752':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861307030':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861307037':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861307036':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861307035':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861307034':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861307039':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861307038':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861303200':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861303201':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861303202':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861303203':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861303204':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861303205':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861304685':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '55873789':{'en': u('Brej\u00e3o - PE'), 'pt': u('Brej\u00e3o - PE')}, '55873788':{'en': 'Angelim - PE', 'pt': 'Angelim - PE'}, '861303206':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861304684':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '55873783':{'en': u('Caet\u00e9s - PE'), 'pt': u('Caet\u00e9s - PE')}, '55873782':{'en': u('Salo\u00e1 - PE'), 'pt': u('Salo\u00e1 - PE')}, '55873781':{'en': 'Canhotinho - PE', 'pt': 'Canhotinho - PE'}, '861303207':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '55873787':{'en': 'Paranatama - PE', 'pt': 'Paranatama - PE'}, '55873786':{'en': 'Iati - PE', 'pt': 'Iati - PE'}, '55873785':{'en': 'Lagoa do Ouro - PE', 'pt': 'Lagoa do Ouro - PE'}, '55873784':{'en': u('S\u00e3o Jo\u00e3o - PE'), 'pt': u('S\u00e3o Jo\u00e3o - PE')}, '861304686':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861304681':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861304680':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '819976':{'en': 'Naze, Kagoshima', 'ja': u('\u540d\u702c')}, '861304683':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861304682':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861302649':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861302648':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861302643':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861302642':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861302641':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861302640':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861302647':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861302646':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861302645':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861302644':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '5658':{'en': 'Arica, Arica and Parinacota', 'es': 'Arica, Arica y Parinacota'}, '5657':{'en': u('Iquique, Tarapac\u00e1'), 'es': u('Iquique, Tarapac\u00e1')}, '5655':{'en': 'Antofagasta', 'es': 'Antofagasta'}, '5652':{'en': u('Copiap\u00f3, Atacama'), 'es': u('Copiap\u00f3, Atacama')}, '5653':{'en': 'Ovalle, Coquimbo', 'es': 'Ovalle, Coquimbo'}, '5651':{'en': 'La Serena, Coquimbo', 'es': 'La Serena, Coquimbo'}, '861306342':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861306343':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861306340':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861306341':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861306346':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861306347':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861306344':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861306345':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861306348':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861306349':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861306648':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301873':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '592258':{'en': 'Planters Hall/Mortice'}, '861309542':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '55893572':{'en': u('Parnagu\u00e1 - PI'), 'pt': u('Parnagu\u00e1 - PI')}, '55893573':{'en': 'Corrente - PI', 'pt': 'Corrente - PI'}, '819785':{'en': 'Bungotakada, Oita', 'ja': u('\u8c4a\u5f8c\u9ad8\u7530')}, '819784':{'en': 'Bungotakada, Oita', 'ja': u('\u8c4a\u5f8c\u9ad8\u7530')}, '55893576':{'en': u('Cristal\u00e2ndia do Piau\u00ed - PI'), 'pt': u('Cristal\u00e2ndia do Piau\u00ed - PI')}, '55893577':{'en': u('Monte Alegre do Piau\u00ed - PI'), 'pt': u('Monte Alegre do Piau\u00ed - PI')}, '55893574':{'en': u('Curimat\u00e1 - PI'), 'pt': u('Curimat\u00e1 - PI')}, '55893575':{'en': 'Avelino Lopes - PI', 'pt': 'Avelino Lopes - PI'}, '861301879':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '55893578':{'en': u('Gilbu\u00e9s - PI'), 'pt': u('Gilbu\u00e9s - PI')}, '819789':{'en': 'Kitsuki, Oita', 'ja': u('\u6775\u7bc9')}, '819788':{'en': 'Kunisaki, Oita', 'ja': u('\u56fd\u6771')}, '861305488':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861304920':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861304921':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861304922':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861304923':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861304924':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861304925':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861304926':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861304927':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861304928':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861304929':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861304713':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861301695':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301694':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301697':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301696':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301691':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861301690':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861301693':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301692':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '55864009':{'en': 'Teresina - PI', 'pt': 'Teresina - PI'}, '861301699':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301698':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301349':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861301348':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861308119':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861308118':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861308115':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861308114':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861308117':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861308116':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '55873893':{'en': 'Itacuruba - PE', 'pt': 'Itacuruba - PE'}, '55873892':{'en': 'Terra Nova - PE', 'pt': 'Terra Nova - PE'}, '55873891':{'en': u('Moreil\u00e2ndia - PE'), 'pt': u('Moreil\u00e2ndia - PE')}, '861308112':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '55913711':{'en': 'Castanhal - PA', 'pt': 'Castanhal - PA'}, '861304828':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '55913712':{'en': 'Castanhal - PA', 'pt': 'Castanhal - PA'}, '55993621':{'en': 'Bacabal - MA', 'pt': 'Bacabal - MA'}, '861302085':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '55993623':{'en': 'Bom Lugar - MA', 'pt': 'Bom Lugar - MA'}, '55993622':{'en': 'Bacabal - MA', 'pt': 'Bacabal - MA'}, '861304821':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861304820':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '55993627':{'en': 'Bacabal - MA', 'pt': 'Bacabal - MA'}, '55993626':{'en': 'Pedreiras - MA', 'pt': 'Pedreiras - MA'}, '861301529':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861301528':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861301523':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861301522':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301521':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301520':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301527':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861301526':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301525':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301524':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '81488':{'en': 'Urawa, Saitama', 'ja': u('\u6d66\u548c')}, '81489':{'en': 'Soka, Saitama', 'ja': u('\u8349\u52a0')}, '81482':{'en': 'Kawaguchi, Saitama', 'ja': u('\u5ddd\u53e3')}, '81480':{'en': 'Kuki, Saitama', 'ja': u('\u4e45\u559c')}, '81486':{'en': 'Urawa, Saitama', 'ja': u('\u6d66\u548c')}, '81487':{'en': 'Urawa, Saitama', 'ja': u('\u6d66\u548c')}, '81484':{'en': 'Kawaguchi, Saitama', 'ja': u('\u5ddd\u53e3')}, '81485':{'en': 'Kumagaya, Saitama', 'ja': u('\u718a\u8c37')}, '861301732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861301733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861301730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861301047':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '81734':{'en': 'Wakayama, Wakayama', 'ja': u('\u548c\u6b4c\u5c71')}, '861301734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '81737':{'en': 'Yuasa, Wakayama', 'ja': u('\u6e6f\u6d45')}, '81738':{'en': 'Gobo, Wakayama', 'ja': u('\u5fa1\u574a')}, '81739':{'en': 'Tanabe, Wakayama', 'ja': u('\u7530\u8fba')}, '861301043':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '57232':{'en': 'Cali', 'es': 'Cali'}, '57233':{'en': 'Cali', 'es': 'Cali'}, '57230':{'en': 'Cali', 'es': 'Cali'}, '57231':{'en': 'Cali', 'es': 'Cali'}, '57236':{'en': 'Cali', 'es': 'Cali'}, '57234':{'en': 'Cali', 'es': 'Cali'}, '57235':{'en': 'Cali', 'es': 'Cali'}, '861300340':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300341':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300342':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300343':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861300344':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861300345':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861300346':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861300347':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861303699':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861301739':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861303693':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861303692':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861303691':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861303690':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861303697':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861303696':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861303695':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861303694':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861308565':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304405':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861300698':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '62351':{'en': 'Madiun/Magetan/Ngawi', 'id': 'Madiun/Magetan/Ngawi'}, '62353':{'en': 'Bojonegoro', 'id': 'Bojonegoro'}, '62352':{'en': 'Ponorogo', 'id': 'Ponorogo'}, '62355':{'en': 'Tulungagung/Trenggalek', 'id': 'Tulungagung/Trenggalek'}, '62354':{'en': 'Kediri', 'id': 'Kediri'}, '62357':{'en': 'Pacitan', 'id': 'Pacitan'}, '62356':{'en': 'Rembang/Tuban', 'id': 'Rembang/Tuban'}, '861303477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '62358':{'en': 'Nganjuk', 'id': 'Nganjuk'}, '861303475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861303474':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861303473':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861303472':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861303471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861303470':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861302874':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861302875':{'en': 'Jiuquan, Gansu', 'zh': u('\u7518\u8083\u7701\u9152\u6cc9\u5e02')}, '861302876':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861302877':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861302870':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861302871':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861302872':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861302873':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861302878':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861302879':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86130788':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '84500':{'en': 'Dak Lak province', 'vi': u('\u0110\u0103k L\u0103k')}, '84501':{'en': 'Dak Nong province', 'vi': u('\u0110\u0103k N\u00f4ng')}, '55923584':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923582':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923581':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '86130037':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86130036':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86130786':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '86130033':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86130032':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130031':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '571827':{'en': 'Mosquera', 'es': 'Mosquera'}, '571826':{'en': 'Funza', 'es': 'Funza'}, '571822':{'en': 'Funza', 'es': 'Funza'}, '571821':{'en': 'Funza', 'es': 'Funza'}, '571820':{'en': 'Madrid', 'es': 'Madrid'}, '55913087':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55923328':{'en': 'Rio Preto da Eva - AM', 'pt': 'Rio Preto da Eva - AM'}, '55913082':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55923323':{'en': 'Pitinga - AM', 'pt': 'Pitinga - AM'}, '55913088':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55923324':{'en': 'Presidente Figueiredo - AM', 'pt': 'Presidente Figueiredo - AM'}, '861305556':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861308928':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861308929':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861308924':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861308925':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861308926':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861308927':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861308920':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861308921':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861308922':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861308923':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861305557':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861301754':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861301755':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861301756':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861301757':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861301750':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861301751':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861301752':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861301753':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '77262':{'en': 'Taraz', 'ru': u('\u0422\u0430\u0440\u0430\u0437')}, '861306301':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861301758':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861301759':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861309546':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861305555':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861304619':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '8186998':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '8186999':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '8186992':{'en': 'Bizen, Okayama', 'ja': u('\u5099\u524d')}, '8186993':{'en': 'Bizen, Okayama', 'ja': u('\u5099\u524d')}, '8186994':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '8186995':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '8186996':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '8186997':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '861306159':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861306158':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861306157':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861306156':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861306155':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861306154':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861306153':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861306152':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861306151':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861306150':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '592444':{'en': 'Linden/Canvas City/Wisroc'}, '592442':{'en': u('Christianburg/Amelia\u2019s Ward')}, '592440':{'en': 'Kwakwani'}, '592441':{'en': 'Ituni'}, '861304614':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861300928':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861300806':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861300805':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861300804':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861300803':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861300802':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861300801':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861300800':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861300809':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861300808':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '55933512':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '55933515':{'en': 'Altamira - PA', 'pt': 'Altamira - PA'}, '55933514':{'en': 'Brasil Novo - PA', 'pt': 'Brasil Novo - PA'}, '55933517':{'en': u('Creporiz\u00e3o - PA'), 'pt': u('Creporiz\u00e3o - PA')}, '81833':{'en': 'Kudamatsu, Yamaguchi', 'ja': u('\u4e0b\u677e')}, '55933518':{'en': 'Itaituba - PA', 'pt': 'Itaituba - PA'}, '81835':{'en': 'Hofu, Yamaguchi', 'ja': u('\u9632\u5e9c')}, '81834':{'en': 'Tokuyama, Yamaguchi', 'ja': u('\u5fb3\u5c71')}, '64334':{'en': 'Christchurch/Rolleston'}, '55873939':{'en': 'Flores - PE', 'pt': 'Flores - PE'}, '86130623':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130620':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '86130626':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130627':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130625':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86130628':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861308326':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861308327':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861308324':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861308325':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '55883519':{'en': 'Granjeiro - CE', 'pt': 'Granjeiro - CE'}, '55883518':{'en': u('Solon\u00f3pole - CE'), 'pt': u('Solon\u00f3pole - CE')}, '861308320':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861308321':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '55883515':{'en': 'Pedra Branca - CE', 'pt': 'Pedra Branca - CE'}, '55883514':{'en': u('Cari\u00fas - CE'), 'pt': u('Cari\u00fas - CE')}, '55883517':{'en': u('Juc\u00e1s - CE'), 'pt': u('Juc\u00e1s - CE')}, '55883516':{'en': 'Piquet Carneiro - CE', 'pt': 'Piquet Carneiro - CE'}, '55883511':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '55883510':{'en': 'Iguatu - CE', 'pt': 'Iguatu - CE'}, '55883513':{'en': 'Crato - CE', 'pt': 'Crato - CE'}, '55883512':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '861309336':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861309337':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861309334':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861309335':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861309332':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861309333':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861309330':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861309331':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861304628':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861309338':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861309339':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '55943435':{'en': u('S\u00e3o F\u00e9lix do Xingu - PA'), 'pt': u('S\u00e3o F\u00e9lix do Xingu - PA')}, '55943434':{'en': u('Ouril\u00e2ndia do Norte - PA'), 'pt': u('Ouril\u00e2ndia do Norte - PA')}, '86130484':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '55943431':{'en': 'Santana do Araguaia - PA', 'pt': 'Santana do Araguaia - PA'}, '86130483':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '55943433':{'en': u('Tucum\u00e3 - PA'), 'pt': u('Tucum\u00e3 - PA')}, '55943432':{'en': 'Floresta do Araguaia - PA', 'pt': 'Floresta do Araguaia - PA'}, '55973353':{'en': u('Codaj\u00e1s - AM'), 'pt': u('Codaj\u00e1s - AM')}, '55973352':{'en': 'Anori - AM', 'pt': 'Anori - AM'}, '55973351':{'en': 'Beruri - AM', 'pt': 'Beruri - AM'}, '55973356':{'en': u('Anam\u00e3 - AM'), 'pt': u('Anam\u00e3 - AM')}, '86130488':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130489':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861302922':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861303868':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861303869':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861302923':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861303864':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861303865':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861303866':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861303867':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861303860':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861302920':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861303862':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861303863':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861302921':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861302926':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861302927':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861305558':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861302924':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861302925':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '5718249':{'en': 'Zipacon', 'es': 'Zipacon'}, '861309100':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '5718240':{'en': 'El Rosal', 'es': 'El Rosal'}, '5718241':{'en': 'El Rosal', 'es': 'El Rosal'}, '5718243':{'en': 'Bojaca', 'es': 'Bojaca'}, '5718245':{'en': 'Subachoque', 'es': 'Subachoque'}, '5718246':{'en': 'Puente Piedra', 'es': 'Puente Piedra'}, '5718247':{'en': 'La Punta', 'es': 'La Punta'}, '861305559':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861309102':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861309105':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861304548':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861309104':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861302409':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861302408':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861302405':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861302404':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861302407':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861302406':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861302401':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861302400':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861302403':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861302402':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861302748':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861303318':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861303319':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861303312':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861303313':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861303310':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861303311':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861303316':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861303317':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861303314':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861303315':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861308228':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861301559':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '55923133':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923131':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '86130819':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861301555':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '815765':{'en': 'Gero, Gifu', 'ja': u('\u4e0b\u5442')}, '815764':{'en': 'Gero, Gifu', 'ja': u('\u4e0b\u5442')}, '815767':{'en': 'Gero, Gifu', 'ja': u('\u4e0b\u5442')}, '815766':{'en': 'Gero, Gifu', 'ja': u('\u4e0b\u5442')}, '815763':{'en': 'Gero, Gifu', 'ja': u('\u4e0b\u5442')}, '815762':{'en': 'Gero, Gifu', 'ja': u('\u4e0b\u5442')}, '815769':{'en': 'Shokawa, Gifu', 'ja': u('\u8358\u5ddd')}, '815768':{'en': 'Gero, Gifu', 'ja': u('\u4e0b\u5442')}, '861304542':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861305419':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861305418':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861305417':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861305416':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861304543':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861309323':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861308472':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861305414':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861305413':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861305412':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '55913692':{'en': u('Gurup\u00e1 - PA'), 'pt': u('Gurup\u00e1 - PA')}, '55913694':{'en': 'Anapu - PA', 'pt': 'Anapu - PA'}, '861305411':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861304540':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861309361':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861301956':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301329':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861301328':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301957':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861301325':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301324':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301327':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861301326':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861301321':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861301320':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861301323':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301322':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861301955':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '55864020':{'en': 'Teresina - PI', 'pt': 'Teresina - PI'}, '861301952':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861301953':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861308133':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861308132':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861308131':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861308130':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861308137':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861308136':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861308135':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861308134':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861308139':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861308138':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861309523':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861309522':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861309521':{'en': 'Dehong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5fb7\u5b8f\u50a3\u65cf\u666f\u9887\u65cf\u81ea\u6cbb\u5dde')}, '861309520':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861309527':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861309526':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '55993649':{'en': u('Peritor\u00f3 - MA'), 'pt': u('Peritor\u00f3 - MA')}, '55993648':{'en': 'Bernardo do Mearim - MA', 'pt': 'Bernardo do Mearim - MA'}, '818656':{'en': 'Kasaoka, Okayama', 'ja': u('\u7b20\u5ca1')}, '818657':{'en': 'Kasaoka, Okayama', 'ja': u('\u7b20\u5ca1')}, '818654':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '55993644':{'en': 'Lago da Pedra - MA', 'pt': 'Lago da Pedra - MA'}, '818652':{'en': 'Kurashiki, Okayama', 'ja': u('\u5009\u6577')}, '55993642':{'en': 'Pedreiras - MA', 'pt': 'Pedreiras - MA'}, '55993641':{'en': u('Coroat\u00e1 - MA'), 'pt': u('Coroat\u00e1 - MA')}, '81134':{'en': 'Otaru, Hokkaido', 'ja': u('\u5c0f\u6a3d')}, '81138':{'en': 'Hakodate, Hokkaido', 'ja': u('\u51fd\u9928')}, '861304547':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861304096':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861304544':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861304090':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '55912122':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '861304092':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861304093':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861308225':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861304545':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861303671':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '811457':{'en': '', 'ja': u('\u9580\u5225\u5bcc\u5ddd')}, '861303673':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861303672':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861303675':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861303674':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861303677':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861303676':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861303679':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861303678':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '55923365':{'en': u('Novo Air\u00e3o - AM'), 'pt': u('Novo Air\u00e3o - AM')}, '592275':{'en': 'Met-en-Meer-Zorg'}, '592274':{'en': 'Vigilance'}, '592277':{'en': 'Zeeburg/Uitvlugt'}, '592276':{'en': 'Anna Catherina/ Cornelia Ida/Hague/Fellowship'}, '592271':{'en': 'Canal No. 1/Canal No. 2'}, '592270':{'en': 'Melanie/Non Pariel/Enmore'}, '861301819':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861301818':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861301817':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861301816':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861301815':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861301814':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '592279':{'en': 'Good Hope/Stanleytown'}, '861301812':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861301811':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861301810':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861300494':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861300495':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861300496':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861300497':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861300490':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861300491':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861300492':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861300493':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861305318':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861305319':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861300498':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861300499':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861303415':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861303414':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861303417':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861303416':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861303411':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '81989':{'en': 'Naha, Okinawa', 'ja': u('\u90a3\u8987')}, '861303413':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861303412':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '62376':{'en': 'Selong', 'id': 'Selong'}, '62374':{'en': 'Bima', 'id': 'Bima'}, '62373':{'en': 'Dompu', 'id': 'Dompu'}, '62372':{'en': 'Alas/Taliwang', 'id': 'Alas/Taliwang'}, '62371':{'en': 'Sumbawa', 'id': 'Sumbawa'}, '62370':{'en': 'Mataram/Praya', 'id': 'Mataram/Praya'}, '55983462':{'en': 'Cantanhede - MA', 'pt': 'Cantanhede - MA'}, '55983463':{'en': 'Itapecuru Mirim - MA', 'pt': 'Itapecuru Mirim - MA'}, '55983461':{'en': 'Vargem Grande - MA', 'pt': 'Vargem Grande - MA'}, '55983466':{'en': 'Pirapemas - MA', 'pt': 'Pirapemas - MA'}, '55983464':{'en': 'Miranda do Norte - MA', 'pt': 'Miranda do Norte - MA'}, '55983465':{'en': 'Nina Rodrigues - MA', 'pt': 'Nina Rodrigues - MA'}, '55983468':{'en': u('S\u00e3o Benedito do Rio Preto - MA'), 'pt': u('S\u00e3o Benedito do Rio Preto - MA')}, '55983469':{'en': 'Urbano Santos - MA', 'pt': 'Urbano Santos - MA'}, '817459':{'en': '', 'ja': u('\u5927\u548c\u699b\u539f')}, '817458':{'en': '', 'ja': u('\u5927\u548c\u699b\u539f')}, '817453':{'en': 'Yamatotakada, Nara', 'ja': u('\u5927\u548c\u9ad8\u7530')}, '817452':{'en': 'Yamatotakada, Nara', 'ja': u('\u5927\u548c\u9ad8\u7530')}, '817455':{'en': 'Yamatotakada, Nara', 'ja': u('\u5927\u548c\u9ad8\u7530')}, '817454':{'en': 'Yamatotakada, Nara', 'ja': u('\u5927\u548c\u9ad8\u7530')}, '817457':{'en': 'Yamatotakada, Nara', 'ja': u('\u5927\u548c\u9ad8\u7530')}, '817456':{'en': 'Yamatotakada, Nara', 'ja': u('\u5927\u548c\u9ad8\u7530')}, '811862':{'en': 'Kazuno, Akita', 'ja': u('\u9e7f\u89d2')}, '811863':{'en': 'Kazuno, Akita', 'ja': u('\u9e7f\u89d2')}, '8186693':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '861303807':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '811867':{'en': 'Takanosu, Akita', 'ja': u('\u9df9\u5de3')}, '86130019':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '8186691':{'en': 'Kurashiki, Okayama', 'ja': u('\u5009\u6577')}, '8186690':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '86130011':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130010':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130013':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130012':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861309540':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '814229':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814228':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '55973441':{'en': 'Santa Isabel do Rio Negro - AM', 'pt': 'Santa Isabel do Rio Negro - AM'}, '814223':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814222':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814220':{'en': 'Kokubunji, Tokyo', 'ja': u('\u56fd\u5206\u5bfa')}, '814227':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814226':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814225':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '814224':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '58291':{'en': 'Monagas', 'es': 'Monagas'}, '58293':{'en': 'Sucre', 'es': 'Sucre'}, '58292':{'en': 'Monagas', 'es': 'Monagas'}, '58295':{'en': 'Nueva Esparta', 'es': 'Nueva Esparta'}, '58294':{'en': 'Sucre', 'es': 'Sucre'}, '55943778':{'en': u('Vila Residencial de Tucuru\u00ed - PA'), 'pt': u('Vila Residencial de Tucuru\u00ed - PA')}, '55943779':{'en': u('Goian\u00e9sia do Par\u00e1 - PA'), 'pt': u('Goian\u00e9sia do Par\u00e1 - PA')}, '571842':{'en': 'Facatativa', 'es': 'Facatativa'}, '861308498':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861308499':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861308494':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861308495':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861308496':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861308497':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861308490':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861308491':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861308492':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861308493':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86130211':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '55923301':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923306':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '5591':{'en': u('Par\u00e1'), 'pt': u('Par\u00e1')}, '5593':{'en': u('Par\u00e1'), 'pt': u('Par\u00e1')}, '5592':{'en': 'Amazonas', 'pt': 'Amazonas'}, '5595':{'en': 'Roraima', 'pt': 'Roraima'}, '5594':{'en': u('Par\u00e1'), 'pt': u('Par\u00e1')}, '5597':{'en': 'Amazonas', 'pt': 'Amazonas'}, '5596':{'en': u('Amap\u00e1'), 'pt': u('Amap\u00e1')}, '5599':{'en': u('Maranh\u00e3o'), 'pt': u('Maranh\u00e3o')}, '5598':{'en': u('Maranh\u00e3o'), 'pt': u('Maranh\u00e3o')}, '861305950':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861305951':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861305956':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861303772':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861305954':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861305955':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861308547':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861303135':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '55983268':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983269':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983264':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983262':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '811236':{'en': 'Chitose, Hokkaido', 'ja': u('\u5343\u6b73')}, '811235':{'en': 'Yubari, Hokkaido', 'ja': u('\u5915\u5f35')}, '811234':{'en': 'Chitose, Hokkaido', 'ja': u('\u5343\u6b73')}, '55963521':{'en': 'Oiapoque - AP', 'pt': 'Oiapoque - AP'}, '55913032':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '861305532':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861303805':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '64757':{'en': 'Tauranga'}, '64754':{'en': 'Tauranga'}, '812746':{'en': 'Tomioka, Gunma', 'ja': u('\u5bcc\u5ca1')}, '812747':{'en': 'Tomioka, Gunma', 'ja': u('\u5bcc\u5ca1')}, '812744':{'en': 'Fujioka, Gunma', 'ja': u('\u85e4\u5ca1')}, '812745':{'en': 'Fujioka, Gunma', 'ja': u('\u85e4\u5ca1')}, '812742':{'en': 'Fujioka, Gunma', 'ja': u('\u85e4\u5ca1')}, '861300868':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861300865':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861300864':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861300867':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861300866':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861300861':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861300860':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861300863':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861300862':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861303775':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861303776':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861303777':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '817688':{'en': 'Noto, Ishikawa', 'ja': u('\u80fd\u90fd')}, '817684':{'en': 'Wajima, Ishikawa', 'ja': u('\u8f2a\u5cf6')}, '817685':{'en': 'Wajima, Ishikawa', 'ja': u('\u8f2a\u5cf6')}, '817686':{'en': 'Noto, Ishikawa', 'ja': u('\u80fd\u90fd')}, '817687':{'en': 'Noto, Ishikawa', 'ja': u('\u80fd\u90fd')}, '817682':{'en': 'Wajima, Ishikawa', 'ja': u('\u8f2a\u5cf6')}, '817683':{'en': 'Wajima, Ishikawa', 'ja': u('\u8f2a\u5cf6')}, '861305535':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '55863393':{'en': u('Luzil\u00e2ndia - PI'), 'pt': u('Luzil\u00e2ndia - PI')}, '861305536':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '57557':{'en': 'Valledupar', 'es': 'Valledupar'}, '8112393':{'en': 'Yubari, Hokkaido', 'ja': u('\u5915\u5f35')}, '8112392':{'en': 'Yubari, Hokkaido', 'ja': u('\u5915\u5f35')}, '8112391':{'en': 'Yubari, Hokkaido', 'ja': u('\u5915\u5f35')}, '8112390':{'en': 'Yubari, Hokkaido', 'ja': u('\u5915\u5f35')}, '8112397':{'en': 'Kuriyama, Hokkaido', 'ja': u('\u6817\u5c71')}, '8112396':{'en': 'Kuriyama, Hokkaido', 'ja': u('\u6817\u5c71')}, '8112395':{'en': 'Kuriyama, Hokkaido', 'ja': u('\u6817\u5c71')}, '8112394':{'en': 'Yubari, Hokkaido', 'ja': u('\u5915\u5f35')}, '861308304':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861308305':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '8112399':{'en': 'Kuriyama, Hokkaido', 'ja': u('\u6817\u5c71')}, '8112398':{'en': 'Kuriyama, Hokkaido', 'ja': u('\u6817\u5c71')}, '861308300':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308301':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861308302':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861308303':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '818464':{'en': 'Takehara, Hiroshima', 'ja': u('\u7af9\u539f')}, '818467':{'en': 'Mima, Tokushima', 'ja': u('\u6728\u6c5f')}, '818466':{'en': 'Mima, Tokushima', 'ja': u('\u6728\u6c5f')}, '861309318':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861309319':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '818463':{'en': 'Takehara, Hiroshima', 'ja': u('\u7af9\u539f')}, '55913521':{'en': 'Paragominas - PA', 'pt': 'Paragominas - PA'}, '861309314':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861309315':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861309316':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861309317':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861309310':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861309311':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '55913528':{'en': 'Novo Progresso - PA', 'pt': 'Novo Progresso - PA'}, '861309313':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '81853':{'en': 'Izumo, Shimane', 'ja': u('\u51fa\u96f2')}, '81852':{'en': 'Matsue, Shimane', 'ja': u('\u677e\u6c5f')}, '81857':{'en': 'Tottori, Tottori', 'ja': u('\u9ce5\u53d6')}, '861300681':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861300680':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861300683':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861300682':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861300685':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861300684':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861300687':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300686':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300689':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300688':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861303157':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861303159':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86130538':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '772774':{'en': 'Talgar', 'ru': u('\u0422\u0430\u043b\u0433\u0430\u0440\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861303088':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861303089':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861303082':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '772770':{'en': 'Uzynagash', 'ru': u('\u0416\u0430\u043c\u0431\u044b\u043b\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861303080':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861303081':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861303086':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861303087':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861303084':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861303085':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '55983878':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '772773':{'en': 'Bakanas', 'ru': u('\u0411\u0430\u043b\u0445\u0430\u0448\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861302423':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302422':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302421':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302420':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302427':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861302426':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861302425':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861302424':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302939':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861302938':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861302429':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861302428':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '62636':{'en': 'Panyabungan/Sibuhuan', 'id': 'Panyabungan/Sibuhuan'}, '861303331':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '62634':{'en': 'Padang Sidempuan/Sipirok', 'id': 'Padang Sidempuan/Sipirok'}, '62635':{'en': 'Gunung Tua', 'id': 'Gunung Tua'}, '62632':{'en': 'Balige', 'id': 'Balige'}, '62633':{'en': 'Tarutung/Dolok Sanggul', 'id': 'Tarutung/Dolok Sanggul'}, '62630':{'en': 'Teluk Dalam', 'id': 'Teluk Dalam'}, '62631':{'en': 'Sibolga/Pandan', 'id': 'Sibolga/Pandan'}, '861303338':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861303339':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '62639':{'en': 'Gunung Sitoli', 'id': 'Gunung Sitoli'}, '861304375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861302687':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861302686':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861302685':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861302684':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861302683':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861302682':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861302681':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861302680':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861304278':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861302689':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861302688':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861303903':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861303902':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861303901':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303802':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861303900':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306308':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861303555':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861306306':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861303907':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861306304':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861306305':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861304377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861303800':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861306300':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861303906':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861303801':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861304625':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '86130200':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130201':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130202':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861303904':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86130207':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861303804':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861303553':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861304297':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '812248':{'en': 'Ogawara, Miyagi', 'ja': u('\u5927\u6cb3\u539f')}, '861309577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '815748':{'en': '', 'ja': u('\u7f8e\u6fc3\u767d\u5ddd')}, '812243':{'en': 'Shiroishi, Miyagi', 'ja': u('\u767d\u77f3')}, '812242':{'en': 'Shiroishi, Miyagi', 'ja': u('\u767d\u77f3')}, '815745':{'en': 'Minokamo, Gifu', 'ja': u('\u7f8e\u6fc3\u52a0\u8302')}, '815744':{'en': 'Minokamo, Gifu', 'ja': u('\u7f8e\u6fc3\u52a0\u8302')}, '815743':{'en': 'Minokamo, Gifu', 'ja': u('\u7f8e\u6fc3\u52a0\u8302')}, '815742':{'en': 'Minokamo, Gifu', 'ja': u('\u7f8e\u6fc3\u52a0\u8302')}, '812245':{'en': 'Ogawara, Miyagi', 'ja': u('\u5927\u6cb3\u539f')}, '812244':{'en': 'Shiroishi, Miyagi', 'ja': u('\u767d\u77f3')}, '55913322':{'en': 'Barcarena - PA', 'pt': 'Barcarena - PA'}, '55913323':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55993212':{'en': 'Timon - MA', 'pt': 'Timon - MA'}, '55943013':{'en': 'Parauapebas - PA', 'pt': 'Parauapebas - PA'}, '55943012':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '861304370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '861304295':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861301314':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861301315':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861304541':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861301316':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '8186553':{'en': 'Kurashiki, Okayama', 'ja': u('\u5009\u6577')}, '861304968':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861304969':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861304964':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '8186554':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '861304966':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861304967':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861304960':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861304961':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861304962':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '8186555':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '861301303':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861301302':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861301301':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861301300':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861301307':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861301306':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861301305':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861301304':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861301659':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861301658':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861301309':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861301308':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '55893468':{'en': 'Aroazes - PI', 'pt': 'Aroazes - PI'}, '861305530':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861305531':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '55893461':{'en': u('Col\u00f4nia do Piau\u00ed - PI'), 'pt': u('Col\u00f4nia do Piau\u00ed - PI')}, '55893462':{'en': 'Oeiras - PI', 'pt': 'Oeiras - PI'}, '55893464':{'en': u('Caridade do Piau\u00ed - PI'), 'pt': u('Caridade do Piau\u00ed - PI')}, '55893465':{'en': u('Valen\u00e7a do Piau\u00ed - PI'), 'pt': u('Valen\u00e7a do Piau\u00ed - PI')}, '55893467':{'en': u('Lagoa do S\u00edtio - PI'), 'pt': u('Lagoa do S\u00edtio - PI')}, '818678':{'en': 'Niimi, Okayama', 'ja': u('\u65b0\u898b')}, '818679':{'en': 'Niimi, Okayama', 'ja': u('\u65b0\u898b')}, '55993667':{'en': 'Governador Archer - MA', 'pt': 'Governador Archer - MA'}, '55993666':{'en': u('Santo Ant\u00f4nio dos Lopes - MA'), 'pt': u('Santo Ant\u00f4nio dos Lopes - MA')}, '55993661':{'en': u('Cod\u00f3 - MA'), 'pt': u('Cod\u00f3 - MA')}, '55993663':{'en': 'Presidente Dutra - MA', 'pt': 'Presidente Dutra - MA'}, '55993662':{'en': 'Dom Pedro - MA', 'pt': 'Dom Pedro - MA'}, '861305534':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '818672':{'en': '', 'ja': u('\u798f\u6e21')}, '818673':{'en': '', 'ja': u('\u798f\u6e21')}, '818674':{'en': 'Kuse, Okayama', 'ja': u('\u4e45\u4e16')}, '818675':{'en': 'Kuse, Okayama', 'ja': u('\u4e45\u4e16')}, '818676':{'en': 'Kuse, Okayama', 'ja': u('\u4e45\u4e16')}, '818677':{'en': 'Niimi, Okayama', 'ja': u('\u65b0\u898b')}, '8125481':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '8125480':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '8125483':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '8125482':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '8125485':{'en': 'Tsugawa, Niigata', 'ja': u('\u6d25\u5ddd')}, '8125484':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '8125487':{'en': 'Tsugawa, Niigata', 'ja': u('\u6d25\u5ddd')}, '8125486':{'en': 'Tsugawa, Niigata', 'ja': u('\u6d25\u5ddd')}, '8125489':{'en': 'Tsugawa, Niigata', 'ja': u('\u6d25\u5ddd')}, '8125488':{'en': 'Tsugawa, Niigata', 'ja': u('\u6d25\u5ddd')}, '861305537':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861305538':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861305520':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861305539':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '818582':{'en': 'Kurayoshi, Tottori', 'ja': u('\u5009\u5409')}, '818583':{'en': 'Kurayoshi, Tottori', 'ja': u('\u5009\u5409')}, '818586':{'en': 'Kurayoshi, Tottori', 'ja': u('\u5009\u5409')}, '818587':{'en': 'Koge, Tottori', 'ja': u('\u90e1\u5bb6')}, '818584':{'en': 'Kurayoshi, Tottori', 'ja': u('\u5009\u5409')}, '818585':{'en': 'Kurayoshi, Tottori', 'ja': u('\u5009\u5409')}, '818588':{'en': 'Koge, Tottori', 'ja': u('\u90e1\u5bb6')}, '861307046':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861308712':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '57764':{'en': 'Bucaramanga', 'es': 'Bucaramanga'}, '57765':{'en': 'Bucaramanga', 'es': 'Bucaramanga'}, '55983015':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '57767':{'en': 'Bucaramanga', 'es': 'Bucaramanga'}, '55983013':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '57761':{'en': 'Bucaramanga', 'es': 'Bucaramanga'}, '55983011':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '57763':{'en': 'Bucaramanga', 'es': 'Bucaramanga'}, '57768':{'en': 'Bucaramanga', 'es': 'Bucaramanga'}, '64368':{'en': 'Timaru/Waimate/Fairlie'}, '861300304':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861300305':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861300306':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '64369':{'en': 'Geraldine'}, '861300300':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861300301':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861300302':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861300303':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861301915':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861300308':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861300309':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303657':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861303656':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861303655':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861303654':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861303653':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861303652':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861303651':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861303650':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861304379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861304689':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861304688':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861303659':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861303658':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861301875':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861301874':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861301877':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861301876':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861301871':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861301870':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '592259':{'en': 'Clonbrook/Unity'}, '861301872':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '592257':{'en': 'Cane Grove/Strangroen'}, '592256':{'en': 'Victoria/Hope West'}, '592255':{'en': 'Paradise/Golden Grove/Haslington'}, '592254':{'en': 'New Road/Best'}, '592253':{'en': 'La Grange/Goed Fortuin'}, '861301878':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '57492':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '861305489':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861304378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861305480':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '817239':{'en': 'Neyagawa, Osaka', 'ja': u('\u5bdd\u5c4b\u5ddd')}, '861305482':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861305483':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861305484':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861305485':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861305486':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '817238':{'en': 'Neyagawa, Osaka', 'ja': u('\u5bdd\u5c4b\u5ddd')}, '817473':{'en': '', 'ja': u('\u4e94\u6761')}, '817472':{'en': '', 'ja': u('\u4e94\u6761')}, '86130789':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '817476':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u5e02')}, '817475':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u5e02')}, '817474':{'en': '', 'ja': u('\u4e94\u6761')}, '86130785':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '86130784':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '86130787':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '55893474':{'en': 'Pimenteiras - PI', 'pt': 'Pimenteiras - PI'}, '86130781':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '86130780':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '86130783':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '86130782':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '86130563':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '86130562':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '574842':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '86130567':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86130569':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86130568':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861308519':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861308518':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861308511':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861308510':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861308513':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861308512':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861308515':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861308514':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861308517':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861308516':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861309109':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861309108':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861304359':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861304358':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861304353':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304352':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304351':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304350':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304357':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861304356':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861304355':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304354':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '55923363':{'en': 'Manaquiri - AM', 'pt': 'Manaquiri - AM'}, '861302749':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861302742':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861302743':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861302740':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861302741':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861302746':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861302747':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861302744':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861302745':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '55953198':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '55953194':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '55923362':{'en': 'Careiro - AM', 'pt': 'Careiro - AM'}, '861308473':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861308470':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861308471':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861308476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308477':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861308474':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861308475':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861308478':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861308479':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861308328':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '84230':{'en': 'Dien Bien province', 'vi': u('\u0110i\u1ec7n Bi\u00ean')}, '84231':{'en': 'Lai Chau province', 'vi': u('Lai Ch\u00e2u')}, '55923367':{'en': 'Iranduba - AM', 'pt': 'Iranduba - AM'}, '811456':{'en': '', 'ja': u('\u9580\u5225\u5bcc\u5ddd')}, '811455':{'en': 'Mukawa, Hokkaido', 'ja': u('\u9d61\u5ddd')}, '55923364':{'en': 'Caapiranga - AM', 'pt': 'Caapiranga - AM'}, '811453':{'en': 'Hayakita, Hokkaido', 'ja': u('\u65e9\u6765')}, '811452':{'en': 'Hayakita, Hokkaido', 'ja': u('\u65e9\u6765')}, '55923361':{'en': 'Manacapuru - AM', 'pt': 'Manacapuru - AM'}, '55923369':{'en': u('Careiro da V\u00e1rzea - AM'), 'pt': u('Careiro da V\u00e1rzea - AM')}, '55983399':{'en': 'Mirinzal - MA', 'pt': 'Mirinzal - MA'}, '811233':{'en': 'Chitose, Hokkaido', 'ja': u('\u5343\u6b73')}, '811232':{'en': 'Chitose, Hokkaido', 'ja': u('\u5343\u6b73')}, '811983':{'en': 'Hanamaki, Iwate', 'ja': u('\u82b1\u5dfb')}, '811982':{'en': 'Hanamaki, Iwate', 'ja': u('\u82b1\u5dfb')}, '811237':{'en': 'Kuriyama, Hokkaido', 'ja': u('\u6817\u5c71')}, '811984':{'en': 'Hanamaki, Iwate', 'ja': u('\u82b1\u5dfb')}, '811987':{'en': 'Tono, Iwate', 'ja': u('\u9060\u91ce')}, '811986':{'en': 'Tono, Iwate', 'ja': u('\u9060\u91ce')}, '811238':{'en': 'Kuriyama, Hokkaido', 'ja': u('\u6817\u5c71')}, '77222':{'en': 'Semey', 'ru': u('\u0421\u0435\u043c\u0438\u043f\u0430\u043b\u0430\u0442\u0438\u043d\u0441\u043a')}, '815747':{'en': '', 'ja': u('\u7f8e\u6fc3\u767d\u5ddd')}, '55983242':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983243':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983241':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983246':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983247':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983244':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983245':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983248':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983249':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861303151':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861306449':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861306448':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861306445':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861306444':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861306447':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861306446':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861306441':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861306440':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861306443':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861306442':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861308186':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861305415':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861300843':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861300842':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861300841':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861300840':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861300847':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861300846':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861300845':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861300844':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861300849':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861300848':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '815746':{'en': 'Minokamo, Gifu', 'ja': u('\u7f8e\u6fc3\u52a0\u8302')}, '861305518':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861309488':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861309489':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861309484':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861309485':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861309486':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861309487':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861309480':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861309481':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861309482':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861309483':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '64731':{'en': 'Whakatane/Opotiki'}, '64730':{'en': 'Whakatane'}, '64733':{'en': 'Rotorua/Taupo'}, '64732':{'en': 'Whakatane'}, '64735':{'en': 'Rotorua'}, '64734':{'en': 'Rotorua'}, '64737':{'en': 'Taupo'}, '64736':{'en': 'Rotorua'}, '64738':{'en': 'Taupo'}, '57538':{'en': 'Barranquilla', 'es': 'Barranquilla'}, '57533':{'en': 'Barranquilla', 'es': 'Barranquilla'}, '57532':{'en': 'Barranquilla', 'es': 'Barranquilla'}, '57535':{'en': 'Barranquilla', 'es': 'Barranquilla'}, '57534':{'en': 'Barranquilla', 'es': 'Barranquilla'}, '57537':{'en': 'Barranquilla', 'es': 'Barranquilla'}, '57536':{'en': 'Barranquilla', 'es': 'Barranquilla'}, '861304551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303054':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '55913544':{'en': u('Oriximin\u00e1 - PA'), 'pt': u('Oriximin\u00e1 - PA')}, '772246':{'en': 'Barshatas'}, '861303057':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861305410':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861304552':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861304555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861303050':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '55933559':{'en': u('Trair\u00e3o - PA'), 'pt': u('Trair\u00e3o - PA')}, '55933558':{'en': 'Belterra - PA', 'pt': 'Belterra - PA'}, '81878':{'en': 'Takamatsu, Kagawa', 'ja': u('\u9ad8\u677e')}, '81877':{'en': 'Marugame, Kagawa', 'ja': u('\u4e38\u4e80')}, '55933557':{'en': 'Faro - PA', 'pt': 'Faro - PA'}, '861303052':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '55933552':{'en': 'Placas - PA', 'pt': 'Placas - PA'}, '861304052':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861309283':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861309689':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304053':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '812657':{'en': 'Ina, Nagano', 'ja': u('\u4f0a\u90a3')}, '861309623':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '5718288':{'en': 'Madrid', 'es': 'Madrid'}, '5718289':{'en': 'Madrid', 'es': 'Madrid'}, '861305512':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '5718283':{'en': 'Mosquera', 'es': 'Mosquera'}, '55993567':{'en': u('S\u00e3o Jo\u00e3o do Soter - MA'), 'pt': u('S\u00e3o Jo\u00e3o do Soter - MA')}, '861304750':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861304055':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861303275':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861305513':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861303274':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861303277':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861302917':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861302916':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861302915':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861302914':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861302913':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861302912':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861302911':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861302910':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303271':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861302919':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861302918':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861305510':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861303356':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861303357':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861303354':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861303355':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861303352':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861303353':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861303350':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861303351':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861309280':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861303358':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861303359':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861305511':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '86130193':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130194':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861308728':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '812975':{'en': '', 'ja': u('\u6c34\u6d77\u9053')}, '812974':{'en': '', 'ja': u('\u6c34\u6d77\u9053')}, '812977':{'en': '', 'ja': u('\u7adc\u30b1\u5d0e')}, '812976':{'en': '', 'ja': u('\u7adc\u30b1\u5d0e')}, '812973':{'en': '', 'ja': u('\u6c34\u6d77\u9053')}, '812972':{'en': '', 'ja': u('\u6c34\u6d77\u9053')}, '812979':{'en': '', 'ja': u('\u7adc\u30b1\u5d0e')}, '812978':{'en': '', 'ja': u('\u7adc\u30b1\u5d0e')}, '861305516':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '55952121':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '861306324':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861306325':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861306326':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861306327':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861306320':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861306321':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861306322':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861306323':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861303790':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861306329':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '819239':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '819238':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '86130228':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86130229':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '819233':{'en': 'Maebaru, Fukuoka', 'ja': u('\u524d\u539f')}, '819232':{'en': 'Maebaru, Fukuoka', 'ja': u('\u524d\u539f')}, '819231':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '819230':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '819237':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '819236':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '819235':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '819234':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '771638':{'en': 'Akkol'}, '771639':{'en': 'Stepnyak'}, '771630':{'en': 'Burabay'}, '771631':{'en': 'Shortandy'}, '771632':{'en': 'Zerenda'}, '771633':{'en': 'Ereimentau'}, '771635':{'en': 'Zhaksy'}, '771636':{'en': 'Shuchinsk'}, '771637':{'en': 'Korgalzhyn'}, '818948':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c')}, '818949':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c')}, '818942':{'en': 'Yawatahama, Ehime', 'ja': u('\u516b\u5e61\u6d5c')}, '818943':{'en': 'Yawatahama, Ehime', 'ja': u('\u516b\u5e61\u6d5c')}, '818946':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c')}, '818947':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c')}, '818944':{'en': 'Yawatahama, Ehime', 'ja': u('\u516b\u5e61\u6d5c')}, '818945':{'en': 'Yawatahama, Ehime', 'ja': u('\u516b\u5e61\u6d5c')}, '861305515':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '8111':{'en': 'Sapporo, Hokkaido', 'ja': u('\u672d\u5e4c')}, '7711':{'ru': u('\u0417\u0430\u043f\u0430\u0434\u043d\u043e-\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7710':{'ru': u('\u041a\u0430\u0440\u0430\u0433\u0430\u043d\u0434\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7713':{'ru': u('\u0410\u043a\u0442\u044e\u0431\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7712':{'ru': u('\u0410\u0442\u044b\u0440\u0430\u0443\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7715':{'ru': u('\u0421\u0435\u0432\u0435\u0440\u043e-\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7714':{'ru': u('\u041a\u043e\u0441\u0442\u0430\u043d\u0430\u0439\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7716':{'ru': u('\u0410\u043a\u043c\u043e\u043b\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7718':{'ru': u('\u041f\u0430\u0432\u043b\u043e\u0434\u0430\u0440\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '861306852':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861306853':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861306850':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861306851':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861306856':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861306857':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861306854':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861306855':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861306858':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861306859':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861304279':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861301677':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861301676':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861301675':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861301674':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861301673':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861301672':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861301671':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861301670':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861301679':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861301678':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861309552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '55893448':{'en': 'Bocaina - PI', 'pt': 'Bocaina - PI'}, '55893449':{'en': u('Santo Ant\u00f4nio de Lisboa - PI'), 'pt': u('Santo Ant\u00f4nio de Lisboa - PI')}, '55893446':{'en': u('Itain\u00f3polis - PI'), 'pt': u('Itain\u00f3polis - PI')}, '55893447':{'en': u('S\u00e3o Jos\u00e9 do Piau\u00ed - PI'), 'pt': u('S\u00e3o Jos\u00e9 do Piau\u00ed - PI')}, '55893444':{'en': 'Dom Expedito Lopes - PI', 'pt': 'Dom Expedito Lopes - PI'}, '55893445':{'en': u('Santa Cruz do Piau\u00ed - PI'), 'pt': u('Santa Cruz do Piau\u00ed - PI')}, '55893442':{'en': u('Alagoinha do Piau\u00ed - PI'), 'pt': u('Alagoinha do Piau\u00ed - PI')}, '55893443':{'en': u('Santana do Piau\u00ed - PI'), 'pt': u('Santana do Piau\u00ed - PI')}, '55893440':{'en': u('Ipiranga do Piau\u00ed - PI'), 'pt': u('Ipiranga do Piau\u00ed - PI')}, '81464':{'en': 'Atsugi, Kanagawa', 'ja': u('\u539a\u6728')}, '81465':{'en': 'Odawara, Kanagawa', 'ja': u('\u5c0f\u7530\u539f')}, '81466':{'en': 'Fujisawa, Kanagawa', 'ja': u('\u85e4\u6ca2')}, '81467':{'en': 'Fujisawa, Kanagawa', 'ja': u('\u85e4\u6ca2')}, '861301589':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861301588':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '81462':{'en': 'Atsugi, Kanagawa', 'ja': u('\u539a\u6728')}, '81463':{'en': 'Hiratsuka, Kanagawa', 'ja': u('\u5e73\u585a')}, '861301585':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861301584':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861301587':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861301586':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861301581':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861301580':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861301583':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861301582':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '55983387':{'en': u('Palmeir\u00e2ndia - MA'), 'pt': u('Palmeir\u00e2ndia - MA')}, '57184334':{'en': 'Tobia', 'es': 'Tobia'}, '55983385':{'en': u('Bequim\u00e3o - MA'), 'pt': u('Bequim\u00e3o - MA')}, '55983384':{'en': 'Presidente Sarney - MA', 'pt': 'Presidente Sarney - MA'}, '55983383':{'en': u('S\u00e3o Bento - MA'), 'pt': u('S\u00e3o Bento - MA')}, '57184330':{'en': 'Ninaima', 'es': 'Ninaima'}, '57184333':{'en': 'Tobia', 'es': 'Tobia'}, '57184332':{'en': 'Ninaima', 'es': 'Ninaima'}, '861302095':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '55983388':{'en': 'Peri Mirim - MA', 'pt': 'Peri Mirim - MA'}, '861304319':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861304274':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861309550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861300807':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861304318':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '81792':{'en': 'Himeji, Hyogo', 'ja': u('\u59eb\u8def')}, '81793':{'en': 'Himeji, Hyogo', 'ja': u('\u59eb\u8def')}, '81797':{'en': 'Nishinomiya, Hyogo', 'ja': u('\u897f\u5bae')}, '81798':{'en': 'Nishinomiya, Hyogo', 'ja': u('\u897f\u5bae')}, '861309551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '81875':{'en': 'Kan\'onji, Kagawa', 'ja': u('\u89b3\u97f3\u5bfa')}, '861304276':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861300986':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300987':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300984':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300985':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300982':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861300983':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861300980':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300981':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861309556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861309178':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861300988':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861300989':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861301859':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861301858':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861301853':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301852':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301851':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861301850':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861301857':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301856':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301855':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301854':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861309557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '592231':{'en': 'Georgetown'}, '592233':{'en': 'Agricola/Houston/Eccles/Nandy Park'}, '592232':{'en': 'Novar/Catherine/Belladrum/Bush Lot'}, '592234':{'en': 'B/V Central'}, '819743':{'en': 'Mie, Oita', 'ja': u('\u4e09\u91cd')}, '861300188':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861300189':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861300186':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861300187':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861300184':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861300185':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861300182':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861300183':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861300180':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861300181':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861309554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '819747':{'en': 'Taketa, Oita', 'ja': u('\u7af9\u7530')}, '819746':{'en': 'Taketa, Oita', 'ja': u('\u7af9\u7530')}, '55954400':{'en': u('Caracara\u00ed - RR'), 'pt': u('Caracara\u00ed - RR')}, '861304271':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '819744':{'en': 'Mie, Oita', 'ja': u('\u4e09\u91cd')}, '86130763':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '86130762':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '86130761':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '86130760':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86130767':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '817498':{'en': 'Nagahama, Shiga', 'ja': u('\u9577\u6d5c')}, '86130765':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '86130764':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '817495':{'en': 'Nagahama, Shiga', 'ja': u('\u9577\u6d5c')}, '817494':{'en': 'Hikone, Shiga', 'ja': u('\u5f66\u6839')}, '817497':{'en': 'Nagahama, Shiga', 'ja': u('\u9577\u6d5c')}, '817496':{'en': 'Nagahama, Shiga', 'ja': u('\u9577\u6d5c')}, '817493':{'en': 'Hikone, Shiga', 'ja': u('\u5f66\u6839')}, '817492':{'en': 'Hikone, Shiga', 'ja': u('\u5f66\u6839')}, '861304313':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861304272':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '55913481':{'en': 'Primavera - PA', 'pt': 'Primavera - PA'}, '861309298':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '55913483':{'en': u('S\u00e3o Domingos do Capim - PA'), 'pt': u('S\u00e3o Domingos do Capim - PA')}, '55913482':{'en': u('Augusto Corr\u00eaa - PA'), 'pt': u('Augusto Corr\u00eaa - PA')}, '55913485':{'en': 'Tracuateua - PA', 'pt': 'Tracuateua - PA'}, '55913484':{'en': u('Santar\u00e9m Novo - PA'), 'pt': u('Santar\u00e9m Novo - PA')}, '861303983':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861303982':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861303981':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861303980':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861303987':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861303986':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861303985':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861303984':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861309492':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861304312':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861304273':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '86130506':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861300728':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300729':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86130503':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '86130502':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '86130501':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '86130500':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861300722':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300723':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300720':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300721':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300726':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861300727':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861300724':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300725':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '7382':{'en': 'Tomsk'}, '861308538':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861308537':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861308536':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861308535':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861308534':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861308533':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861308532':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861308531':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861308530':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861303183':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861303182':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861303181':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303180':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303187':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861303186':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861303185':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861303184':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861304407':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861304406':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861303189':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861303188':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861304403':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861304402':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861304401':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861304400':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861302760':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861302761':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861302762':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861302763':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861302764':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861302765':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861302766':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861302767':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861302768':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861302769':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861309177':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861308458':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861308459':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861308450':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861308451':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861308452':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861308453':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861308454':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861308455':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861308456':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861308457':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861309170':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '84218':{'en': 'Hoa Binh province', 'vi': u('H\u00f2a B\u00ecnh')}, '84219':{'en': 'Ha Giang province', 'vi': u('H\u00e0 Giang')}, '84210':{'en': 'Phu Tho province', 'vi': u('Ph\u00fa Th\u1ecd')}, '84211':{'en': 'Vinh Phuc province', 'vi': u('V\u0129nh Ph\u00fac')}, '861309171':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861308988':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861308989':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861308986':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861308987':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861308984':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861308985':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861308982':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861308983':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861308980':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861308981':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '62265':{'en': 'Tasikmalaya/Banjar/Ciamis', 'id': 'Tasikmalaya/Banjar/Ciamis'}, '62264':{'en': 'Purwakarta/Cikampek', 'id': 'Purwakarta/Cikampek'}, '62267':{'en': 'Karawang', 'id': 'Karawang'}, '62266':{'en': 'Sukabumi', 'id': 'Sukabumi'}, '62261':{'en': 'Sumedang', 'id': 'Sumedang'}, '62260':{'en': 'Subang', 'id': 'Subang'}, '62263':{'en': 'Cianjur', 'id': 'Cianjur'}, '62262':{'en': 'Garut', 'id': 'Garut'}, '861309172':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '812472':{'en': 'Ishikawa, Fukushima', 'ja': u('\u77f3\u5ddd')}, '818804':{'en': '', 'ja': u('\u571f\u4f50\u4e2d\u6751')}, '861309173':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '818803':{'en': '', 'ja': u('\u571f\u4f50\u4e2d\u6751')}, '818802':{'en': '', 'ja': u('\u7aaa\u5ddd')}, '861303641':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '772642':{'en': 'Moiynkum'}, '861303643':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861303644':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '7385':{'en': 'Altai Territory'}, '861309285':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '815392':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '815393':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '815394':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '815395':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '815398':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '815399':{'en': '', 'ja': u('\u5929\u7adc')}, '599318':{'en': 'St. Eustatius'}, '861306102':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '86130412':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301916':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304263':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861309729':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861309728':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86130415':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861309720':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861305431':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861309722':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861309725':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861309724':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309727':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861309726':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861305849':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861301723':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861305430':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861301155':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861309462':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861309463':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861309460':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861309461':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861309466':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861309467':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861305433':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861309465':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861309468':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861309469':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861301440':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861301441':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861301442':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861301443':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861301444':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861301445':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861301446':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861301447':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861301448':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861301449':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861301725':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861300537':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861300536':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861300535':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861300534':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300533':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300532':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300531':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861300530':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861300380':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300539':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861300381':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861301724':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861305435':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '55993492':{'en': 'Lagoa do Mato - MA', 'pt': 'Lagoa do Mato - MA'}, '861308150':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301727':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861305434':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861306971':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861308159':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861301726':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861305437':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861309029':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861309118':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861309119':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861305436':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '8153974':{'en': '', 'ja': u('\u5929\u7adc')}, '8153975':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153976':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153977':{'en': '', 'ja': u('\u5929\u7adc')}, '8153970':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153971':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153972':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153973':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153978':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153979':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '861304432':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304862':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '62458':{'en': 'Tentena', 'id': 'Tentena'}, '861304433':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '812673':{'en': 'Komoro, Nagano', 'ja': u('\u5c0f\u8af8')}, '62985':{'en': 'Nabire', 'id': 'Nabire'}, '62986':{'en': 'Manokwari', 'id': 'Manokwari'}, '62455':{'en': 'Kotaraya/Moutong', 'id': 'Kotaraya/Moutong'}, '62980':{'en': 'Ransiki', 'id': 'Ransiki'}, '62981':{'en': 'Biak', 'id': 'Biak'}, '62450':{'en': 'Parigi', 'id': 'Parigi'}, '62983':{'en': 'Serui', 'id': 'Serui'}, '55983523':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55983521':{'en': 'Caxias - MA', 'pt': 'Caxias - MA'}, '861304431':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861302979':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861302978':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '55983525':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55983524':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '861302975':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861302974':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861302977':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861302976':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861302971':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861302970':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861302973':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861302972':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861309549':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861304434':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861309548':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '55973334':{'en': 'Canutama - AM', 'pt': 'Canutama - AM'}, '861304435':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '55973331':{'en': u('L\u00e1brea - AM'), 'pt': u('L\u00e1brea - AM')}, '55923681':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '812957':{'en': 'Daigo, Ibaraki', 'ja': u('\u5927\u5b50')}, '812956':{'en': 'Hitachi-Omiya, Ibaraki', 'ja': u('\u5e38\u9678\u5927\u5bae')}, '812955':{'en': 'Hitachi-Omiya, Ibaraki', 'ja': u('\u5e38\u9678\u5927\u5bae')}, '861301569':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861302399':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861302398':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861301566':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861302391':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861302390':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861302393':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861302392':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861302395':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861302394':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861302397':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861302396':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86130245':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '771651':{'en': 'Kabanbai Batyr'}, '86130241':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130248':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '6495':{'en': 'Auckland'}, '861305400':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '6496':{'en': 'Auckland'}, '8175':{'en': 'Kyoto, Kyoto', 'ja': u('\u4eac\u90fd')}, '6493':{'en': 'Auckland/Waiheke Island'}, '6492':{'en': 'Auckland'}, '8178':{'en': 'Kobe, Hyogo', 'ja': u('\u795e\u6238')}, '55982016':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '6499':{'en': 'Auckland'}, '6498':{'en': 'Auckland'}, '861305403':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861309312':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861305404':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861305405':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861305406':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861305407':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861305408':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861305409':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861308446':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '811376':{'en': 'Yakumo, Hokkaido', 'ja': u('\u516b\u96f2')}, '811377':{'en': 'Yakumo, Hokkaido', 'ja': u('\u516b\u96f2')}, '811374':{'en': 'Mori, Hokkaido', 'ja': u('\u68ee')}, '811375':{'en': 'Yakumo, Hokkaido', 'ja': u('\u516b\u96f2')}, '861301619':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861301618':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861301615':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861301614':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861301617':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861301616':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861301611':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861301610':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861301613':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861301612':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '642409':{'en': 'Scott Base'}, '812571':{'en': 'Muika, Niigata', 'ja': u('\u516d\u65e5\u753a')}, '812570':{'en': '', 'ja': u('\u5c0f\u51fa')}, '812573':{'en': 'Kashiwazaki, Niigata', 'ja': u('\u67cf\u5d0e')}, '812572':{'en': 'Kashiwazaki, Niigata', 'ja': u('\u67cf\u5d0e')}, '812575':{'en': 'Tokamachi, Niigata', 'ja': u('\u5341\u65e5\u753a')}, '812574':{'en': 'Kashiwazaki, Niigata', 'ja': u('\u67cf\u5d0e')}, '812577':{'en': 'Muika, Niigata', 'ja': u('\u516d\u65e5\u753a')}, '812576':{'en': 'Tokamachi, Niigata', 'ja': u('\u5341\u65e5\u753a')}, '812579':{'en': '', 'ja': u('\u5c0f\u51fa')}, '812578':{'en': 'Muika, Niigata', 'ja': u('\u516d\u65e5\u753a')}, '55893424':{'en': u('Paquet\u00e1 - PI'), 'pt': u('Paquet\u00e1 - PI')}, '55893425':{'en': 'Sussuapara - PI', 'pt': 'Sussuapara - PI'}, '55893426':{'en': 'Geminiano - PI', 'pt': 'Geminiano - PI'}, '55893427':{'en': u('Tanque do Piau\u00ed - PI'), 'pt': u('Tanque do Piau\u00ed - PI')}, '55893421':{'en': 'Picos - PI', 'pt': 'Picos - PI'}, '55893422':{'en': 'Picos - PI', 'pt': 'Picos - PI'}, '55893428':{'en': u('Santa Rosa do Piau\u00ed - PI'), 'pt': u('Santa Rosa do Piau\u00ed - PI')}, '55893429':{'en': u('S\u00e3o Jo\u00e3o da Canabrava - PI'), 'pt': u('S\u00e3o Jo\u00e3o da Canabrava - PI')}, '861308448':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '77162':{'en': 'Kokshetau/Krasni Yar', 'ru': u('\u041a\u043e\u043a\u0448\u0435\u0442\u0430\u0443')}, '861306878':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861306879':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861306870':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861306871':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861306872':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861306873':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861306874':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861306875':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861306876':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861306877':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '56232':{'en': 'Santiago, Metropolitan Region', 'es': u('Santiago, Regi\u00f3n Metropolitana')}, '861300931':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861306708':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '812653':{'en': 'Iida, Nagano', 'ja': u('\u98ef\u7530')}, '861306702':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '812654':{'en': 'Iida, Nagano', 'ja': u('\u98ef\u7530')}, '861306700':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861306701':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861306706':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306707':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306704':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861300936':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '592217':{'en': 'Mocha'}, '592216':{'en': 'Diamond/Grove'}, '592219':{'en': 'Georgetown,Sophia'}, '592218':{'en': 'Georgetown (S/R/Veldt)'}, '819949':{'en': '', 'ja': u('\u5927\u6839\u5360')}, '819948':{'en': 'Shibushi, Kagoshima', 'ja': u('\u5fd7\u5e03\u5fd7')}, '819945':{'en': 'Kanoya, Kagoshima', 'ja': u('\u9e7f\u5c4b')}, '817704':{'en': 'Tsuruga, Fukui', 'ja': u('\u6566\u8cc0')}, '819947':{'en': 'Shibushi, Kagoshima', 'ja': u('\u5fd7\u5e03\u5fd7')}, '817706':{'en': 'Obama, Fukui', 'ja': u('\u5c0f\u6d5c')}, '819940':{'en': 'Shibushi, Kagoshima', 'ja': u('\u5fd7\u5e03\u5fd7')}, '819943':{'en': 'Kanoya, Kagoshima', 'ja': u('\u9e7f\u5c4b')}, '817702':{'en': 'Tsuruga, Fukui', 'ja': u('\u6566\u8cc0')}, '861308166':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86130748':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '86130741':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '86130740':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '86130743':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86130742':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '86130745':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86130744':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '86130747':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '86130746':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '7867':{'en': 'Republic of North Ossetia'}, '7866':{'en': 'Kabardino-Balkarian Republic'}, '7865':{'en': 'Stavropol territory'}, '7863':{'en': 'Rostov'}, '7862':{'en': 'Sochi'}, '7861':{'en': 'Krasnodar Territory'}, '81776':{'en': 'Fukui, Fukui', 'ja': u('\u798f\u4e95')}, '772631':{'en': 'Kulan'}, '772633':{'en': 'Asa'}, '772632':{'en': 'Merke'}, '772635':{'en': 'Bauyrzhan Mamyshuly'}, '772634':{'en': 'Zhanatas'}, '772637':{'en': 'Sarykemer'}, '772636':{'en': 'Kordai'}, '772639':{'en': 'Saudakent'}, '772638':{'en': 'Tole bi'}, '861303613':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303612':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303611':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303610':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303617':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861303616':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303615':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303614':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303969':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861303968':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861303619':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861303618':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861302562':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861302563':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861302560':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861302561':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861302566':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861302567':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861302564':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861302565':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '86130525':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130524':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861302568':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861302569':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '86130521':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130520':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130523':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130522':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '5718385':{'en': u('Nari\u00f1o'), 'es': u('Nari\u00f1o')}, '5718384':{'en': 'Viota', 'es': 'Viota'}, '861300702':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '5718386':{'en': 'Apulo', 'es': 'Apulo'}, '5718381':{'en': 'Agua de Dios', 'es': 'Agua de Dios'}, '861300705':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '5718383':{'en': 'Nilo', 'es': 'Nilo'}, '861300707':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861300708':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861300709':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861308555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861308554':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861308557':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861308556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861308551':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861308553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861308552':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861306328':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861308559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '55922101':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861304397':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861304396':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861304395':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861304394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861304393':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861304392':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861304391':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861304390':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861309149':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861309148':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861304399':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861304398':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861302706':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861302707':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302704':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302705':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861302702':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302703':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302700':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302701':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302708':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302709':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861308438':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861308439':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861308436':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861308437':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861308434':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861308435':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861308432':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861308433':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861308430':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861308431':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '818393':{'en': 'Yamaguchi, Yamaguchi', 'ja': u('\u5c71\u53e3')}, '818392':{'en': 'Yamaguchi, Yamaguchi', 'ja': u('\u5c71\u53e3')}, '818391':{'en': 'Ogori, Yamaguchi', 'ja': u('\u5c0f\u90e1')}, '818390':{'en': 'Yamaguchi, Yamaguchi', 'ja': u('\u5c71\u53e3')}, '818397':{'en': 'Ogori, Yamaguchi', 'ja': u('\u5c0f\u90e1')}, '818396':{'en': 'Yamaguchi, Yamaguchi', 'ja': u('\u5c71\u53e3')}, '818395':{'en': 'Yamaguchi, Yamaguchi', 'ja': u('\u5c71\u53e3')}, '818394':{'en': 'Yamaguchi, Yamaguchi', 'ja': u('\u5c71\u53e3')}, '818399':{'en': 'Yamaguchi, Yamaguchi', 'ja': u('\u5c71\u53e3')}, '818398':{'en': 'Ogori, Yamaguchi', 'ja': u('\u5c0f\u90e1')}, '55943382':{'en': 'Sapucaia - PA', 'pt': 'Sapucaia - PA'}, '86130224':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130225':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86130222':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130654':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '55943386':{'en': 'Lindoeste - PA', 'pt': 'Lindoeste - PA'}, '55943385':{'en': u('Vila Santa F\u00e9 - PA'), 'pt': u('Vila Santa F\u00e9 - PA')}, '86130221':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861308379':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861308378':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861305938':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861305939':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861305934':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861305935':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861305936':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861305937':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861305930':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861305931':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861305932':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861305933':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861308371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861308373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861308372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861308375':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861308374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861308377':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861308376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861309369':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861309368':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '6224':{'en': 'Semarang', 'id': 'Semarang/Demak'}, '861303705':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861303704':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861303707':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861309157':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '55913116':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861303706':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861309709':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '55913110':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861309707':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861303701':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861309705':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861309704':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861309703':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861309702':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '55913119':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913118':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861309367':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861303702':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861309154':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861308678':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '55883221':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '84871':{'en': 'Ho Chi Minh City'}, '861308679':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '84873':{'en': 'Ho Chi Minh City'}, '861301426':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861301427':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '55933737':{'en': 'Almeirim - PA', 'pt': 'Almeirim - PA'}, '55933736':{'en': 'Munguba - PA', 'pt': 'Munguba - PA'}, '861301422':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861301423':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861301420':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861301421':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861309152':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861301428':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861301429':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861309153':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '55933598':{'en': 'Jamanchizinho - PA', 'pt': 'Jamanchizinho - PA'}, '55933593':{'en': 'Altamira - PA', 'pt': 'Altamira - PA'}, '55933597':{'en': 'Tabocal - PA', 'pt': 'Tabocal - PA'}, '55933596':{'en': u('S\u00e3o Jos\u00e9 - PA'), 'pt': u('S\u00e3o Jos\u00e9 - PA')}, '861309150':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861305542':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300559':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861300558':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861300555':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861300554':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861300557':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861300556':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861300551':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861300550':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861300553':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861300552':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '62474':{'en': 'Malili', 'id': 'Malili'}, '62475':{'en': 'Soroako', 'id': 'Soroako'}, '861304078':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861304079':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861303096':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '62471':{'en': 'Palopo', 'id': 'Palopo'}, '62472':{'en': 'Pitumpanua', 'id': 'Pitumpanua'}, '62473':{'en': 'Masamba', 'id': 'Masamba'}, '861304072':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304073':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304070':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304071':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304076':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304077':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304074':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861304075':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '64335':{'en': 'Christchurch'}, '81964':{'en': '', 'ja': u('\u677e\u6a4b')}, '64337':{'en': 'Christchurch'}, '64331':{'en': 'Rangiora/Amberley/Culverden/Darfield/Cheviot/Kaikoura'}, '64330':{'en': 'Ashburton/Akaroa/Chatham Islands'}, '64333':{'en': 'Christchurch'}, '64332':{'en': 'Christchurch'}, '81969':{'en': 'Amakusa, Kumamoto', 'ja': u('\u5929\u8349')}, '64338':{'en': 'Christchurch'}, '861302953':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861302952':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861302951':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861302950':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861302957':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861302956':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861302955':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861302954':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861302959':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861302958':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861308036':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861304374':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861308037':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '62650':{'en': 'Sinabang', 'id': 'Sinabang'}, '62651':{'en': 'Banda Aceh/Jantho/Lamno', 'id': 'Banda Aceh/Jantho/Lamno'}, '62652':{'en': 'Sabang', 'id': 'Sabang'}, '62653':{'en': 'Sigli', 'id': 'Sigli'}, '62654':{'en': 'Calang', 'id': 'Calang'}, '62655':{'en': 'Meulaboh', 'id': 'Meulaboh'}, '62656':{'en': 'Tapaktuan', 'id': 'Tapaktuan'}, '62657':{'en': 'Bakongan', 'id': 'Bakongan'}, '62658':{'en': 'Singkil', 'id': 'Singkil'}, '62659':{'en': 'Blangpidie', 'id': 'Blangpidie'}, '861303398':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861303399':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '55883421':{'en': 'Aracati - CE', 'pt': 'Aracati - CE'}, '55883420':{'en': u('S\u00e3o Jo\u00e3o do Jaguaribe - CE'), 'pt': u('S\u00e3o Jo\u00e3o do Jaguaribe - CE')}, '55883423':{'en': 'Limoeiro do Norte - CE', 'pt': 'Limoeiro do Norte - CE'}, '55883422':{'en': 'Morada Nova - CE', 'pt': 'Morada Nova - CE'}, '55883424':{'en': 'Tabuleiro do Norte - CE', 'pt': 'Tabuleiro do Norte - CE'}, '812939':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '812938':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '772332':{'en': 'Shemonaikha'}, '812930':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '812933':{'en': 'Takahagi, Ibaraki', 'ja': u('\u9ad8\u8429')}, '55883426':{'en': u('Banabui\u00fa - CE'), 'pt': u('Banabui\u00fa - CE')}, '812935':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '812934':{'en': 'Takahagi, Ibaraki', 'ja': u('\u9ad8\u8429')}, '812937':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '812936':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '861304634':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '86130416':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861304635':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861304636':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861304637':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861303861':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '86130263':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130261':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130266':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130267':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861304631':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861304632':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861303913':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '77283016':{'ru': u('\u041a\u0443\u0440\u0430\u043a\u0441\u0443, \u0410\u043a\u0441\u0443\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '77283015':{'ru': u('\u0415\u0433\u0438\u043d\u0441\u0443, \u0410\u043a\u0441\u0443\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '55913346':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913344':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861303918':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '8152':{'en': 'Nagoya, Aichi', 'ja': u('\u540d\u53e4\u5c4b')}, '861306526':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861303919':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861302045':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861302044':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861302047':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861302046':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861302041':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861302040':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861302043':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861302042':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861302049':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861302048':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '811352':{'en': 'Yoichi, Hokkaido', 'ja': u('\u4f59\u5e02')}, '811353':{'en': 'Yoichi, Hokkaido', 'ja': u('\u4f59\u5e02')}, '811354':{'en': 'Yoichi, Hokkaido', 'ja': u('\u4f59\u5e02')}, '811356':{'en': 'Iwanai, Hokkaido', 'ja': u('\u5ca9\u5185')}, '811357':{'en': 'Iwanai, Hokkaido', 'ja': u('\u5ca9\u5185')}, '861309498':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861307491':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307490':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307493':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307492':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307495':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307494':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861307497':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307496':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307499':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861307498':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '812559':{'en': 'Yasuzuka, Niigata', 'ja': u('\u5b89\u585a')}, '812558':{'en': '', 'ja': u('\u65b0\u4e95')}, '812553':{'en': 'Joetsu, Niigata', 'ja': u('\u4e0a\u8d8a')}, '812552':{'en': 'Joetsu, Niigata', 'ja': u('\u4e0a\u8d8a')}, '812551':{'en': 'Joetsu, Niigata', 'ja': u('\u4e0a\u8d8a')}, '812550':{'en': 'Yasuzuka, Niigata', 'ja': u('\u5b89\u585a')}, '812557':{'en': '', 'ja': u('\u65b0\u4e95')}, '812556':{'en': 'Itoigawa, Niigata', 'ja': u('\u7cf8\u9b5a\u5ddd')}, '812555':{'en': 'Itoigawa, Niigata', 'ja': u('\u7cf8\u9b5a\u5ddd')}, '812554':{'en': 'Joetsu, Niigata', 'ja': u('\u4e0a\u8d8a')}, '861300065':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861300064':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300067':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300066':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '55983346':{'en': 'Bacabeira - MA', 'pt': 'Bacabeira - MA'}, '55983345':{'en': u('Ros\u00e1rio - MA'), 'pt': u('Ros\u00e1rio - MA')}, '77102':{'en': 'Zhezkazgan', 'ru': u('\u0416\u0435\u0437\u043a\u0430\u0437\u0433\u0430\u043d')}, '861300061':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '55983349':{'en': 'Barreirinhas - MA', 'pt': 'Barreirinhas - MA'}, '81423':{'en': 'Kokubunji, Tokyo', 'ja': u('\u56fd\u5206\u5bfa')}, '81425':{'en': 'Tachikawa, Tokyo', 'ja': u('\u7acb\u5ddd')}, '81426':{'en': 'Hachioji, Tokyo', 'ja': u('\u516b\u738b\u5b50')}, '81427':{'en': 'Sagamihara, Kanagawa', 'ja': u('\u76f8\u6a21\u539f')}, '861300063':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300062':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '55963242':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963243':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963244':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861301098':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861301097':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861301096':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861301095':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861301094':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861301093':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861301092':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861301091':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861305548':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861308018':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861308768':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '817727':{'en': '', 'ja': u('\u5cf0\u5c71')}, '817726':{'en': '', 'ja': u('\u5cf0\u5c71')}, '817725':{'en': 'Miyazu, Kyoto', 'ja': u('\u5bae\u6d25')}, '817724':{'en': 'Miyazu, Kyoto', 'ja': u('\u5bae\u6d25')}, '81288':{'en': 'Imabari, Ehime', 'ja': u('\u4eca\u5e02')}, '817722':{'en': 'Miyazu, Kyoto', 'ja': u('\u5bae\u6d25')}, '81284':{'en': 'Ashikaga, Tochigi', 'ja': u('\u8db3\u5229')}, '81286':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '81280':{'en': 'Koga, Ibaraki', 'ja': u('\u53e4\u6cb3')}, '81281':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '81282':{'en': 'Tochigi, Tochigi', 'ja': u('\u6803\u6728')}, '817728':{'en': '', 'ja': u('\u5cf0\u5c71')}, '86130729':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86130728':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86130727':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130726':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '86130725':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86130724':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130723':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130722':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130721':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130720':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '7848':{'en': 'Tolyatti'}, '7845':{'en': 'Saratov'}, '7844':{'en': 'Volgograd'}, '7847':{'en': 'Republic of Kalmykia'}, '7846':{'en': 'Samara'}, '7841':{'en': 'Penza'}, '7843':{'en': 'Republic of Tatarstan'}, '7842':{'en': 'Ulyanovsk'}, '772348':{'en': 'Kokpekty'}, '772345':{'en': 'Shar'}, '772344':{'en': 'Akzhar'}, '772347':{'en': 'Kalbatau'}, '772346':{'en': 'Aksuat'}, '772341':{'en': 'Ulken Naryn'}, '772340':{'en': 'Zaisan'}, '772343':{'en': 'Terekty'}, '772342':{'en': 'Katon-Karagai'}, '861303947':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861303946':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861303945':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861303944':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861303943':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '814243':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '861303941':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861303940':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '81460':{'en': 'Odawara, Kanagawa', 'ja': u('\u5c0f\u7530\u539f')}, '814242':{'en': '', 'ja': u('\u6b66\u8535\u91ce\u4e09\u9df9')}, '861303949':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861303948':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '86130094':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861300766':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861300767':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861300764':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861300765':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861300762':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861300763':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861300760':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861300761':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861308573':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861308572':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861308571':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861308570':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861308577':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861308576':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300768':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861300769':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '55922123':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861304449':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '55922121':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55922127':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55922125':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861304443':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '81468':{'en': 'Yokosuka, Kanagawa', 'ja': u('\u6a2a\u9808\u8cc0')}, '861304441':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '55922129':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861304447':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861304446':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861304445':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861304444':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '55983386':{'en': u('Guimar\u00e3es - MA'), 'pt': u('Guimar\u00e3es - MA')}, '57184331':{'en': 'Ninaima', 'es': 'Ninaima'}, '861308916':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '55983382':{'en': 'Santa Helena - MA', 'pt': 'Santa Helena - MA'}, '818378':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u95a2')}, '818375':{'en': 'Mine, Yamaguchi', 'ja': u('\u7f8e\u7962')}, '818374':{'en': 'Nagato, Yamaguchi', 'ja': u('\u9577\u9580')}, '818377':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u95a2')}, '818373':{'en': 'Nagato, Yamaguchi', 'ja': u('\u9577\u9580')}, '818372':{'en': 'Nagato, Yamaguchi', 'ja': u('\u9577\u9580')}, '861301424':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '55923652':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923651':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923657':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923656':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302724':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861302725':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '55923659':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923658':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302720':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861302721':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861302722':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861302723':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861300469':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861300468':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '55913287':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913286':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913285':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913284':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913283':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913281':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913289':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913288':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '771335':{'en': 'Shalkar'}, '771334':{'en': 'Emba'}, '771337':{'en': 'Alga'}, '771336':{'en': 'Khromtau'}, '771331':{'en': 'Martuk'}, '861300467':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '771333':{'en': 'Kandyagash'}, '771332':{'en': 'Uil'}, '771448':{'en': 'Oktyabrskoye'}, '771339':{'en': 'Komsomolskoye'}, '8457':{'en': 'Phu Yen province', 'vi': u('Ph\u00fa Y\u00ean')}, '8456':{'en': 'Binh Dinh province', 'vi': u('B\u00ecnh \u0110\u1ecbnh')}, '8455':{'en': 'Quang Ngai province', 'vi': u('Qu\u1ea3ng Ng\u00e3i')}, '8454':{'en': 'Thua Thien-Hue province', 'vi': u('Th\u1eeba Thi\u00ean-Hu\u1ebf')}, '8453':{'en': 'Quang Tri province', 'vi': u('Qu\u1ea3ng Tr\u1ecb')}, '8452':{'en': 'Quang Binh province', 'vi': u('Qu\u1ea3ng B\u00ecnh')}, '55913131':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '8459':{'en': 'Gia Lai province', 'vi': 'Gia Lai'}, '8458':{'en': 'Khanh Hoa province', 'vi': u('Kh\u00e1nh H\u00f2a')}, '861309765':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861309764':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861309767':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861309766':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861309761':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861309760':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861309763':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861309762':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861309769':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309768':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '55873991':{'en': 'Vermelho - PE', 'pt': 'Vermelho - PE'}, '861308257':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861309428':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861309429':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861309426':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861309427':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861309424':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861308255':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861309422':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861309423':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861309420':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861309421':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861301408':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861301409':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861301158':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301159':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301156':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301157':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301154':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861301407':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861301152':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301401':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861301402':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861301151':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '811585':{'en': 'Engaru, Hokkaido', 'ja': u('\u9060\u8efd')}, '861304549':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '811584':{'en': 'Engaru, Hokkaido', 'ja': u('\u9060\u8efd')}, '811587':{'en': 'Nakayubetsu, Hokkaido', 'ja': u('\u4e2d\u6e67\u5225')}, '861304019':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861308384':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861308385':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861308386':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '811586':{'en': 'Nakayubetsu, Hokkaido', 'ja': u('\u4e2d\u6e67\u5225')}, '861308380':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861303048':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861308382':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861308383':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861308388':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861308389':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861309394':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861304014':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861309396':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861309397':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861309390':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '771531':{'en': 'Bulayevo'}, '861309392':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861304015':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861309475':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861309398':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861304016':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861304017':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861304010':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861304011':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305099':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861305098':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861304012':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305093':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861305092':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861305091':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861304013':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305097':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861305096':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861305095':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861305094':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861300573':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861300572':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861300571':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861300570':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861300577':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861300576':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861300575':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861300574':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861300579':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861300578':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861304050':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '62413':{'en': 'Bulukumba/Bantaeng', 'id': 'Bulukumba/Bantaeng'}, '62410':{'en': 'Pangkep', 'id': 'Pangkep'}, '62411':{'en': 'Makassar', 'id': 'Makassar/Maros/Sungguminasa'}, '861304054':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '62417':{'en': 'Malino', 'id': 'Malino'}, '62414':{'en': 'Kepulauan Selayar', 'id': 'Kepulauan Selayar'}, '861304057':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861304058':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861304059':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '62418':{'en': 'Takalar', 'id': 'Takalar'}, '62419':{'en': 'Jeneponto', 'id': 'Jeneponto'}, '81942':{'en': 'Kurume, Fukuoka', 'ja': u('\u4e45\u7559\u7c73')}, '81940':{'en': 'Munakata, Fukuoka', 'ja': u('\u5b97\u50cf')}, '81947':{'en': 'Tagawa, Fukuoka', 'ja': u('\u7530\u5ddd')}, '81946':{'en': 'Amagi, Fukuoka', 'ja': u('\u7518\u6728')}, '81944':{'en': 'Setaka, Fukuoka', 'ja': u('\u702c\u9ad8')}, '81949':{'en': 'Nogata, Fukuoka', 'ja': u('\u76f4\u65b9')}, '81948':{'en': 'Iizuka, Fukuoka', 'ja': u('\u98ef\u585a')}, '861309137':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '7302':{'en': 'Chita'}, '812911':{'en': 'Hokota, Ibaraki', 'ja': u('\u927e\u7530')}, '7301':{'en': 'Republic of Buryatia'}, '812917':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '812914':{'en': 'Hokota, Ibaraki', 'ja': u('\u927e\u7530')}, '772153':{'en': 'Topar'}, '772154':{'en': 'Botakara'}, '772156':{'en': 'Shakhtinsk'}, '861308967':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '86130281':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86130283':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130286':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86130288':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130289':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861304275':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861302069':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861302068':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861302063':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861302062':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861302061':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861302060':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861302067':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861302066':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861302065':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861302064':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '55913556':{'en': u('Senador Jos\u00e9 Porf\u00edrio - PA'), 'pt': u('Senador Jos\u00e9 Porf\u00edrio - PA')}, '811332':{'en': 'Tobetsu, Hokkaido', 'ja': u('\u5f53\u5225')}, '811333':{'en': 'Tobetsu, Hokkaido', 'ja': u('\u5f53\u5225')}, '811336':{'en': 'Ishikari, Hokkaido', 'ja': u('\u77f3\u72e9')}, '811337':{'en': 'Ishikari, Hokkaido', 'ja': u('\u77f3\u72e9')}, '861309360':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '55983369':{'en': u('Santo Amaro do Maranh\u00e3o - MA'), 'pt': u('Santo Amaro do Maranh\u00e3o - MA')}, '55983368':{'en': 'Primeira Cruz - MA', 'pt': 'Primeira Cruz - MA'}, '77122':{'en': 'Atyrau', 'ru': u('\u0410\u0442\u044b\u0440\u0430\u0443')}, '812586':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '55983361':{'en': u('Axix\u00e1 - MA'), 'pt': u('Axix\u00e1 - MA')}, '55983363':{'en': 'Morros - MA', 'pt': 'Morros - MA'}, '55983362':{'en': 'Icatu - MA', 'pt': 'Icatu - MA'}, '55983367':{'en': 'Humberto de Campos - MA', 'pt': 'Humberto de Campos - MA'}, '812588':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '861306079':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '812589':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '861306290':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861306291':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861306292':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861306293':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861306294':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861306295':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861306296':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861306297':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861306298':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861306299':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861306528':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861306529':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '55963261':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861303942':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861300968':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300969':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300960':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861300961':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300962':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300963':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300964':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300965':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300966':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300967':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861306746':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306747':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306744':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306745':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306742':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306743':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306740':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306741':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306748':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306749':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '817965':{'en': 'Toyooka, Hyogo', 'ja': u('\u8c4a\u5ca1')}, '817964':{'en': 'Toyooka, Hyogo', 'ja': u('\u8c4a\u5ca1')}, '817967':{'en': '', 'ja': u('\u516b\u9e7f')}, '817966':{'en': '', 'ja': u('\u516b\u9e7f')}, '817960':{'en': '', 'ja': u('\u516b\u9e7f')}, '817963':{'en': 'Toyooka, Hyogo', 'ja': u('\u8c4a\u5ca1')}, '817962':{'en': 'Toyooka, Hyogo', 'ja': u('\u8c4a\u5ca1')}, '861309350':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '817969':{'en': 'Hamasaka, Hyogo', 'ja': u('\u6d5c\u5742')}, '817968':{'en': 'Hamasaka, Hyogo', 'ja': u('\u6d5c\u5742')}, '861307959':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861304277':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861309351':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861309113':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86130705':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '86130707':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86130706':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '86130701':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861309352':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '86130875':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86130702':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130709':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '86130708':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '7821':{'en': 'Komi Republic'}, '7820':{'en': 'Cherepovets'}, '55883410':{'en': u('Itai\u00e7aba - CE'), 'pt': u('Itai\u00e7aba - CE')}, '55883411':{'en': 'Russas - CE', 'pt': 'Russas - CE'}, '55883412':{'en': u('Quixad\u00e1 - CE'), 'pt': u('Quixad\u00e1 - CE')}, '55883413':{'en': 'Fortim - CE', 'pt': 'Fortim - CE'}, '55883414':{'en': u('Quixad\u00e1 - CE'), 'pt': u('Quixad\u00e1 - CE')}, '55883415':{'en': 'Palhano - CE', 'pt': 'Palhano - CE'}, '55883416':{'en': u('Tau\u00e1 - CE'), 'pt': u('Tau\u00e1 - CE')}, '55913424':{'en': u('Reden\u00e7\u00e3o - PA'), 'pt': u('Reden\u00e7\u00e3o - PA')}, '55883418':{'en': 'Jaguaruana - CE', 'pt': 'Jaguaruana - CE'}, '55883419':{'en': 'Arneiroz - CE', 'pt': 'Arneiroz - CE'}, '55913429':{'en': 'Viseu - PA', 'pt': 'Viseu - PA'}, '861303926':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861303921':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303920':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303923':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861303922':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861301219':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301218':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861301211':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861301210':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861301213':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861301212':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861301215':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301214':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301217':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301216':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861309354':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861300038':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861301051':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300748':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861300749':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861300744':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861300745':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861300030':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300747':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861300740':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861300741':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861300034':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861300035':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861308591':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861308590':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861308593':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861308592':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861308595':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861308594':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861308597':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '861308596':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861308599':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861308598':{'en': 'Tianshui, Gansu', 'zh': u('\u7518\u8083\u7701\u5929\u6c34\u5e02')}, '86130769':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861309355':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861309181':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861301050':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861309183':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '86130768':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861309185':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861309184':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861309187':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861309186':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861309189':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861309188':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861304270':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861309356':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861309110':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861309357':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861302528':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861302529':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861302526':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861302527':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861302524':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861301055':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861302522':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861302523':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861302520':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861302521':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '62755':{'en': 'Solok', 'id': 'Solok'}, '62754':{'en': 'Sijunjung', 'id': 'Sijunjung'}, '62757':{'en': 'Balai Selasa', 'id': 'Balai Selasa'}, '62756':{'en': 'Painan', 'id': 'Painan'}, '62751':{'en': 'Padang/Pariaman', 'id': 'Padang/Pariaman'}, '62753':{'en': 'Lubuk Sikaping', 'id': 'Lubuk Sikaping'}, '62752':{'en': 'Bukittinggi/Padang Panjang/Payakumbuh/Batusangkar', 'id': 'Bukittinggi/Padang Panjang/Payakumbuh/Batusangkar'}, '62730':{'en': 'Pagar Alam/Kota Agung', 'id': 'Pagar Alam/Kota Agung'}, '861301054':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861309299':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '55923671':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923673':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923672':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923675':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861303989':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861303988':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861309291':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861309290':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '55963014':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861309292':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861309295':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861309294':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861309297':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861309296':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861308770':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '55913278':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55873221':{'en': 'Garanhuns - PE', 'pt': 'Garanhuns - PE'}, '861306999':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861306998':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861306993':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861306992':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861306991':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861306990':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861306997':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861306996':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861306995':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861306994':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861309749':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861309748':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '8479':{'en': 'Soc Trang province', 'vi': u('S\u00f3c Tr\u0103ng')}, '8475':{'en': 'Ben Tre province', 'vi': u('B\u1ebfn Tre')}, '8474':{'en': 'Tra Vinh province', 'vi': u('Tr\u00e0 Vinh')}, '8477':{'en': 'Kien Giang province', 'vi': u('Ki\u00ean Giang')}, '8476':{'en': 'An Giang province', 'vi': 'An Giang'}, '861309747':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '8470':{'en': 'Vinh Long province', 'vi': u('V\u0129nh Long')}, '8473':{'en': 'Tien Giang province', 'vi': u('Ti\u1ec1n Giang')}, '8472':{'en': 'Long An province', 'vi': 'Long An'}, '86130505':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861308838':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '86130504':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861308832':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861308833':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861308830':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861308831':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861308836':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861308837':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861308834':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861308835':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861309404':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861309405':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861309406':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861309407':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861309400':{'en': 'Altay, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u52d2\u6cf0\u5730\u533a')}, '861309401':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861309402':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861309403':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861309408':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861309409':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861301174':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861301175':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861301176':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861301177':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861301170':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861301171':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861301172':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861301173':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861301178':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861301179':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861305493':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861308539':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861306705':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305071':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861302900':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861305073':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861305072':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861305075':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861305074':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861305077':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861302901':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861305079':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861305078':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861308147':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861306962':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861306963':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861306961':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861306966':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861302907':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861308148':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861308149':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861306964':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861306965':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '62438':{'en': 'Bitung', 'id': 'Bitung'}, '861304037':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861304034':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861304035':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861304032':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861304033':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861304030':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '62929':{'en': 'Sanana', 'id': 'Sanana'}, '62430':{'en': 'Amurang', 'id': 'Amurang'}, '62927':{'en': 'Labuha', 'id': 'Labuha'}, '62924':{'en': 'Tobelo', 'id': 'Tobelo'}, '861304408':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '62922':{'en': 'Jailolo', 'id': 'Jailolo'}, '62923':{'en': 'Morotai', 'id': 'Morotai'}, '861304038':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '62921':{'en': 'Soasiu', 'id': 'Soasiu'}, '81929':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '81928':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '861304707':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861309126':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861304700':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '64373':{'en': 'Greymouth'}, '81922':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '64375':{'en': 'Hokitika/Franz Josef Glacier/Fox Glacier/Haast'}, '81924':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '81927':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '81926':{'en': 'Fukuoka, Fukuoka', 'ja': u('\u798f\u5ca1')}, '861304404':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861304874':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861309123':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861304875':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '55973391':{'en': u('Tapau\u00e1 - AM'), 'pt': u('Tapau\u00e1 - AM')}, '861309122':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861309121':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861305654':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861309120':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861309558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861304266':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861308015':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861309559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861303369':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '86130110':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130111':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130112':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130113':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130118':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861305652':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861303028':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861303029':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '772138':{'en': 'Gabidena Mustafina'}, '55883628':{'en': u('Santa Quit\u00e9ria - CE'), 'pt': u('Santa Quit\u00e9ria - CE')}, '55883623':{'en': 'Barroquinha - CE', 'pt': 'Barroquinha - CE'}, '861303021':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '55883621':{'en': 'Camocim - CE', 'pt': 'Camocim - CE'}, '772131':{'en': 'Abai'}, '55883627':{'en': u('Martin\u00f3pole - CE'), 'pt': u('Martin\u00f3pole - CE')}, '772137':{'en': 'Saran'}, '55883625':{'en': 'Chaval - CE', 'pt': 'Chaval - CE'}, '55883624':{'en': 'Granja - CE', 'pt': 'Granja - CE'}, '861303367':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861301577':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861303366':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861301578':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '55943301':{'en': u('Maracaj\u00e1 - PA'), 'pt': u('Maracaj\u00e1 - PA')}, '55943305':{'en': 'Bannach - PA', 'pt': 'Bannach - PA'}, '55943309':{'en': 'Cumaru do Norte - PA', 'pt': 'Cumaru do Norte - PA'}, '55873764':{'en': 'Garanhuns - PE', 'pt': 'Garanhuns - PE'}, '55873761':{'en': 'Garanhuns - PE', 'pt': 'Garanhuns - PE'}, '55873763':{'en': 'Garanhuns - PE', 'pt': 'Garanhuns - PE'}, '861309112':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '84351':{'en': 'Ha Nam province', 'vi': u('H\u00e0 Nam')}, '84350':{'en': 'Nam Dinh province', 'vi': u('Nam \u0110\u1ecbnh')}, '861302081':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861302080':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861302083':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861302082':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '55923020':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923021':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302087':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861302086':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861302089':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861302088':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '55923028':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861307957':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861308627':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861308626':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861308625':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861308624':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861308623':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861308622':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861308621':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861308620':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861308629':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861308628':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '811642':{'en': '', 'ja': u('\u77f3\u72e9\u6df1\u5ddd')}, '811643':{'en': '', 'ja': u('\u77f3\u72e9\u6df1\u5ddd')}, '861309111':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '811646':{'en': 'Haboro, Hokkaido', 'ja': u('\u7fbd\u5e4c')}, '811647':{'en': 'Haboro, Hokkaido', 'ja': u('\u7fbd\u5e4c')}, '811644':{'en': 'Rumoi, Hokkaido', 'ja': u('\u7559\u840c')}, '811645':{'en': 'Rumoi, Hokkaido', 'ja': u('\u7559\u840c')}, '811648':{'en': '', 'ja': u('\u713c\u5c3b')}, '861309116':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861309117':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '55983304':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983302':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861309114':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861308017':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861309115':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861300908':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861300909':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861300906':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861300907':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861300904':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861300905':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861300902':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861300903':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861300900':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861300901':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '819673':{'en': '', 'ja': u('\u718a\u672c\u4e00\u306e\u5bae')}, '819672':{'en': '', 'ja': u('\u718a\u672c\u4e00\u306e\u5bae')}, '819677':{'en': '', 'ja': u('\u77e2\u90e8')}, '819676':{'en': 'Takamori, Kumamoto', 'ja': u('\u9ad8\u68ee')}, '819675':{'en': '', 'ja': u('\u718a\u672c\u4e00\u306e\u5bae')}, '819674':{'en': '', 'ja': u('\u718a\u672c\u4e00\u306e\u5bae')}, '819679':{'en': 'Takamori, Kumamoto', 'ja': u('\u9ad8\u68ee')}, '819678':{'en': '', 'ja': u('\u77e2\u90e8')}, '8199336':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '861300922':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '817949':{'en': 'Kakogawa, Hyogo', 'ja': u('\u52a0\u53e4\u5ddd')}, '817948':{'en': 'Miki, Hyogo', 'ja': u('\u4e09\u6728')}, '817947':{'en': 'Miki, Hyogo', 'ja': u('\u4e09\u6728')}, '817946':{'en': 'Miki, Hyogo', 'ja': u('\u4e09\u6728')}, '817945':{'en': 'Kakogawa, Hyogo', 'ja': u('\u52a0\u53e4\u5ddd')}, '817944':{'en': 'Kakogawa, Hyogo', 'ja': u('\u52a0\u53e4\u5ddd')}, '817943':{'en': 'Kakogawa, Hyogo', 'ja': u('\u52a0\u53e4\u5ddd')}, '817942':{'en': 'Kakogawa, Hyogo', 'ja': u('\u52a0\u53e4\u5ddd')}, '817940':{'en': 'Kakogawa, Hyogo', 'ja': u('\u52a0\u53e4\u5ddd')}, '8199332':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199333':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '6644':{'en': 'Buri Ram/Chaiyaphum/Nakhon Ratchasima/Surin', 'th': u('\u0e1a\u0e38\u0e23\u0e35\u0e23\u0e31\u0e21\u0e22\u0e4c/\u0e0a\u0e31\u0e22\u0e20\u0e39\u0e21\u0e34/\u0e19\u0e04\u0e23\u0e23\u0e32\u0e0a\u0e2a\u0e35\u0e21\u0e32/\u0e2a\u0e38\u0e23\u0e34\u0e19\u0e17\u0e23\u0e4c')}, '6645':{'en': 'Amnat Charoen/Si Sa Ket/Ubon Ratchathani/Yasothon', 'th': u('\u0e2d\u0e33\u0e19\u0e32\u0e08\u0e40\u0e08\u0e23\u0e34\u0e0d/\u0e28\u0e23\u0e35\u0e2a\u0e30\u0e40\u0e01\u0e29/\u0e2d\u0e38\u0e1a\u0e25\u0e23\u0e32\u0e0a\u0e18\u0e32\u0e19\u0e35/\u0e22\u0e42\u0e2a\u0e18\u0e23')}, '6642':{'en': 'Loei/Mukdahan/Nakhon Phanom/Nong Khai/Sakon Nakhon/Udon Thani', 'th': u('\u0e40\u0e25\u0e22/\u0e21\u0e38\u0e01\u0e14\u0e32\u0e2b\u0e32\u0e23/\u0e19\u0e04\u0e23\u0e1e\u0e19\u0e21/\u0e2b\u0e19\u0e2d\u0e07\u0e04\u0e32\u0e22/\u0e2a\u0e01\u0e25\u0e19\u0e04\u0e23/\u0e2d\u0e38\u0e14\u0e23\u0e18\u0e32\u0e19\u0e35')}, '6643':{'en': 'Kalasin/Khon Kaen/Maha Sarakham/Roi Et', 'th': u('\u0e01\u0e32\u0e2c\u0e2a\u0e34\u0e19\u0e18\u0e38\u0e4c/\u0e02\u0e2d\u0e19\u0e41\u0e01\u0e48\u0e19/\u0e21\u0e2b\u0e32\u0e2a\u0e32\u0e23\u0e04\u0e32\u0e21/\u0e23\u0e49\u0e2d\u0e22\u0e40\u0e2d\u0e47\u0e14')}, '861308021':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861308020':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861308023':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861308022':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861308025':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861308024':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861308027':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308026':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308029':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861308028':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '55883436':{'en': 'Itatira - CE', 'pt': 'Itatira - CE'}, '55883437':{'en': u('Tau\u00e1 - CE'), 'pt': u('Tau\u00e1 - CE')}, '55883434':{'en': u('Erer\u00ea - CE'), 'pt': u('Erer\u00ea - CE')}, '55883435':{'en': 'Potiretama - CE', 'pt': 'Potiretama - CE'}, '55883432':{'en': u('Icapu\u00ed - CE'), 'pt': u('Icapu\u00ed - CE')}, '55883433':{'en': 'Aracati - CE', 'pt': 'Aracati - CE'}, '861303905':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '55883431':{'en': u('Itapi\u00fana - CE'), 'pt': u('Itapi\u00fana - CE')}, '861303909':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861303908':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '55883438':{'en': u('Chor\u00f3 - CE'), 'pt': u('Chor\u00f3 - CE')}, '55883439':{'en': 'Ibaretama - CE', 'pt': 'Ibaretama - CE'}, '861300010':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861300011':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861300012':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '861300013':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '861300014':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '861300015':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861300016':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300017':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300018':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '861300019':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '571845340':{'en': 'La Florida', 'es': 'La Florida'}, '571845341':{'en': 'La Florida', 'es': 'La Florida'}, '571845342':{'en': 'La Florida', 'es': 'La Florida'}, '571845343':{'en': 'La Florida', 'es': 'La Florida'}, '571845344':{'en': 'La Florida', 'es': 'La Florida'}, '571845345':{'en': 'La Florida', 'es': 'La Florida'}, '861304487':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861304486':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304485':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304484':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304483':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304482':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861304481':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861304480':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861304489':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861304488':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '86130766':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '86130666':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '55983689':{'en': u('Z\u00e9 Doca - MA'), 'pt': u('Z\u00e9 Doca - MA')}, '86130667':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '55983683':{'en': 'Satubinha - MA', 'pt': 'Satubinha - MA'}, '55983681':{'en': u('Santa In\u00eas - MA'), 'pt': u('Santa In\u00eas - MA')}, '86130588':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86130587':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86130586':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86130585':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '86130581':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130580':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '62773':{'en': 'Ranai', 'id': 'Ranai'}, '62772':{'en': 'Tarempa', 'id': 'Tarempa'}, '62771':{'en': 'Tanjung Pinang', 'id': 'Tanjung Pinang'}, '861303276':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '62777':{'en': 'Karimun', 'id': 'Karimun'}, '62776':{'en': 'Dabosingkep', 'id': 'Dabosingkep'}, '861303273':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861303272':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '62779':{'en': 'Tanjungbatu', 'id': 'Tanjungbatu'}, '62778':{'en': 'Batam', 'id': 'Batam'}, '861303279':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861303278':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '55923618':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923617':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923616':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923615':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923614':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923613':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923612':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923611':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '812896':{'en': 'Kanuma, Tochigi', 'ja': u('\u9e7f\u6cbc')}, '812897':{'en': 'Kanuma, Tochigi', 'ja': u('\u9e7f\u6cbc')}, '812894':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '812895':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '812892':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '812893':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '812890':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '86130669':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '812898':{'en': 'Kanuma, Tochigi', 'ja': u('\u9e7f\u6cbc')}, '812899':{'en': 'Kanuma, Tochigi', 'ja': u('\u9e7f\u6cbc')}, '68685':{'en': 'Kanton'}, '68684':{'en': 'Washington'}, '68681':{'en': 'Kiritimati'}, '68683':{'en': 'Fanning'}, '68682':{'en': 'Kiritimati'}, '86130329':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '86130328':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86130323':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130322':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130321':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130326':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86130324':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '812478':{'en': 'Miharu, Fukushima', 'ja': u('\u4e09\u6625')}, '818808':{'en': 'Tosashimizu, Kochi', 'ja': u('\u571f\u4f50\u6e05\u6c34')}, '818807':{'en': 'Sukumo, Kochi', 'ja': u('\u5bbf\u6bdb')}, '818806':{'en': 'Sukumo, Kochi', 'ja': u('\u5bbf\u6bdb')}, '818805':{'en': '', 'ja': u('\u571f\u4f50\u4e2d\u6751')}, '812473':{'en': 'Ishikawa, Fukushima', 'ja': u('\u77f3\u5ddd')}, '812474':{'en': 'Ishikawa, Fukushima', 'ja': u('\u77f3\u5ddd')}, '812475':{'en': 'Ishikawa, Fukushima', 'ja': u('\u77f3\u5ddd')}, '812476':{'en': 'Miharu, Fukushima', 'ja': u('\u4e09\u6625')}, '812477':{'en': 'Miharu, Fukushima', 'ja': u('\u4e09\u6625')}, '55913243':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913242':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913241':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913246':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913245':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913244':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913249':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913248':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861309363':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '55873202':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55873201':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '8264':{'ar': u('\u062c\u064a\u062c\u0648 \u062f\u0648'), 'bg': u('\u0427\u0435\u0434\u0436\u0443-\u0434\u043e'), 'ca': 'Jeju-do', 'cs': u('\u010ced\u017eu'), 'en': 'Jeju', 'es': 'Jeju', 'fi': 'Jeju', 'fr': 'Jejudo', 'hi': u('\u091c\u0947\u091c\u0942-\u0921\u094b'), 'hu': 'Csedzsu', 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05d2\'\u05d2\'\u05d5'), 'ja': u('\u6e08\u5dde\u7279\u5225\u81ea\u6cbb\u9053'), 'ko': u('\uc81c\uc8fc'), 'tr': 'Jeju', 'zh': u('\u6d4e\u5dde\u9053'), 'zh_Hant': u('\u6fdf\u5dde\u9053')}, '861306970':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861306973':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861306972':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861306975':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861306974':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861306977':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861306976':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861306979':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861306978':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '55963697':{'en': 'Chaves - PA', 'pt': 'Chaves - PA'}, '861308810':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861308811':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861308812':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861308813':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861308814':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861308815':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861308816':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861308817':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861308818':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861308819':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '55893589':{'en': 'Caracol - PI', 'pt': 'Caracol - PI'}, '55893588':{'en': u('An\u00edsio de Abreu - PI'), 'pt': u('An\u00edsio de Abreu - PI')}, '86130919':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '55893582':{'en': u('S\u00e3o Raimundo Nonato - PI'), 'pt': u('S\u00e3o Raimundo Nonato - PI')}, '55893580':{'en': u('Dom Inoc\u00eancio - PI'), 'pt': u('Dom Inoc\u00eancio - PI')}, '55893587':{'en': 'Dirceu Arcoverde - PI', 'pt': 'Dirceu Arcoverde - PI'}, '55893585':{'en': u('Coronel Jos\u00e9 Dias - PI'), 'pt': u('Coronel Jos\u00e9 Dias - PI')}, '811878':{'en': 'Omagari, Akita', 'ja': u('\u5927\u66f2')}, '861302999':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '811873':{'en': 'Kakunodate, Akita', 'ja': u('\u89d2\u9928')}, '861302998':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '811875':{'en': 'Kakunodate, Akita', 'ja': u('\u89d2\u9928')}, '811874':{'en': 'Kakunodate, Akita', 'ja': u('\u89d2\u9928')}, '811877':{'en': 'Omagari, Akita', 'ja': u('\u5927\u66f2')}, '811876':{'en': 'Omagari, Akita', 'ja': u('\u5927\u66f2')}, '812782':{'en': 'Numata, Gunma', 'ja': u('\u6cbc\u7530')}, '812783':{'en': 'Numata, Gunma', 'ja': u('\u6cbc\u7530')}, '812780':{'en': 'Maebashi, Gunma', 'ja': u('\u524d\u6a4b')}, '812786':{'en': 'Numata, Gunma', 'ja': u('\u6cbc\u7530')}, '812787':{'en': 'Numata, Gunma', 'ja': u('\u6cbc\u7530')}, '812784':{'en': 'Numata, Gunma', 'ja': u('\u6cbc\u7530')}, '812785':{'en': 'Numata, Gunma', 'ja': u('\u6cbc\u7530')}, '812788':{'en': 'Maebashi, Gunma', 'ja': u('\u524d\u6a4b')}, '812789':{'en': 'Maebashi, Gunma', 'ja': u('\u524d\u6a4b')}, '86130441':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130446':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '55964400':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861300626':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '64683':{'en': 'Napier/Wairoa'}, '64685':{'en': 'Waipukurau'}, '64684':{'en': 'Napier City'}, '64687':{'en': 'Napier/Hastings'}, '64686':{'en': 'Gisborne/Ruatoria'}, '64357':{'en': 'Blenheim'}, '64354':{'en': 'Nelson'}, '64352':{'en': 'Murchison/Takaka/Motueka'}, '64423':{'en': 'Wellington/Porirua/Tawa'}, '861301548':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '64429':{'en': 'Paraparaumu'}, '55873848':{'en': u('Cust\u00f3dia - PE'), 'pt': u('Cust\u00f3dia - PE')}, '55873849':{'en': u('Ita\u00edba - PE'), 'pt': u('Ita\u00edba - PE')}, '55873840':{'en': u('Inaj\u00e1 - PE'), 'pt': u('Inaj\u00e1 - PE')}, '55873841':{'en': u('Sert\u00e2nia - PE'), 'pt': u('Sert\u00e2nia - PE')}, '55873842':{'en': 'Ibimirim - PE', 'pt': 'Ibimirim - PE'}, '55873843':{'en': 'Tacaratu - PE', 'pt': 'Tacaratu - PE'}, '55873844':{'en': u('S\u00e3o Jos\u00e9 do Egito - PE'), 'pt': u('S\u00e3o Jos\u00e9 do Egito - PE')}, '55873845':{'en': 'Calumbi - PE', 'pt': 'Calumbi - PE'}, '55873846':{'en': 'Triunfo - PE', 'pt': 'Triunfo - PE'}, '55873847':{'en': 'Tabira - PE', 'pt': 'Tabira - PE'}, '861308004':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308001':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308000':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '86130136':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '7347':{'en': 'Republic of Bashkortostan'}, '7345':{'en': 'Tyumen'}, '7342':{'en': 'Perm'}, '7343':{'en': 'Ekaterinburg'}, '7341':{'en': 'Udmurtian Republic'}, '861300461':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861300460':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861300463':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861300462':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861300465':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861300464':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86130138':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '7349':{'en': 'Yamalo-Nenets Autonomous District'}, '861304292':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861308258':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861308259':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861304293':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861308252':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861308253':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861308250':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861308251':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861308256':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861304290':{'en': 'Baiyin, Gansu', 'zh': u('\u7518\u8083\u7701\u767d\u94f6\u5e02')}, '861308254':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '55883451':{'en': u('Dom Maur\u00edcio - CE'), 'pt': u('Dom Maur\u00edcio - CE')}, '55883603':{'en': 'Cruz - CE', 'pt': 'Cruz - CE'}, '861304291':{'en': 'Linxia, Gansu', 'zh': u('\u7518\u8083\u7701\u4e34\u590f\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861304018':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '62901':{'en': 'Timika', 'id': 'Timika'}, '62902':{'en': 'Agats', 'id': 'Agats'}, '861303049':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861303046':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861303047':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861303044':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861303045':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861303042':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861303043':{'en': 'Hinggan, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5174\u5b89\u76df')}, '861303040':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861303041':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '55943328':{'en': u('N\u00facleo Caraj\u00e1s - PA'), 'pt': u('N\u00facleo Caraj\u00e1s - PA')}, '861304294':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '55943321':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '55943323':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '55943322':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '55943324':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '55943327':{'en': u('N\u00facleo Caraj\u00e1s - PA'), 'pt': u('N\u00facleo Caraj\u00e1s - PA')}, '55943326':{'en': u('Rondon do Par\u00e1 - PA'), 'pt': u('Rondon do Par\u00e1 - PA')}, '861304299':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861305891':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861308649':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861308648':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861308645':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861308644':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861308647':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861308646':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861308641':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861308640':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861308643':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861308642':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861301663':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '81228':{'en': '', 'ja': u('\u7bc9\u9928')}, '81229':{'en': '', 'ja': u('\u53e4\u5ddd')}, '81226':{'en': 'Kesennuma, Miyagi', 'ja': u('\u6c17\u4ed9\u6cbc')}, '861305835':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861305834':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861305837':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861305836':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861305831':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861305830':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861305833':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861305832':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '81222':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '861305839':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861305838':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '81591':{'en': 'Tsu, Mie', 'ja': u('\u6d25')}, '81220':{'en': '', 'ja': u('\u8feb')}, '55963198':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55983325':{'en': u('Maranh\u00e3ozinho - MA'), 'pt': u('Maranh\u00e3ozinho - MA')}, '55983324':{'en': u('Centro Novo do Maranh\u00e3o - MA'), 'pt': u('Centro Novo do Maranh\u00e3o - MA')}, '55983326':{'en': u('Presidente M\u00e9dici - MA'), 'pt': u('Presidente M\u00e9dici - MA')}, '55983323':{'en': 'Centro do Guilherme - MA', 'pt': 'Centro do Guilherme - MA'}, '55983322':{'en': 'Boa Vista do Gurupi - MA', 'pt': 'Boa Vista do Gurupi - MA'}, '861305554':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '5742':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5743':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5744':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5745':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '861305552':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305553':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '55963229':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861305550':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '55963222':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963223':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861305551':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '55963227':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963224':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963225':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861300924':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861300925':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861300926':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861300927':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861300920':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861300921':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '812649':{'en': 'Nagano, Nagano', 'ja': u('\u9577\u91ce')}, '861300923':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '812647':{'en': 'Nagano, Nagano', 'ja': u('\u9577\u91ce')}, '812646':{'en': 'Nagano, Nagano', 'ja': u('\u9577\u91ce')}, '812645':{'en': '', 'ja': u('\u6728\u66fe\u798f\u5cf6')}, '812644':{'en': '', 'ja': u('\u6728\u66fe\u798f\u5cf6')}, '812643':{'en': '', 'ja': u('\u6728\u66fe\u798f\u5cf6')}, '861300929':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '812640':{'en': 'Nagano, Nagano', 'ja': u('\u9577\u91ce')}, '861301031':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861301030':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861301033':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861301035':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301034':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861301037':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861301036':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861301039':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861301038':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861308007':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861308006':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861308005':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '55953626':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '861308003':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308002':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '55913469':{'en': 'Nova Timboteua - PA', 'pt': 'Nova Timboteua - PA'}, '55913468':{'en': u('Capit\u00e3o Po\u00e7o - PA'), 'pt': u('Capit\u00e3o Po\u00e7o - PA')}, '55913467':{'en': u('Our\u00e9m - PA'), 'pt': u('Our\u00e9m - PA')}, '55913466':{'en': u('Marud\u00e1 - PA'), 'pt': u('Marud\u00e1 - PA')}, '55913464':{'en': 'Atalaia - PA', 'pt': 'Atalaia - PA'}, '55913462':{'en': 'Capanema - PA', 'pt': 'Capanema - PA'}, '55913461':{'en': 'Colares - PA', 'pt': 'Colares - PA'}, '861308008':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861309237':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861309236':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861309235':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861309234':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861309233':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861309232':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861309231':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861309230':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861309239':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861309238':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861301255':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861301254':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861301257':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861301256':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861301251':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861301250':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861301253':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861301252':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '81594':{'en': 'Kuwana, Mie', 'ja': u('\u6851\u540d')}, '81227':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '81596':{'en': 'Ise, Mie', 'ja': u('\u4f0a\u52e2')}, '81225':{'en': 'Ishinomaki, Miyagi', 'ja': u('\u77f3\u5dfb')}, '861301259':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861301258':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '81592':{'en': 'Tsu, Mie', 'ja': u('\u6d25')}, '81593':{'en': 'Yokkaichi, Mie', 'ja': u('\u56db\u65e5\u5e02')}, '861300076':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300077':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300074':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300075':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300072':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300073':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300070':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300071':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861300078':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300079':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861303809':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309168':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861309293':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861304791':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '55983661':{'en': u('Cod\u00f3 - MA'), 'pt': u('Cod\u00f3 - MA')}, '861304790':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '55983664':{'en': 'Buriticupu - MA', 'pt': 'Buriticupu - MA'}, '861300788':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300789':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861300780':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300781':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300782':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300783':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300784':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300785':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300786':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861300787':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861303529':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861303528':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861303259':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861303258':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861303253':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861303252':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861303251':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861303250':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861303257':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861303256':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861303255':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861303254':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '62719':{'en': 'Manggar/Tanjung Pandan', 'id': 'Manggar/Tanjung Pandan'}, '62718':{'en': 'Koba/Toboali', 'id': 'Koba/Toboali'}, '62711':{'en': 'Palembang', 'id': 'Palembang'}, '62713':{'en': 'Prabumulih/Talang Ubi', 'id': 'Prabumulih/Talang Ubi'}, '62712':{'en': 'Kayu Agung/Tanjung Raja', 'id': 'Kayu Agung/Tanjung Raja'}, '62715':{'en': 'Belinyu', 'id': 'Belinyu'}, '62714':{'en': 'Sekayu', 'id': 'Sekayu'}, '62717':{'en': 'Pangkal Pinang/Sungailiat', 'id': 'Pangkal Pinang/Sungailiat'}, '62716':{'en': 'Muntok', 'id': 'Muntok'}, '55923635':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923634':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923637':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923636':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923633':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302789':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861302786':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861302787':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861302784':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861302785':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '55923639':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302783':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861302780':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861302781':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861303803':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '55923491':{'en': 'Carauari - AM', 'pt': 'Carauari - AM'}, '861305528':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86130300':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300478':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '7352':{'en': 'Kurgan'}, '861303939':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '8255':{'ar': u('\u062c\u064a\u0648\u0646\u0633\u0627\u0646\u062c\u0646\u0627\u0645-\u062f\u0648'), 'bg': u('\u041a\u044c\u043e\u043d\u0441\u0430\u043d-\u041d\u0430\u043c\u0434\u043e'), 'ca': 'Gyeongsangnam-do', 'cs': u('Ji\u017en\u00ed Kjongsang'), 'en': 'Gyeongnam', 'es': 'Gyeongsang del Sur', 'fi': u('Etel\u00e4-Gyeongsang'), 'fr': 'Gyeongsang du Sud', 'hi': u('\u0917\u094d\u092f\u0947\u0913\u0902\u0917\u0938\u093e\u0902\u0917\u0928\u093e\u092e-\u0926\u094b'), 'hu': u('D\u00e9l-Kjongszang'), 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05d3\u05e8\u05d5\u05dd \u05e7\u05d9\u05d0\u05e0\u05d2\u05e1\u05d0\u05e0\u05d2'), 'ja': u('\u6176\u5c1a\u5357\u9053'), 'ko': u('\uacbd\ub0a8'), 'tr': u('G\u00fcney Gyeongsang'), 'zh': u('\u5e86\u5c1a\u5357\u9053'), 'zh_Hant': u('\u6176\u5c1a\u5357\u9053')}, '8254':{'ar': u('\u062c\u064a\u0648\u0646\u062c\u0633\u0627\u0646\u062c\u0628\u0643 \u062f\u0648'), 'bg': u('\u041a\u044c\u043e\u043d\u0441\u0430\u043d-\u041f\u0443\u043a\u0442\u043e'), 'ca': 'Gyeongsangbuk-do', 'cs': u('Severn\u00ed Kjongsang'), 'en': 'Gyeongbuk', 'es': 'Gyeongsang del Norte', 'fi': 'Pohjois-Gyeongsang', 'fr': 'Gyeongsang du Nord', 'hi': u('\u0917\u094d\u092f\u0947\u0913\u0902\u0917\u0938\u093e\u0902\u0917\u0928\u093e\u092e-\u0926\u094b'), 'hu': u('\u00c9szak-Kjongszang'), 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05e6\u05e4\u05d5\u05df \u05e7\u05d9\u05d0\u05e0\u05d2\u05e1\u05d0\u05e0\u05d2'), 'ja': u('\u6176\u5c1a\u5317\u9053'), 'ko': u('\uacbd\ubd81'), 'tr': 'Kuzey Gyeongsang', 'zh': u('\u5e86\u5c1a\u5317\u9053'), 'zh_Hant': u('\u6176\u5c1a\u5317\u9053')}, '8251':{'ar': u('\u0645\u062f\u064a\u0646\u0629 \u0628\u0648\u0633\u0627\u0646 \u0627\u0644\u0643\u0628\u0631\u0649'), 'bg': u('\u041f\u0443\u0441\u0430\u043d'), 'ca': 'Busan', 'cs': 'Pusan', 'el': u('\u039c\u03c0\u03bf\u03cd\u03c3\u03b1\u03bd'), 'en': 'Busan', 'es': u('Bus\u00e1n'), 'fi': 'Busan', 'fr': 'Busan', 'hi': u('\u092c\u0941\u0938\u093e\u0928'), 'hu': 'Puszan', 'iw': u('\u05e4\u05d5\u05e1\u05d0\u05df'), 'ja': u('\u91dc\u5c71\u5e83\u57df\u5e02'), 'ko': u('\ubd80\uc0b0'), 'tr': 'Busan', 'zh': u('\u91dc\u5c71\u5e02'), 'zh_Hant': u('\u91dc\u5c71\u5ee3')}, '8253':{'ar': u('\u0645\u062f\u064a\u0646\u0629 \u062f\u064a\u0627\u062c\u0648 \u0627\u0644\u0643\u0628\u0631\u0649'), 'bg': u('\u0422\u0435\u0433\u0443'), 'ca': 'Daegu', 'cs': 'Tegu', 'el': u('\u039d\u03c4\u03ad\u03b3\u03ba\u03bf\u03c5'), 'en': 'Daegu', 'es': 'Daegu', 'fi': 'Daegu', 'fr': 'Daegu', 'hi': u('\u0921\u093e\u090f\u0917\u0942'), 'hu': 'Tegu', 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05d2\'\u05d2\'\u05d5'), 'ja': u('\u5927\u90b1\u5e83\u57df\u5e02'), 'ko': u('\ub300\uad6c'), 'tr': 'Daegu', 'zh': u('\u5927\u90b1\u5e02'), 'zh_Hant': u('\u5927\u90b1\u5ee3')}, '8252':{'ar': u('\u0645\u062f\u064a\u0646\u0629 \u0623\u0648\u0644\u0633\u0627\u0646 \u0627\u0644\u0643\u0628\u0631\u0649'), 'bg': u('\u0423\u043b\u0441\u0430\u043d'), 'ca': 'Ulsan', 'cs': 'Ulsan', 'el': u('\u039f\u03cd\u03bb\u03c3\u03b1\u03bd'), 'en': 'Ulsan', 'es': 'Ulsan', 'fi': 'Ulsan', 'fr': 'Ulsan', 'hi': u('\u0909\u0932\u0938\u093e\u0928'), 'hu': 'Ulszan', 'iw': u('\u05d0\u05d5\u05e8\u05e1\u05df'), 'ja': u('\u851a\u5c71\u5e83\u57df\u5e02'), 'ko': u('\uc6b8\uc0b0'), 'tr': 'Ulsan', 'zh': u('\u851a\u5c71\u5e02'), 'zh_Hant': u('\u851a\u5c71\u5ee3')}, '55913263':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913262':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913265':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913264':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913267':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913266':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861303806':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861308780':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861308781':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861308782':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861308783':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861308784':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861308785':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861308786':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861308787':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861308788':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861308789':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '77142':{'en': 'Kostanai', 'ru': u('\u041a\u043e\u0441\u0442\u0430\u043d\u0430\u0439')}, '8431':{'en': 'Hai Phong', 'vi': u('TP H\u1ea3i Ph\u00f2ng')}, '8430':{'en': 'Ninh Binh province', 'vi': u('Ninh B\u00ecnh')}, '8433':{'en': 'Quang Ninh province', 'vi': u('Qu\u1ea3ng Ninh')}, '861306954':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861306953':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861306952':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '8437':{'en': 'Thanh Hoa province', 'vi': u('Thanh H\u00f3a')}, '8436':{'en': 'Thai Binh province', 'vi': u('Th\u00e1i B\u00ecnh')}, '8439':{'en': 'Ha Tinh province', 'vi': u('H\u00e0 T\u0129nh')}, '8438':{'en': 'Nghe An province', 'vi': u('Ngh\u1ec7 An')}, '861306959':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861306958':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861303592':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '812412':{'en': 'Kitakata, Fukushima', 'ja': u('\u559c\u591a\u65b9')}, '812413':{'en': 'Kitakata, Fukushima', 'ja': u('\u559c\u591a\u65b9')}, '812416':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '812417':{'en': '', 'ja': u('\u4f1a\u6d25\u5c71\u53e3')}, '812414':{'en': 'Yanaizu, Fukushima', 'ja': u('\u67f3\u6d25')}, '812415':{'en': 'Yanaizu, Fukushima', 'ja': u('\u67f3\u6d25')}, '812418':{'en': '', 'ja': u('\u4f1a\u6d25\u5c71\u53e3')}, '819737':{'en': 'Kusu, Oita', 'ja': u('\u7396\u73e0')}, '819734':{'en': 'Hita, Oita', 'ja': u('\u65e5\u7530')}, '819735':{'en': 'Hita, Oita', 'ja': u('\u65e5\u7530')}, '819732':{'en': 'Hita, Oita', 'ja': u('\u65e5\u7530')}, '819733':{'en': 'Hita, Oita', 'ja': u('\u65e5\u7530')}, '819738':{'en': 'Kusu, Oita', 'ja': u('\u7396\u73e0')}, '811853':{'en': 'Oga, Akita', 'ja': u('\u7537\u9e7f')}, '811852':{'en': 'Oga, Akita', 'ja': u('\u7537\u9e7f')}, '811857':{'en': 'Noshiro, Akita', 'ja': u('\u80fd\u4ee3')}, '811856':{'en': 'Noshiro, Akita', 'ja': u('\u80fd\u4ee3')}, '811855':{'en': 'Noshiro, Akita', 'ja': u('\u80fd\u4ee3')}, '811854':{'en': 'Oga, Akita', 'ja': u('\u7537\u9e7f')}, '811858':{'en': 'Noshiro, Akita', 'ja': u('\u80fd\u4ee3')}, '62971':{'en': 'Merauke', 'id': 'Merauke'}, '861303072':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861303070':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861303077':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861303076':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861303075':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861303074':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861304575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '812383':{'en': 'Yonezawa, Yamagata', 'ja': u('\u7c73\u6ca2')}, '815996':{'en': 'Ago, Mie', 'ja': u('\u963f\u5150')}, '815997':{'en': 'Ago, Mie', 'ja': u('\u963f\u5150')}, '815994':{'en': 'Ago, Mie', 'ja': u('\u963f\u5150')}, '815995':{'en': 'Ago, Mie', 'ja': u('\u963f\u5150')}, '815992':{'en': 'Toba, Mie', 'ja': u('\u9ce5\u7fbd')}, '815993':{'en': 'Toba, Mie', 'ja': u('\u9ce5\u7fbd')}, '815998':{'en': 'Ago, Mie', 'ja': u('\u963f\u5150')}, '815999':{'en': ' Tsu, Mie', 'ja': u('\u6d25')}, '861306049':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861306048':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861306041':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861306040':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861306043':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861306042':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861306045':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861306044':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861306047':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861306046':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861302306':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '812389':{'en': 'Yonezawa, Yamagata', 'ja': u('\u7c73\u6ca2')}, '861304873':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861303521':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861303520':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861302308':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '8186556':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '861303525':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861303524':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861303527':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861303526':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861308730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '8186557':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '55873868':{'en': u('Afr\u00e2nio - PE'), 'pt': u('Afr\u00e2nio - PE')}, '55873869':{'en': 'Santa Maria da Boa Vista - PE', 'pt': 'Santa Maria da Boa Vista - PE'}, '55873866':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55873867':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55873864':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55873865':{'en': 'Dormentes - PE', 'pt': 'Dormentes - PE'}, '55873862':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55873863':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55873860':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55873861':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55913854':{'en': u('Maracan\u00e3 - PA'), 'pt': u('Maracan\u00e3 - PA')}, '861304788':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861304789':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861304784':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861304785':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861304786':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861304787':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861304780':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861304781':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861304782':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '55913859':{'en': u('Salin\u00f3polis - PA'), 'pt': u('Salin\u00f3polis - PA')}, '861300449':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861300448':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861300447':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861300446':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861300445':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861300444':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861300443':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861300442':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861300441':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861300440':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861308270':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861308271':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861308272':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861308273':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861308274':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861308275':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861308276':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861308277':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861308278':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861308279':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '55883667':{'en': 'Itarema - CE', 'pt': 'Itarema - CE'}, '861303065':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '55883665':{'en': 'Morrinhos - CE', 'pt': 'Morrinhos - CE'}, '55883664':{'en': 'Marco - CE', 'pt': 'Marco - CE'}, '62966':{'en': 'Sarmi', 'id': 'Sarmi'}, '62967':{'en': 'Jayapura', 'id': 'Jayapura'}, '55883661':{'en': u('Acara\u00fa - CE'), 'pt': u('Acara\u00fa - CE')}, '55883660':{'en': 'Cruz - CE', 'pt': 'Cruz - CE'}, '55993526':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55993527':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55993524':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '62969':{'en': 'Wamena', 'id': 'Wamena'}, '55993522':{'en': 'Tuntum - MA', 'pt': 'Tuntum - MA'}, '55993523':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55883669':{'en': 'Vila de Jericoacoara - CE', 'pt': 'Vila de Jericoacoara - CE'}, '55993521':{'en': 'Caxias - MA', 'pt': 'Caxias - MA'}, '861302337':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861302336':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861302335':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861302334':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861302333':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861302332':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861302331':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '55943348':{'en': u('Curion\u00f3polis - PA'), 'pt': u('Curion\u00f3polis - PA')}, '55943347':{'en': u('Eldorado dos Caraj\u00e1s - PA'), 'pt': u('Eldorado dos Caraj\u00e1s - PA')}, '55943346':{'en': 'Parauapebas - PA', 'pt': 'Parauapebas - PA'}, '55943345':{'en': u('Jacund\u00e1 - PA'), 'pt': u('Jacund\u00e1 - PA')}, '55943344':{'en': 'Nova Ipixuna - PA', 'pt': 'Nova Ipixuna - PA'}, '55943342':{'en': 'Abel Figueiredo - PA', 'pt': 'Abel Figueiredo - PA'}, '55943341':{'en': 'Bom Jesus do Tocantins - PA', 'pt': 'Bom Jesus do Tocantins - PA'}, '861302338':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861308734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861300538':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861302788':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861308737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861302782':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '55953212':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '817716':{'en': 'Sonobe, Kyoto', 'ja': u('\u5712\u90e8')}, '861308736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '819957':{'en': 'Kajiki, Kagoshima', 'ja': u('\u52a0\u6cbb\u6728')}, '817714':{'en': 'Kameoka, Kyoto', 'ja': u('\u4e80\u5ca1')}, '62386':{'en': 'Kalabahi', 'id': 'Kalabahi'}, '62387':{'en': 'Waingapu/Waikabubak', 'id': 'Waingapu/Waikabubak'}, '62384':{'en': 'Bajawa', 'id': 'Bajawa'}, '819955':{'en': 'Kajiki, Kagoshima', 'ja': u('\u52a0\u6cbb\u6728')}, '62382':{'en': 'Maumere', 'id': 'Maumere'}, '62383':{'en': 'Larantuka', 'id': 'Larantuka'}, '62380':{'en': 'Kupang', 'id': 'Kupang'}, '62381':{'en': 'Ende', 'id': 'Ende'}, '817712':{'en': 'Kameoka, Kyoto', 'ja': u('\u4e80\u5ca1')}, '62388':{'en': 'Kefamenanu/Soe', 'id': 'Kefamenanu/Soe'}, '62389':{'en': 'Atambua', 'id': 'Atambua'}, '55963424':{'en': u('Pracu\u00faba - AP'), 'pt': u('Pracu\u00faba - AP')}, '55963426':{'en': u('Louren\u00e7o - AP'), 'pt': u('Louren\u00e7o - AP')}, '861302341':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '55963421':{'en': u('Amap\u00e1 - AP'), 'pt': u('Amap\u00e1 - AP')}, '55963422':{'en': 'Tartarugalzinho - AP', 'pt': 'Tartarugalzinho - AP'}, '55963423':{'en': u('Cal\u00e7oene - AP'), 'pt': u('Cal\u00e7oene - AP')}, '55923575':{'en': 'Itapiranga - AM', 'pt': 'Itapiranga - AM'}, '55923572':{'en': u('S\u00e3o Sebasti\u00e3o do Uatum\u00e3 - AM'), 'pt': u('S\u00e3o Sebasti\u00e3o do Uatum\u00e3 - AM')}, '55923571':{'en': u('Urucar\u00e1 - AM'), 'pt': u('Urucar\u00e1 - AM')}, '81988':{'en': 'Naha, Okinawa', 'ja': u('\u90a3\u8987')}, '861301761':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '811939':{'en': 'Miyako, Iwate', 'ja': u('\u5bae\u53e4')}, '55893482':{'en': u('Simpl\u00edcio Mendes - PI'), 'pt': u('Simpl\u00edcio Mendes - PI')}, '55893483':{'en': u('S\u00e3o Jo\u00e3o do Piau\u00ed - PI'), 'pt': u('S\u00e3o Jo\u00e3o do Piau\u00ed - PI')}, '55893480':{'en': u('Socorro do Piau\u00ed - PI'), 'pt': u('Socorro do Piau\u00ed - PI')}, '861309649':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '55893487':{'en': 'Paulistana - PI', 'pt': 'Paulistana - PI'}, '55893484':{'en': u('Campinas do Piau\u00ed - PI'), 'pt': u('Campinas do Piau\u00ed - PI')}, '55893485':{'en': u('Isa\u00edas Coelho - PI'), 'pt': u('Isa\u00edas Coelho - PI')}, '861309642':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '55993321':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55893488':{'en': u('Jacobina do Piau\u00ed - PI'), 'pt': u('Jacobina do Piau\u00ed - PI')}, '55893489':{'en': u('Concei\u00e7\u00e3o do Canind\u00e9 - PI'), 'pt': u('Concei\u00e7\u00e3o do Canind\u00e9 - PI')}, '861309646':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861309647':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '55993326':{'en': 'Timon - MA', 'pt': 'Timon - MA'}, '861309645':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '77182':{'en': 'Pavlodar', 'ru': u('\u041f\u0430\u0432\u043b\u043e\u0434\u0430\u0440')}, '7426':{'en': 'Jewish Autonomous Region'}, '7424':{'en': 'Sakhalin Region'}, '7423':{'en': 'Primorie territory'}, '77187':{'en': 'Ekibastuz'}, '7421':{'en': 'Khabarovsk Territory'}, '861309584':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861301017':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861301016':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861301015':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301014':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861301013':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '861301012':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301011':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301010':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301019':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301018':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '55913445':{'en': u('Santa Luzia do Par\u00e1 - PA'), 'pt': u('Santa Luzia do Par\u00e1 - PA')}, '55913444':{'en': u('M\u00e3e do Rio - PA'), 'pt': u('M\u00e3e do Rio - PA')}, '55913447':{'en': u('Cachoeira do Piri\u00e1 - PA'), 'pt': u('Cachoeira do Piri\u00e1 - PA')}, '55913446':{'en': u('S\u00e3o Miguel do Guam\u00e1 - PA'), 'pt': u('S\u00e3o Miguel do Guam\u00e1 - PA')}, '55913441':{'en': u('Igarap\u00e9-A\u00e7u - PA'), 'pt': u('Igarap\u00e9-A\u00e7u - PA')}, '55913443':{'en': 'Irituia - PA', 'pt': 'Irituia - PA'}, '55913442':{'en': u('Santa Maria do Par\u00e1 - PA'), 'pt': u('Santa Maria do Par\u00e1 - PA')}, '55913449':{'en': u('S\u00e3o Jo\u00e3o de Pirabas - PA'), 'pt': u('S\u00e3o Jo\u00e3o de Pirabas - PA')}, '55913448':{'en': u('Maracan\u00e3 - PA'), 'pt': u('Maracan\u00e3 - PA')}, '861301279':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861301278':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861301273':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861301272':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861301271':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301270':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301277':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861301276':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861301275':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861301274':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '817903':{'en': 'Fukusaki, Hyogo', 'ja': u('\u798f\u5d0e')}, '817902':{'en': 'Fukusaki, Hyogo', 'ja': u('\u798f\u5d0e')}, '86130755':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '817907':{'en': '', 'ja': u('\u64ad\u78e8\u5c71\u5d0e')}, '817906':{'en': '', 'ja': u('\u64ad\u78e8\u5c71\u5d0e')}, '817905':{'en': 'Fukusaki, Hyogo', 'ja': u('\u798f\u5d0e')}, '817904':{'en': 'Fukusaki, Hyogo', 'ja': u('\u798f\u5d0e')}, '817908':{'en': '', 'ja': u('\u64ad\u78e8\u5c71\u5d0e')}, '861309756':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '86130753':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86130751':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '818298':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '818299':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '818296':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '818297':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '818295':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '818293':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '818290':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '861300278':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861300279':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86130810':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861300270':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861300271':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861300272':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300273':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300274':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300275':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300276':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861300277':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861304199':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861304198':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304191':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304190':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304193':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304192':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304195':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304194':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304197':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861304196':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301909':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861301908':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861301901':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '62552':{'en': 'Tanjungselor', 'id': 'Tanjungselor'}, '861301903':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861301902':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861301905':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '62556':{'en': 'Nunukan', 'id': 'Nunukan'}, '861301907':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '62554':{'en': 'Tanjung Redeb', 'id': 'Tanjung Redeb'}, '817675':{'en': 'Nanao, Ishikawa', 'ja': u('\u4e03\u5c3e')}, '817674':{'en': 'Hakui, Ishikawa', 'ja': u('\u7fbd\u548b')}, '817677':{'en': 'Nanao, Ishikawa', 'ja': u('\u4e03\u5c3e')}, '817676':{'en': 'Nanao, Ishikawa', 'ja': u('\u4e03\u5c3e')}, '817673':{'en': 'Hakui, Ishikawa', 'ja': u('\u7fbd\u548b')}, '817672':{'en': 'Hakui, Ishikawa', 'ja': u('\u7fbd\u548b')}, '817678':{'en': 'Nanao, Ishikawa', 'ja': u('\u4e03\u5c3e')}, '812999':{'en': 'Itako, Ibaraki', 'ja': u('\u6f6e\u6765')}, '861305578':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305579':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305574':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305575':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305576':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305577':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305570':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861305571':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861305572':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305573':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '62737':{'en': 'Arga Makmur/Mukomuko', 'id': 'Arga Makmur/Mukomuko'}, '62736':{'en': 'Bengkulu City', 'id': 'Kota Bengkulu'}, '62735':{'en': 'Baturaja/Martapura/Muaradua', 'id': 'Baturaja/Martapura/Muaradua'}, '62734':{'en': 'Muara Enim', 'id': 'Muara Enim'}, '62733':{'en': 'Lubuklinggau/Muara Beliti', 'id': 'Lubuklinggau/Muara Beliti'}, '62732':{'en': 'Curup', 'id': 'Curup'}, '84780':{'en': 'Ca Mau province', 'vi': u('C\u00e0 Mau')}, '84781':{'en': 'Bac Lieu province', 'vi': u('B\u1ea1c Li\u00eau')}, '861303507':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861303506':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303505':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303504':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861303503':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861303502':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '62739':{'en': 'Bintuhan/Manna', 'id': 'Bintuhan/Manna'}, '62738':{'en': 'Muara Aman', 'id': 'Muara Aman'}, '812998':{'en': 'Itako, Ibaraki', 'ja': u('\u6f6e\u6765')}, '662':{'en': 'Bangkok/Nonthaburi/Pathum Thani/Samut Prakan', 'th': u('\u0e01\u0e23\u0e38\u0e07\u0e40\u0e17\u0e1e/\u0e19\u0e19\u0e17\u0e1a\u0e38\u0e23\u0e35/\u0e1b\u0e17\u0e38\u0e21\u0e18\u0e32\u0e19\u0e35/\u0e2a\u0e21\u0e38\u0e17\u0e23\u0e1b\u0e23\u0e32\u0e01\u0e32\u0e23')}, '861303994':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861303995':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861303996':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861303997':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86130363':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130360':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861303990':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861303991':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861303992':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861303993':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '8233':{'ar': u('\u062c\u0627\u0646\u062c\u0648\u0646-\u062f\u0648'), 'bg': u('\u041a\u0430\u043d\u0443\u044a\u043d-\u0434\u043e'), 'ca': 'Gangwon-do', 'cs': 'Kangwon', 'el': u('\u0393\u03ba\u03ac\u03bd\u03b3\u03bf\u03c5\u03bf\u03bd-\u03bd\u03c4\u03bf (\u039d\u03cc\u03c4\u03b9\u03b1\u03c2 \u039a\u03bf\u03c1\u03ad\u03b1\u03c2)'), 'en': 'Gangwon', 'es': 'Gangwon', 'fi': 'Gangwon', 'fr': 'Gangwon', 'hi': u('\u091a\u0941\u0902\u0917\u091a\u0947\u0913\u0902\u0917\u092c\u0941\u0915-\u0926\u094b'), 'hu': 'Kangvon', 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05e7\u05d0\u05e0\u05d2\u05d5\u05d5\u05d0\u05df'), 'ja': u('\u6c5f\u539f\u9053'), 'ko': u('\uac15\uc6d0'), 'tr': 'Gangwon', 'zh': u('\u6c5f\u539f\u9053'), 'zh_Hant': u('\u6c5f\u539f\u9053')}, '8232':{'ar': u('\u0645\u062f\u064a\u0646\u0629 \u0625\u0646\u062a\u0634\u064a\u0648\u0646 \u0627\u0644\u0643\u0628\u0631\u0649'), 'bg': u('\u0418\u043d\u0447\u043e\u043d'), 'ca': 'Inchon', 'cs': u('In\u010dchon'), 'el': u('\u038a\u03bd\u03c4\u03c3\u03bf\u03bd'), 'en': 'Incheon', 'es': 'Incheon', 'fi': 'Incheon', 'fr': 'Incheon', 'hi': u('\u0907\u0928\u094d\u091a\u0947\u092f\u094b\u0928'), 'hu': 'Incshon', 'iw': u('\u05d0\u05d9\u05e0\u05e6\'\u05d0\u05d5\u05df'), 'ja': u('\u4ec1\u5ddd\u5e83\u57df\u5e02'), 'ko': u('\uc778\ucc9c'), 'tr': 'Daejeon', 'zh': u('\u4ec1\u5ddd\u5e02'), 'zh_Hant': u('\u4ec1\u5ddd\u5ee3')}, '8231':{'ar': u('\u062c\u064a\u0648\u0646\u062c\u064a \u062f\u0648'), 'bg': u('\u041a\u044c\u043e\u043d\u0433\u0438-\u0434\u043e'), 'ca': 'Gyeonggi-do', 'cs': u('Gj\u014fnggi'), 'el': u('\u0393\u03ba\u03b9\u03cc\u03bd\u03b3\u03ba\u03b9-\u03bd\u03c4\u03bf'), 'en': 'Gyeonggi', 'es': 'Gyeonggi', 'fi': 'Gyeonggi', 'fr': 'Gyeonggi', 'hi': u('\u0917\u094d\u0935\u093e\u0902\u0917\u0935\u094b\u0928-\u0926\u094b'), 'hu': 'Kjonggi', 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05e7\u05d9\u05d0\u05e0\u05d2\u05d9'), 'ja': u('\u4eac\u757f\u9053'), 'ko': u('\uacbd\uae30'), 'tr': 'Gyeonggi', 'zh': u('\u4eac\u757f\u9053'), 'zh_Hant': u('\u4eac\u757f\u9053')}, '55913207':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913204':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913202':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913201':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '86130539':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '86130533':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '55923213':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923215':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861308858':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861308859':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861308854':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861308855':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861308856':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861308857':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861308850':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861308851':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861308852':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861308853':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '818843':{'en': 'Anan, Tokushima', 'ja': u('\u963f\u5357')}, '818842':{'en': 'Anan, Tokushima', 'ja': u('\u963f\u5357')}, '643':{'en': 'South Island'}, '818847':{'en': '', 'ja': u('\u725f\u5c90')}, '818846':{'en': '', 'ja': u('\u4e39\u751f\u8c37')}, '818845':{'en': '', 'ja': u('\u4e39\u751f\u8c37')}, '818844':{'en': 'Anan, Tokushima', 'ja': u('\u963f\u5357')}, '818848':{'en': '', 'ja': u('\u725f\u5c90')}, '861301484':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861301485':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861301486':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861301487':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861301480':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861301481':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861301482':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861301483':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '811527':{'en': 'Bihoro, Hokkaido', 'ja': u('\u7f8e\u5e4c')}, '811526':{'en': 'Abashiri, Hokkaido', 'ja': u('\u7db2\u8d70')}, '811525':{'en': 'Abashiri, Hokkaido', 'ja': u('\u7db2\u8d70')}, '811524':{'en': 'Abashiri, Hokkaido', 'ja': u('\u7db2\u8d70')}, '861301488':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861301489':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '812997':{'en': 'Itako, Ibaraki', 'ja': u('\u6f6e\u6765')}, '62452':{'en': 'Poso', 'id': 'Poso'}, '62453':{'en': 'Tolitoli', 'id': 'Tolitoli'}, '861306939':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861306938':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861306935':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861306934':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861306937':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '62451':{'en': 'Palu', 'id': 'Palu'}, '812996':{'en': 'Itako, Ibaraki', 'ja': u('\u6f6e\u6765')}, '861306930':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861306933':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861306932':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861303965':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861306957':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861308171':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861306956':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861308170':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861306955':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861309130':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861306951':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861309131':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861306950':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '861309132':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861309133':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861308179':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861309134':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861308178':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861309135':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '64398':{'en': 'Christchurch/Blenheim/Nelson'}, '861309136':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861309566':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '64390':{'en': 'Ashburton'}, '64397':{'en': 'Christchurch'}, '818698':{'en': 'Bizen, Okayama', 'ja': u('\u5099\u524d')}, '64395':{'en': 'Dunedin/Timaru'}, '64394':{'en': 'Christchurch/Invercargill'}, '55873803':{'en': 'Pesqueira - PE', 'pt': 'Pesqueira - PE'}, '55913783':{'en': 'Breves - PA', 'pt': 'Breves - PA'}, '55913781':{'en': u('Camet\u00e1 - PA'), 'pt': u('Camet\u00e1 - PA')}, '55873809':{'en': 'Iguaraci - PE', 'pt': 'Iguaraci - PE'}, '55913784':{'en': 'Portel - PA', 'pt': 'Portel - PA'}, '861304762':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304763':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304760':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304761':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304766':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304767':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304764':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304765':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861303964':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861304768':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861304769':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861305645':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861309583':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '86130178':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300425':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861300424':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861300427':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861300426':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861300421':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861300420':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861300423':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861300422':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '812993':{'en': 'Ishioka, Ibaraki', 'ja': u('\u77f3\u5ca1')}, '7383':{'en': 'Novosibirsk'}, '7381':{'en': 'Omsk'}, '861300429':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861300428':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '7384':{'en': 'Kemerovo'}, '812994':{'en': 'Ishioka, Ibaraki', 'ja': u('\u77f3\u5ca1')}, '861308216':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '64638':{'en': 'Taihape/Ohakune/Waiouru'}, '861308214':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861308215':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '55883649':{'en': 'Meruoca - CE', 'pt': 'Meruoca - CE'}, '55883648':{'en': 'Uruoca - CE', 'pt': 'Uruoca - CE'}, '861308210':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861308211':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '55883645':{'en': u('Corea\u00fa - CE'), 'pt': u('Corea\u00fa - CE')}, '55883644':{'en': u('Santana do Acara\u00fa - CE'), 'pt': u('Santana do Acara\u00fa - CE')}, '55883647':{'en': u('Groa\u00edras - CE'), 'pt': u('Groa\u00edras - CE')}, '55883646':{'en': u('Carir\u00e9 - CE'), 'pt': u('Carir\u00e9 - CE')}, '55883641':{'en': u('Pacuj\u00e1 - CE'), 'pt': u('Pacuj\u00e1 - CE')}, '55883640':{'en': u('Alc\u00e2ntaras - CE'), 'pt': u('Alc\u00e2ntaras - CE')}, '55883643':{'en': u('Massap\u00ea - CE'), 'pt': u('Massap\u00ea - CE')}, '55883642':{'en': u('Mora\u00fajo - CE'), 'pt': u('Mora\u00fajo - CE')}, '55993544':{'en': 'Loreto - MA', 'pt': 'Loreto - MA'}, '55993545':{'en': u('S\u00e3o Domingos do Azeit\u00e3o - MA'), 'pt': u('S\u00e3o Domingos do Azeit\u00e3o - MA')}, '55993547':{'en': u('S\u00e3o Raimundo das Mangabeiras - MA'), 'pt': u('S\u00e3o Raimundo das Mangabeiras - MA')}, '55993541':{'en': 'Balsas - MA', 'pt': 'Balsas - MA'}, '55993542':{'en': 'Balsas - MA', 'pt': 'Balsas - MA'}, '55993543':{'en': 'Tasso Fragoso - MA', 'pt': 'Tasso Fragoso - MA'}, '861309069':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '55943365':{'en': 'Vila Taboca - PA', 'pt': 'Vila Taboca - PA'}, '55943364':{'en': 'Vila Mandii - PA', 'pt': 'Vila Mandii - PA'}, '55943366':{'en': u('Vila Novo Para\u00edso - PA'), 'pt': u('Vila Novo Para\u00edso - PA')}, '81178':{'en': 'Hachinohe, Aomori', 'ja': u('\u516b\u6238')}, '81179':{'en': 'Sannohe, Aomori', 'ja': u('\u4e09\u6238')}, '55943369':{'en': 'Parauapebas - PA', 'pt': 'Parauapebas - PA'}, '81176':{'en': 'Towada, Aomori', 'ja': u('\u5341\u548c\u7530')}, '5718449':{'en': u('La Pe\u00f1a'), 'es': u('La Pe\u00f1a')}, '55863474':{'en': 'Pimenteiras - PI', 'pt': 'Pimenteiras - PI'}, '5718447':{'en': 'Villeta', 'es': 'Villeta'}, '5718444':{'en': 'Villeta', 'es': 'Villeta'}, '55863477':{'en': 'Inhuma - PI', 'pt': 'Inhuma - PI'}, '5718442':{'en': 'Cachipay', 'es': 'Cachipay'}, '81174':{'en': 'Kanita, Aomori', 'ja': u('\u87f9\u7530')}, '5718440':{'en': 'Facatativa', 'es': 'Facatativa'}, '5718441':{'en': 'Viani', 'es': 'Viani'}, '861301509':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '819438':{'en': 'Tanushimaru, Fukuoka', 'ja': u('\u7530\u4e3b\u4e38')}, '64635':{'en': 'Palmerston North City'}, '861306228':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861301981':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '814298':{'en': 'Hanno, Saitama', 'ja': u('\u98ef\u80fd')}, '814299':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '55953238':{'en': u('Rorain\u00f3polis - RR'), 'pt': u('Rorain\u00f3polis - RR')}, '55953236':{'en': 'Caroebe - RR', 'pt': 'Caroebe - RR'}, '814293':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '814290':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '55953235':{'en': u('S\u00e3o Jo\u00e3o da Baliza - RR'), 'pt': u('S\u00e3o Jo\u00e3o da Baliza - RR')}, '814296':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '814297':{'en': 'Hanno, Saitama', 'ja': u('\u98ef\u80fd')}, '814294':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '814295':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '58246':{'en': u('Aragua/Gu\u00e1rico'), 'es': u('Aragua/Gu\u00e1rico')}, '58247':{'en': u('Apure/Gu\u00e1rico'), 'es': u('Apure/Gu\u00e1rico')}, '58244':{'en': 'Aragua', 'es': 'Aragua'}, '58245':{'en': 'Aragua/Carabobo', 'es': 'Aragua/Carabobo'}, '58242':{'en': 'Carabobo', 'es': 'Carabobo'}, '58243':{'en': 'Aragua/Carabobo', 'es': 'Aragua/Carabobo'}, '58241':{'en': 'Carabobo', 'es': 'Carabobo'}, '58248':{'en': 'Amazonas', 'es': 'Amazonas'}, '58249':{'en': u('Carabobo/Falc\u00f3n'), 'es': u('Carabobo/Falc\u00f3n')}, '861302359':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861302358':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '55933521':{'en': 'Vila Residencial Belo Monte - PA', 'pt': 'Vila Residencial Belo Monte - PA'}, '861302355':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861302354':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861302357':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861302356':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861302351':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861302350':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861302353':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861302352':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861308282':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '55923512':{'en': 'Borba - AM', 'pt': 'Borba - AM'}, '861306218':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861306219':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861306210':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861306211':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861306212':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861306213':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861306214':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861306215':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861306216':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861306217':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861304596':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861303478':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '55913011':{'en': 'Paragominas - PA', 'pt': 'Paragominas - PA'}, '55913017':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913014':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913015':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861309660':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861309661':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861309662':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861309663':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861309664':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861309665':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861309666':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861309667':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861309668':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309669':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '7401':{'en': 'Kaliningrad'}, '55873967':{'en': 'Ouricuri - PE', 'pt': 'Ouricuri - PE'}, '55894101':{'en': 'Picos - PI', 'pt': 'Picos - PI'}, '771837':{'en': 'Aksu'}, '811956':{'en': 'Iwate, Iwate', 'ja': u('\u5ca9\u624b')}, '811957':{'en': 'Iwate, Iwate', 'ja': u('\u5ca9\u624b')}, '811954':{'en': 'Ninohe, Iwate', 'ja': u('\u4e8c\u6238')}, '811955':{'en': 'Ninohe, Iwate', 'ja': u('\u4e8c\u6238')}, '811952':{'en': 'Ninohe, Iwate', 'ja': u('\u4e8c\u6238')}, '861301078':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861301075':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861301074':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861301077':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861301076':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301071':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861301070':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861301073':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861301072':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861308043':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861308042':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861308041':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861308040':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861308047':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861308046':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861308045':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861308044':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861308049':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861308048':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861303514':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '77272956':{'en': 'Talgar'}, '861309271':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861309270':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861309277':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861309276':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861309275':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861309274':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861309279':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861309278':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861301291':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861301290':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861301293':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861301292':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '81266':{'en': 'Suwa, Nagano', 'ja': u('\u8acf\u8a2a')}, '861301294':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861301297':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861301296':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861301299':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861301298':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '81268':{'en': 'Ueda, Nagano', 'ja': u('\u4e0a\u7530')}, '861303515':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861308146':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '57634':{'en': 'Pereira', 'es': 'Pereira'}, '57635':{'en': 'Pereira', 'es': 'Pereira'}, '57632':{'en': 'Pereira', 'es': 'Pereira'}, '57633':{'en': 'Pereira', 'es': 'Pereira'}, '57631':{'en': 'Pereira', 'es': 'Pereira'}, '62531':{'en': 'Sampit', 'id': 'Sampit'}, '861303740':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861303743':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '62532':{'en': 'Pangkalan Bun', 'id': 'Pangkalan Bun'}, '861303745':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '62534':{'en': 'Ketapang', 'id': 'Ketapang'}, '62537':{'en': 'Kuala Kurun', 'id': 'Kuala Kurun'}, '62536':{'en': 'Palangkaraya/Kasongan', 'id': 'Palangkaraya/Kasongan'}, '62539':{'en': 'Kuala Kuayan', 'id': 'Kuala Kuayan'}, '62538':{'en': 'Kuala Pembuang', 'id': 'Kuala Pembuang'}, '81886':{'en': 'Tokushima, Tokushima', 'ja': u('\u5fb3\u5cf6')}, '81885':{'en': 'Komatsushima, Tokushima', 'ja': u('\u5c0f\u677e\u5cf6')}, '861301929':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861301928':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861301927':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861301926':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861301925':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861301924':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861301923':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861301922':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '81888':{'en': 'Kochi, Kochi', 'ja': u('\u9ad8\u77e5')}, '861301920':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303519':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861305592':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861305593':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861305590':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305591':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305596':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861305597':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861305594':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861305595':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305598':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861305599':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861303565':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861303564':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861303567':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861303566':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861303561':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861303560':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '62289':{'en': 'Bumiayu', 'id': 'Bumiayu'}, '861303562':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '62287':{'en': 'Kebumen/Karanganyar', 'id': 'Kebumen/Karanganyar'}, '62286':{'en': 'Banjarnegara/Wonosobo', 'id': 'Banjarnegara/Wonosobo'}, '62285':{'en': 'Pekalongan/Batang/Comal', 'id': 'Pekalongan/Batang/Comal'}, '62284':{'en': 'Pemalang', 'id': 'Pemalang'}, '62283':{'en': 'Tegal/Brebes', 'id': 'Tegal/Brebes'}, '62282':{'en': 'East Cilacap', 'id': 'Cilacap Timur'}, '62281':{'en': 'Banyumas/Purbalingga', 'id': 'Banyumas/Purbalingga'}, '62280':{'en': 'West Cilacap', 'id': 'Cilacap Barat'}, '86130223':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130220':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130349':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '86130432':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130346':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86130343':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130434':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '771139':{'en': 'Taskala'}, '771138':{'en': 'Zhalpaktal'}, '771133':{'en': 'Aksai'}, '771132':{'en': 'Fyodorovka'}, '771131':{'en': 'Darinskoye'}, '771130':{'en': 'Peremetnoye'}, '771137':{'en': 'Chingirlau'}, '771136':{'en': 'Chapayev'}, '771135':{'en': 'Zhanibek'}, '771134':{'en': 'Zhympity'}, '772725':{'en': 'Otegen Batyra'}, '55913225':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913224':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913227':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913226':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913221':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913223':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913222':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913229':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913228':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55923184':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302166':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861302167':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861302164':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861302165':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861302162':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861302163':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861302160':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861302161':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861302168':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861302169':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861303723':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861303722':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861303721':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861303720':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '55913366':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861303726':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '55923231':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923233':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923232':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923235':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923234':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923236':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923239':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923238':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861303724':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861309346':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861303729':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861309344':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861309343':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861309342':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861309341':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861304339':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861304338':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861308390':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '811549':{'en': 'Kushiro, Hokkaido', 'ja': u('\u91e7\u8def')}, '811548':{'en': 'Teshikaga, Hokkaido', 'ja': u('\u5f1f\u5b50\u5c48')}, '811541':{'en': 'Teshikaga, Hokkaido', 'ja': u('\u5f1f\u5b50\u5c48')}, '811543':{'en': 'Kushiro, Hokkaido', 'ja': u('\u91e7\u8def')}, '811542':{'en': 'Kushiro, Hokkaido', 'ja': u('\u91e7\u8def')}, '811545':{'en': 'Kushiro, Hokkaido', 'ja': u('\u91e7\u8def')}, '811544':{'en': 'Kushiro, Hokkaido', 'ja': u('\u91e7\u8def')}, '811547':{'en': 'Shiranuka, Hokkaido', 'ja': u('\u767d\u7ce0')}, '811546':{'en': 'Kushiro, Hokkaido', 'ja': u('\u91e7\u8def')}, '861301792':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861306913':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861304331':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306911':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306910':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306917':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861306916':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861306915':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304330':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306919':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861306918':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304333':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861301795':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304332':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861301796':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861304335':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861304334':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861304337':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861304336':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '592338':{'en': 'Benab/No. 65 Village/Massiah'}, '592339':{'en': 'No: 52/Skeldon'}, '861308019':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '592330':{'en': 'Rosignol/Shieldstown'}, '592331':{'en': 'Adventure/Joanna'}, '592332':{'en': 'Sheet Anchor/Susannah'}, '592333':{'en': 'New Amsterdam'}, '592334':{'en': 'New Amsterdam'}, '592335':{'en': 'Crabwood Creek/No: 76/Corentyne'}, '592336':{'en': 'Edinburg/Port Mourant'}, '592337':{'en': 'Whim/Bloomfield/Liverpool/Rose Hall'}, '861305299':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305298':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305295':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305294':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861305297':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305296':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305291':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861305290':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861305293':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861305292':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '57289':{'en': 'Cali', 'es': 'Cali'}, '57288':{'en': 'Cali', 'es': 'Cali'}, '55873828':{'en': 'Tuparetama - PE', 'pt': 'Tuparetama - PE'}, '55873829':{'en': 'Ingazeira - PE', 'pt': 'Ingazeira - PE'}, '861308016':{'en': 'Xuchang, Henan', 'zh': u('\u6cb3\u5357\u7701\u8bb8\u660c\u5e02')}, '55873822':{'en': 'Arcoverde - PE', 'pt': 'Arcoverde - PE'}, '55873821':{'en': 'Arcoverde - PE', 'pt': 'Arcoverde - PE'}, '55913812':{'en': u('Magalh\u00e3es Barata - PA'), 'pt': u('Magalh\u00e3es Barata - PA')}, '861304749':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861308184':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '55913811':{'en': u('Ipixuna do Par\u00e1 - PA'), 'pt': u('Ipixuna do Par\u00e1 - PA')}, '55913764':{'en': u('S\u00e3o Sebasti\u00e3o da Boa Vista - PA'), 'pt': u('S\u00e3o Sebasti\u00e3o da Boa Vista - PA')}, '55913765':{'en': 'Salvaterra - PA', 'pt': 'Salvaterra - PA'}, '861308180':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '55913767':{'en': u('S\u00e3o Caetano de Odivelas - PA'), 'pt': u('S\u00e3o Caetano de Odivelas - PA')}, '861304740':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861304741':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861304742':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861304743':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861304744':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861304745':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861304746':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861304747':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861300159':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861300158':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861300409':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861300408':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861300403':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861300402':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861300401':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861300400':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861300407':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861300406':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861300405':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861300404':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '818555':{'en': 'Gotsu, Shimane', 'ja': u('\u6c5f\u6d25')}, '818554':{'en': 'Hamada, Shimane', 'ja': u('\u6d5c\u7530')}, '818557':{'en': 'Kawamoto, Shimane', 'ja': u('\u5ddd\u672c')}, '818556':{'en': 'Gotsu, Shimane', 'ja': u('\u6c5f\u6d25')}, '861304528':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861304529':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '818553':{'en': 'Hamada, Shimane', 'ja': u('\u6d5c\u7530')}, '818552':{'en': 'Hamada, Shimane', 'ja': u('\u6d5c\u7530')}, '55993562':{'en': u('Gon\u00e7alves Dias - MA'), 'pt': u('Gon\u00e7alves Dias - MA')}, '55993563':{'en': 'Aldeias Altas - MA', 'pt': 'Aldeias Altas - MA'}, '861304526':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '55993561':{'en': 'Governador Luiz Rocha - MA', 'pt': 'Governador Luiz Rocha - MA'}, '818559':{'en': 'Kawamoto, Shimane', 'ja': u('\u5ddd\u672c')}, '818558':{'en': 'Kawamoto, Shimane', 'ja': u('\u5ddd\u672c')}, '55993564':{'en': u('Governador Eug\u00eanio Barros - MA'), 'pt': u('Governador Eug\u00eanio Barros - MA')}, '55993565':{'en': 'Formosa da Serra Negra - MA', 'pt': 'Formosa da Serra Negra - MA'}, '81744':{'en': 'Yamatotakada, Nara', 'ja': u('\u5927\u548c\u9ad8\u7530')}, '861303856':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '81740':{'en': 'Imazu, Shiga', 'ja': u('\u4eca\u6d25')}, '81743':{'en': 'Nara, Nara', 'ja': u('\u5948\u826f')}, '81742':{'en': 'Nara, Nara', 'ja': u('\u5948\u826f')}, '861303851':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '861300036':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861303850':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '55973423':{'en': 'Fonte Boa - AM', 'pt': 'Fonte Boa - AM'}, '55973425':{'en': u('Juta\u00ed - AM'), 'pt': u('Juta\u00ed - AM')}, '861303853':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '55973427':{'en': u('Juru\u00e1 - AM'), 'pt': u('Juru\u00e1 - AM')}, '55973426':{'en': u('Japur\u00e1 - AM'), 'pt': u('Japur\u00e1 - AM')}, '55973428':{'en': u('Mara\u00e3 - AM'), 'pt': u('Mara\u00e3 - AM')}, '861303852':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '811372':{'en': 'Shikabe, Hokkaido', 'ja': u('\u9e7f\u90e8')}, '861303588':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861303178':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861303179':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '58268':{'en': u('Falc\u00f3n'), 'es': u('Falc\u00f3n')}, '58269':{'en': u('Falc\u00f3n'), 'es': u('Falc\u00f3n')}, '58264':{'en': 'Zulia', 'es': 'Zulia'}, '58265':{'en': 'Zulia', 'es': 'Zulia'}, '58266':{'en': 'Zulia', 'es': 'Zulia'}, '58267':{'en': 'Zulia', 'es': 'Zulia'}, '58260':{'en': 'Colombia', 'es': 'Colombia'}, '58261':{'en': 'Zulia', 'es': 'Zulia'}, '58262':{'en': 'Zulia', 'es': 'Zulia'}, '58263':{'en': 'Zulia', 'es': 'Zulia'}, '861302801':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861302800':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861302803':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861302802':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861302805':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '811378':{'en': 'Imakane, Hokkaido', 'ja': u('\u4eca\u91d1')}, '861302807':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861302806':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861302809':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861302808':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '55923533':{'en': 'Parintins - AM', 'pt': 'Parintins - AM'}, '55923531':{'en': 'Barreirinha - AM', 'pt': 'Barreirinha - AM'}, '55923534':{'en': u('Nhamund\u00e1 - AM'), 'pt': u('Nhamund\u00e1 - AM')}, '861304872':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861308033':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861308769':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861308766':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861308767':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '55963281':{'en': 'Santana - AP', 'pt': 'Santana - AP'}, '55963282':{'en': 'Santana - AP', 'pt': 'Santana - AP'}, '55963283':{'en': 'Santana - AP', 'pt': 'Santana - AP'}, '819543':{'en': 'Takeo, Saga', 'ja': u('\u6b66\u96c4')}, '819542':{'en': 'Takeo, Saga', 'ja': u('\u6b66\u96c4')}, '819544':{'en': 'Takeo, Saga', 'ja': u('\u6b66\u96c4')}, '819547':{'en': 'Kashima, Saga', 'ja': u('\u9e7f\u5cf6')}, '819546':{'en': 'Kashima, Saga', 'ja': u('\u9e7f\u5cf6')}, '861308762':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861308763':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '811398':{'en': 'Kumaishi, Hokkaido', 'ja': u('\u718a\u77f3')}, '861308760':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '811394':{'en': 'Matsumae, Hokkaido', 'ja': u('\u677e\u524d')}, '811395':{'en': 'Esashi, Hokkaido', 'ja': u('\u6c5f\u5dee')}, '811396':{'en': 'Esashi, Hokkaido', 'ja': u('\u6c5f\u5dee')}, '811397':{'en': 'Okushiri, Hokkaido', 'ja': u('\u5965\u5c3b')}, '861304870':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '811392':{'en': 'Kikonai, Hokkaido', 'ja': u('\u6728\u53e4\u5185')}, '811393':{'en': 'Matsumae, Hokkaido', 'ja': u('\u677e\u524d')}, '812378':{'en': 'Sagae, Yamagata', 'ja': u('\u5bd2\u6cb3\u6c5f')}, '812373':{'en': 'Murayama, Yamagata', 'ja': u('\u6751\u5c71')}, '812372':{'en': 'Murayama, Yamagata', 'ja': u('\u6751\u5c71')}, '812377':{'en': 'Sagae, Yamagata', 'ja': u('\u5bd2\u6cb3\u6c5f')}, '812376':{'en': 'Sagae, Yamagata', 'ja': u('\u5bd2\u6cb3\u6c5f')}, '812375':{'en': 'Murayama, Yamagata', 'ja': u('\u6751\u5c71')}, '812374':{'en': 'Murayama, Yamagata', 'ja': u('\u6751\u5c71')}, '861304871':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '771042':{'en': 'Zharyk'}, '861309606':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861309607':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861309604':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861309605':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861309602':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861309603':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861309600':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861309601':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861309608':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861309609':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861308959':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '861308958':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861308951':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861304876':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861308953':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861308952':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861308955':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861308954':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861308957':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861308956':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861306498':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861306499':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861306492':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861306493':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861306490':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861306491':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861306496':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861306497':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861306494':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861306495':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861304877':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301053':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861301052':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '811972':{'en': 'Mizusawa, Iwate', 'ja': u('\u6c34\u6ca2')}, '811973':{'en': 'Mizusawa, Iwate', 'ja': u('\u6c34\u6ca2')}, '811974':{'en': 'Mizusawa, Iwate', 'ja': u('\u6c34\u6ca2')}, '811975':{'en': 'Mizusawa, Iwate', 'ja': u('\u6c34\u6ca2')}, '811976':{'en': 'Kitakami, Iwate', 'ja': u('\u5317\u4e0a')}, '811977':{'en': 'Kitakami, Iwate', 'ja': u('\u5317\u4e0a')}, '811978':{'en': 'Kitakami, Iwate', 'ja': u('\u5317\u4e0a')}, '861301728':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861301059':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861301058':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '8613051':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '81249':{'en': 'Koriyama, Fukushima', 'ja': u('\u90e1\u5c71')}, '81538':{'en': 'Iwata, Shizuoka', 'ja': u('\u78d0\u7530')}, '81240':{'en': '', 'ja': u('\u78d0\u57ce\u5bcc\u5ca1')}, '81537':{'en': 'Kakegawa, Shizuoka', 'ja': u('\u639b\u5ddd')}, '81242':{'en': 'Aizuwakamatsu, Fukushima', 'ja': u('\u4f1a\u6d25\u82e5\u677e')}, '81535':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '81244':{'en': 'Hobara, Fukushima', 'ja': u('\u539f\u753a')}, '81245':{'en': 'Fukushima, Fukushima', 'ja': u('\u798f\u5cf6')}, '81246':{'en': 'Iwaki, Fukushima', 'ja': u('\u3044\u308f\u304d')}, '81531':{'en': 'Tahara, Aichi', 'ja': u('\u7530\u539f')}, '861305602':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861305603':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861305600':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861305601':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861305606':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861305607':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861305604':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861305605':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861305608':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861305609':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '62518':{'en': 'Kotabaru/Batulicin', 'id': 'Kotabaru/Batulicin'}, '62517':{'en': 'Kandangan/Barabai/Rantau/Negara', 'id': 'Kandangan/Barabai/Rantau/Negara'}, '62513':{'en': 'Muara Teweh', 'id': 'Muara Teweh'}, '62512':{'en': 'Pelaihari', 'id': 'Pelaihari'}, '62511':{'en': 'Banjarmasin', 'id': 'Banjarmasin'}, '861304457':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861309739':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861300098':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300091':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861300092':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861300093':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861300094':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861300095':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861300096':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300097':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861304783':{'en': 'Hezhou, Guangxi', 'zh': u('\u5e7f\u897f\u8d3a\u5dde\u5e02')}, '861304451':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861309737':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '77274010':{'ru': u('\u041a\u043e\u043b\u044c\u0436\u0430\u0442, \u0423\u0439\u0433\u0443\u0440\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '55883568':{'en': 'Jaguaribara - CE', 'pt': 'Jaguaribara - CE'}, '55883569':{'en': 'Deputado Irapuan Pinheiro - CE', 'pt': 'Deputado Irapuan Pinheiro - CE'}, '772839':{'en': 'Sarkand', 'ru': u('\u0421\u0430\u0440\u043a\u0430\u043d\u0434\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772838':{'en': 'Balpyk bi', 'ru': u('\u041a\u043e\u043a\u0441\u0443\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772833':{'en': 'Usharal', 'ru': u('\u0410\u043b\u0430\u043a\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '55883561':{'en': u('Ic\u00f3 - CE'), 'pt': u('Ic\u00f3 - CE')}, '55883562':{'en': u('Mineirol\u00e2ndia - CE'), 'pt': u('Mineirol\u00e2ndia - CE')}, '55883563':{'en': u('Ic\u00f3 - CE'), 'pt': u('Ic\u00f3 - CE')}, '55883564':{'en': 'Cedro - CE', 'pt': 'Cedro - CE'}, '55883565':{'en': 'Acopiara - CE', 'pt': 'Acopiara - CE'}, '55883566':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '55883567':{'en': 'Ipaumirim - CE', 'pt': 'Ipaumirim - CE'}, '861302496':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861302497':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861302494':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861302495':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861302492':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861302493':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861302490':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861302491':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '86130418':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861302498':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861302499':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861309613':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '8182929':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182928':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '861303549':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861303548':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '8182921':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182920':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '8182923':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182922':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182925':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182924':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182927':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182926':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '861302148':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861302149':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861302144':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861302145':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861302146':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861302147':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861302140':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861302141':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861302142':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861302143':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861307042':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861307043':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861307040':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861307041':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861305432':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861307047':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '55913269':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861307045':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861307048':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861307049':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861303799':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '55913268':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861308898':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308899':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308890':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861308891':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861308892':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861308893':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861308894':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861302182':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861308896':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308897':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '55892101':{'en': 'Picos - PI', 'pt': 'Picos - PI'}, '811563':{'en': 'Honbetsu, Hokkaido', 'ja': u('\u672c\u5225')}, '811562':{'en': 'Honbetsu, Hokkaido', 'ja': u('\u672c\u5225')}, '811567':{'en': '', 'ja': u('\u5341\u52dd\u6e05\u6c34')}, '811566':{'en': '', 'ja': u('\u5341\u52dd\u6e05\u6c34')}, '811564':{'en': 'Kamishihoro, Hokkaido', 'ja': u('\u4e0a\u58eb\u5e4c')}, '861303064':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '5622':{'en': 'Santiago, Metropolitan Region', 'es': u('Santiago, Regi\u00f3n Metropolitana')}, '861306647':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861306646':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861306645':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861303067':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861306643':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861306642':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861306641':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861306640':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '55883663':{'en': 'Bela Cruz - CE', 'pt': 'Bela Cruz - CE'}, '861306649':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861303061':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861309457':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '55993528':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55983194':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861309456':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '55983198':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55993529':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '861305563':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305562':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305561':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861309452':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '55993525':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '861303068':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861303069':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861305565':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '55883668':{'en': u('Senador S\u00e1 - CE'), 'pt': u('Senador S\u00e1 - CE')}, '861302330':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '55913606':{'en': 'Bagre - PA', 'pt': 'Bagre - PA'}, '55913605':{'en': u('Anaj\u00e1s - PA'), 'pt': u('Anaj\u00e1s - PA')}, '861306709':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306603':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300399':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861300398':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861306602':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300393':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861300392':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861300391':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861300390':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861300397':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861300396':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861300395':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861300394':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861306600':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302339':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861306703':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306607':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861306606':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '55913746':{'en': 'Bujaru - PA', 'pt': 'Bujaru - PA'}, '55913744':{'en': u('Santa Isabel do Par\u00e1 - PA'), 'pt': u('Santa Isabel do Par\u00e1 - PA')}, '861306605':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861304728':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '55913741':{'en': 'Soure - PA', 'pt': 'Soure - PA'}, '861304726':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861304727':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861304724':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861304725':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861304722':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861304723':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861304720':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861304721':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861301558':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '81184':{'en': 'Yurihonjo, Akita', 'ja': u('\u672c\u8358')}, '81183':{'en': 'Yuzawa, Akita', 'ja': u('\u6e6f\u6ca2')}, '81182':{'en': 'Yokote, Akita', 'ja': u('\u6a2a\u624b')}, '861301552':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301553':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301550':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301551':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301556':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861301557':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861301554':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '81188':{'en': 'Akita, Akita', 'ja': u('\u79cb\u7530')}, '7491':{'en': 'Ryazan'}, '861300179':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861300178':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861300177':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861300176':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861300175':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861300174':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300173':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300172':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300171':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300170':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302933':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '55883683':{'en': 'Ipu - CE', 'pt': 'Ipu - CE'}, '7495':{'en': 'Moscow'}, '55883685':{'en': 'Ipueiras - CE', 'pt': 'Ipueiras - CE'}, '55883684':{'en': 'Ipaporanga - CE', 'pt': 'Ipaporanga - CE'}, '55883686':{'en': 'Catunda - CE', 'pt': 'Catunda - CE'}, '861304094':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861304095':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '55993582':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '861304097':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '55993584':{'en': 'Lajeado Novo - MA', 'pt': 'Lajeado Novo - MA'}, '861304091':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '55993586':{'en': 'Ribamar Fiquene - MA', 'pt': 'Ribamar Fiquene - MA'}, '55993587':{'en': u('S\u00e3o Francisco do Brej\u00e3o - MA'), 'pt': u('S\u00e3o Francisco do Brej\u00e3o - MA')}, '861304098':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861304099':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '81763':{'en': 'Fukuno, Toyama', 'ja': u('\u798f\u91ce')}, '81762':{'en': 'Kanazawa, Ishikawa', 'ja': u('\u91d1\u6ca2')}, '81766':{'en': 'Takaoka, Toyama', 'ja': u('\u9ad8\u5ca1')}, '81765':{'en': 'Uozu, Toyama', 'ja': u('\u9b5a\u6d25')}, '81764':{'en': 'Toyama, Toyama', 'ja': u('\u5bcc\u5c71')}, '81987':{'en': 'Nichinan, Miyazaki', 'ja': u('\u65e5\u5357')}, '81986':{'en': 'Miyakonojo, Miyazaki', 'ja': u('\u90fd\u57ce')}, '81985':{'en': 'Miyazaki, Miyazaki', 'ja': u('\u5bae\u5d0e')}, '81984':{'en': 'Kobayashi, Miyazaki', 'ja': u('\u5c0f\u6797')}, '81983':{'en': 'Takanabe, Miyazaki', 'ja': u('\u9ad8\u934b')}, '5718402':{'en': 'San Antonio de Tequendama', 'es': 'San Antonio de Tequendama'}, '5718403':{'en': 'Choachi', 'es': 'Choachi'}, '5718404':{'en': 'Fomeque', 'es': 'Fomeque'}, '861309565':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861303150':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '817705':{'en': 'Obama, Fukui', 'ja': u('\u5c0f\u6d5c')}, '861303152':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861303153':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861303154':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861303155':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861303156':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '819944':{'en': 'Kanoya, Kagoshima', 'ja': u('\u9e7f\u5c4b')}, '861303158':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '55942103':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '55942101':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '817707':{'en': 'Obama, Fukui', 'ja': u('\u5c0f\u6d5c')}, '819946':{'en': 'Kanoya, Kagoshima', 'ja': u('\u9e7f\u5c4b')}, '861302936':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861302827':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861302826':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861302825':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861302824':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861302823':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '817703':{'en': 'Tsuruga, Fukui', 'ja': u('\u6566\u8cc0')}, '861302821':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861302820':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '819942':{'en': '', 'ja': u('\u5927\u6839\u5360')}, '861302829':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861302828':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '55963118':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963116':{'en': 'Santana - AP', 'pt': 'Santana - AP'}, '55963117':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55923084':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '86130060':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '86130061':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130063':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130066':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130067':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '814708':{'en': '', 'ja': u('\u5927\u539f')}, '814709':{'en': 'Kamogawa, Chiba', 'ja': u('\u9d28\u5ddd')}, '814704':{'en': 'Tateyama, Chiba', 'ja': u('\u9928\u5c71')}, '814705':{'en': 'Tateyama, Chiba', 'ja': u('\u9928\u5c71')}, '814706':{'en': '', 'ja': u('\u5927\u539f')}, '814707':{'en': '', 'ja': u('\u5927\u539f')}, '814700':{'en': 'Kamogawa, Chiba', 'ja': u('\u9d28\u5ddd')}, '814701':{'en': 'Kamogawa, Chiba', 'ja': u('\u9d28\u5ddd')}, '814702':{'en': 'Tateyama, Chiba', 'ja': u('\u9928\u5c71')}, '814703':{'en': 'Tateyama, Chiba', 'ja': u('\u9928\u5c71')}, '861309553':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86130938':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '55914003':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55914005':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55914006':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861301771':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '55982106':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861309628':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861309629':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861309624':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861309625':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861309626':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861309627':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861309620':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861309621':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861309622':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '55982109':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861308979':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861308978':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861308977':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861308976':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861308975':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861308974':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861308973':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861308972':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861308971':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861308970':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861301707':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861301706':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861301705':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861301704':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861301703':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861301702':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861301701':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861301700':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '77292':{'en': 'Aktau', 'ru': u('\u0410\u043a\u0442\u0430\u0443')}, '861301709':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861301708':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861308038':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861304535':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '62385':{'en': 'Labuhanbajo/Ruteng', 'id': 'Labuhanbajo/Ruteng'}, '861308839':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '86130371':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861302997':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861301969':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861301968':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861301963':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861301962':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861301961':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861301960':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861301967':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861301966':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861301965':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861301964':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '817613':{'en': 'Komatsu, Ishikawa', 'ja': u('\u5c0f\u677e')}, '817612':{'en': 'Komatsu, Ishikawa', 'ja': u('\u5c0f\u677e')}, '817617':{'en': 'Kaga, Ishikawa', 'ja': u('\u52a0\u8cc0')}, '817616':{'en': 'Komatsu, Ishikawa', 'ja': u('\u5c0f\u677e')}, '817615':{'en': 'Komatsu, Ishikawa', 'ja': u('\u5c0f\u677e')}, '817614':{'en': 'Komatsu, Ishikawa', 'ja': u('\u5c0f\u677e')}, '817618':{'en': 'Kaga, Ishikawa', 'ja': u('\u52a0\u8cc0')}, '55983226':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983227':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '77274033':{'ru': u('\u041e\u0439\u043a\u0430\u0440\u0430\u0433\u0430\u0439\u0441\u043a\u0438\u0439, \u0420\u0430\u0439\u044b\u043c\u0431\u0435\u043a\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '86130651':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '86130650':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86130656':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86130655':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '55983229':{'en': 'Raposa - MA', 'pt': 'Raposa - MA'}, '86130659':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86130658':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861302738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '812838':{'en': 'Sano, Tochigi', 'ja': u('\u4f50\u91ce')}, '812839':{'en': 'Sano, Tochigi', 'ja': u('\u4f50\u91ce')}, '861303960':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '812830':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '861308370':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '812832':{'en': 'Sano, Tochigi', 'ja': u('\u4f50\u91ce')}, '812833':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '812834':{'en': 'Utsunomiya, Tochigi', 'ja': u('\u5b87\u90fd\u5bae')}, '812835':{'en': 'Sano, Tochigi', 'ja': u('\u4f50\u91ce')}, '812836':{'en': 'Sano, Tochigi', 'ja': u('\u4f50\u91ce')}, '812837':{'en': 'Sano, Tochigi', 'ja': u('\u4f50\u91ce')}, '6222':{'en': 'Bandung/Cimahi', 'id': 'Bandung/Cimahi'}, '55913214':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '6221':{'en': 'Greater Jakarta', 'id': 'Jabodetabek'}, '861303709':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861303708':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '55883548':{'en': 'Altaneira - CE', 'pt': 'Altaneira - CE'}, '55883549':{'en': 'Tarrafas - CE', 'pt': 'Tarrafas - CE'}, '55883546':{'en': 'Nova Olinda - CE', 'pt': 'Nova Olinda - CE'}, '55883547':{'en': u('Cariria\u00e7u - CE'), 'pt': u('Cariria\u00e7u - CE')}, '55883544':{'en': 'Farias Brito - CE', 'pt': 'Farias Brito - CE'}, '55883545':{'en': 'Santana do Cariri - CE', 'pt': 'Santana do Cariri - CE'}, '55883542':{'en': u('Miss\u00e3o Velha - CE'), 'pt': u('Miss\u00e3o Velha - CE')}, '55883543':{'en': 'Aurora - CE', 'pt': 'Aurora - CE'}, '861303703':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '55883541':{'en': u('V\u00e1rzea Alegre - CE'), 'pt': u('V\u00e1rzea Alegre - CE')}, '86130388':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861303967':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '55913210':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '86130383':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861303966':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '86130387':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '86130477':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861304649':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86130473':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '55913212':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861304648':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '55913213':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '8182943':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182942':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182941':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '8182940':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '8182947':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '8182946':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '8182945':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '8182944':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '8182949':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '8182948':{'en': 'Hatsukaichi, Hiroshima', 'ja': u('\u5eff\u65e5\u5e02')}, '861304281':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861304280':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861304283':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861304282':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861304285':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861304284':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861304287':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861304286':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861304289':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861304288':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861308110':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861308708':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861308709':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861308700':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861308701':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '861308113':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861308703':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '861308704':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861308705':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861308706':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86130528':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '68629':{'en': 'Bikenibeu'}, '68628':{'en': 'Bikenibeu'}, '68623':{'en': 'Bairiki'}, '68622':{'en': 'Bairiki'}, '68621':{'en': 'Bairiki'}, '68627':{'en': 'Tarawa'}, '68626':{'en': 'Betio'}, '68625':{'en': 'Betio'}, '68624':{'en': 'Bairiki'}, '7712303':{'en': 'Tengizs'}, '7712302':{'en': 'Tengizshevroil'}, '861300700':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861300701':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861300703':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861300704':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861304640':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861308168':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '811589':{'en': 'Okoppe, Hokkaido', 'ja': u('\u8208\u90e8')}, '811588':{'en': 'Okoppe, Hokkaido', 'ja': u('\u8208\u90e8')}, '771538':{'en': 'Beskol'}, '771537':{'en': 'Timiryazevo'}, '771536':{'en': 'Taiynsha'}, '771535':{'en': 'Novoishimski'}, '771534':{'en': 'Sergeyevka'}, '771533':{'en': 'Saumalkol'}, '771532':{'en': 'Smirnovo'}, '811583':{'en': 'Monbetsu, Hokkaido', 'ja': u('\u7d0b\u5225')}, '811582':{'en': 'Monbetsu, Hokkaido', 'ja': u('\u7d0b\u5225')}, '861305667':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '55873889':{'en': 'Cedro - PE', 'pt': 'Cedro - PE'}, '55963326':{'en': 'Ferreira Gomes - AP', 'pt': 'Ferreira Gomes - AP'}, '55963325':{'en': 'Cutias - AP', 'pt': 'Cutias - AP'}, '55963324':{'en': 'Itaubal - AP', 'pt': 'Itaubal - AP'}, '55963323':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963322':{'en': u('Pedra Branca do Amapar\u00ed - AP'), 'pt': u('Pedra Branca do Amapar\u00ed - AP')}, '55963321':{'en': 'Serra do Navio - AP', 'pt': 'Serra do Navio - AP'}, '861308161':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861308162':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861307938':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861307939':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861307932':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861307933':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861307930':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861307931':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861307936':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861307937':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861307934':{'en': 'Dingxi, Gansu', 'zh': u('\u7518\u8083\u7701\u5b9a\u897f\u5e02')}, '861307935':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '812580':{'en': 'Tokamachi, Niigata', 'ja': u('\u5341\u65e5\u753a')}, '812582':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '812583':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '812584':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '812585':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '812238':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '812239':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '812236':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '812237':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '812234':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '812235':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '812232':{'en': 'Iwanuma, Miyagi', 'ja': u('\u5ca9\u6cbc')}, '812233':{'en': 'Iwanuma, Miyagi', 'ja': u('\u5ca9\u6cbc')}, '812230':{'en': 'Sendai, Miyagi', 'ja': u('\u4ed9\u53f0')}, '861309578':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861309579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '55893521':{'en': 'Floriano - PI', 'pt': 'Floriano - PI'}, '55893523':{'en': 'Floriano - PI', 'pt': 'Floriano - PI'}, '55893522':{'en': 'Floriano - PI', 'pt': 'Floriano - PI'}, '861309738':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861308558':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861309570':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861309571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861309572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '55913621':{'en': u('Cai\u00e7ava - PA'), 'pt': u('Cai\u00e7ava - PA')}, '861309145':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861309573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861309144':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861309574':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861309147':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861309575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861309146':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861301398':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301399':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301394':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301395':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301396':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301397':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861301390':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861301391':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861301392':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861301393':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '5748511':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5748510':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '861309143':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '55993637':{'en': u('Josel\u00e2ndia - MA'), 'pt': u('Josel\u00e2ndia - MA')}, '57790':{'en': 'Bucaramanga', 'es': 'Bucaramanga'}, '861309142':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308142':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861308143':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861308140':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861308141':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '55913728':{'en': u('Conc\u00f3rdia do Par\u00e1 - PA'), 'pt': u('Conc\u00f3rdia do Par\u00e1 - PA')}, '55913729':{'en': 'Paragominas - PA', 'pt': 'Paragominas - PA'}, '861308144':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861308145':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '55913724':{'en': 'Benevides - PA', 'pt': 'Benevides - PA'}, '55913725':{'en': u('Ape\u00fa - PA'), 'pt': u('Ape\u00fa - PA')}, '55913726':{'en': u('Ulian\u00f3polis - PA'), 'pt': u('Ulian\u00f3polis - PA')}, '55913727':{'en': u('Tom\u00e9-A\u00e7u - PA'), 'pt': u('Tom\u00e9-A\u00e7u - PA')}, '55913721':{'en': 'Castanhal - PA', 'pt': 'Castanhal - PA'}, '55913722':{'en': u('Curu\u00e7\u00e1 - PA'), 'pt': u('Curu\u00e7\u00e1 - PA')}, '55913723':{'en': 'Marapanim - PA', 'pt': 'Marapanim - PA'}, '861304704':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861304705':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861304706':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '55993613':{'en': u('Graja\u00fa - MA'), 'pt': u('Graja\u00fa - MA')}, '55993614':{'en': u('Itaipava do Graja\u00fa - MA'), 'pt': u('Itaipava do Graja\u00fa - MA')}, '861304701':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861304702':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861304703':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861304878':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861304879':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861304708':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861304709':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301570':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861301571':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861301572':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861301573':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861301574':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861301575':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861301576':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '8184935':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '64627':{'en': 'Hawera'}, '861301579':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '81167':{'en': 'Furano, Hokkaido', 'ja': u('\u5bcc\u826f\u91ce')}, '81166':{'en': 'Asahikawa, Hokkaido', 'ja': u('\u65ed\u5ddd')}, '8184936':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '81162':{'en': 'Wakkanai, Hokkaido', 'ja': u('\u7a1a\u5185')}, '8184937':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '861303380':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '8184930':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '861303383':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '8184931':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '861309555':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861303382':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '55993638':{'en': u('Alto Alegre do Maranh\u00e3o - MA'), 'pt': u('Alto Alegre do Maranh\u00e3o - MA')}, '861303385':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '8184933':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '861303384':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861303387':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '55933064':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '818512':{'en': 'Nishigo, Fukushima', 'ja': u('\u897f\u90f7')}, '861304642':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '818514':{'en': 'Ama, Shimane', 'ja': u('\u6d77\u58eb')}, '64480':{'en': 'Wellington'}, '861301510':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '55933062':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '861308849':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861301519':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861305504':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861303136':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861303137':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861303134':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '55933538':{'en': 'Terra Santa - PA', 'pt': 'Terra Santa - PA'}, '861303132':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861303133':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861303130':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861303131':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861303138':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861303139':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861302849':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861302848':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861302845':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861302844':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861302847':{'en': 'Baoji, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b9d\u9e21\u5e02')}, '861302846':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861302841':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861302840':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861302843':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861302842':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '55973464':{'en': 'Tonantins - AM', 'pt': 'Tonantins - AM'}, '55973461':{'en': u('Santo Ant\u00f4nio do I\u00e7\u00e1 - AM'), 'pt': u('Santo Ant\u00f4nio do I\u00e7\u00e1 - AM')}, '861301998':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '55973463':{'en': u('Amatur\u00e1 - AM'), 'pt': u('Amatur\u00e1 - AM')}, '861305310':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861305893':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861305892':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861304645':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861305890':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861305897':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861305896':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861305895':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861305894':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861305899':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861305898':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86130048':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86130045':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86130041':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861305312':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '815589':{'en': '', 'ja': u('\u4fee\u5584\u5bfa\u5927\u4ec1')}, '815588':{'en': '', 'ja': u('\u4fee\u5584\u5bfa\u5927\u4ec1')}, '861306923':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '815583':{'en': 'Shimoda, Shizuoka', 'ja': u('\u4e0b\u7530')}, '815582':{'en': 'Shimoda, Shizuoka', 'ja': u('\u4e0b\u7530')}, '815585':{'en': 'Shimoda, Shizuoka', 'ja': u('\u4e0b\u7530')}, '815584':{'en': 'Shimoda, Shizuoka', 'ja': u('\u4e0b\u7530')}, '815587':{'en': '', 'ja': u('\u4fee\u5584\u5bfa\u5927\u4ec1')}, '815586':{'en': 'Shimoda, Shizuoka', 'ja': u('\u4e0b\u7530')}, '861302269':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302268':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302261':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861302260':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302263':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861302262':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861302265':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861302264':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861302267':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861302266':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '771234':{'en': 'Indernborski'}, '771235':{'en': 'Dossor'}, '771236':{'en': 'Makhambet'}, '771237':{'en': 'Kulsary'}, '771231':{'en': 'Akkystau'}, '771233':{'en': 'Ganyushkino'}, '771238':{'en': 'Miyaly'}, '771239':{'en': 'Makat'}, '861305314':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '55863582':{'en': u('S\u00e3o Raimundo Nonato - PI'), 'pt': u('S\u00e3o Raimundo Nonato - PI')}, '861303060':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861305522':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '86130458':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861304644':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '811532':{'en': 'Nemuro, Hokkaido', 'ja': u('\u6839\u5ba4')}, '819968':{'en': 'Izumi, Kagoshima', 'ja': u('\u51fa\u6c34')}, '861308914':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308917':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '811533':{'en': 'Nemuro, Hokkaido', 'ja': u('\u6839\u5ba4')}, '861308911':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308910':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308913':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308912':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861301497':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861308919':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861308918':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '811535':{'en': 'Akkeshi, Hokkaido', 'ja': u('\u539a\u5cb8')}, '811536':{'en': 'Akkeshi, Hokkaido', 'ja': u('\u539a\u5cb8')}, '861303062':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861307031':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '811537':{'en': 'Nakashibetsu, Hokkaido', 'ja': u('\u4e2d\u6a19\u6d25')}, '811934':{'en': 'Kamaishi, Iwate', 'ja': u('\u91dc\u77f3')}, '811935':{'en': 'Kamaishi, Iwate', 'ja': u('\u91dc\u77f3')}, '811936':{'en': 'Miyako, Iwate', 'ja': u('\u5bae\u53e4')}, '811937':{'en': 'Miyako, Iwate', 'ja': u('\u5bae\u53e4')}, '861301769':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301768':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '811932':{'en': 'Kamaishi, Iwate', 'ja': u('\u91dc\u77f3')}, '811933':{'en': 'Kamaishi, Iwate', 'ja': u('\u91dc\u77f3')}, '861301765':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301764':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861301767':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861301766':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '811938':{'en': 'Miyako, Iwate', 'ja': u('\u5bae\u53e4')}, '861301760':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861301763':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861301762':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861303063':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861309648':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '81572':{'en': 'Tajimi, Gifu', 'ja': u('\u591a\u6cbb\u898b')}, '81577':{'en': 'Takayama, Gifu', 'ja': u('\u9ad8\u5c71')}, '81578':{'en': 'Kamioka, Akita', 'ja': u('\u795e\u5ca1')}, '55913031':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '5748726':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5748724':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5748725':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5748722':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5748723':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5748720':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '5748721':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '861308895':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861309643':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861309640':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861309641':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861309644':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '7427':{'en': 'Chukotka Autonomous District'}, '861305648':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861305649':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861305646':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861305647':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861305644':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '55964141':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861305642':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861305643':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861305640':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861305641':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861308915':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '55933528':{'en': 'Novo Progresso - PA', 'pt': 'Novo Progresso - PA'}, '861301980':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861301983':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861301982':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861301985':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861301984':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861301987':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861301986':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861301989':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861301988':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '55933522':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '55933523':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '55933524':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '55933526':{'en': 'Alenquer - PA', 'pt': 'Alenquer - PA'}, '55933527':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '86130254':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '817368':{'en': 'Iwade, Wakayama', 'ja': u('\u5ca9\u51fa')}, '817367':{'en': 'Iwade, Wakayama', 'ja': u('\u5ca9\u51fa')}, '817366':{'en': 'Iwade, Wakayama', 'ja': u('\u5ca9\u51fa')}, '817365':{'en': '', 'ja': u('\u548c\u6b4c\u5c71\u6a4b\u672c')}, '817364':{'en': '', 'ja': u('\u548c\u6b4c\u5c71\u6a4b\u672c')}, '817363':{'en': '', 'ja': u('\u548c\u6b4c\u5c71\u6a4b\u672c')}, '817362':{'en': '', 'ja': u('\u548c\u6b4c\u5c71\u6a4b\u672c')}, '817713':{'en': 'Kameoka, Kyoto', 'ja': u('\u4e80\u5ca1')}, '771838':{'en': 'Koktobe'}, '771839':{'en': 'Akku'}, '86130251':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '771832':{'en': 'Irtyshsk'}, '771833':{'en': 'Terenkol'}, '771831':{'en': 'Zhelezinka'}, '771836':{'en': 'Sharbakty'}, '55873966':{'en': 'Exu - PE', 'pt': 'Exu - PE'}, '771834':{'en': 'Uspenka'}, '55873964':{'en': u('Serrol\u00e2ndia - PE'), 'pt': u('Serrol\u00e2ndia - PE')}, '86130679':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86130678':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86130673':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86130672':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86130675':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '55954009':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '86130677':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86130676':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '812852':{'en': 'Oyama, Tochigi', 'ja': u('\u5c0f\u5c71')}, '812853':{'en': 'Oyama, Tochigi', 'ja': u('\u5c0f\u5c71')}, '812856':{'en': 'Mooka, Tochigi', 'ja': u('\u771f\u5ca1')}, '812857':{'en': 'Mooka, Tochigi', 'ja': u('\u771f\u5ca1')}, '812854':{'en': 'Oyama, Tochigi', 'ja': u('\u5c0f\u5c71')}, '812855':{'en': 'Oyama, Tochigi', 'ja': u('\u5c0f\u5c71')}, '812858':{'en': 'Mooka, Tochigi', 'ja': u('\u771f\u5ca1')}, '812859':{'en': 'Oyama, Tochigi', 'ja': u('\u5c0f\u5c71')}, '861308359':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861308358':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861308357':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861308356':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861308355':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861308354':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861308353':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861308352':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861308351':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861308350':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '55883524':{'en': 'Aiuaba - CE', 'pt': 'Aiuaba - CE'}, '55883525':{'en': 'Antonina do Norte - CE', 'pt': 'Antonina do Norte - CE'}, '55883526':{'en': 'Saboeiro - CE', 'pt': 'Saboeiro - CE'}, '55883527':{'en': 'Pereiro - CE', 'pt': 'Pereiro - CE'}, '861303727':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '55883521':{'en': 'Crato - CE', 'pt': 'Crato - CE'}, '55883522':{'en': 'Jaguaribe - CE', 'pt': 'Jaguaribe - CE'}, '55883523':{'en': 'Crato - CE', 'pt': 'Crato - CE'}, '861309347':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '55993422':{'en': 'Caxias - MA', 'pt': 'Caxias - MA'}, '55993421':{'en': 'Caxias - MA', 'pt': 'Caxias - MA'}, '861303728':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '55993427':{'en': 'Barra do Corda - MA', 'pt': 'Barra do Corda - MA'}, '55883529':{'en': u('Milh\u00e3 - CE'), 'pt': u('Milh\u00e3 - CE')}, '55993425':{'en': 'Jenipapo dos Vieiras - MA', 'pt': 'Jenipapo dos Vieiras - MA'}, '861309340':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861302980':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861302981':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861302982':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861302983':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861302984':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861302985':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861302986':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861302987':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861302988':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861302989':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '86130456':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130451':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '86130450':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86130905':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861308343':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861303587':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861303586':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861303585':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861303584':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861303583':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861303582':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861303581':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861303580':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861303859':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861303858':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861303589':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '822':{'ar': u('\u0633\u0648\u0644'), 'bg': u('\u0421\u0435\u0443\u043b'), 'ca': u('Se\u00fcl'), 'cs': 'Soul', 'el': u('\u03a3\u03b5\u03bf\u03cd\u03bb'), 'en': 'Seoul', 'es': u('Se\u00fal'), 'fi': 'Soul', 'fr': u('S\u00e9oul'), 'hi': u('\u0938\u093f\u092f\u094b\u0932'), 'hu': u('Sz\u00f6ul'), 'iw': u('\u05e1\u05d0\u05d5\u05dc'), 'ja': u('\u30bd\u30a6\u30eb\u7279\u5225\u5e02'), 'ko': u('\uc11c\uc6b8'), 'tr': 'Seul', 'zh': u('\u9996\u5c14\u5e02'), 'zh_Hant': u('\u9996\u723e\u5e02')}, '5718230':{'en': 'Subachoque', 'es': 'Subachoque'}, '5718232':{'en': 'Funza', 'es': 'Funza'}, '861307008':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861307009':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861307006':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861307007':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861307004':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861307005':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861307002':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861307003':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861307000':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861307001':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '68641':{'en': 'Abemama'}, '68640':{'en': 'Aranuka'}, '68643':{'en': 'Tabiteuea North'}, '68642':{'en': 'Nonouti'}, '68645':{'en': 'Onotoa'}, '68644':{'en': 'Tabiteuea South'}, '68647':{'en': 'Nikunau'}, '68646':{'en': 'Beru'}, '68649':{'en': 'Arorae'}, '68648':{'en': 'Tamana'}, '861303736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861309353':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861303730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861303731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '55873798':{'en': 'Bom Conselho - PE', 'pt': 'Bom Conselho - PE'}, '861303732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '55873791':{'en': 'Palmeirina - PE', 'pt': 'Palmeirina - PE'}, '55873792':{'en': 'Terezinha - PE', 'pt': 'Terezinha - PE'}, '55873793':{'en': u('Cal\u00e7ado - PE'), 'pt': u('Cal\u00e7ado - PE')}, '55873794':{'en': 'Ibirajuba - PE', 'pt': 'Ibirajuba - PE'}, '55873795':{'en': 'Jurema - PE', 'pt': 'Jurema - PE'}, '55873796':{'en': 'Capoeiras - PE', 'pt': 'Capoeiras - PE'}, '861302188':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861302189':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861302180':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861302181':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861300742':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861302183':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861302184':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861302185':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861302186':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861302187':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861309179':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861303448':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '5663':{'en': u('Valdivia, Los R\u00edos'), 'es': u('Valdivia, Los R\u00edos')}, '5661':{'en': u('Punta Arenas, Magallanes and Ant\u00e1rtica Chilena'), 'es': 'Punta Arenas, Magallanes'}, '861303449':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '5667':{'en': u('Coyhaique, Ais\u00e9n'), 'es': u('Coihaique, Ays\u00e9n')}, '5665':{'en': 'Puerto Montt, Los Lagos', 'es': 'Puerto Montt, Los Lagos'}, '5664':{'en': 'Osorno, Los Lagos', 'es': 'Osorno, Los Lagos'}, '861306351':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861306350':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861306353':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861306352':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861306355':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861306354':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861306357':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861306356':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861306359':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861306358':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861306609':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861306608':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861309414':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861304316':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303446':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861303447':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '86130930':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '55893549':{'en': u('Alvorada do Gurgu\u00e9ia - PI'), 'pt': u('Alvorada do Gurgu\u00e9ia - PI')}, '55893547':{'en': u('S\u00e3o Miguel do Fidalgo - PI'), 'pt': u('S\u00e3o Miguel do Fidalgo - PI')}, '55893546':{'en': u('Bertol\u00ednia - PI'), 'pt': u('Bertol\u00ednia - PI')}, '55893544':{'en': u('Uru\u00e7u\u00ed - PI'), 'pt': u('Uru\u00e7u\u00ed - PI')}, '55893543':{'en': u('Ant\u00f4nio Almeida - PI'), 'pt': u('Ant\u00f4nio Almeida - PI')}, '55893542':{'en': 'Landri Sales - PI', 'pt': 'Landri Sales - PI'}, '55893541':{'en': 'Marcos Parente - PI', 'pt': 'Marcos Parente - PI'}, '861306057':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '8147957':{'en': 'Yokaichiba, Chiba', 'ja': u('\u516b\u65e5\u5e02\u5834')}, '8147956':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '8147955':{'en': 'Yokaichiba, Chiba', 'ja': u('\u516b\u65e5\u5e02\u5834')}, '8147954':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '8147953':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '8147952':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '8147951':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '8147950':{'en': 'Yokaichiba, Chiba', 'ja': u('\u516b\u65e5\u5e02\u5834')}, '8147959':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '8147958':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '861304579':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861301372':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861301373':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861301370':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861301371':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861301376':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861301377':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861301374':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861301375':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861301378':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861301379':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861300357':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861300356':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861300355':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861300354':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861300353':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861300352':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861300351':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '861300350':{'en': 'Xuzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5f90\u5dde\u5e02')}, '55873884':{'en': u('S\u00e3o Jos\u00e9 do Belmonte - PE'), 'pt': u('S\u00e3o Jos\u00e9 do Belmonte - PE')}, '55873885':{'en': 'Mirandiba - PE', 'pt': 'Mirandiba - PE'}, '55873886':{'en': 'Verdejante - PE', 'pt': 'Verdejante - PE'}, '55873887':{'en': u('Oroc\u00f3 - PE'), 'pt': u('Oroc\u00f3 - PE')}, '55873880':{'en': 'Granito - PE', 'pt': 'Granito - PE'}, '55873881':{'en': 'Ipubi - PE', 'pt': 'Ipubi - PE'}, '55873882':{'en': 'Serrita - PE', 'pt': 'Serrita - PE'}, '861300358':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861304858':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861304859':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861304850':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861304851':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861304852':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304853':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304854':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861304855':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861304856':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861304857':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '55993636':{'en': u('Po\u00e7\u00e3o de Pedras - MA'), 'pt': u('Po\u00e7\u00e3o de Pedras - MA')}, '818688':{'en': 'Mimasaka, Okayama', 'ja': u('\u7f8e\u4f5c')}, '55993634':{'en': 'Lago do Junco - MA', 'pt': 'Lago do Junco - MA'}, '55993635':{'en': 'Lago Verde - MA', 'pt': 'Lago Verde - MA'}, '8184938':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '8184939':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '55993631':{'en': u('S\u00e3o Lu\u00eds Gonzaga do Maranh\u00e3o - MA'), 'pt': u('S\u00e3o Lu\u00eds Gonzaga do Maranh\u00e3o - MA')}, '8184934':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '818680':{'en': 'Okayama, Okayama', 'ja': u('\u5ca1\u5c71')}, '818683':{'en': 'Tsuyama, Okayama', 'ja': u('\u6d25\u5c71')}, '818682':{'en': 'Tsuyama, Okayama', 'ja': u('\u6d25\u5c71')}, '818685':{'en': 'Tsuyama, Okayama', 'ja': u('\u6d25\u5c71')}, '818684':{'en': 'Tsuyama, Okayama', 'ja': u('\u6d25\u5c71')}, '8184932':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '55993639':{'en': u('S\u00e3o Mateus do Maranh\u00e3o - MA'), 'pt': u('S\u00e3o Mateus do Maranh\u00e3o - MA')}, '861301516':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301517':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861301514':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861301515':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301512':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '861301513':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '55933063':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '861301511':{'en': 'Hulun, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u4f26\u8d1d\u5c14\u5e02')}, '81143':{'en': 'Muroran, Hokkaido', 'ja': u('\u5ba4\u862d')}, '81142':{'en': 'Date, Hokkaido', 'ja': u('\u4f0a\u9054')}, '81493':{'en': 'Higashimatsuyama, Saitama', 'ja': u('\u6771\u677e\u5c71')}, '81492':{'en': 'Kawagoe, Saitama', 'ja': u('\u5ddd\u8d8a')}, '81495':{'en': 'Honjo, Saitama', 'ja': u('\u672c\u5e84')}, '81494':{'en': 'Chichibu, Saitama', 'ja': u('\u79e9\u7236')}, '861301518':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '81144':{'en': 'Tomakomai, Hokkaido', 'ja': u('\u82eb\u5c0f\u7267')}, '861302084':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '81727':{'en': 'Ikeda, Osaka', 'ja': u('\u6c60\u7530')}, '81726':{'en': 'Ibaraki, Osaka', 'ja': u('\u8328\u6728')}, '81725':{'en': 'Izumi, Osaka', 'ja': u('\u548c\u6cc9')}, '81724':{'en': '', 'ja': u('\u5cb8\u548c\u7530\u8c9d\u585a')}, '81722':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '81721':{'en': 'Tondabayashi, Osaka', 'ja': u('\u5bcc\u7530\u6797')}, '81729':{'en': 'Yao, Osaka', 'ja': u('\u516b\u5c3e')}, '81728':{'en': 'Neyagawa, Osaka', 'ja': u('\u5bdd\u5c4b\u5ddd')}, '861303845':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861303842':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '819599':{'en': 'Oseto, Nagasaki', 'ja': u('\u5927\u702c\u6238')}, '861308032':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861305329':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861305328':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861305321':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861305320':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861305323':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861305322':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861305325':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861305324':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861305327':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861305326':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '62324':{'en': 'Pamekasan', 'id': 'Pamekasan'}, '62325':{'en': 'Sangkapura', 'id': 'Sangkapura'}, '62326':{'en': 'Masalembu Islands', 'id': 'Masalembu Islands'}, '62327':{'en': 'Kangean/Masalembu', 'id': 'Kangean/Masalembu'}, '62321':{'en': 'Mojokerto/Jombang', 'id': 'Mojokerto/Jombang'}, '62322':{'en': 'Lamongan', 'id': 'Lamongan'}, '62323':{'en': 'Sampang', 'id': 'Sampang'}, '861303442':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861303443':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861303440':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861303441':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '62328':{'en': 'Sumenep', 'id': 'Sumenep'}, '7728302':{'ru': u('\u0410\u043a\u0436\u0430\u0440, \u041a\u0430\u0440\u0430\u0442\u0430\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861303444':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861303445':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '7728303':{'ru': u('\u041a\u043e\u043f\u0431\u0435\u0440\u043b\u0438\u043a, \u041a\u0430\u0440\u0430\u0442\u0430\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861303725':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '55973483':{'en': 'Envira - AM', 'pt': 'Envira - AM'}, '55973482':{'en': 'Ipixuna - AM', 'pt': 'Ipixuna - AM'}, '55973481':{'en': u('Eirunep\u00e9 - AM'), 'pt': u('Eirunep\u00e9 - AM')}, '55973485':{'en': u('Guajar\u00e1 - AM'), 'pt': u('Guajar\u00e1 - AM')}, '55973484':{'en': 'Itamarati - AM', 'pt': 'Itamarati - AM'}, '861304623':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '7728301':{'ru': u('\u0414\u043e\u0441\u0442\u044b\u043a, \u0410\u043b\u0430\u043a\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '84511':{'en': 'Da Nang', 'vi': u('TP \u0110\u00e0 N\u1eb5ng')}, '84510':{'en': 'Quang Nam province', 'vi': u('Qu\u1ea3ng Nam')}, '7728305':{'ru': u('\u041a\u0430\u043c\u044b\u0441\u043a\u0430\u043b\u0430, \u0410\u043b\u0430\u043a\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '7728306':{'ru': u('\u0410\u043a\u0448\u0438, \u0410\u043b\u0430\u043a\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '7728307':{'ru': u('\u041a\u0430\u0440\u0430\u043a\u0443\u043c, \u041a\u0430\u0440\u0430\u0442\u0430\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861304622':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '771032':{'en': 'Karazhal'}, '771033':{'en': 'Agadyr'}, '771030':{'en': 'Atasu'}, '771031':{'en': 'Aksu-Ayuly'}, '86130020':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130021':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130022':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '771035':{'en': 'Ulytau'}, '771038':{'en': 'Shashubai'}, '771039':{'en': 'Priozersk'}, '86130029':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861304621':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '812913':{'en': 'Hokota, Ibaraki', 'ja': u('\u927e\u7530')}, '861304620':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861304627':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '571830':{'en': 'Girardot', 'es': 'Girardot'}, '571831':{'en': 'Girardot', 'es': 'Girardot'}, '571832':{'en': 'Girardot', 'es': 'Girardot'}, '571833':{'en': 'Girardot', 'es': 'Girardot'}, '818976':{'en': 'Niihama, Ehime', 'ja': u('\u65b0\u5c45\u6d5c')}, '86130024':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130025':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '55883085':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '861304626':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '7485':{'en': 'Yaroslavl'}, '7484':{'en': 'Kaluga'}, '7487':{'en': 'Tula'}, '7486':{'en': 'Orel'}, '7481':{'en': 'Smolensk'}, '7483':{'en': 'Bryansk'}, '7482':{'en': 'Tver'}, '771036':{'en': 'Balkhash'}, '771037':{'en': 'Aktogai'}, '861308939':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '818978':{'en': 'Hakata, Ehime', 'ja': u('\u4f2f\u65b9')}, '771034':{'en': 'Zhezdy'}, '861308933':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861308932':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861308931':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '86130023':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861308937':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861308936':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861308935':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861308934':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861304624':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861301743':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861301742':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861301741':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861301740':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861301747':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861301746':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861301745':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861301744':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861301749':{'en': 'Zunyi, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9075\u4e49\u5e02')}, '861301748':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '77252':{'en': 'Shymkent', 'ru': u('\u0428\u044b\u043c\u043a\u0435\u043d\u0442')}, '861308039':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861303742':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861303368':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '55983233':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983232':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983231':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983237':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983236':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983235':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983234':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '81550':{'en': 'Gotenba, Shizuoka', 'ja': u('\u5fa1\u6bbf\u5834')}, '81551':{'en': 'Nirasaki, Yamanashi', 'ja': u('\u97ee\u5d0e')}, '81552':{'en': 'Kofu, Yamanashi', 'ja': u('\u7532\u5e9c')}, '81553':{'en': 'Yamanashi, Yamanashi', 'ja': u('\u5c71\u68a8')}, '81554':{'en': 'Otsuki, Yamanashi', 'ja': u('\u5927\u6708')}, '81555':{'en': 'Fujiyoshida, Yamanashi', 'ja': u('\u5409\u7530')}, '81557':{'en': 'Ito, Shizuoka', 'ja': u('\u4f0a\u6771')}, '861304629':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861303744':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '64782':{'en': 'Hamilton/Huntly'}, '64783':{'en': 'Hamilton'}, '64784':{'en': 'Hamilton'}, '64785':{'en': 'Hamilton'}, '64786':{'en': 'Paeroa/Waihi/Thames/Whangamata'}, '64787':{'en': 'Te Awamutu/Otorohanga/Te Kuiti'}, '64788':{'en': 'Matamata/Putaruru/Morrinsville'}, '64789':{'en': 'Taumarunui'}, '55983357':{'en': 'Matinha - MA', 'pt': 'Matinha - MA'}, '861309576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '55983359':{'en': u('S\u00e3o Jo\u00e3o Batista - MA'), 'pt': u('S\u00e3o Jo\u00e3o Batista - MA')}, '861305664':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861305665':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861305666':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '81434':{'en': 'Chiba, Chiba', 'ja': u('\u5343\u8449')}, '861305660':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861305661':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861305662':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861305663':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861305668':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861305669':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861309525':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861303746':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '55933505':{'en': 'Aveiro - PA', 'pt': 'Aveiro - PA'}, '55933502':{'en': 'Castelo dos Sonhos - PA', 'pt': 'Castelo dos Sonhos - PA'}, '55873945':{'en': 'Serra Talhada - PE', 'pt': 'Serra Talhada - PE'}, '55873946':{'en': 'Salgueiro - PE', 'pt': 'Salgueiro - PE'}, '55873948':{'en': 'Bom Nome - PE', 'pt': 'Bom Nome - PE'}, '861309708':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861309706':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '86130619':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130618':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130617':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130616':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130614':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86130613':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86130612':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '86130611':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861305481':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '812878':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '861309701':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '812874':{'en': 'Otawara, Tochigi', 'ja': u('\u5927\u7530\u539f')}, '812875':{'en': 'Otawara, Tochigi', 'ja': u('\u5927\u7530\u539f')}, '812876':{'en': 'Kuroiso, Tochigi', 'ja': u('\u9ed2\u78ef')}, '812877':{'en': 'Kuroiso, Tochigi', 'ja': u('\u9ed2\u78ef')}, '812872':{'en': 'Otawara, Tochigi', 'ja': u('\u5927\u7530\u539f')}, '812873':{'en': 'Otawara, Tochigi', 'ja': u('\u5927\u7530\u539f')}, '861308335':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861308334':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861308337':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '772548':{'en': 'Shayan'}, '772239':{'en': 'Makanchi'}, '861308330':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861308333':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '6261':{'en': 'Medan', 'id': 'Medan'}, '772542':{'en': 'Asykata'}, '772541':{'en': 'Myrzakent'}, '772540':{'en': 'Arys'}, '772547':{'en': 'Lenger'}, '772546':{'en': 'Sholakkorgan'}, '772544':{'en': 'Shaulder'}, '861304137':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861304136':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861304135':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304134':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304133':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304132':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304131':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861304130':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861309329':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861309328':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861304139':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861304138':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '55943422':{'en': u('Pi\u00e7arras - PA'), 'pt': u('Pi\u00e7arras - PA')}, '86130920':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '55943421':{'en': u('Concei\u00e7\u00e3o do Araguaia - PA'), 'pt': u('Concei\u00e7\u00e3o do Araguaia - PA')}, '55943426':{'en': 'Xinguara - PA', 'pt': 'Xinguara - PA'}, '55943427':{'en': u('\u00c1gua Azul do Norte - PA'), 'pt': u('\u00c1gua Azul do Norte - PA')}, '55943424':{'en': u('Reden\u00e7\u00e3o - PA'), 'pt': u('Reden\u00e7\u00e3o - PA')}, '55943428':{'en': 'Rio Maria - PA', 'pt': 'Rio Maria - PA'}, '55973343':{'en': u('Tef\u00e9 - AM'), 'pt': u('Tef\u00e9 - AM')}, '55973345':{'en': u('Alvar\u00e3es - AM'), 'pt': u('Alvar\u00e3es - AM')}, '55973346':{'en': 'Uarini - AM', 'pt': 'Uarini - AM'}, '55932101':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '861300657':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300654':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861300655':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861300652':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861300653':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861300650':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861300651':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861300658':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861300659':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '844':{'en': 'Hanoi', 'vi': u('Th\u1ee7 \u0111\u00f4 H\u00e0 N\u1ed9i')}, '848':{'vi': u('Th\u00e0nh ph\u1ed1 H\u1ed3 Ch\u00ed Minh')}, '55953553':{'en': u('Cant\u00e1 - RR'), 'pt': u('Cant\u00e1 - RR')}, '55953552':{'en': 'Bonfim - RR', 'pt': 'Bonfim - RR'}, '861308744':{'en': 'Nujiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6012\u6c5f\u5088\u50f3\u65cf\u81ea\u6cbb\u5dde')}, '62553':{'en': 'Malinau', 'id': 'Malinau'}, '861308746':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861308747':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861308740':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861308741':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861308742':{'en': 'Deqen, Yunnan', 'zh': u('\u4e91\u5357\u7701\u8fea\u5e86\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861301900':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '5718253':{'en': 'Madrid', 'es': 'Madrid'}, '5718252':{'en': 'Madrid', 'es': 'Madrid'}, '5718251':{'en': 'Madrid', 'es': 'Madrid'}, '5718250':{'en': 'Madrid', 'es': 'Madrid'}, '5718257':{'en': 'Funza', 'es': 'Funza'}, '62551':{'en': 'Tarakan', 'id': 'Tarakan'}, '5718255':{'en': 'Madrid', 'es': 'Madrid'}, '5718254':{'en': 'Madrid', 'es': 'Madrid'}, '861301904':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861302478':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861302479':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861302470':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302471':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302472':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861301906':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861302474':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302475':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302476':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861302477':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861305487':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861308207':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303309':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303308':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308206':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303301':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861303300':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303303':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861303302':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861303305':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303304':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861303307':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861303306':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861302658':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302659':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302654':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861302655':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861302656':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861302657':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302650':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861302651':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861302652':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861302653':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861308209':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861308208':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861304578':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '5641':{'en': u('Concepci\u00f3n, Biob\u00edo'), 'es': u('Concepci\u00f3n, Biob\u00edo')}, '5643':{'en': u('Los Angeles, Biob\u00edo'), 'es': u('Los Angeles, Biob\u00edo')}, '5642':{'en': u('Chill\u00e1n, Biob\u00edo'), 'es': u('Chill\u00e1n, Biob\u00edo')}, '5645':{'en': u('Temuco, Araucan\u00eda'), 'es': u('Temuco, Araucan\u00eda')}, '861308724':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '815952':{'en': '', 'ja': u('\u4e0a\u91ce')}, '815953':{'en': '', 'ja': u('\u4e0a\u91ce')}, '815956':{'en': '', 'ja': u('\u4e0a\u91ce')}, '815957':{'en': '', 'ja': u('\u4e0a\u91ce')}, '815954':{'en': '', 'ja': u('\u4e0a\u91ce')}, '815955':{'en': '', 'ja': u('\u4e0a\u91ce')}, '815958':{'en': 'Kameyama, Mie', 'ja': u('\u4e80\u5c71')}, '815959':{'en': 'Kameyama, Mie', 'ja': u('\u4e80\u5c71')}, '55993539':{'en': u('Vila Nova dos Mart\u00edrios - MA'), 'pt': u('Vila Nova dos Mart\u00edrios - MA')}, '55993538':{'en': u('A\u00e7ail\u00e2ndia - MA'), 'pt': u('A\u00e7ail\u00e2ndia - MA')}, '55893565':{'en': 'Santa Luz - PI', 'pt': 'Santa Luz - PI'}, '55893567':{'en': u('Ribeiro Gon\u00e7alves - PI'), 'pt': u('Ribeiro Gon\u00e7alves - PI')}, '55893566':{'en': u('Reden\u00e7\u00e3o do Gurgu\u00e9ia - PI'), 'pt': u('Reden\u00e7\u00e3o do Gurgu\u00e9ia - PI')}, '55893560':{'en': 'Francisco Ayres - PI', 'pt': 'Francisco Ayres - PI'}, '55893563':{'en': 'Cristino Castro - PI', 'pt': 'Cristino Castro - PI'}, '55893562':{'en': 'Bom Jesus - PI', 'pt': 'Bom Jesus - PI'}, '55893569':{'en': 'Santa Filomena - PI', 'pt': 'Santa Filomena - PI'}, '55893568':{'en': u('Palmeira do Piau\u00ed - PI'), 'pt': u('Palmeira do Piau\u00ed - PI')}, '861304574':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '55913665':{'en': 'Benevides - PA', 'pt': 'Benevides - PA'}, '55913661':{'en': u('Oeiras do Par\u00e1 - PA'), 'pt': u('Oeiras do Par\u00e1 - PA')}, '55913662':{'en': 'Terra Alta - PA', 'pt': 'Terra Alta - PA'}, '861301358':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '55933735':{'en': 'Monte Dourado - PA', 'pt': 'Monte Dourado - PA'}, '861304957':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '861304956':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861304951':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '62731':{'en': 'Lahat', 'id': 'Lahat'}, '861304953':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304952':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861301350':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861301351':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861301352':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861301353':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861301354':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861301355':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861301356':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861301357':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861301686':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861301687':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861301684':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861301425':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861301682':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861301683':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861301680':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861301681':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861301688':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861301689':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861308938':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861303501':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861309518':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861309519':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861309516':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861309517':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '861309514':{'en': 'Tacheng, Xinjiang', 'zh': u('\u65b0\u7586\u5854\u57ce\u5730\u533a')}, '861303500':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861309512':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '861309513':{'en': 'Bortala, Xinjiang', 'zh': u('\u65b0\u7586\u535a\u5c14\u5854\u62c9\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861309510':{'en': 'Karamay, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u62c9\u739b\u4f9d\u5e02')}, '861309511':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '81125':{'en': 'Takikawa, Hokkaido', 'ja': u('\u6edd\u5ddd')}, '81124':{'en': 'Ashibetsu, Hokkaido', 'ja': u('\u82a6\u5225')}, '81126':{'en': 'Iwamizawa, Hokkaido', 'ja': u('\u5ca9\u898b\u6ca2')}, '861301534':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861301535':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861301536':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861301537':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861301530':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861301531':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861301532':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861301533':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861308930':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '64998':{'en': 'Whangarei'}, '81294':{'en': 'Hitachiota, Ibaraki', 'ja': u('\u5e38\u9678\u592a\u7530')}, '64990':{'en': 'Warkworth'}, '57758':{'en': 'Cucuta', 'es': 'Cucuta'}, '57757':{'en': 'Cucuta', 'es': 'Cucuta'}, '861309067':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '861304409':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861303688':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861303689':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861303684':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861303685':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861303686':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861303687':{'en': 'Hezhou, Guangxi', 'zh': u('\u5e7f\u897f\u8d3a\u5dde\u5e02')}, '861303680':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861303681':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861303682':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861303683':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '592266':{'en': 'New Hope/Friendship/Grove/Land of Canaan'}, '592267':{'en': 'Wales'}, '592264':{'en': 'Vreed-en-Hoop'}, '592265':{'en': 'Diamond'}, '592262':{'en': 'Parika'}, '592260':{'en': 'Tuschen/Parika'}, '592261':{'en': 'Timehri/Long Creek/Soesdyke'}, '592268':{'en': 'Leonora'}, '592269':{'en': 'Windsor Forest'}, '819978':{'en': 'Tokunoshima, Kagoshima', 'ja': u('\u5fb3\u4e4b\u5cf6')}, '55983622':{'en': 'Bacabal - MA', 'pt': 'Bacabal - MA'}, '861305309':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861305308':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861305307':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861305306':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861305305':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861305304':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861305303':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861305302':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861305301':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861305300':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '62342':{'en': 'Blitar', 'id': 'Blitar'}, '62343':{'en': 'Pasuruan', 'id': 'Pasuruan'}, '861304302':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '62341':{'en': 'Malang/Batu', 'id': 'Malang/Batu'}, '861304304':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861304305':{'en': 'Sanming, Fujian', 'zh': u('\u798f\u5efa\u7701\u4e09\u660e\u5e02')}, '861304306':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861304307':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861304308':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861304309':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '55983455':{'en': u('Mat\u00f5es do Norte - MA'), 'pt': u('Mat\u00f5es do Norte - MA')}, '55983454':{'en': 'Anajatuba - MA', 'pt': 'Anajatuba - MA'}, '55983453':{'en': 'Arari - MA', 'pt': 'Arari - MA'}, '819972':{'en': '', 'ja': u('\u7a2e\u5b50\u5cf6')}, '55983451':{'en': 'Santa Rita - MA', 'pt': 'Santa Rita - MA'}, '819973':{'en': '', 'ja': u('\u7a2e\u5b50\u5cf6')}, '861304430':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '819974':{'en': 'Yakushima, Kagoshima', 'ja': u('\u5c4b\u4e45\u5cf6')}, '819975':{'en': 'Naze, Kagoshima', 'ja': u('\u540d\u702c')}, '772932':{'en': 'Beineu', 'ru': u('\u0411\u0435\u0439\u043d\u0435\u0443\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772931':{'en': 'Shetpe', 'ru': u('\u041c\u0430\u043d\u0433\u0438\u0441\u0442\u0430\u0443\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772937':{'en': 'Kuryk', 'ru': u('\u041a\u0430\u0440\u0430\u043a\u0438\u044f\u043d\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772934':{'en': 'Zhanaozen', 'ru': u('\u0416\u0430\u043d\u0430\u043e\u0437\u0435\u043d')}, '772935':{'en': 'Zhetybai', 'ru': u('\u041a\u0430\u0440\u0430\u043a\u0438\u044f\u043d\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772938':{'en': 'Fort Shevchenko', 'ru': u('\u0422\u0443\u043f\u043a\u0430\u0440\u0430\u0433\u0430\u043d\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '819977':{'en': 'Setouchi, Kagoshima', 'ja': u('\u702c\u6238\u5185')}, '86130005':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861304436':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861304437':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861308489':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861308488':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861308483':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861308482':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861308481':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861308480':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861308487':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '861308486':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861308485':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861308484':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861304729':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '819787':{'en': 'Kunisaki, Oita', 'ja': u('\u56fd\u6771')}, '55923318':{'en': 'Nova Olinda do Norte - AM', 'pt': 'Nova Olinda do Norte - AM'}, '819786':{'en': 'Kitsuki, Oita', 'ja': u('\u6775\u7bc9')}, '861309686':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '55923317':{'en': 'Autazes - AM', 'pt': 'Autazes - AM'}, '861309684':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861309685':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '55923312':{'en': 'Balbina - AM', 'pt': 'Balbina - AM'}, '55893570':{'en': 'Baixa Grande do Ribeiro - PI', 'pt': 'Baixa Grande do Ribeiro - PI'}, '861309680':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '55923311':{'en': u('Cacau Pir\u00eara - AM'), 'pt': u('Cacau Pir\u00eara - AM')}, '811466':{'en': 'Erimo, Hokkaido', 'ja': u('\u3048\u308a\u3082')}, '819783':{'en': 'Bungotakada, Oita', 'ja': u('\u8c4a\u5f8c\u9ad8\u7530')}, '811464':{'en': 'Shizunai, Hokkaido', 'ja': u('\u9759\u5185')}, '811465':{'en': 'Shizunai, Hokkaido', 'ja': u('\u9759\u5185')}, '811462':{'en': 'Urakawa, Hokkaido', 'ja': u('\u6d66\u6cb3')}, '811463':{'en': 'Urakawa, Hokkaido', 'ja': u('\u6d66\u6cb3')}, '819782':{'en': 'Bungotakada, Oita', 'ja': u('\u8c4a\u5f8c\u9ad8\u7530')}, '861308674':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861308675':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861308676':{'en': 'Hezhou, Guangxi', 'zh': u('\u5e7f\u897f\u8d3a\u5dde\u5e02')}, '861308677':{'en': 'Guigang, Guangxi', 'zh': u('\u5e7f\u897f\u8d35\u6e2f\u5e02')}, '861308670':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861308672':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '77272':{'en': 'Almaty', 'ru': u('\u0410\u043b\u043c\u0430-\u0410\u0442\u0430/\u041a\u0430\u0440\u0430\u0441\u0430\u0439\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d/\u0418\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '77273':{'en': 'Almaty', 'ru': u('\u0410\u043b\u043c\u0430-\u0410\u0442\u0430')}, '861308673':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861305545':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861304609':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861300935':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861305949':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '5587':{'en': 'Pernambuco', 'pt': 'Pernambuco'}, '861305941':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861305940':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861305544':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861304608':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861305945':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861305944':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '5588':{'en': u('Cear\u00e1'), 'pt': u('Cear\u00e1')}, '5589':{'en': u('Piau\u00ed'), 'pt': u('Piau\u00ed')}, '86130880':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '55983218':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861305547':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '55983213':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983212':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983214':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983217':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '86130887':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861303700':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861305546':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861309425':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861306412':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861306413':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861306410':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861306411':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861306416':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861306417':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861306414':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861306415':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861306418':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861306419':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '811528':{'en': 'Bihoro, Hokkaido', 'ja': u('\u7f8e\u5e4c')}, '861305541':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304605':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '592455':{'en': 'Bartica'}, '592456':{'en': 'Mahdia'}, '861305540':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304604':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861305543':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861304607':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '55933563':{'en': u('Curu\u00e1 - PA'), 'pt': u('Curu\u00e1 - PA')}, '861309509':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861303523':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '8199349':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199348':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199345':{'en': 'Kagoshima, Kagoshima', 'ja': u('\u9e7f\u5150\u5cf6')}, '8199344':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199347':{'en': 'Kagoshima, Kagoshima', 'ja': u('\u9e7f\u5150\u5cf6')}, '8199346':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199341':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199340':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '8199343':{'en': 'Kagoshima, Kagoshima', 'ja': u('\u9e7f\u5150\u5cf6')}, '8199342':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '81559':{'en': 'Numazu, Shizuoka', 'ja': u('\u6cbc\u6d25')}, '55863385':{'en': u('S\u00e3o Jo\u00e3o do Arraial - PI'), 'pt': u('S\u00e3o Jo\u00e3o do Arraial - PI')}, '861309508':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '55863383':{'en': 'Esperantina - PI', 'pt': 'Esperantina - PI'}, '55873929':{'en': 'Serra Talhada - PE', 'pt': 'Serra Talhada - PE'}, '57566':{'en': 'Cartagena', 'es': 'Cartagena'}, '57567':{'en': 'Cartagena', 'es': 'Cartagena'}, '86130637':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '57565':{'en': 'Cartagena', 'es': 'Cartagena'}, '86130631':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '86130639':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '86130638':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '57568':{'en': 'Cartagena', 'es': 'Cartagena'}, '861308319':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308318':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861308313':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861308312':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861308311':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861308310':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861308317':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861308316':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861308315':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861308314':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '818476':{'en': 'Fuchu, Hiroshima', 'ja': u('\u5e9c\u4e2d')}, '818477':{'en': 'Tojo, Hiroshima', 'ja': u('\u6771\u57ce')}, '818474':{'en': 'Fuchu, Hiroshima', 'ja': u('\u5e9c\u4e2d')}, '818475':{'en': 'Fuchu, Hiroshima', 'ja': u('\u5e9c\u4e2d')}, '818472':{'en': '', 'ja': u('\u7532\u5c71')}, '818473':{'en': '', 'ja': u('\u7532\u5c71')}, '818478':{'en': 'Tojo, Hiroshima', 'ja': u('\u6771\u57ce')}, '818479':{'en': 'Tojo, Hiroshima', 'ja': u('\u6771\u57ce')}, '81825':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '81827':{'en': 'Iwakuni, Yamaguchi', 'ja': u('\u5ca9\u56fd')}, '81822':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '81823':{'en': 'Kure, Hiroshima', 'ja': u('\u5449')}, '81828':{'en': 'Hiroshima, Hiroshima', 'ja': u('\u5e83\u5cf6')}, '86130944':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861309505':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861303975':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861303891':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861303890':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861303893':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861303892':{'en': 'Ankang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5b89\u5eb7\u5e02')}, '861303895':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861303894':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861303897':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861303896':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861303899':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861303898':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861305549':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861309507':{'en': 'Hami, Xinjiang', 'zh': u('\u65b0\u7586\u54c8\u5bc6\u5730\u533a')}, '861302556':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861303099':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861303025':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861302554':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861303091':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861303090':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861303093':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861303092':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861303095':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861303094':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861303097':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861302552':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861309506':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861301347':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861301346':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '62481':{'en': 'Watampone', 'id': 'Watampone'}, '62482':{'en': 'Sinjai', 'id': 'Sinjai'}, '62485':{'en': 'Sengkang', 'id': 'Sengkang'}, '861301345':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861303026':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '86130499':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '86130498':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861304366':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861301344':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '86130491':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301343':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '86130493':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130494':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130497':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861301342':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861302525':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861301341':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861301340':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '62625':{'en': 'Parapat/Ajibata/Simanindo', 'id': 'Parapat/Ajibata/Simanindo'}, '62624':{'en': 'Panipahan/Labuhanbatu', 'id': 'Panipahan/Labuhanbatu'}, '62627':{'en': 'Subulussalam/Sidikalang/Salak', 'id': 'Subulussalam/Sidikalang/Salak'}, '62626':{'en': 'Pangururan', 'id': 'Pangururan'}, '62621':{'en': 'Tebing Tinggi/Sei Rampah', 'id': 'Tebing Tinggi/Sei Rampah'}, '62620':{'en': 'Pangkalan Brandan', 'id': 'Pangkalan Brandan'}, '62623':{'en': 'Kisaran/Tanjung Balai', 'id': 'Kisaran/Tanjung Balai'}, '62622':{'en': 'Pematangsiantar/Pematang Raya/Limapuluh', 'id': 'Pematangsiantar/Pematang Raya/Limapuluh'}, '861303327':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861303326':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861303325':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861303324':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '62629':{'en': 'Kutacane', 'id': 'Kutacane'}, '62628':{'en': 'Kabanjahe/Sibolangit', 'id': 'Kabanjahe/Sibolangit'}, '861303321':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861303320':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '81965':{'en': 'Yatsushiro, Kumamoto', 'ja': u('\u516b\u4ee3')}, '5718393':{'en': 'Girardot', 'es': 'Girardot'}, '861304364':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861309503':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861300770':{'en': 'Haixi, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u897f\u8499\u53e4\u65cf\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '81963':{'en': 'Kumamoto, Kumamoto', 'ja': u('\u718a\u672c')}, '81962':{'en': 'Kumamoto, Kumamoto', 'ja': u('\u718a\u672c')}, '861309502':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '819204':{'en': '', 'ja': u('\u90f7\u30ce\u6d66')}, '819205':{'en': '', 'ja': u('\u53b3\u539f')}, '819208':{'en': '', 'ja': u('\u5bfe\u99ac\u4f50\u8cc0')}, '86130527':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861308546':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '815752':{'en': 'Sekigahara, Gifu', 'ja': u('\u95a2')}, '815753':{'en': 'Sekigahara, Gifu', 'ja': u('\u95a2')}, '815754':{'en': 'Sekigahara, Gifu', 'ja': u('\u95a2')}, '815755':{'en': 'Sekigahara, Gifu', 'ja': u('\u95a2')}, '815756':{'en': '', 'ja': u('\u90e1\u4e0a\u516b\u5e61')}, '815757':{'en': '', 'ja': u('\u90e1\u4e0a\u516b\u5e61')}, '815974':{'en': 'Owase, Mie', 'ja': u('\u5c3e\u9df2')}, '861308111':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '815977':{'en': 'Kumano, Mie', 'ja': u('\u718a\u91ce')}, '815972':{'en': 'Owase, Mie', 'ja': u('\u5c3e\u9df2')}, '815973':{'en': 'Owase, Mie', 'ja': u('\u5c3e\u9df2')}, '6444':{'en': 'Wellington'}, '6445':{'en': 'Wellington/Hutt Valley'}, '6443':{'en': 'Wellington'}, '6449':{'en': 'Wellington'}, '55993263':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '7728':{'ru': u('\u0410\u043b\u043c\u0430\u0442\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7729':{'ru': u('\u041c\u0430\u043d\u0433\u0438\u0441\u0442\u0430\u0443\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7721':{'ru': u('\u041a\u0430\u0440\u0430\u0433\u0430\u043d\u0434\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7722':{'ru': u('\u0412\u043e\u0441\u0442\u043e\u0447\u043d\u043e-\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7723':{'ru': u('\u0412\u043e\u0441\u0442\u043e\u0447\u043d\u043e-\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7724':{'ru': u('\u041a\u044b\u0437\u044b\u043b\u043e\u0440\u0434\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7725':{'ru': u('\u042e\u0436\u043d\u043e-\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7726':{'ru': u('\u0416\u0430\u043c\u0431\u044b\u043b\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '7727':{'ru': u('\u0410\u043b\u043c\u0430\u0442\u0438\u043d\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c')}, '861304825':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861308548':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861304824':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861308549':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861304827':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861309156':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861304826':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861301338':{'en': 'Lijiang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e3d\u6c5f\u5e02')}, '861301339':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861301336':{'en': 'Dali, Yunnan', 'zh': u('\u4e91\u5357\u7701\u5927\u7406\u767d\u65cf\u81ea\u6cbb\u5dde')}, '861301337':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861301334':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861301335':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861301332':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861301333':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861301330':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861301331':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861309155':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861307958':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861304823':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861307954':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861307955':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861307956':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861304822':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861307950':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861307951':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861307952':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861307953':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861308124':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861308125':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861308126':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861308127':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861308120':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861308121':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861308122':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861308123':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861304553':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861309151':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861308128':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861308129':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861309534':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861309535':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861309536':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '81157':{'en': 'Kitami, Hokkaido', 'ja': u('\u5317\u898b')}, '861309530':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861309531':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861309532':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861309533':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861309538':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861309539':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861304245':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861309158':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861309159':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861303392':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861303393':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '812932':{'en': 'Takahagi, Ibaraki', 'ja': u('\u9ad8\u8429')}, '861303391':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861303396':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861303397':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '55983004':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861304554':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861303394':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861309349':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '861303395':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '86130442':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861303662':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861303663':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861303660':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861303661':{'en': 'Meishan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7709\u5c71\u5e02')}, '861303666':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861303667':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861303664':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861303665':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861303668':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861303669':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861304368':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861304556':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '55992101':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '861305497':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861305496':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861305495':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861305494':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861304369':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861305492':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861305491':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861305490':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861305499':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861304296':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '62368':{'en': 'Baturiti', 'id': 'Baturiti'}, '861303407':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861303404':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303405':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303402':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861303403':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861303400':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861303401':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '62361':{'en': 'Denpasar', 'id': 'Denpasar'}, '62362':{'en': 'Singaraja', 'id': 'Singaraja'}, '62363':{'en': 'Amlapura', 'id': 'Amlapura'}, '62364':{'en': 'Mataram', 'id': 'Mataram'}, '62365':{'en': 'Negara/Gilimanuk', 'id': 'Negara/Gilimanuk'}, '62366':{'en': 'Klungkung/Bangli', 'id': 'Klungkung/Bangli'}, '861303409':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '817464':{'en': 'Yoshino, Nara', 'ja': u('\u5409\u91ce')}, '817465':{'en': 'Yoshino, Nara', 'ja': u('\u5409\u91ce')}, '817466':{'en': 'Totsukawa, Nara', 'ja': u('\u5341\u6d25\u5ddd')}, '55983476':{'en': u('Santa Quit\u00e9ria do Maranh\u00e3o - MA'), 'pt': u('Santa Quit\u00e9ria do Maranh\u00e3o - MA')}, '55983471':{'en': 'Chapadinha - MA', 'pt': 'Chapadinha - MA'}, '55983473':{'en': 'Coelho Neto - MA', 'pt': 'Coelho Neto - MA'}, '817463':{'en': 'Yoshino, Nara', 'ja': u('\u5409\u91ce')}, '86130792':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130790':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '86130791':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '817468':{'en': 'Kamikitayama, Nara', 'ja': u('\u4e0a\u5317\u5c71')}, '55983478':{'en': 'Araioses - MA', 'pt': 'Araioses - MA'}, '861304243':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861300706':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861303642':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861308217':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '5718482':{'en': 'La Magdalena', 'es': 'La Magdalena'}, '5718480':{'en': 'Quebradanegra', 'es': 'Quebradanegra'}, '5718481':{'en': 'Quebradanegra', 'es': 'Quebradanegra'}, '861305401':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '86130578':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86130579':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86130576':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86130577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86130574':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '86130575':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86130572':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86130573':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '86130570':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '86130571':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '84241':{'en': 'Bac Ninh province', 'vi': u('B\u1eafc Ninh')}, '818369':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '861305402':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '58282':{'en': u('Anzo\u00e1tegui'), 'es': u('Anzo\u00e1tegui')}, '58283':{'en': u('Anzo\u00e1tegui'), 'es': u('Anzo\u00e1tegui')}, '58281':{'en': u('Anzo\u00e1tegui'), 'es': u('Anzo\u00e1tegui')}, '58286':{'en': u('Bol\u00edvar'), 'es': u('Bol\u00edvar')}, '58287':{'en': 'Delta Amacuro/Monagas', 'es': 'Delta Amacuro/Monagas'}, '58285':{'en': u('Bol\u00edvar'), 'es': u('Bol\u00edvar')}, '58288':{'en': u('Bol\u00edvar'), 'es': u('Bol\u00edvar')}, '861302759':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861302758':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '812642':{'en': '', 'ja': u('\u6728\u66fe\u798f\u5cf6')}, '861302751':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861302750':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '81172':{'en': 'Hirosaki, Aomori', 'ja': u('\u5f18\u524d')}, '861302752':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861302755':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861302754':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861302757':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861302756':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861308461':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308460':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861308463':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308462':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308465':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861308464':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861308467':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861308466':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861308469':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861308468':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861309529':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861304249':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '815566':{'en': 'Minobu, Yamanashi', 'ja': u('\u8eab\u5ef6')}, '815565':{'en': '', 'ja': u('\u9c0d\u6ca2\u9752\u67f3')}, '815564':{'en': '', 'ja': u('\u9c0d\u6ca2\u9752\u67f3')}, '815563':{'en': '', 'ja': u('\u9c0d\u6ca2\u9752\u67f3')}, '815562':{'en': '', 'ja': u('\u9c0d\u6ca2\u9752\u67f3')}, '861304248':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '77212':{'en': 'Karaganda', 'ru': u('\u041a\u0430\u0440\u0430\u0433\u0430\u043d\u0434\u0430')}, '77213':{'en': 'Aktau/Temirtau'}, '771434':{'en': 'Denisovka'}, '771435':{'en': 'Zhitikara'}, '771433':{'en': 'Lisakovsk'}, '771430':{'en': 'Arkalyk'}, '771431':{'en': 'Rudny'}, '819433':{'en': 'Yame, Fukuoka', 'ja': u('\u516b\u5973')}, '819432':{'en': 'Yame, Fukuoka', 'ja': u('\u516b\u5973')}, '819435':{'en': 'Yame, Fukuoka', 'ja': u('\u516b\u5973')}, '819434':{'en': 'Yame, Fukuoka', 'ja': u('\u516b\u5973')}, '819437':{'en': 'Tanushimaru, Fukuoka', 'ja': u('\u7530\u4e3b\u4e38')}, '771439':{'en': 'Torgai'}, '861300348':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '818689':{'en': 'Okayama, Okayama', 'ja': u('\u5ca1\u5c71')}, '861300349':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '811523':{'en': 'Shari, Hokkaido', 'ja': u('\u659c\u91cc')}, '811522':{'en': 'Shari, Hokkaido', 'ja': u('\u659c\u91cc')}, '861309175':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861300919':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '55963083':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963081':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55983278':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983276':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983274':{'en': u('Pa\u00e7o do Lumiar - MA'), 'pt': u('Pa\u00e7o do Lumiar - MA')}, '55983273':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983272':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983271':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861309528':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861306438':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861306439':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861306430':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861306431':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861306432':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861306433':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861306434':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861306435':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861306436':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861306437':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '592272':{'en': 'B/V West'}, '861303698':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861309499':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861306936':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861309493':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861306931':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861309491':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861309490':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861309497':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861309496':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861309495':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861309494':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '55973561':{'en': 'Coari - AM', 'pt': 'Coari - AM'}, '861309345':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861304173':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861304172':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861304171':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861304170':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861304177':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861304176':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861304175':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861304174':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861304179':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861304178':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861302739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861302931':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861304026':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '55933549':{'en': 'Porto Trombetas - PA', 'pt': 'Porto Trombetas - PA'}, '81845':{'en': 'Innoshima, Hiroshima', 'ja': u('\u56e0\u5cf6')}, '55933542':{'en': 'Jacareacanga - PA', 'pt': 'Jacareacanga - PA'}, '55933543':{'en': u('Rur\u00f3polis - PA'), 'pt': u('Rur\u00f3polis - PA')}, '81848':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '55933541':{'en': u('Par\u00e1'), 'pt': u('Par\u00e1')}, '55933547':{'en': u('\u00d3bidos - PA'), 'pt': u('\u00d3bidos - PA')}, '55933544':{'en': u('Oriximin\u00e1 - PA'), 'pt': u('Oriximin\u00e1 - PA')}, '861300692':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861300693':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861300690':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861300691':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861300696':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861300697':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '861300694':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861300695':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '812648':{'en': 'Nagano, Nagano', 'ja': u('\u9577\u91ce')}, '861300699':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861302733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861308336':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861302732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861308331':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861308332':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861305526':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '772237':{'en': 'Ayagoz'}, '772236':{'en': 'Beskaragai'}, '861308339':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861304023':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '772230':{'en': 'Urdzhar'}, '861309325':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861309324':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861304022':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861309327':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861302434':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861302435':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861302436':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861302437':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861302430':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861302431':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861302432':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861302433':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861309321':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861302928':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861302929':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861302438':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861302439':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '86130963':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861309320':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861302930':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '818687':{'en': 'Mimasaka, Okayama', 'ja': u('\u7f8e\u4f5c')}, '861309322':{'en': 'Jingmen, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u95e8\u5e02')}, '861303345':{'en': 'Shuozhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u6714\u5dde\u5e02')}, '861303344':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861303347':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861303346':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861303341':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861303340':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861303343':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861303342':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861303349':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861303348':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861302698':{'en': 'Hechi, Guangxi', 'zh': u('\u5e7f\u897f\u6cb3\u6c60\u5e02')}, '861302699':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '818686':{'en': 'Tsuyama, Okayama', 'ja': u('\u6d25\u5c71')}, '861302690':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861302691':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861302692':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861302693':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861302694':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861302695':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861302696':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861302697':{'en': 'Qinzhou, Guangxi', 'zh': u('\u5e7f\u897f\u94a6\u5dde\u5e02')}, '812967':{'en': 'Kasama, Ibaraki', 'ja': u('\u7b20\u9593')}, '812964':{'en': 'Shimodate, Ibaraki', 'ja': u('\u4e0b\u9928')}, '812965':{'en': 'Shimodate, Ibaraki', 'ja': u('\u4e0b\u9928')}, '812962':{'en': 'Shimodate, Ibaraki', 'ja': u('\u4e0b\u9928')}, '812963':{'en': 'Shimodate, Ibaraki', 'ja': u('\u4e0b\u9928')}, '812968':{'en': 'Kasama, Ibaraki', 'ja': u('\u7b20\u9593')}, '86130921':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861305521':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861306333':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861306332':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861306331':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861306330':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861306337':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861306336':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861306335':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861306334':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '86130925':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861306339':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861306338':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '86130219':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861303479':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '86130213':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130212':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '55943392':{'en': u('Cana\u00e3 dos Caraj\u00e1s - PA'), 'pt': u('Cana\u00e3 dos Caraj\u00e1s - PA')}, '86130210':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861304317':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861303476':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861304315':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861304029':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '815738':{'en': 'Nakatsugawa, Gifu', 'ja': u('\u4e2d\u6d25\u5ddd')}, '861304314':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '815732':{'en': 'Ena, Gifu', 'ja': u('\u6075\u90a3')}, '815733':{'en': 'Ena, Gifu', 'ja': u('\u6075\u90a3')}, '815736':{'en': 'Nakatsugawa, Gifu', 'ja': u('\u4e2d\u6d25\u5ddd')}, '815737':{'en': 'Nakatsugawa, Gifu', 'ja': u('\u4e2d\u6d25\u5ddd')}, '815734':{'en': 'Ena, Gifu', 'ja': u('\u6075\u90a3')}, '815735':{'en': 'Ena, Gifu', 'ja': u('\u6075\u90a3')}, '861304311':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861304310':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861304028':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861300656':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861308698':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861308699':{'en': 'Tongren, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u94dc\u4ec1\u5730\u533a')}, '861303811':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861308692':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861308693':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861308690':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861308691':{'en': 'Qiannan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861308696':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861308697':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861308694':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861308695':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '8186550':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '8186551':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '8186552':{'en': 'Kurashiki, Okayama', 'ja': u('\u5009\u6577')}, '861301317':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861301310':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861301311':{'en': 'MaAnshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9a6c\u978d\u5c71\u5e02')}, '861301312':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861301313':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '8186558':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '8186559':{'en': 'Kamogata, Okayama', 'ja': u('\u9d28\u65b9')}, '861301318':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '861301319':{'en': 'Anqing, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5b89\u5e86\u5e02')}, '818667':{'en': 'Ibara, Okayama', 'ja': u('\u4e95\u539f')}, '818666':{'en': 'Ibara, Okayama', 'ja': u('\u4e95\u539f')}, '818665':{'en': 'Takahashi, Okayama', 'ja': u('\u9ad8\u6881')}, '818664':{'en': 'Takahashi, Okayama', 'ja': u('\u9ad8\u6881')}, '818663':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '818662':{'en': 'Takahashi, Okayama', 'ja': u('\u9ad8\u6881')}, '818660':{'en': 'Seto, Okayama', 'ja': u('\u5ca1\u5c71\u702c\u6238')}, '55893473':{'en': u('Massap\u00ea do Piau\u00ed - PI'), 'pt': u('Massap\u00ea do Piau\u00ed - PI')}, '55893472':{'en': u('Francin\u00f3polis - PI'), 'pt': u('Francin\u00f3polis - PI')}, '55893471':{'en': u('V\u00e1rzea Grande - PI'), 'pt': u('V\u00e1rzea Grande - PI')}, '55893477':{'en': 'Inhuma - PI', 'pt': 'Inhuma - PI'}, '55893475':{'en': u('Novo Oriente do Piau\u00ed - PI'), 'pt': u('Novo Oriente do Piau\u00ed - PI')}, '818668':{'en': 'Ibara, Okayama', 'ja': u('\u4e95\u539f')}, '77152':{'en': 'Petropavlovsk', 'ru': u('\u041f\u0435\u0442\u0440\u043e\u043f\u0430\u0432\u043b\u043e\u0432\u0441\u043a')}, '55983394':{'en': 'Carutapera - MA', 'pt': 'Carutapera - MA'}, '55983395':{'en': 'Godofredo Viana - MA', 'pt': 'Godofredo Viana - MA'}, '55983396':{'en': u('C\u00e2ndido Mendes - MA'), 'pt': u('C\u00e2ndido Mendes - MA')}, '81478':{'en': 'Sawara, Chiba', 'ja': u('\u4f50\u539f')}, '55983391':{'en': 'Cururupu - MA', 'pt': 'Cururupu - MA'}, '55983392':{'en': 'Bacuri - MA', 'pt': 'Bacuri - MA'}, '55983393':{'en': u('Lu\u00eds Domingues - MA'), 'pt': u('Lu\u00eds Domingues - MA')}, '81473':{'en': 'Ichikawa, Chiba', 'ja': u('\u5e02\u5ddd')}, '81471':{'en': 'Kashiwa, Chiba', 'ja': u('\u67cf')}, '55983398':{'en': 'Cedral - MA', 'pt': 'Cedral - MA'}, '81476':{'en': 'Narita, Chiba', 'ja': u('\u6210\u7530')}, '81474':{'en': 'Funabashi, Chiba', 'ja': u('\u8239\u6a4b')}, '861309182':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '818593':{'en': 'Yonago, Tottori', 'ja': u('\u7c73\u5b50')}, '818592':{'en': 'Yonago, Tottori', 'ja': u('\u7c73\u5b50')}, '818595':{'en': 'Yonago, Tottori', 'ja': u('\u7c73\u5b50')}, '818594':{'en': 'Yonago, Tottori', 'ja': u('\u7c73\u5b50')}, '818597':{'en': '', 'ja': u('\u6839\u96e8')}, '818596':{'en': 'Yonago, Tottori', 'ja': u('\u7c73\u5b50')}, '818598':{'en': '', 'ja': u('\u6839\u96e8')}, '861309247':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861309176':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861300995':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861300994':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861300997':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861300996':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861300991':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861300990':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861300993':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861300992':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861309241':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861300999':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300998':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '861304696':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861304697':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861304694':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861304695':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861304692':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861304693':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '861304690':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861304691':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861304698':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861304699':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '592228':{'en': 'Mahaica/Belmont'}, '592229':{'en': 'Enterprise/Cove & John'}, '592222':{'en': 'B/V West'}, '592223':{'en': 'Georgetown'}, '592220':{'en': 'B/V Central'}, '592221':{'en': 'Mahaicony'}, '592226':{'en': 'Georgetown'}, '592227':{'en': 'Georgetown'}, '592225':{'en': 'Georgetown'}, '861309560':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302996':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861304687':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '86130770':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '86130771':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '86130772':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '86130773':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '86130774':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '86130775':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '817488':{'en': 'Minakuchi, Shiga', 'ja': u('\u6c34\u53e3')}, '86130777':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '817486':{'en': 'Minakuchi, Shiga', 'ja': u('\u6c34\u53e3')}, '817487':{'en': 'Minakuchi, Shiga', 'ja': u('\u6c34\u53e3')}, '817484':{'en': 'Yokaichi, Shiga', 'ja': u('\u516b\u65e5\u5e02')}, '817485':{'en': 'Yokaichi, Shiga', 'ja': u('\u516b\u65e5\u5e02')}, '817482':{'en': 'Yokaichi, Shiga', 'ja': u('\u516b\u65e5\u5e02')}, '817483':{'en': 'Yokaichi, Shiga', 'ja': u('\u516b\u65e5\u5e02')}, '861303648':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861303649':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861303640':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '772641':{'en': 'Akkol'}, '55913494':{'en': u('Muan\u00e1 - PA'), 'pt': u('Muan\u00e1 - PA')}, '772643':{'en': 'Shu'}, '772644':{'en': 'Karatau'}, '861303645':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861303646':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861303647':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861302599':{'en': 'Beihai, Guangxi', 'zh': u('\u5e7f\u897f\u5317\u6d77\u5e02')}, '861302598':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861302593':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861302592':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861302591':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861302590':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861302597':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861302596':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861302595':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861302594':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861300739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861300738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '55884141':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '861300731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861300730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861300733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '861300732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '861300735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861300734':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861300737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861300736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861308508':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861308509':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861308745':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861308502':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861308503':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861308500':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308501':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861308506':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861308507':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861308504':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861308505':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861304438':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861304439':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '861303428':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861303429':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861303424':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861303425':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861303426':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861303427':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861303420':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861303421':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861303422':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861303423':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '55883501':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '55923682':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861308743':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861305569':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '81243':{'en': 'Nihonmatsu, Fukushima', 'ja': u('\u4e8c\u672c\u677e')}, '55984141':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861308447':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '771454':{'en': 'Karamendy'}, '861308445':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861308444':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861308443':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861308442':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861308441':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861308440':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861308748':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861305568':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861308449':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '5718256':{'en': 'Madrid', 'es': 'Madrid'}, '861309569':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861303812':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861308338':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '64396':{'en': 'Christchurch'}, '861308999':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861308998':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861308995':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861308994':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861308997':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861308996':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861308991':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861308990':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '861308993':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861308992':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '77232':{'en': 'Ust-Kamenogorsk', 'ru': u('\u0423\u0441\u0442\u044c-\u041a\u0430\u043c\u0435\u043d\u043e\u0433\u043e\u0440\u0441\u043a')}, '861305905':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861305904':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861305907':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861305906':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861305901':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861305900':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861305903':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861305902':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861305909':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861305908':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '55923427':{'en': u('Juru\u00e1 - AM'), 'pt': u('Juru\u00e1 - AM')}, '55983255':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983254':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983257':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983256':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983251':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983253':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983252':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983259':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983258':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861302473':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861306108':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861306109':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861306104':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861306105':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861306106':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861306107':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861306100':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861306101':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '812587':{'en': 'Nagaoka, Niigata', 'ja': u('\u9577\u5ca1')}, '861306103':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '771063':{'en': 'Satpaev'}, '861305422':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861300854':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861300855':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861300856':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861300857':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861300850':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '861300851':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '861300852':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861300853':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861305423':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861300858':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861300859':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861305567':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305566':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861309471':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861309470':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861305508':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861309472':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861303814':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861309474':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861309477':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861309476':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861309479':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861309478':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861305564':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '772252':{'en': 'Karaul'}, '772251':{'en': 'Kurchatov'}, '772257':{'en': 'Shulbinsk'}, '772256':{'en': 'Kainar'}, '811454':{'en': 'Mukawa, Hokkaido', 'ja': u('\u9d61\u5ddd')}, '81862':{'en': 'Okayama, Okayama', 'ja': u('\u5ca1\u5c71')}, '81863':{'en': 'Tamano, Okayama', 'ja': u('\u7389\u91ce')}, '81864':{'en': 'Kurashiki, Okayama', 'ja': u('\u5009\u6577')}, '7388':{'en': 'Republic of Altai'}, '861301919':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861303817':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '8153967':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153966':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153965':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153964':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153963':{'en': '', 'ja': u('\u5929\u7adc')}, '8153962':{'en': '', 'ja': u('\u5929\u7adc')}, '8153961':{'en': '', 'ja': u('\u5929\u7adc')}, '8153960':{'en': '', 'ja': u('\u5929\u7adc')}, '8153969':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '8153968':{'en': 'Hamamatsu, Shizuoka', 'ja': u('\u6d5c\u677e')}, '861301912':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '812992':{'en': 'Ishioka, Ibaraki', 'ja': u('\u77f3\u5ca1')}, '62445':{'en': 'Buol', 'id': 'Buol'}, '55983653':{'en': u('Santa In\u00eas - MA'), 'pt': u('Santa In\u00eas - MA')}, '62443':{'en': 'Marisa', 'id': 'Marisa'}, '861302908':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861302909':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '55983652':{'en': 'Bom Jesus das Selvas - MA', 'pt': 'Bom Jesus das Selvas - MA'}, '55983538':{'en': u('A\u00e7ail\u00e2ndia - MA'), 'pt': u('A\u00e7ail\u00e2ndia - MA')}, '55983655':{'en': u('Z\u00e9 Doca - MA'), 'pt': u('Z\u00e9 Doca - MA')}, '861302902':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861302903':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861302904':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '861302905':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861302906':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861301917':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861305501':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '812995':{'en': 'Ishioka, Ibaraki', 'ja': u('\u77f3\u5ca1')}, '55973321':{'en': 'Barcelos - AM', 'pt': 'Barcelos - AM'}, '8198294':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '8198295':{'en': 'Hyuga, Miyazaki', 'ja': u('\u65e5\u5411')}, '8198296':{'en': 'Hyuga, Miyazaki', 'ja': u('\u65e5\u5411')}, '8198297':{'en': 'Hyuga, Miyazaki', 'ja': u('\u65e5\u5411')}, '8198290':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '8198291':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '8198292':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '8198293':{'en': 'Nobeoka, Miyazaki', 'ja': u('\u5ef6\u5ca1')}, '861303363':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861303362':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861303361':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861303360':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '8198298':{'en': 'Hyuga, Miyazaki', 'ja': u('\u65e5\u5411')}, '8198299':{'en': 'Hyuga, Miyazaki', 'ja': u('\u65e5\u5411')}, '861303365':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861303364':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861305500':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861308212':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861308213':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '86130189':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86130183':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130182':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86130180':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130186':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861305503':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '55953539':{'en': 'Nova Colina - RR', 'pt': 'Nova Colina - RR'}, '55953537':{'en': u('S\u00e3o Luiz - RR'), 'pt': u('S\u00e3o Luiz - RR')}, '55953532':{'en': u('Caracara\u00ed - RR'), 'pt': u('Caracara\u00ed - RR')}, '861304048':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861305502':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861308218':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861308219':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '86130231':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861309066':{'en': 'Xilin, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9521\u6797\u90ed\u52d2\u76df')}, '86130232':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130237':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86130236':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861305505':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861304641':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '77283049':{'ru': u('\u0410\u043b\u043c\u0430\u043b\u044b, \u041a\u0430\u0440\u0430\u0442\u0430\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861304046':{'en': 'Aksu, Xinjiang', 'zh': u('\u65b0\u7586\u963f\u514b\u82cf\u5730\u533a')}, '818958':{'en': 'Misho, Ehime', 'ja': u('\u5fa1\u8358')}, '55913311':{'en': 'Castanhal - PA', 'pt': 'Castanhal - PA'}, '818953':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c\u5cf6')}, '818952':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c\u5cf6')}, '818955':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c\u5cf6')}, '818954':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c\u5cf6')}, '818957':{'en': 'Misho, Ehime', 'ja': u('\u5fa1\u8358')}, '818956':{'en': 'Uwajima, Ehime', 'ja': u('\u5b87\u548c\u5cf6')}, '55993221':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '861305507':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861304643':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861309464':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861301145':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861301144':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301147':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861301410':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861305506':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861303511':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861301417':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861303512':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861301140':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301668':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861301669':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861303513':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861301415':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861301660':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301661':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301662':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301414':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861301664':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861301665':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861301666':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861301667':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861303516':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861303517':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '812562':{'en': 'Sanjo, Niigata', 'ja': u('\u4e09\u6761')}, '812563':{'en': 'Sanjo, Niigata', 'ja': u('\u4e09\u6761')}, '812560':{'en': 'Itoigawa, Niigata', 'ja': u('\u7cf8\u9b5a\u5ddd')}, '812566':{'en': 'Sanjo, Niigata', 'ja': u('\u4e09\u6761')}, '812567':{'en': '', 'ja': u('\u5dfb')}, '812564':{'en': 'Sanjo, Niigata', 'ja': u('\u4e09\u6761')}, '812565':{'en': 'Sanjo, Niigata', 'ja': u('\u4e09\u6761')}, '812568':{'en': '', 'ja': u('\u5dfb')}, '812569':{'en': '', 'ja': u('\u5dfb')}, '55893451':{'en': u('Santo In\u00e1cio do Piau\u00ed - PI'), 'pt': u('Santo In\u00e1cio do Piau\u00ed - PI')}, '55893450':{'en': 'Francisco Santos - PI', 'pt': 'Francisco Santos - PI'}, '55893453':{'en': 'Pio Ix - PI', 'pt': 'Pio Ix - PI'}, '55893452':{'en': 'Wall Ferraz - PI', 'pt': 'Wall Ferraz - PI'}, '55893455':{'en': u('Caldeir\u00e3o Grande do Piau\u00ed - PI'), 'pt': u('Caldeir\u00e3o Grande do Piau\u00ed - PI')}, '55893454':{'en': 'Fronteiras - PI', 'pt': 'Fronteiras - PI'}, '55893457':{'en': u('Jaic\u00f3s - PI'), 'pt': u('Jaic\u00f3s - PI')}, '55893456':{'en': u('Sim\u00f5es - PI'), 'pt': u('Sim\u00f5es - PI')}, '55893459':{'en': u('Patos do Piau\u00ed - PI'), 'pt': u('Patos do Piau\u00ed - PI')}, '77172':{'en': 'Astana', 'ru': u('\u0410\u0441\u0442\u0430\u043d\u0430')}, '861301598':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861301599':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861301596':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861301597':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861301594':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861301595':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861301592':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861301593':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861301590':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861301591':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861304647':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861309541':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861304550':{'en': 'Chuzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6ec1\u5dde\u5e02')}, '861304646':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '819967':{'en': 'Izumi, Kagoshima', 'ja': u('\u51fa\u6c34')}, '819966':{'en': 'Izumi, Kagoshima', 'ja': u('\u51fa\u6c34')}, '819965':{'en': 'Satsumasendai, Kagoshima', 'ja': u('\u5ddd\u5185')}, '5718446':{'en': 'Villeta', 'es': 'Villeta'}, '819964':{'en': 'Satsumasendai, Kagoshima', 'ja': u('\u5ddd\u5185')}, '819963':{'en': 'Satsumasendai, Kagoshima', 'ja': u('\u5ddd\u5185')}, '819962':{'en': 'Satsumasendai, Kagoshima', 'ja': u('\u5ddd\u5185')}, '812386':{'en': 'Nagai, Yamagata', 'ja': u('\u9577\u4e95')}, '812387':{'en': 'Nagai, Yamagata', 'ja': u('\u9577\u4e95')}, '812384':{'en': 'Yonezawa, Yamagata', 'ja': u('\u7c73\u6ca2')}, '812385':{'en': 'Yonezawa, Yamagata', 'ja': u('\u7c73\u6ca2')}, '812382':{'en': 'Yonezawa, Yamagata', 'ja': u('\u7c73\u6ca2')}, '81262':{'en': 'Nagano, Nagano', 'ja': u('\u9577\u91ce')}, '861309543':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '812388':{'en': 'Nagai, Yamagata', 'ja': u('\u9577\u4e95')}, '5718443':{'en': 'Cachipay', 'es': 'Cachipay'}, '861306719':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306718':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306711':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306710':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861306713':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306712':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306715':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306714':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '55964009':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861304262':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861301538':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861301848':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861301849':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861301844':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301845':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301846':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301847':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861301840':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301841':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301842':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861301843':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '819969':{'en': '', 'ja': u('\u4e2d\u7511')}, '817718':{'en': 'Sonobe, Kyoto', 'ja': u('\u5712\u90e8')}, '819956':{'en': 'Kajiki, Kagoshima', 'ja': u('\u52a0\u6cbb\u6728')}, '817717':{'en': 'Sonobe, Kyoto', 'ja': u('\u5712\u90e8')}, '819954':{'en': 'Kajiki, Kagoshima', 'ja': u('\u52a0\u6cbb\u6728')}, '817715':{'en': 'Kameoka, Kyoto', 'ja': u('\u4e80\u5ca1')}, '819952':{'en': 'Okuchi, Kagoshima', 'ja': u('\u5927\u53e3')}, '819953':{'en': 'Okuchi, Kagoshima', 'ja': u('\u5927\u53e3')}, '861309042':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861309545':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861304260':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861309544':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '86130756':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '86130757':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '86130754':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '7877':{'en': 'Republic of Adygeya'}, '86130752':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '7871':{'en': 'Chechen Republic'}, '7872':{'en': 'Republic of Daghestan'}, '7873':{'en': 'Ingushi Republic'}, '861304267':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '7878':{'en': 'Karachayevo-Cherkessian Republic'}, '7879':{'en': 'Mineranye Vody'}, '86130758':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '86130759':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861309547':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '812748':{'en': 'Tomioka, Gunma', 'ja': u('\u5bcc\u5ca1')}, '861309288':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861309289':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861303998':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861303999':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861303628':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861303629':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861303626':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861303627':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861303624':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861303625':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861303622':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861303623':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861303620':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861303621':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861302571':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861302570':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861302573':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861302572':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861302575':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861302574':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861302577':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861302576':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861302579':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861302578':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '86130536':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86130537':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '86130534':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '86130535':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861304265':{'en': 'Benxi, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u672c\u6eaa\u5e02')}, '861308520':{'en': 'Huangshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u77f3\u5e02')}, '861308521':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861308522':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861308523':{'en': 'Ezhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u9102\u5dde\u5e02')}, '861308524':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861308525':{'en': 'Suizhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u968f\u5dde\u5e02')}, '861308526':{'en': 'Shiyan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5341\u5830\u5e02')}, '861308527':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861308528':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861308529':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861303194':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861303195':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861303196':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861303197':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861303190':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861303191':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861303192':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861303193':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861309138':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861309139':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861303198':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861303199':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861309162':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861308429':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861308428':{'en': 'Zhoukou, Henan', 'zh': u('\u6cb3\u5357\u7701\u5468\u53e3\u5e02')}, '861308425':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861308424':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861308427':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861308426':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861308421':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861308420':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861308423':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861308422':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '818384':{'en': 'Hagi, Yamaguchi', 'ja': u('\u8429')}, '818385':{'en': 'Hagi, Yamaguchi', 'ja': u('\u8429')}, '818387':{'en': 'Tamagawa, Yamaguchi', 'ja': u('\u7530\u4e07\u5ddd')}, '818382':{'en': 'Hagi, Yamaguchi', 'ja': u('\u8429')}, '818383':{'en': 'Hagi, Yamaguchi', 'ja': u('\u8429')}, '818388':{'en': 'Tamagawa, Yamaguchi', 'ja': u('\u7530\u4e07\u5ddd')}, '861300466':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '814292':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '861309160':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '814291':{'en': 'Hanno, Saitama', 'ja': u('\u98ef\u80fd')}, '62276':{'en': 'Boyolali', 'id': 'Boyolali'}, '62274':{'en': 'Yogyakarta', 'id': 'Yogyakarta'}, '62275':{'en': 'Purworejo', 'id': 'Purworejo'}, '62272':{'en': 'Klaten', 'id': 'Klaten'}, '62273':{'en': 'Wonogiri', 'id': 'Wonogiri'}, '62271':{'en': 'Surakarta/Sukoharjo/Karanganyar/Sragen', 'id': 'Surakarta/Sukoharjo/Karanganyar/Sragen'}, '861309166':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '86130425':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '55883111':{'en': 'Sobral - CE', 'pt': 'Sobral - CE'}, '861303083':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '55883112':{'en': 'Sobral - CE', 'pt': 'Sobral - CE'}, '55883115':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '861308727':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861309732':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309733':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309730':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309731':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309736':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861309723':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861309734':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309735':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '84863':{'en': 'Ho Chi Minh City'}, '84862':{'en': 'Ho Chi Minh City'}, '861309455':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861309454':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861309453':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '84866':{'en': 'Ho Chi Minh City'}, '861309451':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861309450':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861303168':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861309459':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861309458':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861301435':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301434':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301437':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301436':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301431':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301430':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301433':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301432':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301439':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861301438':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '55913232':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55883582':{'en': 'Iguatu - CE', 'pt': 'Iguatu - CE'}, '55883583':{'en': u('Momba\u00e7a - CE'), 'pt': u('Momba\u00e7a - CE')}, '55883581':{'en': 'Iguatu - CE', 'pt': 'Iguatu - CE'}, '55883586':{'en': 'Crato - CE', 'pt': 'Crato - CE'}, '55883587':{'en': 'Juazeiro do Norte - CE', 'pt': 'Juazeiro do Norte - CE'}, '55883584':{'en': u('Or\u00f3s - CE'), 'pt': u('Or\u00f3s - CE')}, '55883585':{'en': 'Iguatu - CE', 'pt': 'Iguatu - CE'}, '55933582':{'en': u('Santa Maria do Uruar\u00e1 - PA'), 'pt': u('Santa Maria do Uruar\u00e1 - PA')}, '55933589':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '861304955':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861301359':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861309127':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861304950':{'en': 'Anshun, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u5b89\u987a\u5e02')}, '861304557':{'en': 'Tongling, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u94dc\u9675\u5e02')}, '861300528':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861300529':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861300520':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300521':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300522':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300523':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300524':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861300525':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861300526':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861300527':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861303011':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861304959':{'en': 'Qianxinan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u897f\u5357\u5e03\u4f9d\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861303013':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861304958':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861303012':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '62463':{'en': 'Bunta', 'id': 'Bunta'}, '62462':{'en': 'Banggai', 'id': 'Banggai'}, '62461':{'en': 'Luwuk', 'id': 'Luwuk'}, '62465':{'en': 'Kolonedale', 'id': 'Kolonedale'}, '62464':{'en': 'Ampana', 'id': 'Ampana'}, '861304049':{'en': 'Hotan, Xinjiang', 'zh': u('\u65b0\u7586\u548c\u7530\u5730\u533a')}, '861302968':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302969':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302966':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861302967':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861302964':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861302965':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '861302962':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861302963':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '861302960':{'en': 'Changji, Xinjiang', 'zh': u('\u65b0\u7586\u660c\u5409\u56de\u65cf\u81ea\u6cbb\u5dde')}, '861302961':{'en': 'Shihezi, Xinjiang', 'zh': u('\u65b0\u7586\u77f3\u6cb3\u5b50\u5e02')}, '861304047':{'en': 'Kizilsu, Xinjiang', 'zh': u('\u65b0\u7586\u514b\u5b5c\u52d2\u82cf\u67ef\u5c14\u514b\u5b5c\u81ea\u6cbb\u5dde')}, '861301685':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861303018':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861304450':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861303381':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '62646':{'en': 'Idi', 'id': 'Idi'}, '62645':{'en': 'Lhokseumawe', 'id': 'Lhokseumawe'}, '62644':{'en': 'Bireuen', 'id': 'Bireuen'}, '62643':{'en': 'Takengon', 'id': 'Takengon'}, '62642':{'en': 'Blang Kejeren', 'id': 'Blang Kejeren'}, '62641':{'en': 'Langsa', 'id': 'Langsa'}, '861303386':{'en': 'Zhumadian, Henan', 'zh': u('\u6cb3\u5357\u7701\u9a7b\u9a6c\u5e97\u5e02')}, '861303389':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861303388':{'en': 'Hebi, Henan', 'zh': u('\u6cb3\u5357\u7701\u9e64\u58c1\u5e02')}, '861308579':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861308578':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861302388':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302389':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302382':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302383':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302380':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302381':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302386':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '861302387':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302384':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861302385':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '771641':{'en': 'Astrakhanka'}, '771640':{'en': 'Balkashino'}, '771643':{'en': 'Atbasar'}, '771642':{'en': 'Egendykol'}, '771645':{'en': 'Stepnogorsk'}, '771644':{'en': 'Arshaly'}, '771647':{'en': 'Esil'}, '771646':{'en': 'Makinsk'}, '771648':{'en': 'Derzhavinsk'}, '55914104':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55914107':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '86130258':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '77283027':{'ru': u('\u0422\u043e\u043a\u0436\u0430\u0439\u043b\u0430\u0443, \u0410\u043b\u0430\u043a\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861308575':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861308574':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861309169':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861302030':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861302031':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861302032':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861302033':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861302034':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861302035':{'en': 'Dandong, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u4e39\u4e1c\u5e02')}, '861302036':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861302037':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861302038':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861302039':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861309163':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861304442':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861309161':{'en': 'Yichun, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f0a\u6625\u5e02')}, '819596':{'en': 'Fukue, Nagasaki', 'ja': u('\u798f\u6c5f')}, '819597':{'en': 'Fukue, Nagasaki', 'ja': u('\u798f\u6c5f')}, '819594':{'en': '', 'ja': u('\u6709\u5ddd')}, '819595':{'en': '', 'ja': u('\u6709\u5ddd')}, '819592':{'en': 'Oseto, Nagasaki', 'ja': u('\u5927\u702c\u6238')}, '819593':{'en': 'Oseto, Nagasaki', 'ja': u('\u5927\u702c\u6238')}, '861309167':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '819598':{'en': 'Fukue, Nagasaki', 'ja': u('\u798f\u6c5f')}, '7727405':{'ru': u('\u0423\u043b\u044c\u043a\u0435\u043d, \u0416\u0430\u043c\u0431\u044b\u043b\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '811365':{'en': 'Kutchan, Hokkaido', 'ja': u('\u5036\u77e5\u5b89')}, '811364':{'en': 'Kutchan, Hokkaido', 'ja': u('\u5036\u77e5\u5b89')}, '811367':{'en': 'Suttsu, Hokkaido', 'ja': u('\u5bff\u90fd')}, '811366':{'en': 'Suttsu, Hokkaido', 'ja': u('\u5bff\u90fd')}, '861309165':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '811363':{'en': 'Kutchan, Hokkaido', 'ja': u('\u5036\u77e5\u5b89')}, '811362':{'en': 'Kutchan, Hokkaido', 'ja': u('\u5036\u77e5\u5b89')}, '861309164':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861309515':{'en': 'Kashi, Xinjiang', 'zh': u('\u65b0\u7586\u5580\u4ec0\u5730\u533a')}, '818973':{'en': 'Niihama, Ehime', 'ja': u('\u65b0\u5c45\u6d5c')}, '818972':{'en': 'Niihama, Ehime', 'ja': u('\u65b0\u5c45\u6d5c')}, '818977':{'en': 'Hakata, Ehime', 'ja': u('\u4f2f\u65b9')}, '812549':{'en': 'Tsugawa, Niigata', 'ja': u('\u6d25\u5ddd')}, '818975':{'en': 'Niihama, Ehime', 'ja': u('\u65b0\u5c45\u6d5c')}, '818974':{'en': 'Niihama, Ehime', 'ja': u('\u65b0\u5c45\u6d5c')}, '812544':{'en': 'Shibata, Niigata', 'ja': u('\u65b0\u767a\u7530')}, '812545':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '812546':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '812547':{'en': 'Murakami, Niigata', 'ja': u('\u6751\u4e0a')}, '812542':{'en': 'Shibata, Niigata', 'ja': u('\u65b0\u767a\u7530')}, '812543':{'en': 'Shibata, Niigata', 'ja': u('\u65b0\u767a\u7530')}, '55893436':{'en': u('Alegrete do Piau\u00ed - PI'), 'pt': u('Alegrete do Piau\u00ed - PI')}, '55893435':{'en': 'Francisco Macedo - PI', 'pt': 'Francisco Macedo - PI'}, '55893433':{'en': u('Monsenhor Hip\u00f3lito - PI'), 'pt': u('Monsenhor Hip\u00f3lito - PI')}, '55893432':{'en': u('Cajazeiras do Piau\u00ed - PI'), 'pt': u('Cajazeiras do Piau\u00ed - PI')}, '55893431':{'en': 'Padre Marcos - PI', 'pt': 'Padre Marcos - PI'}, '55893439':{'en': u('Marcol\u00e2ndia - PI'), 'pt': u('Marcol\u00e2ndia - PI')}, '55893438':{'en': u('S\u00e3o Juli\u00e3o - PI'), 'pt': u('S\u00e3o Juli\u00e3o - PI')}, '55983351':{'en': 'Viana - MA', 'pt': 'Viana - MA'}, '55983352':{'en': u('Vit\u00f3ria do Mearim - MA'), 'pt': u('Vit\u00f3ria do Mearim - MA')}, '55983353':{'en': u('Apicum-A\u00e7u - MA'), 'pt': u('Apicum-A\u00e7u - MA')}, '55983355':{'en': u('Cajapi\u00f3 - MA'), 'pt': u('Cajapi\u00f3 - MA')}, '81439':{'en': 'Kisarazu, Chiba', 'ja': u('\u6728\u66f4\u6d25')}, '81438':{'en': 'Kisarazu, Chiba', 'ja': u('\u6728\u66f4\u6d25')}, '55983358':{'en': 'Penalva - MA', 'pt': 'Penalva - MA'}, '81436':{'en': 'Ichihara, Chiba', 'ja': u('\u5e02\u539f')}, '77112':{'en': 'Uralsk', 'ru': u('\u0423\u0440\u0430\u043b\u044c\u0441\u043a')}, '81433':{'en': 'Chiba, Chiba', 'ja': u('\u5343\u8449')}, '81432':{'en': 'Chiba, Chiba', 'ja': u('\u5343\u8449')}, '861301539':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861304954':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861306809':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861306808':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861306805':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861306804':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861306807':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861306806':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '861306801':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861306800':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '861306803':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861306802':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861300951':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861300950':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861300953':{'en': 'Ulanqab, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u5170\u5bdf\u5e03\u5e02')}, '861300952':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861300955':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861300954':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861300957':{'en': 'Ordos, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u9102\u5c14\u591a\u65af\u5e02')}, '861300956':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861300959':{'en': 'Wuhai, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u4e4c\u6d77\u5e02')}, '861300958':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '81292':{'en': 'Mito, Ibaraki', 'ja': u('\u6c34\u6238')}, '592772':{'en': 'Lethem'}, '592773':{'en': 'Aishalton'}, '592775':{'en': 'Matthews Ridge'}, '592777':{'en': 'Mabaruma/Port Kaituma'}, '81298':{'en': 'Tsuchiura, Ibaraki', 'ja': u('\u571f\u6d66')}, '817738':{'en': 'Maizuru, Kyoto', 'ja': u('\u821e\u9db4')}, '819979':{'en': 'Tokunoshima, Kagoshima', 'ja': u('\u5fb3\u4e4b\u5cf6')}, '817732':{'en': 'Fukuchiyama, Kyoto', 'ja': u('\u798f\u77e5\u5c71')}, '817733':{'en': 'Fukuchiyama, Kyoto', 'ja': u('\u798f\u77e5\u5c71')}, '817734':{'en': 'Fukuchiyama, Kyoto', 'ja': u('\u798f\u77e5\u5c71')}, '817735':{'en': 'Fukuchiyama, Kyoto', 'ja': u('\u798f\u77e5\u5c71')}, '817736':{'en': 'Maizuru, Kyoto', 'ja': u('\u821e\u9db4')}, '817737':{'en': 'Maizuru, Kyoto', 'ja': u('\u821e\u9db4')}, '86130888':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130738':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '86130739':{'en': 'Ningde, Fujian', 'zh': u('\u798f\u5efa\u7701\u5b81\u5fb7\u5e02')}, '86130734':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '86130735':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '86130736':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86130737':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86130730':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130731':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '86130732':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '86130733':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '7851':{'en': 'Astrakhan'}, '7855':{'en': 'Naberezhnye Chelny'}, '861308090':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308091':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308092':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308093':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308094':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861308095':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '861308096':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861308097':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861308098':{'en': 'Yulin, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6986\u6797\u5e02')}, '861308099':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '772353':{'en': 'Novaya Shulba'}, '772351':{'en': 'Borodulikha'}, '861303972':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861303973':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861303970':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861303971':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861303976':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861303977':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861303974':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '81832':{'en': 'Shimonoseki, Yamaguchi', 'ja': u('\u4e0b\u95a2')}, '861303978':{'en': 'Heihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9ed1\u6cb3\u5e02')}, '861303979':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861302557':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '86130083':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861302555':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '86130081':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861302553':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '86130087':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861302551':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861302550':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '86130088':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130089':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '55884102':{'en': 'Crato - CE', 'pt': 'Crato - CE'}, '861302559':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861302558':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861300775':{'en': 'Haibei, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5317\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861300774':{'en': 'Hainan, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u5357\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861300777':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861300776':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861300771':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '5718397':{'en': 'Apulo', 'es': 'Apulo'}, '861300773':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '861300772':{'en': 'Haidong, Qinghai', 'zh': u('\u9752\u6d77\u7701\u6d77\u4e1c\u5730\u533a')}, '5718398':{'en': 'Apulo', 'es': 'Apulo'}, '861300779':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861300778':{'en': 'Xining, Qinghai', 'zh': u('\u9752\u6d77\u7701\u897f\u5b81\u5e02')}, '861304388':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861304389':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861308544':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861308545':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861308542':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861308543':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861308540':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861308541':{'en': 'Zhangjiajie, Hunan', 'zh': u('\u6e56\u5357\u7701\u5f20\u5bb6\u754c\u5e02')}, '861304380':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861304381':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861304382':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861304383':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861304384':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861304385':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861304386':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861304387':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861304476':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861304477':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861304474':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861304475':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861304472':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861304473':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861304470':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861304471':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861304478':{'en': 'Kaifeng, Henan', 'zh': u('\u6cb3\u5357\u7701\u5f00\u5c01\u5e02')}, '861304479':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '861308403':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861308402':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861308401':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861308400':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861308407':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861308406':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861308405':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861308404':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861308409':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861308408':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '818368':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '84240':{'en': 'Bac Giang province', 'vi': u('B\u1eafc Giang')}, '818366':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '818367':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '818364':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '818365':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '818362':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '818363':{'en': 'Ube, Yamaguchi', 'ja': u('\u5b87\u90e8')}, '818360':{'en': 'Ogori, Yamaguchi', 'ja': u('\u5c0f\u90e1')}, '861308749':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '62254':{'en': 'Serang/Merak', 'id': 'Serang/Merak'}, '62257':{'en': 'Serang', 'id': 'Serang'}, '62251':{'en': 'Bogor', 'id': 'Bogor'}, '62252':{'en': 'Rangkasbitung', 'id': 'Rangkasbitung'}, '62253':{'en': 'Pandeglang', 'id': 'Pandeglang'}, '55923641':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923642':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923643':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923645':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923646':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923648':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923649':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302731':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861302730':{'en': 'Yueyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u5cb3\u9633\u5e02')}, '861302737':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861302736':{'en': 'Changde, Hunan', 'zh': u('\u6e56\u5357\u7701\u5e38\u5fb7\u5e02')}, '861302735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '55872101':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '812489':{'en': 'Sukagawa, Fukushima', 'ja': u('\u9808\u8cc0\u5ddd')}, '812488':{'en': 'Sukagawa, Fukushima', 'ja': u('\u9808\u8cc0\u5ddd')}, '812483':{'en': 'Shirakawa, Fukushima', 'ja': u('\u767d\u6cb3')}, '812482':{'en': 'Shirakawa, Fukushima', 'ja': u('\u767d\u6cb3')}, '812485':{'en': 'Shirakawa, Fukushima', 'ja': u('\u767d\u6cb3')}, '812484':{'en': 'Shirakawa, Fukushima', 'ja': u('\u767d\u6cb3')}, '812487':{'en': 'Sukagawa, Fukushima', 'ja': u('\u9808\u8cc0\u5ddd')}, '812486':{'en': 'Sukagawa, Fukushima', 'ja': u('\u9808\u8cc0\u5ddd')}, '55913295':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913297':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913292':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913298':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '643409':{'en': 'Queenstown'}, '771455':{'en': 'Zatobolsk'}, '771456':{'en': 'Kachar'}, '771451':{'en': 'Sarykol'}, '771452':{'en': 'Karasu'}, '771453':{'en': 'Auliekol'}, '55913120':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861309710':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861309711':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861309712':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861309713':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861309714':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861309715':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861309716':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309717':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861309718':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861309719':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861306929':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861309439':{'en': 'Lincang, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4e34\u6ca7\u5e02')}, '861309438':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861309435':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861309434':{'en': 'Honghe, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7ea2\u6cb3\u54c8\u5c3c\u65cf\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861309437':{'en': 'Wenshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6587\u5c71\u58ee\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861309436':{'en': 'Baoshan, Yunnan', 'zh': u('\u4e91\u5357\u7701\u4fdd\u5c71\u5e02')}, '861309431':{'en': 'Qujing, Yunnan', 'zh': u('\u4e91\u5357\u7701\u66f2\u9756\u5e02')}, '861309430':{'en': 'Yuxi, Yunnan', 'zh': u('\u4e91\u5357\u7701\u7389\u6eaa\u5e02')}, '861309433':{'en': 'Zhaotong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u662d\u901a\u5e02')}, '861309432':{'en': 'Chuxiong, Yunnan', 'zh': u('\u4e91\u5357\u7701\u695a\u96c4\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861301419':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861301418':{'en': 'Jiayuguan, Gansu', 'zh': u('\u7518\u8083\u7701\u5609\u5cea\u5173\u5e02')}, '861301149':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861301148':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861301413':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861301412':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861301411':{'en': 'Zhangye, Gansu', 'zh': u('\u7518\u8083\u7701\u5f20\u6396\u5e02')}, '861301146':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861301141':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301416':{'en': 'Wuwei, Gansu', 'zh': u('\u7518\u8083\u7701\u6b66\u5a01\u5e02')}, '861301143':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301142':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861308393':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308392':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861308391':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861308187':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861308397':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861308396':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861308395':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861308394':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861308399':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861308398':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861309141':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861305560':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861302728':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861302729':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '86130544':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861309140':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861308322':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861302726':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861308323':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861302727':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '62401':{'en': 'Kendari', 'id': 'Kendari'}, '861303010':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '62403':{'en': 'Raha', 'id': 'Raha'}, '62402':{'en': 'Baubau', 'id': 'Baubau'}, '62405':{'en': 'Kolaka', 'id': 'Kolaka'}, '62404':{'en': 'Wanci', 'id': 'Wanci'}, '861303017':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861303016':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861303019':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '62408':{'en': 'Unaaha', 'id': 'Unaaha'}, '861304045':{'en': 'Bayingolin, Xinjiang', 'zh': u('\u65b0\u7586\u5df4\u97f3\u90ed\u695e\u8499\u53e4\u81ea\u6cbb\u5dde')}, '861304044':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861304043':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861304042':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861304041':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861304040':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '81977':{'en': 'Beppu, Oita', 'ja': u('\u5225\u5e9c')}, '64324':{'en': 'Tokanui/Lumsden/Te Anau'}, '81975':{'en': 'Oita, Oita', 'ja': u('\u5927\u5206')}, '64322':{'en': 'Otautau'}, '64323':{'en': 'Riverton/Winton'}, '64320':{'en': 'Gore/Edendale'}, '64321':{'en': 'Invercargill/Stewart Island/Rakiura'}, '861308329':{'en': 'Chizhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6c60\u5dde\u5e02')}, '81979':{'en': 'Nakatsu, Oita', 'ja': u('\u4e2d\u6d25')}, '84650':{'en': 'Binh Duong province', 'vi': u('B\u00ecnh D\u01b0\u01a1ng')}, '84651':{'en': 'Binh Phuoc province', 'vi': u('B\u00ecnh Ph\u01b0\u1edbc')}, '861301079':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '811953':{'en': 'Ninohe, Iwate', 'ja': u('\u4e8c\u6238')}, '7336':{'en': 'Baikonur'}, '861302055':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861304300':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861304301':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861304303':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86130279':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '811958':{'en': 'Iwate, Iwate', 'ja': u('\u5ca9\u624b')}, '86130277':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86130271':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130480':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861306071':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '86130481':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861306073':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '55923071':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861306077':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '8145':{'en': 'Yokohama, Kanagawa', 'ja': u('\u6a2a\u6d5c')}, '8144':{'en': 'Kawasaki, Kanagawa', 'ja': u('\u5ddd\u5d0e')}, '86130959':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861302056':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861302057':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861302054':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '7346':{'en': 'Surgut'}, '861302052':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861302053':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861302050':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861302051':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861309504':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '861302058':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861302059':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '77132':{'en': 'Aktobe/Kargalinskoye', 'ru': u('\u0410\u043a\u0442\u044e\u0431\u0438\u043d\u0441\u043a')}, '55983377':{'en': u('Nova Olinda do Maranh\u00e3o - MA'), 'pt': u('Nova Olinda do Maranh\u00e3o - MA')}, '55983374':{'en': u('Santa Luzia do Paru\u00e1 - MA'), 'pt': u('Santa Luzia do Paru\u00e1 - MA')}, '55983372':{'en': u('Santo Ant\u00f4nio dos Lopes - MA'), 'pt': u('Santo Ant\u00f4nio dos Lopes - MA')}, '55983373':{'en': u('Maraca\u00e7um\u00e9 - MA'), 'pt': u('Maraca\u00e7um\u00e9 - MA')}, '55983371':{'en': 'Governador Nunes Freire - MA', 'pt': 'Governador Nunes Freire - MA'}, '55983378':{'en': u('Pedro do Ros\u00e1rio - MA'), 'pt': u('Pedro do Ros\u00e1rio - MA')}, '861309273':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861309272':{'en': 'Huanggang, Hubei', 'zh': u('\u6e56\u5317\u7701\u9ec4\u5188\u5e02')}, '861306531':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861306530':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861306533':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861306532':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861306535':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861306534':{'en': 'Fuxin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u961c\u65b0\u5e02')}, '861306537':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861306536':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861306539':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861306538':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '55963251':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861301081':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861301082':{'en': 'Liaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8fbd\u9633\u5e02')}, '861301083':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '55983088':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983089':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861301086':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861301087':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '55983084':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861301089':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '55983087':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983081':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983082':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983083':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861300977':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861300976':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '861300975':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861300974':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861300973':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861300972':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300971':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300970':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861300979':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861300978':{'en': 'Jiamusi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4f73\u6728\u65af\u5e02')}, '55893415':{'en': 'Picos - PI', 'pt': 'Picos - PI'}, '819912':{'en': '', 'ja': u('\u4e2d\u4e4b\u5cf6')}, '819913':{'en': '', 'ja': u('\u786b\u9ec4\u5cf6')}, '81263':{'en': 'Matsumoto, Nagano', 'ja': u('\u677e\u672c')}, '81260':{'en': 'Anan, Nagano', 'ja': u('\u963f\u5357\u753a')}, '861301295':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '861308183':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '86130668':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861309326':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '86130712':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130713':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '86130710':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86130711':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130716':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '86130717':{'en': 'Pingdingshan, Henan', 'zh': u('\u6cb3\u5357\u7701\u5e73\u9876\u5c71\u5e02')}, '86130714':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '86130715':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '86130868':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '86130718':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '86130719':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '861300285':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861300284':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861300287':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861300286':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861300281':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '861300280':{'en': 'Liangshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u51c9\u5c71\u5f5d\u65cf\u81ea\u6cbb\u5dde')}, '861300283':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861300282':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '7831':{'en': 'Nizhni Novgorod'}, '7833':{'en': 'Kirov'}, '7834':{'en': 'Republic of Mordovia'}, '7835':{'en': 'Chuvashi Republic'}, '7836':{'en': 'Republic of Marij El'}, '861303958':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861303959':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '55913434':{'en': u('Garraf\u00e3o do Norte - PA'), 'pt': u('Garraf\u00e3o do Norte - PA')}, '861303950':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861303951':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861303952':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '861303953':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861303954':{'en': 'Tongliao, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u901a\u8fbd\u5e02')}, '861303955':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861303956':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861303957':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861301888':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861301889':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861301880':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861301881':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861301882':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861301883':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861301884':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861301885':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861301886':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861301887':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861300029':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300028':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300759':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '861300758':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861300021':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861300020':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861300751':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861300022':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861300025':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300024':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861300027':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300754':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861308568':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861308569':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861308564':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '5718375':{'en': u('Nari\u00f1o'), 'es': u('Nari\u00f1o')}, '5718376':{'en': 'Tocaima', 'es': 'Tocaima'}, '861308567':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '5718370':{'en': u('Jerusal\u00e9n'), 'es': u('Jerusal\u00e9n')}, '5718371':{'en': 'Guataqui', 'es': 'Guataqui'}, '861308562':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '5718373':{'en': u('Beltr\u00e1n'), 'es': u('Beltr\u00e1n')}, '818205':{'en': 'Yanai, Yamaguchi', 'ja': u('\u67f3\u4e95')}, '818204':{'en': 'Yanai, Yamaguchi', 'ja': u('\u67f3\u4e95')}, '818207':{'en': '', 'ja': u('\u4e45\u8cc0')}, '818206':{'en': 'Yanai, Yamaguchi', 'ja': u('\u67f3\u4e95')}, '861304458':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861304459':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '818203':{'en': 'Yanai, Yamaguchi', 'ja': u('\u67f3\u4e95')}, '818202':{'en': 'Yanai, Yamaguchi', 'ja': u('\u67f3\u4e95')}, '861303486':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861303487':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861303484':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861303485':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861303482':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '818208':{'en': '', 'ja': u('\u4e45\u8cc0')}, '861303480':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861303481':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861309501':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '771443':{'en': 'Borovskoi'}, '861309687':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '771442':{'en': 'Fyodorovka'}, '771441':{'en': 'Karabalyk'}, '771440':{'en': 'Amangeldy'}, '861302539':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861302538':{'en': 'Yunfu, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e91\u6d6e\u5e02')}, '861302535':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861302534':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861302537':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861302536':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861302531':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861302530':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861302533':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861302532':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '771445':{'en': 'Ubaganskoye'}, '771444':{'en': 'Uzunkol'}, '861306601':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861308764':{'en': 'Shangluo, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5546\u6d1b\u5e02')}, '62232':{'en': 'Kuningan', 'id': 'Kuningan'}, '62233':{'en': 'Majalengka', 'id': 'Majalengka'}, '62231':{'en': 'Cirebon', 'id': 'Cirebon'}, '62234':{'en': 'Indramayu', 'id': 'Indramayu'}, '55923667':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923664':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923663':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861308765':{'en': 'Tongchuan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u94dc\u5ddd\u5e02')}, '861309044':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861309500':{'en': 'Urumchi, Xinjiang', 'zh': u('\u65b0\u7586\u4e4c\u9c81\u6728\u9f50\u5e02')}, '818836':{'en': 'Mima, Tokushima', 'ja': u('\u8107\u753a')}, '818837':{'en': '', 'ja': u('\u963f\u6ce2\u6c60\u7530')}, '818834':{'en': 'Kamojima, Tokushima', 'ja': u('\u9d28\u5cf6')}, '818835':{'en': 'Mima, Tokushima', 'ja': u('\u8107\u753a')}, '818832':{'en': 'Kamojima, Tokushima', 'ja': u('\u9d28\u5cf6')}, '818833':{'en': 'Kamojima, Tokushima', 'ja': u('\u9d28\u5cf6')}, '818838':{'en': '', 'ja': u('\u963f\u6ce2\u6c60\u7530')}, '55913829':{'en': u('Tom\u00e9-A\u00e7\u00fa - PA'), 'pt': u('Tom\u00e9-A\u00e7\u00fa - PA')}, '861306604':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861308761':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '8462':{'en': 'Binh Thuan province', 'vi': u('B\u00ecnh Thu\u1eadn')}, '8463':{'en': 'Lam Dong province', 'vi': u('L\u00e2m \u0110\u1ed3ng')}, '8460':{'en': 'Kon Tum province', 'vi': 'Kon Tum'}, '8461':{'en': 'Dong Nai province', 'vi': u('\u0110\u1ed3ng Nai')}, '8466':{'en': 'Tay Ninh province', 'vi': u('T\u00e2y Ninh')}, '8467':{'en': 'Dong Thap province', 'vi': u('\u0110\u1ed3ng Th\u00e1p')}, '8464':{'en': 'Ba Ria-Vung Tau province', 'vi': u('B\u00e0 R\u1ecba-V\u0169ng T\u00e0u')}, '8468':{'en': 'Ninh Thuan province', 'vi': u('Ninh Thu\u1eadn')}, '861309776':{'en': 'Baise, Guangxi', 'zh': u('\u5e7f\u897f\u767e\u8272\u5e02')}, '861309585':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861309774':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861309775':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861309772':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861309773':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861309770':{'en': 'Fangchenggang, Guangxi', 'zh': u('\u5e7f\u897f\u9632\u57ce\u6e2f\u5e02')}, '861304756':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861309587':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861305533':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861308828':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861309586':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861308160':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861308821':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861308820':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '861308823':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861308822':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861308825':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861308824':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861308827':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861308826':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '55863369':{'en': 'Cajueiro da Praia - PI', 'pt': 'Cajueiro da Praia - PI'}, '55873983':{'en': 'Petrolina - PE', 'pt': 'Petrolina - PE'}, '55863366':{'en': u('Lu\u00eds Correia - PI'), 'pt': u('Lu\u00eds Correia - PI')}, '55863367':{'en': u('Lu\u00eds Correia - PI'), 'pt': u('Lu\u00eds Correia - PI')}, '55863360':{'en': 'Joaquim Pires - PI', 'pt': 'Joaquim Pires - PI'}, '55863362':{'en': 'Cocal - PI', 'pt': 'Cocal - PI'}, '55863363':{'en': 'Buriti dos Lopes - PI', 'pt': 'Buriti dos Lopes - PI'}, '861309413':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861309412':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861309411':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861309410':{'en': 'Xiangfan, Hubei', 'zh': u('\u6e56\u5317\u7701\u8944\u6a0a\u5e02')}, '861309417':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861309416':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861309415':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '55993118':{'en': 'Timon - MA', 'pt': 'Timon - MA'}, '55993117':{'en': 'Timon - MA', 'pt': 'Timon - MA'}, '861309419':{'en': 'Xianning, Hubei', 'zh': u('\u6e56\u5317\u7701\u54b8\u5b81\u5e02')}, '861309418':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861301163':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301162':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301161':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301160':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301167':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861301166':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861301165':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861301164':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861301169':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861301168':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861309588':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861303741':{'en': 'Xiangxi, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '7394':{'en': 'Republic of Tuva'}, '861309568':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '574917':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '7390':{'en': 'Republic of Khakassia'}, '861303747':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '574913':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '861303749':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861305088':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861305089':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861303748':{'en': 'Yongzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u6c38\u5dde\u5e02')}, '861305084':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861305085':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861305086':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861305087':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861305080':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861305081':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861305082':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861305083':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861308229':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861300564':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861300565':{'en': 'Yangjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u9633\u6c5f\u5e02')}, '861300566':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861300567':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861300560':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861300561':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861300562':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861300563':{'en': 'Zhanjiang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e5b\u6c5f\u5e02')}, '861305268':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861305269':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861300568':{'en': 'Maoming, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8302\u540d\u5e02')}, '861300569':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861309581':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861303037':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861303036':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861303035':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861303034':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '861303033':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861303032':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861303031':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '62428':{'en': 'Polewali', 'id': 'Polewali'}, '62427':{'en': 'Barru', 'id': 'Barru'}, '62426':{'en': 'Mamuju', 'id': 'Mamuju'}, '62931':{'en': 'Saparua', 'id': 'Saparua'}, '62422':{'en': 'Majene', 'id': 'Majene'}, '62421':{'en': 'Parepare/Pinrang', 'id': 'Parepare/Pinrang'}, '62420':{'en': 'Enrekang', 'id': 'Enrekang'}, '81958':{'en': 'Nagasaki, Nagasaki', 'ja': u('\u9577\u5d0e')}, '861301084':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '81956':{'en': 'Sasebo, Japan', 'ja': u('\u4f50\u4e16\u4fdd')}, '81950':{'en': 'Hirado, Nagasaki', 'ja': u('\u5e73\u6238')}, '861309580':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '81952':{'en': 'Saga, Saga', 'ja': u('\u4f50\u8cc0')}, '861301085':{'en': 'XiAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u897f\u5b89\u5e02')}, '861308220':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '55973389':{'en': u('Apu\u00ed - AM'), 'pt': u('Apu\u00ed - AM')}, '55973385':{'en': u('Manicor\u00e9 - AM'), 'pt': u('Manicor\u00e9 - AM')}, '55983621':{'en': 'Bacabal - MA', 'pt': 'Bacabal - MA'}, '861301088':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '861301921':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308224':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861309129':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '62984':{'en': 'Nabire', 'id': 'Nabire'}, '861304539':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '861304538':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861309582':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861309128':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '55953593':{'en': 'Amajari - RR', 'pt': 'Amajari - RR'}, '55953592':{'en': 'Pacaraima - RR', 'pt': 'Pacaraima - RR'}, '55953591':{'en': u('Uiramut\u00e3 - RR'), 'pt': u('Uiramut\u00e3 - RR')}, '55883638':{'en': u('Hidrol\u00e2ndia - CE'), 'pt': u('Hidrol\u00e2ndia - CE')}, '55883639':{'en': 'Varjota - CE', 'pt': 'Varjota - CE'}, '772149':{'en': 'Osakarovka'}, '772148':{'en': 'Molodezhnoye'}, '55883630':{'en': u('Mira\u00edma - CE'), 'pt': u('Mira\u00edma - CE')}, '55883631':{'en': 'Itapipoca - CE', 'pt': 'Itapipoca - CE'}, '55883632':{'en': u('Vi\u00e7osa do Cear\u00e1 - CE'), 'pt': u('Vi\u00e7osa do Cear\u00e1 - CE')}, '55883633':{'en': u('Ararend\u00e1 - CE'), 'pt': u('Ararend\u00e1 - CE')}, '55883634':{'en': 'Ubajara - CE', 'pt': 'Ubajara - CE'}, '55883635':{'en': u('Irau\u00e7uba - CE'), 'pt': u('Irau\u00e7uba - CE')}, '55883636':{'en': 'Amontada - CE', 'pt': 'Amontada - CE'}, '55883637':{'en': 'Reriutaba - CE', 'pt': 'Reriutaba - CE'}, '55943311':{'en': 'Parauapebas - PA', 'pt': 'Parauapebas - PA'}, '55943312':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '55943314':{'en': 'Serra Pelada - PA', 'pt': 'Serra Pelada - PA'}, '55943315':{'en': 'PA 275 - PA', 'pt': 'PA 275 - PA'}, '86130294':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '55943319':{'en': 'Santa Maria das Barreiras - PA', 'pt': 'Santa Maria das Barreiras - PA'}, '861304534':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '55873772':{'en': 'Correntes - PE', 'pt': 'Correntes - PE'}, '55873773':{'en': 'Lajedo - PE', 'pt': 'Lajedo - PE'}, '55873771':{'en': 'Bom Conselho - PE', 'pt': 'Bom Conselho - PE'}, '861309688':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '55873775':{'en': u('\u00c1guas Belas - PE'), 'pt': u('\u00c1guas Belas - PE')}, '55873779':{'en': 'Jupi - PE', 'pt': 'Jupi - PE'}, '861309125':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '55924002':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55924004':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861309682':{'en': 'Bijie, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u6bd5\u8282\u5730\u533a')}, '55924009':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861309683':{'en': 'Qiandongnan, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u9ed4\u4e1c\u5357\u82d7\u65cf\u4f97\u65cf\u81ea\u6cbb\u5dde')}, '861309124':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861309681':{'en': 'Liupanshui, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u516d\u76d8\u6c34\u5e02')}, '861308612':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861308613':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861308610':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '861308611':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861308616':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861308617':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861308614':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861308615':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861308618':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861308619':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861301404':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861301405':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '861301406':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '811637':{'en': '', 'ja': u('\u5317\u898b\u679d\u5e78')}, '811636':{'en': '', 'ja': u('\u5317\u898b\u679d\u5e78')}, '811635':{'en': 'Hamatonbetsu, Hokkaido', 'ja': u('\u6d5c\u9813\u5225')}, '811634':{'en': 'Hamatonbetsu, Hokkaido', 'ja': u('\u6d5c\u9813\u5225')}, '811632':{'en': 'Teshio, Hokkaido', 'ja': u('\u5929\u5869')}, '861304244':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861301400':{'en': 'Suzhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5bbf\u5dde\u5e02')}, '861304247':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '811639':{'en': '', 'ja': u('\u5229\u5c3b\u793c\u6587')}, '861301153':{'en': 'Handan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90af\u90f8\u5e02')}, '861304246':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '861301150':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861304241':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861301403':{'en': 'LuAn, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u516d\u5b89\u5e02')}, '861304240':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861303563':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861304242':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '8610':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861305313':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861303569':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '55983311':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983312':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55983313':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '5717':{'en': u('Bogot\u00e1'), 'es': u('Bogot\u00e1')}, '5716':{'en': u('Bogot\u00e1'), 'es': u('Bogot\u00e1')}, '5715':{'en': u('Bogot\u00e1'), 'es': u('Bogot\u00e1')}, '5714':{'en': u('Bogot\u00e1'), 'es': u('Bogot\u00e1')}, '5713':{'en': u('Bogot\u00e1'), 'es': u('Bogot\u00e1')}, '5712':{'en': u('Bogot\u00e1'), 'es': u('Bogot\u00e1')}, '55963271':{'en': u('Mazag\u00e3o - AP'), 'pt': u('Mazag\u00e3o - AP')}, '861303855':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '812676':{'en': 'Saku, Nagano', 'ja': u('\u4f50\u4e45')}, '812677':{'en': 'Saku, Nagano', 'ja': u('\u4f50\u4e45')}, '812674':{'en': 'Komoro, Nagano', 'ja': u('\u5c0f\u8af8')}, '812675':{'en': 'Saku, Nagano', 'ja': u('\u4f50\u4e45')}, '812672':{'en': 'Komoro, Nagano', 'ja': u('\u5c0f\u8af8')}, '861300918':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861303854':{'en': 'Xianyang, Shaanxi', 'zh': u('\u9655\u897f\u7701\u54b8\u9633\u5e02')}, '861300915':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861300914':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861300917':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861300916':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861300911':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861300910':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861300913':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '812679':{'en': 'Saku, Nagano', 'ja': u('\u4f50\u4e45')}, '819664':{'en': 'Hitoyoshi, Kumamoto', 'ja': u('\u4eba\u5409')}, '819665':{'en': 'Hitoyoshi, Kumamoto', 'ja': u('\u4eba\u5409')}, '819666':{'en': 'Minamata, Kumamoto', 'ja': u('\u6c34\u4fe3')}, '819667':{'en': 'Minamata, Kumamoto', 'ja': u('\u6c34\u4fe3')}, '861303857':{'en': 'YanAn, Shaanxi', 'zh': u('\u9655\u897f\u7701\u5ef6\u5b89\u5e02')}, '819662':{'en': 'Hitoyoshi, Kumamoto', 'ja': u('\u4eba\u5409')}, '819663':{'en': 'Hitoyoshi, Kumamoto', 'ja': u('\u4eba\u5409')}, '819668':{'en': 'Minamata, Kumamoto', 'ja': u('\u6c34\u4fe3')}, '817950':{'en': 'Sanda, Hyogo', 'ja': u('\u4e09\u7530')}, '817952':{'en': 'Nishiwaki, Hyogo', 'ja': u('\u897f\u8107')}, '817953':{'en': 'Nishiwaki, Hyogo', 'ja': u('\u897f\u8107')}, '819938':{'en': 'Kaseda, Kagoshima', 'ja': u('\u52a0\u4e16\u7530')}, '817955':{'en': 'Sanda, Hyogo', 'ja': u('\u4e09\u7530')}, '817956':{'en': 'Sanda, Hyogo', 'ja': u('\u4e09\u7530')}, '817957':{'en': '', 'ja': u('\u4e39\u6ce2\u67cf\u539f')}, '817958':{'en': '', 'ja': u('\u4e39\u6ce2\u67cf\u539f')}, '817959':{'en': 'Sanda, Hyogo', 'ja': u('\u4e09\u7530')}, '819936':{'en': 'Kaseda, Kagoshima', 'ja': u('\u52a0\u4e16\u7530')}, '819937':{'en': 'Kaseda, Kagoshima', 'ja': u('\u52a0\u4e16\u7530')}, '819932':{'en': 'Ibusuki, Kagoshima', 'ja': u('\u6307\u5bbf')}, '86130694':{'en': 'Jiaozuo, Henan', 'zh': u('\u6cb3\u5357\u7701\u7126\u4f5c\u5e02')}, '861309395':{'en': 'Weinan, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6e2d\u5357\u5e02')}, '861309391':{'en': 'Hanzhong, Shaanxi', 'zh': u('\u9655\u897f\u7701\u6c49\u4e2d\u5e02')}, '7816':{'en': 'Veliky Novgorod'}, '7817':{'en': 'Vologda'}, '7814':{'en': 'Republic of Karelia'}, '7815':{'en': 'Murmansk'}, '7812':{'en': 'St Petersburg'}, '7813':{'en': 'Leningrad region'}, '7811':{'en': 'Pskov'}, '57689':{'en': 'Manizales', 'es': 'Manizales'}, '57688':{'en': 'Manizales', 'es': 'Manizales'}, '7818':{'en': 'Arkhangelsk'}, '55883401':{'en': 'Limoeiro do Norte - CE', 'pt': 'Limoeiro do Norte - CE'}, '55883400':{'en': 'Limoeiro do Norte - CE', 'pt': 'Limoeiro do Norte - CE'}, '55913412':{'en': 'Castanhal - PA', 'pt': 'Castanhal - PA'}, '861303938':{'en': 'Baishan, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u5c71\u5e02')}, '55883404':{'en': 'Russas - CE', 'pt': 'Russas - CE'}, '861303936':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '861303937':{'en': 'Baicheng, Jilin', 'zh': u('\u5409\u6797\u7701\u767d\u57ce\u5e02')}, '55883409':{'en': 'Russas - CE', 'pt': 'Russas - CE'}, '861303935':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861303932':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303933':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861303930':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303931':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861301208':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861301209':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '861301202':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861301203':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861301200':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861301201':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861301206':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301207':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861301204':{'en': 'Cangzhou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u6ca7\u5dde\u5e02')}, '861301205':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861305529':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300008':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861305527':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861300006':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861305525':{'en': 'Fuzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u798f\u5dde\u5e02')}, '861305524':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861305523':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861300002':{'en': 'Chaohu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5de2\u6e56\u5e02')}, '861300001':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861300000':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861308582':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861308583':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861308580':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861308581':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '861308586':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861308587':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861308584':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861308585':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861308588':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861308589':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '861305315':{'en': 'Huaibei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5317\u5e02')}, '84281':{'en': 'Bac Kan province', 'vi': u('B\u1eafc K\u1ea1n')}, '84280':{'en': 'Thai Nguyen province', 'vi': u('Th\u00e1i Nguy\u00ean')}, '86130598':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '86130599':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '86130596':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '86130597':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '86130591':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130592':{'en': 'Jiangmen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c5f\u95e8\u5e02')}, '861305948':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861309348':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '62746':{'en': 'Bangko', 'id': 'Bangko'}, '62747':{'en': 'Muarabungo', 'id': 'Muarabungo'}, '62744':{'en': 'Muara Tebo', 'id': 'Muara Tebo'}, '62745':{'en': 'Sarolangun', 'id': 'Sarolangun'}, '62742':{'en': 'Kualatungkal/Tebing Tinggi', 'id': 'Kualatungkal/Tebing Tinggi'}, '62743':{'en': 'Muara Bulian', 'id': 'Muara Bulian'}, '62740':{'en': 'Mendahara/Muara Sabak', 'id': 'Mendahara/Muara Sabak'}, '62741':{'en': 'Jambi City', 'id': 'Kota Jambi'}, '861303208':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861303209':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '62748':{'en': 'Sungai Penuh/Kerinci', 'id': 'Sungai Penuh/Kerinci'}, '861303169':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '86130922':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861305090':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '599718':{'en': 'Bonaire'}, '599717':{'en': 'Bonaire'}, '599715':{'en': 'Bonaire'}, '55943787':{'en': u('Tucuru\u00ed - PA'), 'pt': u('Tucuru\u00ed - PA')}, '55943786':{'en': 'Breu Branco - PA', 'pt': 'Breu Branco - PA'}, '55943785':{'en': 'Novo Repartimento - PA', 'pt': 'Novo Repartimento - PA'}, '861305943':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '86130860':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '861305942':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861305947':{'en': 'Zhaoqing, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u8087\u5e86\u5e02')}, '861305946':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '861303162':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '86130866':{'en': 'Chengdu, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '86130337':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '771144':{'en': 'Kaztalovka'}, '771145':{'en': 'Karatobe'}, '771142':{'en': 'Taipak'}, '771143':{'en': 'Akzhaik'}, '771140':{'en': 'Saikhin'}, '771141':{'en': 'Zhangala'}, '861308702':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '55913250':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913251':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913252':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913254':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913255':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913256':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913257':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913258':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913259':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '8261':{'ar': u('\u062c\u0648\u0644\u0627\u0646\u0627\u0645-\u062f\u0648'), 'bg': u('\u0427\u044a\u043b\u0430-\u041d\u0430\u043c\u0434\u043e'), 'ca': 'Jeollanam-do', 'cs': u('Ji\u017en\u00ed \u010colla'), 'en': 'Jeonnam', 'es': 'Jeolla del Sur', 'fi': u('Etel\u00e4-Jeolla'), 'fr': 'Jeonranamdo', 'hi': u('\u0917\u094d\u092f\u0947\u0913\u0902\u0917\u0938\u093e\u0902\u0917\u092c\u0941\u0915-\u0926\u094b'), 'hu': u('D\u00e9l-Csolla'), 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05d3\u05e8\u05d5\u05dd \u05e6\'\u05d0\u05dc\u05d4'), 'ja': u('\u5168\u7f85\u5357\u9053'), 'ko': u('\uc804\ub0a8'), 'tr': u('G\u00fcney Jeolla'), 'zh': u('\u5168\u7f57\u5357\u9053'), 'zh_Hant': u('\u5168\u7f85\u5357\u9053')}, '8262':{'ar': u('\u0645\u062f\u064a\u0646\u0629 \u062c\u0648\u0627\u0646\u062c\u062c\u0648 \u0627\u0644\u0643\u0628\u0631\u0649'), 'bg': u('\u041a\u0443\u0430\u043d\u0434\u0436\u0443'), 'ca': 'Gwangju', 'cs': u('Kwangd\u017eu'), 'el': u('\u0393\u03ba\u03bf\u03c5\u03ac\u03bd\u03b3\u03ba\u03c4\u03b6\u03bf\u03c5'), 'en': 'Gwangju', 'es': 'Gwangju', 'fi': 'Gwangju', 'fr': 'Gwangju', 'hi': u('\u0917\u094d\u0935\u093e\u0902\u0917\u091c\u0942'), 'hu': 'Kvangdzsu', 'iw': u('\u05e7\u05d5\u05d5\u05d0\u05e0\u05d2\u05d2\'\u05d5'), 'ja': u('\u5149\u5dde\u5e83\u57df\u5e02'), 'ko': u('\uad11\uc8fc'), 'tr': 'Gwangju', 'zh': u('\u5149\u5dde\u5e02'), 'zh_Hant': u('\u5149\u5dde\u5ee3')}, '8263':{'ar': u('\u062c\u0648\u0644\u0627\u0628\u0648\u0643-\u062f\u0648'), 'bg': u('\u0427\u044a\u043b\u0430-\u041f\u0443\u043a\u0442\u043e'), 'ca': 'Jeollabuk-do', 'cs': u('Severn\u00ed \u010colla'), 'en': 'Jeonbuk', 'es': 'Jeolla del Norte', 'fi': 'Pohjois-Jeolla', 'fr': 'Jeonrabugdo', 'hi': u('\u091c\u0947\u0913\u0932\u094d\u0932\u093e\u0928\u093e\u092e-\u0926\u094b'), 'hu': u('\u00c9szak-Csolla'), 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05e6\u05e4\u05d5\u05df \u05e6\u05b7\u200f\'\u05d0\u05dc\u05bc\u200f\u05b7\u200f\u05d4'), 'ja': u('\u5168\u7f85\u5317\u9053'), 'ko': u('\uc804\ubd81'), 'tr': 'Kuzey Jeolla', 'zh': u('\u5168\u7f57\u5317\u9053'), 'zh_Hant': u('\u5168\u7f85\u5317\u9053')}, '55963689':{'en': u('Afu\u00e1 - PA'), 'pt': u('Afu\u00e1 - PA')}, '861306988':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861306989':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861304367':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861306984':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861306985':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861306986':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861306987':{'en': 'Harbin, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u54c8\u5c14\u6ee8\u5e02')}, '861306980':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861306981':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '861306982':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861306983':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861309758':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861309759':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309754':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309755':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861305317':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861309757':{'en': u('L\u00fcliang, Shanxi'), 'zh': u('\u5c71\u897f\u7701\u5415\u6881\u5e02')}, '861309750':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861309751':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861309752':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861309753':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861300289':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861300288':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861304678':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861309174':{'en': 'Da Hinggan Ling, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5174\u5b89\u5cad\u5730\u533a')}, '55863347':{'en': 'Batalha - PI', 'pt': 'Batalha - PI'}, '861304679':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '55893591':{'en': 'Jurema - PI', 'pt': 'Jurema - PI'}, '861302347':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861308707':{'en': 'Sanmenxia, Henan', 'zh': u('\u6cb3\u5357\u7701\u4e09\u95e8\u5ce1\u5e02')}, '811868':{'en': 'Takanosu, Akita', 'ja': u('\u9df9\u5de3')}, '811869':{'en': 'Odate, Akita', 'ja': u('\u5927\u9928')}, '8186699':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '8186698':{'en': 'Kurashiki, Okayama', 'ja': u('\u5009\u6577')}, '8186697':{'en': 'Kurashiki, Okayama', 'ja': u('\u5009\u6577')}, '8186696':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '8186695':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '8186694':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '811866':{'en': 'Takanosu, Akita', 'ja': u('\u9df9\u5de3')}, '8186692':{'en': 'Soja, Okayama', 'ja': u('\u7dcf\u793e')}, '811864':{'en': 'Odate, Akita', 'ja': u('\u5927\u9928')}, '811865':{'en': 'Odate, Akita', 'ja': u('\u5927\u9928')}, '861304670':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '57183929':{'en': 'La Esmeralda', 'es': 'La Esmeralda'}, '57183928':{'en': 'Nilo', 'es': 'Nilo'}, '861304671':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '57183925':{'en': 'Nilo', 'es': 'Nilo'}, '57183927':{'en': 'Nilo', 'es': 'Nilo'}, '57183926':{'en': 'Nilo', 'es': 'Nilo'}, '861304672':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861304673':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861304674':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861304675':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861304676':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861304677':{'en': 'Nantong, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u901a\u5e02')}, '861306717':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861306716':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305509':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '62918':{'en': 'Saumlaku', 'id': 'Saumlaku'}, '861304051':{'en': 'Turpan, Xinjiang', 'zh': u('\u65b0\u7586\u5410\u9c81\u756a\u5730\u533a')}, '62913':{'en': 'Namlea', 'id': 'Namlea'}, '62911':{'en': 'Ambon', 'id': 'Ambon'}, '62910':{'en': 'Bandanaira', 'id': 'Bandanaira'}, '62917':{'en': 'Dobo', 'id': 'Dobo'}, '62916':{'en': 'Tual', 'id': 'Tual'}, '62915':{'en': 'Bula', 'id': 'Bula'}, '62914':{'en': 'Masohi', 'id': 'Masohi'}, '817235':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '817234':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '81938':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '81939':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '817231':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '817230':{'en': 'Neyagawa, Osaka', 'ja': u('\u5bdd\u5c4b\u5ddd')}, '817233':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '817232':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '81932':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '81933':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '81930':{'en': 'Yukuhashi, Fukuoka', 'ja': u('\u884c\u6a4b')}, '64361':{'en': 'Timaru'}, '81936':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '81937':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '81934':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '81935':{'en': 'Kitakyushu, Fukuoka', 'ja': u('\u5317\u4e5d\u5dde')}, '861304056':{'en': 'Ili, Xinjiang', 'zh': u('\u65b0\u7586\u4f0a\u7281\u54c8\u8428\u514b\u81ea\u6cbb\u5dde')}, '8188097':{'en': 'Tosashimizu, Kochi', 'ja': u('\u571f\u4f50\u6e05\u6c34')}, '8188096':{'en': 'Tosashimizu, Kochi', 'ja': u('\u571f\u4f50\u6e05\u6c34')}, '8188095':{'en': 'Tosashimizu, Kochi', 'ja': u('\u571f\u4f50\u6e05\u6c34')}, '8188094':{'en': '', 'ja': u('\u7aaa\u5ddd')}, '8188093':{'en': '', 'ja': u('\u7aaa\u5ddd')}, '8188092':{'en': '', 'ja': u('\u7aaa\u5ddd')}, '8188091':{'en': '', 'ja': u('\u7aaa\u5ddd')}, '8188090':{'en': '', 'ja': u('\u7aaa\u5ddd')}, '861300023':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '8188099':{'en': 'Tosashimizu, Kochi', 'ja': u('\u571f\u4f50\u6e05\u6c34')}, '8188098':{'en': 'Tosashimizu, Kochi', 'ja': u('\u571f\u4f50\u6e05\u6c34')}, '861300750':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861300757':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861300756':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861309024':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861300755':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '861300026':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '772437':{'en': 'Zhosaly'}, '772436':{'en': 'Terenozek'}, '772435':{'en': 'Zhanakorgan'}, '772433':{'en': 'Aralsk'}, '772432':{'en': 'Shiyeli'}, '772431':{'en': 'Zhalagash'}, '772438':{'en': 'Aiteke bi'}, '861304559':{'en': 'Huangshan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u9ec4\u5c71\u5e02')}, '861304558':{'en': 'Xuancheng, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5ba3\u57ce\u5e02')}, '861303059':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861303058':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '55883619':{'en': 'Forquilha - CE', 'pt': 'Forquilha - CE'}, '861303055':{'en': 'Xinyu, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u65b0\u4f59\u5e02')}, '55883617':{'en': 'Tamboril - CE', 'pt': 'Tamboril - CE'}, '55883614':{'en': 'Sobral - CE', 'pt': 'Sobral - CE'}, '861303056':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861303051':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '55883613':{'en': 'Sobral - CE', 'pt': 'Sobral - CE'}, '861303053':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '55883611':{'en': 'Sobral - CE', 'pt': 'Sobral - CE'}, '55962101':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55984009':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55943337':{'en': 'Brejo Grande do Araguaia - PA', 'pt': 'Brejo Grande do Araguaia - PA'}, '55943335':{'en': u('Itinga do Maranh\u00e3o - PA'), 'pt': u('Itinga do Maranh\u00e3o - PA')}, '55943332':{'en': u('S\u00e3o Domingos do Araguaia - PA'), 'pt': u('S\u00e3o Domingos do Araguaia - PA')}, '55943333':{'en': 'Itupiranga - PA', 'pt': 'Itupiranga - PA'}, '55943331':{'en': u('S\u00e3o Geraldo do Araguaia - PA'), 'pt': u('S\u00e3o Geraldo do Araguaia - PA')}, '55984002':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '861308566':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861308560':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861308561':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861308563':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861302092':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302093':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302090':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302091':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861302096':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861302097':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861302094':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '55923030':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302098':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861302099':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861308638':{'en': 'Suining, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u9042\u5b81\u5e02')}, '861308639':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '861309101':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861308630':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861308631':{'en': 'YaAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u96c5\u5b89\u5e02')}, '861308632':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861308633':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861308634':{'en': 'Bazhong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5df4\u4e2d\u5e02')}, '861308635':{'en': 'Garze, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7518\u5b5c\u85cf\u65cf\u81ea\u6cbb\u5dde')}, '861308636':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861308637':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861303488':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861303489':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '861304454':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861304455':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861304456':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '811653':{'en': 'Shibetsu, Hokkaido', 'ja': u('\u58eb\u5225')}, '811652':{'en': 'Shibetsu, Hokkaido', 'ja': u('\u58eb\u5225')}, '811655':{'en': 'Nayoro, Hokkaido', 'ja': u('\u540d\u5bc4')}, '811654':{'en': 'Nayoro, Hokkaido', 'ja': u('\u540d\u5bc4')}, '811656':{'en': 'Bifuka, Hokkaido', 'ja': u('\u7f8e\u6df1')}, '811658':{'en': 'Kamikawa, Hokkaido', 'ja': u('\u4e0a\u5ddd')}, '861309524':{'en': 'Xishuangbanna, Yunnan', 'zh': u('\u4e91\u5357\u7701\u897f\u53cc\u7248\u7eb3\u50a3\u65cf\u81ea\u6cbb\u5dde')}, '861303483':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '55993647':{'en': u('Igarap\u00e9 Grande - MA'), 'pt': u('Igarap\u00e9 Grande - MA')}, '861309103':{'en': 'Shijiazhuang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u77f3\u5bb6\u5e84\u5e02')}, '861304452':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '55993646':{'en': 'Lima Campos - MA', 'pt': 'Lima Campos - MA'}, '861304453':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '55993645':{'en': u('Esperantin\u00f3polis - MA'), 'pt': u('Esperantin\u00f3polis - MA')}, '861305840':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861305841':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861305842':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861305843':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861305844':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861305845':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861305846':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861305847':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861305848':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '55993643':{'en': 'Barra do Corda - MA', 'pt': 'Barra do Corda - MA'}, '861308732':{'en': 'Xiangtan, Hunan', 'zh': u('\u6e56\u5357\u7701\u6e58\u6f6d\u5e02')}, '55983337':{'en': u('Alc\u00e2ntara - MA'), 'pt': u('Alc\u00e2ntara - MA')}, '861306579':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861306578':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861306575':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861306574':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861306577':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861306576':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861306571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861306570':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861306573':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861306572':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '55963217':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963214':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '55963212':{'en': u('Macap\u00e1 - AP'), 'pt': u('Macap\u00e1 - AP')}, '861309107':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '861300933':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '861300932':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '812652':{'en': 'Iida, Nagano', 'ja': u('\u98ef\u7530')}, '861300930':{'en': 'Yingkou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u8425\u53e3\u5e02')}, '861300937':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '812655':{'en': 'Iida, Nagano', 'ja': u('\u98ef\u7530')}, '812656':{'en': 'Ina, Nagano', 'ja': u('\u4f0a\u90a3')}, '861300934':{'en': 'Jinzhou, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u9526\u5dde\u5e02')}, '812658':{'en': 'Ina, Nagano', 'ja': u('\u4f0a\u90a3')}, '812659':{'en': 'Ina, Nagano', 'ja': u('\u4f0a\u90a3')}, '861300939':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861300938':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861309106':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '819688':{'en': 'Tamana, Kumamoto', 'ja': u('\u7389\u540d')}, '819686':{'en': 'Tamana, Kumamoto', 'ja': u('\u7389\u540d')}, '819687':{'en': 'Tamana, Kumamoto', 'ja': u('\u7389\u540d')}, '819684':{'en': 'Yamaga, Kumamoto', 'ja': u('\u5c71\u9e7f')}, '819685':{'en': 'Tamana, Kumamoto', 'ja': u('\u7389\u540d')}, '819682':{'en': 'Yamaga, Kumamoto', 'ja': u('\u5c71\u9e7f')}, '819683':{'en': 'Yamaga, Kumamoto', 'ja': u('\u5c71\u9e7f')}, '6656':{'en': 'Chai Nat/Nakhon Sawan/Phetchabun/Phichit/Uthai Thani', 'th': u('\u0e0a\u0e31\u0e22\u0e19\u0e32\u0e17/\u0e19\u0e04\u0e23\u0e2a\u0e27\u0e23\u0e23\u0e04\u0e4c/\u0e40\u0e1e\u0e0a\u0e23\u0e1a\u0e39\u0e23\u0e13\u0e4c/\u0e1e\u0e34\u0e08\u0e34\u0e15\u0e23/\u0e2d\u0e38\u0e17\u0e31\u0e22\u0e18\u0e32\u0e19\u0e35')}, '6655':{'en': 'Kamphaeng Phet/Phitsanulok/Sukhothai/Tak/Uttaradit', 'th': u('\u0e01\u0e33\u0e41\u0e1e\u0e07\u0e40\u0e1e\u0e0a\u0e23/\u0e1e\u0e34\u0e29\u0e13\u0e38\u0e42\u0e25\u0e01/\u0e2a\u0e38\u0e42\u0e02\u0e17\u0e31\u0e22/\u0e15\u0e32\u0e01/\u0e2d\u0e38\u0e15\u0e23\u0e14\u0e34\u0e15\u0e16\u0e4c')}, '6654':{'en': 'Lampang/Nan/Phayao/Phrae', 'th': u('\u0e25\u0e33\u0e1b\u0e32\u0e07/\u0e19\u0e48\u0e32\u0e19/\u0e1e\u0e30\u0e40\u0e22\u0e32/\u0e41\u0e1e\u0e23\u0e48')}, '6653':{'en': 'Chiang Mai/Chiang Rai/Lamphun/Mae Hong Son', 'th': u('\u0e40\u0e0a\u0e35\u0e22\u0e07\u0e43\u0e2b\u0e21\u0e48/\u0e40\u0e0a\u0e35\u0e22\u0e07\u0e23\u0e32\u0e22/\u0e25\u0e33\u0e1e\u0e39\u0e19/\u0e41\u0e21\u0e48\u0e2e\u0e48\u0e2d\u0e07\u0e2a\u0e2d\u0e19')}, '6652':{'en': 'Chiang Mai/Chiang Rai/Lamphun/Mae Hong Son', 'th': u('\u0e40\u0e0a\u0e35\u0e22\u0e07\u0e43\u0e2b\u0e21\u0e48/\u0e40\u0e0a\u0e35\u0e22\u0e07\u0e23\u0e32\u0e22/\u0e25\u0e33\u0e1e\u0e39\u0e19/\u0e41\u0e21\u0e48\u0e2e\u0e48\u0e2d\u0e07\u0e2a\u0e2d\u0e19')}, '861309282':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '55883429':{'en': 'Alto Santo - CE', 'pt': 'Alto Santo - CE'}, '55883428':{'en': 'Iracema - CE', 'pt': 'Iracema - CE'}, '861308030':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861308031':{'en': 'Taiyuan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u592a\u539f\u5e02')}, '772338':{'en': 'Bozanbai/Molodezhnyi'}, '772339':{'en': 'Kurchum'}, '861308034':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861308035':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '772334':{'en': 'Tavricheskoye'}, '772335':{'en': 'Zyryanovsk'}, '772336':{'en': 'Ridder'}, '772337':{'en': 'Serebryansk'}, '55883425':{'en': 'Ibicuitinga - CE', 'pt': 'Ibicuitinga - CE'}, '772331':{'en': 'Glubokoye'}, '55883427':{'en': 'Boa Viagem - CE', 'pt': 'Boa Viagem - CE'}, '772333':{'en': 'Samarskoye'}, '861303914':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303915':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861303916':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861303917':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861303910':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303911':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303912':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '818798':{'en': 'Tonosho, Kagawa', 'ja': u('\u571f\u5e84')}, '818797':{'en': 'Tonosho, Kagawa', 'ja': u('\u571f\u5e84')}, '818796':{'en': 'Tonosho, Kagawa', 'ja': u('\u571f\u5e84')}, '818795':{'en': '', 'ja': u('\u4e09\u672c\u677e')}, '818794':{'en': '', 'ja': u('\u4e09\u672c\u677e')}, '818793':{'en': '', 'ja': u('\u4e09\u672c\u677e')}, '818792':{'en': '', 'ja': u('\u4e09\u672c\u677e')}, '819742':{'en': 'Mie, Oita', 'ja': u('\u4e09\u91cd')}, '81583':{'en': 'Gifu, Gifu', 'ja': u('\u5c90\u961c')}, '81582':{'en': 'Gifu, Gifu', 'ja': u('\u5c90\u961c')}, '81581':{'en': '', 'ja': u('\u9ad8\u5bcc')}, '81587':{'en': 'Ichinomiya, Aichi', 'ja': u('\u4e00\u5bae')}, '81586':{'en': 'Ichinomiya, Aichi', 'ja': u('\u4e00\u5bae')}, '81585':{'en': 'Ibigawa, Gifu', 'ja': u('\u63d6\u6590\u5ddd')}, '81584':{'en': 'Ogaki, Gifu', 'ja': u('\u5927\u57a3')}, '81235':{'en': 'Tsuruoka, Yamagata', 'ja': u('\u9db4\u5ca1')}, '81234':{'en': 'Sakata, Yamagata', 'ja': u('\u9152\u7530')}, '81236':{'en': 'Yamagata, Yamagata', 'ja': u('\u5c71\u5f62')}, '81233':{'en': 'Shinjo, Yamagata', 'ja': u('\u65b0\u5e84')}, '861300797':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861300796':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861300795':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861300794':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861300793':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861300792':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861300791':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861300790':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '861300069':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861300068':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300799':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861300798':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861304498':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861304499':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861304490':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861304491':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861304492':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '861304493':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861304494':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '861304495':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861304496':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861304497':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '818249':{'en': 'Higashi-ku, Hiroshima', 'ja': u('\u6771\u5e83\u5cf6')}, '818248':{'en': 'Shobara, Hiroshima', 'ja': u('\u5e84\u539f')}, '861309281':{'en': 'Panzhihua, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6500\u679d\u82b1\u5e02')}, '818240':{'en': 'Higashi-ku, Hiroshima', 'ja': u('\u6771\u5e83\u5cf6')}, '818243':{'en': 'Higashi-ku, Hiroshima', 'ja': u('\u6771\u5e83\u5cf6')}, '818242':{'en': 'Higashi-ku, Hiroshima', 'ja': u('\u6771\u5e83\u5cf6')}, '818245':{'en': 'Miyoshi, Hiroshima', 'ja': u('\u4e09\u6b21')}, '818244':{'en': 'Miyoshi, Hiroshima', 'ja': u('\u4e09\u6b21')}, '818247':{'en': 'Shobara, Hiroshima', 'ja': u('\u5e84\u539f')}, '818246':{'en': 'Miyoshi, Hiroshima', 'ja': u('\u4e09\u6b21')}, '86130829':{'en': 'Ningbo, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5b81\u6ce2\u5e02')}, '86130824':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130823':{'en': 'Baoding, Hebei', 'zh': u('\u6cb3\u5317\u7701\u4fdd\u5b9a\u5e02')}, '861309286':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '772842':{'en': 'Kogaly', 'ru': u('\u041a\u0435\u0440\u0431\u0443\u043b\u0430\u043a\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772843':{'en': 'Lepsy', 'ru': u('\u0421\u0430\u0440\u043a\u0430\u043d\u0434\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772840':{'en': 'Saryozek', 'ru': u('\u041a\u0435\u0440\u0431\u0443\u043b\u0430\u043a\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772841':{'en': 'Kapal', 'ru': u('\u0410\u043a\u0441\u0443\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861309287':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861309284':{'en': 'GuangAn, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5b89\u5e02')}, '62768':{'en': 'Tembilahan', 'id': 'Tembilahan'}, '62769':{'en': 'Rengat/Air Molek', 'id': 'Rengat/Air Molek'}, '62764':{'en': 'Siak Sri Indrapura', 'id': 'Siak Sri Indrapura'}, '62765':{'en': 'Dumai/Duri/Bagan Batu/Ujung Tanjung', 'id': 'Dumai/Duri/Bagan Batu/Ujung Tanjung'}, '62766':{'en': 'Bengkalis', 'id': 'Bengkalis'}, '62767':{'en': 'Bagansiapiapi', 'id': 'Bagansiapiapi'}, '62760':{'en': 'Teluk Kuantan', 'id': 'Teluk Kuantan'}, '62761':{'en': 'Pekanbaru', 'id': 'Pekanbaru'}, '62762':{'en': 'Bangkinang/Pasir Pengaraian', 'id': 'Bangkinang/Pasir Pengaraian'}, '62763':{'en': 'Selatpanjang', 'id': 'Selatpanjang'}, '55923622':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923623':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861304261':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '55923621':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923627':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923624':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923625':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '86130776':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '55923629':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '599416':{'en': 'Saba'}, '86130778':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130310':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130311':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861309615':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '818878':{'en': '', 'ja': u('\u5dba\u5317')}, '818879':{'en': 'Muroto, Kochi', 'ja': u('\u5ba4\u6238')}, '86130779':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '818872':{'en': 'Muroto, Kochi', 'ja': u('\u5ba4\u6238')}, '818873':{'en': 'Aki, Kochi', 'ja': u('\u5b89\u82b8')}, '818876':{'en': '', 'ja': u('\u571f\u4f50\u5c71\u7530')}, '818877':{'en': '', 'ja': u('\u5dba\u5317')}, '818874':{'en': 'Aki, Kochi', 'ja': u('\u5b89\u82b8')}, '818875':{'en': '', 'ja': u('\u571f\u4f50\u5c71\u7530')}, '55913276':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913277':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913274':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913275':{'en': 'Ananindeua - PA', 'pt': 'Ananindeua - PA'}, '55913272':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913273':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913271':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '8242':{'ar': u('\u0645\u062f\u064a\u0646\u0629 \u062f\u0627\u064a\u062c\u0648\u0646 \u0627\u0644\u0643\u0628\u0631\u0649'), 'bg': u('\u0422\u0435\u0434\u0436\u044a\u043d'), 'ca': 'Daejeon', 'cs': u('Ted\u017eon'), 'el': u('\u039d\u03c4\u03ad\u03c4\u03b6\u03bf\u03bd'), 'en': 'Daejeon', 'es': 'Daejeon', 'fi': 'Daejeon', 'fr': 'Daejeon', 'hi': u('\u0921\u093e\u090f\u091c\u0947\u0913\u0928'), 'hu': 'Tedzson', 'iw': u('\u05d8\u05d2\'\u05d0\u05df'), 'ja': u('\u5927\u7530\u5e83\u57df\u5e02'), 'ko': u('\ub300\uc804'), 'tr': 'Daejeon', 'zh': u('\u5927\u7530\u5e02'), 'zh_Hant': u('\u5927\u7530\u5ee3')}, '8243':{'ar': u('\u062a\u0634\u0627\u0646\u062c\u062a\u0634\u064a\u0648\u0646\u062c \u062f\u0648'), 'bg': u('\u0427\u0445\u0443\u043d\u0447\u0445\u044a\u043d-\u041f\u0443\u043a\u0442\u043e'), 'ca': 'Chungcheongbuk-do', 'cs': u('Severn\u00ed \u010cchung\u010dchong'), 'en': 'Chungbuk', 'es': 'Chungcheong del Norte', 'fi': 'Pohjois-Chungcheong', 'fr': 'Chungcheong du Nord', 'hi': u('\u091a\u0941\u0902\u0917\u091a\u0947\u0913\u0902\u0917\u0928\u093e\u092e-\u0926\u094b'), 'hu': u('\u00c9szak-Cshungcshong'), 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05e6\u05e4\u05d5\u05df \u05e6\u05b0\'\u05d4\u05d5\u05bc\u200f\u05e0\u05d2\u05e6\u05b0\'\u05d4\u05b7\u200f\u05d0\u200f\u05e0\u05d2'), 'ja': u('\u5fe0\u6e05\u5317\u9053'), 'ko': u('\ucda9\ubd81'), 'tr': 'Kuzey Chungcheong', 'zh': u('\u5fe0\u6df8\u5317\u9053'), 'zh_Hant': u('\u5fe0\u6e05\u5317\u9053')}, '8241':{'ar': u('\u062a\u0634\u0627\u0646\u062c\u062a\u0634\u064a\u0648\u0646\u062c\u0646\u0627\u0645 \u062f\u0648'), 'bg': u('\u0427\u0445\u0443\u043d\u0447\u0445\u044a\u043d-\u041d\u0430\u043c\u0434\u043e'), 'ca': 'Chungcheongnam-do', 'cs': u('Ji\u017en\u00ed \u010cchung\u010dchong'), 'en': 'Chungnam', 'es': 'Chungcheong del Sur', 'fi': u('Etel\u00e4-Chungcheong'), 'fr': 'Chungcheong du Sud', 'hi': u('\u091c\u0947\u0913\u0932\u094d\u0932\u093e\u092c\u0941\u0915-\u0926\u094b'), 'hu': u('D\u00e9l-Cshungcshong'), 'iw': u('\u05de\u05d7\u05d5\u05d6 \u05d3\u05e8\u05d5\u05dd \u05e6\'\u05d4\u05d5\u05e0\u05d2\u05e6\'\u05d4\u05d0\u05e0\u05d2'), 'ja': u('\u5fe0\u6e05\u5357\u9053'), 'ko': u('\ucda9\ub0a8'), 'tr': u('G\u00fcney Chungcheong'), 'zh': u('\u5fe0\u6df8\u5357\u9053'), 'zh_Hant': u('\u5fe0\u6e05\u5357\u9053')}, '8244':{'cs': u('Sed\u017eong'), 'en': 'Sejong City', 'es': 'Ciudad de Sejong', 'fr': 'Sejong (ville)', 'hu': 'Szedzsong', 'ja': u('\u4e16\u5b97\u7279\u5225\u81ea\u6cbb\u5e02'), 'ko': u('\uc138\uc885'), 'tr': 'Sejong', 'zh': u('\u4e16\u5b97\u5e02'), 'zh_Hant': u('\u4e16\u5b97\u5e02')}, '55913279':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '771345':{'en': 'Karauylkeldy'}, '771346':{'en': 'Shubarkuduk'}, '771341':{'en': 'Khobda'}, '771342':{'en': 'Badamsha'}, '771343':{'en': 'Irgiz'}, '861308799':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861308798':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861308797':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861308796':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861308795':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861308794':{'en': 'Wuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u68a7\u5dde\u5e02')}, '861308793':{'en': 'Guilin, Guangxi', 'zh': u('\u5e7f\u897f\u6842\u6797\u5e02')}, '861308792':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861308791':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861308790':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '8426':{'en': 'Cao Bang province', 'vi': u('Cao B\u1eb1ng')}, '8427':{'en': 'Tuyen Quang province', 'vi': u('Tuy\u00ean Quang')}, '861306960':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '8425':{'en': 'Lang Son province', 'vi': u('L\u1ea1ng S\u01a1n')}, '8422':{'en': 'Son La province', 'vi': u('S\u01a1n La')}, '861306967':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '8420':{'en': 'Lao Cai province', 'vi': u('L\u00e0o Cai')}, '861303670':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '55913184':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '861306968':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861306969':{'en': 'Daqing, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u5927\u5e86\u5e02')}, '55913181':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913182':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '8429':{'en': 'Yen Bai province', 'vi': u('Y\u00ean B\u00e1i')}, '86130636':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '62432':{'en': 'Tahuna', 'id': 'Tahuna'}, '861309362':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861306912':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308865':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308864':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861308867':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308866':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308861':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861308860':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861308863':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861308862':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '5718445':{'en': 'Villeta', 'es': 'Villeta'}, '861309365':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861308869':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861308868':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861306914':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861303270':{'en': 'Yichang, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b9c\u660c\u5e02')}, '861309364':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '812793':{'en': 'Shibukawa, Gunma', 'ja': u('\u6e0b\u5ddd')}, '812792':{'en': 'Shibukawa, Gunma', 'ja': u('\u6e0b\u5ddd')}, '812795':{'en': 'Shibukawa, Gunma', 'ja': u('\u6e0b\u5ddd')}, '812794':{'en': 'Shibukawa, Gunma', 'ja': u('\u6e0b\u5ddd')}, '812797':{'en': 'Shibukawa, Gunma', 'ja': u('\u6e0b\u5ddd')}, '812796':{'en': 'Shibukawa, Gunma', 'ja': u('\u6e0b\u5ddd')}, '812799':{'en': 'Naganohara, Gunma', 'ja': u('\u9577\u91ce\u539f')}, '812798':{'en': 'Naganohara, Gunma', 'ja': u('\u9577\u91ce\u539f')}, '818498':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '818499':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '818494':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '818495':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '818496':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '818497':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '818490':{'en': 'Onomichi, Hiroshima', 'ja': u('\u5c3e\u9053')}, '818491':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '818492':{'en': 'Fukuyama, Hiroshima', 'ja': u('\u798f\u5c71')}, '861309366':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861308735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861301813':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '64698':{'en': 'Gisborne'}, '64696':{'en': 'Wanganui/New Plymouth'}, '64697':{'en': 'Napier'}, '64694':{'en': 'Masterton/Levin'}, '64695':{'en': 'Palmerston North/New Plymouth'}, '64341':{'en': 'Balclutha/Milton'}, '64343':{'en': 'Oamaru/Mount Cook/Twizel/Kurow'}, '64344':{'en': 'Queenstown/Cromwell/Alexandra/Wanaka/Ranfurly/Roxburgh'}, '64345':{'en': 'Dunedin/Queenstown'}, '64346':{'en': 'Dunedin/Palmerston'}, '64347':{'en': 'Dunedin'}, '64348':{'en': 'Dunedin/Lawrence/Mosgiel'}, '861308720':{'en': 'Huaihua, Hunan', 'zh': u('\u6e56\u5357\u7701\u6000\u5316\u5e02')}, '55993632':{'en': 'Lago dos Rodrigues - MA', 'pt': 'Lago dos Rodrigues - MA'}, '55953625':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '55953624':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '55873859':{'en': 'Santa Terezinha - PE', 'pt': 'Santa Terezinha - PE'}, '55873858':{'en': 'Pedra - PE', 'pt': 'Pedra - PE'}, '55953621':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '55953623':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '861305311':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '55873853':{'en': 'Itapetim - PE', 'pt': 'Itapetim - PE'}, '55873852':{'en': u('Bet\u00e2nia - PE'), 'pt': u('Bet\u00e2nia - PE')}, '55873851':{'en': u('Petrol\u00e2ndia - PE'), 'pt': u('Petrol\u00e2ndia - PE')}, '55873850':{'en': 'Brejinho - PE', 'pt': 'Brejinho - PE'}, '55873857':{'en': 'Flores - PE', 'pt': 'Flores - PE'}, '55873856':{'en': 'Tupanatinga - PE', 'pt': 'Tupanatinga - PE'}, '55873855':{'en': u('Bu\u00edque - PE'), 'pt': u('Bu\u00edque - PE')}, '55873854':{'en': u('Carna\u00edba - PE'), 'pt': u('Carna\u00edba - PE')}, '861304799':{'en': 'Pingxiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u840d\u4e61\u5e02')}, '861304798':{'en': 'Jingdezhen, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u666f\u5fb7\u9547\u5e02')}, '861304793':{'en': 'Shangrao, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e0a\u9976\u5e02')}, '861304792':{'en': 'Jiujiang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u4e5d\u6c5f\u5e02')}, '62457':{'en': 'Donggala', 'id': 'Donggala'}, '55993633':{'en': u('Lagoa Grande do Maranh\u00e3o - MA'), 'pt': u('Lagoa Grande do Maranh\u00e3o - MA')}, '861304797':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861304796':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861304795':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861304794':{'en': 'Fuzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u629a\u5dde\u5e02')}, '86130128':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861305316':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '86130123':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130122':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130124':{'en': 'Qingdao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u9752\u5c9b\u5e02')}, '7351':{'en': 'Chelyabinsk'}, '7353':{'en': 'Orenburg'}, '861300479':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861300472':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300473':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300470':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300471':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300476':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861300477':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861300474':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300475':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '811943':{'en': 'Iwaizumi, Iwate', 'ja': u('\u5ca9\u6cc9')}, '861308269':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861308268':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861308267':{'en': 'Weihai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5a01\u6d77\u5e02')}, '861308266':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861308265':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861308264':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861308263':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861308262':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861308261':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861308260':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '55883674':{'en': u('Acara\u00fa - CE'), 'pt': u('Acara\u00fa - CE')}, '55883675':{'en': u('Independ\u00eancia - CE'), 'pt': u('Independ\u00eancia - CE')}, '861303071':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '55883677':{'en': 'Sobral - CE', 'pt': 'Sobral - CE'}, '62975':{'en': 'Tanahmerah', 'id': 'Tanahmerah'}, '55883671':{'en': u('Tiangu\u00e1 - CE'), 'pt': u('Tiangu\u00e1 - CE')}, '55883672':{'en': 'Nova Russas - CE', 'pt': 'Nova Russas - CE'}, '55883673':{'en': 'Itapipoca - CE', 'pt': 'Itapipoca - CE'}, '861304577':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861304576':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861303079':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861303078':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861304573':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861304572':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861304571':{'en': 'Hangzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u676d\u5dde\u5e02')}, '861304570':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861302302':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '861302303':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861302300':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861302301':{'en': 'Bengbu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u868c\u57e0\u5e02')}, '55943358':{'en': u('Cana\u00e3 dos Caraj\u00e1s - PA'), 'pt': u('Cana\u00e3 dos Caraj\u00e1s - PA')}, '861302307':{'en': 'Huainan, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u6dee\u5357\u5e02')}, '861302304':{'en': 'Wuhu, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u829c\u6e56\u5e02')}, '861302305':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '55943355':{'en': u('Marab\u00e1 - PA'), 'pt': u('Marab\u00e1 - PA')}, '55943356':{'en': 'Parauapebas - PA', 'pt': 'Parauapebas - PA'}, '861302309':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '55943351':{'en': u('Palestina do Par\u00e1 - PA'), 'pt': u('Palestina do Par\u00e1 - PA')}, '55943352':{'en': 'Parauapebas - PA', 'pt': 'Parauapebas - PA'}, '55943353':{'en': 'Vila Cruzeiro do Sul - PA', 'pt': 'Vila Cruzeiro do Sul - PA'}, '861304376':{'en': 'Xinyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u4fe1\u9633\u5e02')}, '55953084':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '55953086':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '861304371':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '861303410':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '861304373':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '861304372':{'en': 'Anyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5b89\u9633\u5e02')}, '814793':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '814792':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '814797':{'en': 'Yokaichiba, Chiba', 'ja': u('\u516b\u65e5\u5e02\u5834')}, '814796':{'en': 'Yokaichiba, Chiba', 'ja': u('\u516b\u65e5\u5e02\u5834')}, '814794':{'en': 'Choshi, Chiba', 'ja': u('\u929a\u5b50')}, '861303419':{'en': 'Qingyang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e86\u9633\u5e02')}, '814798':{'en': 'Yokaichiba, Chiba', 'ja': u('\u516b\u65e5\u5e02\u5834')}, '861303418':{'en': 'Pingliang, Gansu', 'zh': u('\u7518\u8083\u7701\u5e73\u51c9\u5e02')}, '861308658':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861308659':{'en': 'Luzhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u6cf8\u5dde\u5e02')}, '861308656':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861308657':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861308654':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861308655':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '861308652':{'en': 'Neijiang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5185\u6c5f\u5e02')}, '861308653':{'en': 'Aba, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u963f\u575d\u85cf\u65cf\u7f8c\u65cf\u81ea\u6cbb\u5dde')}, '861308650':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861308651':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '55983488':{'en': u('Santana do Maranh\u00e3o - MA'), 'pt': u('Santana do Maranh\u00e3o - MA')}, '55983481':{'en': 'Anapurus - MA', 'pt': 'Anapurus - MA'}, '55983482':{'en': 'Buriti - MA', 'pt': 'Buriti - MA'}, '55983483':{'en': u('Magalh\u00e3es de Almeida - MA'), 'pt': u('Magalh\u00e3es de Almeida - MA')}, '55983484':{'en': 'Afonso Cunha - MA', 'pt': 'Afonso Cunha - MA'}, '55983485':{'en': u('\u00c1gua Doce do Maranh\u00e3o - MA'), 'pt': u('\u00c1gua Doce do Maranh\u00e3o - MA')}, '55983487':{'en': 'Paulino Neves - MA', 'pt': 'Paulino Neves - MA'}, '861306644':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861305826':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861305827':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861305824':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861305825':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861305822':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861305823':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861305820':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861305821':{'en': 'Shaoguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u97f6\u5173\u5e02')}, '861305828':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861305829':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '55983228':{'en': u('S\u00e3o Lu\u00eds - MA'), 'pt': u('S\u00e3o Lu\u00eds - MA')}, '55923019':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923018':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923542':{'en': u('Mau\u00e9s - AM'), 'pt': u('Mau\u00e9s - AM')}, '55923016':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923545':{'en': 'Boa Vista do Ramos - AM', 'pt': 'Boa Vista do Ramos - AM'}, '55923012':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861304264':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861306221':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861306220':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861306223':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861306222':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861306225':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861306224':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861306227':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861306226':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861306229':{'en': 'Putian, Fujian', 'zh': u('\u798f\u5efa\u7701\u8386\u7530\u5e02')}, '55963234':{'en': 'Porto Grande - AP', 'pt': 'Porto Grande - AP'}, '861309659':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309658':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '86130250':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861309651':{'en': 'Yuncheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u8fd0\u57ce\u5e02')}, '861309650':{'en': 'Yangquan, Shanxi', 'zh': u('\u5c71\u897f\u7701\u9633\u6cc9\u5e02')}, '861309653':{'en': 'Jinzhong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u4e2d\u5e02')}, '861309652':{'en': 'Linfen, Shanxi', 'zh': u('\u5c71\u897f\u7701\u4e34\u6c7e\u5e02')}, '861309655':{'en': 'Jincheng, Shanxi', 'zh': u('\u5c71\u897f\u7701\u664b\u57ce\u5e02')}, '861309654':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '861309657':{'en': 'Xinzhou, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5ffb\u5dde\u5e02')}, '861309656':{'en': 'Changzhi, Shanxi', 'zh': u('\u5c71\u897f\u7701\u957f\u6cbb\u5e02')}, '6675':{'en': 'Krabi/Nakhon Si Thammarat/Trang', 'th': u('\u0e01\u0e23\u0e30\u0e1a\u0e35\u0e48/\u0e19\u0e04\u0e23\u0e28\u0e23\u0e35\u0e18\u0e23\u0e23\u0e21\u0e23\u0e32\u0e0a/\u0e15\u0e23\u0e31\u0e07')}, '6674':{'en': 'Phatthalung/Satun/Songkhla', 'th': u('\u0e1e\u0e31\u0e17\u0e25\u0e38\u0e07/\u0e2a\u0e15\u0e39\u0e25/\u0e2a\u0e07\u0e02\u0e25\u0e32')}, '6677':{'en': 'Chumphon/Ranong/Surat Thani', 'th': u('\u0e0a\u0e38\u0e21\u0e1e\u0e23/\u0e23\u0e30\u0e19\u0e2d\u0e07/\u0e2a\u0e38\u0e23\u0e32\u0e29\u0e0e\u0e23\u0e4c\u0e18\u0e32\u0e19\u0e35')}, '6676':{'en': 'Phang Nga/Phuket', 'th': u('\u0e1e\u0e31\u0e07\u0e07\u0e32/\u0e20\u0e39\u0e40\u0e01\u0e47\u0e15')}, '6673':{'en': 'Narathiwat/Pattani/Yala', 'th': u('\u0e19\u0e23\u0e32\u0e18\u0e34\u0e27\u0e32\u0e2a/\u0e1b\u0e31\u0e15\u0e15\u0e32\u0e19\u0e35/\u0e22\u0e30\u0e25\u0e32')}, '55993072':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55993073':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55993075':{'en': 'Imperatriz - MA', 'pt': 'Imperatriz - MA'}, '55993078':{'en': 'Caxias - MA', 'pt': 'Caxias - MA'}, '861306522':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861301790':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861301791':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861301020':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861301793':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861301794':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861301027':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861301024':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861301797':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861301798':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861301799':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861300267':{'en': 'Lishui, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u4e3d\u6c34\u5e02')}, '861300266':{'en': 'Taizhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u53f0\u5dde\u5e02')}, '861300265':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861300264':{'en': 'Quzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u8862\u5dde\u5e02')}, '861300263':{'en': 'Shaoxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u7ecd\u5174\u5e02')}, '861300262':{'en': 'Zhoushan, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u821f\u5c71\u5e02')}, '861300261':{'en': 'Huzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e56\u5dde\u5e02')}, '861300260':{'en': 'Jiaxing, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u5609\u5174\u5e02')}, '861308010':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861308011':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861308012':{'en': 'Puyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6fee\u9633\u5e02')}, '861308013':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861308014':{'en': 'Luohe, Henan', 'zh': u('\u6cb3\u5357\u7701\u6f2f\u6cb3\u5e02')}, '861306523':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861300269':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '861300268':{'en': 'Wenzhou, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u6e29\u5dde\u5e02')}, '55913456':{'en': 'Benfica - PA', 'pt': 'Benfica - PA'}, '55883449':{'en': 'Senador Pompeu - CE', 'pt': 'Senador Pompeu - CE'}, '55883448':{'en': 'Parambu - CE', 'pt': 'Parambu - CE'}, '55883447':{'en': 'Limoeiro do Norte - CE', 'pt': 'Limoeiro do Norte - CE'}, '55883446':{'en': 'Aracati - CE', 'pt': 'Aracati - CE'}, '55883444':{'en': 'Quixeramobim - CE', 'pt': 'Quixeramobim - CE'}, '55883443':{'en': u('Quixer\u00e9 - CE'), 'pt': u('Quixer\u00e9 - CE')}, '55883442':{'en': 'Madalena - CE', 'pt': 'Madalena - CE'}, '55883441':{'en': 'Quixeramobim - CE', 'pt': 'Quixeramobim - CE'}, '861306520':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '817914':{'en': 'Aioi, Hyogo', 'ja': u('\u76f8\u751f')}, '817915':{'en': 'Aioi, Hyogo', 'ja': u('\u76f8\u751f')}, '817916':{'en': '', 'ja': u('\u7adc\u91ce')}, '817917':{'en': '', 'ja': u('\u7adc\u91ce')}, '817912':{'en': 'Aioi, Hyogo', 'ja': u('\u76f8\u751f')}, '861306521':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '818263':{'en': 'Kake, Hiroshima', 'ja': u('\u52a0\u8a08')}, '818262':{'en': 'Kake, Hiroshima', 'ja': u('\u52a0\u8a08')}, '818267':{'en': '', 'ja': u('\u5343\u4ee3\u7530')}, '818266':{'en': '', 'ja': u('\u5343\u4ee3\u7530')}, '818265':{'en': '', 'ja': u('\u5b89\u82b8\u5409\u7530')}, '818264':{'en': '', 'ja': u('\u5b89\u82b8\u5409\u7530')}, '818268':{'en': '', 'ja': u('\u5343\u4ee3\u7530')}, '861303098':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '86130806':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '86130807':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '86130808':{'en': 'Shenyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u6c88\u9633\u5e02')}, '861306527':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861303796':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861303797':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '861303794':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861303795':{'en': 'Guyuan, Ningxia', 'zh': u('\u5b81\u590f\u56fa\u539f\u5e02')}, '861303792':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '861303793':{'en': 'Wuzhong, Ningxia', 'zh': u('\u5b81\u590f\u5434\u5fe0\u5e02')}, '62568':{'en': 'Nanga Pinoh', 'id': 'Nanga Pinoh'}, '861303791':{'en': 'Shizuishan, Ningxia', 'zh': u('\u5b81\u590f\u77f3\u5634\u5c71\u5e02')}, '62567':{'en': 'Putussibau', 'id': 'Putussibau'}, '62564':{'en': 'Sanggau', 'id': 'Sanggau'}, '62565':{'en': 'Sintang', 'id': 'Sintang'}, '62562':{'en': 'Singkawang/Sambas/Bengkayang', 'id': 'Singkawang/Sambas/Bengkayang'}, '62563':{'en': 'Ngabang', 'id': 'Ngabang'}, '861303798':{'en': 'Yinchuan, Ningxia', 'zh': u('\u5b81\u590f\u94f6\u5ddd\u5e02')}, '62561':{'en': 'Pontianak/Mempawah', 'id': 'Pontianak/Mempawah'}, '55983673':{'en': 'Brejo de Areia - MA', 'pt': 'Brejo de Areia - MA'}, '55983672':{'en': 'Bom Jardim - MA', 'pt': 'Bom Jardim - MA'}, '86130547':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '55983678':{'en': 'Pindare Mirim - MA', 'pt': 'Pindare Mirim - MA'}, '86130546':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861300049':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861300048':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '86130545':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861300043':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300042':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300041':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300040':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300047':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861300046':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861300045':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861300044':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861303538':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303539':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303532':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861303533':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861303530':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861303531':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '861303536':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303537':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303534':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861303535':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '599750':{'en': 'Bonaire'}, '62702':{'en': 'Tebing Tinggi', 'id': 'Tebing Tinggi'}, '861303929':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '62484':{'en': 'Watansoppeng', 'id': 'Watansoppeng'}, '86130375':{'en': 'Shangqiu, Henan', 'zh': u('\u6cb3\u5357\u7701\u5546\u4e18\u5e02')}, '86130376':{'en': 'Nanyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u5357\u9633\u5e02')}, '57827':{'en': 'Ibague', 'es': 'Ibague'}, '57826':{'en': 'Ibague', 'es': 'Ibague'}, '861303928':{'en': 'Liaoyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u8fbd\u6e90\u5e02')}, '86130378':{'en': 'Guiyang, Guizhou', 'zh': u('\u8d35\u5dde\u7701\u8d35\u9633\u5e02')}, '861303810':{'en': 'Zigong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u81ea\u8d21\u5e02')}, '861304748':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '55913218':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '8128798':{'en': 'Otawara, Tochigi', 'ja': u('\u5927\u7530\u539f')}, '8128799':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128796':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128797':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128794':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128795':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128792':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128793':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128790':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '8128791':{'en': 'Nasukarasuyama, Tochigi', 'ja': u('\u70cf\u5c71')}, '861308185':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '86130490':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861308182':{'en': 'Zhangjiakou, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5f20\u5bb6\u53e3\u5e02')}, '861303813':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '55913817':{'en': u('Nova Esperan\u00e7a do Piri\u00e1 - PA'), 'pt': u('Nova Esperan\u00e7a do Piri\u00e1 - PA')}, '861308181':{'en': 'Hengshui, Hebei', 'zh': u('\u6cb3\u5317\u7701\u8861\u6c34\u5e02')}, '8126178':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126179':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '55873272':{'en': 'Parnamirim - RN', 'pt': 'Parnamirim - RN'}, '8126170':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126171':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126172':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126173':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126174':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126175':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126176':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '8126177':{'en': '', 'ja': u('\u9577\u91ce')}, '8124190':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '8124191':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '8124192':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '8124193':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '8124194':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '8124195':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '8124196':{'en': 'Yanaizu, Fukushima', 'ja': u('\u67f3\u6d25')}, '8124197':{'en': 'Yanaizu, Fukushima', 'ja': u('\u67f3\u6d25')}, '8124198':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '8124199':{'en': 'Tajima, Fukushima', 'ja': u('\u7530\u5cf6')}, '5749092':{'en': u('Medell\u00edn'), 'es': u('Medell\u00edn')}, '861308188':{'en': 'Qinhuangdao, Hebei', 'zh': u('\u6cb3\u5317\u7701\u79e6\u7687\u5c9b\u5e02')}, '861303815':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861308189':{'en': 'Chengde, Hebei', 'zh': u('\u6cb3\u5317\u7701\u627f\u5fb7\u5e02')}, '861300060':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861308848':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861308843':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308842':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308841':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308840':{'en': 'Chifeng, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u8d64\u5cf0\u5e02')}, '861308847':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861308846':{'en': 'Bayannur, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5df4\u5f66\u6dd6\u5c14\u5e02')}, '861308845':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '861308844':{'en': 'Baotou, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u5305\u5934\u5e02')}, '815363':{'en': 'Shinshiro, Aichi', 'ja': u('\u65b0\u57ce')}, '815362':{'en': 'Shinshiro, Aichi', 'ja': u('\u65b0\u57ce')}, '815367':{'en': 'Shitara, Aichi', 'ja': u('\u8a2d\u697d')}, '815366':{'en': 'Shitara, Aichi', 'ja': u('\u8a2d\u697d')}, '815368':{'en': 'Shitara, Aichi', 'ja': u('\u8a2d\u697d')}, '819725':{'en': 'Saiki, Oita', 'ja': u('\u4f50\u4f2f')}, '819724':{'en': 'Saiki, Oita', 'ja': u('\u4f50\u4f2f')}, '819727':{'en': 'Usuki, Oita', 'ja': u('\u81fc\u6775')}, '819726':{'en': 'Usuki, Oita', 'ja': u('\u81fc\u6775')}, '819723':{'en': 'Saiki, Oita', 'ja': u('\u4f50\u4f2f')}, '819722':{'en': 'Saiki, Oita', 'ja': u('\u4f50\u4f2f')}, '819728':{'en': 'Usuki, Oita', 'ja': u('\u81fc\u6775')}, '861304829':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861301493':{'en': 'Liuzhou, Guangxi', 'zh': u('\u5e7f\u897f\u67f3\u5dde\u5e02')}, '861301492':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861301491':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861301490':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '811534':{'en': 'Nakashibetsu, Hokkaido', 'ja': u('\u4e2d\u6a19\u6d25')}, '861301496':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861301495':{'en': 'Yulin, Guangxi', 'zh': u('\u5e7f\u897f\u7389\u6797\u5e02')}, '861301494':{'en': 'Hezhou, Guangxi', 'zh': u('\u5e7f\u897f\u8d3a\u5dde\u5e02')}, '811538':{'en': '', 'ja': u('\u6839\u5ba4\u6a19\u6d25')}, '811539':{'en': '', 'ja': u('\u6839\u5ba4\u6a19\u6d25')}, '861301499':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861301498':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861309771':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '861303816':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '86130796':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861305439':{'en': 'Suihua, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7ee5\u5316\u5e02')}, '861303329':{'en': 'JiAn, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5409\u5b89\u5e02')}, '861305438':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '861303328':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '815985':{'en': 'Matsusaka, Mie', 'ja': u('\u677e\u962a')}, '815984':{'en': 'Matsusaka, Mie', 'ja': u('\u677e\u962a')}, '815987':{'en': '', 'ja': u('\u4e09\u702c\u8c37')}, '815986':{'en': 'Matsusaka, Mie', 'ja': u('\u677e\u962a')}, '815983':{'en': 'Matsusaka, Mie', 'ja': u('\u677e\u962a')}, '815982':{'en': 'Matsusaka, Mie', 'ja': u('\u677e\u962a')}, '861303323':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '815988':{'en': '', 'ja': u('\u4e09\u702c\u8c37')}, '861303322':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861300151':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861306058':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861306059':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861300150':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861306052':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861306053':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861306050':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861306051':{'en': 'Shanwei, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5c3e\u5e02')}, '861306056':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861300153':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861306054':{'en': 'Chaozhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6f6e\u5dde\u5e02')}, '861306055':{'en': 'Jieyang, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u63ed\u9633\u5e02')}, '861300152':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861306524':{'en': 'Tieling, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u94c1\u5cad\u5e02')}, '861300155':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861306525':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861300154':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861300157':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861300156':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '55873871':{'en': 'Salgueiro - PE', 'pt': 'Salgueiro - PE'}, '55873870':{'en': 'Trindade - PE', 'pt': 'Trindade - PE'}, '55873873':{'en': 'Araripina - PE', 'pt': 'Araripina - PE'}, '55873872':{'en': 'Araripina - PE', 'pt': 'Araripina - PE'}, '55873875':{'en': u('Cabrob\u00f3 - PE'), 'pt': u('Cabrob\u00f3 - PE')}, '55873874':{'en': 'Ouricuri - PE', 'pt': 'Ouricuri - PE'}, '55873877':{'en': 'Floresta - PE', 'pt': 'Floresta - PE'}, '55873876':{'en': u('Bel\u00e9m de S\u00e3o Francisco - PE'), 'pt': u('Bel\u00e9m de S\u00e3o Francisco - PE')}, '55873879':{'en': 'Exu - PE', 'pt': 'Exu - PE'}, '55873878':{'en': u('Bodoc\u00f3 - PE'), 'pt': u('Bodoc\u00f3 - PE')}, '86130147':{'en': 'Luoyang, Henan', 'zh': u('\u6cb3\u5357\u7701\u6d1b\u9633\u5e02')}, '86130146':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '86130145':{'en': 'Zhengzhou, Henan', 'zh': u('\u6cb3\u5357\u7701\u90d1\u5dde\u5e02')}, '55993569':{'en': 'Senador Alexandre Costa - MA', 'pt': 'Senador Alexandre Costa - MA'}, '861308205':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '861308204':{'en': 'Langfang, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5eca\u574a\u5e02')}, '55883658':{'en': 'Poranga - CE', 'pt': 'Poranga - CE'}, '55883659':{'en': u('Croat\u00e1 - CE'), 'pt': u('Croat\u00e1 - CE')}, '861308201':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861308200':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861308203':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '861308202':{'en': 'Xingtai, Hebei', 'zh': u('\u6cb3\u5317\u7701\u90a2\u53f0\u5e02')}, '55883652':{'en': 'Guaraciaba do Norte - CE', 'pt': 'Guaraciaba do Norte - CE'}, '55883653':{'en': 'Ibiapina - CE', 'pt': 'Ibiapina - CE'}, '55883650':{'en': 'Carnaubal - CE', 'pt': 'Carnaubal - CE'}, '55883656':{'en': u('Gra\u00e7a - CE'), 'pt': u('Gra\u00e7a - CE')}, '55883657':{'en': u('Quiterian\u00f3polis - CE'), 'pt': u('Quiterian\u00f3polis - CE')}, '55883654':{'en': 'Mucambo - CE', 'pt': 'Mucambo - CE'}, '55883655':{'en': 'Frecheirinha - CE', 'pt': 'Frecheirinha - CE'}, '55993531':{'en': 'Estreito - MA', 'pt': 'Estreito - MA'}, '861304524':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '55993533':{'en': 'Buritirana - MA', 'pt': 'Buritirana - MA'}, '55993535':{'en': u('Pequi\u00e1 - MA'), 'pt': u('Pequi\u00e1 - MA')}, '55993534':{'en': u('Davin\u00f3polis - MA'), 'pt': u('Davin\u00f3polis - MA')}, '55993537':{'en': 'Senador La Roque - MA', 'pt': 'Senador La Roque - MA'}, '55993536':{'en': u('Governador Edison Lob\u00e3o - MA'), 'pt': u('Governador Edison Lob\u00e3o - MA')}, '62957':{'en': 'Kaimana', 'id': 'Kaimana'}, '62956':{'en': 'Fakfak', 'id': 'Fakfak'}, '62955':{'en': 'Bintuni', 'id': 'Bintuni'}, '62952':{'en': 'Teminabuan', 'id': 'Teminabuan'}, '62951':{'en': 'Sorong', 'id': 'Sorong'}, '861304527':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861304520':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '55973412':{'en': 'Tabatinga - AM', 'pt': 'Tabatinga - AM'}, '55943379':{'en': u('S\u00e3o Jo\u00e3o do Araguaia - PA'), 'pt': u('S\u00e3o Jo\u00e3o do Araguaia - PA')}, '55973415':{'en': 'Benjamin Constant - AM', 'pt': 'Benjamin Constant - AM'}, '55973417':{'en': 'Atalaia do Norte - AM', 'pt': 'Atalaia do Norte - AM'}, '5718451':{'en': 'Nocaima', 'es': 'Nocaima'}, '5718450':{'en': 'San Antonio de Tequendama', 'es': 'San Antonio de Tequendama'}, '861304522':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '861304523':{'en': 'Qiqihar, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9f50\u9f50\u54c8\u5c14\u5e02')}, '814775':{'en': 'Funabashi, Chiba', 'ja': u('\u8239\u6a4b')}, '814777':{'en': 'Funabashi, Chiba', 'ja': u('\u8239\u6a4b')}, '814776':{'en': 'Funabashi, Chiba', 'ja': u('\u8239\u6a4b')}, '814771':{'en': 'Ichikawa, Chiba', 'ja': u('\u5e02\u5ddd')}, '814770':{'en': 'Ichikawa, Chiba', 'ja': u('\u5e02\u5ddd')}, '814772':{'en': 'Ichikawa, Chiba', 'ja': u('\u5e02\u5ddd')}, '58255':{'en': 'Portuguesa', 'es': 'Portuguesa'}, '58254':{'en': 'Yaracuy', 'es': 'Yaracuy'}, '58257':{'en': 'Portuguesa', 'es': 'Portuguesa'}, '58256':{'en': 'Portuguesa', 'es': 'Portuguesa'}, '58251':{'en': 'Lara/Yaracuy', 'es': 'Lara/Yaracuy'}, '861308671':{'en': 'Nanning, Guangxi', 'zh': u('\u5e7f\u897f\u5357\u5b81\u5e02')}, '58253':{'en': 'Lara/Yaracuy', 'es': 'Lara/Yaracuy'}, '58252':{'en': 'Lara', 'es': 'Lara'}, '58259':{'en': u('Falc\u00f3n'), 'es': u('Falc\u00f3n')}, '58258':{'en': 'Cojedes', 'es': 'Cojedes'}, '861303576':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861303577':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '55873883':{'en': 'Parnamirim - PE', 'pt': 'Parnamirim - PE'}, '861303518':{'en': 'Xiaogan, Hubei', 'zh': u('\u6e56\u5317\u7701\u5b5d\u611f\u5e02')}, '861303578':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861303579':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '812614':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '812615':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '812616':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '812612':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '812613':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '812618':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '812619':{'en': 'Omachi, Nagano', 'ja': u('\u5927\u753a')}, '55893495':{'en': 'Queimada Nova - PI', 'pt': 'Queimada Nova - PI'}, '55893494':{'en': 'Paes Landim - PI', 'pt': 'Paes Landim - PI'}, '55893497':{'en': u('Bet\u00e2nia do Piau\u00ed - PI'), 'pt': u('Bet\u00e2nia do Piau\u00ed - PI')}, '55893496':{'en': u('S\u00e3o Francisco de Assis do Piau\u00ed - PI'), 'pt': u('S\u00e3o Francisco de Assis do Piau\u00ed - PI')}, '55893493':{'en': u('Acau\u00e3 - PI'), 'pt': u('Acau\u00e3 - PI')}, '55893492':{'en': 'Campo Alegre do Fidalgo - PI', 'pt': 'Campo Alegre do Fidalgo - PI'}, '55893499':{'en': u('Bela Vista do Piau\u00ed - PI'), 'pt': u('Bela Vista do Piau\u00ed - PI')}, '55893498':{'en': u('Lagoa do Barro do Piau\u00ed - PI'), 'pt': u('Lagoa do Barro do Piau\u00ed - PI')}, '7413':{'en': 'Magadan'}, '7411':{'en': 'Republic of Sakha'}, '7416':{'en': 'Amur Region'}, '7415':{'en': 'Kamchatka Region'}, '861301008':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301009':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301000':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '861301006':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '861301007':{'en': 'Beijing', 'zh': u('\u5317\u4eac\u5e02')}, '55933603':{'en': u('Par\u00e1'), 'pt': u('Par\u00e1')}, '861309248':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861309249':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861309246':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '815978':{'en': 'Kumano, Mie', 'ja': u('\u718a\u91ce')}, '861309244':{'en': 'Taizhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6cf0\u5dde\u5e02')}, '861309245':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861309242':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861309243':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861309240':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '815979':{'en': 'Kumano, Mie', 'ja': u('\u718a\u91ce')}, '81270':{'en': 'Isesaki, Gunma', 'ja': u('\u4f0a\u52e2\u5d0e')}, '81273':{'en': 'Takasaki, Gunma', 'ja': u('\u9ad8\u5d0e')}, '81272':{'en': 'Maebashi, Gunma', 'ja': u('\u524d\u6a4b')}, '861301268':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861301269':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '81277':{'en': 'Kiryu, Gunma', 'ja': u('\u6850\u751f')}, '81276':{'en': 'Ota, Gunma', 'ja': u('\u592a\u7530')}, '861301264':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861301265':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861301266':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861301267':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861301260':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861301261':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861301262':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861301263':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '815758':{'en': '', 'ja': u('\u90e1\u4e0a\u516b\u5e61')}, '861305519':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '772534':{'en': 'Zhetysai'}, '62545':{'en': 'Melak', 'id': 'Melak'}, '62541':{'en': 'Samarinda/Tenggarong', 'id': 'Samarinda/Tenggarong'}, '62542':{'en': 'Balikpapan', 'id': 'Balikpapan'}, '62543':{'en': 'Tanah Grogot', 'id': 'Tanah Grogot'}, '62548':{'en': 'Bontang', 'id': 'Bontang'}, '62549':{'en': 'Sangatta', 'id': 'Sangatta'}, '55983658':{'en': u('Alto Alegre do Pindar\u00e9 - MA'), 'pt': u('Alto Alegre do Pindar\u00e9 - MA')}, '861301918':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '81896':{'en': 'Iyomishima, Ehime', 'ja': u('\u4f0a\u4e88\u4e09\u5cf6')}, '81893':{'en': 'Ozu, Ehime', 'ja': u('\u5927\u6d32')}, '81892':{'en': 'Kumakogen, Ehime', 'ja': u('\u4e45\u4e07')}, '55983651':{'en': u('Araguan\u00e3 - MA'), 'pt': u('Araguan\u00e3 - MA')}, '861301913':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861301910':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861301911':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '81899':{'en': 'Matsuyama, Ehime', 'ja': u('\u677e\u5c71')}, '81898':{'en': 'Imabari, Ehime', 'ja': u('\u4eca\u6cbb')}, '861301914':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '55983656':{'en': 'Governador Newton Bello - MA', 'pt': 'Governador Newton Bello - MA'}, '861305581':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305580':{'en': 'Quanzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6cc9\u5dde\u5e02')}, '861305583':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861305582':{'en': 'Nanping, Fujian', 'zh': u('\u798f\u5efa\u7701\u5357\u5e73\u5e02')}, '861305585':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861305584':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861305587':{'en': 'Xiamen, Fujian', 'zh': u('\u798f\u5efa\u7701\u53a6\u95e8\u5e02')}, '861305586':{'en': 'Longyan, Fujian', 'zh': u('\u798f\u5efa\u7701\u9f99\u5ca9\u5e02')}, '861305589':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861305588':{'en': 'Zhangzhou, Fujian', 'zh': u('\u798f\u5efa\u7701\u6f33\u5dde\u5e02')}, '861303510':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '62721':{'en': 'Bandar Lampung', 'id': 'Bandar Lampung'}, '62722':{'en': 'Tanggamus', 'id': 'Tanggamus'}, '62723':{'en': 'Blambangan Umpu', 'id': 'Blambangan Umpu'}, '62724':{'en': 'Kotabumi', 'id': 'Kotabumi'}, '62725':{'en': 'Metro', 'id': 'Metro'}, '62726':{'en': 'Menggala', 'id': 'Menggala'}, '62727':{'en': 'Kalianda', 'id': 'Kalianda'}, '62728':{'en': 'Liwa', 'id': 'Liwa'}, '62729':{'en': 'Pringsewu', 'id': 'Pringsewu'}, '861305958':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861305959':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '86130684':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130686':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '86130681':{'en': 'Zhongshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e2d\u5c71\u5e02')}, '86130682':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '86130683':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '86130688':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130689':{'en': 'Shantou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6c55\u5934\u5e02')}, '861303568':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861305952':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861305953':{'en': 'Huizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u60e0\u5dde\u5e02')}, '861305957':{'en': 'Qingyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6e05\u8fdc\u5e02')}, '861303172':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861303173':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '86130420':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130421':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130422':{'en': 'Tianjin', 'zh': u('\u5929\u6d25\u5e02')}, '86130423':{'en': 'Chongqing', 'zh': u('\u91cd\u5e86\u5e02')}, '861303170':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861303171':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '55943491':{'en': u('Reden\u00e7\u00e3o - PA'), 'pt': u('Reden\u00e7\u00e3o - PA')}, '861303176':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '861303177':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861303174':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861303175':{'en': 'Laiwu, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83b1\u829c\u5e02')}, '55923198':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55913233':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913230':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913231':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913236':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913237':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913235':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913238':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55913239':{'en': u('Bel\u00e9m - PA'), 'pt': u('Bel\u00e9m - PA')}, '55923194':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '861302175':{'en': 'Liaocheng, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u804a\u57ce\u5e02')}, '861302174':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302177':{'en': 'TaiAn, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6cf0\u5b89\u5e02')}, '861302176':{'en': 'Dezhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u5fb7\u5dde\u5e02')}, '861302171':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302170':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302173':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302172':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861302179':{'en': 'Heze, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u83cf\u6cfd\u5e02')}, '861302178':{'en': 'Jining, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5b81\u5e02')}, '861301502':{'en': 'Hohhot, Inner Mongolia', 'zh': u('\u5185\u8499\u53e4\u547c\u548c\u6d69\u7279\u5e02')}, '55923228':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923223':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923221':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '811738':{'en': '', 'ja': u('\u9c3a\u30b1\u6ca2')}, '811736':{'en': 'Goshogawara, Aomori', 'ja': u('\u4e94\u6240\u5ddd\u539f')}, '811737':{'en': '', 'ja': u('\u9c3a\u30b1\u6ca2')}, '811734':{'en': 'Goshogawara, Aomori', 'ja': u('\u4e94\u6240\u5ddd\u539f')}, '811735':{'en': 'Goshogawara, Aomori', 'ja': u('\u4e94\u6240\u5ddd\u539f')}, '811732':{'en': 'Goshogawara, Aomori', 'ja': u('\u4e94\u6240\u5ddd\u539f')}, '811733':{'en': 'Goshogawara, Aomori', 'ja': u('\u4e94\u6240\u5ddd\u539f')}, '861302804':{'en': 'Datong, Shanxi', 'zh': u('\u5c71\u897f\u7701\u5927\u540c\u5e02')}, '55913423':{'en': u('Salin\u00f3polis - PA'), 'pt': u('Salin\u00f3polis - PA')}, '811558':{'en': 'Hiroo, Hokkaido', 'ja': u('\u5e83\u5c3e')}, '811559':{'en': 'Obihiro, Hokkaido', 'ja': u('\u5e2f\u5e83')}, '861308381':{'en': 'Xinxiang, Henan', 'zh': u('\u6cb3\u5357\u7701\u65b0\u4e61\u5e02')}, '811552':{'en': 'Obihiro, Hokkaido', 'ja': u('\u5e2f\u5e83')}, '811553':{'en': 'Obihiro, Hokkaido', 'ja': u('\u5e2f\u5e83')}, '811551':{'en': '', 'ja': u('\u5341\u52dd\u6c60\u7530')}, '811556':{'en': 'Obihiro, Hokkaido', 'ja': u('\u5e2f\u5e83')}, '811557':{'en': '', 'ja': u('\u5341\u52dd\u6c60\u7530')}, '811554':{'en': 'Obihiro, Hokkaido', 'ja': u('\u5e2f\u5e83')}, '811555':{'en': 'Obihiro, Hokkaido', 'ja': u('\u5e2f\u5e83')}, '57562959':{'en': 'Cartagena', 'es': 'Cartagena'}, '57562958':{'en': 'Cartagena', 'es': 'Cartagena'}, '55913425':{'en': u('Bragan\u00e7a - PA'), 'pt': u('Bragan\u00e7a - PA')}, '57562951':{'en': 'Cartagena', 'es': 'Cartagena'}, '57562957':{'en': 'Cartagena', 'es': 'Cartagena'}, '57562956':{'en': 'Cartagena', 'es': 'Cartagena'}, '861303925':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861306928':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861303924':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861306926':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861306927':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861306924':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306925':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861306922':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861303927':{'en': 'Jilin, Jilin', 'zh': u('\u5409\u6797\u7701\u5409\u6797\u5e02')}, '861306920':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306921':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861304606':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861304601':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861304600':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861304603':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861304602':{'en': 'Jinan, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6d4e\u5357\u5e02')}, '861305260':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861305261':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861305262':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861306070':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861302621':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861306072':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861305263':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861306074':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861306075':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861306076':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861302620':{'en': 'Nanchang, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5357\u660c\u5e02')}, '861306078':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861305264':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861302623':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861305265':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861302622':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861305266':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '55933017':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '861302625':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861305267':{'en': 'Huludao, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u846b\u82a6\u5c9b\u5e02')}, '861302624':{'en': 'Ganzhou, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u8d63\u5dde\u5e02')}, '861302627':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861302626':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861304025':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861304024':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861304027':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861300039':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861304021':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861304020':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '55873817':{'en': 'Alagoinha - PE', 'pt': 'Alagoinha - PE'}, '55873816':{'en': u('Bu\u00edque - PE'), 'pt': u('Bu\u00edque - PE')}, '55913798':{'en': u('Pacaj\u00e1 - PA'), 'pt': u('Pacaj\u00e1 - PA')}, '55873811':{'en': 'Jirau - PE', 'pt': 'Jirau - PE'}, '55913795':{'en': u('Bai\u00e3o - PA'), 'pt': u('Bai\u00e3o - PA')}, '55913796':{'en': 'Mocajuba - PA', 'pt': 'Mocajuba - PA'}, '55913823':{'en': 'Americano - PA', 'pt': 'Americano - PA'}, '55913822':{'en': 'Quatipuru - PA', 'pt': 'Quatipuru - PA'}, '55913821':{'en': 'Peixe-Boi - PA', 'pt': 'Peixe-Boi - PA'}, '861304757':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300032':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861304755':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861304754':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861304753':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861304752':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861304751':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861300033':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861309589':{'en': 'Jinhua, Zhejiang', 'zh': u('\u6d59\u6c5f\u7701\u91d1\u534e\u5e02')}, '861300746':{'en': 'Hengyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u8861\u9633\u5e02')}, '861304759':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861304758':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '86130164':{'en': 'Wuhan, Hubei', 'zh': u('\u6e56\u5317\u7701\u6b66\u6c49\u5e02')}, '861300031':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '7391':{'en': 'Krasnoyarsk Territory'}, '86130160':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '86130163':{'en': 'Zhuhai, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u73e0\u6d77\u5e02')}, '86130162':{'en': 'Haikou, Hainan', 'zh': u('\u6d77\u5357\u7701\u6d77\u53e3\u5e02')}, '62423':{'en': 'Makale/Rantepao', 'id': 'Makale/Rantepao'}, '861308733':{'en': 'Zhuzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u682a\u6d32\u5e02')}, '55983397':{'en': u('Turia\u00e7u - MA'), 'pt': u('Turia\u00e7u - MA')}, '861300037':{'en': 'Wuxi, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u65e0\u9521\u5e02')}, '861300436':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861300437':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861300434':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861300435':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861300432':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861300433':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861300430':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861300431':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861308223':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861308222':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '861308221':{'en': 'Chaoyang, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u671d\u9633\u5e02')}, '861300743':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308227':{'en': 'Fushun, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u629a\u987a\u5e02')}, '861308226':{'en': 'Anshan, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u978d\u5c71\u5e02')}, '861300438':{'en': 'Changzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5e38\u5dde\u5e02')}, '861300439':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '818546':{'en': 'Kakeya, Shimane', 'ja': u('\u639b\u5408')}, '818547':{'en': 'Kakeya, Shimane', 'ja': u('\u639b\u5408')}, '818544':{'en': 'Kisuki, Shimane', 'ja': u('\u6728\u6b21')}, '818545':{'en': 'Kisuki, Shimane', 'ja': u('\u6728\u6b21')}, '818542':{'en': 'Yasugi, Shimane', 'ja': u('\u5b89\u6765')}, '818543':{'en': 'Yasugi, Shimane', 'ja': u('\u5b89\u6765')}, '861304533':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861304532':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861304531':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861304530':{'en': 'Mudanjiang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u7261\u4e39\u6c5f\u5e02')}, '861304537':{'en': 'Qitaihe, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u4e03\u53f0\u6cb3\u5e02')}, '861304536':{'en': 'Jixi, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e21\u897f\u5e02')}, '818548':{'en': '', 'ja': u('\u77f3\u898b\u5927\u7530')}, '818549':{'en': '', 'ja': u('\u77f3\u898b\u5927\u7530')}, '55993557':{'en': 'Nova Iorque - MA', 'pt': 'Nova Iorque - MA'}, '55993556':{'en': 'Mirador - MA', 'pt': 'Mirador - MA'}, '55993555':{'en': 'Pastos Bons - MA', 'pt': 'Pastos Bons - MA'}, '55993554':{'en': 'Paraibano - MA', 'pt': 'Paraibano - MA'}, '55993553':{'en': u('Sucupira do Riach\u00e3o - MA'), 'pt': u('Sucupira do Riach\u00e3o - MA')}, '55993552':{'en': 'Colinas - MA', 'pt': 'Colinas - MA'}, '55993551':{'en': u('S\u00e3o Jo\u00e3o dos Patos - MA'), 'pt': u('S\u00e3o Jo\u00e3o dos Patos - MA')}, '86130798':{'en': 'Dalian, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u5927\u8fde\u5e02')}, '55993559':{'en': 'Sucupira do Norte - MA', 'pt': 'Sucupira do Norte - MA'}, '55993558':{'en': 'Passagem Franca - MA', 'pt': 'Passagem Franca - MA'}, '55973431':{'en': u('S\u00e3o Paulo de Oliven\u00e7a - AM'), 'pt': u('S\u00e3o Paulo de Oliven\u00e7a - AM')}, '5718439':{'en': 'Facatativa', 'es': 'Facatativa'}, '5718438':{'en': 'Facatativa', 'es': 'Facatativa'}, '817237':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '5718431':{'en': 'Facatativa', 'es': 'Facatativa'}, '5718430':{'en': 'Facatativa', 'es': 'Facatativa'}, '5718437':{'en': 'Facatativa', 'es': 'Facatativa'}, '5718436':{'en': 'Facatativa', 'es': 'Facatativa'}, '5718435':{'en': 'Cartagenita', 'es': 'Cartagenita'}, '5718434':{'en': 'Cartagenita', 'es': 'Cartagenita'}, '84320':{'en': 'Hai Duong province', 'vi': u('H\u1ea3i D\u01b0\u01a1ng')}, '84321':{'en': 'Hung Yen province', 'vi': u('H\u01b0ng Y\u00ean')}, '817236':{'en': 'Sakai, Osaka', 'ja': u('\u583a')}, '814289':{'en': 'Ome, Tokyo', 'ja': u('\u9752\u6885')}, '814288':{'en': 'Ome, Tokyo', 'ja': u('\u9752\u6885')}, '55953224':{'en': 'Boa Vista - RR', 'pt': 'Boa Vista - RR'}, '861309180':{'en': 'Shuangyashan, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u53cc\u9e2d\u5c71\u5e02')}, '814281':{'en': 'Sagamihara, Kanagawa', 'ja': u('\u76f8\u6a21\u539f')}, '814280':{'en': 'Tachikawa, Tokyo', 'ja': u('\u7acb\u5ddd')}, '814283':{'en': 'Ome, Tokyo', 'ja': u('\u9752\u6885')}, '814282':{'en': 'Ome, Tokyo', 'ja': u('\u9752\u6885')}, '814285':{'en': 'Sagamihara, Kanagawa', 'ja': u('\u76f8\u6a21\u539f')}, '814284':{'en': 'Tachikawa, Tokyo', 'ja': u('\u7acb\u5ddd')}, '814287':{'en': 'Ome, Tokyo', 'ja': u('\u9752\u6885')}, '814286':{'en': 'Sagamihara, Kanagawa', 'ja': u('\u76f8\u6a21\u539f')}, '58273':{'en': u('Barinas/M\u00e9rida'), 'es': u('Barinas/M\u00e9rida')}, '58272':{'en': 'Trujillo', 'es': 'Trujillo'}, '58271':{'en': u('M\u00e9rida/Trujillo/Zulia'), 'es': u('M\u00e9rida/Trujillo/Zulia')}, '58270':{'en': 'Colombia', 'es': 'Colombia'}, '58277':{'en': u('T\u00e1chira'), 'es': u('T\u00e1chira')}, '58276':{'en': u('T\u00e1chira'), 'es': u('T\u00e1chira')}, '58275':{'en': u('M\u00e9rida/Zulia'), 'es': u('M\u00e9rida/Zulia')}, '58274':{'en': u('M\u00e9rida'), 'es': u('M\u00e9rida')}, '861303161':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861303160':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861303163':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '58278':{'en': 'Apure/Barinas', 'es': 'Apure/Barinas'}, '861303165':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861303164':{'en': 'Yantai, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u70df\u53f0\u5e02')}, '861303167':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861303166':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861303735':{'en': 'Chenzhou, Hunan', 'zh': u('\u6e56\u5357\u7701\u90f4\u5dde\u5e02')}, '861304861':{'en': 'HuaiAn, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u6dee\u5b89\u5e02')}, '861309537':{'en': 'Puer, Yunnan', 'zh': u('\u4e91\u5357\u7701\u666e\u6d31\u5e02')}, '861302348':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861302349':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861302346':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861300869':{'en': 'Kunming, Yunnan', 'zh': u('\u4e91\u5357\u7701\u6606\u660e\u5e02')}, '861302344':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861302345':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861302342':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '861302343':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861302340':{'en': 'Nanjing, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5357\u4eac\u5e02')}, '812743':{'en': 'Fujioka, Gunma', 'ja': u('\u85e4\u5ca1')}, '814757':{'en': 'Togane, Chiba', 'ja': u('\u6771\u91d1')}, '814756':{'en': 'Togane, Chiba', 'ja': u('\u6771\u91d1')}, '814755':{'en': 'Togane, Chiba', 'ja': u('\u6771\u91d1')}, '814754':{'en': 'Mobara, Chiba', 'ja': u('\u8302\u539f')}, '814753':{'en': 'Mobara, Chiba', 'ja': u('\u8302\u539f')}, '814752':{'en': 'Mobara, Chiba', 'ja': u('\u8302\u539f')}, '814758':{'en': 'Togane, Chiba', 'ja': u('\u6771\u91d1')}, '861302822':{'en': 'Panjin, Liaoning', 'zh': u('\u8fbd\u5b81\u7701\u76d8\u9526\u5e02')}, '819552':{'en': 'Imari, Saga', 'ja': u('\u4f0a\u4e07\u91cc')}, '819553':{'en': 'Imari, Saga', 'ja': u('\u4f0a\u4e07\u91cc')}, '819556':{'en': 'Karatsu, Saga', 'ja': u('\u5510\u6d25')}, '819557':{'en': 'Karatsu, Saga', 'ja': u('\u5510\u6d25')}, '819554':{'en': 'Imari, Saga', 'ja': u('\u4f0a\u4e07\u91cc')}, '819555':{'en': 'Karatsu, Saga', 'ja': u('\u5510\u6d25')}, '819558':{'en': 'Karatsu, Saga', 'ja': u('\u5510\u6d25')}, '55993311':{'en': u('A\u00e7ail\u00e2ndia - MA'), 'pt': u('A\u00e7ail\u00e2ndia - MA')}, '861309614':{'en': 'Nanchong, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5357\u5145\u5e02')}, '861309617':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861309616':{'en': 'Ziyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8d44\u9633\u5e02')}, '861309611':{'en': 'Guangyuan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5e7f\u5143\u5e02')}, '861309610':{'en': 'Deyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5fb7\u9633\u5e02')}, '55993317':{'en': 'Timon - MA', 'pt': 'Timon - MA'}, '861309612':{'en': 'Mianyang, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u7ef5\u9633\u5e02')}, '861309619':{'en': 'Dazhou, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u8fbe\u5dde\u5e02')}, '861309618':{'en': 'Yibin, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u5b9c\u5bbe\u5e02')}, '7471':{'en': 'Kursk'}, '7472':{'en': 'Belgorod'}, '7473':{'en': 'Voronezh'}, '7474':{'en': 'Lipetsk'}, '7475':{'en': 'Tambov'}, '861306489':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861306488':{'en': 'Yangzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u626c\u5dde\u5e02')}, '861306481':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861306480':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861306483':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861306482':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861306485':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861306484':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861306487':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861306486':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '6639':{'en': 'Chanthaburi/Trat', 'th': u('\u0e08\u0e31\u0e19\u0e17\u0e1a\u0e38\u0e23\u0e35/\u0e15\u0e23\u0e32\u0e14')}, '6638':{'en': 'Chachoengsao/Chon Buri/Rayong', 'th': u('\u0e09\u0e30\u0e40\u0e0a\u0e34\u0e07\u0e40\u0e17\u0e23\u0e32/\u0e0a\u0e25\u0e1a\u0e38\u0e23\u0e35/\u0e23\u0e30\u0e22\u0e2d\u0e07')}, '6633':{'en': 'Chachoengsao/Chon Buri/Rayong', 'th': u('\u0e09\u0e30\u0e40\u0e0a\u0e34\u0e07\u0e40\u0e17\u0e23\u0e32/\u0e0a\u0e25\u0e1a\u0e38\u0e23\u0e35/\u0e23\u0e30\u0e22\u0e2d\u0e07')}, '6632':{'en': 'Phetchaburi/Prachuap Khiri Khan/Ratchaburi', 'th': u('\u0e40\u0e1e\u0e0a\u0e23\u0e1a\u0e38\u0e23\u0e35/\u0e1b\u0e23\u0e30\u0e08\u0e27\u0e1a\u0e04\u0e35\u0e23\u0e35\u0e02\u0e31\u0e19\u0e18\u0e4c/\u0e23\u0e32\u0e0a\u0e1a\u0e38\u0e23\u0e35')}, '6635':{'en': 'Ang Thong/Phra Nakhon Si Ayutthaya/Suphan Buri', 'th': u('\u0e2d\u0e48\u0e32\u0e07\u0e17\u0e2d\u0e07/\u0e1e\u0e23\u0e30\u0e19\u0e04\u0e23\u0e28\u0e23\u0e35\u0e2d\u0e22\u0e38\u0e18\u0e22\u0e32/\u0e2a\u0e38\u0e1e\u0e23\u0e23\u0e13\u0e1a\u0e38\u0e23\u0e35')}, '6634':{'en': 'Kanchanaburi/Nakhon Pathom/Samut Sakhon/Samut Songkhram', 'th': u('\u0e01\u0e32\u0e0d\u0e08\u0e19\u0e1a\u0e38\u0e23\u0e35/\u0e19\u0e04\u0e23\u0e1b\u0e10\u0e21/\u0e2a\u0e21\u0e38\u0e17\u0e23\u0e2a\u0e32\u0e04\u0e23/\u0e2a\u0e21\u0e38\u0e17\u0e23\u0e2a\u0e07\u0e04\u0e23\u0e32\u0e21')}, '6637':{'en': 'Nakhon Nayok/Prachin Buri/Sa Kaeo', 'th': u('\u0e19\u0e04\u0e23\u0e19\u0e32\u0e22\u0e01/\u0e1b\u0e23\u0e32\u0e08\u0e35\u0e19\u0e1a\u0e38\u0e23\u0e35/\u0e2a\u0e23\u0e30\u0e41\u0e01\u0e49\u0e27')}, '6636':{'en': 'Lop Buri/Saraburi/Sing Buri', 'th': u('\u0e25\u0e1e\u0e1a\u0e38\u0e23\u0e35/\u0e2a\u0e23\u0e30\u0e1a\u0e38\u0e23\u0e35/\u0e2a\u0e34\u0e07\u0e2b\u0e4c\u0e1a\u0e38\u0e23\u0e35')}, '811945':{'en': 'Kuji, Iwate', 'ja': u('\u4e45\u6148')}, '811944':{'en': 'Iwaizumi, Iwate', 'ja': u('\u5ca9\u6cc9')}, '811947':{'en': 'Kuji, Iwate', 'ja': u('\u4e45\u6148')}, '811946':{'en': 'Kuji, Iwate', 'ja': u('\u4e45\u6148')}, '861301068':{'en': 'Dongguan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4e1c\u839e\u5e02')}, '811942':{'en': 'Iwaizumi, Iwate', 'ja': u('\u5ca9\u6cc9')}, '861301066':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861301067':{'en': 'Foshan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u4f5b\u5c71\u5e02')}, '861301064':{'en': 'Leshan, Sichuan', 'zh': u('\u56db\u5ddd\u7701\u4e50\u5c71\u5e02')}, '861301062':{'en': 'Yingtan, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u9e70\u6f6d\u5e02')}, '861308054':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308055':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308056':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308057':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861308050':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308051':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308052':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308053':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861308058':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861308059':{'en': 'Yiyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u76ca\u9633\u5e02')}, '861309264':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309265':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309266':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309267':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309260':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309261':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309262':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309263':{'en': 'Suzhou, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u82cf\u5dde\u5e02')}, '861309268':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '861309269':{'en': 'Zhenjiang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u9547\u6c5f\u5e02')}, '81259':{'en': 'Sado, Niigata', 'ja': u('\u4f50\u6e21')}, '81253':{'en': 'Niigata, Niigata', 'ja': u('\u65b0\u6f5f')}, '81252':{'en': 'Niigata, Niigata', 'ja': u('\u65b0\u6f5f')}, '81250':{'en': 'Niitsu, Niigata', 'ja': u('\u65b0\u6d25')}, '55983381':{'en': 'Pinheiro - MA', 'pt': 'Pinheiro - MA'}, '861305611':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861305610':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861305613':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861305612':{'en': 'Suqian, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u5bbf\u8fc1\u5e02')}, '861305615':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861305614':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861305617':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861305616':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861305619':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861305618':{'en': 'Yancheng, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u76d0\u57ce\u5e02')}, '861303509':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '62522':{'en': 'Ampah', 'id': 'Ampah'}, '62526':{'en': 'Tamiang Layang/Tanjung', 'id': 'Tamiang Layang/Tanjung'}, '62527':{'en': 'Amuntai', 'id': 'Amuntai'}, '62525':{'en': 'Buntok', 'id': 'Buntok'}, '62528':{'en': 'Purukcahu', 'id': 'Purukcahu'}, '861303508':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '55933222':{'en': u('Santar\u00e9m - PA'), 'pt': u('Santar\u00e9m - PA')}, '861300087':{'en': 'Lanzhou, Gansu', 'zh': u('\u7518\u8083\u7701\u5170\u5dde\u5e02')}, '861300086':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300085':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300084':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300083':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300082':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300081':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300080':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300089':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '861300088':{'en': 'Guangzhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u5e7f\u5dde\u5e02')}, '62298':{'en': 'Salatiga/Ambarawa', 'id': 'Salatiga/Ambarawa'}, '62299':{'en': 'Nusakambangan', 'id': 'Nusakambangan'}, '861303574':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861303575':{'en': 'Meizhou, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6885\u5dde\u5e02')}, '861303572':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861303573':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861303570':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '861303571':{'en': 'Heyuan, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6cb3\u6e90\u5e02')}, '62291':{'en': 'Demak/Jepara/Kudus', 'id': 'Demak/Jepara/Kudus'}, '62292':{'en': 'Purwodadi', 'id': 'Purwodadi'}, '62293':{'en': 'Magelang/Mungkid/Temanggung', 'id': 'Magelang/Mungkid/Temanggung'}, '62294':{'en': 'Kendal', 'id': 'Kendal'}, '62295':{'en': 'Pati/Rembang', 'id': 'Pati/Rembang'}, '62296':{'en': 'Blora', 'id': 'Blora'}, '62297':{'en': 'Karimun Jawa', 'id': 'Karimun Jawa'}, '772147':{'en': 'Egindybulak'}, '772146':{'en': 'Karkaralinsk'}, '772144':{'en': 'Kiyevka'}, '772538':{'en': 'Turara Ryskulova'}, '772539':{'en': 'Kazygurt'}, '772536':{'en': 'Kentau'}, '772537':{'en': 'Saryagash'}, '81420':{'en': 'Tokorozawa, Saitama', 'ja': u('\u6240\u6ca2')}, '772535':{'en': 'Shardara'}, '772532':{'en': 'Abai'}, '772533':{'en': 'Turkestan'}, '772530':{'en': 'Temirlanovka'}, '772531':{'en': 'Aksukent'}, '57866':{'en': 'Villavicencio', 'es': 'Villavicencio'}, '86130408':{'en': 'Shenzhen, Guangdong', 'zh': u('\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02')}, '86130406':{'en': 'Shanghai', 'zh': u('\u4e0a\u6d77\u5e02')}, '86130400':{'en': 'Tangshan, Hebei', 'zh': u('\u6cb3\u5317\u7701\u5510\u5c71\u5e02')}, '772752':{'en': 'Otegen Batyra', 'ru': u('\u0418\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '772757':{'en': 'Akshi', 'ru': u('\u0418\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0440\u0430\u0439\u043e\u043d')}, '861302629':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861302628':{'en': 'Yichun, Jiangxi', 'zh': u('\u6c5f\u897f\u7701\u5b9c\u6625\u5e02')}, '861302159':{'en': 'Zaozhuang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u67a3\u5e84\u5e02')}, '861302158':{'en': 'Rizhao, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u65e5\u7167\u5e02')}, '861304865':{'en': 'Lianyungang, Jiangsu', 'zh': u('\u6c5f\u82cf\u7701\u8fde\u4e91\u6e2f\u5e02')}, '861302153':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861302152':{'en': 'Binzhou, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6ee8\u5dde\u5e02')}, '861302151':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861302150':{'en': 'Zibo, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6dc4\u535a\u5e02')}, '861302157':{'en': 'Linyi, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e34\u6c82\u5e02')}, '861302156':{'en': 'Dongying, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u4e1c\u8425\u5e02')}, '861302155':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861302154':{'en': 'Weifang, Shandong', 'zh': u('\u5c71\u4e1c\u7701\u6f4d\u574a\u5e02')}, '861307503':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861307502':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861307501':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861307500':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861307507':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861307506':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861307505':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861307504':{'en': 'Bozhou, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u4eb3\u5dde\u5e02')}, '861308739':{'en': 'Shaoyang, Hunan', 'zh': u('\u6e56\u5357\u7701\u90b5\u9633\u5e02')}, '861308738':{'en': 'Loudi, Hunan', 'zh': u('\u6e56\u5357\u7701\u5a04\u5e95\u5e02')}, '861307509':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '861307508':{'en': 'Fuyang, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u961c\u9633\u5e02')}, '55923245':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923247':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '55923249':{'en': 'Manaus - AM', 'pt': 'Manaus - AM'}, '817723':{'en': 'Miyazu, Kyoto', 'ja': u('\u5bae\u6d25')}, '861306906':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '861306907':{'en': 'Tonghua, Jilin', 'zh': u('\u5409\u6797\u7701\u901a\u5316\u5e02')}, '861305517':{'en': 'Changsha, Hunan', 'zh': u('\u6e56\u5357\u7701\u957f\u6c99\u5e02')}, '861306900':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '818892':{'en': 'Sakawa, Kochi', 'ja': u('\u4f50\u5ddd')}, '818893':{'en': 'Sakawa, Kochi', 'ja': u('\u4f50\u5ddd')}, '818894':{'en': 'Susaki, Kochi', 'ja': u('\u9808\u5d0e')}, '818895':{'en': 'Susaki, Kochi', 'ja': u('\u9808\u5d0e')}, '818896':{'en': 'Susaki, Kochi', 'ja': u('\u9808\u5d0e')}, '861306901':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861308950':{'en': 'Hegang, Heilongjiang', 'zh': u('\u9ed1\u9f99\u6c5f\u7701\u9e64\u5c97\u5e02')}, '5634':{'en': u('San Felipe, Valpara\u00edso'), 'es': u('San Felipe, Valpara\u00edso')}, '5635':{'en': u('San Antonio, Valpara\u00edso'), 'es': u('San Antonio, Valpara\u00edso')}, '5632':{'en': u('Valpara\u00edso'), 'es': u('Valpara\u00edso')}, '5633':{'en': u('Quillota, Valpara\u00edso'), 'es': u('Quillota, Valpara\u00edso')}, '861306904':{'en': 'Changchun, Jilin', 'zh': u('\u5409\u6797\u7701\u957f\u6625\u5e02')}, '861306905':{'en': 'Songyuan, Jilin', 'zh': u('\u5409\u6797\u7701\u677e\u539f\u5e02')}, '8482':{'en': 'Ho Chi Minh City'}, '8483':{'en': 'Ho Chi Minh City'}, '8484':{'en': 'Ho Chi Minh City'}, '8485':{'en': 'Ho Chi Minh City'}, '861306902':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861306903':{'en': 'Siping, Jilin', 'zh': u('\u5409\u6797\u7701\u56db\u5e73\u5e02')}, '861308308':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, '861306908':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861306909':{'en': 'Yanbian, Jilin', 'zh': u('\u5409\u6797\u7701\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde')}, '861308309':{'en': 'Hefei, Anhui', 'zh': u('\u5b89\u5fbd\u7701\u5408\u80a5\u5e02')}, }
titansgroup/python-phonenumbers
python/phonenumbers/geodata/data7.py
Python
apache-2.0
811,011
from django import forms from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect, Http404 from manage import models as mmod from . import templater def process_request(request): # Get the Specific category from the url url_request = request.urlparams[0] # Filter all the products and get only the requested category products = mmod.Catalog_Item.objects.filter(category= url_request) category = mmod.Category.objects.get(id=url_request) tvars = { 'products': products, 'category': category, } return templater.render_to_response(request, 'category.html', tvars)
brayden2544/Mystuff-final
static_files/catalog/views/category.py
Python
apache-2.0
652
from paypalrestsdk import BillingPlan import logging logging.basicConfig(level=logging.INFO) history = BillingPlan.all({"status": "CREATED", "page_size": 5, "page": 1, "total_required": "yes"}) print(history) print("List BillingPlan:") for plan in history.plans: print(" -> BillingPlan[%s]" % (plan.id))
stafur/pyTRUST
paypal-rest-api-sdk-python/samples/subscription/billing_plans/get_all.py
Python
apache-2.0
311
# Copyright 2020 The TensorFlow 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 # # https://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. """Tests for gan.architectures_style_gan.""" from absl.testing import parameterized import numpy as np import tensorflow as tf from tensorflow_graphics.projects.gan import architectures_style_gan class ArchitecturesStyleGanTest(tf.test.TestCase, parameterized.TestCase): @parameterized.named_parameters(('batch_1', 1, False), ('batch_2', 2, False), ('normalize_latent_code', 1, True)) def test_style_based_generator_output_size(self, batch_size, normalize_latent_code): input_data = np.ones(shape=(batch_size, 8), dtype=np.float32) generator, _, _ = architectures_style_gan.create_style_based_generator( latent_code_dimension=8, upsampling_blocks_num_channels=(8, 8), normalize_latent_code=normalize_latent_code) expected_size = 16 output = generator(input_data) output_value = self.evaluate(output) with self.subTest(name='static_shape'): output.shape.assert_is_fully_defined() self.assertSequenceEqual(output.shape, (batch_size, expected_size, expected_size, 3)) with self.subTest(name='dynamic_shape'): self.assertSequenceEqual(output_value.shape, (batch_size, expected_size, expected_size, 3)) @parameterized.named_parameters(('batch_1', 1), ('batch_2', 2)) def test_style_based_generator_intermediate_outputs_shape(self, batch_size): input_data = tf.ones(shape=(batch_size, 8)) generator, _, _ = architectures_style_gan.create_style_based_generator( latent_code_dimension=8, upsampling_blocks_num_channels=(8, 8), generate_intermediate_outputs=True) outputs = generator(input_data) output_values = self.evaluate(outputs) self.assertLen(outputs, 3) for index, output_value in enumerate(output_values): self.assertSequenceEqual(output_value.shape, (batch_size, 2**(index + 2), 2**(index + 2), 3)) def test_cloning_style_based_generator(self): generator, _, _ = architectures_style_gan.create_style_based_generator() with tf.keras.utils.custom_object_scope( architectures_style_gan.CUSTOM_LAYERS): generator_clone = tf.keras.models.clone_model(generator) self.assertIsInstance(generator_clone, tf.keras.Model) @parameterized.named_parameters(('batch_1', 1), ('batch_2', 2)) def test_style_based_generator_mapping_outputs_shape(self, batch_size): input_data = tf.ones(shape=(batch_size, 512)) output_dimension = 554 mapping_network = architectures_style_gan.create_mapping_network( latent_code_dimension=512, output_dimension=output_dimension, normalize_latent_code=False, name='keypoint_mapping') outputs = mapping_network(input_data) self.assertEqual(outputs.shape[1], output_dimension) if __name__ == '__main__': tf.test.main()
tensorflow/graphics
tensorflow_graphics/projects/gan/architectures_style_gan_test.py
Python
apache-2.0
3,526
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines 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. """Rank-1 BNN Utilities.""" import edward2 as ed import numpy as np import tensorflow as tf def _make_sign_initializer(random_sign_init): if random_sign_init > 0: return ed.initializers.RandomSign(random_sign_init) else: return tf.keras.initializers.RandomNormal(mean=1.0, stddev=-random_sign_init) def make_initializer(initializer, random_sign_init, dropout_rate): """Builds initializer with specific mean and/or stddevs.""" if initializer == 'trainable_deterministic': return ed.initializers.TrainableDeterministic( loc_initializer=_make_sign_initializer(random_sign_init)) elif initializer == 'trainable_half_cauchy': stddev_init = np.log(np.expm1(np.sqrt(dropout_rate / (1. - dropout_rate)))) return ed.initializers.TrainableHalfCauchy( loc_initializer=_make_sign_initializer(random_sign_init), scale_initializer=tf.keras.initializers.Constant(stddev_init), scale_constraint='softplus') elif initializer == 'trainable_cauchy': stddev_init = np.log(np.expm1(np.sqrt(dropout_rate / (1. - dropout_rate)))) return ed.initializers.TrainableCauchy( loc_initializer=_make_sign_initializer(random_sign_init), scale_initializer=tf.keras.initializers.Constant(stddev_init), scale_constraint='softplus') elif initializer == 'trainable_normal': stddev_init = np.log(np.expm1(np.sqrt(dropout_rate / (1. - dropout_rate)))) return ed.initializers.TrainableNormal( mean_initializer=_make_sign_initializer(random_sign_init), stddev_initializer=tf.keras.initializers.TruncatedNormal( mean=stddev_init, stddev=0.1), stddev_constraint='softplus') elif initializer == 'trainable_log_normal': stddev_init = np.log(np.expm1(np.sqrt(dropout_rate / (1. - dropout_rate)))) return ed.initializers.TrainableLogNormal( loc_initializer=_make_sign_initializer(random_sign_init), scale_initializer=tf.keras.initializers.TruncatedNormal( mean=stddev_init, stddev=0.1), scale_constraint='softplus') elif initializer == 'trainable_normal_fixed_stddev': return ed.initializers.TrainableNormalFixedStddev( stddev=tf.sqrt(dropout_rate / (1. - dropout_rate)), mean_initializer=_make_sign_initializer(random_sign_init)) elif initializer == 'trainable_normal_shared_stddev': stddev_init = np.log(np.expm1(np.sqrt(dropout_rate / (1. - dropout_rate)))) return ed.initializers.TrainableNormalSharedStddev( mean_initializer=_make_sign_initializer(random_sign_init), stddev_initializer=tf.keras.initializers.Constant(stddev_init), stddev_constraint='softplus') return initializer def make_regularizer(regularizer, mean, stddev): """Builds regularizer with specific mean and/or stddevs.""" if regularizer == 'normal_kl_divergence': return ed.regularizers.NormalKLDivergence(mean=mean, stddev=stddev) elif regularizer == 'log_normal_kl_divergence': return ed.regularizers.LogNormalKLDivergence( loc=tf.math.log(1.), scale=stddev) elif regularizer == 'normal_kl_divergence_with_tied_mean': return ed.regularizers.NormalKLDivergenceWithTiedMean(stddev=stddev) elif regularizer == 'cauchy_kl_divergence': return ed.regularizers.CauchyKLDivergence(loc=mean, scale=stddev) elif regularizer == 'normal_empirical_bayes_kl_divergence': return ed.regularizers.NormalEmpiricalBayesKLDivergence(mean=mean) elif regularizer == 'trainable_normal_kl_divergence_stddev': return ed.regularizers.TrainableNormalKLDivergenceStdDev(mean=mean) return regularizer
google/uncertainty-baselines
uncertainty_baselines/models/rank1_bnn_utils.py
Python
apache-2.0
4,259
from collections import namedtuple from .test_base import CliCommandTest class ListSortTest(CliCommandTest): _resource = namedtuple('Resource', 'name,class_type,sort_order,context') def setUp(self): super(ListSortTest, self).setUp() self.use_manager() self.resources = [ ListSortTest._resource( 'plugins', self.client.plugins, 'uploaded_at', None ), ListSortTest._resource( 'deployments', self.client.deployments, 'created_at', None ), ListSortTest._resource( 'nodes', self.client.nodes, 'deployment_id', None ), ListSortTest._resource( 'node-instances', self.client.node_instances, 'node_id', 'manager' ), ListSortTest._resource( 'blueprints', self.client.blueprints, 'created_at', None ), ListSortTest._resource( 'snapshots', self.client.snapshots, 'created_at', None ), ListSortTest._resource( 'executions', self.client.executions, 'created_at', None ), ListSortTest._resource( 'users', self.client.users, 'username', None ), ListSortTest._resource( 'user-groups', self.client.user_groups, 'name', None ), ] self.count_mock_calls = 0 self.original_lists = {} for r in self.resources: self.original_lists[r.name] = r.class_type.list def tearDown(self): for r in self.resources: r.class_type.list = self.original_lists[r.name] super(ListSortTest, self).tearDown() def test_list_sort(self): for r in self.resources: self._set_mock_list(r, 'order') self.invoke( 'cfy {0} list --sort-by order' .format(r.name), context=r.context ) self.assertEqual(len(self.resources), self.count_mock_calls) def test_list_sort_reverse(self): for r in self.resources: self._set_mock_list(r, 'order', descending=True) self.invoke( 'cfy {0} list --sort-by order --descending' .format(r.name), context=r.context ) self.assertEqual(len(self.resources), self.count_mock_calls) def test_list_sort_default(self): for r in self.resources: self._set_mock_list(r, r.sort_order) self.invoke('cfy {0} list'.format(r.name), context=r.context) self.assertEqual(len(self.resources), self.count_mock_calls) def test_list_sort_default_reverse(self): for r in self.resources: self._set_mock_list(r, r.sort_order, descending=True) self.invoke('cfy {0} list --descending' .format(r.name), context=r.context) self.assertEqual(len(self.resources), self.count_mock_calls) def _set_mock_list(self, resource, sort, descending=False): def _mock_list(*_, **kwargs): self.count_mock_calls += 1 self.assertEqual(sort, kwargs['sort']) self.assertEqual(descending, kwargs['is_descending']) return [] resource.class_type.list = _mock_list
isaac-s/cloudify-cli
cloudify_cli/tests/commands/test_list_sort.py
Python
apache-2.0
3,757
""" .. module: security_monkey.task_scheduler.beat :platform: Unix :synopsis: Sets up the Celery task scheduling for watching, auditing, and reporting changes in the environment. .. version:: $$VERSION$$ .. moduleauthor:: Mike Grima <[email protected]> """ import traceback from celery.schedules import crontab from security_monkey.reporter import Reporter from security_monkey import app, sentry from security_monkey.datastore import store_exception, Account from security_monkey.task_scheduler.util import CELERY, setup, get_celery_config_file, get_sm_celery_config_value from security_monkey.task_scheduler.tasks import task_account_tech, clear_expired_exceptions def purge_it(): """Purge the existing Celery queue""" app.logger.debug("Purging the Celery tasks awaiting to execute") CELERY.control.purge() app.logger.debug("Completed the Celery purge.") @CELERY.on_after_configure.connect def setup_the_tasks(sender, **kwargs): setup() # Purge out all current tasks waiting to execute: purge_it() # Get the celery configuration (Get the raw module since Celery doesn't document a good way to do this # see https://github.com/celery/celery/issues/4633): celery_config = get_celery_config_file() # Add all the tasks: try: accounts = Account.query.filter(Account.third_party == False).filter(Account.active == True).all() # noqa for account in accounts: rep = Reporter(account=account.name) # Is this a dedicated watcher stack, or is this stack ignoring anything? only_watch = get_sm_celery_config_value(celery_config, "security_monkey_only_watch", set) # If only_watch is set, then ignoring is ignored. if only_watch: ignoring = set() else: # Check if we are ignoring any watchers: ignoring = get_sm_celery_config_value(celery_config, "security_monkey_watcher_ignore", set) or set() for monitor in rep.all_monitors: # Is this watcher enabled? if monitor.watcher.is_active() and monitor.watcher.index not in ignoring: # Did we specify specific watchers to run? if only_watch and monitor.watcher.index not in only_watch: continue app.logger.info("[ ] Scheduling tasks for {type} account: {name}".format(type=account.type.name, name=account.name)) interval = monitor.watcher.get_interval() if not interval: app.logger.debug("[/] Skipping watcher for technology: {} because it is set for external " "monitoring.".format(monitor.watcher.index)) continue app.logger.debug("[{}] Scheduling for technology: {}".format(account.type.name, monitor.watcher.index)) # Start the task immediately: task_account_tech.apply_async((account.name, monitor.watcher.index)) app.logger.debug("[-->] Scheduled immediate task") schedule = interval * 60 schedule_at_full_hour = get_sm_celery_config_value(celery_config, "schedule_at_full_hour", bool) or False if schedule_at_full_hour: if interval == 15: # 15 minute schedule = crontab(minute="0,15,30,45") elif interval == 60: # Hourly schedule = crontab(minute="0") elif interval == 720: # 12 hour schedule = crontab(minute="0", hour="0,12") elif interval == 1440: # Daily schedule = crontab(minute="0", hour="0") elif interval == 10080: # Weekly schedule = crontab(minute="0", hour="0", day_of_week="0") # Schedule it based on the schedule: sender.add_periodic_task(schedule, task_account_tech.s(account.name, monitor.watcher.index)) app.logger.debug("[+] Scheduled task to occur every {} minutes".format(interval)) # TODO: Due to a bug with Celery (https://github.com/celery/celery/issues/4041) we temporarily # disabled this to avoid many duplicate events from getting added. # Also schedule a manual audit changer just in case it doesn't properly # audit (only for non-batched): # if not monitor.batch_support: # sender.add_periodic_task( # crontab(hour=10, day_of_week="mon-fri"), task_audit.s(account.name, monitor.watcher.index)) # app.logger.debug("[+] Scheduled task for tech: {} for audit".format(monitor.watcher.index)) # # app.logger.debug("[{}] Completed scheduling for technology: {}".format(account.name, # monitor.watcher.index)) app.logger.debug("[+] Completed scheduling tasks for account: {}".format(account.name)) # Schedule the task for clearing out old exceptions: app.logger.info("Scheduling task to clear out old exceptions.") # Run every 24 hours (and clear it now): clear_expired_exceptions.apply_async() sender.add_periodic_task(86400, clear_expired_exceptions.s()) except Exception as e: if sentry: sentry.captureException() app.logger.error("[X] Scheduler Exception: {}".format(e)) app.logger.error(traceback.format_exc()) store_exception("scheduler", None, e)
Netflix/security_monkey
security_monkey/task_scheduler/beat.py
Python
apache-2.0
6,057
from setuptools import setup, find_packages from os import path setup( name='OpenClos', namespace_packages=['jnpr'], # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # http://packaging.python.org/en/latest/tutorial.html#version version='1.0.dev1', description='OpenClos Python project', long_description= \ '''OpenClos is a python automation tool to perform following 1. Create scalable Layer-3 IP Fabric using BGP 2. Troubleshoot L2 and L3 connectivity 3. Reporting different Fabric statistics ''', # The project's main homepage. url='https://github.com/Juniper/OpenClos', # Author details author='Moloy', author_email='[email protected]', # Choose your license license='Apache 2.0', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ # How mature is this project? Common values are # 2 - Pre-Alpha # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 2 - Pre-Alpha', # Indicate who your project is intended for 'Intended Audience :: Developers', 'Intended Audience :: Telecommunications Industry', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Networking', 'Topic :: System :: Networking :: Monitoring', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: Apache Software License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', ], # What does your project relate to? keywords='Layer-3 fabric clos leaf spine', # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). packages=find_packages(), # List run-time dependencies here. These will be installed by pip when your # project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files install_requires=['netaddr', 'sqlalchemy >= 0.9.6', 'pyyaml', 'nose', 'coverage', 'jinja2', 'flexmock', 'pydot', 'bottle', 'webtest'], # If there are data files included in your packages that need to be # installed, specify them here. If using Python 2.6 or less, then these # have to be included in MANIFEST.in as well. package_data={ 'jnpr.openclos': ['conf/*.yaml', 'conf/*.json', 'conf/junosTemplates/*', 'conf/cablingPlanTemplates/*', 'conf/ztp/*', 'data/.dat', 'script/*', 'tests/*.py', 'tests/unit/*.py'], '': ['./*.txt'], }, # Although 'package_data' is the preferred approach, in some case you may # need to place data files outside of your packages. # see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # In this case, 'data_file' will be installed into '<sys.prefix>/my_data' #data_files=[('my_data', ['data/data_file'])], # To provide executable scripts, use entry points in preference to the # "scripts" keyword. Entry points provide cross-platform support and allow # pip to create the appropriate form of executable for the target platform. #entry_points={ # 'console_scripts': [ # 'sample=sample:main', # ], #}, )
sysbot/OpenClos
setup.py
Python
apache-2.0
3,687
import logging import time import ray import ray._private.services from ray import ray_constants logger = logging.getLogger(__name__) class Cluster: def __init__(self, initialize_head=False, connect=False, head_node_args=None, shutdown_at_exit=True): """Initializes all services of a Ray cluster. Args: initialize_head (bool): Automatically start a Ray cluster by initializing the head node. Defaults to False. connect (bool): If `initialize_head=True` and `connect=True`, ray.init will be called with the redis address of this cluster passed in. head_node_args (dict): Arguments to be passed into `start_ray_head` via `self.add_node`. shutdown_at_exit (bool): If True, registers an exit hook for shutting down all started processes. """ self.head_node = None self.worker_nodes = set() self.redis_address = None self.connected = False # Create a new global state accessor for fetching GCS table. self.global_state = ray.state.GlobalState() self._shutdown_at_exit = shutdown_at_exit if not initialize_head and connect: raise RuntimeError("Cannot connect to uninitialized cluster.") if initialize_head: head_node_args = head_node_args or {} self.add_node(**head_node_args) if connect: self.connect() @property def address(self): return self.redis_address def connect(self, namespace=None): """Connect the driver to the cluster.""" assert self.redis_address is not None assert not self.connected output_info = ray.init( namespace=namespace, ignore_reinit_error=True, address=self.redis_address, _redis_password=self.redis_password) logger.info(output_info) self.connected = True def add_node(self, wait=True, **node_args): """Adds a node to the local Ray Cluster. All nodes are by default started with the following settings: cleanup=True, num_cpus=1, object_store_memory=150 * 1024 * 1024 # 150 MiB Args: wait (bool): Whether to wait until the node is alive. node_args: Keyword arguments used in `start_ray_head` and `start_ray_node`. Overrides defaults. Returns: Node object of the added Ray node. """ default_kwargs = { "num_cpus": 1, "num_gpus": 0, "object_store_memory": 150 * 1024 * 1024, # 150 MiB "min_worker_port": 0, "max_worker_port": 0, "dashboard_port": None, } ray_params = ray._private.parameter.RayParams(**node_args) ray_params.update_if_absent(**default_kwargs) if self.head_node is None: node = ray.node.Node( ray_params, head=True, shutdown_at_exit=self._shutdown_at_exit, spawn_reaper=self._shutdown_at_exit) self.head_node = node self.redis_address = self.head_node.redis_address self.redis_password = node_args.get( "redis_password", ray_constants.REDIS_DEFAULT_PASSWORD) self.webui_url = self.head_node.webui_url # Init global state accessor when creating head node. self.global_state._initialize_global_state(self.redis_address, self.redis_password) else: ray_params.update_if_absent(redis_address=self.redis_address) # We only need one log monitor per physical node. ray_params.update_if_absent(include_log_monitor=False) # Let grpc pick a port. ray_params.update_if_absent(node_manager_port=0) node = ray.node.Node( ray_params, head=False, shutdown_at_exit=self._shutdown_at_exit, spawn_reaper=self._shutdown_at_exit) self.worker_nodes.add(node) if wait: # Wait for the node to appear in the client table. We do this so # that the nodes appears in the client table in the order that the # corresponding calls to add_node were made. We do this because in # the tests we assume that the driver is connected to the first # node that is added. self._wait_for_node(node) return node def remove_node(self, node, allow_graceful=True): """Kills all processes associated with worker node. Args: node (Node): Worker node of which all associated processes will be removed. """ global_node = ray.worker._global_node if global_node is not None: if node._raylet_socket_name == global_node._raylet_socket_name: ray.shutdown() raise ValueError( "Removing a node that is connected to this Ray client " "is not allowed because it will break the driver." "You can use the get_other_node utility to avoid removing" "a node that the Ray client is connected.") if self.head_node == node: self.head_node.kill_all_processes( check_alive=False, allow_graceful=allow_graceful) self.head_node = None # TODO(rliaw): Do we need to kill all worker processes? else: node.kill_all_processes( check_alive=False, allow_graceful=allow_graceful) self.worker_nodes.remove(node) assert not node.any_processes_alive(), ( "There are zombie processes left over after killing.") def _wait_for_node(self, node, timeout=30): """Wait until this node has appeared in the client table. Args: node (ray.node.Node): The node to wait for. timeout: The amount of time in seconds to wait before raising an exception. Raises: TimeoutError: An exception is raised if the timeout expires before the node appears in the client table. """ ray._private.services.wait_for_node(self.redis_address, node.plasma_store_socket_name, self.redis_password, timeout) def wait_for_nodes(self, timeout=30): """Waits for correct number of nodes to be registered. This will wait until the number of live nodes in the client table exactly matches the number of "add_node" calls minus the number of "remove_node" calls that have been made on this cluster. This means that if a node dies without "remove_node" having been called, this will raise an exception. Args: timeout (float): The number of seconds to wait for nodes to join before failing. Raises: TimeoutError: An exception is raised if we time out while waiting for nodes to join. """ start_time = time.time() while time.time() - start_time < timeout: clients = self.global_state.node_table() live_clients = [client for client in clients if client["Alive"]] expected = len(self.list_all_nodes()) if len(live_clients) == expected: logger.debug("All nodes registered as expected.") return else: logger.debug( f"{len(live_clients)} nodes are currently registered, " f"but we are expecting {expected}") time.sleep(0.1) raise TimeoutError("Timed out while waiting for nodes to join.") def list_all_nodes(self): """Lists all nodes. TODO(rliaw): What is the desired behavior if a head node dies before worker nodes die? Returns: List of all nodes, including the head node. """ nodes = list(self.worker_nodes) if self.head_node: nodes = [self.head_node] + nodes return nodes def remaining_processes_alive(self): """Returns a bool indicating whether all processes are alive or not. Note that this ignores processes that have been explicitly killed, e.g., via a command like node.kill_raylet(). Returns: True if all processes are alive and false otherwise. """ return all( node.remaining_processes_alive() for node in self.list_all_nodes()) def shutdown(self): """Removes all nodes.""" # We create a list here as a copy because `remove_node` # modifies `self.worker_nodes`. all_nodes = list(self.worker_nodes) for node in all_nodes: self.remove_node(node) if self.head_node is not None: self.remove_node(self.head_node)
pcmoritz/ray-1
python/ray/cluster_utils.py
Python
apache-2.0
9,226
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Removing unique constraint on 'Question', fields ['simplified_question'] db.delete_unique('questions', ['simplified_question']) def backwards(self, orm): # Adding unique constraint on 'Question', fields ['simplified_question'] db.create_unique('questions', ['simplified_question']) models = { u'auth.group': { 'Meta': {'object_name': 'Group'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) }, u'auth.permission': { 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, u'auth.user': { 'Meta': {'object_name': 'User'}, 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}), 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) }, u'contenttypes.contenttype': { 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, u'core.culture': { 'Meta': {'ordering': "['culture']", 'object_name': 'Culture', 'db_table': "'cultures'"}, 'added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'coder': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}), 'culture': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}), 'editor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), 'fact': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'languages': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['core.Language']", 'symmetrical': 'False', 'blank': 'True'}), 'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '128'}) }, u'core.language': { 'Meta': {'ordering': "['language']", 'unique_together': "(('isocode', 'language'),)", 'object_name': 'Language', 'db_table': "'languages'"}, 'abvdcode': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'unique': 'True', 'null': 'True', 'blank': 'True'}), 'added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'classification': ('django.db.models.fields.TextField', [], {}), 'editor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'isocode': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '3', 'db_index': 'True'}), 'language': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}) }, u'core.section': { 'Meta': {'ordering': "['id']", 'object_name': 'Section', 'db_table': "'sections'"}, 'added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'editor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'section': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}) }, u'core.source': { 'Meta': {'ordering': "['author', 'year']", 'unique_together': "(['author', 'year'],)", 'object_name': 'Source', 'db_table': "'sources'", 'index_together': "[['author', 'year']]"}, 'added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'author': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), 'bibtex': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'editor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'reference': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '1000'}), 'year': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '255', 'null': 'True', 'blank': 'True'}) }, u'survey.floatresponse': { 'Meta': {'object_name': 'FloatResponse', 'db_table': "'responses_floats'", '_ormbases': [u'survey.Response']}, 'response': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), u'response_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['survey.Response']", 'unique': 'True', 'primary_key': 'True'}) }, u'survey.integerresponse': { 'Meta': {'object_name': 'IntegerResponse', 'db_table': "'responses_integers'", '_ormbases': [u'survey.Response']}, 'response': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), u'response_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['survey.Response']", 'unique': 'True', 'primary_key': 'True'}) }, u'survey.optionquestion': { 'Meta': {'object_name': 'OptionQuestion', 'db_table': "'questions_option'", '_ormbases': [u'survey.Question']}, 'options': ('django.db.models.fields.TextField', [], {}), u'question_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['survey.Question']", 'unique': 'True', 'primary_key': 'True'}) }, u'survey.optionresponse': { 'Meta': {'object_name': 'OptionResponse', 'db_table': "'responses_options'", '_ormbases': [u'survey.Response']}, 'response': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}), u'response_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['survey.Response']", 'unique': 'True', 'primary_key': 'True'}), 'response_text': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}) }, u'survey.question': { 'Meta': {'object_name': 'Question', 'db_table': "'questions'"}, 'added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'editor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'information': ('django.db.models.fields.TextField', [], {'blank': 'True'}), 'number': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}), 'polymorphic_ctype': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'polymorphic_survey.question_set'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"}), 'question': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}), 'response_type': ('django.db.models.fields.CharField', [], {'default': "'Int'", 'max_length': '6'}), 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['core.Section']"}), 'simplified_question': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}) }, u'survey.response': { 'Meta': {'unique_together': "(('question', 'culture'),)", 'object_name': 'Response', 'db_table': "'responses'"}, 'added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}), 'codersnotes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'culture': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['core.Culture']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'missing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'page1': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}), 'page2': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}), 'page3': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}), 'page4': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}), 'page5': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}), 'polymorphic_ctype': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'polymorphic_survey.response_set'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"}), 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['survey.Question']"}), 'source1': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'source1'", 'null': 'True', 'to': u"orm['core.Source']"}), 'source2': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'source2'", 'null': 'True', 'to': u"orm['core.Source']"}), 'source3': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'source3'", 'null': 'True', 'to': u"orm['core.Source']"}), 'source4': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'source4'", 'null': 'True', 'to': u"orm['core.Source']"}), 'source5': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'source5'", 'null': 'True', 'to': u"orm['core.Source']"}), 'uncertainty': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) }, u'survey.textresponse': { 'Meta': {'object_name': 'TextResponse', 'db_table': "'responses_texts'", '_ormbases': [u'survey.Response']}, 'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), u'response_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['survey.Response']", 'unique': 'True', 'primary_key': 'True'}) } } complete_apps = ['survey']
shh-dlce/pulotu
website/apps/survey/migrations/0050_auto__del_unique_question_simplified_question.py
Python
apache-2.0
13,852
#!/usr/bin/env python import Queue import cStringIO import logging import os.path import time import traceback from PIL import Image from selenium import webdriver from selenium.common import exceptions from selenium.webdriver.common import action_chains import logenv KANCOLLE_URL = 'http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/' COMMAND_CLICK = 'click' COMMAND_CLICK_HOLD = 'click_hold' COMMAND_CLICK_RELEASE = 'click_release' COMMAND_MOVE_MOUSE = 'move_mouse' COMMAND_COVER = 'cover' COMMAND_TAKE_SCREENSHOT = 'take_screenshot' logger = logging.getLogger('kcaa.browser') def get_desired_capabilities(args): capabilities = {} capabilities['proxy'] = {'httpProxy': args.proxy, 'ftpProxy': args.proxy, 'sslProxy': None, 'noProxy': '127.0.0.1,localhost', 'proxyType': 'MANUAL', 'class': 'org.openqa.selenium.Proxy', 'autodetect': False} return capabilities def setup_chrome(name, args, desired_capabilities, is_chromium): options = webdriver.ChromeOptions() options.binary_location = ( args.chromium_binary if is_chromium else args.chrome_binary) if args.chrome_user_data_basedir: options.add_argument('--user-data-dir={}'.format( os.path.join(args.chrome_user_data_basedir, name))) # Do not ignore SSL certificate errors. # See also other Chrome-specific capabilities at # https://sites.google.com/a/chromium.org/chromedriver/capabilities options.add_experimental_option('excludeSwitches', [ 'ignore-certificate-errors']) return webdriver.Chrome(executable_path=args.chromedriver_binary, chrome_options=options, desired_capabilities=desired_capabilities) def setup_firefox(name, args, desired_capabilities): return webdriver.Firefox(capabilities=desired_capabilities) def setup_phantomjs(name, args, desired_capabilities): # Use PhantomJS with caution: it doesn't support proxying only HTTP # transactions (= bypassing HTTPS ones). This may reveal your username and # password to anyone who can access the proxy server, or anyone who can run # a malicious process on the machine where KCAA runs. # TODO: Support 'https' in --proxy-type in PhantomJS, and make it # distinguishable from 'http' service_args = [ '--proxy={}'.format(args.proxy), '--proxy-type=http', '--ignore-ssl-errors=true', ] browser = webdriver.PhantomJS(args.phantomjs_binary, service_args=service_args, desired_capabilities=desired_capabilities) return browser def open_browser(name, browser_type, args): desired_capabilities = get_desired_capabilities(args) browser = None if browser_type == 'chrome': browser = setup_chrome(name, args, desired_capabilities, False) elif browser_type == 'chromium': browser = setup_chrome(name, args, desired_capabilities, True) elif browser_type == 'firefox': browser = setup_firefox(name, args, desired_capabilities) elif browser_type == 'phantomjs': browser = setup_phantomjs(name, args, desired_capabilities) else: raise ValueError('Unrecognized browser: {browser}'.format( browser=browser_type)) return browser def open_kancolle_browser(args): logger.info('Opening Kancolle browser...') browser = open_browser('kancolle', args.kancolle_browser, args) browser.set_window_size(980, 750) browser.set_window_position(0, 0) logger.info('Opening the Kancolle game URL...') browser.get(KANCOLLE_URL) if args.credentials and os.path.isfile(args.credentials): logger.info('Trying to sign in with the given credentials...') with open(args.credentials, 'r') as credentials_file: user, passwd = credentials_file.read().strip().split(':') try: login_id = browser.find_element_by_id('login_id') login_id.send_keys(user) password = browser.find_element_by_id('password') password.send_keys(passwd) last_exception = None for _ in xrange(5): logger.info('Login trial...') time.sleep(1.0) try: login_button = browser.find_element_by_xpath( '//div[@class="box-btn-login"]' '//input[@type="submit"]') login_button.click() break except exceptions.NoSuchElementException: logger.info('The page must have transitioned..') break except exceptions.WebDriverException as e: last_exception = e logger.info( 'Seems like page loading failed. This may be just' 'a transient error in a browser like phantomjs. ' 'Retrying.') else: raise last_exception except Exception as e: browser.get_screenshot_as_file('screen.png') logger.error(str(e)) logger.fatal( 'Login failed. Check the generated screenshot ' '(screen.png) to see if there is any visible error.') raise e logger.info('Kancolle browser is ready.') return browser def get_game_frame(browser, debug): # Is there a better way to get this? Currently these are read from the # iframe source. game_area_width = 800 game_area_height = 480 game_area_top = 16 try: game_frame = browser.find_element_by_id('game_frame') except: return None, None, None, None dx = (game_frame.size['width'] - game_area_width) / 2 dy = game_area_top add_game_frame_cover(browser, game_area_width, game_area_height, dx, dy) # If in the debug mode, show the digitizer tools. if debug: add_digitizer(browser) location = game_frame.location left = int(location['x'] + dx) top = int(location['y'] + dy) return game_frame, dx, dy, (left, top, left + game_area_width, top + game_area_height) def add_game_frame_cover(browser, game_area_width, game_area_height, dx, dy): browser.execute_script(''' var gameFrame = document.querySelector("#game_frame"); var frameRect = gameFrame.getBoundingClientRect(); var gameFrameCover = document.createElement("div"); gameFrameCover.id = "game_frame_cover"; gameFrameCover.style.boxShadow = "0 0 50px 50px hsla(240, 80%, 20%, 0.5) inset"; gameFrameCover.style.boxSizing = "border-box"; gameFrameCover.style.color = "white"; gameFrameCover.style.display = "none"; gameFrameCover.style.fontSize = "30px"; gameFrameCover.style.height = ''' + str(game_area_height) + ''' + "px"; gameFrameCover.style.left = Math.floor(frameRect.left + ''' + str(dx) + ''') + "px"; gameFrameCover.style.padding = "20px"; gameFrameCover.style.position = "absolute"; gameFrameCover.style.textAlign = "right"; gameFrameCover.style.textShadow = "0 0 5px black"; gameFrameCover.style.top = Math.floor(frameRect.top + ''' + str(dy) + ''') + "px"; gameFrameCover.style.width = ''' + str(game_area_width) + ''' + "px"; gameFrameCover.style.zIndex = "1"; document.body.appendChild(gameFrameCover); coverText = document.createElement("span"); coverText.style.position = "relative"; coverText.style.top = "410px"; coverText.textContent = "Automatically manipulated"; gameFrameCover.appendChild(coverText); ''') def add_digitizer(browser): browser.execute_script(''' var gameFrameCover = document.querySelector("#game_frame_cover"); var digitizerDisplay = document.createElement("div"); digitizerDisplay.style.fontSize = "16px"; digitizerDisplay.style.position = "absolute"; digitizerDisplay.style.top = "42px"; var toggleButton = document.createElement("button"); toggleButton.textContent = "Toggle Cover"; toggleButton.onclick = function (e) { var isCurrentlyShown = gameFrameCover.style.display != "none"; gameFrameCover.style.display = isCurrentlyShown ? "none" : "block"; } digitizerDisplay.appendChild(toggleButton); var coordinates = document.createElement("span"); coordinates.style.marginLeft = "10px"; digitizerDisplay.appendChild(coordinates); var w = document.querySelector("#w"); w.insertBefore(digitizerDisplay, w.children[0]); gameFrameCover.onmousemove = function (e) { var frameRect = gameFrameCover.getBoundingClientRect(); var x = e.clientX - frameRect.left; var y = e.clientY - frameRect.top; coordinates.textContent = "(" + x + "," + y + ")"; } ''') def show_game_frame_cover(browser, is_shown): display = 'block' if is_shown else 'none' try: # Currently this doesn't work for some long-running environment. # It often dies with NoSichWindowExction. return True browser.execute_script(''' var gameFrameCover = document.querySelector("#game_frame_cover"); gameFrameCover.style.display = "''' + display + '''"; ''') return True except exceptions.UnexpectedAlertPresentException as e: logger.error('Unexpected alert: {}'.format(e.alert_text)) logger.debug(str(e)) return False def perform_actions(actions): try: actions.perform() return True except exceptions.UnexpectedAlertPresentException as e: logger.error('Unexpected alert: {}'.format(e.alert_text)) logger.debug(str(e)) return False def setup_kancolle_browser(args, controller_queue_in, controller_queue_out, to_exit, browser_broken): monitor = None try: logenv.setup_logger(args.debug, args.log_file, args.log_level, args.keep_timestamped_logs) monitor = BrowserMonitor( 'Kancolle', open_kancolle_browser(args), 3) # Signals the browser is ready. controller_queue_out.put(True) game_frame, dx, dy, game_area_rect = None, None, None, None covered = False while True: browser = monitor.browser if to_exit.wait(0.0): logger.info('Browser Kancolle got an exit signal. Shutting ' 'down.') break if not monitor.is_alive(): # If a user closes the Kancolle browser, it should be a signal # that the user wants to exit the game. break if game_frame: try: command_type, command_args = controller_queue_in.get(timeout=1.0) if command_type == COMMAND_CLICK: x, y = command_args x += dx y += dy actions = action_chains.ActionChains(browser) actions.move_to_element_with_offset(game_frame, x, y) actions.click(None) if covered: show_game_frame_cover(browser, False) time.sleep(0.1) perform_actions(actions) if covered: time.sleep(0.1) show_game_frame_cover(browser, True) elif command_type == COMMAND_CLICK_HOLD: logger.debug('click hold!') x, y = command_args x += dx y += dy actions = action_chains.ActionChains(browser) actions.move_to_element_with_offset(game_frame, x, y) actions.click_and_hold(None) if covered: show_game_frame_cover(browser, False) time.sleep(0.1) perform_actions(actions) elif command_type == COMMAND_CLICK_RELEASE: logger.debug('click release!') x, y = command_args x += dx y += dy actions = action_chains.ActionChains(browser) actions.move_to_element_with_offset(game_frame, x, y) actions.release(None) perform_actions(actions) if covered: time.sleep(0.1) show_game_frame_cover(browser, True) elif command_type == COMMAND_MOVE_MOUSE: logger.debug('mouse move!') x, y = command_args x += dx y += dy actions = action_chains.ActionChains(browser) actions.move_to_element_with_offset(game_frame, x, y) perform_actions(actions) elif command_type == COMMAND_COVER: is_shown = command_args[0] if is_shown != covered: show_game_frame_cover(browser, is_shown) covered = is_shown elif command_type == COMMAND_TAKE_SCREENSHOT: format, quality, width, height = command_args im_buffer = None response = '' try: im_buffer = cStringIO.StringIO( browser.get_screenshot_as_png()) im = Image.open(im_buffer) im.load() im_buffer.close() im = im.crop(game_area_rect) if width != 0 and height != 0: im.thumbnail((width, height), Image.NEAREST) im_buffer = cStringIO.StringIO() if format == 'jpeg': im.save(im_buffer, format, quality=quality) else: im.save(im_buffer, format) response = im_buffer.getvalue() except exceptions.UnexpectedAlertPresentException as e: logger.error('Unexpected alert: {}'.format( e.alert_text)) logger.debug(str(e)) finally: controller_queue_out.put(response) if im_buffer: im_buffer.close() else: raise ValueError( 'Unknown browser command: type = {}, args = {}' .format(command_type, command_args)) except Queue.Empty: pass else: game_frame, dx, dy, game_area_rect = get_game_frame( browser, args.debug) time.sleep(1.0) except (KeyboardInterrupt, SystemExit): logger.info('SIGINT received in the Kancolle browser process. ' 'Exiting...') except exceptions.NoSuchWindowException: logger.error('Kancolle window seems to have been killed.') browser_broken.set() return except: logger.error(traceback.format_exc()) finally: controller_queue_in.close() controller_queue_out.close() if monitor: monitor.quit() to_exit.set() def open_kcaa_browser(args, root_url): if not args.kcaa_browser: logger.info('Flag --kcaa_browser is set to be empty. No browser will ' 'be up locally. You can still open a KCAA Web UI with {}.' .format(root_url)) return None logger.info('Opening a KCAA browser.') browser = open_browser('kcaa', args.kcaa_browser, args) browser.set_window_size(700, 1050) browser.set_window_position(980, 0) logger.info('Opening the KCAA Web UI...') browser.get(root_url) logger.info('KCAA browser is ready.') return browser def setup_kcaa_browser(args, root_url, to_exit): monitor = None try: logenv.setup_logger(args.debug, args.log_file, args.log_level, args.keep_timestamped_logs) kcaa_browser = open_kcaa_browser(args, root_url) if not kcaa_browser: return monitor = BrowserMonitor('KCAA', kcaa_browser, 3) while True: time.sleep(1.0) if to_exit.wait(0.0): logger.info('Browser KCAA got an exit signal. Shutting down.') break if not monitor.is_alive(): # KCAA window is not vital for playing the game -- it is not # necessarily a signal for exiting. Rather, I would restart it # again, assuming that was an accident. monitor = BrowserMonitor( 'KCAA', open_kcaa_browser(args, root_url), 3) except (KeyboardInterrupt, SystemExit): logger.info('SIGINT received in the KCAA browser process. Exiting...') except: logger.error(traceback.format_exc()) to_exit.set() if monitor: monitor.quit() class BrowserMonitor(object): def __init__(self, name, browser, max_credit): self.name = name self.browser = browser self.max_credit = max_credit self.credit = max_credit def quit(self): try: self.browser.quit() except: logger.error(traceback.format_exc()) def is_alive(self): alive = True try: # Check window_handles as a heartbeat. # This seems better than current_url or title because they # interfere with Chrome developer tools. if self.browser.window_handles is None: # This won't occur (as an exception will be thrown instead) # but to make sure the above condition is evaluated. raise RuntimeError() except Exception: # Browser exited, or didn't respond. logger.debug('Browser {} not responding.'.format(self.name)) self.credit -= 1 alive = False if alive and self.credit < self.max_credit: logger.info('Browser recovered.') self.credit = self.max_credit return self.credit > 0
kcaa/kcaa
server/kcaa/browser.py
Python
apache-2.0
19,316
# Copyright 2016 Pinterest, Inc. # # 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. LOG_FORMAT = '%(asctime)s:%(levelname)s: %(message)s'
pinterest/teletraan
deploy-agent/deployd/common/__init__.py
Python
apache-2.0
640
# 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. from typing import Any from azure.common.client_factory import get_client_from_auth_file, get_client_from_json_dict from azure.common.credentials import ServicePrincipalCredentials from airflow.exceptions import AirflowException from airflow.hooks.base_hook import BaseHook class AzureBaseHook(BaseHook): """ This hook acts as a base hook for azure services. It offers several authentication mechanisms to authenticate the client library used for upstream azure hooks. :param sdk_client: The SDKClient to use. :param conn_id: The azure connection id which refers to the information to connect to the service. """ def __init__(self, sdk_client: Any, conn_id: str = 'azure_default'): self.sdk_client = sdk_client self.conn_id = conn_id super().__init__() def get_conn(self) -> Any: """ Authenticates the resource using the connection id passed during init. :return: the authenticated client. """ conn = self.get_connection(self.conn_id) key_path = conn.extra_dejson.get('key_path') if key_path: if not key_path.endswith('.json'): raise AirflowException('Unrecognised extension for key file.') self.log.info('Getting connection using a JSON key file.') return get_client_from_auth_file(client_class=self.sdk_client, auth_path=key_path) key_json = conn.extra_dejson.get('key_json') if key_json: self.log.info('Getting connection using a JSON config.') return get_client_from_json_dict(client_class=self.sdk_client, config_dict=key_json) self.log.info('Getting connection using specific credentials and subscription_id.') return self.sdk_client( credentials=ServicePrincipalCredentials( client_id=conn.login, secret=conn.password, tenant=conn.extra_dejson.get('tenantId') ), subscription_id=conn.extra_dejson.get('subscriptionId'), )
mrkm4ntr/incubator-airflow
airflow/providers/microsoft/azure/hooks/base_azure.py
Python
apache-2.0
2,806
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Item.unusable' db.add_column('Machine_item', 'unusable', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Changing field 'Item.mac3' db.alter_column('Machine_item', 'mac3', self.gf('Machine.models.MacField')()) # Changing field 'Item.mac2' db.alter_column('Machine_item', 'mac2', self.gf('Machine.models.MacField')()) # Changing field 'Item.mac1' db.alter_column('Machine_item', 'mac1', self.gf('Machine.models.MacField')()) def backwards(self, orm): # Deleting field 'Item.unusable' db.delete_column('Machine_item', 'unusable') # Changing field 'Item.mac3' db.alter_column('Machine_item', 'mac3', self.gf('django.db.models.fields.CharField')(max_length=17)) # Changing field 'Item.mac2' db.alter_column('Machine_item', 'mac2', self.gf('django.db.models.fields.CharField')(max_length=17)) # Changing field 'Item.mac1' db.alter_column('Machine_item', 'mac1', self.gf('django.db.models.fields.CharField')(max_length=17)) models = { 'LabtrackerCore.group': { 'Meta': {'object_name': 'Group'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '2616'}), 'group_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'it': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['LabtrackerCore.InventoryType']", 'null': 'True', 'blank': 'True'}), 'items': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['LabtrackerCore.Item']", 'null': 'True', 'blank': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}) }, 'LabtrackerCore.inventorytype': { 'Meta': {'object_name': 'InventoryType'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '2616'}), 'inv_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}), 'namespace': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}) }, 'LabtrackerCore.item': { 'Meta': {'object_name': 'Item'}, 'it': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['LabtrackerCore.InventoryType']"}), 'item_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}) }, 'LabtrackerCore.labuser': { 'Meta': {'object_name': 'LabUser'}, 'accesses': ('django.db.models.fields.IntegerField', [], {'default': '0'}), 'user_id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True'}) }, 'Machine.contact': { 'Meta': {'object_name': 'Contact'}, 'contact_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_primary': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'mg': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Machine.Group']"}), 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) }, 'Machine.group': { 'Meta': {'object_name': 'Group', '_ormbases': ['LabtrackerCore.Group']}, 'casting_server': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), 'core': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['LabtrackerCore.Group']", 'unique': 'True', 'primary_key': 'True'}), 'gateway': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), 'is_lab': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) }, 'Machine.history': { 'Meta': {'object_name': 'History'}, 'login_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Machine.Item']"}), 'mh_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'ms': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['Machine.Status']", 'null': 'True', 'blank': 'True'}), 'session_time': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '16', 'decimal_places': '2', 'blank': 'True'}), 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['LabtrackerCore.LabUser']"}) }, 'Machine.item': { 'Meta': {'object_name': 'Item', '_ormbases': ['LabtrackerCore.Item']}, 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'core': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['LabtrackerCore.Item']", 'unique': 'True', 'primary_key': 'True'}), 'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Machine.Location']"}), 'mac1': ('Machine.models.MacField', [], {}), 'mac2': ('Machine.models.MacField', [], {'blank': 'True'}), 'mac3': ('Machine.models.MacField', [], {'blank': 'True'}), 'manu_tag': ('django.db.models.fields.CharField', [], {'max_length': '200'}), 'purchase_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), 'status': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'machine_status'", 'symmetrical': 'False', 'to': "orm['Machine.Status']"}), 'stf_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), 'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Machine.Type']"}), 'unusable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'uw_tag': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'wall_port': ('django.db.models.fields.CharField', [], {'max_length': '25'}), 'warranty_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}) }, 'Machine.location': { 'Meta': {'object_name': 'Location'}, 'building': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True'}), 'comment': ('django.db.models.fields.CharField', [], {'max_length': '600'}), 'floor': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), 'ml_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}), 'room': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}), 'usable_threshold': ('django.db.models.fields.IntegerField', [], {'default': '95'}) }, 'Machine.platform': { 'Meta': {'object_name': 'Platform'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '400', 'blank': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}), 'platform_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) }, 'Machine.status': { 'Meta': {'unique_together': "(('ms_id', 'name'),)", 'object_name': 'Status'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '400', 'blank': 'True'}), 'ms_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '60', 'db_index': 'True'}) }, 'Machine.type': { 'Meta': {'object_name': 'Type'}, 'description': ('django.db.models.fields.CharField', [], {'max_length': '400', 'blank': 'True'}), 'model_name': ('django.db.models.fields.CharField', [], {'max_length': '60'}), 'mt_id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '60'}), 'platform': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['Machine.Platform']"}), 'specs': ('django.db.models.fields.TextField', [], {}) }, 'auth.group': { 'Meta': {'object_name': 'Group'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) }, 'auth.permission': { 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, 'auth.user': { 'Meta': {'object_name': 'User'}, 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) }, 'contenttypes.contenttype': { 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) } } complete_apps = ['Machine']
abztrakt/labtracker
Machine/migrations/0006_auto__add_field_item_unusable__chg_field_item_mac3__chg_field_item_mac.py
Python
apache-2.0
12,585
"""add metric step Revision ID: 451aebb31d03 Revises: Create Date: 2019-04-22 15:29:24.921354 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "451aebb31d03" down_revision = None branch_labels = None depends_on = None def upgrade(): op.add_column("metrics", sa.Column("step", sa.BigInteger(), nullable=False, server_default="0")) # Use batch mode so that we can run "ALTER TABLE" statements against SQLite # databases (see more info at https://alembic.sqlalchemy.org/en/latest/ # batch.html#running-batch-migrations-for-sqlite-and-other-databases) with op.batch_alter_table("metrics") as batch_op: batch_op.drop_constraint(constraint_name="metric_pk", type_="primary") batch_op.create_primary_key( constraint_name="metric_pk", columns=["key", "timestamp", "step", "run_uuid", "value"] ) def downgrade(): # This migration cannot safely be downgraded; once metric data with the same # (key, timestamp, run_uuid, value) are inserted (differing only in their `step`), we cannot # revert to a schema where (key, timestamp, run_uuid, value) is the metric primary key. pass
mlflow/mlflow
mlflow/store/db_migrations/versions/451aebb31d03_add_metric_step.py
Python
apache-2.0
1,201
# -*- coding:utf-8 -*- import csv import MSService import MSMessage import MSSession import MSModule import MSServerLogic import MSItems import math from bson.objectid import ObjectId class MSModuleGameEntrance(MSModule.Module): def __init__(self, network, dbMgr, svrDispatcher, sesTransfer): super(MSModuleGameEntrance, self).__init__(MSService.SERVICE_GAME_ENTRANCE, network, dbMgr, svrDispatcher, sesTransfer) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_FETCH_PLAYER_DATA, self.serviceID, MSService.ACTION_FETCH_ENTRANCE_DATA) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_ENTER_TREASURE_MODE, self.serviceID, MSService.ACTION_ENTER_TREASURE_MODE) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_ENTER_ADVENTURE_MODE, self.serviceID, MSService.ACTION_ENTER_ADVENTURE_MODE) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_PURCHASE_ACTOR, self.serviceID, MSService.ACTION_PURCHASE_ACTOR) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_UPGRADE_ACTOR, self.serviceID, MSService.ACTION_UPGRADE_ACTOR) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_SYNC_ACTOR, self.serviceID, MSService.ACTION_SYNC_ACTOR) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_EQUIP, self.serviceID, MSService.ACTION_EQUIP) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_UNEQUIP, self.serviceID, MSService.ACTION_UNEQUIP) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_UPGRADE_EQUIP, self.serviceID, MSService.ACTION_UPGRADE_EQUIP) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_EVOLUTE_EQUIP, self.serviceID, MSService.ACTION_EVOLUTE_EQUIP) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_SELL_EQUIP, self.serviceID, MSService.ACTION_SELL_EQUIP) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_SELL_MATERIAL, self.serviceID, MSService.ACTION_SELL_MATERIAL) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_SELL_ITEM, self.serviceID, MSService.ACTION_SELL_ITEM) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_FETCH_WEEKLY_RANK, self.serviceID, MSService.ACTION_FETCH_WEEKLY_RANK) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_FETCH_FRIEND_RANK, self.serviceID, MSService.ACTION_FETCH_FRIEND_RANK) MSMessage.RequestManager.defineRequest(MSMessage.MSG_CS_SYNC_ASSET, self.serviceID, MSService.ACTION_SYNC_ASSET) self.registerHandler(MSService.ACTION_FETCH_ENTRANCE_DATA, self.handlePlayerFetchData) self.registerHandler(MSService.ACTION_ENTER_TREASURE_MODE, self.handlePlayerEnterTreasureMode) self.registerHandler(MSService.ACTION_ENTER_ADVENTURE_MODE, self.handlePlayerEnterAdventureMode) self.registerHandler(MSService.ACTION_PURCHASE_ACTOR, self.handlePurchaseActor) self.registerHandler(MSService.ACTION_UPGRADE_ACTOR, self.handleUpgradeActor) self.registerHandler(MSService.ACTION_SYNC_ACTOR, self.handleSyncActor) self.registerHandler(MSService.ACTION_EQUIP, self.handleEquip) self.registerHandler(MSService.ACTION_UNEQUIP, self.handleUnequip) self.registerHandler(MSService.ACTION_UPGRADE_EQUIP, self.handleUpgradeEquip) self.registerHandler(MSService.ACTION_EVOLUTE_EQUIP, self.handleEvoluteEquip) self.registerHandler(MSService.ACTION_SELL_EQUIP, self.handleSellEquip) self.registerHandler(MSService.ACTION_SELL_MATERIAL, self.handleSellMaterial) self.registerHandler(MSService.ACTION_SELL_ITEM, self.handleSellItem) self.registerHandler(MSService.ACTION_SYNC_ASSET, self.handleSyncEquip) self.registerHandler(MSService.ACTION_FETCH_WEEKLY_RANK, self.handlePlayerFetchWeeklyRank) self.registerHandler(MSService.ACTION_FETCH_FRIEND_RANK, self.handlePlayerFetchFriendRank) svrDispatcher.register(self.serviceID, self) self.actorSetting = [] with open('ActorSetting.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: aset = {} aset['power'] = row[1].isdigit() and int(row[1]) or row[1] aset['hp'] = row[2].isdigit() and int(row[2]) or row[2] aset['upCost'] = row[4].isdigit() and int(row[4]) or row[4] self.actorSetting.append(aset) self.actorLimit = { "Marco" : {'max':60, 'purchase':0}, "Eri" : {'max':60, 'purchase':80000}, "Tarma" : {'max':80, 'purchase':200000}, "Fio" : {'max':100, 'purchase':250000} } self.equipMax = { '2':25, '3':30, '4':60, '4+':65, '4++':70, '4+++':75, '5':75, '5+':80, '5++':85, '5+++':90, '5++++':90, } self.nextStar = { '2':'3', '3':'4', '4':'4+', '4+':'4++', '4++':'4+++', '4+++':'5', '5':'5+', '5+':'5++', '5++':'5+++', '5+++':'5++++', } self.equipExp = [] with open('EquipExp.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: exp = 0 exp = row[1].isdigit() and int(row[1]) or 0 self.equipExp.append(exp) self.equipM1Power = {2:[], 3:[], 4:[], 5:[]} with open('EquipPowerM1.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: aset = {} self.equipM1Power[2].append(row[2].isdigit() and int(row[2]) or row[2]) self.equipM1Power[3].append(row[3].isdigit() and int(row[3]) or row[3]) self.equipM1Power[4].append(row[4].isdigit() and int(row[4]) or row[4]) self.equipM1Power[5].append(row[5].isdigit() and int(row[5]) or row[5]) self.equipM1Price = {2:[], 3:[], 4:[], 5:[]} with open('EquipPriceM1.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: aset = {} self.equipM1Price[2].append(row[2].isdigit() and int(row[2]) or row[2]) self.equipM1Price[3].append(row[3].isdigit() and int(row[3]) or row[3]) self.equipM1Price[4].append(row[4].isdigit() and int(row[4]) or row[4]) self.equipM1Price[5].append(row[5].isdigit() and int(row[5]) or row[5]) self.equipM2Power = {2:[], 3:[], 4:[], 5:[]} with open('EquipPowerM2.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: aset = {} self.equipM2Power[2].append(row[2].isdigit() and int(row[2]) or row[2]) self.equipM2Power[3].append(row[3].isdigit() and int(row[3]) or row[3]) self.equipM2Power[4].append(row[4].isdigit() and int(row[4]) or row[4]) self.equipM2Power[5].append(row[5].isdigit() and int(row[5]) or row[5]) self.equipM2Price = {2:[], 3:[], 4:[], 5:[]} with open('EquipPriceM2.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: aset = {} self.equipM2Price[2].append(row[2].isdigit() and int(row[2]) or row[2]) self.equipM2Price[3].append(row[3].isdigit() and int(row[3]) or row[3]) self.equipM2Price[4].append(row[4].isdigit() and int(row[4]) or row[4]) self.equipM2Price[5].append(row[5].isdigit() and int(row[5]) or row[5]) self.equipM3Power = {2:[], 3:[], 4:[], 5:[]} with open('EquipPowerM3.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: aset = {} self.equipM3Power[2].append(row[2].isdigit() and int(row[2]) or row[2]) self.equipM3Power[3].append(row[3].isdigit() and int(row[3]) or row[3]) self.equipM3Power[4].append(row[4].isdigit() and int(row[4]) or row[4]) self.equipM3Power[5].append(row[5].isdigit() and int(row[5]) or row[5]) self.equipM3Price = {2:[], 3:[], 4:[], 5:[]} with open('EquipPriceM3.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: aset = {} self.equipM3Price[2].append(row[2].isdigit() and int(row[2]) or row[2]) self.equipM3Price[3].append(row[3].isdigit() and int(row[3]) or row[3]) self.equipM3Price[4].append(row[4].isdigit() and int(row[4]) or row[4]) self.equipM3Price[5].append(row[5].isdigit() and int(row[5]) or row[5]) self.matMgAl = { 1 : (1000,100), 2 : (1300,130), 3 : (1600,160), 4 : (1900,190), 5 : (2200,220), } self.matTuSt = { 1 : (2800,280), 2 : (3400,340), 3 : (4000,400), 4 : (4600,460), 5 : (5200,520), } self.matTicr = { 1 : (6100,610), 2 : (7000,700), 3 : (7900,790), 5 : (9700,880), 4 : (8800,970), } # sub-class implement this method. def onSessionOpen(self, session): #self.transferCallback(session, MSModule.MSPLAYER_STAGE_REGISTER) print ('session opened in GameEntrance %s')%(session.data['Nick']) # sub-class implement this method. def onSessionClose(self, session): #self.transferCallback(session, MSModule.MSPLAYER_STAGE_REGISTER) print ('session closed in GameEntrance %s')%(session.data['Nick']) def packEquip(self, equip): return [equip['_id'], equip['type'],equip['level'],equip['star'],equip['exp']] def unpackEquip(self, equip): ret = {} ret['_id'] = equip[0] ret['type'] = equip[1] ret['level'] = equip[2] ret['star'] = equip[3] ret['exp'] = equip[4] return ret def packItem(self, item): ret = [] for v in item: d = [v['type'], v['count']] ret.append(d) return ret def unpackItem(self, item): ret = [] for v in item: d = {} d['type'] = v[0] d['count'] = v[1] ret.append(d) return ret def packMaterial(self, mat): ret = [] for v in mat: d = [] if MSItems.isExpMaterial(v['type']): d = [v['type'], v['level'], v['count']] else: d = [v['type'], v['count']] ret.append(d) return ret def unpackMaterial(self, mat): ret = [] for v in mat: d = {} if MSItems.isExpMaterial(v[0]): d['type'] = v[0] d['level'] = v[1] d['count'] = v[2] else: d['type'] = v[0] d['count'] = v[1] ret.append(d) return ret def getEquipPower(self, typ, star, level): if typ == MSItems.MSWEAPON_TYPE_MACHINEGUN or typ == MSItems.MSARMOR_TYPE_STRIKE or typ == MSItems.MSWEAPON_TYPE_DESERT_FOX: return self.equipM1Power[star][level-1] if typ == MSItems.MSWEAPON_TYPE_SHOTGUN or typ == MSItems.MSARMOR_TYPE_THUNDER or typ == MSItems.MSWEAPON_TYPE_DEATH_PULSE: return self.equipM2Power[star][level-1] if typ == MSItems.MSWEAPON_TYPE_LASERGUN or typ == MSItems.MSARMOR_TYPE_GUARDIAN or typ == MSItems.MSWEAPON_TYPE_MISSILE: return self.equipM3Power[star][level-1] def getMaterialSetting(self, typ, level): if typ == MSItems.MSITEM_TYPE_MGALALLOY: return self.matMgAl[level] if typ == MSItems.MSITEM_TYPE_TUNGSTENSTEEL: return self.matTuSt[level] if typ == MSItems.MSITEM_TYPE_TICRALLOY: return self.matTicr[level] def handlePlayerFetchData(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: data = {} pdata = self.database.fetchPlayerData(ses.data['_id']) if pdata != None: # fetch data: data = pdata mainArs = [] secArs = [] armoArs = [] for d in pdata['Arsenal']['Main']: mainArs.append(self.packEquip(d)) data['Arsenal']['Main'] = mainArs for d in pdata['Arsenal']['Secondary']: secArs.append(self.packEquip(d)) data['Arsenal']['Secondary'] = secArs for d in pdata['Arsenal']['Armor']: armoArs.append(self.packEquip(d)) data['Arsenal']['Armor'] = armoArs if pdata['Equip']['Main'] != None: data['Equip']['Main'] = self.packEquip(pdata['Equip']['Main']) if pdata['Equip']['Secondary'] != None: data['Equip']['Secondary'] = self.packEquip(pdata['Equip']['Secondary']) if pdata['Equip']['Armor'] != None: data['Equip']['Armor'] = self.packEquip(pdata['Equip']['Armor']) data['Material'] = self.packMaterial(pdata['Material']) data['Items'] = self.packItem(pdata['Items']) # ranking ranking = self.database.getTreasureRank() data['Ranking'] = ranking data['_id'] = str(ses.data['_id']) data['Nick'] = ses.data['Nick'] data['LastSpGenTime'] = ses.data['LastSpGenTime'] self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_PLAYER_DATA, data)) else: data['msg'] = 'Invalid player state' self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_FETCH_DENY, data)) else: data = {} data['msg'] = 'Access denied' self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_FETCH_DENY, data)) self.network.close(owner) def handlePurchaseActor(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = rqst.data.get('pid', None) actor = rqst.data.get('actor') if pid == None or actor == None: return if pid != str(ses.data['_id']): return actorLimit = self.actorLimit.get(actor, None) if actorLimit == None: return pprop = self.database.fetchPlayerProperty(ses.data['_id']) if pprop['Coins'] < actorLimit['purchase']: return else: pprop['Coins'] = pprop['Coins'] - actorLimit['purchase'] self.database.updatePlayerProperty(ses.data['_id'], pprop) self.database.unlockPlayerActor(ses.data['_id'], actor) except: print '%d purchase actor failed'%(owner) def handleUpgradeActor(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = rqst.data.get('pid', None) actor = rqst.data.get('actor') if pid == None or actor == None: return if pid != str(ses.data['_id']): return actorLimit = self.actorLimit.get(actor, None) if actorLimit == None: return adata = self.database.fetchPlayerActor(ses.data['_id'], actor) pprop = self.database.fetchPlayerProperty(ses.data['_id']) if adata == None or adata == {} or adata.get('Actor',None) == None: return else: adata = adata['Actor'][actor] if adata['level'] < actorLimit['max']: cost = self.actorSetting[adata['level']]['upCost'] if pprop['Coins'] < cost: return else: pprop['Coins'] = pprop['Coins'] - cost adata['level'] = adata['level'] + 1 adata['hp'] = self.actorSetting[adata['level']]['hp'] adata['power'] = self.actorSetting[adata['level']]['power'] self.database.updatePlayerProperty(ses.data['_id'], pprop) self.database.updatePlayerActor(ses.data['_id'], actor, adata) except: print '%d upgrade actor failed'%(owner) def handleSyncActor(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = rqst.data.get('pid', None) if pid == None: return if pid != str(ses.data['_id']): return abank = self.database.fetchPlayerActorBank(ses.data['_id']) data = rqst.data if data['Actor'] == abank: inUsed = abank.get(data['ActorInUse'], None) if inUsed != None and inUsed['unlocked'] == True: self.database.setActorInUse(ses.data['_id'], data['ActorInUse']) self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ACTOR_CONFIRM, {})) return self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ACTOR_DENY, {})) self.network.close(owner) except: print '%d sync actor failed'%(owner) self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ACTOR_DENY, {})) def handleEquip(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: part = rqst.data['part'] pid = ObjectId(rqst.data['pid']) if pid == ses.data['_id'] and part != '': eqp = self.database.takeEquipFromArsenel(pid, part, rqst.data['id']) #print eqp if eqp != None: self.database.equip(pid, part, eqp) except: print '%d equip failed'%(owner) def handleUnequip(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: part = rqst.data['part'] pid = ObjectId(rqst.data['pid']) if pid == ses.data['_id'] and part != '': eqp = self.database.unequip(pid, part) if eqp != None: self.database.addEquipToArsenal(pid, part, eqp) except: print '%d unequip failed'%(owner) def handleUpgradeEquip(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) if pid != ses.data['_id']: return matData = self.database.fetchPlayerItemData(pid)['Material'] totalExp = 0 for i in matData: for j in rqst.data['mat']: if j['type'] == i['type'] and j['level'] == i['level']: if j['count'] > i['count']: return else: totalExp += self.getMaterialSetting(j['type'], j['level'])[0] * j['count'] i['count'] -= j['count'] # remove whose count is 0: rev = range(len(matData)) rev.reverse() for i in rev: if matData[i]['count'] == 0: del matData[i] part = rqst.data['p'] lvlLimit = 0 expectLvl = 0 eqp = None if rqst.data['e']: eqp = self.database.unequip(pid, part) else: eqp = self.database.takeEquipFromArsenel(pid, part, rqst.data['t']['_id']) lvlLimit = self.equipMax[eqp['star']] curExp = eqp['exp'] + totalExp for i in range(eqp['level'], lvlLimit + 1): expectLvl = i if self.equipExp[i - 1] > curExp: expectLvl = i - 1 break if expectLvl >= lvlLimit: expectLvl = lvlLimit curExp = self.equipExp[lvlLimit - 1] eqp['exp'] = curExp eqp['level'] = expectLvl if rqst.data['e']: self.database.equip(pid, part, eqp) self.database.updatePlayerMaterial(pid, matData) else: self.database.addEquipToArsenal(pid, part, eqp) self.database.updatePlayerMaterial(pid, matData) except: print '%d updrade equip failed'%(owner) def handleEvoluteEquip(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) if pid != ses.data['_id']: return # 检查参数 _s = rqst.data['s'] _e = rqst.data['e'] if _s != 0 and _s != 1: return part = rqst.data['p'] eqp = None elemData = self.database.fetchPlayerItemData(pid)['Element'] if rqst.data['e']: eqp = self.database.unequip(pid, part) else: eqp = self.database.takeEquipFromArsenel(pid, part, rqst.data['t']['_id']) # 检查材料合法性. if rqst.data['s'] == 1: # 升星 try: elem = MSItems.getEvoElement(eqp['star']) for i in elem: for j in elemData: if i == j['type']: if j['count'] >= 1: j['count'] -= 1 else: raise Exception() nextStar = self.nextStar[eqp['star']] eqp['star'] = nextStar self.database.updatePlayerElementData(pid, elemData) except: # 放回装备 if rqst.data['e']: self.database.equip(pid, part, eqp) else: self.database.addEquipToArsenal(pid, part, eqp) self.database.updatePlayerElementData(pid, elemData) raise else: try: plus = eqp['star'][1:] eqCount = None if plus == '': eqCount = 1 elif plus == '+': eqCount = 2 elif plus == '++': eqCount = 1 takedEqp = [] if eqCount != len(rqst.data['src']): raise Exception() for i in rqst.data['src']: tmpEq = self.database.takeEquipFromArsenel(pid, part, i) if tmpEq['star'] != eqp['star'] or tmpEq['type'] != eqp['type']: raise Exception() takedEqp.append(tmpEq) nextStar = self.nextStar[eqp['star']] eqp['star'] = nextStar except: # 放回装备 if rqst.data['e']: self.database.equip(pid, part, eqp) else: self.database.addEquipToArsenal(pid, part, eqp) for i in takedEqp: if i != None: self.database.addEquipToArsenal(pid, part, i) raise if rqst.data['e']: self.database.equip(pid, part, eqp) else: self.database.addEquipToArsenal(pid, part, eqp) except: print '%d evolute equip failed'%(owner) def handleSellEquip(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: part = rqst.data['part'] pid = ObjectId(rqst.data['pid']) if pid != ses.data['_id']: return #print rqst.data if part != '': eqList = [] for d in rqst.data['id']: eqList.append(self.database.takeEquipFromArsenel(pid, part, d)) totalPrice = 0 for e in eqList: if e != None: star = int(e['star'][0:1]) typ = e['type'] if typ == MSItems.MSWEAPON_TYPE_MACHINEGUN or typ == MSItems.MSARMOR_TYPE_STRIKE or typ == MSItems.MSWEAPON_TYPE_DESERT_FOX: totalPrice += self.equipM1Price[star][e['level']-1] elif typ == MSItems.MSWEAPON_TYPE_SHOTGUN or typ == MSItems.MSARMOR_TYPE_THUNDER or typ == MSItems.MSWEAPON_TYPE_DEATH_PULSE: totalPrice += self.equipM2Price[star][e['level']-1] elif typ == MSItems.MSWEAPON_TYPE_LASERGUN or typ == MSItems.MSARMOR_TYPE_GUARDIAN or typ == MSItems.MSWEAPON_TYPE_MISSILE: totalPrice += self.equipM3Price[star][e['level']-1] else: break if totalPrice == rqst.data['price']: pprop = self.database.fetchPlayerProperty(pid) pprop['Coins'] = pprop['Coins'] + totalPrice self.database.updatePlayerProperty(pid, pprop) except: print '%d sell equip failed'%(owner) def handleSellMaterial(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) if not ObjectId.is_valid(pid): return matData = self.database.fetchPlayerItemData(pid)['Material'] price = 0 for i in matData: for j in rqst.data['mat']: if j['type'] == i['type'] and j['level'] == i['level']: if j['count'] > i['count']: return else: price += self.getMaterialSetting(j['type'], j['level'])[1] * j['count'] i['count'] -= j['count'] # remove whose count is 0: rev = range(len(matData)) rev.reverse() for i in rev: if matData[i]['count'] == 0: del matData[i] if price == rqst.data['price']: pprop = self.database.fetchPlayerProperty(pid) pprop['Coins'] = pprop['Coins'] + price self.database.updatePlayerProperty(pid, pprop) self.database.updatePlayerMaterial(pid, matData) except: print '%d sell material failed'%(owner) def handleSellItem(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pass except: print '%d sell item failed'%(owner) def handleSyncEquip(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) valid = True if pid != ses.data['_id']: self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ASSET_DENY,{})) return pprop = self.database.fetchPlayerProperty(pid) if pprop['Coins'] != rqst.data['coins']: valid = False self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ASSET_DENY,{})) self.network.close(owner) return equip = self.database.fetchPlayerEquipData(pid) #print equip arsenal = self.database.fetchPlayerArsenalData(pid) #print arsenal ceqp = {'Armor':None, 'Secondary':None, 'Main':None} if rqst.data.get('Equip', None) != None and rqst.data['Equip'] != []: if rqst.data['Equip'].get('Armor', None) != None: ceqp['Armor'] = self.unpackEquip(rqst.data['Equip']['Armor']) if rqst.data['Equip'].get('Secondary', None) != None: ceqp['Secondary'] = self.unpackEquip(rqst.data['Equip']['Secondary']) if rqst.data['Equip'].get('Main', None) != None: ceqp['Main'] = self.unpackEquip(rqst.data['Equip']['Main']) cars = {'Armor':[], 'Secondary':[], 'Main':[]} for a in rqst.data['Arsenal']['Armor']: cars['Armor'].append(self.unpackEquip(a)) for s in rqst.data['Arsenal']['Secondary']: cars['Secondary'].append(self.unpackEquip(s)) for m in rqst.data['Arsenal']['Main']: cars['Main'].append(self.unpackEquip(m)) equipValid = False arsValid = False if equip == ceqp: equipValid = True cdict = { 'Main':{}, 'Secondary':{}, 'Armor':{}, } for i in cars['Main']: cdict['Main'][i['_id']] = i for i in cars['Secondary']: cdict['Secondary'][i['_id']] = i for i in cars['Armor']: cdict['Armor'][i['_id']] = i sdict = { 'Main':{}, 'Secondary':{}, 'Armor':{}, } for i in arsenal['Main']: sdict['Main'][i['_id']] = i for i in arsenal['Secondary']: sdict['Secondary'][i['_id']] = i for i in arsenal['Armor']: sdict['Armor'][i['_id']] = i if cdict == sdict: arsValid = True if equipValid and arsValid: self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ASSET_CONFIRM, {})) else: if not equipValid: print ceqp print equip if not arsValid: print cdict print sdict self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ASSET_DENY,{})) self.network.close(owner) except: print '%d sync equip failed'%(owner) self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_SYNC_ASSET_DENY,{})) self.network.close(owner) #print rqst.data def handlePlayerEnterTreasureMode(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) valid = True if pid != ses.data['_id']: return equip = self.database.fetchPlayerEquipData(pid) if equip['Armor'] != None: star = int(equip['Armor']['star'][0:1]) a = { '_id':equip['Armor']['_id'], 'level':equip['Armor']['level'], 'type':equip['Armor']['type'], 'power':self.getEquipPower(equip['Armor']['type'], star, equip['Armor']['level']), 'star':equip['Armor']['star'], } if a != rqst.data['Equip']['Armor']: raise Exception() if equip['Main'] != None: star = int(equip['Main']['star'][0:1]) m = { '_id':equip['Main']['_id'], 'level':equip['Main']['level'], 'type':equip['Main']['type'], 'power':self.getEquipPower(equip['Main']['type'], star, equip['Main']['level']), 'star':equip['Main']['star'], } if m != rqst.data['Equip']['Main']: raise Exception() if equip['Secondary'] != None: star = int(equip['Secondary']['star'][0:1]) s = { '_id':equip['Secondary']['_id'], 'level':equip['Secondary']['level'], 'type':equip['Secondary']['type'], 'power':self.getEquipPower(equip['Secondary']['type'], star, equip['Secondary']['level']), 'star':equip['Secondary']['star'], } if s != rqst.data['Equip']['Secondary']: raise Exception() self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_ENTER_TREASURE_MODE_CONFIRM, {})) self.transferCallback(ses, MSModule.MSPLAYER_STAGE_GAME_TREASURE_MODE) except: print '%d enter treasure failed'%(owner) def handlePlayerEnterAdventureMode(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) valid = True if pid != ses.data['_id']: return equip = self.database.fetchPlayerEquipData(pid) if equip['Armor'] != None: star = int(equip['Armor']['star'][0:1]) a = { '_id':equip['Armor']['_id'], 'level':equip['Armor']['level'], 'type':equip['Armor']['type'], 'power':self.getEquipPower(equip['Armor']['type'], star, equip['Armor']['level']), 'star':equip['Armor']['star'], } if a != rqst.data['Equip']['Armor']: raise Exception() if equip['Main'] != None: star = int(equip['Main']['star'][0:1]) m = { '_id':equip['Main']['_id'], 'level':equip['Main']['level'], 'type':equip['Main']['type'], 'power':self.getEquipPower(equip['Main']['type'], star, equip['Main']['level']), 'star':equip['Main']['star'], } if m != rqst.data['Equip']['Main']: raise Exception() if equip['Secondary'] != None: star = int(equip['Secondary']['star'][0:1]) s = { '_id':equip['Secondary']['_id'], 'level':equip['Secondary']['level'], 'type':equip['Secondary']['type'], 'power':self.getEquipPower(equip['Secondary']['type'], star, equip['Secondary']['level']), 'star':equip['Secondary']['star'], } if s != rqst.data['Equip']['Secondary']: raise Exception() self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_ENTER_ADVENTURE_MODE_CONFIRM, {})) self.transferCallback(ses, MSModule.MSPLAYER_STAGE_GAME_ADVENTURE_MODE) except: print '%d enter adventure failed'%(owner) def handlePlayerFetchWeeklyRank(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) if pid != ses.data['_id']: return rank = self.database.getTreasureRank() uid = ses.data['uid'] pIndex = 0 for i in range(len(rank)): if rank[i]['uid'] == uid: pIndex = i break base = max(0, pIndex - 10) data = { 'base':base, 'rank':rank[base:base+20] } self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_WEEKLY_RANK, data)) except: raise print ('fetch week rank failed %s')%(ses.data['Nick']) def handlePlayerFetchFriendRank(self, rqst, owner): ses = self.sessions.get(owner, None) if ses != None: try: pid = ObjectId(rqst.data['pid']) if pid != ses.data['_id']: return rank = self.database.getTreasureRank() uid = ses.data['uid'] pFriend = self.database.getPlayerFriends(ses.data['_id']) fRank = [] for i in pFriend: for j in rank: if j['uid'] == i: fRank.append(j) break pIndex = 0 playerInRank = False for i in rank: if i['uid'] == uid: fRank.append(i) playerInRank = True break if not playerInRank: playerData = self.database.fetchPlayerData(pid) actorName = playerData['actorInUse'] playerActor = playerData['Actor'][actorName] fRank.append({ 'actor': actorName, 'level': playerActor['level'], 'nick': ses.data['Nick'], 'score': 0, 'uid': uid, }) fRank.sort(key = lambda x: x['score']) fRank.reverse() data = { 'base':0, 'rank':fRank } self.network.send(owner, MSMessage.packMessage(MSMessage.MSG_SC_FRIEND_RANK, data)) except: print ('fetch friend rank failed %s')%(ses.data['Nick'])
liaow10/MetalStrike
server/MSModuleGameEntrance.py
Python
apache-2.0
30,423
from celery.task import task from celery.log import get_default_logger from celery import group, chain, chord from celeryconfig import config import pyes import urlparse import hashlib import traceback import subprocess import os import copy import pprint log = get_default_logger() conn = pyes.ES( config['elasticsearch']['host']+":"+config['elasticsearch']['port'], timeout=config['elasticsearch']['timeout'], bulk_size=config['elasticsearch']['bulk_size'] ) INDEX_NAME = config['elasticsearch']['index_name'] DOC_TYPE = config['elasticsearch']['doc_type'] def md5_hash(text): return hashlib.md5(text).hexdigest() def _send_doc(doc, doc_id): update_function = """ if(title != null){ctx._source.title = title;} if(description != null){ctx._source.description = description;} if(publisher != null){ctx._source.publisher = publisher;} for(String key : keys){ if(!ctx._source.keys.contains(key)){ ctx._source.keys.add(key); } } for(String key : standards){ if(!ctx._source.standards.contains(key)){ ctx._source.standards.add(key); } } for(String key : mediaFeatures){ if(!ctx._source.mediaFeatures.contains(key)){ ctx._source.mediaFeatures.add(key); } } for(String key : accessMode){ if(!ctx._source.accessMode.contains(key)){ ctx._source.accessMode.add(key); } } for(String grade : grades){ if(!ctx._source.grades.contains(grade)){ ctx._source.grades.add(grade); } }""" for k, v in [('publisher', None), ('mediaFeatures', []), ('accessMode', []), ("description", None), ('standards', []), ('grades', [])]: if k not in doc: doc[k] = v doc['keys'] = set([x for x in doc.get('keys', []) if x is not None]) doc['grades'] = set([x for x in doc.get('grades', []) if x is not None]) doc['standards'] = set([x for x in doc.get('standards', []) if x is not None]) if(doc['url']): doc['url_domain'] = urlparse.urlparse(doc['url']).netloc updateResponse = conn.partial_update(INDEX_NAME, DOC_TYPE, doc_id, update_function, upsert=doc, params=doc) print(updateResponse) def indexDoc(envelope, config, parsedDoc): try: if parsedDoc: doc = copy.deepcopy(parsedDoc) doc_id = md5_hash(envelope.get('resource_locator')) doc['keys'].append(envelope.get('identity', {}).get("owner")) _send_doc(doc, doc_id) except Exception as ex: traceback.print_exc() # !!! save_image is effectively an empty stub, when the time comes we can call it again # save_image.delay(envelope.get('resource_locator')) #normalize casing on all the schemas in the payload_schema array, if payload_schema isn't present use an empty array @task(queue="image") def save_image(url): doc_id = md5_hash(url) # p = subprocess.Popen(" ".xvfb-run", "--auto-servernum", "--server-num=1", "python", "screenshots.py", url, doc_id]), shell=True, cwd=os.getcwd(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) # filename = p.communicate() # print(filename)
navnorth/LR-Data
src/tasks/elasticsearch/save.py
Python
apache-2.0
3,270
# Copyright 2019 Microsoft Corporation # # 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. # # Requires Python 2.6+ and Openssl 1.0+ # import unittest from azurelinuxagent.common.osutil.suse import SUSE11OSUtil from tests.tools import AgentTestCase from .test_default import osutil_get_dhcp_pid_should_return_a_list_of_pids class TestSUSE11OSUtil(AgentTestCase): def setUp(self): AgentTestCase.setUp(self) def tearDown(self): AgentTestCase.tearDown(self) def test_get_dhcp_pid_should_return_a_list_of_pids(self): osutil_get_dhcp_pid_should_return_a_list_of_pids(self, SUSE11OSUtil()) if __name__ == '__main__': unittest.main()
Azure/WALinuxAgent
tests/common/osutil/test_suse.py
Python
apache-2.0
1,168
# Copyright 2015 Mirantis Inc. # All Rights Reserved. # # 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 random import time from oslo_config import cfg from rally.benchmark.scenarios import base from rally.benchmark import utils as bench_utils from rally import exceptions MANILA_BENCHMARK_OPTS = [ cfg.FloatOpt( "manila_share_create_prepoll_delay", default=2.0, help="Delay between creating Manila share and polling for its " "status."), cfg.FloatOpt( "manila_share_create_timeout", default=300.0, help="Timeout for Manila share creation."), cfg.FloatOpt( "manila_share_create_poll_interval", default=3.0, help="Interval between checks when waiting for Manila share " "creation."), cfg.FloatOpt( "manila_share_delete_timeout", default=180.0, help="Timeout for Manila share deletion."), cfg.FloatOpt( "manila_share_delete_poll_interval", default=2.0, help="Interval between checks when waiting for Manila share " "deletion."), ] CONF = cfg.CONF benchmark_group = cfg.OptGroup(name="benchmark", title="benchmark options") CONF.register_opts(MANILA_BENCHMARK_OPTS, group=benchmark_group) class ManilaScenario(base.Scenario): """Base class for Manila scenarios with basic atomic actions.""" @base.atomic_action_timer("manila.create_share") def _create_share(self, share_proto, size=1, **kwargs): """Create a share. :param share_proto: share protocol for new share, available values are NFS, CIFS, GlusterFS and HDFS. :param size: size of a share in GB :param snapshot_id: ID of the snapshot :param name: name of new share :param description: description of a share :param metadata: optional metadata to set on share creation :param share_network: either instance of ShareNetwork or str with ID :param share_type: either instance of ShareType or str with ID :param is_public: defines whether to set share as public or not. :returns: instance of :class:`Share` """ if (self.context and self.context.get("tenant", {}).get("share_networks", []) and not kwargs.get("share_network")): kwargs["share_network"] = next(self.context.get("tenant", {}).get( "sn_iterator")) if not kwargs.get("name"): kwargs["name"] = self._generate_random_name() share = self.clients("manila").shares.create( share_proto, size, **kwargs) time.sleep(CONF.benchmark.manila_share_create_prepoll_delay) share = bench_utils.wait_for( share, is_ready=bench_utils.resource_is("available"), update_resource=bench_utils.get_from_manager(), timeout=CONF.benchmark.manila_share_create_timeout, check_interval=CONF.benchmark.manila_share_create_poll_interval, ) return share @base.atomic_action_timer("manila.delete_share") def _delete_share(self, share): """Delete the given share. :param share: :class:`Share` """ share.delete() error_statuses = ("error_deleting", ) bench_utils.wait_for_delete( share, update_resource=bench_utils.get_from_manager(error_statuses), timeout=CONF.benchmark.manila_share_delete_timeout, check_interval=CONF.benchmark.manila_share_delete_poll_interval) @base.atomic_action_timer("manila.list_shares") def _list_shares(self, detailed=True, search_opts=None): """Returns user shares list. :param detailed: defines either to return detailed list of objects or not. :param search_opts: container of search opts such as "name", "host", "share_type", etc. """ return self.clients("manila").shares.list( detailed=detailed, search_opts=search_opts) @base.atomic_action_timer("manila.set_metadata") def _set_metadata(self, share, sets=1, set_size=1, key_min_length=1, key_max_length=255, value_min_length=1, value_max_length=1023): """Sets share metadata. :param share: the share to set metadata on :param sets: how many operations to perform :param set_size: number of metadata keys to set in each operation :param key_min_length: minimal size of metadata key to set :param key_max_length: maximum size of metadata key to set :param value_min_length: minimal size of metadata value to set :param value_max_length: maximum size of metadata value to set :returns: A list of keys that were set """ if not (key_min_length <= key_max_length and value_min_length <= value_max_length): raise exceptions.InvalidArgumentsException( "Min length for keys and values of metadata can not be bigger " "than maximum length.") elif key_min_length not in range(1, 256): raise exceptions.InvalidArgumentsException( "key_min_length '%s' is not in range(1, 256)" % key_min_length) elif key_max_length not in range(1, 256): raise exceptions.InvalidArgumentsException( "key_max_length '%s' is not in range(1, 256)" % key_max_length) elif value_min_length not in range(1, 1024): raise exceptions.InvalidArgumentsException( "value_min_length '%s' is not in range(1, 1024)" % value_min_length) elif value_max_length not in range(1, 1024): raise exceptions.InvalidArgumentsException( "value_max_length '%s' is not in range(1, 1024)" % value_max_length) keys = [] for i in range(sets): metadata = {} for j in range(set_size): if key_min_length == key_max_length: key_length = key_min_length else: key_length = random.choice( range(key_min_length, key_max_length)) if value_min_length == value_max_length: value_length = value_min_length else: value_length = random.choice( range(value_min_length, value_max_length)) key = self._generate_random_name(prefix="", length=key_length) keys.append(key) metadata[key] = self._generate_random_name( prefix="", length=value_length) self.clients("manila").shares.set_metadata(share, metadata) return keys @base.atomic_action_timer("manila.delete_metadata") def _delete_metadata(self, share, keys, deletes=10, delete_size=3): """Deletes share metadata. :param share: The share to delete metadata from :param deletes: how many operations to perform :param delete_size: number of metadata keys to delete in each operation :param keys: a list of keys to choose deletion candidates from """ if not keys: raise exceptions.InvalidArgumentsException( "Param 'keys' should be list with values. keys = '%s'" % keys) elif len(keys) < deletes * delete_size: raise exceptions.InvalidArgumentsException( "Not enough metadata keys to delete: " "%(num_keys)s keys, but asked to delete %(num_deletes)s" % {"num_keys": len(keys), "num_deletes": deletes * delete_size}) for i in range(deletes): to_del = keys[i * delete_size:(i + 1) * delete_size] self.clients("manila").shares.delete_metadata(share, to_del) @base.atomic_action_timer("manila.create_share_network") def _create_share_network(self, neutron_net_id=None, neutron_subnet_id=None, nova_net_id=None, name=None, description=None): """Create share network. :param neutron_net_id: ID of Neutron network :param neutron_subnet_id: ID of Neutron subnet :param nova_net_id: ID of Nova network :param name: share network name :param description: share network description :returns: instance of :class:`ShareNetwork` """ share_network = self.clients("manila").share_networks.create( neutron_net_id=neutron_net_id, neutron_subnet_id=neutron_subnet_id, nova_net_id=nova_net_id, name=name, description=description) return share_network @base.atomic_action_timer("manila.delete_share_network") def _delete_share_network(self, share_network): """Delete share network. :param share_network: instance of :class:`ShareNetwork`. """ share_network.delete() bench_utils.wait_for_delete( share_network, update_resource=bench_utils.get_from_manager(), timeout=CONF.benchmark.manila_share_delete_timeout, check_interval=CONF.benchmark.manila_share_delete_poll_interval) @base.atomic_action_timer("manila.list_share_networks") def _list_share_networks(self, detailed=True, search_opts=None): """List share networks. :param detailed: defines either to return detailed list of objects or not. :param search_opts: container of search opts such as "project_id" and "name". :returns: list of instances of :class:`ShareNetwork` """ share_networks = self.clients("manila").share_networks.list( detailed=detailed, search_opts=search_opts) return share_networks @base.atomic_action_timer("manila.list_share_servers") def _list_share_servers(self, search_opts=None): """List share servers. Admin only. :param search_opts: set of key-value pairs to filter share servers by. Example: {"share_network": "share_network_name_or_id"} :returns: list of instances of :class:`ShareServer` """ share_servers = self.clients("manila").share_servers.list( search_opts=search_opts) return share_servers @base.atomic_action_timer("manila.create_security_service") def _create_security_service(self, type, dns_ip=None, server=None, domain=None, user=None, password=None, name=None, description=None): """Create security service. 'Security service' is data container in Manila that stores info about auth services 'Active Directory', 'Kerberos' and catalog service 'LDAP' that should be used for shares. :param type: security service type, permitted values are 'ldap', 'kerberos' or 'active_directory'. :param dns_ip: dns ip address used inside tenant's network :param server: security service server ip address or hostname :param domain: security service domain :param user: security identifier used by tenant :param password: password used by user :param name: security service name :param description: security service description :returns: instance of :class:`SecurityService` """ security_service = self.clients("manila").security_services.create( type=type, dns_ip=dns_ip, server=server, domain=domain, user=user, password=password, name=name, description=description) return security_service @base.atomic_action_timer("manila.delete_security_service") def _delete_security_service(self, security_service): """Delete security service. :param security_service: instance of :class:`SecurityService`. """ security_service.delete() bench_utils.wait_for_delete( security_service, update_resource=bench_utils.get_from_manager(), timeout=CONF.benchmark.manila_share_delete_timeout, check_interval=CONF.benchmark.manila_share_delete_poll_interval) @base.atomic_action_timer("manila.add_security_service_to_share_network") def _add_security_service_to_share_network(self, share_network, security_service): """Associate given security service with a share network. :param share_network: ID or instance of :class:`ShareNetwork`. :param security_service: ID or instance of :class:`SecurityService`. :returns: instance of :class:`ShareNetwork`. """ share_network = self.clients( "manila").share_networks.add_security_service( share_network, security_service) return share_network
vponomaryov/rally
rally/plugins/openstack/scenarios/manila/utils.py
Python
apache-2.0
13,527
import datetime import pytest from qarnot.status import Status from .mock_status import default_json_status class TestStatusProperties: @pytest.mark.parametrize("property_name, expected_value", [ ("last_update_timestamp", default_json_status["lastUpdateTimestamp"]), ]) def test_create_status_hydrate_property_values(self, property_name, expected_value): status = Status(default_json_status) assert getattr(status, property_name) == expected_value @pytest.mark.parametrize("property_names, expected_value", [ (["running_instances_info", "snapshot_results"], default_json_status["runningInstancesInfo"]["snapshotResults"]), (["running_instances_info", "running_core_count_by_cpu_model"], default_json_status["runningInstancesInfo"]["runningCoreCountByCpuModel"]), (["execution_time_by_cpu_model", 0, "model"], default_json_status["executionTimeByCpuModel"][0]["model"]), (["execution_time_by_cpu_model", 0, "time"], default_json_status["executionTimeByCpuModel"][0]["time"]), (["execution_time_by_cpu_model", 0, "core"], default_json_status["executionTimeByCpuModel"][0]["core"]), ]) def test_create_status_hydrate_subproperty_values(self, property_names, expected_value): status = Status(default_json_status) value = getattr(status, property_names[0]) for property_name in property_names[1:]: if type(property_name) is int: value = value[property_name] else: value = getattr(value, property_name) assert value == expected_value
qarnot/qarnot-sdk-python
test/test_status.py
Python
apache-2.0
1,610
import pytz import ast import json import urllib import urlparse import datetime as dt from datetime import datetime from time import time from jsonfield import JSONField from django_extensions.db.fields import UUIDField from django.db import models from django.db import transaction from django.conf import settings from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.utils.timezone import utc from .exceptions import IDNotFoundError, ParamError from oauth_provider.managers import TokenManager, ConsumerManager from oauth_provider.consts import KEY_SIZE, SECRET_SIZE, CONSUMER_KEY_SIZE, CONSUMER_STATES,\ PENDING, VERIFIER_SIZE, MAX_URL_LENGTH ADL_LRS_STRING_KEY = 'ADL_LRS_STRING_KEY' gen_pwd = User.objects.make_random_password generate_random = User.objects.make_random_password class Nonce(models.Model): token_key = models.CharField(max_length=KEY_SIZE) consumer_key = models.CharField(max_length=CONSUMER_KEY_SIZE) key = models.CharField(max_length=50) def __unicode__(self): return u"Nonce %s for %s" % (self.key, self.consumer_key) class Consumer(models.Model): name = models.CharField(max_length=50) description = models.TextField() default_scopes = models.CharField(max_length=100, default="statements/write,statements/read/mine") key = UUIDField(version=1) secret = models.CharField(max_length=SECRET_SIZE, default=gen_pwd) status = models.SmallIntegerField(choices=CONSUMER_STATES, default=PENDING) user = models.ForeignKey(User, null=True, blank=True, related_name="consumer_user", db_index=True) objects = ConsumerManager() def __unicode__(self): return u"Consumer %s with key %s" % (self.name, self.key) def generate_random_codes(self): """ Used to generate random key/secret pairings. Use this after you've added the other data in place of save(). """ key = generate_random(length=KEY_SIZE) secret = generate_random(length=SECRET_SIZE) while Consumer.objects.filter(models.Q(key__exact=key) | models.Q(secret__exact=secret)).count(): key = generate_random(length=KEY_SIZE) secret = generate_random(length=SECRET_SIZE) self.key = key self.secret = secret self.save() class Token(models.Model): REQUEST = 1 ACCESS = 2 TOKEN_TYPES = ((REQUEST, u'Request'), (ACCESS, u'Access')) key = models.CharField(max_length=KEY_SIZE, null=True, blank=True) secret = models.CharField(max_length=SECRET_SIZE, null=True, blank=True) token_type = models.SmallIntegerField(choices=TOKEN_TYPES, db_index=True) timestamp = models.IntegerField(default=long(time())) is_approved = models.BooleanField(default=False) lrs_auth_id = models.CharField(max_length=50, null=True) user = models.ForeignKey(User, null=True, blank=True, related_name='tokens', db_index=True) consumer = models.ForeignKey(Consumer) scope = models.CharField(max_length=100, default="statements/write,statements/read/mine") ## OAuth 1.0a stuff verifier = models.CharField(max_length=VERIFIER_SIZE) callback = models.CharField(max_length=MAX_URL_LENGTH, null=True, blank=True) callback_confirmed = models.BooleanField(default=False) objects = TokenManager() def __unicode__(self): return u"%s Token %s for %s" % (self.get_token_type_display(), self.key, self.consumer) def scope_to_list(self): return self.scope.split(",") def timestamp_asdatetime(self): return datetime.fromtimestamp(self.timestamp) def key_partial(self): return self.key[:10] def to_string(self, only_key=False): token_dict = { 'oauth_token': self.key, 'oauth_token_secret': self.secret, 'oauth_callback_confirmed': self.callback_confirmed and 'true' or 'error' } if self.verifier: token_dict['oauth_verifier'] = self.verifier if only_key: del token_dict['oauth_token_secret'] del token_dict['oauth_callback_confirmed'] return urllib.urlencode(token_dict) def generate_random_codes(self): """ Used to generate random key/secret pairings. Use this after you've added the other data in place of save(). """ key = generate_random(length=KEY_SIZE) secret = generate_random(length=SECRET_SIZE) while Token.objects.filter(models.Q(key__exact=key) | models.Q(secret__exact=secret)).count(): key = generate_random(length=KEY_SIZE) secret = generate_random(length=SECRET_SIZE) self.key = key self.secret = secret self.save() def get_callback_url(self): """ OAuth 1.0a, append the oauth_verifier. """ if self.callback and self.verifier: parts = urlparse.urlparse(self.callback) scheme, netloc, path, params, query, fragment = parts[:6] if query: query = '%s&oauth_verifier=%s' % (query, self.verifier) else: query = 'oauth_verifier=%s' % self.verifier return urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) return self.callback class Verb(models.Model): verb_id = models.CharField(max_length=MAX_URL_LENGTH, db_index=True) display = JSONField(blank=True) def object_return(self, lang=None): ret = {} ret['id'] = self.verb_id if self.display: ret['display'] = {} if lang: # Return display where key = lang ret['display'] = {lang:self.display[lang]} else: ret['display'] = self.display return ret def get_id(self): return self.verb_id # Just return one value for human-readable def get_display(self, lang=None): if not self.display: return self.verb_id if lang: return self.display[lang] try: return self.display['en-US'] except: try: return self.display['en'] except: pass return self.display.values()[0] def __unicode__(self): return json.dumps(self.object_return()) agent_ifps_can_only_be_one = ['mbox', 'mbox_sha1sum', 'openID', 'account', 'openid'] class AgentMgr(models.Manager): # Have to return ret_agent since we may re-bind it after update def update_agent_name_and_members(self, kwargs, ret_agent, members, define): need_to_create = False # Update the name if not the same if 'name' in kwargs and kwargs['name'] != ret_agent.name: # If name is different and has define then update-if not then need to create new agent if define: ret_agent.name = kwargs['name'] ret_agent.save() else: need_to_create = True # Get or create members in list if members: ags = [self.gen(**a) for a in members] # If any of the members are not in the current member list of ret_agent, add them for ag in ags: member_agent = ag[0] if not member_agent in ret_agent.member.all(): if define: ret_agent.member.add(member_agent) ret_agent.save() else: need_to_create = True break return ret_agent, need_to_create def create_agent(self, kwargs, define): # If account is supplied, rename the kwargs keys to match the model field names for account then delete the old keys, values if 'account' in kwargs: account = kwargs['account'] if 'homePage' in account: kwargs['account_homePage'] = kwargs['account']['homePage'] if 'name' in account: kwargs['account_name'] = kwargs['account']['name'] del kwargs['account'] # Set define and create agent if not define: kwargs['global_representation'] = False ret_agent = Agent(**kwargs) ret_agent.clean() ret_agent.save() return ret_agent, True @transaction.commit_on_success def gen(self, **kwargs): # Check if group or not is_group = kwargs.get('objectType', None) == "Group" # Find the IFP ifp_sent = [a for a in agent_ifps_can_only_be_one if kwargs.get(a, None) != None] # If there is an IFP (could be blank if group) make a dict with the IFP key and value if ifp_sent: ifp = ifp_sent[0] if not 'account' == ifp: ifp_dict = {ifp:kwargs[ifp]} else: if not isinstance(kwargs['account'], dict): kwargs['account'] = json.loads(kwargs['account']) account = kwargs['account'] if 'homePage' in account: ifp_dict = {'account_homePage': account['homePage']} if 'name' in account: ifp_dict = {'account_name': account['name']} # Gen will only get called from AgentManager or Authorization. Since global is true by default and # AgentManager always sets the define key based off of the oauth scope, default this to True if the # define key is not true define = kwargs.pop('define', True) # Agents won't have members members = None # If there is no account, check to see if it a group and has members if is_group and 'member' in kwargs: mem = kwargs.pop('member') try: members = json.loads(mem) except: members = mem # If it does not have define permissions, each member in the non-global group must also be # non-global if not define: for a in members: a['global_representation'] = False # Try to get the agent/group try: # If there are no IFPs but there are members (group with no IFPs) if not ifp_sent and members: ret_agent, created = self.create_agent(kwargs, define) else: ret_agent = Agent.objects.get(**ifp_dict) created = False ret_agent, need_to_create = self.update_agent_name_and_members(kwargs, ret_agent, members, define) if need_to_create: ret_agent, created = self.create_agent(kwargs, define) # If agent/group does not exist, create it then clean and save it so if it's a group below # we can add members except Agent.DoesNotExist: # If no define permission then the created agent/group is non-global ret_agent, created = self.create_agent(kwargs, define) # If it is a group and has just been created, grab all of the members and send them through # this process then clean and save if is_group and created: # Grabs args for each agent in members list and calls self ags = [self.gen(**a) for a in members] # Adds each created/retrieved agent object to the return object since ags is a list of tuples (agent, created) ret_agent.member.add(*(a for a, c in ags)) ret_agent.clean() ret_agent.save() return ret_agent, created def oauth_group(self, **kwargs): try: g = Agent.objects.get(oauth_identifier=kwargs['oauth_identifier']) return g, False except: return Agent.objects.gen(**kwargs) class Agent(models.Model): objectType = models.CharField(max_length=6, blank=True, default="Agent") name = models.CharField(max_length=100, blank=True) mbox = models.CharField(max_length=128, db_index=True, null=True) mbox_sha1sum = models.CharField(max_length=40, db_index=True, null=True) openID = models.CharField(max_length=MAX_URL_LENGTH, db_index=True, null=True) oauth_identifier = models.CharField(max_length=192, db_index=True, null=True) member = models.ManyToManyField('self', related_name="agents", null=True) global_representation = models.BooleanField(default=True) account_homePage = models.CharField(max_length=MAX_URL_LENGTH, blank=True) account_name = models.CharField(max_length=50, blank=True) objects = AgentMgr() class Meta: unique_together = (("mbox", "global_representation"), ("mbox_sha1sum", "global_representation"), ("openID", "global_representation"),("oauth_identifier", "global_representation")) def clean(self): from lrs.util import uri if self.mbox and not uri.validate_email(self.mbox): raise ValidationError('mbox value [%s] did not start with mailto:' % self.mbox) if self.openID and not uri.validate_uri(self.openID): raise ValidationError('openID value [%s] is not a valid URI' % self.openID) def get_agent_json(self, format='exact', as_object=False): just_id = format == 'ids' ret = {} # add object type if format isn't id, # or if it is a group, # or if it's an object if not just_id or self.objectType == 'Group' or as_object: ret['objectType'] = self.objectType if self.name and not just_id: ret['name'] = self.name if self.mbox: ret['mbox'] = self.mbox if self.mbox_sha1sum: ret['mbox_sha1sum'] = self.mbox_sha1sum if self.openID: ret['openID'] = self.openID ret['account'] = {} if self.account_name: ret['account']['name'] = self.account_name if self.account_homePage: ret['account']['homePage'] = self.account_homePage # If not account, delete it if not ret['account']: del ret['account'] if self.objectType == 'Group': # show members for groups if format isn't 'ids' # show members' ids for anon groups if format is 'ids' if not just_id or not (set(['mbox','mbox_sha1sum','openID','account']) & set(ret.keys())): ret['member'] = [a.get_agent_json(format) for a in self.member.all()] return ret # Used only for /agent GET endpoint (check spec) def get_person_json(self): ret = {} ret['objectType'] = self.objectType if self.name: ret['name'] = [self.name] if self.mbox: ret['mbox'] = [self.mbox] if self.mbox_sha1sum: ret['mbox_sha1sum'] = [self.mbox_sha1sum] if self.openID: ret['openID'] = [self.openID] ret['account'] = {} if self.account_name: ret['account']['name'] = self.account_name if self.account_homePage: ret['account']['homePage'] = self.account_homePage if not ret['account']: del ret['account'] return ret def get_a_name(self): if self.name: return self.name if self.mbox: return self.mbox if self.mbox_sha1sum: return self.mbox_sha1sum if self.openID: return self.openID try: return self.account_name except: if self.objectType == 'Agent': return "unknown" else: return "anonymous group" def __unicode__(self): return json.dumps(self.get_agent_json()) class AgentProfile(models.Model): profileId = models.CharField(max_length=MAX_URL_LENGTH, db_index=True) updated = models.DateTimeField(auto_now_add=True, blank=True) agent = models.ForeignKey(Agent) profile = models.FileField(upload_to="agent_profile", null=True) json_profile = models.TextField(blank=True) content_type = models.CharField(max_length=255,blank=True) etag = models.CharField(max_length=50,blank=True) user = models.ForeignKey(User, null=True, blank=True) def delete(self, *args, **kwargs): if self.profile: self.profile.delete() super(AgentProfile, self).delete(*args, **kwargs) class Activity(models.Model): activity_id = models.CharField(max_length=MAX_URL_LENGTH, db_index=True) objectType = models.CharField(max_length=8,blank=True, default="Activity") activity_definition_name = JSONField(blank=True) activity_definition_description = JSONField(blank=True) activity_definition_type = models.CharField(max_length=MAX_URL_LENGTH, blank=True) activity_definition_moreInfo = models.CharField(max_length=MAX_URL_LENGTH, blank=True) activity_definition_interactionType = models.CharField(max_length=25, blank=True) activity_definition_extensions = JSONField(blank=True) activity_definition_crpanswers = JSONField(blank=True) activity_definition_choices = JSONField(blank=True) activity_definition_scales = JSONField(blank=True) activity_definition_sources = JSONField(blank=True) activity_definition_targets = JSONField(blank=True) activity_definition_steps = JSONField(blank=True) authoritative = models.CharField(max_length=100, blank=True) global_representation = models.BooleanField(default=True) #desktopapp #quiz class Meta: unique_together = ("activity_id", "global_representation") def object_return(self, lang=None, format='exact'): ret = {} ret['id'] = self.activity_id if format != 'ids': ret['objectType'] = self.objectType ret['definition'] = {} if self.activity_definition_name: if lang: ret['definition']['name'] = {lang:self.activity_definition_name[lang]} else: ret['definition']['name'] = self.activity_definition_name if self.activity_definition_description: if lang: ret['definition']['description'] = {lang:self.activity_definition_description[lang]} else: ret['definition']['description'] = self.activity_definition_description if self.activity_definition_type: ret['definition']['type'] = self.activity_definition_type if self.activity_definition_moreInfo != '': ret['definition']['moreInfo'] = self.activity_definition_moreInfo if self.activity_definition_interactionType != '': ret['definition']['interactionType'] = self.activity_definition_interactionType # Get answers if self.activity_definition_crpanswers: ret['definition']['correctResponsesPattern'] = self.activity_definition_crpanswers if self.activity_definition_scales: ret['definition']['scale'] = [] if lang: for s in self.activity_definition_scales: holder = {'id': s['id']} holder.update({lang:self.activity_definition_scales[lang]}) ret['definition']['scale'].append(holder) else: ret['definition']['scale'] = self.activity_definition_scales if self.activity_definition_choices: if lang: for c in self.activity_definition_choices: holder = {'id': c['id']} holder.update({lang:self.activity_definition_choices[lang]}) ret['definition']['choices'].append(holder) else: ret['definition']['choices'] = self.activity_definition_choices if self.activity_definition_steps: if lang: for s in self.activity_definition_steps: holder = {'id': s['id']} holder.update({lang:self.activity_definition_steps[lang]}) ret['definition']['steps'].append(holder) else: ret['definition']['steps'] = self.activity_definition_steps if self.activity_definition_sources: if lang: for s in self.activity_definition_sources: holder = {'id': s['id']} holder.update({lang:self.activity_definition_sources[lang]}) ret['definition']['source'].append(holder) else: ret['definition']['source'] = self.activity_definition_sources if self.activity_definition_targets: if lang: for t in self.activity_definition_target: holder = {'id': t['id']} holder.update({lang:self.activity_definition_targets[lang]}) ret['definition']['target'].append(holder) else: ret['definition']['target'] = self.activity_definition_targets if self.activity_definition_extensions: ret['definition']['extensions'] = self.activity_definition_extensions if not ret['definition']: del ret['definition'] return ret def get_a_name(self): try: return self.activity_definition_name.get('en-US') except: return self.activity_id def get_search_index(self): try: if not "quiz" in self.activity_id and not "desktopapp" in self.activity_id: return self.activity_definition_name.get('en-US') + self.activity_definition_description.get('en-US') + self.activity_id else: return self.activity_definition_name.get('en-US') + self.activity_definition_description.get('en-US') except: return self.activity_id def __unicode__(self): return json.dumps(self.object_return()) class StatementRef(models.Model): object_type = models.CharField(max_length=12, default="StatementRef") ref_id = models.CharField(max_length=40) def object_return(self): ret = {} ret['objectType'] = "StatementRef" ret['id'] = self.ref_id return ret def get_a_name(self): s = Statement.objects.get(statement_id=self.ref_id) o, f = s.get_object() return " ".join([s.actor.get_a_name(),s.verb.get_display(),o.get_a_name()]) class SubStatementContextActivity(models.Model): key = models.CharField(max_length=8) context_activity = models.ManyToManyField(Activity) substatement = models.ForeignKey('SubStatement') def object_return(self, lang=None, format='exact'): ret = {} ret[self.key] = {} ret[self.key] = [a.object_return(lang, format) for a in self.context_activity.all()] return ret class StatementContextActivity(models.Model): key = models.CharField(max_length=8) context_activity = models.ManyToManyField(Activity) statement = models.ForeignKey('Statement') def object_return(self, lang=None, format='exact'): ret = {} ret[self.key] = {} ret[self.key] = [a.object_return(lang, format) for a in self.context_activity.all()] return ret class ActivityState(models.Model): state_id = models.CharField(max_length=MAX_URL_LENGTH) updated = models.DateTimeField(auto_now_add=True, blank=True, db_index=True) state = models.FileField(upload_to="activity_state", null=True) json_state = models.TextField(blank=True) agent = models.ForeignKey(Agent, db_index=True) activity_id = models.CharField(max_length=MAX_URL_LENGTH, db_index=True) registration_id = models.CharField(max_length=40) content_type = models.CharField(max_length=255,blank=True) etag = models.CharField(max_length=50,blank=True) user = models.ForeignKey(User, null=True, blank=True) def delete(self, *args, **kwargs): if self.state: self.state.delete() super(ActivityState, self).delete(*args, **kwargs) class ActivityProfile(models.Model): profileId = models.CharField(max_length=MAX_URL_LENGTH, db_index=True) updated = models.DateTimeField(auto_now_add=True, blank=True, db_index=True) activityId = models.CharField(max_length=MAX_URL_LENGTH, db_index=True) profile = models.FileField(upload_to="activity_profile", null=True) json_profile = models.TextField(blank=True) content_type = models.CharField(max_length=255,blank=True) etag = models.CharField(max_length=50,blank=True) def delete(self, *args, **kwargs): if self.profile: self.profile.delete() super(ActivityProfile, self).delete(*args, **kwargs) class SubStatement(models.Model): object_agent = models.ForeignKey(Agent, related_name="object_of_substatement", on_delete=models.SET_NULL, null=True, db_index=True) object_activity = models.ForeignKey(Activity, related_name="object_of_substatement", on_delete=models.SET_NULL, null=True, db_index=True) object_statementref = models.ForeignKey(StatementRef, related_name="object_of_substatement", on_delete=models.SET_NULL, null=True, db_index=True) actor = models.ForeignKey(Agent,related_name="actor_of_substatement", null=True, on_delete=models.SET_NULL) verb = models.ForeignKey(Verb, null=True, on_delete=models.SET_NULL) result_success = models.NullBooleanField() result_completion = models.NullBooleanField() result_response = models.TextField(blank=True) # Made charfield since it would be stored in ISO8601 duration format result_duration = models.CharField(max_length=40, blank=True) result_score_scaled = models.FloatField(blank=True, null=True) result_score_raw = models.FloatField(blank=True, null=True) result_score_min = models.FloatField(blank=True, null=True) result_score_max = models.FloatField(blank=True, null=True) result_extensions = JSONField(blank=True) timestamp = models.DateTimeField(blank=True,null=True, default=lambda: datetime.utcnow().replace(tzinfo=utc).isoformat()) context_registration = models.CharField(max_length=40, blank=True, db_index=True) context_instructor = models.ForeignKey(Agent,blank=True, null=True, on_delete=models.SET_NULL, db_index=True, related_name='substatement_context_instructor') context_team = models.ForeignKey(Agent,blank=True, null=True, on_delete=models.SET_NULL, related_name="substatement_context_team") context_revision = models.TextField(blank=True) context_platform = models.CharField(max_length=50,blank=True) context_language = models.CharField(max_length=50,blank=True) context_extensions = JSONField(blank=True) # context also has a stmt field which is a statementref context_statement = models.CharField(max_length=40, blank=True) def object_return(self, lang=None, format='exact'): activity_object = True ret = {} ret['actor'] = self.actor.get_agent_json(format) ret['verb'] = self.verb.object_return() if self.object_agent: ret['object'] = self.object_agent.get_agent_json(format, as_object=True) elif self.object_activity: ret['object'] = self.object_activity.object_return(lang, format) else: ret['object'] = self.object_statementref.object_return() ret['result'] = {} if self.result_success: ret['result']['success'] = self.result_success if self.result_completion: ret['result']['completion'] = self.result_completion if self.result_response: ret['result']['response'] = self.result_response if self.result_duration: ret['result']['duration'] = self.result_duration ret['result']['score'] = {} if not self.result_score_scaled is None: ret['result']['score']['scaled'] = self.result_score_scaled if not self.result_score_raw is None: ret['result']['score']['raw'] = self.result_score_raw if not self.result_score_min is None: ret['result']['score']['min'] = self.result_score_min if not self.result_score_max is None: ret['result']['score']['max'] = self.result_score_max # If there is no score, delete from dict if not ret['result']['score']: del ret['result']['score'] if self.result_extensions: ret['result']['extensions'] = self.result_extensions # If no result, delete from dict if not ret['result']: del ret['result'] ret['context'] = {} if self.context_registration: ret['context']['registration'] = self.context_registration if self.context_instructor: ret['context']['instructor'] = self.context_instructor.get_agent_json(format) if self.context_team: ret['context']['team'] = self.context_team.get_agent_json(format) if self.context_revision: ret['context']['revision'] = self.context_revision if self.context_platform: ret['context']['platform'] = self.context_platform if self.context_language: ret['context']['language'] = self.context_language if self.context_statement: ret['context']['statement'] = {'id': self.context_statement, 'objectType': 'StatementRef'} if self.substatementcontextactivity_set.all(): ret['context']['contextActivities'] = {} for con_act in self.substatementcontextactivity_set.all(): ret['context']['contextActivities'].update(con_act.object_return(lang, format)) if self.context_extensions: ret['context']['extensions'] = self.context_extensions if not ret['context']: del ret['context'] ret['timestamp'] = str(self.timestamp) ret['objectType'] = "SubStatement" return ret def get_a_name(self): return self.stmt_object.statement_id def get_object(self): if self.object_activity: stmt_object = self.object_activity elif self.object_agent: stmt_object = self.object_agent else: stmt_object = self.object_statementref return stmt_object def delete(self, *args, **kwargs): if self.object_statementref: self.object_statementref.delete() super(SubStatement, self).delete(*args, **kwargs) class StatementAttachment(models.Model): usageType = models.CharField(max_length=MAX_URL_LENGTH) contentType = models.CharField(max_length=128) length = models.PositiveIntegerField() sha2 = models.CharField(max_length=128, blank=True) fileUrl = models.CharField(max_length=MAX_URL_LENGTH, blank=True) payload = models.FileField(upload_to="attachment_payloads", null=True) display = JSONField(blank=True) description = JSONField(blank=True) def object_return(self, lang=None): ret = {} ret['usageType'] = self.usageType if self.display: if lang: ret['display'] = {lang:self.display[lang]} else: ret['display'] = self.display if self.description: if lang: ret['description'] = {lang:self.description[lang]} else: ret['description'] = self.description ret['contentType'] = self.contentType ret['length'] = self.length if self.sha2: ret['sha2'] = self.sha2 if self.fileUrl: ret['fileUrl'] = self.fileUrl return ret class Statement(models.Model): statement_id = UUIDField(version=1, db_index=True) object_agent = models.ForeignKey(Agent, related_name="object_of_statement", null=True, on_delete=models.SET_NULL, db_index=True) object_activity = models.ForeignKey(Activity, related_name="object_of_statement", null=True, on_delete=models.SET_NULL, db_index=True) object_substatement = models.ForeignKey(SubStatement, related_name="object_of_statement", null=True, on_delete=models.SET_NULL, db_index=True) object_statementref = models.ForeignKey(StatementRef, related_name="object_of_statement", null=True, on_delete=models.SET_NULL, db_index=True) actor = models.ForeignKey(Agent,related_name="actor_statement", db_index=True, null=True, on_delete=models.SET_NULL) verb = models.ForeignKey(Verb, null=True, on_delete=models.SET_NULL) result_success = models.NullBooleanField() result_completion = models.NullBooleanField() result_response = models.TextField(blank=True) # Made charfield since it would be stored in ISO8601 duration format result_duration = models.CharField(max_length=40, blank=True) result_score_scaled = models.FloatField(blank=True, null=True) result_score_raw = models.FloatField(blank=True, null=True) result_score_min = models.FloatField(blank=True, null=True) result_score_max = models.FloatField(blank=True, null=True) result_extensions = JSONField(blank=True) stored = models.DateTimeField(auto_now_add=True,blank=True, db_index=True) timestamp = models.DateTimeField(blank=True,null=True, default=lambda: datetime.utcnow().replace(tzinfo=utc).isoformat()) authority = models.ForeignKey(Agent, blank=True,null=True,related_name="authority_statement", db_index=True, on_delete=models.SET_NULL) voided = models.NullBooleanField(default=False) context_registration = models.CharField(max_length=40, blank=True, db_index=True) context_instructor = models.ForeignKey(Agent,blank=True, null=True, on_delete=models.SET_NULL, db_index=True, related_name='statement_context_instructor') context_team = models.ForeignKey(Agent,blank=True, null=True, on_delete=models.SET_NULL, related_name="statement_context_team") context_revision = models.TextField(blank=True) context_platform = models.CharField(max_length=50,blank=True) context_language = models.CharField(max_length=50,blank=True) context_extensions = JSONField(blank=True) # context also has a stmt field which is a statementref context_statement = models.CharField(max_length=40, blank=True) version = models.CharField(max_length=7, default="1.0.0") attachments = models.ManyToManyField(StatementAttachment) # Used in views user = models.ForeignKey(User, null=True, blank=True, db_index=True, on_delete=models.SET_NULL) #group = models.ForeignKey(Group, null=True, on_delete=models.SET_NULL) def object_return(self, lang=None, format='exact'): ret = {} ret['id'] = self.statement_id ret['actor'] = self.actor.get_agent_json(format) ret['verb'] = self.verb.object_return() if self.object_agent: ret['object'] = self.object_agent.get_agent_json(format, as_object=True) elif self.object_activity: ret['object'] = self.object_activity.object_return(lang, format) elif self.object_substatement: ret['object'] = self.object_substatement.object_return(lang, format) else: ret['object'] = self.object_statementref.object_return() ret['result'] = {} if self.result_success: ret['result']['success'] = self.result_success if self.result_completion: ret['result']['completion'] = self.result_completion if self.result_response: ret['result']['response'] = self.result_response if self.result_duration: ret['result']['duration'] = self.result_duration ret['result']['score'] = {} if not self.result_score_scaled is None: ret['result']['score']['scaled'] = self.result_score_scaled if not self.result_score_raw is None: ret['result']['score']['raw'] = self.result_score_raw if not self.result_score_min is None: ret['result']['score']['min'] = self.result_score_min if not self.result_score_max is None: ret['result']['score']['max'] = self.result_score_max # If there is no score, delete from dict if not ret['result']['score']: del ret['result']['score'] if self.result_extensions: ret['result']['extensions'] = self.result_extensions if not ret['result']: del ret['result'] ret['context'] = {} if self.context_registration: ret['context']['registration'] = self.context_registration if self.context_instructor: ret['context']['instructor'] = self.context_instructor.get_agent_json(format) if self.context_team: ret['context']['team'] = self.context_team.get_agent_json(format) if self.context_revision: ret['context']['revision'] = self.context_revision if self.context_platform: ret['context']['platform'] = self.context_platform if self.context_language: ret['context']['language'] = self.context_language if self.context_statement: ret['context']['statement'] = {'id': self.context_statement, 'objectType': 'StatementRef'} if self.statementcontextactivity_set.all(): ret['context']['contextActivities'] = {} for con_act in self.statementcontextactivity_set.all(): ret['context']['contextActivities'].update(con_act.object_return(lang, format)) if self.context_extensions: ret['context']['extensions'] = self.context_extensions if not ret['context']: del ret['context'] ret['timestamp'] = str(self.timestamp) ret['stored'] = str(self.stored) if not self.authority is None: ret['authority'] = self.authority.get_agent_json(format) ret['version'] = self.version if self.attachments.all(): ret['attachments'] = [a.object_return(lang) for a in self.attachments.all()] return ret def unvoid_statement(self): Statement.objects.filter(statement_id=self.object_statementref.ref_id).update(voided=False) def get_a_name(self): return self.statement_id def get_object(self): if self.object_activity: stmt_object = self.object_activity elif self.object_agent: stmt_object = self.object_agent elif self.object_substatement: stmt_object = self.object_substatement else: stmt_object = self.object_statementref return stmt_object def delete(self, *args, **kwargs): # Unvoid stmt if verb is voided if self.verb.verb_id == 'http://adlnet.gov/expapi/verbs/voided': self.unvoid_statement() # If sub or ref, FK will be set to null, then call delete if self.verb.verb_id != 'http://adlnet.gov/expapi/verbs/voided': if self.object_substatement: self.object_substatement.delete() elif self.object_statementref: self.object_statementref.delete() super(Statement, self).delete(*args, **kwargs) class Group(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=40, blank=True) user = models.ForeignKey(User, null=True, blank=True, db_index=True, on_delete=models.SET_NULL) statements = models.ManyToManyField(Statement)
Lindy21/CSE498-LRS
lrs/models.py
Python
apache-2.0
39,906
# Copyright 2022 Google # # 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 # # https://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 typing import Iterator, List import itertools import cirq import numpy as np import pytest from . import optimizers from . import toric_code_rectangle as tcr from . import toric_code_state_prep as tcsp def iter_cirq_single_qubit_cliffords() -> Iterator[cirq.SingleQubitCliffordGate]: """Iterates all 24 distinct (up to global phase) single qubit Clifford operations.""" paulis: List[cirq.Pauli] = [cirq.X, cirq.Y, cirq.Z] for x_to_axis, z_to_axis in itertools.permutations(paulis, 2): for x_flip, z_flip in itertools.product([False, True], repeat=2): yield cirq.SingleQubitCliffordGate.from_xz_map( x_to=(x_to_axis, x_flip), z_to=(z_to_axis, z_flip) ) class TestConvertCnotMomentsToCzAndSimplifyHadamards: @classmethod def setup_class(cls): cls.control = cirq.LineQubit(0) cls.target = cirq.LineQubit(1) cls.cnot_moment = cirq.Moment([cirq.CNOT(cls.control, cls.target)]) cls.cz_moment = cirq.Moment([cirq.CZ(cls.control, cls.target)]) cls.x_qubit = cirq.LineQubit(0) cls.hadamard_qubit = cirq.LineQubit(1) cls.single_qubit_moment = cirq.Moment( [cirq.X(cls.x_qubit), cirq.H(cls.hadamard_qubit)] ) cls.x_moment = cirq.Moment([cirq.X(cls.x_qubit)]) cls.hadamard_moment = cirq.Moment([cirq.H(cls.hadamard_qubit)]) def test_optimize_circuit_single_cnot(self): circuit = cirq.Circuit(self.cnot_moment) optimized = optimizers.convert_cnot_moments_to_cz_and_simplify_hadamards( circuit ) assert optimized == cirq.Circuit( [self.hadamard_moment, self.cz_moment, self.hadamard_moment] ) def test_optimize_circuit_single_cz(self): circuit = cirq.Circuit(self.cz_moment) optimized = optimizers.convert_cnot_moments_to_cz_and_simplify_hadamards( circuit ) assert optimized == cirq.Circuit(self.cz_moment) def test_optimize_circuit_repeated_cnot(self): circuit = cirq.Circuit([self.cnot_moment, self.cnot_moment]) optimized = optimizers.convert_cnot_moments_to_cz_and_simplify_hadamards( circuit ) assert optimized == cirq.Circuit( [self.hadamard_moment, self.cz_moment, self.cz_moment, self.hadamard_moment] ) def test_optimize_circuit_maintain_2q_layers(self): def q(i): return cirq.LineQubit(i) layers_of_pairs = [[(q(0), q(1)), (q(2), q(3))], [(q(1), q(2)), (q(3), q(4))]] cnot_layers = [ cirq.Moment(cirq.CNOT(*pair) for pair in layer) for layer in layers_of_pairs ] circuit = cirq.Circuit() circuit += cirq.X(q(4)) circuit += cnot_layers[0] circuit += cirq.X(q(0)) circuit += cnot_layers[1] circuit += cirq.X(q(1)) optimized = optimizers.convert_cnot_moments_to_cz_and_simplify_hadamards( circuit ) layers_of_targets = [[pair[1] for pair in layer] for layer in layers_of_pairs] cz_layers = [ cirq.Moment(cirq.CZ(*pair) for pair in layer) for layer in layers_of_pairs ] expected_circuit = cirq.Circuit() expected_circuit += cirq.Moment( [cirq.X(q(4))] + [cirq.H(t) for t in layers_of_targets[0]] ) expected_circuit += cz_layers[0] expected_circuit += cirq.Moment( [cirq.X(q(0))] + [cirq.H(t) for t in layers_of_targets[0]] + [cirq.H(t) for t in layers_of_targets[1]] ) expected_circuit += cz_layers[1] expected_circuit += cirq.Moment( [cirq.X(q(1))] + [cirq.H(t) for t in layers_of_targets[1]] ) assert optimized == expected_circuit def test_moment_has_cnot(self): assert optimizers._has_cnot(self.cnot_moment) assert not optimizers._has_cnot(self.cz_moment) assert not optimizers._has_cnot(self.single_qubit_moment) def test_moment_has_2q_gates(self): assert optimizers._has_2q_gates(self.cnot_moment) assert optimizers._has_2q_gates(self.cz_moment) assert not optimizers._has_2q_gates(self.single_qubit_moment) def test_moment_is_exclusively_1q_gates(self): assert not optimizers._is_exclusively_1q_gates(self.cnot_moment) assert not optimizers._is_exclusively_1q_gates(self.cz_moment) assert optimizers._is_exclusively_1q_gates(self.single_qubit_moment) def test_qubits_with_hadamard(self): assert optimizers._qubits_with_hadamard(self.cnot_moment) == set() assert optimizers._qubits_with_hadamard(self.cz_moment) == set() assert optimizers._qubits_with_hadamard(self.single_qubit_moment) == { self.hadamard_qubit } def test_break_up_cnots(self): h0, cz, h1 = optimizers._break_up_cnots(self.cnot_moment) assert h0 == cirq.Moment([cirq.H(self.target)]) assert cz == self.cz_moment assert h1 == cirq.Moment([cirq.H(self.target)]) h0, cz, h1 = optimizers._break_up_cnots(self.cz_moment) assert h0 == cirq.Moment() assert cz == self.cz_moment assert h1 == cirq.Moment() def test_merge_hadamards(self): moments = optimizers._merge_hadamards( self.single_qubit_moment, self.single_qubit_moment ) assert len(moments) == 2 assert moments[0] == self.x_moment assert moments[1] == self.x_moment moments = optimizers._merge_hadamards( self.hadamard_moment, self.single_qubit_moment ) assert len(moments) == 1 assert moments[0] == self.x_moment def test_gates_are_close_identical(self): assert optimizers._gates_are_close(cirq.I, cirq.I) assert optimizers._gates_are_close(cirq.H, cirq.H) assert optimizers._gates_are_close(cirq.CNOT, cirq.CNOT) def test_gates_are_close_equivalent(self): assert optimizers._gates_are_close(cirq.I, cirq.HPowGate(exponent=0.0)) assert optimizers._gates_are_close(cirq.H, cirq.HPowGate()) assert optimizers._gates_are_close(cirq.CNOT, cirq.CNotPowGate()) def test_gates_are_not_close(self): assert not optimizers._gates_are_close(cirq.I, cirq.H) assert not optimizers._gates_are_close(cirq.H, cirq.CNOT) class TestDeferSingleQubitGates: def test_simple_example(self): qubits = [cirq.LineQubit(idx) for idx in range(5)] circuit = cirq.Circuit( cirq.Moment(cirq.H(q) for q in qubits), cirq.Moment(cirq.CZ(qubits[0], qubits[1])), cirq.Moment(cirq.X(qubits[0])), cirq.Moment(cirq.CZ(qubits[1], qubits[2])), cirq.Moment(cirq.X(qubits[0])), cirq.Moment(cirq.CZ(qubits[2], qubits[3])), ) deferred_circuit = optimizers.defer_single_qubit_gates(circuit) expected = """ 0: ───H───@───X───────X─────── │ 1: ───H───@───────@─────────── │ 2: ───────────H───@───────@─── │ 3: ───────────────────H───@─── 4: ───────────────────H─────── """.strip() assert deferred_circuit.to_text_diagram(qubit_order=qubits) == expected def test_mixed_moments(self): """Don't edit mixed moments, but pay attention to gates in them.""" qubits = [cirq.LineQubit(idx) for idx in range(4)] circuit = cirq.Circuit( cirq.Moment(cirq.H(qubits[2])), cirq.Moment(cirq.H(qubits[3]), cirq.X(qubits[0])), cirq.Moment(cirq.CZ(qubits[0], qubits[1]), cirq.X(qubits[2])), cirq.Moment(cirq.X(qubits[0])), cirq.Moment(cirq.CZ(qubits[1], qubits[2])), ) deferred_circuit = optimizers.defer_single_qubit_gates(circuit) expected = """ 0: ───X───@───X─────── │ 1: ───────@───────@─── │ 2: ───H───X───────@─── 3: ───────────H─────── """.strip() assert deferred_circuit.to_text_diagram(qubit_order=qubits) == expected def test_multiple_deferrals(self): qubits = [cirq.LineQubit(idx) for idx in range(2)] circuit = cirq.Circuit( cirq.Moment(cirq.X(qubits[0]), cirq.H(qubits[1])), cirq.Moment(cirq.X(qubits[0])), cirq.Moment(cirq.X(qubits[0]), cirq.Y(qubits[1])), cirq.Moment(cirq.X(qubits[0])), cirq.Moment(cirq.X(qubits[0]), cirq.Z(qubits[1])), cirq.Moment(cirq.X(qubits[0])), cirq.Moment(cirq.CZ(qubits[0], qubits[1])), ) deferred_circuit = optimizers.defer_single_qubit_gates(circuit) expected = """ 0: ───X───X───X───X───X───X───@─── │ 1: ───────────────H───Y───Z───@─── """.strip() assert deferred_circuit.to_text_diagram(qubit_order=qubits) == expected def test_toric_code(self): code = tcr.ToricCodeRectangle(cirq.GridQubit(0, 0), (1, 1), 1, 3) circuit = tcsp.toric_code_cnot_circuit(code) deferred_circuit = optimizers.defer_single_qubit_gates(circuit) assert cirq.linalg.allclose_up_to_global_phase( cirq.unitary(circuit), cirq.unitary(deferred_circuit) ) class TestInsertEchosOnActiveQubits: def test_simple_example(self): qubits = [cirq.LineQubit(idx) for idx in range(3)] circuit = cirq.Circuit( cirq.Moment(cirq.H(qubits[0])), cirq.Moment(cirq.CZ(qubits[0], qubits[1])), cirq.Moment(cirq.H(qubits[2])), cirq.Moment(cirq.CZ(qubits[0], qubits[2])), cirq.Moment(cirq.X(qubits[2])), ) echo_circuit = optimizers.insert_echos_on_idle_qubits(circuit) expected = """ 0: ───H───@───X───@───X─── │ │ 1: ───────@───X───┼───X─── │ 2: ───────────H───@───Y─── """.strip() assert echo_circuit.to_text_diagram(qubit_order=qubits) == expected def test_measurement(self): """Should stop manipulations once we hit a measurement.""" qubits = [cirq.LineQubit(idx) for idx in range(3)] circuit = cirq.Circuit( cirq.Moment(cirq.H(q) for q in qubits), cirq.Moment(cirq.CZ(qubits[0], qubits[1])), cirq.Moment(cirq.H(qubits[0])), cirq.Moment(cirq.H(qubits[0])), cirq.Moment(cirq.measure(qubits[0])), cirq.Moment(cirq.H(qubits[0])), cirq.Moment(cirq.H(qubits[0])), ) echo_circuit = optimizers.insert_echos_on_idle_qubits(circuit) expected = """ 0: ───H───@───H───H───M───H───H─── │ 1: ───H───@───X───X─────────────── 2: ───H───────X───X─────────────── """.strip() assert echo_circuit.to_text_diagram(qubit_order=qubits) == expected @pytest.mark.parametrize( "gates, expected", [ ([cirq.S, cirq.S], cirq.Z), ([cirq.X, cirq.Z], cirq.Y), ([cirq.H, cirq.X, cirq.H], cirq.Z), ], ) def test_combine_1q_cliffords(self, gates, expected): assert optimizers._combine_1q_cliffords(*gates) == expected @pytest.mark.parametrize( "moment, expected", [ ( cirq.Moment(cirq.measure(cirq.LineQubit(0)), cirq.X(cirq.LineQubit(1))), True, ), (cirq.Moment(cirq.X(cirq.LineQubit(0))), False), ], ) def test_moment_has_measurement(self, moment, expected): assert optimizers._has_measurement(moment) == expected def test_invalid_echo(self): with pytest.raises(ValueError): _ = optimizers.insert_echos_on_idle_qubits(cirq.Circuit(), echo=cirq.H) @pytest.mark.parametrize("resolve_to_hadamard", [False, True]) def test_toric_code(self, resolve_to_hadamard: bool): code = tcr.ToricCodeRectangle(cirq.GridQubit(0, 0), (1, 1), 1, 3) circuit = tcsp.toric_code_cnot_circuit(code) echo_circuit = optimizers.insert_echos_on_idle_qubits( circuit, resolve_to_hadamard=resolve_to_hadamard ) assert cirq.linalg.allclose_up_to_global_phase( cirq.unitary(circuit), cirq.unitary(echo_circuit) ) @pytest.mark.parametrize("gate", iter_cirq_single_qubit_cliffords()) def test_resolve_gate_to_hadamard_unitaries(self, gate: cirq.Gate): qubit = cirq.GridQubit(0, 0) circuit = cirq.Circuit(gate.on(qubit)) decomposition = optimizers.resolve_gate_to_hadamard(gate) decomposition_circuit = cirq.Circuit(g.on(qubit) for g in decomposition) assert cirq.allclose_up_to_global_phase( cirq.unitary(circuit), cirq.unitary(decomposition_circuit) ) @pytest.mark.parametrize("gate", iter_cirq_single_qubit_cliffords()) def test_resolve_gate_to_hadamard_gives_hadamards(self, gate: cirq.Gate): """All "pi/2 XY" gates should have a hadamard in the middle of the decomposition.""" decomposition = optimizers.resolve_gate_to_hadamard(gate) xz_gate = cirq.PhasedXZGate.from_matrix(cirq.unitary(gate)) if np.isclose(abs(xz_gate.x_exponent), 0.5): assert decomposition[1] == cirq.H @pytest.mark.parametrize("gate", iter_cirq_single_qubit_cliffords()) def test_resolve_gate_to_hadamard_xy_rotations_localized(self, gate: cirq.Gate): """Decomposition index 0 and 2 should not have XY rotations.""" decomposition = optimizers.resolve_gate_to_hadamard(gate) for idx in [0, 2]: z_rotation = decomposition[idx] xz_gate = cirq.PhasedXZGate.from_matrix(cirq.unitary(z_rotation)) assert np.isclose(float(xz_gate.x_exponent), 0.0) def test_resolve_moment_to_hadamard_passthrough_hadamards(self): q0, q1 = cirq.GridQubit.rect(1, 2) moment = cirq.Moment(cirq.H(q0), cirq.H(q1)) assert optimizers.resolve_moment_to_hadamard(moment) == cirq.Circuit(moment) @pytest.mark.parametrize("gate", iter_cirq_single_qubit_cliffords()) def test_resolve_moment_to_hadamard_each_clifford(self, gate: cirq.Gate): qubit = cirq.GridQubit(0, 0) clifford_moment = cirq.Moment(gate.on(qubit)) resolved_circuit = optimizers.resolve_moment_to_hadamard(clifford_moment) assert cirq.allclose_up_to_global_phase( cirq.unitary(cirq.Circuit(clifford_moment)), cirq.unitary(resolved_circuit) ) assert len(resolved_circuit) <= 3 # Allow up to 3 moments (e.g., --Z--H--Z--) assert not any( op.gate == cirq.I for op in resolved_circuit.all_operations() ) # Skip I's # Verify no SingleQubitCliffordGate sneaks through for pi/2 XY rotation cases xz_gate = cirq.PhasedXZGate.from_matrix(cirq.unitary(gate)) if np.isclose(abs(xz_gate.x_exponent), 0.5): assert not any( isinstance(op.gate, cirq.SingleQubitCliffordGate) for op in resolved_circuit.all_operations() ) assert any(op.gate == cirq.H for op in resolved_circuit.all_operations())
quantumlib/ReCirq
recirq/toric_code/optimizers_test.py
Python
apache-2.0
16,503
'''Arsenal client node_group command line helpers. These functions are called directly by args.func() to invoke the appropriate action. They also handle output formatting to the commmand line. ''' # # Copyright 2015 CityGrid Media, LLC # # 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 __future__ import print_function import logging from arsenalclient.cli.common import ( ask_yes_no, check_resp, parse_cli_args, print_results, update_object_fields, ) from arsenalclient.exceptions import NoResultFound LOG = logging.getLogger(__name__) def search_node_groups(args, client): '''Search for node_groups and perform optional assignment actions.''' LOG.debug('action_command is: {0}'.format(args.action_command)) LOG.debug('object_type is: {0}'.format(args.object_type)) resp = None update_fields = [ 'node_group_owner', 'node_group_description', 'node_group_notes_url', ] tag_fields = [ 'set_tags', 'del_tags', ] action_fields = update_fields + tag_fields search_fields = args.fields if any(getattr(args, key) for key in update_fields): search_fields = 'all' params = parse_cli_args(args.search, search_fields, args.exact_get, args.exclude) resp = client.node_groups.search(params) if not resp.get('results'): return resp results = resp['results'] if args.audit_history: results = client.node_groups.get_audit_history(results) if not any(getattr(args, key) for key in action_fields): print_results(args, results) else: r_names = [] for node_group in results: r_names.append('name={0},id={1}'.format(node_group['name'], node_group['id'])) msg = 'We are ready to update the following node_groups: \n ' \ '{0}\nContinue?'.format('\n '.join(r_names)) if any(getattr(args, key) for key in update_fields) and ask_yes_no(msg, args.answer_yes): for node_group in results: ng_update = update_object_fields(args, 'node_group', node_group, update_fields) client.node_groups.update(ng_update) if args.set_tags and ask_yes_no(msg, args.answer_yes): tags = [tag for tag in args.set_tags.split(',')] for tag in tags: name, value = tag.split('=') resp = client.tags.assign(name, value, 'node_groups', results) if args.del_tags and ask_yes_no(msg, args.answer_yes): tags = [tag for tag in args.del_tags.split(',')] for tag in tags: name, value = tag.split('=') resp = client.tags.deassign(name, value, 'node_groups', results) if resp: check_resp(resp) LOG.debug('Complete.') def create_node_group(args, client): '''Create a new node_group.''' LOG.info('Checking if node_group name exists: {0}'.format(args.node_group_name)) node_group = { 'name': args.node_group_name, 'owner': args.node_group_owner, 'description': args.node_group_description, 'notes_url': args.node_group_notes_url, } try: result = client.node_groups.get_by_name(args.node_group_name) if ask_yes_no('Entry already exists for node_group name: {0}\n Would you ' \ 'like to update it?'.format(result['name']), args.answer_yes): resp = client.node_groups.update(node_group) except NoResultFound: resp = client.node_groups.create(node_group) check_resp(resp) def delete_node_group(args, client): '''Delete an existing node_group.''' LOG.debug('action_command is: {0}'.format(args.action_command)) LOG.debug('object_type is: {0}'.format(args.object_type)) try: result = client.node_groups.get_by_name(args.node_group_name) msg = 'We are ready to delete the following {0}: ' \ '\n{1}\n Continue?'.format(args.object_type, result['name']) if ask_yes_no(msg, args.answer_yes): resp = client.node_groups.delete(result) check_resp(resp) except NoResultFound: pass
CityGrid/arsenal
client/arsenalclient/cli/node_group.py
Python
apache-2.0
4,899
#! /usr/bin/env python3 # # Copyright 2018 Google LLC # # 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 # # https://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. """Utility functions for customer datasets.""" from jaclearn.rl.env import ProxyRLEnvBase from jaclearn.rl.space import DiscreteActionSpace __all__ = ['MapActionProxy', 'get_action_mapping', 'get_action_mapping_graph', 'get_action_mapping_sorting', 'get_action_mapping_blocksworld'] class MapActionProxy(ProxyRLEnvBase): """RL Env proxy to map actions using provided mapping function.""" def __init__(self, other, mapping): super().__init__(other) self._mapping = mapping @property def mapping(self): return self._mapping def map_action(self, action): assert action < len(self._mapping) return self._mapping[action] def _get_action_space(self): return DiscreteActionSpace(len(self._mapping)) def _action(self, action): return self.proxy.action(self.map_action(action)) def get_action_mapping(n, exclude_self=True): """In a matrix view, this a mapping from 1d-index to 2d-coordinate.""" mapping = [ (i, j) for i in range(n) for j in range(n) if (i != j or not exclude_self) ] return mapping get_action_mapping_graph = get_action_mapping get_action_mapping_sorting = get_action_mapping def get_action_mapping_blocksworld(nr_blocks, exclude_self=True): return get_action_mapping_graph(nr_blocks + 1, exclude_self)
google/neural-logic-machines
difflogic/envs/utils.py
Python
apache-2.0
1,895
#!/usr/bin/env python # Copyright 2016 PerfKitBenchmarker Authors. All rights reserved. # # 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. """Bundles PerfKit Benchmarker into a zip file.""" import os import subprocess import sys import zipfile def main(argv): if len(argv) != 2: sys.exit('Usage: %s <outfile>' % argv[0]) zip_file_path = argv[1] version = subprocess.check_output( (os.path.join(os.getcwd(), 'pkb.py'), '--version')).rstrip() with zipfile.ZipFile(zip_file_path, 'w') as zip_file: for dir_path, _, file_names in os.walk('perfkitbenchmarker'): for file_name in file_names: if not file_name.endswith('.pyc'): zip_file.write(os.path.join(dir_path, file_name)) for file_name in ('AUTHORS', 'CHANGES.md', 'CONTRIBUTING.md', 'LICENSE', 'README.md', 'requirements.txt'): zip_file.write(file_name) zip_file.write('pkb.py', '__main__.py') zip_file.writestr('perfkitbenchmarker/version.txt', version) if __name__ == '__main__': main(sys.argv)
GoogleCloudPlatform/PerfKitBenchmarker
tools/zip/zip.py
Python
apache-2.0
1,536
# Copyright 2021 The TensorFlow Probability 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. # ============================================================================ """Test utilities.""" import importlib BACKEND = None # Rewritten by backends/rewrite.py. def multi_backend_test(globals_dict, relative_module_name, backends=('jax', 'tensorflow'), test_case=None): """Multi-backend test decorator. The end goal of this decorator is that the decorated test case is removed, and replaced with a set of new test cases that have been rewritten to use one or more backends. E.g., a test case named `Test` will by default be rewritten to `Test_jax` and 'Test_tensorflow' which use the JAX and TensorFlow, respectively. The decorator works by using the dynamic rewrite system to rewrite imports of the module the test is defined in, and inserting the approriately renamed test cases into the `globals()` dictionary of the original module. A side-effect of this is that the global code inside the module is run `1 + len(backends)` times, so avoid doing anything expensive there. This does mean that the original module needs to be in a runnable state, i.e., when it uses symbols from `backend`, those must be actually present in the literal `backend` module. A subtle point about what this decorator does in the rewritten modules: the rewrite system changes the behavior of this decorator to act as a passthrough to avoid infinite rewriting loops. Args: globals_dict: Python dictionary of strings to symbols. Set this to the value of `globals()`. relative_module_name: Python string. The module name of the module where the decorated test resides relative to `fun_mc`. You must not use `__name__` for this as that is set to a defective value of `__main__` which is sufficiently abnormal that the rewrite system does not work on it. backends: Python iterable of strings. Which backends to test with. test_case: The actual test case to decorate. Returns: None, to delete the original test case. """ if test_case is None: return lambda test_case: multi_backend_test( # pylint: disable=g-long-lambda globals_dict=globals_dict, relative_module_name=relative_module_name, test_case=test_case) if BACKEND is not None: return test_case if relative_module_name == '__main__': raise ValueError( 'module_name should be written out manually, not by passing __name__.') # This assumes `test_util` is 1 levels deep inside of `fun_mc`. If we # move it, we'd change the `-1` to equal the (negative) nesting level. root_name_comps = __name__.split('.')[:-1] relative_module_name_comps = relative_module_name.split('.') # Register the rewrite hooks. importlib.import_module('.'.join(root_name_comps + ['backends', 'rewrite'])) new_test_case_names = [] for backend in backends: new_module_name_comps = ( root_name_comps + ['dynamic', 'backend_{}'.format(backend)] + relative_module_name_comps) # Rewrite the module. new_module = importlib.import_module('.'.join(new_module_name_comps)) # Subclass the test case so that we can rename it (absl uses the class name # in its UI). base_new_test = getattr(new_module, test_case.__name__) new_test = type('{}_{}'.format(test_case.__name__, backend), (base_new_test,), {}) new_test_case_names.append(new_test.__name__) globals_dict[new_test.__name__] = new_test # We deliberately return None to delete the original test case from the # original module.
tensorflow/probability
spinoffs/fun_mc/fun_mc/test_util.py
Python
apache-2.0
4,192
import sys import xbmcgui import xbmcplugin import xbmcaddon import urlparse import xbmc import bmctv import urllib2 try: import StorageServer except: import storageserverdummy as StorageServer cache = StorageServer.StorageServer("plugin.video.bmctv", 24) plugin_url = sys.argv[0] addon_handle = int(sys.argv[1]) xbmcplugin.setContent(addon_handle, 'movies') addon = xbmcaddon.Addon() addon_path = addon.getAddonInfo("path") def read_html(url): f = urllib2.urlopen(url) data = f.read() f.close() return data bmc_root = "tv.thebmc.co.uk" bmc_home = "http://" + bmc_root args = urlparse.parse_qs(sys.argv[2][1:]) mode = args.get('mode', None) def read_all(pages, channel_link): list_items = [] for i in range(1,pages+1): page_url = bmctv.build_url(channel_link,i) xbmc.log("BMCTV : Reading HTML from " + page_url) available_videos = cache.cacheFunction(bmctv.available_videos,read_html(page_url)) for title, info in available_videos.iteritems(): item_url = bmctv.build_item_url(plugin_url, info ) list_items.append({"title":title, "url":item_url, "info":info}) return list_items if mode is None: # startup index page channels = bmctv.available_channels(read_html(bmctv.build_url("/",1))) channel_items = [] for channel, link in channels: li = xbmcgui.ListItem(label=channel, thumbnailImage=bmctv.get_channel_icon(addon_path,channel)) channel_items.append((bmctv.build_channel_url(plugin_url,channel,link), li, True)) xbmcplugin.addDirectoryItems(addon_handle, channel_items) xbmcplugin.endOfDirectory(addon_handle) elif mode[0] == "channel": channel=args.get('channel')[0] channel_link = args.get('link')[0] pages = bmctv.available_pages(read_html(bmctv.build_url(channel_link,1))) list_items = [] for item in cache.cacheFunction(read_all,pages,channel_link): info = item["info"] li = xbmcgui.ListItem(label=item["title"], thumbnailImage=info["thumbnail"],iconImage=info["thumbnail"] ) list_items.append((item["url"], li,True)) xbmcplugin.addDirectoryItems(addon_handle,list_items) xbmcplugin.endOfDirectory(addon_handle) elif mode[0] == "video": page_url = urlparse.urljoin(bmc_home,args.get('page_url')[0]) video_info = bmctv.video_info(read_html(page_url)) li = xbmcgui.ListItem( label=video_info.title, label2=video_info.summary, iconImage=video_info.image, thumbnailImage=video_info.image) # TODO li.setInfo('video', { 'title': video_info.title, 'plotoutline': video_info.summary, 'plot': video_info.description }) # li.addStreamInfo('video', {'height': 720 }) xbmcplugin.addDirectoryItem(handle=addon_handle, url=video_info.video["720p"], listitem=li) xbmcplugin.endOfDirectory(addon_handle)
planetmarshall/bmctv_addon
bmctv_main.py
Python
apache-2.0
2,892
"""TcEx Error Codes""" class TcExErrorCodes: """TcEx Framework Error Codes.""" @property def errors(self): """Return TcEx defined error codes and messages. .. note:: RuntimeErrors with a code of >= 10000 are considered critical. Those < 10000 are considered warning or errors and are up to the developer to determine the appropriate behavior. """ return { # tcex general errors 100: 'Generic error. See log for more details ({}).', 105: 'Required Module is not installed ({}).', 200: 'Failed retrieving Custom Indicator Associations types from API ({}).', 210: 'Failure during token renewal ({}).', 215: 'HMAC authorization requires a PreparedRequest Object.', 220: 'Failed retrieving indicator types from API ({}).', # tcex resource 300: 'Failed retrieving Bulk JSON ({}).', 305: 'An invalid action/association name ({}) was provided.', 350: 'Data Store request failed. API status code: {}, API message: {}.', # batch v2: 500-600 520: 'File Occurrences can only be added to a File. Current type: {}.', 540: 'Failed polling batch status ({}).', 545: 'Failed polling batch status. API status code: {}, API message: {}.', 550: 'Batch status check reached timeout ({} seconds).', 560: 'Failed retrieving batch errors ({}).', 580: 'Failed posting file data ({}).', 585: 'Failed posting file data. API status code: {}, API message: {}.', 590: 'No hash values provided.', # threat intelligence 600: 'Failed adding group type "{}" with name "{}" ({}).', 605: 'Failed adding attribute type "{}" with value "{}" to group id "{}" ({}).', 610: 'Failed adding label "{}" to group id "{}" ({}).', 615: 'Failed adding tag "{}" to group id "{}" ({}).', 650: 'Failed adding label "{}" to attribute id "{}" ({}).', # metrics 700: 'Failed to create metric. API status code: {}, API message: {}.', 705: 'Error while finding metric by name. API status code: {}, API message: {}.', 710: 'Failed to add metric data. API status code: {}, API message: {}.', 715: 'No metric ID found for "{}".', # notifications 750: 'Failed to send notification. API status code: {}, API message: {}.', # datastore 800: 'Failed to create index. API status code: {}, API message: {}.', 805: 'Failed to {} record data. API status code: {}, API message: {}.', # threat intelligence module 905: 'Error during update. {} does not have a unique_id set and cannot be updated.', 910: 'Error during get. {} does not have a unique_id set and cannot be fetched.', 915: 'Error during delete. {} does not have a unique_id set and cannot be deleted.', 920: ( 'Error during create. {} does not have required values set and cannot be ' 'created.' ), # TODO: fix this and all references 925: 'Error invalid {}. {} does not accept that {}, {}: {}.', 950: 'Error during pagination. API status code: {}, API message: {}, API Url: {}.', 951: 'Error during {}. API status code: {}, API message: {}, API Url: {}.', 952: 'Error during {}. API status code: {}, API message: {}, API Url: {}.', # batch v2 critical: 10500: 'Critical batch error ({}).', 10505: 'Failed submitting batch job requests ({}).', 10510: 'Failed submitting batch job requests. API status code: {}, API message: {}.', 10520: 'Failed submitting batch data ({}).', 10525: 'Failed submitting batch data. API status code: {}, API message: {}.', } def message(self, code): """Return the error message. Args: code (integer): The error code integer. Returns: (string): The error message. """ return self.errors.get(code)
kstilwell/tcex
tcex/tcex_error_codes.py
Python
apache-2.0
4,240
#!/usr/bin/python # ***************************************************************************** # # Copyright (c) 2016, EPAM SYSTEMS INC # # 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 os import json import sys from fabric.api import local if __name__ == "__main__": success = True try: local('cd /root; fab terminate') except: success = False reply = dict() reply['request_id'] = os.environ['request_id'] if success: reply['status'] = 'ok' else: reply['status'] = 'err' reply['response'] = dict() try: with open("/root/result.json") as f: reply['response']['result'] = json.loads(f.read()) except: reply['response']['result'] = {"error": "Failed to open result.json"} if os.environ['conf_resource'] == 'ssn': reply['response']['log'] = "/response/{}.log".format(os.environ['request_id']) with open("/response/{}.json".format(os.environ['request_id']), 'w') as response_file: response_file.write(json.dumps(reply)) else: reply['response']['log'] = "/var/log/dlab/{0}/{0}_{1}_{2}.log".format(os.environ['conf_resource'], os.environ['edge_user_name'], os.environ['request_id']) with open("/response/{}_{}_{}.json".format(os.environ['conf_resource'], os.environ['edge_user_name'], os.environ['request_id']), 'w') as response_file: response_file.write(json.dumps(reply)) try: local('chmod 666 /response/*') except: success = False if not success: sys.exit(1)
epam/DLab
infrastructure-provisioning/src/general/api/terminate.py
Python
apache-2.0
2,363
#!/usr/bin/env python3 import os, sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cavedb.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
masneyb/cavedbmanager
manage.py
Python
apache-2.0
244
# Copyright (c) 2013 Noa Resare # # 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. from distutils.core import setup setup( name='runasdaemon', version="0.1.0", description="Tool to make command line programs behave as unix daemons", author='Noa Resare', author_email='[email protected]', license='Apache-2.0', packages=['runasdaemon'], )
nresare/runasdaemon
setup.py
Python
apache-2.0
1,102
# todo: ABC of api from strands import ArchStrand class HopArch(object): def __init__(self, display, strand_count): self.__display = display self.__strand_count = strand_count x = 0 y = 0 z = 0 strands = [] p = 38 for s in range(0, strand_count): strand = ArchStrand(self.__display, p, 26, 36, (x,y,z)) strands.append(strand) p = 38 z = z - 60 self.__display.set_limits(100, 1, strand_count)
stuart-stanley/stormlight-archive
src/arrangements/hop_arch.py
Python
apache-2.0
540
#!/usr/bin/env python3 # -*- python -*- #BEGIN_LEGAL # #Copyright (c) 2019 Intel Corporation # # 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. # #END_LEGAL # This is the "fast" encoder generator known as "enc2". from __future__ import print_function import os import sys import copy import re import argparse import itertools import collections import traceback import find_dir # finds mbuild and adds it to sys.path import mbuild import codegen import read_xed_db import gen_setup import enc2test import enc2argcheck from enc2common import * def get_fname(depth=1): # default is current caller #return sys._getframe(depth).f_code.co_name return traceback.extract_stack(None, depth+1)[0][2] gpr_nt_widths_dict = {} # list indexed by OSZ (o16,o32,o64) gpr_nt_widths_dict['GPRv_SB'] = [16,32,64] gpr_nt_widths_dict['GPRv_R'] = [16,32,64] gpr_nt_widths_dict['GPRv_B'] = [16,32,64] gpr_nt_widths_dict['GPRz_R'] = [16,32,32] gpr_nt_widths_dict['GPRz_B'] = [16,32,32] gpr_nt_widths_dict['GPRy_R'] = [32,32,64] gpr_nt_widths_dict['GPRy_B'] = [32,32,64] gpr_nt_widths_dict['GPR8_R'] = [8,8,8] gpr_nt_widths_dict['GPR8_B'] = [8,8,8] gpr_nt_widths_dict['GPR8_SB'] = [8,8,8] gpr_nt_widths_dict['GPR16_R'] = [16,16,16] gpr_nt_widths_dict['GPR16_B'] = [16,16,16] gpr_nt_widths_dict['GPR32_B'] = [32,32,32] gpr_nt_widths_dict['GPR32_R'] = [32,32,32] gpr_nt_widths_dict['GPR64_B'] = [64,64,64] gpr_nt_widths_dict['GPR64_R'] = [64,64,64] gpr_nt_widths_dict['VGPR32_B'] = [32,32,32] gpr_nt_widths_dict['VGPR32_R'] = [32,32,32] gpr_nt_widths_dict['VGPR32_N'] = [32,32,32] gpr_nt_widths_dict['VGPRy_N'] = [32,32,64] gpr_nt_widths_dict['VGPR64_B'] = [64,64,64] gpr_nt_widths_dict['VGPR64_R'] = [64,64,64] gpr_nt_widths_dict['VGPR64_N'] = [64,64,64] gpr_nt_widths_dict['A_GPR_R' ] = 'ASZ-SIZED-GPR' # SPECIAL gpr_nt_widths_dict['A_GPR_B' ] = 'ASZ-SIZED-GPR' # everything else is not typically used in scalable way. look at other # operand. oc2_widths_dict = {} oc2_widths_dict['v'] = [16,32,64] oc2_widths_dict['y'] = [32,32,64] oc2_widths_dict['z'] = [16,32,32] oc2_widths_dict['b'] = [8,8,8] oc2_widths_dict['w'] = [16,16,16] oc2_widths_dict['d'] = [32,32,32] oc2_widths_dict['q'] = [64,64,64] enc_fn_prefix = "xed_enc" arg_reg_type = 'xed_reg_enum_t ' var_base = 'base' arg_base = 'xed_reg_enum_t ' + var_base var_index = 'index' arg_index = 'xed_reg_enum_t ' + var_index var_indexx = 'index_xmm' arg_indexx = 'xed_reg_enum_t ' + var_indexx var_indexy = 'index_ymm' arg_indexy = 'xed_reg_enum_t ' + var_indexy var_indexz = 'index_zmm' arg_indexz = 'xed_reg_enum_t ' + var_indexz var_vsib_index_dct = { 'xmm': var_indexx, 'ymm': var_indexy, 'zmm': var_indexz } var_scale = 'scale' arg_scale = 'xed_uint_t ' + var_scale var_disp8 = 'disp8' arg_disp8 = 'xed_int8_t ' + var_disp8 var_disp16 = 'disp16' arg_disp16 = 'xed_int16_t ' + var_disp16 var_disp32 = 'disp32' arg_disp32 = 'xed_int32_t ' + var_disp32 var_disp64 = 'disp64' arg_disp64 = 'xed_int64_t ' + var_disp64 var_request = 'r' arg_request = 'xed_enc2_req_t* ' + var_request var_reg0 = 'reg0' arg_reg0 = 'xed_reg_enum_t ' + var_reg0 var_reg1 = 'reg1' arg_reg1 = 'xed_reg_enum_t ' + var_reg1 var_reg2 = 'reg2' arg_reg2 = 'xed_reg_enum_t ' + var_reg2 var_reg3 = 'reg3' arg_reg3 = 'xed_reg_enum_t ' + var_reg3 var_reg4 = 'reg4' arg_reg4 = 'xed_reg_enum_t ' + var_reg4 var_kmask = 'kmask' arg_kmask = 'xed_reg_enum_t ' + var_kmask var_kreg0 = 'kreg0' arg_kreg0 = 'xed_reg_enum_t ' + var_kreg0 var_kreg1 = 'kreg1' arg_kreg1 = 'xed_reg_enum_t ' + var_kreg1 var_kreg2 = 'kreg2' arg_kreg2 = 'xed_reg_enum_t ' + var_kreg2 var_rcsae = 'rcsae' arg_rcsae = 'xed_uint_t ' + var_rcsae var_zeroing = 'zeroing' arg_zeroing = 'xed_bool_t ' + var_zeroing var_imm8 = 'imm8' arg_imm8 = 'xed_uint8_t ' + var_imm8 var_imm8_2 = 'imm8_2' arg_imm8_2 = 'xed_uint8_t ' + var_imm8_2 var_imm16 = 'imm16' arg_imm16 = 'xed_uint16_t ' + var_imm16 var_imm16_2 = 'imm16_2' arg_imm16_2 = 'xed_uint16_t ' + var_imm16_2 var_imm32 = 'imm32' arg_imm32 = 'xed_uint32_t ' + var_imm32 var_imm64 = 'imm64' arg_imm64 = 'xed_uint64_t ' + var_imm64 def special_index_cases(ii): if ii.avx512_vsib or ii.avx_vsib or ii.sibmem: return True return False # if I wanted to prune the number of memory variants, I could set # index_vals to just [True]. index_vals = [False,True] def get_index_vals(ii): global index_vals if special_index_cases(ii): return [True] return index_vals gprv_index_names = { 16:'gpr16_index', 32:'gpr32_index', 64:'gpr64_index'} gprv_names = { 8:'gpr8', 16:'gpr16', 32:'gpr32', 64:'gpr64'} # added gpr8 for convenience gpry_names = { 16:'gpr32', 32:'gpr32', 64:'gpr64'} gprz_names = { 16:'gpr16', 32:'gpr32', 64:'gpr32'} vl2names = { '128':'xmm', '256':'ymm', '512':'zmm', 'LIG':'xmm', 'LLIG':'xmm' } vl2func_names = { '128':'128', '256':'256', '512':'512', 'LIG':'', 'LLIG':'' } bits_to_widths = {8:'b', 16:'w', 32:'d', 64:'q' } arg_immz_dct = { 0: '', 8: arg_imm8, 16: arg_imm16, 32: arg_imm32, 64: arg_imm32 } var_immz_dct = { 0: '', 8: var_imm8, 16: var_imm16, 32: var_imm32, 64: var_imm32 } arg_immz_meta = { 0: '', 8:'int8', 16: 'int16', 32: 'int32', 64: 'int32' } arg_immv_dct = { 0: '', 8: arg_imm8, 16: arg_imm16, 32: arg_imm32, 64: arg_imm64 } var_immv_dct = { 0: '', 8: var_imm8, 16: var_imm16, 32: var_imm32, 64: var_imm64 } arg_immv_meta = { 0: '', 8:'int8', 16: 'int16', 32: 'int32', 64: 'int64' } arg_dispv = { 8: arg_disp8, 16: arg_disp16, 32: arg_disp32, 64: arg_disp64 } # index by dispsz var_dispv = { 8: arg_disp8, 16:var_disp16, 32:var_disp32, 64:var_disp64 } arg_dispz = { 16: arg_disp16, 32: arg_disp32, 64: arg_disp32 } # index by dispsz tag_dispz = { 16: 'int16', 32: 'int32', 64: 'int32' } # index by dispsz var_dispz = { 16:var_disp16, 32:var_disp32, 64:var_disp32 } arg_dispv_meta = { 8:'int8', 16:'int16', 32:'int32', 64:'int64' } widths_to_bits = {'b':8, 'w':16, 'd':32, 'q':64 } widths_to_bits_y = {'w':32, 'd':32, 'q':64 } widths_to_bits_z = {'w':16, 'd':32, 'q':32 } # if I cut the number of displacements by removing 0, I would have to # add some sort of gizmo to omit the displacent if the value of the # displacement is 0, but then that creates a problem for people who # what zero displacements for patching. I could also consider merging # disp8 and disp16/32 and then chose the smallest displacement that # fits, but that also takes away control from the user. def get_dispsz_list(env): return [0,8,16] if env.asz == 16 else [0,8,32] def get_osz_list(env): return [16,32,64] if env.mode == 64 else [16,32] _modvals = { 0: 0, 8: 1, 16: 2, 32: 2 } # index by dispsz def get_modval(dispsz): global _modvals return _modvals[dispsz] def _gen_opnds(ii): # generator # filter out write-mask operands and suppressed operands for op in ii.parsed_operands: if op.lookupfn_name in [ 'MASK1', 'MASKNOT0']: continue if op.visibility == 'SUPPRESSED': continue if op.name == 'BCAST': continue yield op def _gen_opnds_nomem(ii): # generator # filter out write-mask operands and suppressed operands and memops for op in ii.parsed_operands: if op.name.startswith('MEM'): continue if op.lookupfn_name == 'MASK1': continue if op.lookupfn_name == 'MASKNOT0': continue if op.visibility == 'SUPPRESSED': continue if op.name == 'BCAST': continue yield op def first_opnd(ii): op = next(_gen_opnds(ii)) return op def first_opnd_nonmem(ii): op = next(_gen_opnds_nomem(ii)) return op #def second_opnd(ii): # for i,op in enumerate(_gen_opnds(ii)): # if i==1: # return op def op_mask_reg(op): return op_luf_start(op,'MASK') def op_masknot0(op): return op_luf_start(op,'MASKNOT0') def op_scalable_v(op): if op_luf_start(op,'GPRv'): return True if op.oc2 == 'v': return True return False def op_gpr8(op): if op_luf_start(op,'GPR8'): return True if op_reg(op) and op.oc2 == 'b': return True return False def op_gpr16(op): if op_luf_start(op,'GPR16'): return True if op_reg(op) and op.oc2 == 'w': return True return False def op_seg(op): return op_luf_start(op,'SEG') def op_cr(op): return op_luf_start(op,'CR') def op_dr(op): return op_luf_start(op,'DR') def op_gprz(op): return op_luf_start(op,'GPRz') def op_gprv(op): return op_luf_start(op,'GPRv') def op_gpry(op): return op_luf_start(op,'GPRy') def op_vgpr32(op): return op_luf_start(op,'VGPR32') def op_vgpr64(op): return op_luf_start(op,'VGPR64') def op_gpr32(op): return op_luf_start(op,'GPR32') def op_gpr64(op): return op_luf_start(op,'GPR64') def op_ptr(op): if 'PTR' in op.name: return True return False def op_reg(op): if 'REG' in op.name: return True return False def op_mem(op): if 'MEM' in op.name: return True return False def op_agen(op): # LEA if 'AGEN' in op.name: return True return False def op_tmm(op): if op.lookupfn_name: if 'TMM' in op.lookupfn_name: return True return False def op_xmm(op): if op.lookupfn_name: if 'XMM' in op.lookupfn_name: return True return False def op_ymm(op): if op.lookupfn_name: if 'YMM' in op.lookupfn_name: return True return False def op_zmm(op): if op.lookupfn_name: if 'ZMM' in op.lookupfn_name: return True return False def op_mmx(op): if op.lookupfn_name: if 'MMX' in op.lookupfn_name: return True return False def op_x87(op): if op.lookupfn_name: if 'X87' in op.lookupfn_name: return True elif (op.name.startswith('REG') and op.lookupfn_name == None and re.match(r'XED_REG_ST[0-7]',op.bits) ): return True return False def one_scalable_gpr_and_one_mem(ii): # allows optional imm8,immz, one implicit specific reg implicit,n,r,i = 0,0,0,0 for op in _gen_opnds(ii): if op_mem(op): n += 1 elif op_reg(op) and op_implicit_specific_reg(op): implicit += 1 elif op_gprv(op): #or op_gpry(op): r += 1 elif op_imm8(op) or op_immz(op): i += 1 else: return False return n==1 and r==1 and i<=1 and implicit <= 1 def one_gpr_reg_one_mem_scalable(ii): n,r = 0,0 for op in _gen_opnds(ii): if op_agen(op) or (op_mem(op) and op.oc2 in ['v']): n += 1 elif op_gprv(op): r += 1 else: return False return n==1 and r==1 def one_gpr_reg_one_mem_zp(ii): n,r = 0,0 for op in _gen_opnds(ii): if op_mem(op) and op.oc2 in ['p','z']: n += 1 elif op_gprz(op): r += 1 else: return False return n==1 and r==1 def one_gpr_reg_one_mem_fixed(ii): n,r = 0,0 for op in _gen_opnds(ii): # FIXME: sloppy could bemixing b and d operands, for example if op_mem(op) and op.oc2 in ['b', 'w', 'd', 'q','dq']: n += 1 elif op_gpr8(op) or op_gpr16(op) or op_gpr32(op) or op_gpr64(op): r += 1 else: return False return n==1 and r==1 simd_widths = ['b','w','xud', 'qq', 'dq', 'q', 'ps','pd', 'ss', 'sd', 'd', 'm384', 'm512', 'xuq', 'zd'] def one_xmm_reg_one_mem_fixed_opti8(ii): # allows gpr32, gpr64, mmx too global simd_widths i,r,n=0,0,0 for op in _gen_opnds(ii): if op_mem(op) and op.oc2 in simd_widths: n = n + 1 elif (op_xmm(op) or op_mmx(op) or op_gpr32(op) or op_gpr64(op)) and op.oc2 in simd_widths: r = r + 1 elif op_imm8(op): i = i + 1 else: return False return n==1 and r==1 and i<=1 def one_mem_common(ii): # b,w,d,q,dq, v, y, etc. n = 0 for op in _gen_opnds(ii): if op_mem(op) and op.oc2 in ['b','w','d','q','dq','v', 'y', 's', 'mem14','mem28','mem94','mem108', 'mxsave', 'mprefetch', 'mem16', 's64', 'mfpxenv', 'm384', 'm512' ]: n = n + 1 else: return False return n==1 def is_gather_prefetch(ii): if 'GATHER' in ii.attributes: if 'PREFETCH' in ii.attributes: return True return False def is_far_xfer_mem(ii): if 'FAR_XFER' in ii.attributes: for op in _gen_opnds(ii): if op_mem(op) and op.oc2 in ['p','p2']: return True return False def is_far_xfer_nonmem(ii): p,i=0,0 if 'FAR_XFER' in ii.attributes: for op in _gen_opnds(ii): if op_ptr(op): p =+ 1 elif op_imm16(op): i += 1 else: return False return True return i==1 and p==1 def op_reg_invalid(op): if op.bits and op.bits != '1': if op.bits == 'XED_REG_INVALID': return True return False def one_mem_common_one_implicit_gpr(ii): '''memop can be b,w,d,q,dq, v, y, etc. with GPR8 or GPRv''' n,g = 0,0 for op in _gen_opnds(ii): if op_mem(op) and op.oc2 in ['b','w','d','q','dq','v', 'y', 'mem14','mem28','mem94','mem108', 'mxsave', 'mprefetch' ]: n += 1 elif op_reg(op) and op_implicit(op) and not op_reg_invalid(op): # FIXME: could improve the accuracy by enforcing GPR. but # not sure if that is strictly necessary. Encoding works... g += 1 else: return False return n==1 and g==1 def one_mem_fixed_imm8(ii): # b,w,d,q,dq, etc. n = 0 i = 0 for op in _gen_opnds(ii): if op_mem(op) and op.oc2 in ['b','w','d','q','dq', 'v', 'y', 'mem14','mem28','mem94','mem108']: n = n + 1 elif op_imm8(op): i = i + 1 else: return False return n==1 and i==1 def one_mem_fixed_immz(ii): # b,w,d,q,dq, etc. n = 0 i = 0 for op in _gen_opnds(ii): if op_mem(op) and op.oc2 in ['b','w','d','q','dq', 'v', 'y', 'mem14','mem28','mem94','mem108']: n = n + 1 elif op_immz(op): i = i + 1 else: return False return n==1 and i==1 def two_gpr_one_scalable_one_fixed(ii): f,v = 0,0 for op in _gen_opnds(ii): if op_reg(op) and op_scalable_v(op): v += 1 elif op_reg(op) and (op_gpr8(op) or op_gpr16(op) or op_gpr32(op)): f += 1 else: return False return v==1 and f==1 def two_scalable_regs(ii): # allow optional imm8, immz, allow one implicit GPR n,i,implicit = 0,0,0 for op in _gen_opnds(ii): if op_reg(op) and op_scalable_v(op): n += 1 elif op_reg(op) and op_implicit_specific_reg(op): implicit += 1 elif op_imm8(op) or op_immz(op): i += 1 else: return False return n==2 and i <= 1 and implicit <= 1 def op_implicit(op): return op.visibility == 'IMPLICIT' def op_implicit_or_suppressed(op): return op.visibility in ['IMPLICIT','SUPPRESSED'] def one_x87_reg(ii): n = 0 for op in _gen_opnds(ii): if op_reg(op) and op_x87(op) and not op_implicit(op): n = n + 1 else: return False return n==1 def two_x87_reg(ii): # one implicit n = 0 implicit = 0 for op in _gen_opnds(ii): if op_reg(op) and op_x87(op): n = n + 1 if op_implicit(op): implicit = implicit + 1 else: return False return n==2 and implicit == 1 def one_x87_implicit_reg_one_memop(ii): mem,implicit_reg = 0,0 for op in _gen_opnds(ii): if op_reg(op) and op_x87(op): if op_implicit(op): implicit_reg = implicit_reg + 1 else: return False elif op_mem(op): mem = mem + 1 else: return False return mem==1 and implicit_reg==1 def zero_operands(ii):# allow all implicit regs n = 0 for op in _gen_opnds(ii): if op_implicit(op): continue n = n + 1 return n == 0 def one_implicit_gpr_imm8(ii): '''this allows implicit operands''' n = 0 for op in _gen_opnds(ii): if op_imm8(op): n = n + 1 elif op_implicit(op): continue else: return False return n == 1 def op_implicit_specific_reg(op): if op.name.startswith('REG'): if op.bits and op.bits.startswith('XED_REG_'): return True return False def one_gprv_one_implicit(ii): n,implicit = 0,0 for op in _gen_opnds(ii): if op_gprv(op): n += 1 elif op_implicit_specific_reg(op): implicit += 1 else: return False return n == 1 and implicit == 1 def one_gpr8_one_implicit(ii): n,implicit = 0,0 for op in _gen_opnds(ii): if op_gpr8(op): n += 1 elif op_implicit_specific_reg(op): implicit += 1 else: return False return n == 1 and implicit == 1 def one_nonmem_operand(ii): n = 0 for op in _gen_opnds(ii): if op_mem(op): return False if op_implicit_or_suppressed(op): # for RCL/ROR etc with implicit imm8 continue n = n + 1 return n == 1 def two_gpr8_regs(ii): n = 0 for op in _gen_opnds(ii): if op_reg(op) and op_gpr8(op): n = n + 1 else: return False return n==2 def op_immz(op): if op.name == 'IMM0': if op.oc2 == 'z': return True return False def op_immv(op): if op.name == 'IMM0': if op.oc2 == 'v': return True return False def op_imm8(op): if op.name == 'IMM0': if op.oc2 == 'b': if op_implicit_or_suppressed(op): return False return True return False def op_imm16(op): if op.name == 'IMM0': if op.oc2 == 'w': return True return False def op_imm8_2(op): if op.name == 'IMM1': if op.oc2 == 'b': return True return False def one_mmx_reg_imm8(ii): n = 0 for i,op in enumerate(_gen_opnds(ii)): if op_reg(op) and op_mmx(op): n = n + 1 elif i == 1 and op_imm8(op): continue else: return False return n==1 def one_xmm_reg_imm8(ii): # also allows SSE4 2-imm8 instr i,j,n=0,0,0 for op in _gen_opnds(ii): if op_reg(op) and op_xmm(op): n += 1 elif op_imm8(op): i += 1 elif op_imm8_2(op): j += 1 else: return False return n==1 and i==1 and j<=1 def two_xmm_regs_imm8(ii): n = 0 for i,op in enumerate(_gen_opnds(ii)): if op_reg(op) and op_xmm(op): n = n + 1 elif i == 2 and op_imm8(op): continue else: return False return n==2 def gen_osz_list(mode, osz_list): """skip osz 64 outside of 64b mode""" for osz in osz_list: if mode != 64 and osz == 64: continue yield osz def modrm_reg_first_operand(ii): op = first_opnd(ii) if op.lookupfn_name: if op.lookupfn_name.endswith('_R'): return True if op.lookupfn_name.startswith('SEG'): return True return False def emit_required_legacy_prefixes(ii,fo): if ii.iclass.endswith('_LOCK'): fo.add_code_eol('emit(r,0xF0)') if ii.f2_required: fo.add_code_eol('emit(r,0xF2)', 'required by instr') if ii.f3_required: fo.add_code_eol('emit(r,0xF3)', 'required by instr') if ii.osz_required: fo.add_code_eol('emit(r,0x66)', 'required by instr') def emit_67_prefix(fo): fo.add_code_eol('emit(r,0x67)', 'change EASZ') def emit_required_legacy_map_escapes(ii,fo): if ii.map == 1: fo.add_code_eol('emit(r,0x0F)', 'escape map 1') elif ii.map == 2: fo.add_code_eol('emit(r,0x0F)', 'escape map 2') fo.add_code_eol('emit(r,0x38)', 'escape map 2') elif ii.map == 3: fo.add_code_eol('emit(r,0x0F)', 'escape map 3') fo.add_code_eol('emit(r,0x3A)', 'escape map 3') elif ii.amd_3dnow_opcode: fo.add_code_eol('emit(r,0x0F)', 'escape map 3dNOW') fo.add_code_eol('emit(r,0x0F)', 'escape map 3dNOW') def get_implicit_operand_name(op): if op_implicit(op): if op.name.startswith('REG'): if op.bits and op.bits.startswith('XED_REG_'): reg_name = re.sub('XED_REG_','',op.bits).lower() return reg_name elif op.lookupfn_name: ntluf = op.lookupfn_name return ntluf elif op.name == 'IMM0' and op.type == 'imm_const' and op.bits == '1': return 'one' die("Unhandled implicit operand {}".format(op)) return None def _gather_implicit_regs(ii): names = [] for op in _gen_opnds(ii): nm = get_implicit_operand_name(op) if nm: names.append(nm) return names def _implicit_reg_names(ii): extra_names = _gather_implicit_regs(ii) if extra_names: extra_names = '_' + '_'.join( extra_names ) else: extra_names = '' return extra_names def emit_vex_prefix(env, ii, fo, register_only=False): if ii.map == 1 and ii.rexw_prefix != '1': # if any of x,b are set, need c4, else can use c5 # performance: we know statically if something is register # only. In which case, we can avoid testing rexx. if env.mode == 64: if register_only: fo.add_code('if (get_rexb(r))') else: fo.add_code('if (get_rexx(r) || get_rexb(r))') fo.add_code_eol(' emit_vex_c4(r)') fo.add_code('else') fo.add_code_eol(' emit_vex_c5(r)') else: fo.add_code_eol('emit_vex_c5(r)') else: fo.add_code_eol('emit_vex_c4(r)') def emit_opcode(ii,fo): if ii.amd_3dnow_opcode: return # handled later. See add_enc_func() opcode = "0x{:02X}".format(ii.opcode_base10) fo.add_code_eol('emit(r,{})'.format(opcode), 'opcode') def create_modrm_byte(ii,fo): mod,reg,rm = 0,0,0 modrm_required = False if ii.mod_required: if ii.mod_required in ['unspecified']: pass elif ii.mod_required in ['00/01/10']: modrm_requried = True else: mod = ii.mod_required modrm_required = True if ii.reg_required: if ii.reg_required in ['unspecified']: pass else: reg = ii.reg_required modrm_required = True if ii.rm_required: if ii.rm_required in ['unspecified']: pass else: rm = ii.rm_required modrm_required = True if modrm_required: modrm = (mod << 6) | (reg<<3) | rm fo.add_comment('MODRM = 0x{:02x}'.format(modrm)) if mod: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) if reg: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(reg)) if rm: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(rm)) return modrm_required numbered_function_creators = collections.defaultdict(int) def dump_numbered_function_creators(): global numbered_function_creators for k,val in sorted(numbered_function_creators.items(), key=lambda x: x[1]): print("NUMBERED FN CREATORS: {:5d} {:30s}".format(val,k)) numbered_functions = 0 def make_function_object(env, ii, fname, return_value='void', asz=None): '''Create function object. Augment function name for conventions ''' global numbered_functions global numbered_function_creators if 'AMDONLY' in ii.attributes: fname += '_amd' if ii.space == 'evex': fname += '_e' # Distinguish the 16/32b mode register-only functions to avoid # name collisions. The stuff references memory has an # "_a"+env.asz suffix. The non-memory stuff can still have name # collisions. To avoid those collisions, I append _md16 or _md32 # to the function names. if asz: fname += '_a{}'.format(asz) elif env.mode in [16,32]: fname += '_md{}'.format(env.mode) if fname in env.function_names: numbered_functions += 1 t = env.function_names[fname] + 1 env.function_names[fname] = t fname = '{}_vr{}'.format(fname,t) numbered_function_creators[get_fname(2)] += 1 #msge("Numbered function name for: {} from {}".format(fname, get_fname(2))) else: env.function_names[fname] = 0 fo = codegen.function_object_t(fname, return_value, dll_export=True) if ii.iform: fo.add_comment(ii.iform) return fo def make_opnd_signature(env, ii, using_width=None, broadcasting=False, special_xchg=False): '''This is the heart of the naming conventions for the encode functions. If using_width is present, it is used for GPRv and GPRy operations to specify a width. ''' global vl2func_names, widths_to_bits, widths_to_bits_y, widths_to_bits_z def _translate_rax_name(w): rax_names = { 16: 'ax', 32:'eax', 64:'rax' } osz = _translate_width_int(w) return rax_names[osz] def _translate_eax_name(w): eax_names = { 16: 'ax', 32:'eax', 64:'eax' } osz = _translate_width_int(w) return eax_names[osz] def _translate_r8_name(w): # uppercase to try to differentiate r8 (generic 8b reg) from R8 64b reg r8_names = { 16: 'R8W', 32:'R8D', 64:'R8' } osz = _translate_width_int(w) return r8_names[osz] def _translate_width_int(w): if w in [8,16,32,64]: return w return widths_to_bits[w] def _translate_width(w): return str(_translate_width_int(w)) def _translate_width_y(w): if w in [32,64]: return str(w) elif w == 16: return '32' return str(widths_to_bits_y[w]) def _translate_width_z(w): if w in [16,32]: return str(w) elif w == 64: return '32' return str(widths_to_bits_z[w]) def _convert_to_osz(w): if w in [16,32,64]: return w elif w in widths_to_bits: return widths_to_bits[w] else: die("Cannot convert {}".format(w) ) s = [] for op in _gen_opnds(ii): if op_implicit(op): nm = get_implicit_operand_name(op) if nm in ['OrAX'] and using_width: s.append( _translate_rax_name(using_width) ) elif nm in ['OeAX'] and using_width: s.append( _translate_eax_name(using_width) ) else: s.append(nm) continue # for the modrm-less MOV instr if op.name.startswith('BASE'): continue if op.name.startswith('INDEX'): continue if op_tmm(op): s.append('t') elif op_xmm(op): s.append('x') elif op_ymm(op): s.append('y') elif op_zmm(op): s.append('z') elif op_mask_reg(op): s.append('k') elif op_vgpr32(op): s.append('r32') elif op_vgpr64(op): s.append('r64') #FIXME something else elif op_gpr8(op): s.append('r8') elif op_gpr16(op): s.append('r16') elif op_gpr32(op): s.append('r32') elif op_gpr64(op): s.append('r64') #FIXME something else elif op_gprv(op): if special_xchg: s.append(_translate_r8_name(using_width)) else: s.append('r' + _translate_width(using_width)) elif op_gprz(op): s.append('r' + _translate_width_z(using_width)) elif op_gpry(op): s.append('r' + _translate_width_y(using_width)) elif op_agen(op): s.append('m') # somewhat of a misnomer elif op_mem(op): if op.oc2 == 'b': s.append('m8') elif op.oc2 == 'w': s.append('m16') elif op.oc2 == 'd': s.append('m32') elif op.oc2 == 'q': s.append('m64') elif op.oc2 == 'ptr': # sibmem s.append('mptr') #elif op.oc2 == 'dq': don't really want to start decorating the wider memops # s.append('m128') elif op.oc2 == 'v' and using_width: s.append('m' + _translate_width(using_width)) elif op.oc2 == 'y' and using_width: s.append('m' + _translate_width_y(using_width)) elif op.oc2 == 'z' and using_width: s.append('m' + _translate_width_z(using_width)) else: osz = _convert_to_osz(using_width) if using_width else 0 if op.oc2 == 'tv' or op.oc2.startswith('tm'): bits = 'tv' elif op.oc2 == 'vv': # read_xed_db figures out the memop width for # no-broadcast and broadcasting cases for EVEX # memops. if broadcasting: bits = ii.element_size else: bits = ii.memop_width else: bits = env.mem_bits(op.oc2, osz) if bits == '0': die("OC2FAIL: {}: oc2 {} osz {} -> {}".format(ii.iclass, op.oc2, osz, bits)) s.append('m{}'.format(bits)) # add the index reg width for sparse ops (scatter,gather) if ii.avx_vsib: s.append(ii.avx_vsib[0]) if ii.avx512_vsib: s.append(ii.avx512_vsib[0]) elif op_imm8(op): s.append('i8') elif op_immz(op): if using_width: s.append('i' + _translate_width_z(using_width)) else: s.append('i') elif op_immv(op): if using_width: s.append('i' + _translate_width(using_width)) else: s.append('i') elif op_imm16(op): s.append('i16') elif op_imm8_2(op): s.append('i') #FIXME something else? elif op_x87(op): s.append('sti') # FIXME: or 'x87'? elif op_mmx(op): s.append('mm') # FIXME: or "mmx"? "mm" is shorter. elif op_cr(op): s.append('cr') elif op_dr(op): s.append('dr') elif op_seg(op): s.append('seg') elif op.name in ['REG0','REG1'] and op_luf(op,'OrAX'): if using_width: s.append( _translate_rax_name(using_width) ) else: s.append('r') # FIXME something else? else: die("Unhandled operand {}".format(op)) if ii.space in ['evex']: if ii.rounding_form: s.append( 'rc' ) elif ii.sae_form: s.append( 'sae' ) if ii.space in ['evex','vex']: if 'KMASK' not in ii.attributes: vl = vl2func_names[ii.vl] if vl: s.append(vl) return "_".join(s) def create_legacy_one_scalable_gpr(env,ii,osz_values,oc2): global enc_fn_prefix, arg_request, arg_reg0, var_reg0, gprv_names for osz in osz_values: if env.mode != 64 and osz == 64: continue special_xchg = False if ii.partial_opcode: if ii.rm_required != 'unspecified': if ii.iclass == 'XCHG': if env.mode != 64: continue # This is a strange XCHG that takes r8w, r8d or r8 # depending on the EOSZ. REX.B is required & 64b mode obviously. # And no register specifier is required. special_xchg = True opsig = make_opnd_signature(env, ii, osz, special_xchg=special_xchg) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_scalable_gpr") if special_xchg: fo.add_comment("special xchg using R8W/R8D/R8") fo.add_arg(arg_request,'req') if not special_xchg: fo.add_arg(arg_reg0, gprv_names[osz]) emit_required_legacy_prefixes(ii,fo) rex_forced = False if special_xchg: fo.add_code_eol('set_rexb(r,1)') rex_forced = True if env.mode == 64 and osz == 16: if ii.eosz == 'osznot16': warn("SKIPPING 16b version for: {} / {}".format(ii.iclass, ii.iform)) continue # skip 16b version for this instruction fo.add_code_eol('emit(r,0x66)') elif env.mode == 64 and osz == 32 and ii.default_64b == True: continue # not encodable elif env.mode == 64 and osz == 64 and ii.default_64b == False: if ii.eosz == 'osznot64': warn("SKIPPING 64b version for: {} / {}".format(ii.iclass, ii.iform)) continue # skip 64b version for this instruction fo.add_code_eol('set_rexw(r)') rex_forced = True elif env.mode == 32 and osz == 16: if ii.eosz == 'osznot16': warn("SKIPPING 16b version for: {} / {}".format(ii.iclass, ii.iform)) continue # skip 16b version for this instruction fo.add_code_eol('emit(r,0x66)') elif env.mode == 16 and osz == 32: fo.add_code_eol('emit(r,0x66)') if modrm_reg_first_operand(ii): f1, f2 = 'reg','rm' else: f1, f2 = 'rm','reg' # if f1 is rm then we handle partial opcodes farther down if f1 == 'reg' or not ii.partial_opcode: fo.add_code_eol('enc_modrm_{}_gpr{}(r,{})'.format(f1, osz, var_reg0)) if f2 == 'reg': if ii.reg_required != 'unspecified': fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) else: if ii.rm_required != 'unspecified': fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) if ii.partial_opcode: if ii.rm_required == 'unspecified': op = first_opnd(ii) if op_luf(op,'GPRv_SB'): fo.add_code_eol('enc_srm_gpr{}(r,{})'.format(osz, var_reg0)) else: warn("NOT HANDLING SOME PARTIAL OPCODES YET: {} / {} / {}".format(ii.iclass, ii.iform, op)) ii.encoder_skipped = True return else: # we have some XCHG opcodes encoded as partial register # instructions but have fixed RM fields. fo.add_code_eol('set_srm(r,{})'.format(ii.rm_required)) #dump_fields(ii) #die("SHOULD NOT HAVE A VALUE FOR PARTIAL OPCODES HERE {} / {}".format(ii.iclass, ii.iform)) emit_rex(env, fo, rex_forced) emit_required_legacy_map_escapes(ii,fo) if ii.partial_opcode: emit_partial_opcode_variable_srm(ii,fo) else: emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def add_enc_func(ii,fo): # hack to cover AMD 3DNOW wherever they are created... if ii.amd_3dnow_opcode: fo.add_code_eol('emit_u8(r,{})'.format(ii.amd_3dnow_opcode), 'amd 3dnow opcode') dbg(fo.emit()) ii.encoder_functions.append(fo) def create_legacy_one_imm_scalable(env,ii, osz_values): '''just an imm-z (or IMM-v)''' global enc_fn_prefix, arg_request for osz in osz_values: opsig = make_opnd_signature(env,ii,osz) fname = "{}_m{}_{}_{}".format(enc_fn_prefix, env.mode, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_imm_scalable") fo.add_arg(arg_request,'req') add_arg_immv(fo,osz) if ii.has_modrm: die("NOT REACHED") if env.mode != 16 and osz == 16: fo.add_code_eol('emit(r,0x66)') elif env.mode == 16 and osz == 32: fo.add_code_eol('emit(r,0x66)') if not ii.default_64b: die("Only DF64 here for now") emit_required_legacy_prefixes(ii,fo) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_immv(fo,osz) add_enc_func(ii,fo) def create_legacy_one_gpr_fixed(env,ii,width_bits): global enc_fn_prefix, arg_request, gprv_names opsig = make_opnd_signature(env,ii,width_bits) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_gpr_fixed") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0, gprv_names[width_bits]) if width_bits not in [8,16,32,64]: die("SHOULD NOT REACH HERE") fo.add_code_eol('set_mod(r,{})'.format(3)) if modrm_reg_first_operand(ii): f1,f2 = 'reg', 'rm' else: f1,f2 = 'rm', 'reg' fo.add_code_eol('enc_modrm_{}_gpr{}(r,{})'.format(f1,width_bits, var_reg0)) if f2 == 'reg': if ii.reg_required != 'unspecified': fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) else: if ii.rm_required != 'unspecified': fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) if env.mode == 64 and width_bits == 64 and ii.default_64b == False: fo.add_code_eol('set_rexw(r)') emit_required_legacy_prefixes(ii,fo) if env.mode == 64: fo.add_code_eol('emit_rex_if_needed(r)') emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_legacy_relbr(env,ii): global enc_fn_prefix, arg_request op = first_opnd(ii) if op.oc2 == 'b': osz_values = [8] elif op.oc2 == 'd': osz_values = [32] elif op.oc2 == 'z': osz_values = [16,32] else: die("Unhandled relbr width for {}: {}".format(ii.iclass, op.oc2)) for osz in osz_values: fname = "{}_{}_o{}".format(enc_fn_prefix, ii.iclass.lower(), osz) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_relbr") fo.add_arg(arg_request,'req') add_arg_disp(fo,osz) #if ii.iclass in ['JCXZ','JECXZ','JRCXZ']: if ii.easz != 'aszall': if env.mode == 64 and ii.easz == 'a32': emit_67_prefix(fo) elif env.mode == 32 and ii.easz == 'a16': emit_67_prefix(fo) elif env.mode == 16 and ii.easz == 'a32': emit_67_prefix(fo) if op.oc2 == 'z': if env.mode in [32,64] and osz == 16: fo.add_code_eol('emit(r,0x66)') elif env.mode == 16 and osz == 32: fo.add_code_eol('emit(r,0x66)') modrm_required = create_modrm_byte(ii,fo) emit_required_legacy_prefixes(ii,fo) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) if modrm_required: emit_modrm(fo) if osz == 8: fo.add_code_eol('emit_i8(r,{})'.format(var_disp8)) elif osz == 16: fo.add_code_eol('emit_i16(r,{})'.format(var_disp16)) elif osz == 32: fo.add_code_eol('emit_i32(r,{})'.format(var_disp32)) add_enc_func(ii,fo) def create_legacy_one_imm_fixed(env,ii): global enc_fn_prefix, arg_request fname = "{}_{}".format(enc_fn_prefix, ii.iclass.lower()) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_imm_fixed") op = first_opnd(ii) fo.add_arg(arg_request,'req') if op.oc2 == 'b': fo.add_arg(arg_imm8,'int8') elif op.oc2 == 'w': fo.add_arg(arg_imm16,'int16') else: die("not handling imm width {}".format(op.oc2)) modrm_required = create_modrm_byte(ii,fo) emit_required_legacy_prefixes(ii,fo) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) if modrm_required: emit_modrm(fo) if op.oc2 == 'b': fo.add_code_eol('emit(r,{})'.format(var_imm8)) elif op.oc2 == 'w': fo.add_code_eol('emit_i16(r,{})'.format(var_imm16)) add_enc_func(ii,fo) def create_legacy_one_implicit_reg(env,ii,imm8=False): global enc_fn_prefix, arg_request, arg_imm8, var_imm8 opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_implicit_reg") fo.add_arg(arg_request,'req') if imm8: fo.add_arg(arg_imm8,'int8') modrm_required = create_modrm_byte(ii,fo) emit_required_legacy_prefixes(ii,fo) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) if modrm_required: emit_modrm(fo) if imm8: fo.add_code_eol('emit(r,{})'.format(var_imm8)) add_enc_func(ii,fo) def create_legacy_one_nonmem_opnd(env,ii): # GPRv, GPR8, GPR16, RELBR(b,z), implicit fixed reg, GPRv_SB, IMM0(w,b) op = first_opnd(ii) if op.name == 'RELBR': create_legacy_relbr(env,ii) elif op.name == 'IMM0': if op.oc2 in ['b','w','d','q']: create_legacy_one_imm_fixed(env,ii) elif op.oc2 == 'z': create_legacy_one_imm_scalable(env,ii,[16,32]) else: warn("Need to handle {} in {}".format( op, "create_legacy_one_nonmem_opnd")) elif op.lookupfn_name: if op.lookupfn_name.startswith('GPRv'): create_legacy_one_scalable_gpr(env,ii,[16,32,64],'v') elif op.lookupfn_name.startswith('GPRy'): create_legacy_one_scalable_gpr(env,ii,[32,64],'y') elif op.lookupfn_name.startswith('GPR8'): create_legacy_one_gpr_fixed(env,ii,8) elif op.lookupfn_name.startswith('GPR16'): create_legacy_one_gpr_fixed(env,ii,16) elif op.lookupfn_name.startswith('GPR32'): create_legacy_one_gpr_fixed(env,ii,32) elif op.lookupfn_name.startswith('GPR64'): create_legacy_one_gpr_fixed(env,ii,64) elif op_implicit(op) and op.name.startswith('REG'): create_legacy_one_implicit_reg(env,ii,imm8=False) else: warn("Need to handle {} in {}".format( op, "create_legacy_one_nonmem_opnd")) def scalable_implicit_operands(ii): for op in _gen_opnds(ii): if op_luf(op,'OeAX'): return True return False def create_legacy_zero_operands_scalable(env,ii): # FIXME 2020-06-06: IN and OUT are the only two instr with OeAX() # operands. I should write more general code for realizing that # only 16/32 are accessible. if ii.iclass in ['IN','OUT']: osz_list = [16,32] for osz in osz_list: opsig = make_opnd_signature(env,ii,osz) if opsig: opsig += '_' fname = "{}_{}_{}o{}".format(enc_fn_prefix, ii.iclass.lower(), opsig, osz) # FIXME:osz fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_zero_operands_scalable") fo.add_arg(arg_request,'req') modrm_required = create_modrm_byte(ii,fo) if env.mode in [32,64] and osz == 16: fo.add_code_eol('emit(r,0x66)') if env.mode == 16 and osz == 32: fo.add_code_eol('emit(r,0x66)') emit_required_legacy_prefixes(ii,fo) emit_required_legacy_map_escapes(ii,fo) if ii.partial_opcode: die("NOT HANDLING PARTIAL OPCODES YET in create_legacy_zero_operands_scalable") emit_opcode(ii,fo) if modrm_required: emit_modrm(fo) add_enc_func(ii,fo) def create_legacy_zero_operands(env,ii): # allows all implicit too global enc_fn_prefix, arg_request if env.mode == 64 and ii.easz == 'a16': # cannot do 16b addressing in 64b mode...so skip these! ii.encoder_skipped = True return if scalable_implicit_operands(ii): create_legacy_zero_operands_scalable(env,ii) return opsig = make_opnd_signature(env,ii) if opsig: opsig = '_' + opsig fname = "{}_{}{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) if ii.easz in ['a16','a32','a64']: fname = fname + '_' + ii.easz if ii.eosz in ['o16','o32','o64']: fname = fname + '_' + ii.eosz fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_zero_operands") fo.add_arg(arg_request,'req') modrm_required = create_modrm_byte(ii,fo) # twiddle ASZ if specified if env.mode == 64 and ii.easz == 'a32': emit_67_prefix(fo) elif env.mode == 32 and ii.easz == 'a16': emit_67_prefix(fo) elif env.mode == 16 and ii.easz == 'a32': emit_67_prefix(fo) # twiddle OSZ rexw_forced=False if not ii.osz_required: if env.mode == 64 and ii.eosz == 'o16': fo.add_code_eol('emit(r,0x66)') elif env.mode == 64 and ii.eosz == 'o32' and ii.default_64b == True: return # skip this one. cannot do 32b osz in 64b mode if default to 64b elif env.mode == 64 and ii.eosz == 'o64' and ii.default_64b == False: rexw_forced = True fo.add_code_eol('set_rexw(r)') elif env.mode == 32 and ii.eosz == 'o16': fo.add_code_eol('emit(r,0x66)') elif env.mode == 16 and ii.eosz == 'o16': fo.add_code_eol('emit(r,0x66)') elif ii.eosz == 'oszall': # works in any OSZ. no prefixes required pass elif env.mode == 64 and ii.eosz == 'osznot64': return elif ii.eosz == 'osznot16': pass emit_required_legacy_prefixes(ii,fo) if rexw_forced: fo.add_code_eol('emit_rex(r)') emit_required_legacy_map_escapes(ii,fo) if ii.partial_opcode: if ii.rm_required != 'unspecified': emit_partial_opcode_fixed_srm(ii,fo) else: warn("NOT HANDLING SOME PARTIAL OPCODES YET: {} / {}".format(ii.iclass, ii.iform)) ii.encoder_skipped = True return else: emit_opcode(ii,fo) if modrm_required: emit_modrm(fo) add_enc_func(ii,fo) def two_fixed_gprs(ii): width = None n = 0 # count of the number of GPR32 or GPR64 stuff we encounter c = 0 # operand count, avoid stray stuff for op in _gen_opnds(ii): c += 1 for w in [16,32,64]: if op_luf_start(op,'GPR{}'.format(w)): if not width: width = w n += 1 elif width != w: return False else: n += 1 return width and n == 2 and c == 2 def get_gpr_opsz_code(op): if op_luf_start(op,'GPR8'): return 'rb' if op_luf_start(op,'GPR16'): return 'rw' if op_luf_start(op,'GPR32'): return 'rd' if op_luf_start(op,'GPR64'): return 'rq' if op_luf_start(op,'GPRv'): return 'rv' if op_luf_start(op,'GPRy'): return 'ry' else: die("Unhandled GPR width: {}".format(op)) def create_legacy_two_gpr_one_scalable_one_fixed(env,ii): global enc_fn_prefix, arg_request, arg_reg0, arg_reg1 opsz_to_bits = { 'rb':8, 'rw':16, 'rd':32, 'rq':64 } osz_list = get_osz_list(env) opnds = [] opsz_codes =[] for op in _gen_opnds(ii): opnds.append(op) opsz_codes.append( get_gpr_opsz_code(op) ) for osz in osz_list: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) # "".join(opsz_codes), osz) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_two_gpr_one_scalable_one_fixed") fo.add_arg(arg_request,'req') opnd_types = get_opnd_types(env,ii,osz) fo.add_arg(arg_reg0, opnd_types[0]) fo.add_arg(arg_reg1, opnd_types[1]) emit_required_legacy_prefixes(ii,fo) if not ii.osz_required: if osz == 16 and env.mode != 16: # add a 66 prefix outside of 16b mode, to create 16b osz fo.add_code_eol('emit(r,0x66)') if osz == 32 and env.mode == 16: # add a 66 prefix outside inside 16b mode to create 32b osz fo.add_code_eol('emit(r,0x66)') rexw_forced = cond_emit_rexw(env,ii,fo,osz) if modrm_reg_first_operand(ii): f1, f2 = 'reg','rm' else: f1, f2 = 'rm','reg' if opsz_codes[0] in ['rv','ry']: op0_bits = osz else: op0_bits = opsz_to_bits[opsz_codes[0]] fo.add_code_eol('enc_modrm_{}_gpr{}(r,{})'.format(f1,osz,var_reg0)) if opsz_codes[1] in ['rv','ry']: op1_bits = osz else: op1_bits = opsz_to_bits[opsz_codes[1]] fo.add_code_eol('enc_modrm_{}_gpr{}(r,{})'.format(f2,op1_bits,var_reg1)) emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) if ii.partial_opcode: die("NOT HANDLING PARTIAL OPCODES YET: {} / {}".format(ii.iclass, ii.iform)) else: emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_legacy_two_fixed_gprs(env,ii): op = first_opnd(ii) if op_luf_start(op,'GPR16'): create_legacy_two_scalable_regs(env,ii,[16]) elif op_luf_start(op,'GPR32'): create_legacy_two_scalable_regs(env,ii,[32]) elif op_luf_start(op,'GPR64'): create_legacy_two_scalable_regs(env,ii,[64]) else: die("NOT REACHED") def create_legacy_two_scalable_regs(env, ii, osz_list): """Allows optional imm8,immz""" global enc_fn_prefix, arg_request, arg_reg0, arg_reg1 global arg_imm8, var_imm8 extra_names = _implicit_reg_names(ii) # for NOPs only (FIXME: not used!?) if modrm_reg_first_operand(ii): opnd_order = {0:'reg', 1:'rm'} else: opnd_order = {1:'reg', 0:'rm'} var_regs = [var_reg0, var_reg1] arg_regs = [arg_reg0, arg_reg1] # We have some funky NOPs that come through here, that have been # redefined for CET. They were two operand, but one operand is now # fixed via a MODRM.REG restriction and some become have MODRM.RM # restriction as well, and no real operands. For those funky NOPs, # we remove the corresponding operands. I *think* the REX.R and # REX.B bits don't matter. s = [] fixed = {'reg':False, 'rm':False} nop_opsig = None if ii.iclass == 'NOP' and ii.iform in [ 'NOP_MEMv_GPRv_0F1C', 'NOP_GPRv_GPRv_0F1E' ]: if ii.reg_required != 'unspecified': s.append('reg{}'.format(ii.reg_required)) fixed['reg']=True if ii.rm_required != 'unspecified': s.append('rm{}'.format(ii.rm_required)) fixed['rm']=True if s: nop_opsig = "".join(s) for osz in gen_osz_list(env.mode,osz_list): if nop_opsig: fname = "{}_{}{}_{}_o{}".format(enc_fn_prefix, ii.iclass.lower(), extra_names, nop_opsig,osz) else: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_two_scalable_regs") fo.add_arg(arg_request,'req') opnd_types = get_opnd_types(env,ii,osz) for i in [0,1]: if not fixed[opnd_order[i]]: fo.add_arg(arg_regs[i], opnd_types[i]) if ii.has_imm8: fo.add_arg(arg_imm8,'int8') elif ii.has_immz: add_arg_immz(fo,osz) emit_required_legacy_prefixes(ii,fo) if not ii.osz_required: if osz == 16 and env.mode != 16: if ii.iclass not in ['ARPL']: # FIXME: make a generic property default16b or something... # add a 66 prefix outside of 16b mode, to create 16b osz fo.add_code_eol('emit(r,0x66)') if osz == 32 and env.mode == 16: # add a 66 prefix outside inside 16b mode to create 32b osz fo.add_code_eol('emit(r,0x66)') rexw_forced = cond_emit_rexw(env,ii,fo,osz) if ii.mod_required == 3: fo.add_code_eol('set_mod(r,3)') for i in [0,1]: if not fixed[opnd_order[i]]: fo.add_code_eol('enc_modrm_{}_gpr{}(r,{})'.format(opnd_order[i],osz,var_regs[i])) for slot in ['reg','rm']: if fixed[slot]: if slot == 'reg': fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) else: fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) if ii.partial_opcode: die("NOT HANDLING PARTIAL OPCODES YET: {} / {}".format(ii.iclass, ii.iform)) else: emit_opcode(ii,fo) emit_modrm(fo) cond_emit_imm8(ii,fo) if ii.has_immz: emit_immz(fo,osz) add_enc_func(ii,fo) def create_legacy_two_gpr8_regs(env, ii): global enc_fn_prefix, arg_request, arg_reg0, arg_reg1 opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_two_gpr8_regs") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0,'gpr8') fo.add_arg(arg_reg1,'gpr8') emit_required_legacy_prefixes(ii,fo) if modrm_reg_first_operand(ii): f1, f2 = 'reg','rm' else: f1, f2 = 'rm','reg' fo.add_code_eol('enc_modrm_{}_gpr8(r,{})'.format(f1,var_reg0)) fo.add_code_eol('enc_modrm_{}_gpr8(r,{})'.format(f2,var_reg1)) if env.mode == 64: fo.add_code_eol('emit_rex_if_needed(r)') emit_required_legacy_map_escapes(ii,fo) if ii.partial_opcode: die("NOT HANDLING PARTIAL OPCODES YET: {} / {}".format(ii.iclass, ii.iform)) else: emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def add_arg_disp(fo,dispsz): global arg_dispv, arg_dispv_meta fo.add_arg(arg_dispv[dispsz], arg_dispv_meta[dispsz]) def add_arg_immz(fo,osz): global arg_immz_dct, arg_immz_meta fo.add_arg(arg_immz_dct[osz], arg_immz_meta[osz]) def add_arg_immv(fo,osz): global arg_immv_dct, arg_immv_meta fo.add_arg(arg_immv_dct[osz], arg_immv_meta[osz]) vlmap = { 'xmm': 0, 'ymm': 1, 'zmm': 2 } def set_evexll_vl(ii,fo,vl): global vlmap if not ii.rounding_form and not ii.sae_form: fo.add_code_eol('set_evexll(r,{})'.format(vlmap[vl]), 'VL={}'.format(ii.vl)) def emit_immz(fo,osz): global var_immz_dct emit_width_immz = { 16:16, 32:32, 64:32 } fo.add_code_eol('emit_i{}(r,{})'.format(emit_width_immz[osz], var_immz_dct[osz])) def emit_immv(fo,osz): global var_immv_dct emit_width_immv = {8:8, 16:16, 32:32, 64:64 } fo.add_code_eol('emit_u{}(r,{})'.format(emit_width_immv[osz], var_immv_dct[osz])) def emit_disp(fo,dispsz): global var_dispv fo.add_code_eol('emit_i{}(r,{})'.format(dispsz, var_dispv[dispsz])) def cond_emit_imm8(ii,fo): global var_imm8, var_imm8_2 if ii.has_imm8: fo.add_code_eol('emit(r,{})'.format(var_imm8)) if ii.has_imm8_2: fo.add_code_eol('emit(r,{})'.format(var_imm8_2)) def cond_add_imm_args(ii,fo): global arg_imm8, arg_imm8_2 if ii.has_imm8: fo.add_arg(arg_imm8,'int8') if ii.has_imm8_2: fo.add_arg(arg_imm8_2,'int8') def emit_rex(env, fo, rex_forced): if env.mode == 64: if rex_forced: fo.add_code_eol('emit_rex(r)') else: fo.add_code_eol('emit_rex_if_needed(r)') def get_opnd_types_short(ii): types= [] for op in _gen_opnds(ii): if op.oc2: types.append(op.oc2) elif op_luf_start(op,'GPRv'): types.append('v') elif op_luf_start(op,'GPRz'): types.append('z') elif op_luf_start(op,'GPRy'): types.append('y') else: die("Unhandled op type {}".format(op)) return types def get_reg_type_fixed(op): '''return a type suitable for use in an enc_modrm function''' if op_gpr32(op): return 'gpr32' elif op_gpr64(op): return 'gpr64' elif op_xmm(op): return 'xmm' elif op_ymm(op): return 'ymm' elif op_mmx(op): return 'mmx' die("UNHANDLED OPERAND TYPE {}".format(op)) orax = { 16:'ax', 32:'eax', 64:'rax' } oeax = { 16:'ax', 32:'eax', 64:'eax' } def get_opnd_types(env, ii, osz=0): """Create meta-data about operands that can be used for generating testing content.""" global orax, oeax s = [] for op in _gen_opnds(ii): if op_luf_start(op,'GPRv'): if osz == 0: die("Need OSZ != 0") s.append('gpr{}'.format(osz)) elif op_luf_start(op,'GPRy'): if osz == 0: die("Need OSZ != 0") s.append('gpr{}'.format(osz if osz > 16 else 32)) elif op_luf_start(op,'GPRz'): if osz == 0: die("Need OSZ != 0") s.append('gpr{}'.format(osz if osz < 64 else 32)) elif op_luf_start(op,'OrAX'): if osz == 0: die("Need OSZ != 0") s.append(orax[osz]) elif op_luf_start(op,'OrAX'): if osz == 0: die("Need OSZ != 0") s.append(oeax[osz]) elif op_luf_start(op,'ArAX'): s.append(orax[env.asz]) elif op_immz(op): if osz == 0: die("Need OSZ != 0") s.append('imm{}'.format(osz if osz < 64 else 32)) elif op_immv(op): if osz == 0: die("Need OSZ != 0") s.append('imm{}'.format(osz)) elif op_luf_start(op, 'A_GPR'): s.append('gpr{}'.format(env.asz)) elif op_implicit_specific_reg(op): pass # ignore elif op_tmm(op): s.append('tmm') elif op_xmm(op): s.append('xmm') elif op_ymm(op): s.append('ymm') elif op_zmm(op): s.append('zmm') elif op_vgpr32(op): s.append('gpr32') elif op_vgpr64(op): s.append('gpr64') elif op_gpr32(op): s.append('gpr32') elif op_gpr64(op): s.append('gpr64') elif op_gpr8(op): s.append('gpr8') elif op_gpr16(op): s.append('gpr16') elif op_mem(op): s.append('mem') elif op_agen(op): # LEA s.append('agen') elif op_imm8(op): s.append('int8') elif op_imm16(op): s.append('int16') elif op_imm8_2(op): s.append('int8') elif op_mmx(op): s.append('mmx') elif op_cr(op): s.append('cr') elif op_dr(op): s.append('dr') elif op_seg(op): s.append('seg') elif op_masknot0(op): # must be before generic mask test below s.append('kreg!0') elif op_mask_reg(op): s.append('kreg') else: die("Unhandled operand {}".format(op)) return s def two_fixed_regs_opti8(ii): # also allows 2-imm8 SSE4 instr j,i,d,q,m,x=0,0,0,0,0,0 for op in _gen_opnds(ii): if op_imm8(op): i += 1 elif op_imm8_2(op): j += 1 elif op_gpr32(op): d += 1 elif op_gpr64(op): q += 1 elif op_mmx(op): m += 1 elif op_xmm(op): x += 1 else: return False if i>=2 or j>=2: return False sum = d + q + m + x return sum == 2 # 1+1 or 2+0...either is fine def create_legacy_two_fixed_regs_opti8(env,ii): '''Two regs and optional imm8. Regs can be gpr32,gpr64,xmm,mmx, and they can be different from one another''' global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 opnd_sig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opnd_sig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_two_fixed_regs_opti8") fo.add_arg(arg_request,'req') opnd_types = get_opnd_types(env,ii) fo.add_arg(arg_reg0, opnd_types[0]) fo.add_arg(arg_reg1, opnd_types[1]) cond_add_imm_args(ii,fo) emit_required_legacy_prefixes(ii,fo) if modrm_reg_first_operand(ii): locations = ['reg', 'rm'] else: locations = ['rm', 'reg'] regs = [ var_reg0, var_reg1] rexw_forced = cond_emit_rexw(env,ii,fo,osz=0) # legit fo.add_code_eol('set_mod(r,3)') for i,op in enumerate(_gen_opnds(ii)): if op_imm8(op): break reg_type = get_reg_type_fixed(op) fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format(locations[i], reg_type, regs[i])) emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) cond_emit_imm8(ii,fo) add_enc_func(ii,fo) def create_legacy_one_mmx_reg_imm8(env,ii): global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_imm8, var_imm8 opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_mmx_reg_imm8") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0, 'mmx') cond_add_imm_args(ii,fo) emit_required_legacy_prefixes(ii,fo) if modrm_reg_first_operand(ii): f1, f2 = 'reg','rm' else: f1, f2 = 'rm','reg' fo.add_code_eol('enc_modrm_{}_mmx(r,{})'.format(f1,var_reg0)) fo.add_code_eol('set_mod(r,3)') if f2 == 'reg': if ii.reg_required != 'unspecified': fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) else: if ii.rm_required != 'unspecified': fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) cond_emit_imm8(ii,fo) add_enc_func(ii,fo) def create_legacy_one_xmm_reg_imm8(env,ii): '''also handles 2 imm8 SSE4 instr''' global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_imm8, var_imm8 opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_xmm_reg_imm8") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0,'xmm') cond_add_imm_args(ii,fo) emit_required_legacy_prefixes(ii,fo) if modrm_reg_first_operand(ii): f1, f2 = 'reg','rm' else: f1, f2 = 'rm','reg' fo.add_code_eol('enc_modrm_{}_xmm(r,{})'.format(f1,var_reg0)) fo.add_code_eol('set_mod(r,3)') if f2 == 'reg': if ii.reg_required != 'unspecified': fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) else: if ii.rm_required != 'unspecified': fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) if env.mode == 64: fo.add_code_eol('emit_rex_if_needed(r)') emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) cond_emit_imm8(ii,fo) add_enc_func(ii,fo) def create_legacy_two_x87_reg(env,ii): global enc_fn_prefix, arg_request, arg_reg0, var_reg0 opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_two_x87_reg") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0,'x87') emit_required_legacy_prefixes(ii,fo) fo.add_code_eol('set_mod(r,3)') if ii.reg_required == 'unspecified': die("Need a value for MODRM.REG in x87 encoding") fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) fo.add_code_eol('enc_modrm_rm_x87(r,{})'.format(var_reg0)) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_legacy_one_x87_reg(env,ii): global enc_fn_prefix, arg_request, arg_reg0, var_reg0 opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_one_x87_reg") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0,'x87') emit_required_legacy_prefixes(ii,fo) if ii.mod_required == 3: fo.add_code_eol('set_mod(r,3)') else: die("FUNKY MOD on x87 op: {}".format(ii.mod_required)) if ii.reg_required == 'unspecified': die("Need a value for MODRM.REG in x87 encoding") fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) fo.add_code_eol('enc_modrm_rm_x87(r,{})'.format(var_reg0)) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def gpr8_imm8(ii): reg,imm=0,0 for i,op in enumerate(_gen_opnds(ii)): if i == 0: if op.name == 'REG0' and op_luf_start(op,'GPR8'): reg = reg + 1 else: return False elif i == 1: if op.name == 'IMM0' and op.oc2 == 'b': if op_implicit_or_suppressed(op): return False imm = imm + 1 else: return False else: return False return reg == 1 and imm == 1 def gprv_imm8(ii): reg,imm=0,0 for i,op in enumerate(_gen_opnds(ii)): if i == 0: if op.name == 'REG0' and op_luf_start(op,'GPRv'): reg = reg + 1 else: return False elif i == 1: if op.name == 'IMM0' and op.oc2 == 'b': if op_implicit_or_suppressed(op): return False imm = imm + 1 else: return False else: return False return reg == 1 and imm == 1 def gprv_immz(ii): for i,op in enumerate(_gen_opnds(ii)): if i == 0: if op.name == 'REG0' and op_luf_start(op,'GPRv'): continue else: return False elif i == 1: if op_immz(op): continue else: return False else: return False return True def gprv_immv(ii): for i,op in enumerate(_gen_opnds(ii)): if i == 0: if op.name == 'REG0' and op_luf_start(op,'GPRv'): continue else: return False elif i == 1: if op_immv(op): continue else: return False else: return False return True def orax_immz(ii): for i,op in enumerate(_gen_opnds(ii)): if i == 0: if op.name == 'REG0' and op_luf(op,'OrAX'): continue else: return False elif i == 1: if op_immz(op): continue else: return False else: return False return True def op_luf(op,s): if op.lookupfn_name: if op.lookupfn_name == s: return True return False def op_luf_start(op,s): if op.lookupfn_name: if op.lookupfn_name.startswith(s): return True return False def gprv_implicit_orax(ii): for i,op in enumerate(_gen_opnds(ii)): if i == 0: if op.name == 'REG0' and op_luf(op,'GPRv_SB'): continue else: return False elif i == 1: if op.name == 'REG1' and op_luf(op,'OrAX'): continue else: return False else: return False return True def create_legacy_gpr_imm8(env,ii,width_list): '''gpr8 or gprv with imm8. nothing fancy''' global enc_fn_prefix, arg_request, arg_reg0, var_reg0, arg_imm8, var_imm8, gprv_names for osz in gen_osz_list(env.mode,width_list): opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_gpr_imm8") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0, gprv_names[osz]) fo.add_arg(arg_imm8,'int8') emit_required_legacy_prefixes(ii,fo) if osz == 16 and env.mode != 16: # add a 66 prefix outside of 16b mode, to create 16b osz fo.add_code_eol('emit(r,0x66)') elif osz == 32 and env.mode == 16: # add a 66 prefix outside inside 16b mode to create 32b osz fo.add_code_eol('emit(r,0x66)') elif ii.default_64b and osz == 32: # never happens continue rexw_forced = cond_emit_rexw(env,ii,fo,osz) if ii.partial_opcode: fo.add_code_eol('enc_srm_gpr{}(r,{})'.format(osz, var_reg0)) else: if modrm_reg_first_operand(ii): f1, f2 = 'reg','rm' else: f1, f2 = 'rm','reg' fo.add_code_eol('enc_modrm_{}_gpr{}(r,{})'.format(f1,osz,var_reg0)) if f2 == 'reg': if ii.reg_required != 'unspecified': fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) if ii.partial_opcode: emit_partial_opcode_variable_srm(ii,fo) else: emit_opcode(ii,fo) emit_modrm(fo) fo.add_code_eol('emit(r,{})'.format(var_imm8)) add_enc_func(ii,fo) def create_legacy_gprv_immz(env,ii): global enc_fn_prefix, arg_request, gprv_names, arg_reg0, var_reg0 width_list = get_osz_list(env) for osz in width_list: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_gprv_immz") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0, gprv_names[osz]) add_arg_immz(fo,osz) emit_required_legacy_prefixes(ii,fo) if osz == 16 and env.mode != 16: # add a 66 prefix outside of 16b mode, to create 16b osz fo.add_code_eol('emit(r,0x66)') if osz == 32 and env.mode == 16: # add a 66 prefix outside inside 16b mode to create 32b osz fo.add_code_eol('emit(r,0x66)') elif ii.default_64b and osz == 32: # never happens continue rexw_forced = cond_emit_rexw(env,ii,fo,osz) if modrm_reg_first_operand(ii): f1, f2 = 'reg','rm' else: f1, f2 = 'rm','reg' fo.add_code_eol('enc_modrm_{}_gpr{}(r,{})'.format(f1,osz,var_reg0)) if f2 == 'reg': if ii.reg_required != 'unspecified': fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) else: if ii.rm_required != 'unspecified': fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) emit_immz(fo,osz) add_enc_func(ii,fo) def create_legacy_orax_immz(env,ii): """Handles OrAX+IMMz. No MODRM byte""" global enc_fn_prefix, arg_request global arg_imm16 global arg_imm32 width_list = get_osz_list(env) for osz in width_list: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_orax_immz") fo.add_arg(arg_request,'req') opnd_types = get_opnd_types(env,ii,osz) # no need to mention the implicit OrAX arg... we don't use it for anything #fo.add_arg(arg_reg0,opnd_types[0]) add_arg_immz(fo,osz) emit_required_legacy_prefixes(ii,fo) if osz == 16 and env.mode != 16: # add a 66 prefix outside of 16b mode, to create 16b osz fo.add_code_eol('emit(r,0x66)') elif osz == 32 and env.mode == 16: # add a 66 prefix outside inside 16b mode to create 32b osz fo.add_code_eol('emit(r,0x66)') elif ii.default_64b and osz == 32: # never happens continue rexw_forced = cond_emit_rexw(env,ii,fo,osz) emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_immz(fo,osz) add_enc_func(ii,fo) def create_legacy_gprv_immv(env,ii,imm=False): """Handles GPRv_SB-IMMv partial reg opcodes and GPRv_SB+OrAX implicit""" global enc_fn_prefix, arg_request, gprv_names global arg_reg0, var_reg0 global arg_imm16, var_imm16 global arg_imm32, var_imm32 global arg_imm64, var_imm64 width_list = get_osz_list(env) for osz in width_list: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_gprv_immv") fo.add_arg(arg_request,'req') fo.add_arg(arg_reg0, gprv_names[osz]) if imm: add_arg_immv(fo,osz) emit_required_legacy_prefixes(ii,fo) if osz == 16 and env.mode != 16: # add a 66 prefix outside of 16b mode, to create 16b osz fo.add_code_eol('emit(r,0x66)') elif osz == 32 and env.mode == 16: # add a 66 prefix outside inside 16b mode to create 32b osz fo.add_code_eol('emit(r,0x66)') elif ii.default_64b and osz == 32: # never happens continue rexw_forced = cond_emit_rexw(env,ii,fo,osz) # WE know this is a SRM partial opcode instr if not ii.partial_opcode: die("Expecting partial opcode instruction in create_legacy_gprv_immv") op = first_opnd(ii) if op_luf(op,'GPRv_SB'): fo.add_code_eol('enc_srm_gpr{}(r,{})'.format(osz, var_reg0)) else: die("NOT REACHED") emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) emit_partial_opcode_variable_srm(ii,fo) if imm: emit_immv(fo,osz) add_enc_func(ii,fo) def emit_partial_opcode_variable_srm(ii,fo): opcode = "0x{:02X}".format(ii.opcode_base10) fo.add_code_eol('emit(r,{} | get_srm(r))'.format(opcode), 'partial opcode, variable srm') def emit_partial_opcode_fixed_srm(ii,fo): fixed_opcode_srm = ii.rm_required opcode = "0x{:02X}".format(ii.opcode_base10) fo.add_code_eol('emit(r,{} | {})'.format(opcode,fixed_opcode_srm), 'partial opcode, fixed srm') memsig_idx_16 = { 0: 'bi', 8: 'bid8', 16: 'bid16' } memsig_idx_32or64 = { 0: 'bis', 8: 'bisd8', 32: 'bisd32' } memsig_noidx_16 = { 0: 'b', 8: 'bd8', 16: 'bd16' } memsig_noidx_32or64 = { 0: 'b', 8: 'bd8', 32: 'bd32' } memsig_str_16 = { True : memsig_idx_16, # indexed by use_index False: memsig_noidx_16 } memsig_str_32or64 = { True : memsig_idx_32or64, # indexed by use_index False: memsig_noidx_32or64 } def get_memsig(asz, using_indx, dispz): global memsig_str_16 global memsig_str_32or64 if asz == 16: return memsig_str_16[using_indx][dispz] return memsig_str_32or64[using_indx][dispz] def add_memop_args(env, ii, fo, use_index, dispsz, immw=0, reg=-1, osz=0): """reg=-1 -> no reg opnds, reg=0 -> first opnd is reg, reg=1 -> 2nd opnd is reg. AVX or AVX512 vsib moots the use_index value""" global arg_reg0, arg_imm_dct global arg_base, arg_index, arg_scale global arg_disp8, arg_disp16, arg_disp32 opnd_types = get_opnd_types(env,ii,osz) if reg == 0: fo.add_arg(arg_reg0,opnd_types[0]) fo.add_arg(arg_base, gprv_names[env.asz]) if ii.avx_vsib: fo.add_arg("{} {}".format(arg_reg_type, var_vsib_index_dct[ii.avx_vsib]), ii.avx_vsib) elif ii.avx512_vsib: fo.add_arg("{} {}".format(arg_reg_type, var_vsib_index_dct[ii.avx512_vsib]), ii.avx512_vsib) elif use_index: fo.add_arg(arg_index, gprv_index_names[env.asz]) if use_index or special_index_cases(ii): if env.asz in [32,64]: fo.add_arg(arg_scale, 'scale') # a32, a64 if dispsz != 0: add_arg_disp(fo,dispsz) if reg == 1: fo.add_arg(arg_reg0, opnd_types[1]) if immw: add_arg_immv(fo,immw) def create_legacy_one_xmm_reg_one_mem_fixed(env,ii): '''allows xmm, mmx, gpr32, gpr64 regs optional imm8''' global var_reg0 op = first_opnd(ii) width = op.oc2 immw = 8 if ii.has_imm8 else 0 regpos = 0 if modrm_reg_first_operand(ii) else 1 # i determines argument order #opsig = 'rm' if regpos==0 else 'mr' #if ii.has_imm8: # opsig = opsig + 'i' opsig = make_opnd_signature(env,ii) gpr32,gpr64,xmm,mmx = False,False,False,False for op in _gen_opnds(ii): if op_mmx(op): mmx=True break if op_xmm(op): xmm=True break if op_gpr32(op): gpr32=True break if op_gpr64(op): gpr64=True break dispsz_list = get_dispsz_list(env) ispace = itertools.product(get_index_vals(ii), dispsz_list) for use_index, dispsz in ispace: memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = "{}_{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig, #width, # FIXME:osz, funky memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_legacy_one_xmm_reg_one_mem_fixed") fo.add_arg(arg_request,'req') add_memop_args(env, ii, fo, use_index, dispsz, immw, reg=regpos) rexw_forced = False if ii.eosz == 'o16' and env.mode in [32,64]: fo.add_code_eol('emit(r,0x66)', 'xx: fixed width with 16b osz') elif ii.eosz == 'o32' and env.mode == 16: fo.add_code_eol('emit(r,0x66)') elif (ii.eosz == 'o64' and env.mode == 64 and ii.default_64b == False) or ii.rexw_prefix == '1': rexw_forced = True fo.add_code_eol('set_rexw(r)', 'forced rexw on memop') emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) # the sole reg is reg0 whether it is first or 2nd operand... if xmm: fo.add_code_eol('enc_modrm_reg_xmm(r,{})'.format(var_reg0)) elif mmx: fo.add_code_eol('enc_modrm_reg_mmx(r,{})'.format(var_reg0)) elif gpr32: fo.add_code_eol('enc_modrm_reg_gpr32(r,{})'.format(var_reg0)) elif gpr64: fo.add_code_eol('enc_modrm_reg_gpr64(r,{})'.format(var_reg0)) else: die("NOT REACHED") encode_mem_operand(env, ii, fo, use_index, dispsz) finish_memop(env, ii, fo, dispsz, immw, rexw_forced, space='legacy') add_enc_func(ii,fo) def get_reg_width(op): if op_gpr8(op): return 'b' elif op_gpr16(op): return 'w' elif op_gpr32(op): return 'd' elif op_gpr64(op): return 'q' die("NOT REACHED") def create_legacy_one_gpr_reg_one_mem_fixed(env,ii): """REGb-GPRb or GPRb-REGb also GPR32-MEMd, GPR64-MEMq or MEMdq and MEMw+GPR16""" global var_reg0, widths_to_bits dispsz_list = get_dispsz_list(env) width = None for i,op in enumerate(_gen_opnds(ii)): if op_reg(op): regn = i width = get_reg_width(op) break if width == None: dump_fields(ii) die("Bad search for width") widths = [width] opsig = make_opnd_signature(env,ii) ispace = itertools.product(widths, get_index_vals(ii), dispsz_list) for width, use_index, dispsz in ispace: memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = "{}_{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig, memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_legacy_one_gpr_reg_one_mem_fixed") fo.add_arg(arg_request,'req') add_memop_args(env, ii, fo, use_index, dispsz, immw=0, reg=regn) emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) # the sole reg is reg0 whether it is first or 2nd operand... fo.add_code_eol('enc_modrm_reg_gpr{}(r,{})'.format(widths_to_bits[width], var_reg0)) encode_mem_operand(env, ii, fo, use_index, dispsz) osz=64 if width=='q' else 0 rexw_forced = cond_emit_rexw(env, ii, fo, osz) immw=False finish_memop(env, ii, fo, dispsz, immw, rexw_forced, space='legacy') add_enc_func(ii,fo) def create_legacy_one_gpr_reg_one_mem_scalable(env,ii): """GPRv-MEMv, MEMv-GPRv, GPRy-MEMv, MEMv-GPRy w/optional imm8 or immz. This will work with anything that has one scalable register operand and another fixed or scalable memory operand. """ # The GPRy stuff is not working yet global arg_reg0, var_reg0, widths_to_bits, widths_to_bits_y dispsz_list = get_dispsz_list(env) op = first_opnd(ii) widths = ['w','d'] if env.mode == 64: widths.append('q') gpry=False for op in _gen_opnds(ii): if op_gpry(op): gpry=True fixed_reg = False if ii.iclass == 'NOP' and ii.iform.startswith('NOP_MEMv_GPRv_0F1C'): if ii.reg_required != 'unspecified': fixed_reg = True immw = 8 if ii.has_imm8 else 0 ispace = itertools.product(widths, get_index_vals(ii), dispsz_list) for width, use_index, dispsz in ispace: opsig = make_opnd_signature(env,ii, width) opnd_types_org = get_opnd_types(env,ii, osz_translate(width)) opnd_types = copy.copy(opnd_types_org) if ii.has_immz: immw = 16 if (width == 16 or width == 'w') else 32 memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = "{}_{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig, memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_legacy_one_gpr_reg_one_mem_scalable") fo.add_arg(arg_request,'req') for i,optype in enumerate(opnd_types_org): if optype.startswith('gpr'): if not fixed_reg: fo.add_arg(arg_reg0, opnd_types.pop(0)) elif optype in ['mem', 'agen']: add_memop_args(env, ii, fo, use_index, dispsz, immw=0, osz=osz_translate(width)) opnd_types.pop(0) elif optype.startswith('int') or optype.startswith('imm'): add_arg_immv(fo,immw) opnd_types.pop(0) # imm8 is last so we technically can skip this pop else: die("UNHANDLED ARG {} in {}".format(optype, ii.iclass)) rexw_forced = False if width == 'w' and env.mode != 16: fo.add_code_eol('emit(r,0x66)') elif width == 'd' and env.mode == 16: fo.add_code_eol('emit(r,0x66)') elif width == 'q' and ii.default_64b == False: rexw_forced = True fo.add_code_eol('set_rexw(r)', 'forced rexw on memop') emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) if ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required), 'reg opcode extension') else: d=widths_to_bits_y if gpry else widths_to_bits fo.add_code_eol('enc_modrm_reg_gpr{}(r,{})'.format(d[width], var_reg0)) encode_mem_operand(env, ii, fo, use_index, dispsz) finish_memop(env, ii, fo, dispsz, immw, rexw_forced=rexw_forced, space='legacy') add_enc_func(ii,fo) def create_legacy_far_xfer_nonmem(env,ii): # WRK '''call far and jmp far via ptr+imm. BRDISPz + IMMw''' global var_immz_dct, argv_immz_dct,arg_immz_meta, var_imm16_2, arg_imm16_2 for osz in [16,32]: fname = '{}_{}_o{}'.format(enc_fn_prefix, ii.iclass.lower(), osz) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment('created by create_legacy_far_xfer_nonmem') fo.add_arg(arg_request,'req') fo.add_arg(arg_immz_dct[osz],arg_immz_meta[osz]) fo.add_arg(arg_imm16_2,'int16') if osz == 16 and env.mode != 16: fo.add_code_eol('emit(r,0x66)') elif osz == 32 and env.mode == 16: fo.add_code_eol('emit(r,0x66)') emit_required_legacy_prefixes(ii,fo) emit_opcode(ii,fo) emit_immz(fo,osz) fo.add_code_eol('emit_i16(r,{})'.format(var_imm16_2)) add_enc_func(ii,fo) def create_legacy_far_xfer_mem(env,ii): '''call far and jmp far via memop. p has widths 4/6/6 bytes. p2 has 4/6/10 widths''' p_widths = {16:4, 32:6, 64:6} p2_widths = {16:4, 32:6, 64:10} op = first_opnd(ii) if op.oc2 == 'p2': widths = p2_widths elif op.oc2 == 'p': widths = p_widths else: die("NOT REACHED") osz_list = get_osz_list(env) dispsz_list = get_dispsz_list(env) ispace = itertools.product(osz_list, get_index_vals(ii), dispsz_list) for osz, use_index, dispsz in ispace: membytes = widths[osz] memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = '{}_{}_m{}_{}'.format(enc_fn_prefix, ii.iclass.lower(), membytes*8, memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment('created by create_legacy_far_xfer_mem') fo.add_arg(arg_request,'req') add_memop_args(env, ii, fo, use_index, dispsz) rexw_forced = False if osz == 16 and env.mode != 16: fo.add_code_eol('emit(r,0x66)') elif osz == 32 and env.mode == 16: fo.add_code_eol('emit(r,0x66)') elif osz == 64 and ii.default_64b == False: rexw_forced = True fo.add_code_eol('set_rexw(r)', 'forced rexw on memop') emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) if ii.reg_required != 'unspecified': if ii.reg_required != 0: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) encode_mem_operand(env, ii, fo, use_index, dispsz) finish_memop(env, ii, fo, dispsz, immw=0, rexw_forced=rexw_forced, space='legacy') add_enc_func(ii,fo) def osz_translate(width): if width in ['w',16]: return 16 elif width in ['d',32]: return 32 elif width in ['q', 64]: return 64 return 0 def create_legacy_one_mem_common(env,ii,imm=0): """Handles one memop, fixed or scalable.""" dispsz_list = get_dispsz_list(env) op = first_opnd(ii) if op.oc2 == 'v': widths = [16,32] if env.mode == 64: widths.append(64) elif op.oc2 == 'y': widths = [32] if env.mode == 64: widths.append(64) elif op.oc2 == 's': widths = [16,32] else: widths = ['nominal'] # just something to get the loop going immz_dict = { 16:16, 32:32, 64:32 } for width in widths: immw = 0 if imm == '8': immw = 8 elif imm == 'z': immw = immz_dict[width] #fwidth = "_{}".format(width) if width not in ['b','w','d','q'] else '' ispace = itertools.product(get_index_vals(ii), dispsz_list) for use_index, dispsz in ispace: memaddrsig = get_memsig(env.asz, use_index, dispsz) if width != 'nominal': opsig = make_opnd_signature(env, ii, width) else: opsig = make_opnd_signature(env, ii) fname = '{}_{}_{}_{}'.format(enc_fn_prefix, ii.iclass.lower(), opsig, memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment('created by create_legacy_one_mem_common') fo.add_arg(arg_request,'req') add_memop_args(env, ii, fo, use_index, dispsz, immw, osz=osz_translate(width)) rexw_forced = False if op.oc2 in [ 'y','v', 's']: # handle scalable ops if width == 16 and env.mode != 16: fo.add_code_eol('emit(r,0x66)') elif width == 32 and env.mode == 16: fo.add_code_eol('emit(r,0x66)') elif width == 64 and ii.default_64b == False: rexw_forced = True fo.add_code_eol('set_rexw(r)', 'forced rexw on memop') else: # fixed width ops if ii.eosz == 'o16' and env.mode in [32,64]: fo.add_code_eol('emit(r,0x66)', 'xx: fixed width with 16b osz') elif ii.eosz == 'o32' and env.mode == 16: fo.add_code_eol('emit(r,0x66)') elif (ii.eosz == 'o64' and env.mode == 64 and ii.default_64b == False) or ii.rexw_prefix == '1': rexw_forced = True fo.add_code_eol('set_rexw(r)', 'forced rexw on memop') emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) if ii.reg_required != 'unspecified': if ii.reg_required != 0: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) encode_mem_operand(env, ii, fo, use_index, dispsz) finish_memop(env, ii, fo, dispsz, immw, rexw_forced, space='legacy') add_enc_func(ii,fo) def encode_mem_operand(env, ii, fo, use_index, dispsz): global var_base, var_index, var_scale, memsig_idx_32or64, var_vsib_index_dct # this may overwrite modrm.mod memaddrsig = get_memsig(env.asz, use_index, dispsz) if ii.avx_vsib: memsig = memsig_idx_32or64[dispsz] fo.add_code_eol('enc_avx_modrm_vsib_{}_{}_a{}(r,{},{},{})'.format( ii.avx_vsib, memaddrsig, env.asz, var_base, var_vsib_index_dct[ii.avx_vsib], var_scale)) elif ii.avx512_vsib: memsig = memsig_idx_32or64[dispsz] fo.add_code_eol('enc_avx512_modrm_vsib_{}_{}_a{}(r,{},{},{})'.format( ii.avx512_vsib, memaddrsig, env.asz, var_base, var_vsib_index_dct[ii.avx512_vsib], var_scale)) elif use_index: if env.asz == 16: # no scale fo.add_code_eol('enc_modrm_rm_mem_{}_a{}(r,{},{})'.format( memaddrsig, env.asz, var_base, var_index)) else: fo.add_code_eol('enc_modrm_rm_mem_{}_a{}(r,{},{},{})'.format( memaddrsig, env.asz, var_base, var_index, var_scale)) else: # no index,scale fo.add_code_eol('enc_modrm_rm_mem_{}_a{}(r,{})'.format( memaddrsig, env.asz, var_base)) def finish_memop(env, ii, fo, dispsz, immw, rexw_forced=False, space='legacy'): global var_disp8, var_disp16, var_disp32 if space == 'legacy': emit_rex(env,fo,rexw_forced) emit_required_legacy_map_escapes(ii,fo) elif space =='evex': fo.add_code_eol('emit_evex(r)') emit_opcode(ii,fo) emit_modrm(fo) if special_index_cases(ii): fo.add_code_eol('emit_sib(r)', 'for vsib/sibmem') else: fo.add_code('if (get_has_sib(r))') fo.add_code_eol(' emit_sib(r)') if space == 'evex': if dispsz == 0: # if form has no displacment, then we sometimes have to # add a zero displacement to create an allowed modrm/sib # encoding. emit_synthetic_disp(fo) elif dispsz == 8: fo.add_code_eol('emit_i8(r,{})'.format(var_disp8)) else: emit_evex_disp(env,fo) else: if dispsz == 8: fo.add_code_eol('emit_i8(r,{})'.format(var_disp8)) elif dispsz == 16: fo.add_code_eol('emit_i16(r,{})'.format(var_disp16)) elif dispsz == 32: fo.add_code_eol('emit_i32(r,{})'.format(var_disp32)) elif dispsz == 0 and env.asz != 16: # if form has no displacment, then we sometimes have to # add a zero displacement to create an allowed modrm/sib # encoding. emit_synthetic_disp(fo) if immw: emit_immv(fo,immw) def emit_modrm(fo): fo.add_code_eol('emit_modrm(r)') def emit_sib(fo): fo.add_code('if (get_has_sib(r))') fo.add_code_eol(' emit_sib(r)') def emit_synthetic_disp(fo): fo.add_code('if (get_has_disp8(r))') fo.add_code_eol(' emit_i8(r,0)') fo.add_code('else if (get_has_disp32(r))') fo.add_code_eol(' emit_i32(r,0)') def add_evex_displacement_var(fo): fo.add_code_eol('xed_int32_t use_displacement') def chose_evex_scaled_disp(fo, ii, dispsz, broadcasting=False): # WIP disp_fix = '16' if dispsz == 16 else '' if ii.avx512_tuple == 'NO_SCALE': memop_width_bytes = 1 elif broadcasting: memop_width_bytes = ii.element_size // 8 else: memop_width_bytes = ii.memop_width // 8 fo.add_code_eol('use_displacement = xed_chose_evex_scaled_disp{}(r, disp{}, {})'.format( disp_fix, dispsz, memop_width_bytes)) def emit_evex_disp(env,fo): fo.add_code('if (get_has_disp8(r))') fo.add_code_eol(' emit_i8(r,use_displacement)') if env.asz == 16: fo.add_code('else if (get_has_disp16(r))') fo.add_code_eol(' emit_i16(r,use_displacement)') else: fo.add_code('else if (get_has_disp32(r))') fo.add_code_eol(' emit_i32(r,use_displacement)') def mov_without_modrm(ii): if ii.iclass == 'MOV' and not ii.has_modrm: if 'UIMM' in ii.pattern: # avoid 0xB0/0xB8 related mov's return False return True return False def create_legacy_mov_without_modrm(env,ii): '''This if for 0xA0...0xA3 MOVs without MODRM''' global enc_fn_prefix, arg_request, arg_reg0, bits_to_widths # in XED, MEMDISPv is a misnomer - the displacement size is # modulated by the EASZ! The actual width of the memory reference # is OSZ modulated (66, rex.w) normally. byte_width = False for op in _gen_opnds(ii): if op.oc2 and op.oc2 == 'b': byte_width = True break if byte_width: osz_list = [8] else: osz_list = get_osz_list(env) disp_width = env.asz for osz in osz_list: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}_d{}".format(enc_fn_prefix, ii.iclass.lower(), opsig, env.asz) # FIXME redundant with asz fo = make_function_object(env,ii,fname,asz=env.asz) fo.add_comment("created by create_legacy_mov_without_modrm") fo.add_arg(arg_request,'req') add_arg_disp(fo,disp_width) # MEMDISPv is EASZ-modulated. if disp_width == 16 and env.asz != 16: emit_67_prefix(fo) elif disp_width == 32 and env.asz != 32: emit_67_prefix(fo) rexw_forced = emit_legacy_osz(env,ii,fo,osz) emit_rex(env, fo, rexw_forced) emit_opcode(ii,fo) emit_disp(fo,disp_width) add_enc_func(ii,fo) def is_enter_instr(ii): return ii.iclass == 'ENTER' # imm0-w, imm1-b def is_mov_seg(ii): if ii.iclass in ['MOV']: for op in _gen_opnds(ii): if op_seg(op): return True return False def is_mov_cr_dr(ii): return ii.iclass in ['MOV_CR','MOV_DR'] def create_legacy_gprv_seg(env,ii,op_info): global arg_reg_type, gprv_names reg1 = 'seg' osz_list = get_osz_list(env) for osz in osz_list: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment('created by create_legacy_gprv_seg') fo.add_arg(arg_request,'req') reg0 = gprv_names[osz] fo.add_arg(arg_reg_type + reg0,'gpr{}'.format(osz)) fo.add_arg(arg_reg_type + reg1,'seg') emit_required_legacy_prefixes(ii,fo) if not ii.osz_required: if osz == 16 and env.mode != 16: # add a 66 prefix outside of 16b mode, to create 16b osz fo.add_code_eol('emit(r,0x66)') if osz == 32 and env.mode == 16: # add a 66 prefix outside inside 16b mode to create 32b osz fo.add_code_eol('emit(r,0x66)') if osz == 64: fo.add_code_eol('set_rexw(r)') fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format('rm',reg0,reg0)) fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format('reg',op_info[1],reg1)) if osz == 64: fo.add_code_eol('emit_rex(r)') elif env.mode == 64: fo.add_code_eol('emit_rex_if_needed(r)') emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_legacy_mem_seg(env,ii,op_info): '''order varies: MEM-SEG or SEG-MEM''' global arg_reg_type dispsz_list = get_dispsz_list(env) opnd_sig = make_opnd_signature(env,ii) ispace = itertools.product(get_index_vals(ii), dispsz_list) for use_index, dispsz in ispace: memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = '{}_{}_{}_{}'.format(enc_fn_prefix, ii.iclass.lower(), opnd_sig, memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment('created by create_legacy_mem_seg') fo.add_arg(arg_request,'req') for opi in op_info: if opi == 'mem': add_memop_args(env, ii, fo, use_index, dispsz) elif opi == 'seg': reg0 = 'seg' fo.add_arg(arg_reg_type + reg0, 'seg') else: die("NOT REACHED") emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) fo.add_code_eol('enc_modrm_reg_seg(r,{})'.format(reg0)) encode_mem_operand(env, ii, fo, use_index, dispsz) finish_memop(env, ii, fo, dispsz, immw=0, rexw_forced=False, space='legacy') add_enc_func(ii,fo) def create_mov_seg(env,ii): '''mov-seg. operand order varies''' op_info=[] # for encoding the modrm fields mem = False scalable=False for i,op in enumerate(_gen_opnds(ii)): if op_gprv(op): op_info.append('gprv') scalable=True elif op_gpr16(op): op_info.append('gpr16') elif op_seg(op): op_info.append('seg') elif op_mem(op): mem=True op_info.append('mem') if op_info == ['gprv','seg']: # gprv, seg -- scalable, special handling create_legacy_gprv_seg(env,ii,op_info) return elif op_info == ['mem','seg']: # mem,seg create_legacy_mem_seg(env,ii,op_info) return elif op_info == ['seg','mem']: # seg,mem create_legacy_mem_seg(env,ii,op_info) return elif op_info == ['seg','gpr16']: # seg,gpr16 opsig = 'SR' # handled below else: die("Unhandled mov-seg case") fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(),opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_mov_seg") fo.add_arg(arg_request,'req') fo.add_arg('xed_reg_enum_t ' + op_info[0], 'seg') fo.add_arg('xed_reg_enum_t ' + op_info[1], 'gpr16') if modrm_reg_first_operand(ii): f1, f2, = 'reg','rm' else: f1, f2, = 'rm','reg' fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format(f1, op_info[0], op_info[0])) fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format(f2, op_info[1], op_info[1])) emit_required_legacy_prefixes(ii,fo) if env.mode == 64: fo.add_code_eol('emit_rex_if_needed(r)') emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_mov_cr_dr(env,ii): '''mov-cr and mov-dr. operand order varies''' op_info=[] # for encoding the modrm fields for op in _gen_opnds(ii): if op_gpr32(op): op_info.append('gpr32') elif op_gpr64(op): op_info.append('gpr64') elif op_cr(op): op_info.append('cr') elif op_dr(op): op_info.append('dr') opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(),opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_mov_cr_dr") fo.add_arg(arg_request,'req') fo.add_arg('xed_reg_enum_t ' + op_info[0], op_info[0]) fo.add_arg('xed_reg_enum_t ' + op_info[1], op_info[1]) if modrm_reg_first_operand(ii): f1, f2, = 'reg','rm' else: f1, f2, = 'rm','reg' fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format(f1, op_info[0], op_info[0])) fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format(f2, op_info[1], op_info[1])) emit_required_legacy_prefixes(ii,fo) if env.mode == 64: fo.add_code_eol('emit_rex_if_needed(r)') emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_legacy_enter(env,ii): '''These are 3 unusual instructions: enter and AMD SSE4a extrq, insrq''' global arg_imm16, var_imm16 global arg_imm8_2, var_imm8_2 fname = "{}_{}".format(enc_fn_prefix, ii.iclass.lower()) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_enter") fo.add_arg(arg_request,'req') fo.add_arg(arg_imm16,'imm16') fo.add_arg(arg_imm8_2,'imm8') emit_required_legacy_prefixes(ii,fo) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) fo.add_code_eol('emit_u16(r,{})'.format(var_imm16)) fo.add_code_eol('emit(r,{})'.format(var_imm8_2)) add_enc_func(ii,fo) def is_mov_crc32(ii): return ii.iclass == 'CRC32' def is_lsl_regreg(ii): if ii.iclass == 'LSL': if not has_memop(ii): return True return False def has_memop(ii): for op in _gen_opnds(ii): if op_mem(op): return True return False def get_opnds(ii): opnds = [] for op in _gen_opnds(ii): opnds.append(op) return opnds def compute_widths_crc32(env,ii): '''return a dict by osz of {op1-width,op2-width}. Also for LSL ''' opnd_types = get_opnd_types_short(ii) if env.mode == 16: if opnd_types == ['y','v']: return { 16:{32,16}, 32:{32,32} } elif opnd_types == ['y','b']: return { 16:{32,8} } elif opnd_types == ['v','z']: return { 16:{16,16}, 32:{32,32} } elif env.mode == 32: if opnd_types == ['y','v']: return { 16: {32,16}, 32:{32,32} } elif opnd_types == ['y','b']: return { 32:{32,8} } elif opnd_types == ['v','z']: return { 16:{16,16}, 32:{32,32} } elif env.mode == 64: if opnd_types == ['y','v']: return { 16: {32,16}, 32:{32,32}, 64:{64,64} } elif opnd_types == ['y','b']: return { 32:{32,8}, 64:{64,8} } elif opnd_types == ['v','z']: return { 16:{16,16}, 32:{32,32}, 64:{64,32} } die("not reached") def create_legacy_crc32_mem(env,ii): '''GPRy+MEMv or GPRy+MEMb''' global gpry_names, arg_request, enc_fn_prefix config = compute_widths_crc32(env,ii) osz_list = list(config.keys()) dispsz_list = get_dispsz_list(env) opnd_types = get_opnd_types_short(ii) ispace = itertools.product(osz_list, get_index_vals(ii), dispsz_list) for osz, use_index, dispsz in ispace: #op_widths = config[osz] opsig = make_opnd_signature(env,ii,osz) memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = '{}_{}_{}_{}'.format(enc_fn_prefix, ii.iclass.lower(), opsig, memaddrsig) fo = make_function_object(env,ii,fname,asz=env.asz) fo.add_comment("created by create_legacy_crc32_mem") fo.add_arg(arg_request,'req') op = first_opnd(ii) if op.oc2 == 'y': reg = gpry_names[osz] fo.add_arg(arg_reg_type + reg, reg) else: die("NOT REACHED") add_memop_args(env, ii, fo, use_index, dispsz, osz=osz) rexw_forced = emit_legacy_osz(env,ii,fo,osz) fo.add_code_eol('enc_modrm_reg_{}(r,{})'.format(reg, reg)) emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) encode_mem_operand(env, ii, fo, use_index, dispsz) immw=0 finish_memop(env, ii, fo, dispsz, immw, rexw_forced, space='legacy') add_enc_func(ii,fo) def cond_emit_rexw(env,ii,fo,osz): rexw_forced = False if env.mode == 64: if ii.rexw_prefix == '1': rexw_forced = True fo.add_code_eol('set_rexw(r)', 'required by instr') elif osz == 64 and not ii.default_64b: rexw_forced = True fo.add_code_eol('set_rexw(r)', 'required by osz=64') return rexw_forced def emit_legacy_osz(env,ii,fo,osz): if env.mode in [32,64] and osz == 16: fo.add_code_eol('emit(r,0x66)','to set osz=16') elif env.mode == 16 and osz == 32: fo.add_code_eol('emit(r,0x66)','to set osz=32') rexw_forced = cond_emit_rexw(env,ii,fo,osz) return rexw_forced def create_legacy_crc32_reg(env,ii): '''CRC32-reg (GPRy-GPR{v,b}) and LSL (GPRv+GPRz)''' global gprv_names, gpry_names, gprz_names config = compute_widths_crc32(env,ii) osz_list = list(config.keys()) opnd_types = get_opnd_types_short(ii) for osz in osz_list: opsig = make_opnd_signature(env,ii,osz) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_legacy_crc32_reg") fo.add_arg(arg_request,'req') reg_types_names =[] for i,otype in enumerate(opnd_types): if otype == 'y': reg = gpry_names[osz] elif otype == 'z': reg = gprz_names[osz] elif otype == 'b': reg = 'gpr8' elif otype == 'v': reg = gprv_names[osz] arg_name = '{}_{}'.format(reg,i) fo.add_arg(arg_reg_type + arg_name, reg) reg_types_names.append((reg,arg_name)) if modrm_reg_first_operand(ii): modrm_order = ['reg','rm'] else: modrm_order = ['rm','reg'] rexw_forced = emit_legacy_osz(env,ii,fo,osz) for i,(reg,arg) in enumerate(reg_types_names): fo.add_code_eol('enc_modrm_{}_{}(r,{})'.format(modrm_order[i], reg, arg)) emit_required_legacy_prefixes(ii,fo) emit_rex(env, fo, rexw_forced) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_legacy_crc32(env,ii): '''CRC32 is really strange. First operand is GPRy. Second operand is GPRv or GPR8 or MEMv or MEMb and bizarrely also LSL gprv+gprz''' if has_memop(ii): create_legacy_crc32_mem(env,ii) else: create_legacy_crc32_reg(env,ii) def is_movdir64_or_enqcmd(ii): return ii.iclass in [ 'MOVDIR64B', 'ENQCMD', 'ENQCMDS'] def create_legacy_movdir64_or_enqcmd(env,ii): '''MOVDIR64B and ENQCMD* are a little unusual. They have 2 memops, one in an address-space-sized A_GPR_R and the other a normal memop.''' global arg_request, enc_fn_prefix, gprv_names ispace = itertools.product( get_index_vals(ii), get_dispsz_list(env)) for use_index, dispsz in ispace: memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = '{}_{}_{}'.format(enc_fn_prefix, ii.iclass.lower(), memaddrsig) fo = make_function_object(env,ii,fname,asz=env.asz) fo.add_comment("created by create_legacy_movdir64") fo.add_arg(arg_request,'req') reg = gpry_names[env.asz] # abuse the gprv names fo.add_arg(arg_reg_type + reg, reg) add_memop_args(env, ii, fo, use_index, dispsz) # This operation is address-size modulated In 64b mode, 64b # addressing is the default. For non default 32b addressing in # 64b mode, we need a 67 prefix. if env.mode == 64 and env.asz == 32: emit_67_prefix(fo) # FIXME: REWORD COMMENT In 32b mode, we usually, but not always have # 32b addressing. It is perfectly legit to have 32b mode with # 16b addressing in which case a 67 is not needed. Same (other # way around) for 16b mode. So we really do not need the 67 # prefix ever outside of 64b mode as users are expected to use # the appropriate library for their addressing mode. # #elif env.mode == 32 and env.asz == 16: # emit_67_prefix(fo) #elif env.mode == 16 and asz == 32: # emit_67_prefix(fo) rexw_forced = False fo.add_code_eol('enc_modrm_reg_{}(r,{})'.format(reg, reg)) emit_required_legacy_prefixes(ii,fo) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(mod)) encode_mem_operand(env, ii, fo, use_index, dispsz) immw=0 finish_memop(env, ii, fo, dispsz, immw, rexw_forced, space='legacy') add_enc_func(ii,fo) def is_umonitor(ii): return ii.iclass == 'UMONITOR' def create_legacy_umonitor(env,ii): '''ASZ-based GPR_B.''' global arg_request, enc_fn_prefix, gprv_names fname = '{}_{}'.format(enc_fn_prefix, ii.iclass.lower()) fo = make_function_object(env,ii,fname,asz=env.asz) fo.add_comment("created by create_legacy_umonitor") fo.add_arg(arg_request,'req') reg = gpry_names[env.asz] # abuse the gprv names fo.add_arg(arg_reg_type + reg, reg) # This operation is address-size modulated In 64b mode, 64b # addressing is the default. For non default 32b addressing in # 64b mode, we need a 67 prefix. if env.mode == 64 and env.asz == 32: emit_67_prefix(fo) # FIXME: REWORD COMMENT In 32b mode, we usually, but not always # have 32b addressing. It is perfectly legit to have 32b mode # with 16b addressing in which case a 67 is not needed. Same # (other way around) for 16b mode. So we really do not need the 67 # prefix ever outside of 64b mode as users are expected to use the # appropriate library for their addressing mode. # #elif env.mode == 32 and env.asz == 16: # emit_67_prefix(fo) #elif env.mode == 16 and asz == 32: # emit_67_prefix(fo) fo.add_code_eol('enc_modrm_rm_{}(r,{})'.format(reg, reg)) if ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required), 'reg opcode extension') if ii.mod_required != 'unspecified': if ii.mod_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(ii.mod_required)) emit_required_legacy_prefixes(ii,fo) emit_rex(env,fo,rex_forced=False) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def is_ArAX_implicit(ii): # allows one implicit fixed reg a,implicit_fixed=0,0 for op in _gen_opnds(ii): if op_luf_start(op,'ArAX'): a += 1 elif op_reg(op) and op_implicit_specific_reg(op): implicit_fixed += 1 else: return False return a==1 and implicit_fixed <= 1 def create_legacy_ArAX_implicit(env,ii): global arg_request, enc_fn_prefix fname = '{}_{}'.format(enc_fn_prefix, ii.iclass.lower()) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_legacy_ArAX_implicit") fo.add_arg(arg_request,'req') # This operation is address-size modulated In 64b mode, 64b # addressing is the default. For non default 32b addressing in # 64b mode, we need a 67 prefix. if env.mode == 64 and env.asz == 32: emit_67_prefix(fo) # FIXME: REWORD COMMENT In 32b mode, we usually, but not always # have 32b addressing. It is perfectly legit to have 32b mode # with 16b addressing in which case a 67 is not needed. Same # (other way around) for 16b mode. So we really do not need the 67 # prefix ever outside of 64b mode as users are expected to use the # appropriate library for their addressing mode. # #elif env.mode == 32 and env.asz == 16: # emit_67_prefix(fo) #elif env.mode == 16 and asz == 32: # emit_67_prefix(fo) if ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required), 'reg opcode extension') if ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required), 'rm opcode extension') if ii.mod_required != 'unspecified': if ii.mod_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_mod(r,{})'.format(ii.mod_required)) emit_required_legacy_prefixes(ii,fo) #emit_rex(env,fo,rex_forced=False) emit_required_legacy_map_escapes(ii,fo) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def _enc_legacy(env,ii): if is_ArAX_implicit(ii): # must be before one_nonmem_operand and zero_operands create_legacy_ArAX_implicit(env,ii) elif is_umonitor(ii): # must be before one_nonmem_operand and zero_oprands create_legacy_umonitor(env,ii) elif zero_operands(ii):# allows all-implicit too create_legacy_zero_operands(env,ii) elif one_implicit_gpr_imm8(ii): create_legacy_one_implicit_reg(env,ii,imm8=True) elif mov_without_modrm(ii): # A0...A3, not B0,B8 create_legacy_mov_without_modrm(env,ii) elif one_gpr_reg_one_mem_zp(ii): create_legacy_one_gpr_reg_one_mem_scalable(env,ii) elif one_gpr_reg_one_mem_scalable(ii): create_legacy_one_gpr_reg_one_mem_scalable(env,ii) elif one_scalable_gpr_and_one_mem(ii): # mem fixed or scalable, optional imm8,immz create_legacy_one_gpr_reg_one_mem_scalable(env,ii) # GPRyor GPRv with MEMv elif one_gpr_reg_one_mem_fixed(ii): create_legacy_one_gpr_reg_one_mem_fixed(env,ii) elif two_gpr8_regs(ii): create_legacy_two_gpr8_regs(env,ii) elif two_scalable_regs(ii): # allow optional imm8,immz create_legacy_two_scalable_regs(env,ii,[16,32,64]) elif two_gpr_one_scalable_one_fixed(ii): create_legacy_two_gpr_one_scalable_one_fixed(env,ii) elif two_fixed_gprs(ii): create_legacy_two_fixed_gprs(env,ii) elif one_xmm_reg_imm8(ii): # also SSE4 2-imm8 instr create_legacy_one_xmm_reg_imm8(env,ii) elif one_mmx_reg_imm8(ii): create_legacy_one_mmx_reg_imm8(env,ii) elif two_fixed_regs_opti8(ii): create_legacy_two_fixed_regs_opti8(env,ii) elif one_x87_reg(ii): create_legacy_one_x87_reg(env,ii) elif two_x87_reg(ii): # one implicit create_legacy_two_x87_reg(env,ii) elif one_x87_implicit_reg_one_memop(ii): create_legacy_one_mem_common(env,ii,imm=0) elif one_gprv_one_implicit(ii): create_legacy_one_scalable_gpr(env, ii, [16,32,64], 'v') elif one_gpr8_one_implicit(ii): create_legacy_one_scalable_gpr(env, ii, [8], '8') elif one_nonmem_operand(ii): create_legacy_one_nonmem_opnd(env,ii) # branches out elif gpr8_imm8(ii): create_legacy_gpr_imm8(env,ii,[8]) elif gprv_imm8(ii): create_legacy_gpr_imm8(env,ii,[16,32,64]) elif gprv_immz(ii): create_legacy_gprv_immz(env,ii) elif gprv_immv(ii): create_legacy_gprv_immv(env,ii,imm=True) elif gprv_implicit_orax(ii): create_legacy_gprv_immv(env,ii,imm=False) elif orax_immz(ii): create_legacy_orax_immz(env,ii) elif is_far_xfer_nonmem(ii): create_legacy_far_xfer_nonmem(env,ii) elif is_far_xfer_mem(ii): create_legacy_far_xfer_mem(env,ii) elif one_mem_common(ii): # b,w,d,q,dq, v,y create_legacy_one_mem_common(env,ii,imm=0) elif one_mem_common_one_implicit_gpr(ii): # b,w,d,q,dq, v,y create_legacy_one_mem_common(env,ii,imm=0) elif one_mem_fixed_imm8(ii): create_legacy_one_mem_common(env,ii,imm='8') elif one_mem_fixed_immz(ii): create_legacy_one_mem_common(env,ii,imm='z') elif one_xmm_reg_one_mem_fixed_opti8(ii): # allows gpr32, gpr64, mmx too create_legacy_one_xmm_reg_one_mem_fixed(env,ii) elif is_enter_instr(ii): create_legacy_enter(env,ii) elif is_mov_cr_dr(ii): create_mov_cr_dr(env,ii) elif is_mov_seg(ii): create_mov_seg(env,ii) elif is_mov_crc32(ii) or is_lsl_regreg(ii): create_legacy_crc32(env,ii) elif is_movdir64_or_enqcmd(ii): create_legacy_movdir64_or_enqcmd(env,ii) def several_xymm_gpr_imm8(ii): # optional imm8 i,x,y,d,q = 0,0,0,0,0 for op in _gen_opnds(ii): if op_reg(op) and op_xmm(op): x += 1 elif op_reg(op) and op_ymm(op): y += 1 elif op_gpr32(op) or op_vgpr32(op): d += 1 elif op_gpr64(op) or op_vgpr64(op): q += 1 elif op_imm8(op): i += 1 else: return False simd = x + y gpr = d + q if simd == 4 and gpr == 0: return True sum = simd + gpr return simd <= 3 and gpr <= 3 and i<=1 and sum<=3 and sum>0 def several_xymm_gpr_mem_imm8(ii): # optional imm8 m,i,x,y,d,q,k = 0,0,0,0,0,0,0 for op in _gen_opnds(ii): if op_mem(op): m += 1 elif op_mask_reg(op): k += 1 elif op_reg(op) and op_xmm(op): x += 1 elif op_reg(op) and op_ymm(op): y += 1 elif op_gpr32(op) or op_vgpr32(op): d += 1 elif op_gpr64(op) or op_vgpr64(op): q += 1 elif op_imm8(op): i += 1 else: return False simd = x + y gpr = d + q if m==1 and simd == 4 and gpr == 0: return True sum = simd + gpr + k return m==1 and simd <= 3 and gpr <= 3 and k <= 1 and i<=1 and sum<=3 and (sum>0 or m==1) def two_ymm_and_mem(ii): m,n = 0,0 for op in _gen_opnds(ii): if op_reg(op) and op_ymm(op): n += 1 elif op_mem(op): m += 1 else: return False return n==2 and m==1 def set_vex_pp(ii,fo): # XED encodes VEX_PREFIX=2,3 values for F2,F3 so they need to be recoded before emitting. translate_pp_values = { 0:0, 1:1, 2:3, 3:2 } vex_prefix = re.compile(r'VEX_PREFIX=(?P<prefix>[0123])') m = vex_prefix.search(ii.pattern) if m: ppval = int(m.group('prefix')) real_pp = translate_pp_values[ppval] if real_pp: fo.add_code_eol('set_vexpp(r,{})'.format(real_pp)) else: die("Could not find the VEX.PP pattern") def largest_vl_vex(ii): # and evex vl = 0 for op in _gen_opnds(ii): if op_xmm(op): vl = vl | 1 elif op_ymm(op): vl = vl | 2 elif op_zmm(op): vl = vl | 4 if vl >= 4: return 'zmm' elif vl >= 2: return 'ymm' return 'xmm' def get_type_size(op): a = re.sub(r'_.*','',op.lookupfn_name) a = re.sub('MASK','kreg',a) return re.sub(r'^[Vv]','',a).lower() def count_operands(ii): # skip imm8 x = 0 for op in _gen_opnds(ii): if op_imm8(op): continue x += 1 return x def create_vex_simd_reg(env,ii): """Handle 2/3/4 xymm or gprs regs and optional imm8. This is coded to allow different type and size for each operand. Different x/ymm show up on converts. Also handles 2-imm8 SSE4a instr. """ global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_reg2, var_reg2 global arg_reg3, var_reg3 nopnds = count_operands(ii) # not imm8 opnd_sig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opnd_sig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_vex_simd_reg opnd_sig={} nopnds={}".format(opnd_sig,nopnds)) fo.add_arg(arg_request,'req') opnd_types = get_opnd_types(env,ii) fo.add_arg(arg_reg0,opnd_types[0]) if nopnds >= 2: fo.add_arg(arg_reg1, opnd_types[1]) if nopnds >= 3: fo.add_arg(arg_reg2, opnd_types[2]) if nopnds >= 4: fo.add_arg(arg_reg3, opnd_types[3]) cond_add_imm_args(ii,fo) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) if ii.vl == '256': # ZERO INIT OPTIMIZATION fo.add_code_eol('set_vexl(r,1)') fo.add_code_eol('set_mod(r,3)') vars = [var_reg0, var_reg1, var_reg2, var_reg3] var_r, var_b, var_n, var_se = None, None, None, None for i,op in enumerate(_gen_opnds(ii)): if op.lookupfn_name: if op.lookupfn_name.endswith('_R'): var_r,sz_r = vars[i], get_type_size(op) elif op.lookupfn_name.endswith('_B'): var_b,sz_b = vars[i], get_type_size(op) elif op.lookupfn_name.endswith('_N'): var_n,sz_n = vars[i], get_type_size(op) elif op.lookupfn_name.endswith('_SE'): var_se,sz_se = vars[i],get_type_size(op) else: die("SHOULD NOT REACH HERE") if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if var_n: fo.add_code_eol('enc_vvvv_reg_{}(r,{})'.format(sz_n, var_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") if var_r: fo.add_code_eol('enc_modrm_reg_{}(r,{})'.format(sz_r, var_r)) elif ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_modrm_rm_{}(r,{})'.format(sz_b, var_b)) elif ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) if var_se: fo.add_code_eol('enc_imm8_reg_{}(r,{})'.format(sz_se, var_se)) emit_vex_prefix(env, ii,fo,register_only=True) emit_opcode(ii,fo) emit_modrm(fo) if ii.has_imm8: cond_emit_imm8(ii,fo) elif var_se: fo.add_code_eol('emit_se_imm8_reg(r)') add_enc_func(ii,fo) def find_mempos(ii): for i,op in enumerate(_gen_opnds(ii)): if op_mem(op): return i die("NOT REACHED") def create_vex_regs_mem(env,ii): """0, 1, 2 or 3 xmm/ymm/gpr32/gpr64/kreg and 1 memory operand. allows imm8 optionally""" global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_reg2, var_reg2 global arg_reg3, var_reg3 global arg_imm8 nopnds = count_operands(ii) # skips imm8 op = first_opnd(ii) width = op.oc2 opsig = make_opnd_signature(env,ii) vlname = 'ymm' if ii.vl == '256' else 'xmm' immw=0 if ii.has_imm8: immw=8 dispsz_list = get_dispsz_list(env) opnd_types_org = get_opnd_types(env,ii) arg_regs = [ arg_reg0, arg_reg1, arg_reg2, arg_reg3 ] var_regs = [ var_reg0, var_reg1, var_reg2, var_reg3 ] ispace = itertools.product(get_index_vals(ii), dispsz_list) for use_index, dispsz in ispace: memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = "{}_{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig, memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_vex_regs_mem") fo.add_arg(arg_request,'req') opnd_types = copy.copy(opnd_types_org) regn = 0 for i,optype in enumerate(opnd_types_org): if optype in ['xmm','ymm','zmm', 'gpr32', 'gpr64', 'kreg']: fo.add_arg(arg_regs[regn], opnd_types.pop(0)) regn += 1 elif optype in ['mem']: add_memop_args(env, ii, fo, use_index, dispsz, immw=0) opnd_types.pop(0) elif optype in 'int8': fo.add_arg(arg_imm8,'int8') opnd_types.pop(0) # imm8 is last so we technically can skip this pop else: die("UNHANDLED ARG {} in {}".format(optype, ii.iclass)) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) if ii.vl == '256': # Not setting VL=128 since that is ZERO OPTIMIZATION fo.add_code_eol('set_vexl(r,1)') # FIXME REFACTOR function-ize this var_r, var_b, var_n, var_se = None,None,None,None sz_r, sz_b, sz_n, sz_se = None,None,None,None for i,op in enumerate(_gen_opnds_nomem(ii)): # use no mem version to skip memop if a store-type op if op.lookupfn_name: if op.lookupfn_name.endswith('_R'): var_r,sz_r = var_regs[i],get_type_size(op) elif op.lookupfn_name.endswith('_B'): var_b,sz_b = var_regs[i],get_type_size(op) elif op.lookupfn_name.endswith('_SE'): var_se,sz_se = var_regs[i],get_type_size(op) elif op.lookupfn_name.endswith('_N'): var_n,sz_n = var_regs[i],get_type_size(op) else: die("SHOULD NOT REACH HERE") if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if var_n == None: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") else: fo.add_code_eol('enc_vvvv_reg_{}(r,{})'.format(sz_n, var_n)) if var_r: fo.add_code_eol('enc_modrm_reg_{}(r,{})'.format(sz_r, var_r)) elif ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_modrm_rm_{}(r,{})'.format(sz_b, var_b)) elif ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) if var_se: if immw: immw=0 fo.add_code_eol('enc_imm8_reg_{}_and_imm(r,{},{})'.format(sz_se, var_se, var_imm8)) else: fo.add_code_eol('enc_imm8_reg_{}(r,{})'.format(sz_se, var_se)) encode_mem_operand(env, ii, fo, use_index, dispsz) emit_vex_prefix(env, ii,fo,register_only=False) finish_memop(env, ii, fo, dispsz, immw, space='vex') if var_se: fo.add_code_eol('emit_se_imm8_reg(r)') add_enc_func(ii,fo) def create_vex_one_mask_reg_and_one_gpr(env,ii): # FIXME: REFACTOR NOTE: could combine with create_vex_all_mask_reg # if we handle 3 reg args and optional imm8. global arg_reg0, arg_reg1, var_reg0, var_reg1 opsig = make_opnd_signature(env,ii) opnd_types = get_opnd_types(env,ii) arg_regs = [ arg_reg0, arg_reg1 ] var_regs = [ var_reg0, var_reg1 ] fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_vex_one_mask_reg_and_one_gpr") fo.add_arg(arg_request,'req') for i,op in enumerate(opnd_types): fo.add_arg(arg_regs[i], opnd_types[i]) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) if ii.vl == '256': # ZERO INIT OPTIMIZATION fo.add_code_eol('set_vexl(r,1)') var_r, var_b, var_n = None,None,None for i,op in enumerate(_gen_opnds(ii)): if op.lookupfn_name: if op.lookupfn_name.endswith('_R'): var_r,sz_r = var_regs[i],get_type_size(op) elif op.lookupfn_name.endswith('_B'): var_b,sz_b = var_regs[i],get_type_size(op) elif op.lookupfn_name.endswith('_N'): var_n,sz_n = var_regs[i],get_type_size(op) else: die("SHOULD NOT REACH HERE") fo.add_code_eol('set_mod(r,3)') if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if var_n: fo.add_code_eol('enc_vvvv_reg_{}(r,{})'.format(sz_n, var_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") if var_r: fo.add_code_eol('enc_modrm_reg_{}(r,{})'.format(sz_r, var_r)) elif ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_modrm_rm_{}(r,{})'.format(sz_b, var_b)) elif ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) # FIXME: if kreg in MODRM.RM, we know we don't need to check rex.b # before picking c4/c5. MINOR PERF OPTIMIZATION emit_vex_prefix(env, ii,fo,register_only=True) emit_opcode(ii,fo) emit_modrm(fo) add_enc_func(ii,fo) def create_vex_all_mask_reg(env,ii): '''Allows optional imm8''' global enc_fn_prefix, arg_request global arg_kreg0, var_kreg0 global arg_kreg1, var_kreg1 global arg_kreg2, var_kreg2 opsig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_vex_all_mask_reg") fo.add_arg(arg_request,'req') fo.add_arg(arg_kreg0,'kreg') if 'k_k' in opsig: fo.add_arg(arg_kreg1,'kreg') if 'k_k_k' in opsig: fo.add_arg(arg_kreg2,'kreg') if ii.has_imm8: add_arg_immv(fo,8) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) if ii.vl == '256': # Not setting VL=128 since that is ZERO OPTIMIZATION fo.add_code_eol('set_vexl(r,1)') vars = [var_kreg0, var_kreg1, var_kreg2] var_r,var_b,var_n=None,None,None for i,op in enumerate(_gen_opnds(ii)): if op.lookupfn_name: if op.lookupfn_name.endswith('_R'): var_r = vars[i] elif op.lookupfn_name.endswith('_B'): var_b = vars[i] elif op.lookupfn_name.endswith('_N'): var_n = vars[i] else: die("SHOULD NOT REACH HERE") if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if var_n: fo.add_code_eol('enc_vex_vvvv_kreg(r,{})'.format(var_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") if var_r: fo.add_code_eol('enc_modrm_reg_kreg(r,{})'.format(var_r)) elif ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_modrm_rm_kreg(r,{})'.format(var_b)) elif ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) fo.add_code_eol('set_mod(r,3)') emit_vex_prefix(env, ii,fo,register_only=True) emit_opcode(ii,fo) emit_modrm(fo) if ii.has_imm8: cond_emit_imm8(ii,fo) add_enc_func(ii,fo) def vex_amx_mem(ii): if 'AMX' in ii.isa_set: for op in _gen_opnds(ii): if op_mem(op): return True return False def vex_amx_reg(ii): if 'AMX' in ii.isa_set: for op in _gen_opnds(ii): if op_mem(op): return False return True return False def create_vex_amx_reg(env,ii): # FIXME: XXX global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_reg2, var_reg2 global arg_reg3, var_reg3 nopnds = count_operands(ii) # not imm8 opnd_sig = make_opnd_signature(env,ii) fname = "{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opnd_sig) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_vex_amx_reg opnd_sig={} nopnds={}".format(opnd_sig,nopnds)) fo.add_arg(arg_request,'req') opnd_types = get_opnd_types(env,ii) if nopnds >= 1: fo.add_arg(arg_reg0,opnd_types[0]) if nopnds >= 2: fo.add_arg(arg_reg1, opnd_types[1]) if nopnds >= 3: fo.add_arg(arg_reg2, opnd_types[2]) if nopnds >= 4: fo.add_arg(arg_reg3, opnd_types[3]) cond_add_imm_args(ii,fo) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) if ii.vl == '256': # ZERO INIT OPTIMIZATION fo.add_code_eol('set_vexl(r,1)') fo.add_code_eol('set_mod(r,3)') vars = [var_reg0, var_reg1, var_reg2, var_reg3] var_r, var_b, var_n, var_se = None, None, None, None for i,op in enumerate(_gen_opnds(ii)): if op.lookupfn_name: if op.lookupfn_name.endswith('_R'): var_r,sz_r = vars[i], get_type_size(op) elif op.lookupfn_name.endswith('_B'): var_b,sz_b = vars[i], get_type_size(op) elif op.lookupfn_name.endswith('_N'): var_n,sz_n = vars[i], get_type_size(op) else: die("SHOULD NOT REACH HERE") if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if var_n: fo.add_code_eol('enc_vvvv_reg_{}(r,{})'.format(sz_n, var_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") if var_r: fo.add_code_eol('enc_modrm_reg_{}(r,{})'.format(sz_r, var_r)) elif ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_modrm_rm_{}(r,{})'.format(sz_b, var_b)) elif ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) emit_vex_prefix(env, ii,fo,register_only=True) emit_opcode(ii,fo) emit_modrm(fo) if ii.has_imm8: cond_emit_imm8(ii,fo) elif var_se: fo.add_code_eol('emit_se_imm8_reg(r)') add_enc_func(ii,fo) def create_vex_amx_mem(env,ii): # FIXME: XXX global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_reg2, var_reg2 global arg_reg3, var_reg3 global arg_imm8 nopnds = count_operands(ii) # skips imm8 op = first_opnd(ii) width = op.oc2 opsig = make_opnd_signature(env,ii) immw=0 if ii.has_imm8: immw=8 dispsz_list = get_dispsz_list(env) opnd_types_org = get_opnd_types(env,ii) arg_regs = [ arg_reg0, arg_reg1, arg_reg2, arg_reg3 ] var_regs = [ var_reg0, var_reg1, var_reg2, var_reg3 ] ispace = itertools.product(get_index_vals(ii), dispsz_list) for use_index, dispsz in ispace: memaddrsig = get_memsig(env.asz, use_index, dispsz) fname = "{}_{}_{}_{}".format(enc_fn_prefix, ii.iclass.lower(), opsig, memaddrsig) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_vex_amx_mem") fo.add_arg(arg_request,'req') opnd_types = copy.copy(opnd_types_org) regn = 0 for i,optype in enumerate(opnd_types_org): if optype in ['tmm','xmm','ymm','zmm', 'gpr32', 'gpr64', 'kreg']: fo.add_arg(arg_regs[regn], opnd_types.pop(0)) regn += 1 elif optype in ['mem']: add_memop_args(env, ii, fo, use_index, dispsz, immw=0) opnd_types.pop(0) elif optype in 'int8': fo.add_arg(arg_imm8,'int8') opnd_types.pop(0) # imm8 is last so we technically can skip this pop else: die("UNHANDLED ARG {} in {}".format(optype, ii.iclass)) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) if ii.vl == '256': # Not setting VL=128 since that is ZERO OPTIMIZATION fo.add_code_eol('set_vexl(r,1)') # FIXME REFACTOR function-ize this var_r, var_b, var_n, var_se = None,None,None,None sz_r, sz_b, sz_n, sz_se = None,None,None,None for i,op in enumerate(_gen_opnds_nomem(ii)): # use no mem version to skip memop if a store-type op if op.lookupfn_name: if op.lookupfn_name.endswith('_R'): var_r,sz_r = var_regs[i],get_type_size(op) elif op.lookupfn_name.endswith('_B'): var_b,sz_b = var_regs[i],get_type_size(op) elif op.lookupfn_name.endswith('_N'): var_n,sz_n = var_regs[i],get_type_size(op) else: die("SHOULD NOT REACH HERE") if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if var_n == None: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") else: fo.add_code_eol('enc_vvvv_reg_{}(r,{})'.format(sz_n, var_n)) if var_r: fo.add_code_eol('enc_modrm_reg_{}(r,{})'.format(sz_r, var_r)) elif ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_modrm_rm_{}(r,{})'.format(sz_b, var_b)) elif ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) encode_mem_operand(env, ii, fo, use_index, dispsz) emit_vex_prefix(env, ii,fo,register_only=False) finish_memop(env, ii, fo, dispsz, immw, space='vex') add_enc_func(ii,fo) def _enc_vex(env,ii): if several_xymm_gpr_imm8(ii): create_vex_simd_reg(env,ii) elif several_xymm_gpr_mem_imm8(ii): # very generic create_vex_regs_mem(env,ii) elif vex_all_mask_reg(ii): # allows imm8 create_vex_all_mask_reg(env,ii) elif vex_one_mask_reg_and_one_gpr(ii): create_vex_one_mask_reg_and_one_gpr(env,ii) elif vex_vzero(ii): create_vex_vzero(env,ii) elif vex_amx_reg(ii): create_vex_amx_reg(env,ii) elif vex_amx_mem(ii): create_vex_amx_mem(env,ii) def vex_vzero(ii): return ii.iclass.startswith('VZERO') def create_vex_vzero(env,ii): fname = "{}_{}".format(enc_fn_prefix, ii.iclass.lower()) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_vex_vzero") fo.add_arg(arg_request,'req') set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) if ii.vl == '256': # ZERO INIT OPTIMIZATION fo.add_code_eol('set_vexl(r,1)') if ii.rexw_prefix == '1': # could skip this because we know... fo.add_code_eol('set_rexw(r)') fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") emit_vex_prefix(env, ii,fo,register_only=True) # could force C5 since we know... emit_opcode(ii,fo) # no modrm on vzero* ... only exception in VEX space. add_enc_func(ii,fo) def vex_all_mask_reg(ii): # allow imm8 i,k = 0,0 for op in _gen_opnds(ii): if op_mask_reg(op): k += 1 elif op_imm8(op): i += 1 else: return False return k>=2 and i<=1 def vex_one_mask_reg_and_one_gpr(ii): g,k = 0,0 for op in _gen_opnds(ii): if op_mask_reg(op): k += 1 elif op_gpr32(op) or op_gpr64(op): g += 1 else: return False return k == 1 and g == 1 def evex_xyzmm_and_gpr(ii): i,d,q,x,y,z=0,0,0,0,0,0 for op in _gen_opnds(ii): if op_xmm(op): x += 1 elif op_ymm(op): y += 1 elif op_zmm(op): z +=1 elif op_imm8(op): i += 1 elif op_gpr32(op): d += 1 elif op_gpr64(op): q += 1 else: return False simd = x + y + z gprs = d + q return gprs == 1 and simd > 0 and simd < 3 and i <= 1 def evex_2or3xyzmm(ii): # allows for mixing widths of registers x,y,z=0,0,0 for op in _gen_opnds(ii): if op_xmm(op): x = x + 1 elif op_ymm(op): y = y + 1 elif op_zmm(op): z = z + 1 elif op_imm8(op): continue else: return False sum = x + y + z return sum == 2 or sum == 3 def evex_regs_mem(ii): #allow imm8 and kreg, gpr d,q, k,i,x, y,z,m = 0,0, 0,0,0, 0,0,0 for op in _gen_opnds(ii): if op_mask_reg(op): k += 1 elif op_xmm(op): x += 1 elif op_ymm(op): y += 1 elif op_zmm(op): z += 1 elif op_imm8(op): i += 1 elif op_mem(op): m += 1 elif op_gpr32(op) or op_vgpr32(op): d += 1 elif op_gpr64(op) or op_vgpr64(op): q += 1 else: return False simd = x+y+z gpr = d+q return m==1 and (gpr+simd)<3 and i<=1 and k <= 1 def create_evex_xyzmm_and_gpr(env,ii): '''1,2,or3 xyzmm regs and 1 gpr32/64 and optional imm8 ''' global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_reg2, var_reg2 global arg_kmask, var_kmask global arg_zeroing, var_zeroing global arg_rcsae, var_rcsae global arg_imm8, var_imm8 global vl2names sae,rounding,imm8,masking_allowed=False,False,False,False if ii.sae_form: sae = True elif ii.rounding_form: rounding = True if ii.has_imm8: imm8 = True if ii.write_masking: masking_allowed = True vl = vl2names[ii.vl] mask_variant_name = { False:'', True: '_msk' } opnd_sig = make_opnd_signature(env,ii) mask_versions = [False] if masking_allowed: mask_versions.append(True) reg_type_names = [] for op in _gen_opnds(ii): if op_xmm(op): reg_type_names.append('xmm') elif op_ymm(op): reg_type_names.append('ymm') elif op_zmm(op): reg_type_names.append('zmm') elif op_gpr32(op): reg_type_names.append('gpr32') elif op_gpr64(op): reg_type_names.append('gpr64') nregs = len(reg_type_names) opnd_types_org = get_opnd_types(env,ii) for masking in mask_versions: fname = "{}_{}_{}{}".format(enc_fn_prefix, ii.iclass.lower(), opnd_sig, mask_variant_name[masking]) fo = make_function_object(env,ii,fname) fo.add_comment("created by create_evex_xyzmm_and_gpr") fo.add_arg(arg_request,'req') opnd_types = copy.copy(opnd_types_org) fo.add_arg(arg_reg0,opnd_types.pop(0)) if masking: fo.add_arg(arg_kmask,'kreg') if not ii.write_masking_merging_only: fo.add_arg(arg_zeroing,'zeroing') fo.add_arg(arg_reg1,opnd_types.pop(0)) if nregs == 3: fo.add_arg(arg_reg2, opnd_types.pop(0)) if imm8: fo.add_arg(arg_imm8,'int8') if rounding: fo.add_arg(arg_rcsae,'rcsae') set_vex_pp(ii,fo) fo.add_code_eol('set_mod(r,3)') fo.add_code_eol('set_map(r,{})'.format(ii.map)) set_evexll_vl(ii,fo,vl) if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if rounding: fo.add_code_eol('set_evexb(r,1)', 'set rc+sae') fo.add_code_eol('set_evexll(r,{})'.format(var_rcsae)) elif sae: fo.add_code_eol('set_evexb(r,1)', 'set sae') # ZERO INIT OPTIMIZATION for EVEX.LL/RC = 0 if masking: if not ii.write_masking_merging_only: fo.add_code_eol('set_evexz(r,{})'.format(var_zeroing)) fo.add_code_eol('enc_evex_kmask(r,{})'.format(var_kmask)) # ENCODE REGISTERS vars = [var_reg0, var_reg1, var_reg2] var_r, var_b, var_n = None, None, None for i,op in enumerate(_gen_opnds(ii)): if op.lookupfn_name: if op.lookupfn_name.endswith('_R3') or op.lookupfn_name.endswith('_R'): var_r, ri = vars[i], i elif op.lookupfn_name.endswith('_B3') or op.lookupfn_name.endswith('_B'): var_b, bi = vars[i], i elif op.lookupfn_name.endswith('_N3') or op.lookupfn_name.endswith('_N'): var_n, ni = vars[i], i else: die("SHOULD NOT REACH HERE") if var_n: fo.add_code_eol('enc_evex_vvvv_reg_{}(r,{})'.format(reg_type_names[ni], var_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") fo.add_code_eol('set_evexvv(r,1)',"must be 1") if var_r: fo.add_code_eol('enc_evex_modrm_reg_{}(r,{})'.format(reg_type_names[ri], var_r)) elif ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_evex_modrm_rm_{}(r,{})'.format(reg_type_names[bi], var_b)) elif ii.rm_required != 'unspecified': if ii.rm_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_rm(r,{})'.format(ii.rm_required)) fo.add_code_eol('emit_evex(r)') emit_opcode(ii,fo) emit_modrm(fo) if imm8: fo.add_code_eol('emit(r,{})'.format(var_imm8)) add_enc_func(ii,fo) def create_evex_regs_mem(env, ii): """Handles 0,1,2 simd/gpr regs and one memop (including vsib) Allows imm8 also.""" global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_kmask, var_kmask global arg_zeroing, var_zeroing global arg_imm8, var_imm8 var_regs = [var_reg0, var_reg1, var_reg2] arg_regs = [ arg_reg0, arg_reg1, arg_reg2 ] imm8=False if ii.has_imm8: imm8 = True vl = vl2names[ii.vl] mask_variant_name = { False:'', True: '_msk' } mask_versions = [False] if ii.write_masking_notk0: mask_versions = [True] elif ii.write_masking: mask_versions = [False, True] else: mask_versions = [False] dispsz_list = get_dispsz_list(env) if ii.broadcast_allowed: bcast_vals = ['nobroadcast','broadcast'] else: bcast_vals = ['nobroadcast'] bcast_variant_name = {'nobroadcast':'', 'broadcast':'_bcast' } opnd_types_org = get_opnd_types(env,ii) # flatten a 4-deep nested loop using itertools.product() ispace = itertools.product(bcast_vals, get_index_vals(ii), dispsz_list, mask_versions) for broadcast, use_index, dispsz, masking in ispace: broadcast_bool = True if broadcast == 'broadcast' else False opnd_sig = make_opnd_signature(env,ii, broadcasting=broadcast_bool) memaddrsig = get_memsig(env.asz, use_index, dispsz) opnd_types = copy.copy(opnd_types_org) fname = "{}_{}_{}{}_{}{}".format(enc_fn_prefix, ii.iclass.lower(), opnd_sig, mask_variant_name[masking], memaddrsig, bcast_variant_name[broadcast]) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_evex_regs_mem") fo.add_arg(arg_request,'req') # ==== ARGS ===== def _add_mask_arg(ii,fo): global arg_kmask, arg_zeroing if ii.write_masking_notk0: kreg_comment = 'kreg!0' else: kreg_comment = 'kreg' fo.add_arg(arg_kmask,kreg_comment) if ii.write_masking_merging_only == False: fo.add_arg(arg_zeroing,'zeroing') gather_prefetch = is_gather_prefetch(ii) regn = 0 for i,optype in enumerate(opnd_types_org): if i == 0 and masking and gather_prefetch: _add_mask_arg(ii,fo) if optype in ['xmm','ymm','zmm','kreg','gpr32','gpr64']: fo.add_arg(arg_regs[regn], opnd_types.pop(0)) regn += 1 elif optype in ['mem']: add_memop_args(env, ii, fo, use_index, dispsz) opnd_types.pop(0) elif optype in 'int8': fo.add_arg(arg_imm8,'int8') else: die("UNHANDLED ARG {} in {}".format(optype, ii.iclass)) # add masking after 0th argument except for gather prefetch if i == 0 and masking and not gather_prefetch: _add_mask_arg(ii,fo) # ===== ENCODING ====== if dispsz in [16,32]: # the largest displacements 16 for 16b addressing, 32 for 32/64b addressing add_evex_displacement_var(fo) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) set_evexll_vl(ii,fo,vl) if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if masking: if not ii.write_masking_merging_only: fo.add_code_eol('set_evexz(r,{})'.format(var_zeroing)) fo.add_code_eol('enc_evex_kmask(r,{})'.format(var_kmask)) if broadcast == 'broadcast': # ZERO INIT OPTIMIZATION fo.add_code_eol('set_evexb(r,1)') # ENCODE REGISTERS var_r, var_b, var_n = None, None, None sz_r, sz_b, sz_n = None, None, None for i,op in enumerate(_gen_opnds_nomem(ii)): if op.lookupfn_name: if op.lookupfn_name.endswith('_R3') or op.lookupfn_name.endswith('_R'): var_r,sz_r = var_regs[i], get_type_size(op) elif op.lookupfn_name.endswith('_B3') or op.lookupfn_name.endswith('_B'): var_b,sz_b = var_regs[i], get_type_size(op) elif op.lookupfn_name.endswith('_N3') or op.lookupfn_name.endswith('_N'): var_n,sz_n = var_regs[i], get_type_size(op) else: die("SHOULD NOT REACH HERE") if var_n: fo.add_code_eol('enc_evex_vvvv_reg_{}(r,{})'.format(sz_n, var_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") fo.add_code_eol('set_evexvv(r,1)',"must be 1") if var_r: fo.add_code_eol('enc_evex_modrm_reg_{}(r,{})'.format(sz_r, var_r)) else: # some instructions use _N3 as dest (like rotates) #fo.add_code_eol('set_rexr(r,1)') #fo.add_code_eol('set_evexrr(r,1)') if ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: die("SHOULD NOT REACH HERE") mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION if mod == 2: broadcasting = True if broadcast == 'broadcast' else False chose_evex_scaled_disp(fo, ii, dispsz, broadcasting) else: fo.add_code_eol('set_mod(r,{})'.format(mod)) encode_mem_operand(env, ii, fo, use_index, dispsz) immw=8 if imm8 else 0 finish_memop(env, ii, fo, dispsz, immw, rexw_forced=False, space='evex') add_enc_func(ii,fo) def evex_mask_dest_reg_only(ii): # optional imm8 i,m,xyz=0,0,0 for op in _gen_opnds(ii): if op_mask_reg(op): m += 1 elif op_xmm(op) or op_ymm(op) or op_zmm(op): xyz += 1 elif op_imm8(op): i += 1 else: return False return m==1 and xyz > 0 and i <= 1 def evex_mask_dest_mem(ii): # optional imm8 i,msk,xyz,mem=0,0,0,0 for op in _gen_opnds(ii): if op_mask_reg(op): msk += 1 elif op_xmm(op) or op_ymm(op) or op_zmm(op): xyz += 1 elif op_mem(op): mem += 1 elif op_imm8(op): i += 1 else: return False return msk==1 and xyz > 0 and i <= 1 and mem==1 def create_evex_evex_mask_dest_reg_only(env, ii): # allows optional imm8 global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_kmask, var_kmask # write mask global arg_kreg0, var_kreg0 # normal operand global arg_zeroing, var_zeroing global arg_imm8, var_imm8, arg_rcsae, var_rcsae imm8 = True if ii.has_imm8 else False vl = vl2names[ii.vl] mask_variant_name = { False:'', True: '_msk' } opnd_sig = make_opnd_signature(env,ii) mask_versions = [False] if ii.write_masking_notk0: mask_versions = [True] elif ii.write_masking: mask_versions = [False, True] else: mask_versions = [False] opnd_types_org = get_opnd_types(env,ii) arg_regs = [ arg_reg0, arg_reg1 ] for masking in mask_versions: opnd_types = copy.copy(opnd_types_org) fname = "{}_{}_{}{}".format(enc_fn_prefix, ii.iclass.lower(), opnd_sig, mask_variant_name[masking]) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_evex_evex_mask_dest_reg_only") fo.add_arg(arg_request,'req') # ==== ARGS ===== regn = 0 for i,optype in enumerate(opnd_types_org): if optype in [ 'kreg', 'kreg!0' ]: fo.add_arg(arg_kreg0, optype) opnd_types.pop(0) elif optype in ['xmm','ymm','zmm']: fo.add_arg(arg_regs[regn], opnd_types.pop(0)) regn += 1 elif optype in ['mem']: die("NOT REACHED") elif optype in 'int8': fo.add_arg(arg_imm8,'int8') else: die("UNHANDLED ARG {} in {}".format(optype, ii.iclass)) # add masking after 0th argument. if i == 0 and masking: if ii.write_masking_notk0: kreg_comment = 'kreg!0' else: kreg_comment = 'kreg' fo.add_arg(arg_kmask,kreg_comment) if ii.write_masking_merging_only == False: fo.add_arg(arg_zeroing,'zeroing') if ii.rounding_form: fo.add_arg(arg_rcsae,'rcsae') # ===== ENCODING ====== set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) set_evexll_vl(ii,fo,vl) if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if masking: if not ii.write_masking_merging_only: fo.add_code_eol('set_evexz(r,{})'.format(var_zeroing)) fo.add_code_eol('enc_evex_kmask(r,{})'.format(var_kmask)) if ii.rounding_form: fo.add_code_eol('set_evexb(r,1)', 'set rc+sae') fo.add_code_eol('set_evexll(r,{})'.format(var_rcsae)) elif ii.sae_form: fo.add_code_eol('set_evexb(r,1)', 'set sae') # ZERO INIT OPTIMIZATION for EVEX.LL/RC = 0 # ENCODE REGISTERS vars = [var_reg0, var_reg1, var_reg2] kvars = [var_kreg0, var_kreg1, var_kreg2] i, var_r, var_b, var_n = 0, None, None, None j, kvar_r, kvar_b, kvar_n = 0, None, None, None for op in _gen_opnds_nomem(ii): if op.lookupfn_name: if op.lookupfn_name.endswith('_R3'): var_r = vars[i] i += 1 elif op.lookupfn_name.endswith('_B3'): var_b = vars[i] i += 1 elif op.lookupfn_name.endswith('_N3'): var_n = vars[i] i += 1 elif op_luf(op,'MASK_R'): kvar_r = kvars[j] j += 1 elif op_luf(op,'MASK_B'): kvar_b = kvars[j] j += 1 elif op_luf(op,'MASK_N'): kvar_n = kvars[j] j += 1 else: die("SHOULD NOT REACH HERE") if var_n: fo.add_code_eol('enc_evex_vvvv_reg_{}(r,{})'.format(vl, var_n)) elif kvar_n: fo.add_code_eol('enc_evex_vvvv_kreg(r,{})'.format(kvar_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") fo.add_code_eol('set_evexvv(r,1)',"must be 1") if var_r: fo.add_code_eol('enc_evex_modrm_reg_{}(r,{})'.format(vl, var_r)) elif kvar_r: fo.add_code_eol('enc_evex_modrm_reg_kreg(r,{})'.format(kvar_r)) else: # some instructions use _N3 as dest (like rotates) #fo.add_code_eol('set_rexr(r,1)') #fo.add_code_eol('set_evexrr(r,1)') if ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b: fo.add_code_eol('enc_evex_modrm_rm_{}(r,{})'.format(vl, var_b)) elif kvar_b: fo.add_code_eol('enc_evex_modrm_rm_kreg(r,{})'.format(kvar_b)) fo.add_code_eol('set_mod(r,3)') fo.add_code_eol('emit_evex(r)') emit_opcode(ii,fo) emit_modrm(fo) cond_emit_imm8(ii,fo) add_enc_func(ii,fo) def create_evex_evex_mask_dest_mem(env, ii): # allows optional imm8 global enc_fn_prefix, arg_request global arg_reg0, var_reg0 global arg_reg1, var_reg1 global arg_kmask, var_kmask # write mask global arg_kreg0, var_kreg0 # normal operand global arg_zeroing, var_zeroing global arg_imm8, var_imm8, arg_rcsae, var_rcsae imm8 = True if ii.has_imm8 else False vl = vl2names[ii.vl] mask_variant_name = { False:'', True: '_msk' } mask_versions = [False] if ii.write_masking_notk0: mask_versions = [True] elif ii.write_masking: mask_versions = [False, True] else: mask_versions = [False] dispsz_list = get_dispsz_list(env) if ii.broadcast_allowed: bcast_vals = ['nobroadcast','broadcast'] else: bcast_vals = ['nobroadcast'] bcast_variant_name = {'nobroadcast':'', 'broadcast':'_bcast' } opnd_types_org = get_opnd_types(env,ii) arg_regs = [ arg_reg0, arg_reg1 ] # flatten a 4-deep nested loop using itertools.product() ispace = itertools.product(bcast_vals, get_index_vals(ii), dispsz_list, mask_versions) for broadcast, use_index, dispsz, masking in ispace: broadcast_bool = True if broadcast == 'broadcast' else False opnd_sig = make_opnd_signature(env,ii,broadcasting=broadcast_bool) memaddrsig = get_memsig(env.asz, use_index, dispsz) opnd_types = copy.copy(opnd_types_org) fname = "{}_{}_{}{}_{}{}".format(enc_fn_prefix, ii.iclass.lower(), opnd_sig, mask_variant_name[masking], memaddrsig, bcast_variant_name[broadcast]) fo = make_function_object(env,ii,fname, asz=env.asz) fo.add_comment("created by create_evex_evex_mask_dest_mem") fo.add_arg(arg_request,'req') # ==== ARGS ===== def _add_mask_arg(ii,fo): global arg_kmask, arg_zeroing if ii.write_masking_notk0: kreg_comment = 'kreg!0' else: kreg_comment = 'kreg' fo.add_arg(arg_kmask,kreg_comment) if ii.write_masking_merging_only == False: fo.add_arg(arg_zeroing,'zeroing') regn = 0 for i,optype in enumerate(opnd_types_org): if optype in [ 'kreg' ]: fo.add_arg(arg_kreg0, optype) opnd_types.pop(0) elif optype in ['xmm','ymm','zmm']: fo.add_arg(arg_regs[regn], opnd_types.pop(0)) regn += 1 elif optype in ['mem']: add_memop_args(env, ii, fo, use_index, dispsz) opnd_types.pop(0) elif optype in 'int8': fo.add_arg(arg_imm8,'int8') else: die("UNHANDLED ARG {} in {}".format(optype, ii.iclass)) # add masking after 0th argument if i == 0 and masking: _add_mask_arg(ii,fo) if ii.rounding_form: fo.add_arg(arg_rcsae,'rcsae') # ===== ENCODING ====== if dispsz in [16,32]: # the largest displacements 16 for 16b addressing, 32 for 32/64b addressing add_evex_displacement_var(fo) set_vex_pp(ii,fo) fo.add_code_eol('set_map(r,{})'.format(ii.map)) set_evexll_vl(ii,fo,vl) if ii.rexw_prefix == '1': fo.add_code_eol('set_rexw(r)') if masking: if not ii.write_masking_merging_only: fo.add_code_eol('set_evexz(r,{})'.format(var_zeroing)) fo.add_code_eol('enc_evex_kmask(r,{})'.format(var_kmask)) if broadcast == 'broadcast': # ZERO INIT OPTIMIZATION fo.add_code_eol('set_evexb(r,1)') if ii.rounding_form: fo.add_code_eol('set_evexb(r,1)', 'set rc+sae') fo.add_code_eol('set_evexll(r,{})'.format(var_rcsae)) elif ii.sae_form: fo.add_code_eol('set_evexb(r,1)', 'set sae') # ZERO INIT OPTIMIZATION for EVEX.LL/RC = 0 # ENCODE REGISTERS vars = [var_reg0, var_reg1, var_reg2] kvars = [var_kreg0, var_kreg1, var_kreg2] i, var_r, var_b, var_n = 0, None, None, None j, kvar_r, kvar_b, kvar_n = 0, None, None, None for op in _gen_opnds_nomem(ii): if op.lookupfn_name: if op.lookupfn_name.endswith('_R3'): var_r = vars[i] i += 1 elif op.lookupfn_name.endswith('_B3'): var_b = vars[i] i += 1 elif op.lookupfn_name.endswith('_N3'): var_n = vars[i] i += 1 elif op_luf(op,'MASK_R'): kvar_r = kvars[j] j += 1 elif op_luf(op,'MASK_B'): kvar_b = kvars[j] j += 1 elif op_luf(op,'MASK_N'): kvar_n = kvars[j] j += 1 else: die("SHOULD NOT REACH HERE") if var_n: fo.add_code_eol('enc_evex_vvvv_reg_{}(r,{})'.format(vl, var_n)) elif kvar_n: fo.add_code_eol('enc_evex_vvvv_kreg(r,{})'.format(kvar_n)) else: fo.add_code_eol('set_vvvv(r,0xF)',"must be 1111") fo.add_code_eol('set_evexvv(r,1)',"must be 1") if var_r: fo.add_code_eol('enc_evex_modrm_reg_{}(r,{})'.format(vl, var_r)) elif kvar_r: fo.add_code_eol('enc_evex_modrm_reg_kreg(r,{})'.format(kvar_r)) else: # some instructions use _N3 as dest (like rotates) #fo.add_code_eol('set_rexr(r,1)') #fo.add_code_eol('set_evexrr(r,1)') if ii.reg_required != 'unspecified': if ii.reg_required: # ZERO INIT OPTIMIZATION fo.add_code_eol('set_reg(r,{})'.format(ii.reg_required)) if var_b or kvar_b: die("SHOULD NOT REACH HERE") #if var_b: # fo.add_code_eol('enc_evex_modrm_rm_{}(r,{})'.format(vl, var_b)) #elif kvar_b: # fo.add_code_eol('enc_evex_modrm_rm_kreg(r,{})'.format(kvar_b)) mod = get_modval(dispsz) if mod: # ZERO-INIT OPTIMIZATION if mod == 2: broadcasting = True if broadcast == 'broadcast' else False chose_evex_scaled_disp(fo, ii, dispsz, broadcasting) else: fo.add_code_eol('set_mod(r,{})'.format(mod)) encode_mem_operand(env, ii, fo, use_index, dispsz) immw=8 if imm8 else 0 finish_memop(env, ii, fo, dispsz, immw, rexw_forced=False, space='evex') add_enc_func(ii,fo) def _enc_evex(env,ii): # handles rounding, norounding, imm8, no-imm8, masking/nomasking if evex_2or3xyzmm(ii): create_evex_xyzmm_and_gpr(env,ii) elif evex_xyzmm_and_gpr(ii): create_evex_xyzmm_and_gpr(env,ii) elif evex_regs_mem(ii): # opt imm8, very broad coverage including kreg(dest) ops create_evex_regs_mem(env, ii) elif evex_mask_dest_reg_only(ii): create_evex_evex_mask_dest_reg_only(env, ii) elif evex_mask_dest_mem(ii): create_evex_evex_mask_dest_mem(env, ii) # FIXME: no longer used def _enc_xop(env,ii): pass # FIXME: could support XOP instr -- not planned as AMD deprecating them. def prep_instruction(ii): setattr(ii,'encoder_functions',[]) setattr(ii,'encoder_skipped',False) ii.write_masking = False ii.write_masking_notk0 = False ii.write_masking_merging_only = False # if true, no zeroing allowed ii.rounding_form = False ii.sae_form = False if ii.space == 'evex': for op in ii.parsed_operands: if op.lookupfn_name == 'MASK1': ii.write_masking = True elif op.lookupfn_name == 'MASKNOT0': ii.write_masking = True ii.write_masking_notk0 = True if ii.write_masking: if 'ZEROING=0' in ii.pattern: ii.write_masking_merging_only = True if 'AVX512_ROUND()' in ii.pattern: ii.rounding_form = True if 'SAE()' in ii.pattern: ii.sae_form = True def xed_mode_removal(env,ii): if 'CLDEMOTE=0' in ii.pattern: return True if 'LZCNT=0' in ii.pattern: return True if 'TZCNT=0' in ii.pattern: return True if 'WBNOINVD=0' in ii.pattern: return True if 'P4=0' in ii.pattern: return True if 'MODEP5=1' in ii.pattern: return True if 'CET=0' in ii.pattern: return True if env.short_ud0: if 'MODE_SHORT_UD0=0' in ii.pattern: # long UD0 return True # skip else: # long ud0 if 'MODE_SHORT_UD0=1' in ii.pattern: # short UD0 return True # skip return False def create_enc_fn(env, ii): if env.asz == 16: if special_index_cases(ii): ii.encoder_skipped = True return if xed_mode_removal(env,ii): ii.encoder_skipped = True return elif env.mode == 64: if ii.mode_restriction == 'not64' or ii.mode_restriction in [0,1]: # we don't need an encoder function for this form in 64b mode ii.encoder_skipped = True return if ii.easz == 'a16': # 16b addressing not accessible from 64b mode ii.encoder_skipped = True return elif env.mode == 32: if ii.mode_restriction in [0,2]: # we don't need an encoder function for this form in 32b mode ii.encoder_skipped = True return if ii.easz == 'a64': # 64b addressing not accessible from 64b mode ii.encoder_skipped = True return if ii.space == 'legacy' and (ii.eosz == 'o64' or ii.rexw_prefix == '1'): # legacy ops with REX.W=1 or EOSZ=3 are 64b mode only ii.encoder_skipped = True return elif env.mode == 16: if ii.mode_restriction in [1,2]: # we don't need an encoder function for this form in 16b mode ii.encoder_skipped = True return if ii.easz == 'a64': # 64b addressing not accessible from 16b mode ii.encoder_skipped = True return if ii.space == 'legacy' and (ii.eosz == 'o64' or ii.rexw_prefix == '1'): # legacy ops with REX.W=1 or EOSZ=3 are 64b mode only ii.encoder_skipped = True return if ii.space == 'legacy': _enc_legacy(env,ii) elif ii.space == 'vex': _enc_vex(env,ii) elif ii.space == 'evex': _enc_evex(env,ii) elif ii.space == 'xop': _enc_xop(env,ii) else: die("Unhandled encoding space: {}".format(ii.space)) def spew(ii): """Print information about the instruction. Purely decorative""" s = [ii.iclass.lower()] if ii.iform: s.append(ii.iform) else: s.append("NOIFORM") s.append(ii.space) s.append(ii.isa_set) s.append(hex(ii.opcode_base10)) s.append(str(ii.map)) #dbg('XA: {}'.format(" ".join(s))) # dump_fields(ii) modes = ['m16','m32','m64'] if ii.mode_restriction == 'unspecified': mode = 'mall' elif ii.mode_restriction == 'not64': mode = 'mnot64' else: mode = modes[ii.mode_restriction] s.append(mode) s.append(ii.easz) s.append(ii.eosz) if ii.space == 'evex': if ii.avx512_tuple: mwc = ii.memop_width_code if hasattr(ii,'memop_width_code') else 'MWC???' mw = ii.memop_width if hasattr(ii,'memop_width') else 'MW???' s.append("TUP:{}-{}-{}-{}".format(ii.avx512_tuple,ii.element_size,mwc,mw)) else: s.append("no-tuple") if ii.write_masking: s.append('masking') if ii.write_masking_merging_only: s.append('nz') if ii.write_masking_notk0: s.append('!k0') else: s.append('nomasking') if ii.space == 'evex': if ii.rounding_form: s.append('rounding') elif ii.sae_form: s.append('sae') else: s.append('noround') for op in _gen_opnds(ii): s.append(op.name) if op.oc2: s[-1] = s[-1] + '-' + op.oc2 #if op.xtype: # s[-1] = s[-1] + '-X:' + op.xtype if op.lookupfn_name: s.append('({})'.format(op.lookupfn_name)) elif op.bits and op.bits != '1': s.append('[{}]'.format(op.bits)) if op.name == 'MEM0': if ii.avx512_vsib: s[-1] = s[-1] + '-uvsib-{}'.format(ii.avx512_vsib) elif ii.avx_vsib: s[-1] = s[-1] + '-vsib-{}'.format(ii.avx_vsib) if ii.encoder_functions: dbg("//DONE {}".format(" ".join(s))) elif ii.encoder_skipped: dbg("//SKIP {}".format(" ".join(s))) else: dbg("//TODO {}".format(" ".join(s))) def gather_stats(db): global numbered_functions unhandled = 0 forms = len(db) generated_fns = 0 skipped_fns = 0 skipped_mpx = 0 handled = 0 not_done = { 'evex':0, 'vex':0, 'legacy':0, 'xop':0 } for ii in db: if ii.encoder_skipped: skipped_fns += 1 elif ii.isa_set in ['MPX']: skipped_mpx += 1 else: gen_fn = len(ii.encoder_functions) if gen_fn == 0: unhandled = unhandled + 1 not_done[ii.space] += 1 else: handled += 1 generated_fns += gen_fn skipped = skipped_mpx + skipped_fns tot_focus = handled + unhandled + skipped # not counting various skipped dbg("// Forms: {:4d}".format(forms)) dbg("// Handled: {:4d} ({:6.2f}%)".format(handled, 100.0*handled/tot_focus )) dbg("// Irrelevant: {:4d} ({:6.2f}%)".format(skipped, 100.0*skipped/tot_focus )) dbg("// Not handled: {:4d} ({:6.2f}%)".format(unhandled, 100.0*unhandled/tot_focus)) dbg("// Numbered functions: {:5d}".format(numbered_functions)) dbg("// Generated Encoding functions: {:5d}".format(generated_fns)) dbg("// Skipped Encoding functions: {:5d}".format(skipped_fns)) dbg("// Skipped MPX instr: {:5d}".format(skipped_mpx)) for space in not_done.keys(): dbg("// not-done {:8s}: {:5d}".format(space, not_done[space])) # object used for the env we pass to the generator class enc_env_t(object): def __init__(self, mode, asz, width_info_dict, test_checked_interface=False, short_ud0=False): self.mode = mode self.asz = asz self.function_names = {} self.test_checked_interface = test_checked_interface self.tests_per_form = 1 self.short_ud0 = short_ud0 # dictionary by oc2 of the various memop bit widths. self.width_info_dict = width_info_dict def __str__(self): s = [] s.append("mode {}".format(self.mode)) s.append("asz {}".format(self.asz)) return ", ".join(s) def mem_bits(self, width_name, osz=0): wi = self.width_info_dict[width_name] indx = osz if osz else 32 return wi.widths[indx] def dump_output_file_names(fn, fe_list): ofn = os.path.join(fn) o = open(ofn,"w") for fe in fe_list: o.write(fe.full_file_name + "\n") o.close() def emit_encode_functions(args, env, xeddb, function_type_name='encode', fn_list_attr='encoder_functions', config_prefix='', srcdir='src', extra_headers=None): msge("Writing encoder '{}' functions to .c and .h files".format(function_type_name)) # group the instructions by encoding space to allow for # better link-time garbage collection. func_lists = collections.defaultdict(list) for ii in xeddb.recs: func_lists[ii.space].extend( getattr(ii, fn_list_attr) ) func_list = [] for space in func_lists.keys(): func_list.extend(func_lists[space]) config_descriptor = 'enc2-m{}-a{}'.format(env.mode, env.asz) fn_prefix = 'xed-{}{}'.format(config_prefix,config_descriptor) gen_src_dir = os.path.join(args.gendir, config_descriptor, srcdir) gen_hdr_dir = os.path.join(args.gendir, config_descriptor, 'hdr', 'xed') mbuild.cmkdir(gen_src_dir) mbuild.cmkdir(gen_hdr_dir) file_emitters = codegen.emit_function_list(func_list, fn_prefix, args.xeddir, gen_src_dir, gen_hdr_dir, other_headers = extra_headers, max_lines_per_file=15000, is_private_header=False, extra_public_headers=['xed/xed-interface.h']) return file_emitters def work(): arg_parser = argparse.ArgumentParser(description="Create XED encoder2") arg_parser.add_argument('-short-ud0', help='Encode 2-byte UD0 (default is long UD0 as implemented on modern Intel Core processors. Intel Atom processors implement short 2-byte UD0)', dest='short_ud0', action='store_true', default=False) arg_parser.add_argument('-m64', help='64b mode (default)', dest='modes', action='append_const', const=64) arg_parser.add_argument('-m32', help='32b mode', dest='modes', action='append_const', const=32) arg_parser.add_argument('-m16' , help='16b mode', dest='modes', action='append_const', const=16) arg_parser.add_argument('-a64', help='64b addressing (default)', dest='asz_list', action='append_const', const=64) arg_parser.add_argument('-a32', help='32b addressing', dest='asz_list', action='append_const', const=32) arg_parser.add_argument('-a16' , help='16b addressing', dest='asz_list', action='append_const', const=16) arg_parser.add_argument('-all', action="store_true", default=False, help='all modes and addressing') arg_parser.add_argument('-chk', action="store_true", default=False, help='Test checked interface') arg_parser.add_argument('--gendir', help='output directory, default: "obj"', default='obj') arg_parser.add_argument('--xeddir', help='XED source directory, default: "."', default='.') arg_parser.add_argument('--output-file-list', dest='output_file_list', help='Name of output file containing list of output files created. ' + 'Default: GENDIR/enc2-list-of-files.txt') args = arg_parser.parse_args() args.prefix = os.path.join(args.gendir,'dgen') if args.output_file_list == None: args.output_file_list = os.path.join(args.gendir, 'enc2-list-of-files.txt') def _mkstr(lst): s = [str(x) for x in lst] return ":".join(s) dbg_fn = os.path.join(args.gendir,'enc2out-m{}-a{}.txt'.format(_mkstr(args.modes), _mkstr(args.asz_list))) msge("Writing {}".format(dbg_fn)) set_dbg_output(open(dbg_fn,"w")) gen_setup.make_paths(args) msge('Reading XED db...') xeddb = read_xed_db.xed_reader_t(args.state_bits_filename, args.instructions_filename, args.widths_filename, args.element_types_filename, args.cpuid_filename, args.map_descriptions) width_info_dict = xeddb.get_width_info_dict() for k in width_info_dict.keys(): print("{} -> {}".format(k,width_info_dict[k])) # all modes and address sizes, filtered appropriately later if args.all: args.modes = [16,32,64] args.asz_list = [16,32,64] # if you just specify a mode, we supply the full set of address sizes if args.modes == [64]: if not args.asz_list: args.asz_list = [32,64] elif args.modes == [32]: if not args.asz_list: args.asz_list = [16,32] elif args.modes == [16]: if not args.asz_list: args.asz_list = [16,32] # default 64b mode, 64b address size if not args.modes: args.modes = [ 64 ] if not args.asz_list: args.asz_list = [ 64 ] for ii in xeddb.recs: prep_instruction(ii) def prune_asz_list_for_mode(mode,alist): '''make sure we only use addressing modes appropriate for our mode''' for asz in alist: if mode == 64: if asz in [32,64]: yield asz elif asz != 64: yield asz output_file_emitters = [] #extra_headers = ['xed/xed-encode-direct.h'] for mode in args.modes: for asz in prune_asz_list_for_mode(mode,args.asz_list): env = enc_env_t(mode, asz, width_info_dict, short_ud0=args.short_ud0) enc2test.set_test_gen_counters(env) env.tests_per_form = 1 env.test_checked_interface = args.chk msge("Generating encoder functions for {}".format(env)) for ii in xeddb.recs: # create encoder function. sets ii.encoder_functions create_enc_fn(env, ii) spew(ii) # create test(s) sets ii.enc_test_functions enc2test.create_test_fn_main(env, ii) # create arg checkers. sets ii.enc_arg_check_functions enc2argcheck.create_arg_check_fn_main(env, ii) fel = emit_encode_functions(args, env, xeddb, function_type_name='encode', fn_list_attr='encoder_functions', config_prefix='', srcdir='src') output_file_emitters.extend(fel) fel = emit_encode_functions(args, env, xeddb, function_type_name='encoder-check', fn_list_attr='enc_arg_check_functions', config_prefix='chk-', srcdir='src-chk', extra_headers = [ 'xed/xed-enc2-m{}-a{}.h'.format(env.mode, env.asz) ]) output_file_emitters.extend(fel) msge("Writing encoder 'test' functions to .c and .h files") func_list = [] iclasses = [] for ii in xeddb.recs: func_list.extend(ii.enc_test_functions) # this is for the validation test to check the iclass after decode n = len(ii.enc_test_functions) if n: iclasses.extend(n*[ii.iclass]) config_descriptor = 'enc2-m{}-a{}'.format(mode,asz) fn_prefix = 'xed-test-{}'.format(config_descriptor) test_fn_hdr='{}.h'.format(fn_prefix) enc2_fn_hdr='xed/xed-{}.h'.format(config_descriptor) enc2_chk_fn_hdr='xed/xed-chk-{}.h'.format(config_descriptor) gen_src_dir = os.path.join(args.gendir, config_descriptor, 'test', 'src') gen_hdr_dir = os.path.join(args.gendir, config_descriptor, 'test', 'hdr') mbuild.cmkdir(gen_src_dir) mbuild.cmkdir(gen_hdr_dir) file_emitters = codegen.emit_function_list(func_list, fn_prefix, args.xeddir, gen_src_dir, gen_hdr_dir, other_headers = [enc2_fn_hdr, enc2_chk_fn_hdr], max_lines_per_file=15000) output_file_emitters.extend(file_emitters) # emit a C file initializing two arrays: one array with # test function names, and another of the functdion names # as strings so I can find them when I need to debug them. fe = codegen.xed_file_emitter_t(args.xeddir, gen_src_dir, 'testtable-m{}-a{}.c'.format(mode,asz)) fe.add_header(test_fn_hdr) fe.start() array_name = 'test_functions_m{}_a{}'.format(mode,asz) fe.add_code_eol('typedef xed_uint32_t (*test_func_t)(xed_uint8_t* output_buffer)') fe.add_code('test_func_t {}[] = {{'.format(array_name)) for fn in func_list: fe.add_code('{},'.format(fn.get_function_name())) fe.add_code('0') fe.add_code('};') fe.add_code('char const* {}_str[] = {{'.format(array_name)) for fn in func_list: fe.add_code('"{}",'.format(fn.get_function_name())) fe.add_code('0') fe.add_code('};') fe.add_code('const xed_iclass_enum_t {}_iclass[] = {{'.format(array_name)) for iclass in iclasses: fe.add_code('XED_ICLASS_{},'.format(iclass)) fe.add_code('XED_ICLASS_INVALID') fe.add_code('};') fe.close() output_file_emitters.append(fe) gather_stats(xeddb.recs) dump_numbered_function_creators() dump_output_file_names( args.output_file_list, output_file_emitters ) return 0 if __name__ == "__main__": r = work() sys.exit(r)
intelxed/xed
pysrc/enc2gen.py
Python
apache-2.0
194,883
#!/usrbin/python #encoding:utf-8 ''' Author: wangxu Email: [email protected] 任务更新 ''' import sys reload(sys) sys.setdefaultencoding("utf-8") import logging import tornado.web import json import os CURRENTPATH = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(CURRENTPATH, '../../')) from job_define import Job #指标处理类 class JobCheckExistHandler(tornado.web.RequestHandler): #统一调用post方法 def get(self): self.post() #action为操作类型 def post(self): #任务 name = self.get_argument('name','') logging.info('----name:[%s]' % name) job = None try: job = Job.get_job_fromdb(name) except: pass if job==None: self.write('non_exist') else: self.write('exist')
cocofree/azkaban_assistant
schedule/webapp/handler/job_check_exist.py
Python
apache-2.0
868
############################################################################ # Copyright 2017 Albin Severinson # # # # 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. # ############################################################################ '''Statistics module ''' import math import random import numpy as np from pynumeric import numinv from functools import lru_cache def mode_from_delta_c(num_inputs=None, delta=None, c=None): '''compute mode from num_inputs, delta, and c''' mode = num_inputs / c / math.log(num_inputs / delta) / np.sqrt(num_inputs) return round(mode) def c_from_delta_mode(num_inputs=None, delta=None, mode=None): '''compute c from num_inputs, delta, and mode''' c = num_inputs / mode / math.log(num_inputs / delta) / np.sqrt(num_inputs) return c @lru_cache(maxsize=128) def avg_degree_from_delta_mode(num_inputs=None, delta=None, mode=None): '''compute average degree from delta and mode''' return Soliton(failure_prob=delta, symbols=num_inputs, mode=mode).mean() class Soliton(object): '''Robust Soliton distribution''' def __init__(self, delta=None, symbols=None, mode=None, failure_prob=None): '''initialize a distribution with some parameters args: delta: this parameter is proportional to the probability of decoding failure. specifically, it tunes the average degree. smaller delta increase the average degree and vice versa. symbols: number of input symbols. mode: the robust Soliton distribution adds a spike to the PDF of the ideal Soliton distribution. this spike is at degree == mode. failure_prob: deprecated in favour of the delta parameter. ''' assert 0 < symbols < float('inf') assert 0 < mode <= symbols if delta is not None: assert 0 < delta < 1 assert failure_prob is None, 'cannot set both delta and failure_prob' if failure_prob is not None: assert 0 < failure_prob < 1 assert delta is None, 'cannot set both delta and failure_prob' delta = failure_prob self.delta = delta self.symbols = symbols self.mode = np.round(mode) self.R = symbols / mode self.c = self.R / math.log(symbols / delta) / math.sqrt(symbols) self.beta = sum(self.tau(i) + self.rho(i) for i in range(1, symbols+1)) return def __repr__(self): dct = {'delta': self.delta, 'symbols': self.symbols, 'R': self.R, 'beta': self.beta, 'c': self.c} return str(dct) @lru_cache(maxsize=2048) def tau(self, i): '''added to the ideal distribution to make it robust.''' assert 0 < i <= self.symbols if i < self.mode: return 1 / (i * self.mode) elif i == self.mode: return math.log(self.R / self.delta) / self.mode else: return 0 @lru_cache(maxsize=2048) def rho(self, i): '''ideal Soliton distribution.''' assert 0 < i <= self.symbols if i == 1: return 1 / self.symbols else: return 1 / (i * (i - 1)) @lru_cache(maxsize=2048) def pdf(self, i): '''distribution PDF.''' assert 0 < i <= self.symbols return (self.tau(i) + self.rho(i)) / self.beta @lru_cache(maxsize=2048) def cdf(self, i): '''distribution CDF.''' assert 0 < i <= self.symbols return sum(self.pdf(x) for x in range(1, i+1)) def icdf(self, i): '''distribution inverse CDF.''' return numinv( fun=self.cdf, target=i, lower=1, upper=self.symbols ) @lru_cache(maxsize=4) def mean(self): return sum(i * self.pdf(i) for i in range(1, self.symbols+1)) def sample(self): '''draw a random sample from the distribution.''' ivalue = random.random() return self.icdf(ivalue) @lru_cache(maxsize=1024) def order_shiftexp_mean(total=None, order=None, parameter=None): '''shifted exponential order statistic mean args: total: total number of variables. order: statistic order. parameter: distribution parameter. returns: the average order-th value out of total values. ''' assert total % 1 == 0 assert order % 1 == 0 assert parameter is not None mean = 1 for i in range(total-order+1, total+1): mean += 1 / i mean *= parameter return mean @lru_cache(maxsize=1024) def order_shiftexp_variance(total=None, order=None, parameter=None): '''shifted exponential order statistic variance args: total: total number of variables. order: statistic order. parameter: distribution parameter. returns: the variance of the order-th value out of total values. ''' assert total % 1 == 0 assert order % 1 == 0 assert parameter is not None variance = 0 for i in range(total-order+1, total+1): variance += 1 / math.pow(i, 2) variance *= math.pow(parameter, 2) return variance class ShiftexpOrder(object): '''Shifted exponential order statistic distribution.''' def __init__(self, parameter, total, order): '''create new random variable args: total: total number of variables. order: statistic order. parameter: distribution parameter. ''' assert 0 < parameter < float('inf') assert 0 < total < float('inf') and total % 1 == 0 assert 0 < order <= total and order % 1 == 0 self.parameter = parameter self.total = total self.order = order self.beta = self.mean() / self.variance() self.alpha = self.mean() * self.beta return def pdf(self, value): '''probability density function.''' assert 0 <= value <= float('inf') return scipy.stats.gamma.pdf( value, self.alpha, scale=1/self.beta, loc=self.parameter ) def mean(self): '''return the expected value.''' return order_mean_shiftexp( self.total, self.order, self.parameter ) def variance(self): '''return the variance.''' return order_variance_shiftexp( self.total, self.order, self.parameter )
severinson/pyrateless
pyrateless/coding/stats.py
Python
apache-2.0
7,334