898a9387984d8434245618eda47a6e3f052bbba0,niftynet/utilities/user_parameters_regex.py,,match_array,#Any#Any#,49

Before Change


        if type_str == "int":
            return tuple(map(int, values))
        if type_str == "float":
            return tuple(map(float, values))
        if type_str == "str":
            return tuple(values)
        else:
            raise ValueError("unknown array type_str {}".format(string_input))

After Change


            raise ValueError(
                "unrecognised input string {}".format(string_input))
        if type_str == "int":
            return tuple(int(val) for val in values)
        if type_str == "float":
            return tuple(float(val) for val in values)
        if type_str == "str":
            return tuple(values)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: NifTK/NiftyNet
Commit Name: 898a9387984d8434245618eda47a6e3f052bbba0
Time: 2018-03-20
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/user_parameters_regex.py
Class Name:
Method Name: match_array


Project Name: NifTK/NiftyNet
Commit Name: 14f7fd88d24cf31a466726fc89060a4b7778e2e6
Time: 2017-09-04
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window.py
Class Name:
Method Name: _read_window_sizes


Project Name: NifTK/NiftyNet
Commit Name: 9b638935feccbb0fce928b5e9e38616c74960394
Time: 2017-08-30
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window.py
Class Name:
Method Name: _read_window_sizes