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)
if len(filesNotFound) > 0:
print("The following files were not found:")
for file in filesNotFound:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: okfn-brasil/serenata-de-amor
Commit Name: 3c626088a7174c28d1b1a093143c4ca7b2b154fc
Time: 2016-11-25
Author: iirineu@gmail.com
File Name: src/fetch_yelp_info.py
Class Name:
Method Name:
Project Name: ina-foss/inaSpeechSegmenter
Commit Name: 4d8a1c5fd39f3189424479f6f463f0c5d4f567b7
Time: 2019-10-14
Author: ddoukhan@ina.fr
File Name: inaSpeechSegmenter/segmenter.py
Class Name:
Method Name: seg2csv