ddcf2a4cce64576ecc1409e3cdd6ff4515e1d45f,hyperspy/io_plugins/nexus.py,,_to_text,#Any#,49

Before Change


                text = value.decode("latin-1")
            else:
                text = value.decode("utf-8")
    return text.replace("\x00","").rstrip()

def _text_split(s, sep):
    stack = [s]
    for char in sep:

After Change


                text = value.decode("latin-1")
            else:
                text = value.decode("utf-8")
        toreturn= text.replace("\x00","").rstrip()
    if isinstance(value, (np.int,np.float,np.ndarray)):
        toreturn= value
        
    return toreturn
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 3

Instances


Project Name: hyperspy/hyperspy
Commit Name: ddcf2a4cce64576ecc1409e3cdd6ff4515e1d45f
Time: 2020-02-29
Author: paul.quinn@diamond.ac.uk
File Name: hyperspy/io_plugins/nexus.py
Class Name:
Method Name: _to_text


Project Name: senarvi/theanolm
Commit Name: ed899e25dfd85eb4ee75efeb33c64c081bba7810
Time: 2016-04-21
Author: seppo.git@marjaniemi.com
File Name: setup.py
Class Name:
Method Name:


Project Name: ultralytics/yolov3
Commit Name: 5a9fb2411d89749c9afad21bee50c67b1b2afc1e
Time: 2019-08-15
Author: glenn.jocher@ultralytics.com
File Name: utils/parse_config.py
Class Name:
Method Name: parse_model_cfg


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 65ad632de368062843ba507a3fe740fc5015fa83
Time: 2017-02-21
Author: nstm101339@gmail.com
File Name: train.py
Class Name:
Method Name: train


Project Name: coala/coala-bears
Commit Name: 6a33fbaa4b92bf6891a1adaa29881f0549518691
Time: 2017-01-18
Author: nkprince007@gmail.com
File Name: bears/vcs/git/GitCommitBear.py
Class Name: GitCommitBear
Method Name: run


Project Name: emedvedev/attention-ocr
Commit Name: 5b50317099f0d5dd43e12333de0721c08fafe432
Time: 2017-11-11
Author: ckirmse@yahoo.com
File Name: aocr/util/dataset.py
Class Name:
Method Name: generate


Project Name: pytorch/text
Commit Name: db2e26c490d7d70db3edabf8ddc301275845d635
Time: 2017-10-15
Author: jekbradbury@gmail.com
File Name: torchtext/data/example.py
Class Name: Example
Method Name: fromlist