2fb9ed3faa5cb1062fd7f0f0ade407ed58e6d244,niftynet/engine/sampler_grid.py,,complete_spatial_border_size,#Any#,180

Before Change



def complete_spatial_border_size(input_border_size):
    try:
        input_border_size = map(int, input_border_size)
        while len(input_border_size) < N_SPATIAL:
            input_border_size = input_border_size + (1,)
        input_border_size = tuple(input_border_size[:N_SPATIAL])
    except ValueError:

After Change



def complete_spatial_border_size(input_border_size):
    try:
        input_border_size = tuple(map(int, input_border_size))
        while len(input_border_size) < N_SPATIAL:
            input_border_size = input_border_size + (0,)
        input_border_size = input_border_size[:N_SPATIAL]
    except ValueError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 2fb9ed3faa5cb1062fd7f0f0ade407ed58e6d244
Time: 2017-08-15
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_grid.py
Class Name:
Method Name: complete_spatial_border_size


Project Name: keras-team/keras
Commit Name: 2da66ed00943d0c5682b694828cd6f5469e10529
Time: 2016-07-19
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: random_normal_variable


Project Name: keras-team/keras
Commit Name: 2da66ed00943d0c5682b694828cd6f5469e10529
Time: 2016-07-19
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: random_uniform_variable


Project Name: keras-team/keras
Commit Name: 2da66ed00943d0c5682b694828cd6f5469e10529
Time: 2016-07-19
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: ones


Project Name: keras-team/keras
Commit Name: 2da66ed00943d0c5682b694828cd6f5469e10529
Time: 2016-07-19
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: zeros