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


                    ents[ent_name].utterances.extend(ent.utterances)
        ents = {
            entity_name: entity.json
            for entity_name, entity in iteritems(ents)
        }
        return dict(language=self.language, intents=intents, entities=ents)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: tensorflow/tensorboard
Commit Name: 21491193a9943e93c94a5bf85bf608d43585eb86
Time: 2019-07-17
Author: wchargin@gmail.com
File Name: tensorboard/plugins/text/text_plugin.py
Class Name: TextPlugin
Method Name: index_impl


Project Name: brian-team/brian2
Commit Name: 8ce9ba936cbce97d2b3f90c5fffe0863345d76b5
Time: 2017-08-28
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLCodeGenerator
Method Name: find_function_names