def get_module_idx(self, sink_name, source_name):
        result = re.search(str.format(MOD_REGEX,
                                      re.escape(sink_name),
                                      re.escape(source_name)),
                           self._current_module_state)
        if result and result.group(1).isdigit():
            return int(result.group(1))
        else:
            return -1


# pylint: disable=too-many-arguments
Get queryset of all flatpages to be displayed. If a
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/pulseaudio_loopback.py/PAServer.get_module_idx--crossover with--dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/dashboard/pages/views.py/PageListView.get_queryset