e4d5b98f9d2ef79279300d1074cbaacde8e816dc,src/fetch_sex_places.py,,sex_places_neraby,#Any#,207

Before Change



    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:

After Change


    
    dicts = map(lambda x: dict(x._asdict()), companies.itertuples(index=True))
    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):
    
    Receives a given company (dict) and returns a string representnig this
    company data in a CSV format. CSV headers are defined in `fieldnames`.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: graphbrain/graphbrain
Commit Name: 30b3deb54d5420a55d138f176aee9fe857c02f4b
Time: 2020-08-19
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/agent.py
Class Name: Agent
Method Name: run


Project Name: HazyResearch/fonduer
Commit Name: 0de3c091c75e36ffb4c12a2048110df37cafb644
Time: 2018-09-20
Author: lwhsiao@stanford.edu
File Name: src/fonduer/candidates/mentions.py
Class Name: Ngrams
Method Name: apply