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

Before Change



        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())

    import_cnpj_infos(info_dataset, info_partners_dataset)

    if len(filesNotFound) > 0:
        print("The following files were not found:")

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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: keras-team/keras
Commit Name: 00135a70697dc9b4611971e5833e2d84501c3da7
Time: 2021-03-23
Author: scottzhu@google.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: train_step


Project Name: keras-team/keras
Commit Name: 00135a70697dc9b4611971e5833e2d84501c3da7
Time: 2021-03-23
Author: scottzhu@google.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: test_step