7ee43f4346812c46b8df43c8cdf7a3016958949c,setup.py,,clean,#,84

Before Change


        name = name.replace(".", "/")
        for ext in ["so", "html", "cpp", "c"]:
            file_path = path / f"{name}.{ext}"
            if file_path.exists():
                file_path.unlink()


def setup_package():
    root = Path(__file__).parent

    if len(sys.argv) > 1 and sys.argv[1] == "clean":

After Change




def clean(path):
    for path in path.glob("**/*"):
        if path.is_file() and path.suffix in (".so", ".cpp"):
            print(f"Deleting {path.name}")
            path.unlink()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: explosion/thinc
Commit Name: 7ee43f4346812c46b8df43c8cdf7a3016958949c
Time: 2020-01-15
Author: ines@ines.io
File Name: setup.py
Class Name:
Method Name: clean


Project Name: pyinstaller/pyinstaller
Commit Name: 06c181beaaca9b1f01714a327d366584c03855d5
Time: 2020-09-30
Author: rok.mandeljc@gmail.com
File Name: PyInstaller/hooks/hook-PyQt5.QtWebEngineWidgets.py
Class Name:
Method Name:


Project Name: pyinstaller/pyinstaller
Commit Name: 06c181beaaca9b1f01714a327d366584c03855d5
Time: 2020-09-30
Author: rok.mandeljc@gmail.com
File Name: PyInstaller/hooks/hook-PySide2.QtWebEngineWidgets.py
Class Name:
Method Name: