87f77f89f44f4efcedcdd1495458907726eab490,lib/streamlit/elements/image_proto.py,,marshall_images,#Any#Any#Any#Any#Any#,86

Before Change



    // If there are no captions then make the captions list the same size
    // as the images list.
    if captions == [None] or captions is None:
        captions = [None] * len(images)

    assert type(

After Change


            captions = [caption]
        // You can pass in a 1-D Numpy array as captions.
        elif type(caption) == np.ndarray and len(caption.shape) == 1:
            captions = caption.tolist()
        // If there are no captions then make the captions list the same size
        // as the images list.
        elif caption is None:
            captions = [None] * len(images)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: 87f77f89f44f4efcedcdd1495458907726eab490
Time: 2019-05-29
Author: 44782696+aaj-st@users.noreply.github.com
File Name: lib/streamlit/elements/image_proto.py
Class Name:
Method Name: marshall_images


Project Name: tensorlayer/tensorlayer
Commit Name: aca1113c020ae5a220d2a075396ecb8a4a873ca6
Time: 2019-03-18
Author: rundi_wu@pku.edu.cn
File Name: tensorlayer/layers/core.py
Class Name: LayerNode
Method Name: __call__


Project Name: aleju/imgaug
Commit Name: 8147376c79287a1fe56f230e6f444c4f2d70f2fe
Time: 2019-10-15
Author: kontakt@ajung.name
File Name: imgaug/augmenters/geometric.py
Class Name: PerspectiveTransform
Method Name: _draw_samples


Project Name: tensorlayer/tensorlayer
Commit Name: aca1113c020ae5a220d2a075396ecb8a4a873ca6
Time: 2019-03-18
Author: rundi_wu@pku.edu.cn
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: _add_node


Project Name: hanxiao/bert-as-service
Commit Name: 2bfe5bfcec7759ae022b1a479411aa7d1b8401f1
Time: 2019-05-06
Author: zyn2122@gmail.com
File Name: example/example7.py
Class Name:
Method Name: