dc782c0cca12e5bb54ef063544d8caf5a9912ec0,tensorflow_datasets/core/download/downloader.py,_Downloader,_sync_file_copy,#_Downloader#Any#Any#,140

Before Change


    tf.io.gfile.copy(filepath, out_path)
    hexdigest, size = utils.read_checksum_digest(
        out_path, checksum_cls=self._checksumer)
    return hexdigest, size

  def _sync_download(self, url, destination_path):
    Synchronous version of `download` method.

After Change


    tf.io.gfile.copy(filepath, out_path)
    hexdigest, size = utils.read_checksum_digest(
        out_path, checksum_cls=self._checksumer)
    return checksums_lib.UrlInfo(checksum=hexdigest, size=size)

  def _sync_download(
      self, url: str, destination_path: str) -> checksums_lib.UrlInfo:
    Synchronous version of `download` method.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorflow/datasets
Commit Name: dc782c0cca12e5bb54ef063544d8caf5a9912ec0
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/downloader.py
Class Name: _Downloader
Method Name: _sync_file_copy


Project Name: tensorflow/datasets
Commit Name: dc782c0cca12e5bb54ef063544d8caf5a9912ec0
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/downloader.py
Class Name: _Downloader
Method Name: _sync_download


Project Name: tensorflow/datasets
Commit Name: dc782c0cca12e5bb54ef063544d8caf5a9912ec0
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/downloader.py
Class Name: _Downloader
Method Name: _sync_kaggle_download