95b98f67527bfcadc61d92910648c7fbd9c22746,homeassistant/components/homematic.py,,setup,#Any#Any#,137

Before Change



    // Create server thread
    bound_system_callback = partial(_system_callback_handler, hass, config)
    bound_event_callback = partial(_event_callback_handler, hm_hub)
    HOMEMATIC = HMConnection(local=local_ip,
                             localport=local_port,
                             remote=remote_ip,
                             remoteport=remote_port,

After Change


    // init HM variable
    variables = HOMEMATIC.getAllSystemVariables()
    if variables is not None:
        for key, value in variables.items():
            hm_var = HMVariable(key, value)
            HOMEMATIC_VAR.update({key: hm_var})
            entities.append(hm_var)

    // add homematic entites
    entities.append(HMHub())
    component.add_entities(entities)

    ////
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: 95b98f67527bfcadc61d92910648c7fbd9c22746
Time: 2016-08-26
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: setup


Project Name: tech-srl/code2vec
Commit Name: 89fcfe5f49502043e45de93c47acfc6de2180647
Time: 2019-04-05
Author: eladnah@gmail.com
File Name: keras_model.py
Class Name: Code2VecModel
Method Name: _create_metrics_for_keras_model


Project Name: pantsbuild/pants
Commit Name: 427bd0f33076c2595dceb0dfd5bca00a06f95498
Time: 2014-07-10
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jar_create.py
Class Name: JarCreate
Method Name: execute