b2e82574eb7e7292741ece09ec9eb286e9ea4168,librosa/util/utils.py,,frame,#Any#Any#Any#Any#,35
Before Change
new_stride = np.prod(strides[strides > 0 ]
if axis == -1 :
if not x.flags["F_CONTIGUOUS" ]:
raise ParameterError ("Input array must be F-contiguous "
"for framing along axis={}" .format(axis) )
shape = list(x.shape)[:-1 ] + [frame_length, n_frames]
strides = list(strides) + [hop_length * new_stride]
elif axis == 0 :
After Change
if axis == -1 and not x.flags["F_CONTIGUOUS" ]:
warnings.warn("librosa.util.frame called with axis={} "
"on a non-contiguous input. This will result in a copy." .format(axis))
x = np.asfortranarray(x)
elif axis == 0 and not x.flags["C_CONTIGUOUS" ]:
warnings.warn("librosa.util.frame called with axis={} "
"on a non-contiguous input. This will result in a copy." .format(axis))
x = np.ascontiguousarray(x)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: librosa/librosa
Commit Name: b2e82574eb7e7292741ece09ec9eb286e9ea4168
Time: 2020-05-22
Author: bmcfee@users.noreply.github.com
File Name: librosa/util/utils.py
Class Name:
Method Name: frame
Project Name: RaRe-Technologies/gensim
Commit Name: af3357375250903ecb380051915e15ba721c42f4
Time: 2010-07-31
Author: radimrehurek@seznam.cz
File Name: src/gensim/similarities/docsim.py
Class Name: MatrixSimilarity
Method Name: getSimilarities
Project Name: RaRe-Technologies/gensim
Commit Name: e20d7b28bb811000edd0790fb72df9e68875a063
Time: 2010-07-31
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/similarities/docsim.py
Class Name: MatrixSimilarity
Method Name: getSimilarities