<commit_before>"""
errors and exceptions
"""

from werkzeug.exceptions import HTTPException


class ConfigurationError(Exception):
    """<commit_msg>issue #6. fix for compat with werkzeug < 0.9<commit_after>"""
errors and exceptions
"""

from werkzeug.exceptions import HTTPException

def _patch_werkzeug():
    import pkg_resources
    if pkg_resources.get_distribution("werkzeug").version < "0.9":
        # sorry, for touching your internals :).
        import werkzeug._internal
        werkzeug._internal.HTTP_STATUS_CODES[429] = 'Too Many Requests'

_patch_werkzeug()
del _patch_werkzeug

class ConfigurationError(Exception):
    """
{'fraction_non_alphanumeric': 0.1015625, 'fraction_numerical': 0.0125, 'mean_word_length': 4.62280701754386, 'pattern_counts': {'":': 1, '<': 5, '<?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': '3675056', 'n_tokens_mistral': 193, 'n_tokens_neox': 199, 'n_words': 48}