2ec54d83cab214aaa65ae500cbb3ee57c014765d,setup.py,,check_remove_bokeh_install,#Any#,202

Before Change


        if not (d == "bokeh" or d.startswith("bokeh-")):
            continue
        prompt = "Found existing bokeh install: %s\nRemove it? [y|N] " % bokeh_path
        val = input(prompt)
        if val == "y":
            print("Removing old bokeh install...", end=" ")
            try:
                if isdir(bokeh_path): shutil.rmtree(bokeh_path)

After Change




def check_remove_bokeh_install(site_packages):
    old_bokeh_files = []
    for d in os.listdir(site_packages):
        bokeh_path = join(site_packages, d)
        if not (d == "bokeh" or d.startswith("bokeh-")):
            continue
        old_bokeh_files.append(bokeh_path)

    if len(old_bokeh_files) == 0:
        return

    print("Found old bokeh files:")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: bokeh/bokeh
Commit Name: 2ec54d83cab214aaa65ae500cbb3ee57c014765d
Time: 2016-04-15
Author: bryanv@continuum.io
File Name: setup.py
Class Name:
Method Name: check_remove_bokeh_install


Project Name: geekcomputers/Python
Commit Name: e1c4e6a7c7db68e123d978bfc56feb057898935f
Time: 2019-10-24
Author: kostasdedesar@penguin
File Name: Counting-sort.py
Class Name:
Method Name:


Project Name: TheAlgorithms/Python
Commit Name: c359768e257a7bcbfe93e137a0fc1e81b92d6573
Time: 2020-12-08
Author: 58473917+Joe-Sin7h@users.noreply.github.com
File Name: sorts/bitonic_sort.py
Class Name:
Method Name: