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

Before Change


            try:
                contents = write_queue.get(timeout=1)
                if contents:
                    print(contents, file=output)
            except:
                pass

    place_search.join()

After Change


    Genarator of CSV lines (as strings) to be saved as the results.
    :param companies: pandas dataframe.
    
    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: 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: deepmipt/DeepPavlov
Commit Name: 3b3f8bd00c463e441600673141ff2de608880c9a
Time: 2018-02-05
Author: yoptar@gmail.com
File Name: deeppavlov/datasets/dialog_dataset.py
Class Name: DialogDataset
Method Name: batch_generator


Project Name: explosion/spaCy
Commit Name: 01858e9b5972a8c1dec86f88eef3f17fea63cdc6
Time: 2017-09-20
Author: honnibal+gh@gmail.com
File Name: examples/multi_word_matches.py
Class Name:
Method Name: get_matches