f655fd8ff333159ffa88e1dfbcf2e32f706c9d97,dataset/pipeline.py,Pipeline,run,#Pipeline#Any#Any#Any#Any#,83

Before Change


                futures.append(executor.submit(self._exec_all_actions, batch, True))

            // wait until all batches have been processed
            _ = [future.result() for future in futures]
        else:
            self._run_seq(batch_generator)
        return self

After Change


            self.prefetch_queue = q.Queue(maxsize=prefetch)
            service_executor = cf.ThreadPoolExecutor(max_workers=2)
            service_executor.submit(self._put_batches_into_queue, batch_generator)
            future = service_executor.submit(self._run_batches_from_queue)
            // wait until all batches have been processed
            _ = future.result()            
        else:
            self.prefetch_queue = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: analysiscenter/batchflow
Commit Name: f655fd8ff333159ffa88e1dfbcf2e32f706c9d97
Time: 2017-04-19
Author: rhudor@gmail.com
File Name: dataset/pipeline.py
Class Name: Pipeline
Method Name: run


Project Name: studioml/studio
Commit Name: 13986978d4545aa429a7fc233d8e39718d52e255
Time: 2020-08-11
Author: andrei.denissov@cognizant.com
File Name: studio/keyvalue_provider.py
Class Name: KeyValueProvider
Method Name: checkpoint_experiment


Project Name: dask/distributed
Commit Name: d24d62f1dafa482b04209c1ef25a2305d6c41539
Time: 2021-02-24
Author: crusaderky@gmail.com
File Name: distributed/tests/test_threadpoolexecutor.py
Class Name:
Method Name: test_secede_rejoin_busy