612ba38ce363ff97b3c89cf3e2096592e2cd4180,aletheia/attacks.py,,imgdiff_pixels,#,241

Before Change


        print(np.array(pairs, dtype=("i4,i4")).reshape(I1[:,:,1].shape))
        print("Channel 3:")
        pairs = list(zip(I1[:,:,2].ravel(), D3.ravel()))
        print(np.array(pairs, dtype=("i4,i4")).reshape(I1[:,:,2].shape))
    else:
        print("Error, too many dimensions:", I1.shape)

After Change


        print(pairs_diff)
        print("Channel 3:")
        pairs = list(zip(I1[:,:,2].ravel(), D3.ravel()))
        pairs_diff = [p for p in pairs if p[1]!=0]
        //print(np.array(pairs, dtype=("i4,i4")).reshape(I1[:,:,2].shape))
        print(pairs_diff)
    else:
        print("Error, too many dimensions:", I1.shape)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: daniellerch/aletheia
Commit Name: 612ba38ce363ff97b3c89cf3e2096592e2cd4180
Time: 2019-07-19
Author: dlerch@gmail.com
File Name: aletheia/attacks.py
Class Name:
Method Name: imgdiff_pixels


Project Name: philipperemy/keras-tcn
Commit Name: 0cfe82c6beb9a28a5ff7da81b86fa0e93c388f14
Time: 2019-11-20
Author: premy@cogent.co.jp
File Name: tasks/save_reload_model.py
Class Name:
Method Name:


Project Name: oddt/oddt
Commit Name: 9e6c74851e51302f887c765f89daac7769146b5b
Time: 2017-07-17
Author: paulina.knut@gmail.com
File Name: oddt/shape.py
Class Name:
Method Name: electroshape