7ee43f4346812c46b8df43c8cdf7a3016958949c,setup.py,,clean,#,84
Before Change
def clean(path):
for name in MOD_NAMES:
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()
def setup_package():
root = Path(__file__).parent
if len(sys.argv) > 1 and sys.argv[1] == "clean":
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: nipy/dipy
Commit Name: 152314d80495bd34054b329fa169bb2dca399400
Time: 2020-03-18
Author: bramshq@gmail.com
File Name: dipy/stats/analysis.py
Class Name:
Method Name: bundle_analysis
Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: c06752e6958a1c1de384776fc8d85c5fa117ea73
Time: 2019-08-08
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name: