8ac6498d50f2f0d2289160fd8505d77743b9af86,mvpa2/datasets/niml_dset.py,,from_niml_dset,#Any#Any#Any#Any#,39

Before Change


                    short_k = _PYMVPA_SEP.join(k_split[2:])
                    expected_length = infix2length.get(infix, None)
                    if expected_length:
                        while type(v) is str:
                            // strings are seperated by ""
                            // XXX what if this is part of the value 
                            // intended by the user?
                            v = v.split("")

After Change


                    short_k = _PYMVPA_SEP.join(k_split[2:])
                    expected_length = infix2length.get(infix, None)
                    if expected_length:
                        if isinstance(v, np.ndarray) and np.dtype == np.str_:
                            v = str(v)

                        while isinstance(v, basestring):
                            // strings are seperated by ""
                            // XXX what if this is part of the value 
                            // intended by the user?
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 8ac6498d50f2f0d2289160fd8505d77743b9af86
Time: 2013-04-17
Author: nikolaas.oosterhof@unitn.it
File Name: mvpa2/datasets/niml_dset.py
Class Name:
Method Name: from_niml_dset


Project Name: GPflow/GPflow
Commit Name: d5c8585b59b649c5474d40f67a9105cd89bf626c
Time: 2017-09-27
Author: art.art.v@gmail.com
File Name: gpflow/ekernels.py
Class Name: Add
Method Name: Linear_RBF_eKxzKzx


Project Name: pytorch/text
Commit Name: 889b03c66f434b4ea2a281b847751afc760b2c8b
Time: 2018-03-17
Author: martin.tutek@gmail.com
File Name: torchtext/data/batch.py
Class Name:
Method Name: _short_str