c8a0366e929578b4d87024dc7f57b30dd873a87d,test/test_job_queue.py,,,#,31

Before Change


for i in range(1000):
    event_queue.put({"fn": print(datetime.datetime.now())})

    event_queue.put({"fn": print("jobs---id:"+str(i))})
    event_queue.put({"fn": print("\n")})
    time.sleep(random.randint(1,5)/5)

After Change


    
    time.sleep(random.randint(1,5)/5)
print(event_engine.is_alive())
for i in range(2):
    print(threading.enumerate())
    time.sleep(1)

event_engine.queue.put({"fn": job(i),"t":i})
print(event_engine.queue.queue)
print(event_engine.is_alive())
print(threading.enumerate())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: c8a0366e929578b4d87024dc7f57b30dd873a87d
Time: 2017-07-03
Author: yutiansut@qq.com
File Name: test/test_job_queue.py
Class Name:
Method Name:


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: tensorflow/models
Commit Name: ec0d43baf52f6d9a7f41595d00f57c229a89ac6d
Time: 2019-01-07
Author: taylorrobie@google.com
File Name: official/recommendation/data_pipeline.py
Class Name: DatasetManager
Method Name: data_generator