f43c64c4fd913751764d324a1b85c895a051bced,scipy/sparse/csr.py,csr_matrix,getcol,#csr_matrix#Any#,384

Before Change


        Returns a copy of column i of the matrix, as a (m x 1)
        CSR matrix (column vector).
        
        return self._get_submatrix(slice(None), i)

    def _get_row_slice(self, i, cslice):
        Returns a copy of row self[i, cslice]
        

After Change


            raise IndexError("index (%d) out of range" % i)
        indptr, indices, data = get_csr_submatrix(
            M, N, self.indptr, self.indices, self.data, 0, M, i, i + 1)
        return csr_matrix((data, indices, indptr), shape=(M, 1),
                          dtype=self.dtype, copy=False)

    def _get_intXarray(self, row, col):
        return self.getrow(row)._minor_index_fancy(col)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: f43c64c4fd913751764d324a1b85c895a051bced
Time: 2018-11-08
Author: perimosocordiae@gmail.com
File Name: scipy/sparse/csr.py
Class Name: csr_matrix
Method Name: getcol


Project Name: JasonKessler/scattertext
Commit Name: 92c50bc4c19d457eada61f64797edc611d487c01
Time: 2016-12-02
Author: jason.kessler@gmail.com
File Name: scattertext/TermDocMatrix.py
Class Name: TermDocMatrix
Method Name: get_term_freq_df


Project Name: dmlc/dgl
Commit Name: eafcb7e7f55d385099a9289b275e8371897edb9f
Time: 2018-12-05
Author: minjie.wang@nyu.edu
File Name: python/dgl/backend/mxnet/tensor.py
Class Name:
Method Name: sparse_matrix