7eb019d10d9a603e5f2b29300fa2d811e197d529,sos/__main__.py,,cmd_remove,#Any#Any#,415

Before Change


                        if os.path.isdir(d):
                            shutil.rmtree(d)
                        else:
                            os.unlink(d)
                else:
                    print("Do not remove {} with tracked file because it is not empty".format(d))
    elif args.untracked:
        for f in specified_untracked_files:

After Change


        for f in specified_tracked_files:
            if args.__dryrun__:
                if args.tracked:
                    if args.signature:
                        print("Would remove signature of tracked file {}".format(f))
                    else:
                        print("Would remove tracked file {} and its signature".format(f))
            else:
                if args.signature:
                    FileTarget(f).remove("signature")
                else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: vatlab/SoS
Commit Name: 7eb019d10d9a603e5f2b29300fa2d811e197d529
Time: 2017-02-10
Author: bpeng@mdanderson.org
File Name: sos/__main__.py
Class Name:
Method Name: cmd_remove


Project Name: pantsbuild/pants
Commit Name: fd1456ac36e0a1ebfb800c9593f1540858ca7bea
Time: 2015-07-17
Author: kwilson@twopensource.com
File Name: src/python/pants/backend/core/tasks/reporting_server.py
Class Name: KillServer
Method Name: execute


Project Name: EducationalTestingService/skll
Commit Name: 7a70cd41ed1099ea03697939f398528231b48908
Time: 2018-12-04
Author: nmadnani@ets.org
File Name: tests/test_featureset.py
Class Name:
Method Name: tearDown