5ce91f1cc0d3dcdb8b53c47990774173b82eff62,scipy/sparse/dok.py,dok_matrix,__imul__,#dok_matrix#Any#,386
Before Change
def __imul__(self, other):
if isscalarlike(other):
// Multiply this scalar by every element.
for (key, val) in iteritems(self):
self[key] = val * other
// new.dtype.char = self.dtype.char
return self
else:
return NotImplemented
After Change
def __imul__(self, other):
if isscalarlike(other):
dict.update(self, ((k, v * other) for k, v in iteritems(self)))
return self
return NotImplemented
def __truediv__(self, other):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 15
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: __imul__
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: _mul_scalar
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: __truediv__
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: __itruediv__
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: __imul__