5ca32abb4633431783c415c147ee943a32208bda,examples/misc/rc_traits.py,,hex_to_rgba,#Any#Any#Any#,75

Before Change


def hex_to_rgba(ob, name, val):
    rgx = re.compile("^//[0-9A-Fa-f]{6}$")

    if not is_string_like(val):
        raise TypeError
    if rgx.match(val) is None:
        raise ValueError

After Change


def hex_to_rgba(ob, name, val):
    rgx = re.compile("^//[0-9A-Fa-f]{6}$")

    if not isinstance(val, six.string_types):
        raise TypeError
    if rgx.match(val) is None:
        raise ValueError
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 6

Instances


Project Name: matplotlib/matplotlib
Commit Name: 5ca32abb4633431783c415c147ee943a32208bda
Time: 2017-04-15
Author: anntzer.lee@gmail.com
File Name: examples/misc/rc_traits.py
Class Name:
Method Name: hex_to_rgba


Project Name: matplotlib/matplotlib
Commit Name: 5ca32abb4633431783c415c147ee943a32208bda
Time: 2017-04-15
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_gtk.py
Class Name:
Method Name: error_msg_gtk


Project Name: matplotlib/matplotlib
Commit Name: 5ca32abb4633431783c415c147ee943a32208bda
Time: 2017-04-15
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_tkagg.py
Class Name:
Method Name: raise_msg_to_str


Project Name: matplotlib/matplotlib
Commit Name: 5ca32abb4633431783c415c147ee943a32208bda
Time: 2017-04-15
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/testing/__init__.py
Class Name:
Method Name: _is_list_like


Project Name: matplotlib/matplotlib
Commit Name: 5ca32abb4633431783c415c147ee943a32208bda
Time: 2017-04-15
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_qt5.py
Class Name:
Method Name: error_msg_qt


Project Name: matplotlib/matplotlib
Commit Name: 5ca32abb4633431783c415c147ee943a32208bda
Time: 2017-04-15
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_gtk3.py
Class Name:
Method Name: error_msg_gtk


Project Name: matplotlib/matplotlib
Commit Name: 5ca32abb4633431783c415c147ee943a32208bda
Time: 2017-04-15
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_wx.py
Class Name:
Method Name: raise_msg_to_str