1bcad437d2c1b57d582b893427bd53cd90eeafbf,aletheia/feaext.py,,extract_features,#Any#Any#Any#Any#,25
 
Before Change
        print("The provided file is a directory:", output_file)
        sys.exit(0)
    if os.path.exists(output_file):
        os.remove(output_file)
    def extract_and_save(path):
        try:
            X = extract_fn(path, **params)
        except Exception as e:
After Change
        print("The provided file is a directory:", output_file)
        sys.exit(0)
    if os.path.exists(output_file):
        print("Output file already exists! cotinue ...")
        with open(output_file+".label", "r") as f:
            labels = [os.path.join(image_path, x) for x in f.read().splitlines()]
        pending_files = [x for x in files if x not in labels]
        files = pending_files
        print("Pending files:", len(files))
    def extract_and_save(path):
        try:
            X = extract_fn(path, **params)
        except Exception as e:

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
 Project Name: daniellerch/aletheia
 Commit Name: 1bcad437d2c1b57d582b893427bd53cd90eeafbf
 Time: 2019-05-12
 Author: dlerch@gmail.com
 File Name: aletheia/feaext.py
 Class Name: 
 Method Name: extract_features
 Project Name: ray-project/ray
 Commit Name: 1d532d1cb8b829bdf7055a22c206032ca0b72e46
 Time: 2020-04-02
 Author: rkooo567@gmail.com
 File Name: python/ray/tests/test_webui.py
 Class Name: 
 Method Name: test_get_webui
 Project Name: azavea/raster-vision
 Commit Name: afeec8a22c2936dd9b2a94eec64cd89442fe9598
 Time: 2019-01-03
 Author: jmcclain@azavea.com
 File Name: rastervision/data/label_store/semantic_segmentation_raster_store.py
 Class Name: SemanticSegmentationRasterStore
 Method Name: save