091b3739acb2280a84da3b275d4ad6675ad2e658,lib/streamlit/generic_binary_proto.py,,marshall,#Any#Any#,13

Before Change


    elif isinstance(data, np.ndarray):
        b64encodable = data
    else:
        raise RuntimeError("Invalid binary data format")

    data_b64 = base64.b64encode(b64encodable)
    proto.data = data_b64.decode("utf-8")

After Change


    elif isinstance(data, np.ndarray):
        b64encodable = data
    else:
        raise RuntimeError("Invalid binary data format: %s" % type(data))

    data_b64 = base64.b64encode(b64encodable)
    proto.data = data_b64.decode("utf-8")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: 091b3739acb2280a84da3b275d4ad6675ad2e658
Time: 2018-10-02
Author: thiagot@gmail.com
File Name: lib/streamlit/generic_binary_proto.py
Class Name:
Method Name: marshall


Project Name: dmlc/gluon-cv
Commit Name: 4b8716fd4bd6f462a9db9eee958f2508576ec019
Time: 2018-06-15
Author: cheungchih@gmail.com
File Name: gluoncv/utils/metrics/coco_detection.py
Class Name: COCODetectionMetric
Method Name: __init__


Project Name: MolSSI/QCEngine
Commit Name: 5928cb36cc84496ff3521e41b24dd2e15c7f13ba
Time: 2019-02-18
Author: lori.burns@gmail.com
File Name: qcengine/programs/intf_dftd3/runner.py
Class Name:
Method Name: run_dftd3_from_arrays