dd17b42f452bc156f55e3400f8ebc84d58761e65,skimage/filters/_window.py,,window,#,8
Before Change
center = (max_size / 2) - 0.5
coords = np.stack((np.meshgrid(*L)))
coords[0, ...] = np.sqrt(((coords - center) ** 2).sum(axis=0)) + center
coords[1:, ...] = 0
if warp_kwargs is None:
After Change
g -= center
dist = dist + g * g
dist = np.sqrt(dist)
coords = np.zeros((ndim,) + dist.shape, dtype=np.float32)
coords[0] = dist + center
if warp_kwargs is None:
warp_kwargs = {}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: scikit-image/scikit-image
Commit Name: dd17b42f452bc156f55e3400f8ebc84d58761e65
Time: 2019-12-30
Author: gregory.lee@cchmc.org
File Name: skimage/filters/_window.py
Class Name:
Method Name: window
Project Name: nicodv/kmodes
Commit Name: 1a6a7be8e84ebaa4adf3e3e0de7ff5ddfbcb0453
Time: 2017-11-15
Author: njdevos@gmail.com
File Name: kmodes/kprototypes.py
Class Name:
Method Name: k_prototypes
Project Name: pgmpy/pgmpy
Commit Name: b384268df66742de0bc92a13db162b8409dda730
Time: 2019-04-19
Author: ankurankan@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BIFReader
Method Name: get_values