0568261b45599d5817b69b18f5e6873fc4d49d5d,skimage/util/arraycrop.py,,crop,#Any#Any#Any#Any#,141
Before Change
ar = np.array(ar, copy=False)
crops = _validate_lengths(ar, crop_width)
slices = [slice(a, ar.shape[i] - b) for i, (a, b) in enumerate(crops)]
if copy:
cropped = np.array(ar[slices], order=order, copy=True)
else:
cropped = ar[slices]
After Change
ar = np.array(ar, copy=False)
crops = _validate_lengths(ar, crop_width)
slices = tuple(slice(a, ar.shape[i] - b)
for i, (a, b) in enumerate(crops))
if copy:
cropped = np.array(ar[slices], order=order, copy=True)
else:
cropped = ar[slices]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 11
Instances
Project Name: scikit-image/scikit-image
Commit Name: 0568261b45599d5817b69b18f5e6873fc4d49d5d
Time: 2018-07-20
Author: mark.harfouche@gmail.com
File Name: skimage/util/arraycrop.py
Class Name:
Method Name: crop
Project Name: scikit-image/scikit-image
Commit Name: 0568261b45599d5817b69b18f5e6873fc4d49d5d
Time: 2018-07-20
Author: mark.harfouche@gmail.com
File Name: skimage/util/shape.py
Class Name:
Method Name: view_as_windows
Project Name: scikit-image/scikit-image
Commit Name: 0568261b45599d5817b69b18f5e6873fc4d49d5d
Time: 2018-07-20
Author: mark.harfouche@gmail.com
File Name: skimage/restoration/_denoise.py
Class Name:
Method Name: _wavelet_threshold
Project Name: scikit-image/scikit-image
Commit Name: 0568261b45599d5817b69b18f5e6873fc4d49d5d
Time: 2018-07-20
Author: mark.harfouche@gmail.com
File Name: skimage/filters/lpi_filter.py
Class Name:
Method Name: _centre