def __init__(self, available_urls, max_failures=MAX_FAILURES):

    if len(available_urls) == 0:
      raise ValueError('BestUrlSelector requires at least one url to select from.')

    self.parsed_urls = deque(self._parse_urls(available_urls))
    self.unsuccessful_calls = Counter()
    self.max_failures = max_failures
Helper method to return all tokens in an extent.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/cache/pinger.py/BestUrlSelector.__init__--crossover with--dataset/ETHPy150Open punchagan/cinspect/cinspect/vendor/clang/cindex.py/TokenGroup.get_tokens