

def set_rate_limiting(rate_limit, min_wait=timedelta(milliseconds=50)):
    '\n  Enable or disable rate limiting on requests to the Mediawiki servers.\n  If rate limiting is not enabled, under some circumstances (depending on\n  load on Wikipedia, the number of requests you and other `wikipedia` users\n  are making, and other factors), Wikipedia may return an HTTP timeout error.\n\n  Enabling rate limiting generally prevents that issue, but please note that\n  HTTPTimeoutError still might be raised.\n\n  Arguments:\n\n  * rate_limit - (Boolean) whether to enable rate limiting or not\n\n  Keyword arguments:\n\n  * min_wait - if rate limiting is enabled, `min_wait` is a timedelta describing the minimum time to wait before requests.\n         Defaults to timedelta(milliseconds=50)\n  '
    global RATE_LIMIT
    global RATE_LIMIT_MIN_WAIT
    global RATE_LIMIT_LAST_CALL
    RATE_LIMIT = rate_limit
    if (not rate_limit):
        RATE_LIMIT_MIN_WAIT = None
    else:
        RATE_LIMIT_MIN_WAIT = RATE_LIMIT
    RATE_LIMIT_LAST_CALL = None

dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/wikipedia.py set_rate_limiting/VarMisuse@53/370 `min_wait`->`RATE_LIMIT`