def _operation_to_style_map(style, operation, dict_of_log_msg):
    """
        Operations need to be updated in cases that:
        1) no operator is provided and the goal is to == or !=
        2) the style is exclude yet we are checking for contains/within/not contains
    """

    if style == 'excluded':
        if not operation:
            operation = '!='

        elif operation in ['contains', 'within', 'contains_regex']:

            # create a new operator for exclusion
            msg = dict_of_log_msg[operation]
            operation = "{}{}".format('not_',operation)
            dict_of_log_msg.update({operation:msg})

    elif style == 'included':
        if not operation:
            operation = '=='

    return (operation, dict_of_log_msg)