45e62d2ce97bba98293e3202795d94ecffd38b07,src/fonduer/utils/udf.py,UDFRunner,apply_mt,#UDFRunner#Any#Any#,86

Before Change


            udf.start()

        // Fill queue with docs; progress bar will not be updated until this is done
        for x in xs:
            in_queue.put(x)
        in_queue.put(UDF.QUEUE_CLOSED)

        while any([udf.is_alive() for udf in self.udfs]) and count_parsed < total_count:

After Change



        // Fill queue with docs; progress bar will not be updated until this is done
        docs_added = 0
        xs_generator = xs.generate()
        for _ in range(min(parallelism, total_count)):
            in_queue.put(next(xs_generator))
            docs_added += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: HazyResearch/fonduer
Commit Name: 45e62d2ce97bba98293e3202795d94ecffd38b07
Time: 2018-09-04
Author: jrausch@inf.ethz.ch
File Name: src/fonduer/utils/udf.py
Class Name: UDFRunner
Method Name: apply_mt


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 906ba34449e0f19b7f3b674d5e005a1903d0642e
Time: 2017-11-10
Author: carloderamo@gmail.com
File Name: tests/mountain_car/mountain_car.py
Class Name:
Method Name: experiment


Project Name: PyMVPA/PyMVPA
Commit Name: 37904e8c5925ea97f60920737924a437ce3dcafb
Time: 2016-08-22
Author: debian@onerussian.com
File Name: mvpa2/tests/test_generators.py
Class Name:
Method Name: test_attrpermute


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 906ba34449e0f19b7f3b674d5e005a1903d0642e
Time: 2017-11-10
Author: carloderamo@gmail.com
File Name: examples/mountain_car.py
Class Name:
Method Name: experiment