8acf04da9110e1fdb5846c4bf511c8d9f29a6565,librosa/util.py,,pad_center,#,86
Before Change
"""
kwargs.setdefault("mode", "constant")
lpad = (size - len(data))/2
return np.pad(data, (lpad, size - len(data) - lpad), **kwargs)
def fix_length(y, n, **kwargs):
"""Fix the length of a one-dimensional array ``y`` to exactly ``n``.
After Change
lpad = (size - n)/2
lengths = [(0, 0)] * d
lengths[axis] = (lpad, size - n - lpad)
if lpad < 0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: librosa/librosa
Commit Name: 8acf04da9110e1fdb5846c4bf511c8d9f29a6565
Time: 2014-11-06
Author: brian.mcfee@nyu.edu
File Name: librosa/util.py
Class Name:
Method Name: pad_center
Project Name: librosa/librosa
Commit Name: 489494cdbbd3bf9f75b37c58e15ffbbbc1dd0188
Time: 2015-01-03
Author: brian.mcfee@nyu.edu
File Name: librosa/util.py
Class Name:
Method Name: fix_length
Project Name: khaotik/DaNet-Tensorflow
Commit Name: de00082780be884fc90e0113d323bfd63006ffba
Time: 2017-08-07
Author: junkkhaotik@gmail.com
File Name: main.py
Class Name: Model
Method Name: train