7c50d9677032e4ea15c5c5ca5c96a85994aa39a4,nlu_dataset/assistant_dataset.py,AssistantDataset,json,#AssistantDataset#,36

Before Change


        }
        entities = dict()

        for dataset in intent_datasets_json.values():
            for entity, data in dataset["entities"].items():
                if entity not in entities:
                    entities[entity] = data
                elif entity not in BUILTIN_ENTITIES:
                    if data["data"]:
                        entities[entity]["data"].append(data["data"])

        return dict(language=self.language,
                    intents=intents,
                    entities=entities)

After Change


            for ent_name, ent in iteritems(dataset.entities):
                if ent_name not in ents:
                    ents[ent_name] = ent
                elif ent_name not in BUILTIN_ENTITIES:
                    ents[ent_name].utterances.extend(ent.utterances)
        ents = {
            entity_name: entity.json
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: 7c50d9677032e4ea15c5c5ca5c96a85994aa39a4
Time: 2018-02-15
Author: clement.doumouro@gmail.com
File Name: nlu_dataset/assistant_dataset.py
Class Name: AssistantDataset
Method Name: json


Project Name: mozilla/bugbug
Commit Name: 69ac23fe504ff69e873997042c0a0824ceabd165
Time: 2018-10-11
Author: mcastelluccio@mozilla.com
File Name: run.py
Class Name:
Method Name: go


Project Name: google/tangent
Commit Name: 31269a5197170026985db35c4703cc6e9c805ebf
Time: 2017-11-10
Author: bart.vanmerrienboer@gmail.com
File Name: tangent/reverse_ad.py
Class Name: ReverseAD
Method Name: visit_Call


Project Name: geomstats/geomstats
Commit Name: 023cdf9007778efc8ccbd937f3f8b9e20ca1d1a2
Time: 2018-02-05
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_compose


Project Name: google/tangent
Commit Name: 31269a5197170026985db35c4703cc6e9c805ebf
Time: 2017-11-10
Author: bart.vanmerrienboer@gmail.com
File Name: tangent/forward_ad.py
Class Name: ForwardAD
Method Name: visit_Call