0c7f52ec5283148dda8ee74c056d42b38e188f94,TCP/Software/feature_extract/Code/feature_interfaces.py,,initialize,#Any#,140

Before Change


        list_of_extractor_objects.append(extractor)
        if isinstance(extractor,type):
            instance = extractor()
            if isinstance(instance,FeatureExtractor.GeneralExtractor):
                instance.register_extractor()
            else:
                pass
        else:
            pass
    return list_of_extractor_objects

After Change


                feature_interface.register_extractor(type(instance))
            except Exception as e:
                raise(e)
                print("Could not register extractor", extractor_name)
                print(e.msg)
        else:
            pass
    return list_of_extractor_objects
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cesium-ml/cesium
Commit Name: 0c7f52ec5283148dda8ee74c056d42b38e188f94
Time: 2015-01-12
Author: a.crellinquick@gmail.com
File Name: TCP/Software/feature_extract/Code/feature_interfaces.py
Class Name:
Method Name: initialize


Project Name: analysiscenter/batchflow
Commit Name: 77ce08e78a831a94e9f33b1e32eb265e495dd9c4
Time: 2017-12-18
Author: g.ivanov@analysiscenter.ru
File Name: dataset/batch_image.py
Class Name: BaseImagesBatch
Method Name: scale


Project Name: scikit-optimize/scikit-optimize
Commit Name: dbc0f24b39c2e2725682485a68586b3f0fa6bafc
Time: 2017-07-02
Author: iaroslav.email@gmail.com
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: fit