001f27cdb440aae0887fa9d52b6f981962eeb1ea,homeassistant/test.py,TestHTTP,test_api_list_state_entities,#TestHTTP#,149

Before Change



        remote_data = req.json()

        local_data = {entity_id: state.as_dict() for entity_id, state
                      in self.hass.states.all().items()}

        self.assertEqual(local_data, remote_data)

After Change


        req = requests.get(_url(remote.URL_API_STATES),
                           headers=HA_HEADERS)

        remote_data = [ha.State.from_dict(item) for item in req.json()]

        self.assertEqual(self.hass.states.all(), remote_data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 001f27cdb440aae0887fa9d52b6f981962eeb1ea
Time: 2014-10-17
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTP
Method Name: test_api_list_state_entities


Project Name: snipsco/snips-nlu
Commit Name: 8f3d959beea60e0c70076ebd3c6c4b9b946172c0
Time: 2017-05-02
Author: adrien.ball@snips.net
File Name: snips_nlu/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: parse


Project Name: tensorflow/tensorflow
Commit Name: faf44b5391e0e9925efa66f3fc7521955962c091
Time: 2020-11-10
Author: rchao@google.com
File Name: tensorflow/python/distribute/multi_worker_util.py
Class Name:
Method Name: _validate_cluster_spec