f43c64c4fd913751764d324a1b85c895a051bced,scipy/sparse/lil.py,lil_matrix,getrow,#lil_matrix#Any#,194

Before Change


        Returns a copy of the "i"th row.
        
        i = self._check_row_bounds(i)
        new = lil_matrix((1, self.shape[1]), dtype=self.dtype)
        new.rows[0] = self.rows[i][:]
        new.data[0] = self.data[i][:]
        return new

After Change


        Returns a copy of the "i"th row.
        
        M, N = self.shape
        if i < 0:
            i += M
        if i < 0 or i >= M:
            raise IndexError("row index out of bounds")
        new = lil_matrix((1, N), dtype=self.dtype)
        new.rows[0] = self.rows[i][:]
        new.data[0] = self.data[i][:]
        return new
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


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


Project Name: scipy/scipy
Commit Name: cbc2e9b0fb5d757661381fd2e66dc3541f0da1e8
Time: 2011-02-04
Author: warren.weckesser@localhost
File Name: scipy/sparse/base.py
Class Name: spmatrix
Method Name: getcol


Project Name: scipy/scipy
Commit Name: cbc2e9b0fb5d757661381fd2e66dc3541f0da1e8
Time: 2011-02-04
Author: warren.weckesser@localhost
File Name: scipy/sparse/base.py
Class Name: spmatrix
Method Name: getrow