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


        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: 8

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: pymc-devs/pymc3
Commit Name: 4a713dc4519b2da8ad6e9b25240840d82dd02572
Time: 2017-03-15
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/memoize.py
Class Name:
Method Name: hashable


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