eca463691a033207261d9b65f9302822b2509571,tests/test_core.py,,test_fmt_scale,#,729
Before Change
assert np.allclose(np.abs(f_orig[:n]), np.abs(f_res[:n]), atol=1e-3)
y_orig = np.cos(2 * np.pi * np.linspace(0, 1, num=256) )
for scale in [9./8, 7./8]:
// Scale the time axis
y_res = librosa.resample(y_orig, 1.0, scale, fix=True, res_type="scipy")
// Re-normalize the energy to match that of y_orig
y_res /= np.sqrt(scale)
After Change
bounds = [0, 1.0]
num = 2**9
x = np.linspace(bounds[0] , bounds[1] , num=num, endpoint=False)
y_orig = f(x)
for scale in [9./8, 7./8]:
// Scale the time axis
x_res = np.linspace(bounds[0] , bounds[1], num=scale * num, endpoint=False)
y_res = f(x_res)
// Re-normalize the energy to match that of y_orig
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: librosa/librosa
Commit Name: eca463691a033207261d9b65f9302822b2509571
Time: 2015-10-12
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_fmt_scale
Project Name: librosa/librosa
Commit Name: eca463691a033207261d9b65f9302822b2509571
Time: 2015-10-12
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_fmt_scale
Project Name: matplotlib/matplotlib
Commit Name: f742f0a9ae6c7b4b92fac3dbe3a037eba00dabb0
Time: 2018-04-12
Author: jklymak@gmail.com
File Name: examples/lines_bars_and_markers/fill.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: 258f2fb5686dfbe17d797e44a68a681952f23fd1
Time: 2018-04-09
Author: sam.vaughan@physics.ox.ac.uk
File Name: examples/lines_bars_and_markers/fill.py
Class Name:
Method Name: