2e90375960c8f10072bbf078e571735f846a2e57,onmt/translate/Translator.py,Translator,__init__,#Translator#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,26

Before Change


        self.beam_accum = None
        if beam_trace:
            self.beam_accum = {
                "predicted_ids": [],
                "beam_parent_ids": [],
                "scores": [],
                "log_probs": []}

After Change


                 beam_size, n_best=1,
                 max_length=100,
                 global_scorer=None,
                 copy_attn=False,
                 cuda=False,
                 beam_trace=False,
                 min_length=0,
                 stepwise_penalty=False,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: 2e90375960c8f10072bbf078e571735f846a2e57
Time: 2018-03-27
Author: s.gehrmann@outlook.com
File Name: onmt/translate/Translator.py
Class Name: Translator
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: 9b664bd7cd8dbb9657626166ba61887ed06774d7
Time: 2017-09-13
Author: gpleiss@gmail.com
File Name: gpytorch/utils/toeplitz.py
Class Name:
Method Name: index_coef_to_sparse


Project Name: Kaixhin/Rainbow
Commit Name: 4a4a5f4d06a7fbab86c6b68c47577f82f1b7a60f
Time: 2017-12-25
Author: design@kaixhin.com
File Name: memory.py
Class Name: SumTree
Method Name: __init__