966ab20f262128fa7194cc0e286249a6328a8410,homeassistant/components/alarm_control_panel/egardia.py,,setup_platform,#Any#Any#Any#Any#,62

Before Change


        _LOGGER.error("Unable to authorize. Wrong password or username")
        return False

    add_devices([EgardiaAlarm(
        name, egardiasystem, hass, rs_enabled, rs_port, rs_codes)], True)


class EgardiaAlarm(alarm.AlarmControlPanel):

After Change


            if D_EGARDIASRV not in hass.data:
                server = egardiaserver.EgardiaServer("", rs_port)
                bound = server.bind()
                if not bound:
                    raise IOError("Binding error occurred while " +
                                  "starting EgardiaServer")
                hass.data[D_EGARDIASRV] = server
                server.start()
        except IOError:
            return
        hass.data[D_EGARDIASRV].register_callback(eg_dev.handle_status_event)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: 966ab20f262128fa7194cc0e286249a6328a8410
Time: 2017-12-28
Author: jeroen_ter_heerdt@hotmail.com
File Name: homeassistant/components/alarm_control_panel/egardia.py
Class Name:
Method Name: setup_platform


Project Name: snipsco/snips-nlu
Commit Name: 75df2742635b09f97e8d7ec9396750aa17046567
Time: 2017-03-24
Author: tristan.deleu@gmail.com
File Name: snips_nlu/intent_parser/builtin_intent_parser.py
Class Name: BuiltinIntentParser
Method Name: get_entities


Project Name: chartbeat-labs/textacy
Commit Name: 1478c86c831a2f616cb41b35695f96e6c07ae3b2
Time: 2017-06-09
Author: burton@chartbeat.com
File Name: textacy/datasets/oxford_text_archive.py
Class Name: OxfordTextArchive
Method Name: _load_and_parse_metadata