67fa4171fffad014ef7f072ef56426e52080fcb5,src/fetch_suspicious_places.py,,search_suspicious_around_companies,#Any#,141
Before Change
rows = companies.to_dict("records")
total = len(rows)
count = 0
with Pool(processes=4) as pool:
for company in pool.imap(search_suspicious_around_company, rows):
count += 1
print_status(total, count)
if company:
write_csv(company)
def search_suspicious_around_company(company):
:param company: (dict)
:return: suspect
After Change
q.put(csv_line(search_suspicious_around_company(company)))
write_queue = Queue()
place_search = Process(target=make_queue, args=(write_queue, companies))
place_search.start()
with lzma.open(OUTPUT, "at") as output:
while place_search.is_alive() or not write_queue.empty():
try:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 67fa4171fffad014ef7f072ef56426e52080fcb5
Time: 2016-11-10
Author: cuducos@gmail.com
File Name: src/fetch_suspicious_places.py
Class Name:
Method Name: search_suspicious_around_companies
Project Name: descarteslabs/descarteslabs-python
Commit Name: 9867d46676b48fbf23b8998a0a6f5269cbb0bace
Time: 2019-08-21
Author: 13060286+stephaniegott@users.noreply.github.com
File Name: descarteslabs/workflows/interactive/layer_controller_row.py
Class Name: LayerControllerRow
Method Name: autoscale
Project Name: eth-cscs/reframe
Commit Name: 95cd9f333ee123a1c1565ad093c1c337c8587772
Time: 2020-02-25
Author: manitaras@cscs.ch
File Name: unittests/test_policies.py
Class Name: TestSerialExecutionPolicy
Method Name: test_sigterm