7139d63b4ddea7ea25fe33f0b9cc539e1a60352c,api/python/quilt3/api.py,,delete_package,#Any#Any#Any#,31

Before Change


            copy_file(package_path + quote(new_latest), package_path + "latest")
    else:
        for path, _ in paths:
            delete_url(package_path + quote(path))

    // Will ignore non-empty dirs.
    delete_url(package_path)

After Change



    registry_parsed = PhysicalKey.from_url(get_package_registry(fix_url(registry) if registry else None))

    named_packages = registry_parsed.join("named_packages")
    package_path = named_packages.join(name)

    paths = list(list_url(package_path))
    if not paths:
        raise QuiltException("No such package exists in the given directory.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: quiltdata/quilt
Commit Name: 7139d63b4ddea7ea25fe33f0b9cc539e1a60352c
Time: 2020-01-07
Author: dima@quiltdata.io
File Name: api/python/quilt3/api.py
Class Name:
Method Name: delete_package


Project Name: ray-project/ray
Commit Name: 567009d5fd5b191d3d249ac43e86235ac15f7186
Time: 2020-09-23
Author: yinhaonan55@gmail.com
File Name: python/ray/autoscaler/_private/command_runner.py
Class Name: KubernetesCommandRunner
Method Name: run


Project Name: ray-project/ray
Commit Name: 293483ed0bf35751cb3103294b134808caa0103d
Time: 2020-10-27
Author: rliaw@berkeley.edu
File Name: python/ray/autoscaler/_private/command_runner.py
Class Name: SSHCommandRunner
Method Name: _run_helper