ee251c969a5f0751f2abf76007bebebb95872a3d,texar/data/data_decoders.py,MultiSentenceTextDataDecoder,__call__,#MultiSentenceTextDataDecoder#Any#,283

Before Change


        self._max_context_length = max_context_length

    def __call__(self, data):
        return self.decode(data, self.list_items())

    def decode(self, data, items):
        Decodes the data to return the tensors specified by the list of
        items.

After Change


        self._max_utterance_cnt = max_utterance_cnt

    def __call__(self, data):
        outputs = self.decode(data, self.list_items())
        return dict(zip(self.list_items(), outputs))

    def decode(self, data, items): // pylint: disable=too-many-locals
        Decodes the data to return the tensors specified by the list of
        items.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: asyml/texar
Commit Name: ee251c969a5f0751f2abf76007bebebb95872a3d
Time: 2018-03-20
Author: zhitinghu@gmail.com
File Name: texar/data/data_decoders.py
Class Name: MultiSentenceTextDataDecoder
Method Name: __call__


Project Name: asyml/texar
Commit Name: de6d802b480f1504d060915dc520bef9223aac84
Time: 2018-03-21
Author: zhitinghu@gmail.com
File Name: texar/data/data_decoders.py
Class Name: ScalarDataDecoder
Method Name: __call__


Project Name: asyml/texar
Commit Name: 71097bcad4a95450ce3befd08396207a50fa8893
Time: 2018-03-16
Author: zhitinghu@gmail.com
File Name: texar/data/data_decoders.py
Class Name: TextDataDecoder
Method Name: __call__