def __init__(self, cfg, options, datastore):
        """Initialize an OSMFrontEnd.

        Parameters:

        config          Configuration information.
        options         Command line options.
        datastore       Datastore in use.
        """

        osm_api_version = cfg.get(C.FRONT_END, C.API_VERSION)

        # Link URLs to their handlers.
        application = tornado.web.Application([
            (r"/api/%s/map" % osm_api_version, MapHandler,
             dict(cfg=cfg, datastore=datastore)),
            (r"/api/%s/capabilities" % osm_api_version, CapabilitiesHandler,
             dict(cfg=cfg)),
            (osm_api_version % r"/api/%s/changeset/([0-9]+)/close",
             NotImplementedHandler, dict(cfg=cfg)),
            (r"/api/%s/changeset/([0-9]+)/download" % osm_api_version,
             NotImplementedHandler, dict(cfg=cfg)),
            (r"/api/%s/changeset/([0-9]+)/expand_bbox" % osm_api_version,
             NotImplementedHandler, dict(cfg=cfg)),
            (r"/api/%s/changeset/([0-9]+)/upload" % osm_api_version,
             NotImplementedHandler, dict(cfg=cfg)),
            (r"/api/%s/changesets" % osm_api_version,
             NotImplementedHandler, dict(cfg=cfg)),
            (r"/api/%s/node/([0-9]+)/ways" % osm_api_version,
             OsmWaysForNodeHandler, dict(datastore=datastore)),
            (r"/api/%s/(nodes|ways|relations)" % osm_api_version,
             OsmMultiElementHandler, dict(datastore=datastore)),
            (r"/api/%s/(node|way|relation)/create" % osm_api_version,
             ReadOnlyHandler, dict(cfg=cfg)),
            (r"/api/%s/(node|way|relation)/([0-9]+)/history" %
             osm_api_version, NotImplementedHandler,
             dict(cfg=cfg)),
            (r"/api/%s/(node|way|relation)/([0-9]+)/([0-9]+)" %
             osm_api_version, NotImplementedHandler,
             dict(cfg=cfg)),
            (r"/api/%s/(node|way|relation)/([0-9]+)/relations" %
             osm_api_version, OsmElementRelationsHandler,
             dict(datastore=datastore)),
            (r"/api/%s/(changeset|node|way|relation)/([0-9]+)" %
             osm_api_version, OsmElementHandler, dict(datastore=datastore)),
            (r"/api/%s/(way|relation)/([0-9]+)/full" % osm_api_version,
             OsmFullQueryHandler, dict(datastore=datastore)),
            (r"/api/capabilities", CapabilitiesHandler, dict(cfg=cfg)),
            (r"/", RootHandler, dict(cfg=cfg))
        ])

        self._application = application
        self._config = cfg
        self._datastore = datastore
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/frontend/fe.py/OSMFrontEndServer.__init__/swapped operands of `%`