5874885c1736edc321ec202cb6e15d88e4324a5c,mne/externals/pymatreader/utils.py,,_handle_hdf5_dataset,#Any#,101

Before Change


            data.dtype == numpy.dtype("object"):

        data = [hdf5_object.file[cur_data] for cur_data in data.flatten()]
        if len(data) == 1 and hdf5_object.attrs["MATLAB_class"] == b"cell":
            data = data[0]
            data = data[()]
            return _assign_types(data)

After Change


        data = [hdf5_object.file[cur_data] for cur_data in data.flatten()]
        if len(data) == 1 and matlab_class == "cell":
            data = data[0]
            matlab_class = data.attrs.get("MATLAB_class",
                                          matlab_class).decode()
            data = data[()]
            return _assign_types(data, matlab_class)

        data = _hdf5todict(data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mne-tools/mne-python
Commit Name: 5874885c1736edc321ec202cb6e15d88e4324a5c
Time: 2020-05-19
Author: thomas.hartmann@th-ht.de
File Name: mne/externals/pymatreader/utils.py
Class Name:
Method Name: _handle_hdf5_dataset


Project Name: RaRe-Technologies/gensim
Commit Name: 12110715c6e36f02d13bb82fd5382e7f9153686b
Time: 2019-02-12
Author: misha.penkov@gmail.com
File Name: gensim/models/_fasttext_bin.py
Class Name:
Method Name: _load_vocab


Project Name: CyberReboot/NetworkML
Commit Name: cd7bd3f453dc906c4ca1541232236b3a4bdc2bb7
Time: 2019-12-10
Author: josh@vandervecken.com
File Name: networkml/parsers/pcap/reader.py
Class Name:
Method Name: packetizer