eef9f43e184a76cbb77dcdf7ae4b2413e9246e1b,cellprofiler/cpmath/otsu.py,,entropy,#Any#Any#,94

Before Change


                     the bin index that optimizes the metric
    
    
    data = np.array(data).flatten()
    if len(data) == 0:
        return 0
    elif len(data) == 1:
        return data[0]

After Change


                     the bin index that optimizes the metric
    
    
    data = np.atleast_1d(data)
    data = data[~ np.isnan(data)]
    if len(data) == 0:
        return 0
    elif len(data) == 1:
        return data[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 7

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: eef9f43e184a76cbb77dcdf7ae4b2413e9246e1b
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: entropy


Project Name: CellProfiler/CellProfiler
Commit Name: 326849c2add357d2dd94b16ceeea7c6a38b9d6b5
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: otsu


Project Name: CellProfiler/CellProfiler
Commit Name: 326849c2add357d2dd94b16ceeea7c6a38b9d6b5
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: entropy3


Project Name: CellProfiler/CellProfiler
Commit Name: 326849c2add357d2dd94b16ceeea7c6a38b9d6b5
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: entropy


Project Name: CellProfiler/CellProfiler
Commit Name: eef9f43e184a76cbb77dcdf7ae4b2413e9246e1b
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: entropy3


Project Name: CellProfiler/CellProfiler
Commit Name: eef9f43e184a76cbb77dcdf7ae4b2413e9246e1b
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: otsu