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

Before Change


                                   for cnpj in cnpj_list)

        for future in futures.as_completed(future_to_cnpj_info):
            cnpj = future_to_cnpj_info[future]
            if future.exception() is not None:
                print("%r raised an exception: %s" % (cnpj, future.exception()))
            else:
                write_cnpj_info(cnpj, future.result())

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)

    info_dataset.to_csv(INFO_DATASET_PATH,
                        compression="xz",
                        encoding="utf-8",
                        index=False)

    if len(filesNotFound) > 0:
        print("The following files were not found:")
        for file in filesNotFound:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: CNuge/kaggle-code
Commit Name: 5980329d949dd0d9764357a70c36da44645ce503
Time: 2018-10-18
Author: nugentc@uoguelph.ca
File Name: google_analytics/model_template.py
Class Name:
Method Name:


Project Name: CNuge/kaggle-code
Commit Name: 5980329d949dd0d9764357a70c36da44645ce503
Time: 2018-10-18
Author: nugentc@uoguelph.ca
File Name: google_analytics/xgb_predict_spending.py
Class Name:
Method Name: