def get_maxrate(ratelimits, size):
    """
    Returns number of requests allowed per second for given size.
    """
    last_func = None
    if size:
        size = int(size)
        for ratesize, rate, func in ratelimits:
            if size in ratesize:
                break
            last_func = func
        if last_func:
            return last_func(size)
    return None
dataset/ETHPy150Open openstack/swift/swift/common/middleware/ratelimit.py/get_maxrate/operator `<` -> `in`