def __init__(self, application, service_host=None):
        if not service_host:
            #TODO(gundlach): These limits were based on limitations of Cloud
            #Servers.  We should revisit them in Nova.
            self.limiter = Limiter(limits={
                    'DELETE': (100, PER_MINUTE),
                    'PUT': (10, PER_MINUTE),
                    'POST': (10, PER_MINUTE),
                    'POST servers': (50, PER_DAY),
                    'GET changes-since': (3, PER_MINUTE),
                })
        else:
            self.limiter = WSGIAppProxy(service_host)
        super(RateLimitingMiddleware, self).__init__(application)
Return a key suitable for sorting between networks and addresses.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/ratelimiting/__init__.py/RateLimitingMiddleware.__init__--crossover with--dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/ipaddress.py/get_mixed_type_key