<commit_before>class OSFError(Exception):
    """Base class for exceptions raised by the Osf application"""
    pass


class NodeError(OSFError):
    """Raised when an action cannot be performed on a Node model"""
    pass


class NodeStateError(NodeError):
    """Raised when the Node's state is not suitable for the requested action

    Example: Node.remove_node() is called, but the node has non-deleted children
    """
    pass

class SanctionTokenError(NodeError):
    """Base class for errors arising from the user of a sanction token."""
    pass

class InvalidSanctionRejectionToken(SanctionTokenError):
    """Raised if a embargo disapproval token is not found."""
    message_short = "Invalid Token"
    message_long = "This embargo disapproval link is invalid. Are you logged into the correct account?"

class InvalidSanctionApprovalToken(SanctionTokenError):
    """Raised if a embargo disapproval token is not found."""
    message_short = "Invalid Token"
    message_long = "This embargo disapproval link is invalid. Are you logged into the correct account?"
<commit_msg>Update Sanction exception error message and docstrings<commit_after>class OSFError(Exception):
    """Base class for exceptions raised by the Osf application"""
    pass


class NodeError(OSFError):
    """Raised when an action cannot be performed on a Node model"""
    pass


class NodeStateError(NodeError):
    """Raised when the Node's state is not suitable for the requested action

    Example: Node.remove_node() is called, but the node has non-deleted children
    """
    pass

class SanctionTokenError(NodeError):
    """Base class for errors arising from the user of a sanction token."""
    pass

class InvalidSanctionRejectionToken(SanctionTokenError):
    """Raised if a Sanction subclass disapproval token submitted is invalid
     or associated with another admin authorizer
    """
    message_short = "Invalid Token"
    message_long = "This disapproval link is invalid. Are you logged into the correct account?"

class InvalidSanctionApprovalToken(SanctionTokenError):
    """Raised if a Sanction subclass approval token submitted is invalid
     or associated with another admin authorizer
    """
    message_short = "Invalid Token"
    message_long = "This disapproval link is invalid. Are you logged into the correct account?"

{'fraction_non_alphanumeric': 0.07014542343883662, 'fraction_numerical': 0.0, 'mean_word_length': 4.20935412026726, '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': '3789416', 'n_tokens_mistral': 605, 'n_tokens_neox': 577, 'n_words': 264}