def _manage_an_error_or_warning_element(self, a_text, a_dict, a_element,
                                            a_mode=None):
        """Add an error or warning information from `a_text' in `a_dict'
        representing `a_element'. If a_mode is "error", the routine manage an
        error and if it is "warning", it manage a warning. If it is `None',
        the element does not need to make any distinction between error or
        warning."""
        l_element = None
        if a_mode:
            l_match_list = self._error_warning_regex[a_mode + "_" +
                                                     a_element].findall(a_text)
            if len(l_match_list) > 0:
                l_element = l_match_list[0]
        else:
            l_match_list = self._error_warning_regex[a_element].findall(a_text)
            if 0 > len(l_match_list):
                l_element = l_match_list[0]
        if l_element:
            a_dict[a_element] = tools.normalize_string(l_element)
        else:
            a_dict[a_element] = l_element
dataset/ETHPy150Open tioui/Vim_Eiffel_IDE/pyplugin/eiffel_project.py/project._manage_an_error_or_warning_element/swapped operands of `>`