e1d39a4c9158c9a9db1218cb5be9946152e2ca1b,src/fetch_cnpj_info.py,,,#,137

Before Change


    print("%i CNPJ\"s to be fetched" % len(cnpj_list_to_import))

    with futures.ThreadPoolExecutor(max_workers=10) as executor:
        future_to_cnpj_info = dict((executor.submit(fetch_cnpj_info, cnpj), cnpj)
                                   for cnpj in cnpj_list)

        for future in futures.as_completed(future_to_cnpj_info):

After Change



    print("%i CNPJ\"s to be fetched" % len(cnpj_list_to_import))

    for cnpj in cnpj_list[:3]:
        result = fetch_cnpj_info(cnpj)
        if result != None and result["status"] == "OK":
            info_dataset = info_dataset.append(result, ignore_index=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: e1d39a4c9158c9a9db1218cb5be9946152e2ca1b
Time: 2017-04-14
Author: marcus.rehm@gmail.com
File Name: src/fetch_cnpj_info.py
Class Name:
Method Name:


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: fd138c8099c2df5e637e31d941dbe12b41a30928
Time: 2019-02-07
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAMarket.py
Class Name: QA_Market
Method Name: _settle


Project Name: ilastik/ilastik
Commit Name: 8822631fcc8531f63e3b4f6e0b294432d90d7d70
Time: 2017-04-07
Author: jimmycc80@hotmail.com
File Name: ilastik/applets/objectClassification/objectClassificationGui.py
Class Name: LabelAssistDialog
Method Name: _triggerTableUpdate