4c14115412ed569c7e6cf763c437c9c66e297482,nilearn/_utils/niimg_conversions.py,,is_img,#Any#,18

Before Change


    try:
        get_data = getattr(obj, "get_data")
        get_affine = getattr(obj, "get_affine")
        return callable(get_data) and callable(get_affine)
    except AttributeError:
        return False

After Change


        get_data = getattr(obj, "get_data")
        get_affine = getattr(obj, "get_affine")
        return isinstance(get_data, collections.Callable) and \
               isinstance(get_affine, collections.Callable)
    except AttributeError:
        return False

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nilearn/nilearn
Commit Name: 4c14115412ed569c7e6cf763c437c9c66e297482
Time: 2015-03-05
Author: bcipolli@ucsd.edu
File Name: nilearn/_utils/niimg_conversions.py
Class Name:
Method Name: is_img


Project Name: lebedov/scikit-cuda
Commit Name: ae7177fec929cd5b78a445030a79bba2b0792cf7
Time: 2014-10-22
Author: lev@columbia.edu
File Name: docs/sphinxext/docscrape_sphinx.py
Class Name:
Method Name: get_doc_object


Project Name: lebedov/scikit-cuda
Commit Name: ae7177fec929cd5b78a445030a79bba2b0792cf7
Time: 2014-10-22
Author: lev@columbia.edu
File Name: docs/sphinxext/traitsdoc.py
Class Name:
Method Name: get_doc_object