def __init__(self, repositories=None, **kw):
        scheduler = CachedScheduler()
        repository_by_name = collections.defaultdict(list)
        super(Pool, self).__init__(self, _scheduler=scheduler,
                _repository_by_name=repository_by_name, **kw)
        if repositories is None:
            repositories = []

        # provide.name -> package mapping
        self._packages_by_name = collections.defaultdict(list)

        if len(repositories) > 0:
            for repository in repositories:
                self.add_repository(repository)
dataset/ETHPy150Open enthought/depsolver/depsolver/pool.py/Pool.__init__/original