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

Before Change


            intent_name: {"utterances": dataset_json["utterances"]}
            for intent_name, dataset_json in intent_datasets_json.items()
        }
        entities = dict()

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

After Change


                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
            for entity_name, entity in iteritems(ents)
        }
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: SpiNNakerManchester/sPyNNaker
Commit Name: b788da54c96ccdced6b5ca0b5488f04f95bea31c
Time: 2018-03-29
Author: Andrew.Rowley@manchester.ac.uk
File Name: spynnaker/pyNN/overridden_pacman_functions/spynnaker_data_specification_writer.py
Class Name: SpynnakerDataSpecificationWriter
Method Name: __call__


Project Name: idank/explainshell
Commit Name: 88656f7fe44eb559f1d8e90bc3d6d3327992e4a3
Time: 2013-09-07
Author: idankk86@gmail.com
File Name: explainshell/parser.py
Class Name: CommandLineParser
Method Name: parse_command


Project Name: automl/auto-sklearn
Commit Name: de074e29f36c33d5a8627f9e8ab92f1e0fd46d82
Time: 2014-12-15
Author: feurerm@informatik.uni-freiburg.de
File Name: AutoSklearn/implementations/OneHotEncoder.py
Class Name: OneHotEncoder
Method Name: _fit_transform