04ea66014834a18a61b4a0daa6af4fa56381ac5e,tensorflow_datasets/core/download/download_manager_test.py,DownloadManagerTest,test_force_download_and_extract,#DownloadManagerTest#,225

Before Change



  def test_force_download_and_extract(self):
    url = "http://a/b.tar.gz"
    url_sha = _sha256(url)
    // resource was already downloaded / extracted:
    self.existing_paths = ["/dl_dir/%s" % url_sha,
                           "/extract_dir/TAR_GZ.%s" % url_sha]
    self.file_names[url_sha] = "b.tar.gz"

After Change



  def test_force_download_and_extract(self):
    url = "http://a/b.tar.gz"
    resource_ = resource_lib.Resource(url=url)
    resource_.sha256 = _sha256("content of file")
    // resource was already downloaded / extracted:
    self.existing_paths = ["/dl_dir/%s" % resource_.fname,
                           "/extract_dir/TAR_GZ.%s" % resource_.fname]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorflow/datasets
Commit Name: 04ea66014834a18a61b4a0daa6af4fa56381ac5e
Time: 2019-01-15
Author: pierrot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_force_download_and_extract


Project Name: tensorflow/datasets
Commit Name: 04ea66014834a18a61b4a0daa6af4fa56381ac5e
Time: 2019-01-15
Author: pierrot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_download


Project Name: tensorflow/datasets
Commit Name: 04ea66014834a18a61b4a0daa6af4fa56381ac5e
Time: 2019-01-15
Author: pierrot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_download_and_extract_already_downloaded