e4d5b98f9d2ef79279300d1074cbaacde8e816dc,src/fetch_sex_places.py,,sex_places_neraby,#Any#,207
Before Change
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:
contents = write_queue.get(timeout=1)
if contents:
print(contents, file=output)
except:
pass
place_search.join()
def sex_place_nearby(company):
After Change
with Pool(processes=4) as pool:
for place in pool.imap(sex_place_nearby, tuple(dicts)):
if place:
yield csv_line_as_string(place)
def csv_line_as_string(company=None, **kwargs):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances Project Name: okfn-brasil/serenata-de-amor
Commit Name: e4d5b98f9d2ef79279300d1074cbaacde8e816dc
Time: 2016-11-20
Author: cuducos@gmail.com
File Name: src/fetch_sex_places.py
Class Name:
Method Name: sex_places_neraby
Project Name: pantsbuild/pants
Commit Name: 79ba58636288f95be1a156f02623d46b0eb242ea
Time: 2019-09-07
Author: ericarellano@me.com
File Name: src/python/pants/core_tasks/generate_pants_ini.py
Class Name: GeneratePantsIni
Method Name: console_output
Project Name: dask/distributed
Commit Name: ed2adf554fc818ec8d4d5a6eac393dcd033e023c
Time: 2018-05-16
Author: bmaisonn@gmail.com
File Name: distributed/tests/test_worker.py
Class Name:
Method Name: test_upload_egg
Project Name: pantsbuild/pants
Commit Name: 78df78164180f1423d6dcbd9f8e5a2961bc248a8
Time: 2019-01-03
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/python/pants_requirement_integration_test_base.py
Class Name: PantsRequirementIntegrationTestBase
Method Name: _unstable_pants_version
Project Name: allenai/allennlp
Commit Name: 3aa33139216ff3f597fe2630d44aa69afe4d97a7
Time: 2018-01-17
Author: markn@allenai.org
File Name: allennlp/data/dataset_readers/dataset_utils/ontonotes.py
Class Name: Ontonotes
Method Name: sentence_iterator