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

Before Change


            raise ValueError(
                "unrecognised input string {}".format(string_input))
        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)

After Change


        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)
        else:
            raise ValueError("unknown array type_str {}".format(string_input))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: chainer/chainercv
Commit Name: dded0e1e61a8b8175621d638bd96041ccfb2cc07
Time: 2017-05-30
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/utils/iterator/split_iterator.py
Class Name:
Method Name: split_iterator


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