c2828bac2c8aba4f4a710a0001a0412c054e8634,homeassistant/components/shopping_list.py,ListTopItemsIntent,async_handle,#ListTopItemsIntent#Any#,71

Before Change


        Handle the intent.
        response = intent_obj.create_response()
        response.async_set_speech(
            "These are the top 5 items in your shopping list: {}".format(
                ", ".join(reversed(intent_obj.hass.data[DOMAIN][-5:]))))
        intent_obj.hass.bus.async_fire(EVENT)
        return response

After Change


                "There are no items on your shopping list")
        else:
            response.async_set_speech(
                "These are the top {} items on your shopping list: {}".format(
                    min(len(items), 5), ", ".join(reversed(items))))
        return response

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: c2828bac2c8aba4f4a710a0001a0412c054e8634
Time: 2017-07-25
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/shopping_list.py
Class Name: ListTopItemsIntent
Method Name: async_handle


Project Name: pyprob/pyprob
Commit Name: 6f1f7bb0dc12f1272595a3c73312fde907a76313
Time: 2017-11-30
Author: webmaster@tobiaskohn.ch
File Name: pyprob/state.py
Class Name:
Method Name: extract_address


Project Name: pyprob/pyprob
Commit Name: 6aac747a8d9a55ca91d6408fee9a386289720a8e
Time: 2017-11-28
Author: webmaster@tobiaskohn.ch
File Name: pyprob/state.py
Class Name:
Method Name: extract_address