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

Before Change


                executor = cf.ProcessPoolExecutor(max_workers=prefetch)   // pylint: disable=redefined-variable-type
            else:
                raise ValueError("target should be one of ["threads", "mpc"]")
            futures = []
            for batch in batch_generator:
                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


            else:
                raise ValueError("target should be one of ["threads", "mpc"]")

            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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: calico/basenji
Commit Name: 3f64cab25b48c01711825de13940ffb81ad4d74b
Time: 2018-11-19
Author: drk@calicolabs.com
File Name: bin/basenji_train2.py
Class Name:
Method Name: run


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 0f942a08943b17c552d21256bbcf2115fd5c8afb
Time: 2017-06-28
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QABid.py
Class Name: QA_QAMarket_bid
Method Name: __init__


Project Name: automl/auto-sklearn
Commit Name: 679e77b78f7ba906cd2e6aa18366fa8facd153db
Time: 2017-02-11
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_evaluation/test_test_evaluator.py
Class Name: TestEvaluator_Test
Method Name: test_datasets