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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: scipy/scipy
Commit Name: 17b6f7b145780fc0cd973a9436a81f9b5fe43e35
Time: 2015-05-07
Author: archibald@astron.nl
File Name: tools/refguide_check.py
Class Name:
Method Name: get_all_dict


Project Name: scipy/scipy
Commit Name: 73f93c38591b0099682d82e790aec13fcd13a6f5
Time: 2013-08-14
Author: argriffi@ncsu.edu
File Name: scipy/integrate/quadpack.py
Class Name: _NQuad
Method Name: _int