1c966bdf31764b9f51d376f19041d0ba7953b542,scipy/stats/_binned_statistic.py,,binned_statistic_dd,#Any#Any#Any#Any#Any#,171

Before Change


        result.fill(np.nan)
        flatcount = np.bincount(xy, None)
        flatsum = np.bincount(xy, values)
        a = np.arange(len(flatcount))
        result[a] = flatsum
        result[a] /= flatcount
    elif statistic == "count":
        result.fill(0)

After Change


        result.fill(0)
        flatcount = np.bincount(xy, None)
        flatsum = np.bincount(xy, values)
        flatsum2 = np.bincount(xy, values ** 2)
        a = (flatcount > 0)
        result[a] = np.sqrt(flatsum2[a] / flatcount[a]
                            - (flatsum[a] / flatcount[a]) ** 2)
    elif statistic == "count":
        result.fill(0)
        flatcount = np.bincount(xy, None)
        a = np.arange(len(flatcount))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 1c966bdf31764b9f51d376f19041d0ba7953b542
Time: 2012-06-12
Author: jakevdp@yahoo.com
File Name: scipy/stats/_binned_statistic.py
Class Name:
Method Name: binned_statistic_dd


Project Name: biolab/orange3
Commit Name: 4864636ee49d8d78192ef456e91c41747fa7d9fb
Time: 2012-09-29
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/classification/__init__.py
Class Name: Model
Method Name: __call__


Project Name: EducationalTestingService/skll
Commit Name: 6deff016d07906e01ec8c97fa991338034a6bd67
Time: 2013-09-09
Author: dblanchard@ets.org
File Name: skll/metrics.py
Class Name:
Method Name: kappa