<commit_before>"""Exception classes for pycounter"""


class PycounterException(Exception):
    """Base class for all module exceptions"""
    pass


class UnknownReportTypeError(PycounterException):
    """We can't parse this kind of report yet."""
    pass


class SushiException(PycounterException):
    """Base class for SUSHI-related exceptions"""
    pass


class ServiceNotAvailableError(SushiException):
    """Fatal error: service failed due to internal error"""
    pass


class ServiceBusyError(SushiException):
    """Fatal error: server is too busy; try again later"""
    pass


class TooManyRequestsError(SushiException):
    """Fatal error: The client has made too many requests to the service"""
    pass


class RequestorNotAuthorizedError(SushiException):
    """Requestor ID or CustumerReference are not recognized as giving
    authorization to retrieve statistics
    """
    pass


class ReportNotSupportedError(SushiException):
    """Server cannot serve the requested report name or version"""
    pass


class InvalidDateError(SushiException):
    """Dates are formatted incorrectly or illogical"""
    pass


class NoUsageAvailableError(SushiException):
    """Service has no data for requested date range"""
    pass


class SushiWarning(Warning, SushiException):
    """Base class for SUSHI_related warnings"""
    pass


class PartialDataWarning(SushiWarning):
    """Request not completely fullfilled, but available data was returned"""
    pass


class FilterNotSupportedWarning(SushiWarning):
    """a filter was ignored, because it was unsupported.

    Data is returned without that filter applied
    """
    pass


class ReportAttributeNotSupportedWarning(SushiWarning):
    """a report attribute was ignored because it was unsupported.

    Data is returned without that attribute applied
    """
    pass


class InvalidFilterValueWarning(SushiWarning):
    """a filter was ignored, because its value was unsupported.

    Data is returned without that filter applied
    """
    pass
<commit_msg>fix 2 typos in exception docstrings<commit_after>"""Exception classes for pycounter"""


class PycounterException(Exception):
    """Base class for all module exceptions"""
    pass


class UnknownReportTypeError(PycounterException):
    """We can't parse this kind of report yet."""
    pass


class SushiException(PycounterException):
    """Base class for SUSHI-related exceptions"""
    pass


class ServiceNotAvailableError(SushiException):
    """Fatal error: service failed due to internal error"""
    pass


class ServiceBusyError(SushiException):
    """Fatal error: server is too busy; try again later"""
    pass


class TooManyRequestsError(SushiException):
    """Fatal error: The client has made too many requests to the service"""
    pass


class RequestorNotAuthorizedError(SushiException):
    """Requestor ID or CustomerReference are not recognized as giving
    authorization to retrieve statistics
    """
    pass


class ReportNotSupportedError(SushiException):
    """Server cannot serve the requested report name or version"""
    pass


class InvalidDateError(SushiException):
    """Dates are formatted incorrectly or illogical"""
    pass


class NoUsageAvailableError(SushiException):
    """Service has no data for requested date range"""
    pass


class SushiWarning(Warning, SushiException):
    """Base class for SUSHI_related warnings"""
    pass


class PartialDataWarning(SushiWarning):
    """Request not completely fulfilled, but available data was returned"""
    pass


class FilterNotSupportedWarning(SushiWarning):
    """a filter was ignored, because it was unsupported.

    Data is returned without that filter applied
    """
    pass


class ReportAttributeNotSupportedWarning(SushiWarning):
    """a report attribute was ignored because it was unsupported.

    Data is returned without that attribute applied
    """
    pass


class InvalidFilterValueWarning(SushiWarning):
    """a filter was ignored, because its value was unsupported.

    Data is returned without that filter applied
    """
    pass

{'fraction_non_alphanumeric': 0.07720498411922795, 'fraction_numerical': 0.0002443195699975568, 'mean_word_length': 4.221938775510204, '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': '2096634', 'n_tokens_mistral': 1067, 'n_tokens_neox': 980, 'n_words': 397}