45f27df49ba3d0f90fc16d7320986447492cf6e2,scipy/spatial/kdtree.py,KDTree,query,#KDTree#Any#Any#Any#Any#Any#,256

Before Change


            inds = super().query_ball_point(x, distance_upper_bound, p, eps)

            if isinstance(inds, list):
                d = list(minkowski_distance(x, self.data[inds], p=p))
                return d, inds

            d = np.empty_like(inds)
            with np.nditer([inds], flags=["refs_ok", "multi_index"]) as it:

After Change


                return inds_to_hits(x, inds)

            dists = np.empty_like(inds)
            for idx in np.ndindex(inds.shape):
                dists[idx], inds[idx] = inds_to_hits(x[idx], inds[idx])

            return dists, inds

        d, i = super().query(x, k, eps, p, distance_upper_bound)
        if isinstance(i, int):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: scipy/scipy
Commit Name: 45f27df49ba3d0f90fc16d7320986447492cf6e2
Time: 2020-07-07
Author: peterbell10@live.co.uk
File Name: scipy/spatial/kdtree.py
Class Name: KDTree
Method Name: query


Project Name: arviz-devs/arviz
Commit Name: e7baa93f4f397c2955cb30c83bf483f26e67f2f8
Time: 2018-10-08
Author: ahartikainen@users.noreply.github.com
File Name: arviz/stats/diagnostics.py
Class Name:
Method Name: _neff_ufunc


Project Name: arviz-devs/arviz
Commit Name: e7baa93f4f397c2955cb30c83bf483f26e67f2f8
Time: 2018-10-08
Author: ahartikainen@users.noreply.github.com
File Name: arviz/stats/diagnostics.py
Class Name:
Method Name: _rhat_ufunc