67fa4171fffad014ef7f072ef56426e52080fcb5,src/fetch_suspicious_places.py,,search_suspicious_around_companies,#Any#,141
Before Change
:param companies: pandas dataframe.
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
company = dict(company._asdict()) // _asdict() gives OrderedDict
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():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: 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
Project Name: HazyResearch/fonduer
Commit Name: 6ca60969b6893268680d4386e2f22cdc3bc3c405
Time: 2018-09-05
Author: jrausch@inf.ethz.ch
File Name: src/fonduer/utils/udf.py
Class Name: UDFRunner
Method Name: apply_mt