5dd8c5c10ccc286a67ba4846a81701207b606e0d,keras/layers/convolutional.py,ZeroPadding1D,__init__,#ZeroPadding1D#Any#,1432

Before Change


                self.left_pad = padding.get("left_pad", 0)
                self.right_pad = padding.get("right_pad", 0)
            else:
                raise ValueError("Unexpected key is found in the padding argument. "
                                 "Keys have to be in {"left_pad", "right_pad"}")
        else:
            padding = tuple(padding)
            self.left_pad = padding[0]
            self.right_pad = padding[1]

After Change


                self.left_pad = padding.get("left_pad", 0)
                self.right_pad = padding.get("right_pad", 0)
            else:
                raise ValueError("Unexpected key found in `padding` dictionary. "
                                 "Keys have to be in {"left_pad", "right_pad"}. "
                                 "Found: " + str(padding.keys()))
        else:
            padding = tuple(padding)
            if len(padding) != 2:
                raise ValueError("`padding` should be int, or dict with keys "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: 5dd8c5c10ccc286a67ba4846a81701207b606e0d
Time: 2016-10-12
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: ZeroPadding1D
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 5dd8c5c10ccc286a67ba4846a81701207b606e0d
Time: 2016-10-12
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: ZeroPadding2D
Method Name: __init__


Project Name: chainer/chainercv
Commit Name: d1a4e4661ca2218c9076b998b80319931ef8a4d6
Time: 2017-06-14
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16Layers
Method Name: functions