1af61eee76fc63e98ba5ad85ad82fbd18111b8e9,scipy/sparse/data.py,_minmax_mixin,_min_or_max_axis,#_minmax_mixin#Any#Any#,106

Before Change


        row = out_mat.rows[0]
        data = out_mat.data[0]

        for i, (start, stop) in enumerate(izip(mat.indptr, mat.indptr[1:])):
            if start == stop:
                continue
            val = min_or_max(mat.data[start:stop])

After Change


        // can"t use indices > data length with reduceat`
        trunc = np.searchsorted(indptr, indptr[-1])
        min_or_max.reduceat(mat.data, indptr[:trunc], out=out[:trunc])
        nnz = np.diff(indptr)
        min_or_max(out, zero, where=nnz < N, out=out)
        out[nnz == 0] = zero

        out = lil_matrix(out, dtype=self.dtype)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 1af61eee76fc63e98ba5ad85ad82fbd18111b8e9
Time: 2014-01-28
Author: joel.nothman@gmail.com
File Name: scipy/sparse/data.py
Class Name: _minmax_mixin
Method Name: _min_or_max_axis


Project Name: soft-matter/trackpy
Commit Name: dbeab7509cfec1314b6529d57fbd090ce744695c
Time: 2017-07-27
Author: caspervdw@gmail.com
File Name: trackpy/motion.py
Class Name:
Method Name: compute_drift


Project Name: librosa/librosa
Commit Name: 9519061db731fcab3a2b05f999f31785fea772c3
Time: 2017-07-27
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __coord_mel_hz


Project Name: nipy/dipy
Commit Name: 70c2a5d19f7d6dac138a58e24301b6da1242ca17
Time: 2013-08-06
Author: garyfallidis@gmail.com
File Name: dipy/segment/mask.py
Class Name:
Method Name: hist_mask


Project Name: nipy/dipy
Commit Name: 31e0033dfc071436acaa7630c4bb04b558788e31
Time: 2013-08-06
Author: garyfallidis@gmail.com
File Name: dipy/segment/mask.py
Class Name:
Method Name: hist_mask