adc95b228724bd8ad6a280785b7bfeb90dfbae16,tensorflow_datasets/core/download/download_manager.py,DownloadManager,extract,#DownloadManager#Any#Any#,294

Before Change


    Returns:
      `Dict[str, str]` or `str`: {"name": "out_path"} or "out_path".
    
    if isinstance(paths, dict):  // A dict of paths, `str` or `ExtractInfo` objs.
      paths = {name: self._extract(path) for name, path in paths.items()}
      prom = promise.Promise.for_dict(paths)
    else:  // A single path, `str` or `ExtractInfo` object.
      prom = self._extract(paths)
    return async_ and prom or prom.get()

  def download_and_extract(self, url_extract_info, async_=False):
    Downlaod and extract given resources, returns path or {name: path}.

After Change


      extracted_path(s): `str`, The extracted paths matching the given input
        path_or_paths
    
    return _map_promise(self._extract, path_or_paths, async_=async_)

  def download_and_extract(self, url_or_urls, async_=False):
    Downlaod and extract given resources.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 22

Instances


Project Name: tensorflow/datasets
Commit Name: adc95b228724bd8ad6a280785b7bfeb90dfbae16
Time: 2018-12-07
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager.py
Class Name: DownloadManager
Method Name: extract


Project Name: tensorflow/datasets
Commit Name: adc95b228724bd8ad6a280785b7bfeb90dfbae16
Time: 2018-12-07
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager.py
Class Name: DownloadManager
Method Name: download


Project Name: tensorflow/datasets
Commit Name: adc95b228724bd8ad6a280785b7bfeb90dfbae16
Time: 2018-12-07
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager.py
Class Name: DownloadManager
Method Name: download_and_extract


Project Name: tensorflow/datasets
Commit Name: adc95b228724bd8ad6a280785b7bfeb90dfbae16
Time: 2018-12-07
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager.py
Class Name: DownloadManager
Method Name: extract