ae151484780b389b5c7b4530c9ac1ef4bb659e23,scipy/special/_basic.py,,factorial,#Any#Any#,2277
Before Change
n = asarray(n)
vals = gamma(n + 1)
return where(n >= 0, vals, 0)
def factorial2(n, exact=False):
Double factorial.
After Change
val *= _range_prod(prev, current)
out[n == current] = val
if np.isnan(n).any() :
out = out.astype(np.float64)
out[np.isnan(n)] = n[np.isnan(n)]
return out
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: scipy/scipy
Commit Name: ae151484780b389b5c7b4530c9ac1ef4bb659e23
Time: 2020-01-13
Author: rlucas7@users.noreply.github.com
File Name: scipy/special/_basic.py
Class Name:
Method Name: factorial
Project Name: bsmurphy/PyKrige
Commit Name: 2638f41eaec8cde46a09da8a211baaf0c744148b
Time: 2015-02-15
Author: murphybe@gdemac.oce.orst.edu
File Name: pykrige/core.py
Class Name:
Method Name: krige
Project Name: librosa/librosa
Commit Name: bbfed4c0b19757ceb913766e4d1fd3ee4cd78b30
Time: 2019-12-01
Author: kogito@hotmail.fr
File Name: librosa/feature/inverse.py
Class Name:
Method Name: mfcc_to_mel