b03b53b426deaa8bdf6c93d91e424c5571acf7e5,fairseq/sequence_generator.py,SequenceGenerator,generate_batched_itr,#SequenceGenerator#Any#Any#Any#Any#Any#Any#Any#,52

Before Change


                    prefix_tokens=s["target"][:, :prefix_size] if prefix_size > 0 else None,
                )
            if timer is not None:
                timer.stop(s["ntokens"])
            for i, id in enumerate(s["id"].data):
                src = input["src_tokens"].data[i, :]
                // remove padding from ref
                ref = utils.strip_pad(s["target"].data[i, :], self.pad)

After Change


                    prefix_tokens=s["target"][:, :prefix_size] if prefix_size > 0 else None,
                )
            if timer is not None:
                timer.stop(sum([len(h[0]["tokens"]) for h in hypos]))
            for i, id in enumerate(s["id"].data):
                src = input["src_tokens"].data[i, :]
                // remove padding from ref
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: elbayadm/attn2d
Commit Name: b03b53b426deaa8bdf6c93d91e424c5571acf7e5
Time: 2018-03-05
Author: edunov@apache.org
File Name: fairseq/sequence_generator.py
Class Name: SequenceGenerator
Method Name: generate_batched_itr


Project Name: ray-project/ray
Commit Name: 6412dfaf383e84e5662cf4bfd3be3927de42e8e1
Time: 2020-12-01
Author: me@barakmich.com
File Name: python/ray/tests/test_experimental_client.py
Class Name:
Method Name: test_remote_functions