80c863816b382afee76dd8f92c7f60d2579d56b8,snips_nlu/tests/test_nlu_engine.py,TestSnipsNLUEngine,test_should_be_deserializable_from_dir,#TestSnipsNLUEngine#Any#Any#,548

Before Change


        // Then
        parser1_config = TestIntentParser1Config()
        parser2_config = TestIntentParser2Config()
        expected_engine_config = NLUEngineConfig(
            [parser1_config, parser2_config]).to_dict()
        // pylint:disable=protected-access
        self.assertDictEqual(engine._dataset_metadata, dataset_metadata)
        // pylint:enable=protected-access
        self.assertDictEqual(engine.config.to_dict(), expected_engine_config)

After Change


        engine = SnipsNLUEngine.from_path(self.tmp_file_path)

        // Then
        expected_engine_config = {
            "unit_name": "nlu_engine",
            "intent_parsers_configs": [
                {
                    "unit_name": "test_intent_parser1"
                },
                {
                    "unit_name": "test_intent_parser2"
                }
            ]
        }
        // pylint:disable=protected-access
        self.assertDictEqual(dataset_metadata, engine._dataset_metadata)
        // pylint:enable=protected-access
        self.assertDictEqual(expected_engine_config, engine.config.to_dict())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: 80c863816b382afee76dd8f92c7f60d2579d56b8
Time: 2019-01-02
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_nlu_engine.py
Class Name: TestSnipsNLUEngine
Method Name: test_should_be_deserializable_from_dir


Project Name: Pinafore/qb
Commit Name: 2f74f04253d5a90459401d0f09ea0559d50371a0
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: check_recall


Project Name: nilmtk/nilmtk
Commit Name: f1aa5b71f3665884fe7ba0f612c2aeff92369ce5
Time: 2015-07-10
Author: nipunb@iiitd.ac.in
File Name: nilmtk/disaggregate/hart_85.py
Class Name: Hart85
Method Name: disaggregate


Project Name: pantsbuild/pants
Commit Name: c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6
Time: 2015-10-23
Author: benjyw@gmail.com
File Name: src/python/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: start_workunit