

def _build_rate_limits(self, rate_limits):
    limits = []
    for rate_limit in rate_limits:
        _rate_limit_key = None
        _rate_limit = self._build_rate_limit(rate_limit)
        for limit in limits:
            if ((limit['uri'] == limits['URI']) and (limit['regex'] == rate_limit['regex'])):
                _rate_limit_key = limit
                break
        if (not _rate_limit_key):
            _rate_limit_key = {
                'uri': rate_limit['URI'],
                'regex': rate_limit['regex'],
                'limit': [],
            }
            limits.append(_rate_limit_key)
        _rate_limit_key['limit'].append(_rate_limit)
    return limits

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/views/limits.py ViewBuilder._build_rate_limits/VarMisuse@52/79 `rate_limit`->`limits`