5527ec28d162846fc501568560352cf09c4494ca,dipy/io/csareader.py,,read,#Any#,23

Before Change


        hdr_type = 2
        ptr, _ = _ptr_unpack("4s", csa_str, ptr)
        ptr, csa_dict["unused0"] = _ptr_unpack("4s", csa_str, ptr)
    ptr, csa_dict["n_tags"] = _ptr_unpack("<I", csa_str, ptr)
    csa_dict["type"] = hdr_type
    if not 0 < csa_dict["n_tags"] <= 128:
        raise CSAReadError("Number of tags `t` should be "

After Change


    else: // CSA1
        hdr_type = 1
    csa_dict["type"] = hdr_type
    csa_dict["n_tags"], csa_dict["check"] = up_str.unpack("<2I")
    if not 0 < csa_dict["n_tags"] <= 128:
        raise CSAReadError("Number of tags `t` should be "
                           "0 < t <= 128")
    for tag_no in range(csa_dict["n_tags"]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: 5527ec28d162846fc501568560352cf09c4494ca
Time: 2010-03-09
Author: matthew.brett@gmail.com
File Name: dipy/io/csareader.py
Class Name:
Method Name: read


Project Name: keras-team/keras
Commit Name: 0c842391d34d444393ab0f55382d11a4c5105994
Time: 2016-12-19
Author: xihuil.silence@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: dot


Project Name: OpenNMT/OpenNMT-py
Commit Name: cc80175c2704c0dbbfe908f6b678c84ef1741a56
Time: 2017-03-22
Author: bryan.mccann.is@gmail.com
File Name: onmt/Models.py
Class Name: Encoder
Method Name: forward