064c3b61b5c206f2aadadeecf7b3f1464afa6cf4,tests/integration_tests/test_experiment.py,,delete_temporary_data,#Any#,78
Before Change
if os.path.exists(csv_path):
os.remove(csv_path)
json_path = csv_path.replace("csv", "json")
if os.path.exists(json_path):
os.remove(json_path)
hdf5_path = csv_path.replace("csv", "hdf5")
After Change
if os.path.exists(csv_path):
os.remove(csv_path)
json_path = os.path.splitext(csv_path)[0] + ".json"
if os.path.exists(json_path):
os.remove(json_path)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: uber/ludwig
Commit Name: 064c3b61b5c206f2aadadeecf7b3f1464afa6cf4
Time: 2019-02-19
Author: hemchander.23@gmail.com
File Name: tests/integration_tests/test_experiment.py
Class Name:
Method Name: delete_temporary_data
Project Name: cesium-ml/cesium
Commit Name: 820de79517aaed577f9af9131f5ec87cd432f04a
Time: 2015-02-06
Author: a.crellinquick@gmail.com
File Name: mltsp/featurize.py
Class Name:
Method Name: shorten_fname
Project Name: uber/ludwig
Commit Name: 064c3b61b5c206f2aadadeecf7b3f1464afa6cf4
Time: 2019-02-19
Author: hemchander.23@gmail.com
File Name: ludwig/features/image_feature.py
Class Name: ImageBaseFeature
Method Name: add_feature_data