a9ec1a8df7bbfd99d1e166fe5d72bafcc23c915b,periodic_table.py,,,#,9

Before Change


    write(img, fmt="img", caption="225px", width=225)
    write(img, fmt="img", caption="175px", width=175)
    write(img, fmt="img", caption="125px", width=125)
    channels = [np.array(img), np.array(img), np.array(img)]
    channels[0][:,:,1:] = 0
    channels[1][:,:,0::2] = 0
    channels[2][:,:,:-1] = 0

After Change


    img_url = "https://www.psdbox.com/wp-content/uploads/2014/08/HDR-landscape-tutorial-A.jpg"
    img_bytes = urllib.request.urlopen(img_url).read()
    img = np.array(Image.open(io.BytesIO(img_bytes)))
    grayscale = np.average(img, axis=2).astype(np.uint8)
    grayscale2 = grayscale.reshape(grayscale.shape + (1,))
    channels = img.transpose((2, 0, 1))
    channels2 = channels.reshape(channels.shape + (1,))
    channels_caption = ["Red", "Green", "Blue"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: a9ec1a8df7bbfd99d1e166fe5d72bafcc23c915b
Time: 2018-02-03
Author: adrien.g.treuille@gmail.com
File Name: periodic_table.py
Class Name:
Method Name:


Project Name: calico/basenji
Commit Name: 8264f081334ce3cea4f5f984317a9f3edfd23a40
Time: 2018-08-12
Author: drk@calicolabs.com
File Name: basenji/seqnn_util.py
Class Name: SeqNNModel
Method Name: test_h5


Project Name: calico/basenji
Commit Name: 8264f081334ce3cea4f5f984317a9f3edfd23a40
Time: 2018-08-12
Author: drk@calicolabs.com
File Name: basenji/seqnn_util.py
Class Name: SeqNNModel
Method Name: test_tfr