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


        CSR matrix (column vector).
        
        M, N = self.shape
        i = int(i)
        if i < 0:
            i += N
        if i < 0 or i >= N:
            raise IndexError("index (%d) out of range" % i)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: arviz-devs/arviz
Commit Name: 86776e7837cd4c3d7a09416ca1c16dd7681043bc
Time: 2018-05-24
Author: colcarroll@gmail.com
File Name: doc/sphinxext/gallery_generator.py
Class Name:
Method Name: create_thumbnail


Project Name: scipy/scipy
Commit Name: f43c64c4fd913751764d324a1b85c895a051bced
Time: 2018-11-08
Author: perimosocordiae@gmail.com
File Name: scipy/sparse/csc.py
Class Name: csc_matrix
Method Name: getrow