fde4b1f40f02082b56e8af3c696b3f1b0cef7fa4,src/chaospy/poly/collection/core.py,,variable,#Any#,254
Before Change
r = np.arange(dims, dtype=int)
A = {}
for i in range(dims):
A[tuple(1*(r==i))] = 1*(r==i)
return Poly(A, dim=dims, shape=(dims,))
def order(P):
After Change
if dims == 1:
return Poly({(1,): 1}, dim=1, shape=())
return Poly({
tuple(indices): indices for indices in numpy.eye(dims, dtype=int)
}, dim=dims, shape=(dims,))
def order(P):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: jonathf/chaospy
Commit Name: fde4b1f40f02082b56e8af3c696b3f1b0cef7fa4
Time: 2017-09-30
Author: jonathf@gmail.com
File Name: src/chaospy/poly/collection/core.py
Class Name:
Method Name: variable
Project Name: NifTK/NiftyNet
Commit Name: 2fb9ed3faa5cb1062fd7f0f0ade407ed58e6d244
Time: 2017-08-15
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_window.py
Class Name: ImageWindow
Method Name: set_spatial_shape
Project Name: NifTK/NiftyNet
Commit Name: 27c4c0613c921373e1f4f3a7de6d8455be1f2e3a
Time: 2017-07-31
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/volume_reader.py
Class Name: VolumeReader
Method Name: _filename_to_image_list