b9f48af2b764a7f8a95f2ffd4f82f3cb9f6d7917,tflearn/models/generator.py,SequenceGenerator,generate,#SequenceGenerator#Any#Any#Any#Any#,182

Before Change


            next_index = _sample(preds, temperature)
            next_char = self.rev_dic[next_index]

            if type(sequence) == str:
                generated += next_char
                sequence = sequence[1:] + next_char
                whole_sequence += next_char
            else:

After Change


            next_index = _sample(preds, temperature)
            next_char = self.rev_dic[next_index]

            if type(sequence) in [str, unicode]:
                generated += next_char
                sequence = sequence[1:] + next_char
                whole_sequence += next_char
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tflearn/tflearn
Commit Name: b9f48af2b764a7f8a95f2ffd4f82f3cb9f6d7917
Time: 2017-04-27
Author: aymeric.damien@gmail.com
File Name: tflearn/models/generator.py
Class Name: SequenceGenerator
Method Name: generate


Project Name: keras-team/keras
Commit Name: 37fd456a5cd44db6ca23975de6fe151c9713c58f
Time: 2016-03-11
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: LambdaMerge
Method Name: output_shape


Project Name: keras-team/keras
Commit Name: 37fd456a5cd44db6ca23975de6fe151c9713c58f
Time: 2016-03-11
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Lambda
Method Name: output_shape