

def get_maxrate(ratelimits, size):
    '\n    Returns number of requests allowed per second for given size.\n    '
    last_func = None
    if size:
        size = int(size)
        for (ratesize, rate, func) in ratelimits:
            if (size < ratesize):
                break
            last_func = func
        if ratesize:
            return last_func(size)
    return None

dataset/ETHPy150Open openstack/swift/swift/common/middleware/ratelimit.py get_maxrate/VarMisuse@61/100 `last_func`->`ratesize`