9b95e0f07b60b6a144893dcc506dfaf90db61c95,librosa/feature/utils.py,,stack_memory,#Any#Any#Any#,119
Before Change
// Trim to original width
if delay > 0:
history = history[:, :t]
else:
history = history[:, -t:]
// Make contiguous
After Change
if n_steps < 1:
raise ParameterError("n_steps must be a positive integer")
if data.ndim > 2:
raise ParameterError("Input must be at most 2-dimensional. "
"Given data.shape={}".format(data.shape))
if delay == 0:
raise ParameterError("delay must be a non-zero integer")
data = np.atleast_2d(data)
t = data.shape[-1]
if t < 1:
raise ParameterError("Cannot stack memory when input data has "
"no columns. Given data.shape={}".format(data.shape))
kwargs.setdefault("mode", "constant")
if kwargs["mode"] == "constant":
kwargs.setdefault("constant_values", [0])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: librosa/librosa
Commit Name: 9b95e0f07b60b6a144893dcc506dfaf90db61c95
Time: 2020-05-18
Author: bmcfee@users.noreply.github.com
File Name: librosa/feature/utils.py
Class Name:
Method Name: stack_memory
Project Name: librosa/librosa
Commit Name: f5122cdab53605b7b800c96d6700b791b8c9add8
Time: 2016-04-26
Author: brian.mcfee@nyu.edu
File Name: librosa/segment.py
Class Name:
Method Name: lag_to_recurrence
Project Name: librosa/librosa
Commit Name: 1ec3d56179d24f041df607fd1ec4fcb0a1254cf4
Time: 2016-12-09
Author: brian.mcfee@nyu.edu
File Name: librosa/util/utils.py
Class Name:
Method Name: normalize