5ce91f1cc0d3dcdb8b53c47990774173b82eff62,scipy/sparse/dok.py,dok_matrix,__add__,#dok_matrix#Any#,292

Before Change


            new = dok_matrix(self.shape, dtype=res_dtype)
            new.update(self)
            with np.errstate(over="ignore"):
                for key in other.keys():
                    new[key] += other[key]
        elif isspmatrix(other):
            csc = self.tocsc()
            new = csc + other
        elif isdense(other):

After Change


            new = dok_matrix(self.shape, dtype=res_dtype)
            dict.update(new, self)
            with np.errstate(over="ignore"):
                dict.update(new,
                           ((k, new[k] + other[k]) for k in iterkeys(other)))
        elif isspmatrix(other):
            csc = self.tocsc()
            new = csc + other
        elif isdense(other):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: scipy/scipy
Commit Name: 5ce91f1cc0d3dcdb8b53c47990774173b82eff62
Time: 2017-08-12
Author: akstrfn@gmail.com
File Name: scipy/sparse/dok.py
Class Name: dok_matrix
Method Name: __add__


Project Name: scipy/scipy
Commit Name: 5ce91f1cc0d3dcdb8b53c47990774173b82eff62
Time: 2017-08-12
Author: akstrfn@gmail.com
File Name: scipy/sparse/dok.py
Class Name: dok_matrix
Method Name: __neg__


Project Name: bashtage/linearmodels
Commit Name: c2696af8321dcc8b4bb742c2d57c2d3572091317
Time: 2020-01-17
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/utility.py
Class Name: _ModelComparison
Method Name: __init__