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

Before Change


            if args.__dryrun__:
                print("Would remove untracked directory {}".format(d))
            else:
                if get_response("Remove untracked directory {}".format(d)):
                    if os.path.isdir(d):
                        shutil.rmtree(d)
                    else:

After Change


                if get_response("Remove {}".format(target), always_true = args.signature):
                    if os.path.isfile(target):
                        if args.signature:
                            FileTarget(target).remove("signature")
                        else:
                            FileTarget(target).remove("both")
                    else:
                        if os.path.abspath(target) != os.path.abspath("."):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: CyberReboot/poseidon
Commit Name: 8fbca5af8c1395ea378749b4dc37e6769c0f6a84
Time: 2019-08-28
Author: clewis@iqt.org
File Name: poseidon/controllers/faucet/parser.py
Class Name: Parser
Method Name: config


Project Name: matplotlib/matplotlib
Commit Name: 6d8bc9f8cd64a8452b19eea76fd8d59f3da8e3e9
Time: 2019-06-11
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/testing/decorators.py
Class Name: _ImageComparisonBase
Method Name: copy_baseline