abb3fad266b933efcabbd4f208d515a495127a4f,mesh_tensorflow/transformer/utils.py,,eval_model,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,1710

Before Change


            inputs.append(ex["inputs_plaintext"])
          else:
            inputs.append(ex["inputs"])
          if "targets_plaintext" in ex:
            targets.append(
                eval_dataset.postprocess_fn(
                    tf.compat.as_text(ex["targets_plaintext"]),
                    example=ex, is_target=True)
            )
          else:
            targets.append(
                eval_dataset.postprocess_fn(
                    ex["targets"], example=ex, is_target=True)
            )
        if output_eval_examples:
          targets_filename = os.path.join(
              eval_summary_dir,
              "{}_targets".format(eval_dataset.name),

After Change


          if "targets_pretokenized" in ex:
            targets_pretokenized = ex["targets_pretokenized"]
            if isinstance(targets_pretokenized, bytes):
              targets_pretokenized = targets_pretokenized.decode("utf-8")
            targets.append(
                eval_dataset.postprocess_fn(
                    targets_pretokenized, example=ex, is_target=True)
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/mesh
Commit Name: abb3fad266b933efcabbd4f208d515a495127a4f
Time: 2020-12-21
Author: fjord@google.com
File Name: mesh_tensorflow/transformer/utils.py
Class Name:
Method Name: eval_model


Project Name: THUNLP-MT/THUMT
Commit Name: 051bd416d3c41002f6d58b9dd71516a27243d178
Time: 2017-11-11
Author: playinf@stu.xmu.edu.cn
File Name: thumt/data/vocab.py
Class Name:
Method Name: get_control_mapping


Project Name: biotite-dev/biotite
Commit Name: 1675e2873db77528ef1dee6fc49aaccfca9a369b
Time: 2020-11-27
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/dotbracket.py
Class Name:
Method Name: dot_bracket