b9a661d7335a7a1c098a98c5085e7252b3c45940,parlai/tasks/convai2/worlds.py,InteractiveWorld,parley,#InteractiveWorld#,76

Before Change


        act = deepcopy(human_agent.act())
        if self.cnt == 0:
            // add the persona on to the first message to model agent
            act.force_set("text", self.p2 + act.get("text", "hi"))
            model_agent.observe(validate(act))
        else:
            model_agent.observe(validate(act))

After Change


                if t.startswith("your persona:"):
                    a2_persona.append(t)
            personas.add("\n".join(a1_persona))
            personas.add("\n".join(a2_persona))
    print("[ loaded " + str(len(personas)) + " personas ]")
    return list(personas)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: facebookresearch/ParlAI
Commit Name: b9a661d7335a7a1c098a98c5085e7252b3c45940
Time: 2020-03-25
Author: jase@fb.com
File Name: parlai/tasks/convai2/worlds.py
Class Name: InteractiveWorld
Method Name: parley


Project Name: regel/loudml
Commit Name: facb98626eb4692fb1cd418c2ee59942735ac444
Time: 2018-01-31
Author: vianney@redmintnetwork.fr
File Name: loudml/loudml/model.py
Class Name: Model
Method Name: __init__


Project Name: regel/loudml
Commit Name: 8c4b5a53f50651578b914034444ee4a00fff4bed
Time: 2018-01-26
Author: vianney@redmintnetwork.fr
File Name: loudml/loudml/model.py
Class Name: Model
Method Name: __init__


Project Name: azavea/raster-vision
Commit Name: 221617f6e125bf6ab920bf7fc9b8c23c3aa9d147
Time: 2019-03-18
Author: lewfish@gmail.com
File Name: rastervision/data/label_source/chip_classification_label_source_config.py
Class Name: ChipClassificationLabelSourceConfigBuilder
Method Name: validate