19a19478d2dc1cdff7321f156512f66dbd6c5dd6,dataset/batch.py,ImagesBatch,load,#ImagesBatch#Any#Any#,224

Before Change


     Batch class for 2D images 
    @action
    def load(self, src, fmt=None):
        return super().load(src, fmt)

After Change


         Load data 
        if fmt is None:
            if isinstance(src, tuple):
                self._data = tuple(src[i][self.indices] if len(src) > i else None for i in range(3))
            else:
                self._data = src[self.indices], None, None
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: analysiscenter/batchflow
Commit Name: 19a19478d2dc1cdff7321f156512f66dbd6c5dd6
Time: 2017-06-07
Author: rhudor@gmail.com
File Name: dataset/batch.py
Class Name: ImagesBatch
Method Name: load


Project Name: pgmpy/pgmpy
Commit Name: 967bf4dbc1353e05dcecfc24c78d9c31b7b50bb8
Time: 2016-05-31
Author: yashuseth2503@gmail.com
File Name: pgmpy/continuous/discretize/unbiased.py
Class Name: UnbiasedDiscretizer
Method Name: get_labels


Project Name: chainer/chainer
Commit Name: 36ca673cdef48744645d6295407737af3ab2c7f5
Time: 2019-10-15
Author: shinichiro.hamaji@gmail.com
File Name: onnx_chainer/replace_func.py
Class Name: WrappedFunctionNode
Method Name: backward