c2ee9e1bb529a96850cd6621c43c420cea2a9efe,pysos/main.py,,cmd_remove,#Any#Any#,195

Before Change


                if args.__tracked__:
                    print("Would remove tracked file {} and its signature".format(f))
            else:
                print("Removing tracked file {} and its signature".format(f))
                FileTarget(f).remove("both")
        // note: signatures of tracked files under
        // these directories should have been removed.
        for d in sorted(specified_tracked_dirs, key=len, reverse=True):

After Change


    // in case of all, we need to remove everything
    if not args.__tracked__ and not args.__untracked__:
        for target in args.targets:
            target = os.path.expanduser(target)
            if args.__dryrun__:
                print("Would remove {}".format(target))
            elif os.path.exists(target):
                if get_response("Remove {}".format(target)):
                    if os.path.isfile(target):
                        os.remove(target)
                    elif os.path.isdir(target):
                        if os.path.abspath(target) != os.path.abspath("."):
                            shutil.rmtree(target)
                    else:
                        os.unlink(target)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: vatlab/SoS
Commit Name: c2ee9e1bb529a96850cd6621c43c420cea2a9efe
Time: 2016-10-15
Author: ben.bog@gmail.com
File Name: pysos/main.py
Class Name:
Method Name: cmd_remove


Project Name: markovmodel/PyEMMA
Commit Name: 5a8c38e1c7cd3ac38ba05def88da649926e1f090
Time: 2017-01-05
Author: clonker@gmail.com
File Name: devtools/conda-recipe/run_test.py
Class Name:
Method Name:


Project Name: vatlab/SoS
Commit Name: c2ee9e1bb529a96850cd6621c43c420cea2a9efe
Time: 2016-10-15
Author: ben.bog@gmail.com
File Name: pysos/main.py
Class Name:
Method Name: cmd_remove


Project Name: albermax/innvestigate
Commit Name: 51687332d2de8483720a7b2f0f79367713e01149
Time: 2018-04-20
Author: sebastian.lapuschkin@hhi.fraunhofer.de
File Name: innvestigate/applications/mnist.py
Class Name:
Method Name: _load_pretrained_net