b3e1438a8271a10f7b6d0069a692c7b534d69c89,tensorflow_datasets/core/download/download_manager_test.py,DownloadManagerTest,test_extract_twice_parallel,#DownloadManagerTest#,183

Before Change


    if sys.version_info[0] > 2:
      self.assertTrue(res1 is res2)
    else:
      self.assertTrue(res1._promise is res2._promise)
    extracted_new.set()
    self.assertEqual(res1.get(), "/extract_dir/TAR.foo")
    self.assertEqual(1, self.extractor_extract.call_count)

After Change


        _get_promise_on_event("/extract_dir/TAR.foo"))
    manager = self._get_manager()
    extracted_new.set()
    out1 = manager.extract(["/dl_dir/foo.tar", "/dl_dir/foo.tar"])
    out2 = manager.extract("/dl_dir/foo.tar")
    self.assertEqual(out1[0], "/extract_dir/TAR.foo")
    self.assertEqual(out1[1], "/extract_dir/TAR.foo")
    self.assertEqual(out2, "/extract_dir/TAR.foo")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/datasets
Commit Name: b3e1438a8271a10f7b6d0069a692c7b534d69c89
Time: 2019-01-18
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_extract_twice_parallel


Project Name: tyarkoni/pliers
Commit Name: e98d99e745b61af768bd30fd9bad7c892eefbe17
Time: 2016-10-20
Author: quinten.mcnamara@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_clarifaiAPI_extractor


Project Name: tyarkoni/pliers
Commit Name: c19000b012bba5fa7ae54fadc953f5b679dead4f
Time: 2016-10-20
Author: quinten.mcnamara@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_optical_flow_extractor