3797d7bf2c953b0082bd62e2a98841f737da5b53,measurements/rename_measurements.py,,main,#,14

Before Change


            dir_path = os.path.abspath(os.path.join(dir_path, os.pardir, true_name))
            new_path = os.path.join(dir_path, f"{true_name}.csv")
            os.makedirs(dir_path, exist_ok=True)
            if new_path != fp:
                print(f"Moved "{os.path.relpath(fp, DIR_PATH)}" to "{os.path.relpath(new_path, DIR_PATH)}"")
                shutil.move(fp, new_path)


if __name__ == "__main__":
    main()

After Change


            new_dir_path = os.path.abspath(os.path.join(dir_path, os.pardir, true_name))
            new_file_path = os.path.join(new_dir_path, f"{true_name}.csv")
            os.makedirs(new_dir_path, exist_ok=True)
            if os.path.normcase(os.path.normpath(new_file_path)) != os.path.normcase(os.path.normpath(fp)):
                print(f"Moved "{os.path.relpath(fp, DIR_PATH)}" to "{os.path.relpath(new_file_path, DIR_PATH)}"")
                shutil.move(fp, new_file_path)
                try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jaakkopasanen/AutoEq
Commit Name: 3797d7bf2c953b0082bd62e2a98841f737da5b53
Time: 2020-03-22
Author: jaakko.o.pasanen@gmail.com
File Name: measurements/rename_measurements.py
Class Name:
Method Name: main


Project Name: pantsbuild/pants
Commit Name: 1f680bababfef0c67c287dc17a4f66230a583c01
Time: 2014-01-02
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/targets/sources.py
Class Name: SourceRoot
Method Name: _register


Project Name: tensorflow/datasets
Commit Name: 7f2ac0bab847a6cc50d27f7ed0ca085d9169f1d5
Time: 2019-08-07
Author: jpuigcerver@google.com
File Name: tensorflow_datasets/image/sun_test.py
Class Name:
Method Name: