<commit_before># -*- coding: utf-8 -*-
'''
Utilities to enable exception reraising across the master commands

'''
from __future__ import absolute_import

# Import salt libs
import salt.exceptions
import salt.utils.event

# Import 3rd-party libs
from salt.ext.six.moves import builtins as exceptions

def raise_error(name=None, args=None, message=''):
    '''
    Raise an exception with __name__ from name, args from args
    If args is None Otherwise message from message\
    If name is empty then use "Exception"
    '''
    name = name or 'Exception'
    if hasattr(salt.exceptions, name):<commit_msg>Must have 2 lines between imports and code<commit_after># -*- coding: utf-8 -*-
'''
Utilities to enable exception reraising across the master commands

'''
from __future__ import absolute_import

# Import salt libs
import salt.exceptions
import salt.utils.event

# Import 3rd-party libs
from salt.ext.six.moves import builtins as exceptions


def raise_error(name=None, args=None, message=''):
    '''
    Raise an exception with __name__ from name, args from args
    If args is None Otherwise message from message\
    If name is empty then use "Exception"
    '''
    name = name or 'Exception'
    if hasattr(salt.exceptions, name):
{'fraction_non_alphanumeric': 0.08856682769726248, 'fraction_numerical': 0.004025764895330112, 'mean_word_length': 3.9130434782608696, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1958303', 'n_tokens_mistral': 358, 'n_tokens_neox': 349, 'n_words': 142}