3c626088a7174c28d1b1a093143c4ca7b2b154fc,src/fetch_yelp_info.py,,,#,64
Before Change
fetched_companies.append(fetched_company)
else:
print("Not found")
if fetched_companies:
print("Saving it all!")
with open(FOURSQUARE_DATASET_PATH, "w") as outfile:
json.dump(fetched_companies, outfile)
else:
print("Nothing to save.")
After Change
print("Successfuly matched %s" % fetched_company["name"])
fetched_company["scraped_at"] = datetime.datetime.utcnow().isoformat()
fetched_company["cnpj"] = company["cnpj"]
fetched_companies = fetched_companies.append(pd.Series(fetched_company),
ignore_index=True)
else:
print("Not found")
fetched_companies.to_csv(YELP_DATASET_PATH, compression="xz", index=False)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
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: zake7749/PTT-Chat-Generator
Commit Name: fe87da76b6b7e54e766ac238f4b5b46d2f578493
Time: 2016-10-20
Author: zake7749@gmail.com
File Name: filter.py
Class Name: ArticleFilter
Method Name: load_processed_corpus
Project Name: zake7749/PTT-Chat-Generator
Commit Name: fe87da76b6b7e54e766ac238f4b5b46d2f578493
Time: 2016-10-20
Author: zake7749@gmail.com
File Name: filter.py
Class Name: ArticleFilter
Method Name: generate_corpus