45e62d2ce97bba98293e3202795d94ecffd38b07,src/fonduer/utils/udf.py,UDFRunner,apply_mt,#UDFRunner#Any#Any#,86
Before Change
// 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:
y = out_queue.get()
After Change
if docs_added < total_count:
in_queue.put(next(xs_generator))
docs_added += 1
if docs_added == total_count:
in_queue.put(UDF.QUEUE_CLOSED)
docs_added += 1
y = out_queue.get()
// Update progress bar whenever an item is processed
if y == UDF.TASK_DONE:
In pattern: SUPERPATTERN
Frequency: 3
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: stratosphereips/StratosphereLinuxIPS
Commit Name: 2db1d961524acdda598c675cf9eb2e2b023fb7d2
Time: 2019-01-26
Author: eldraco@gmail.com
File Name: portScanDetectorProcess.py
Class Name: PortScanProcess
Method Name: run
Project Name: vacancy/Synchronized-BatchNorm-PyTorch
Commit Name: 3b47fa5cc3ffd0df6d5cd6b64de1d81b915453d8
Time: 2018-01-26
Author: maojiayuan@gmail.com
File Name: sync_batchnorm/sync_manager.py
Class Name: SyncManager
Method Name: collect