<commit_before>class ERR:

    DEFAULT = 'invalid syntax'

  ### SYNTAX

    # Attempted to store an imported module in a non-variable (e.g. object attribute.)
    NONCONST_IMPORT = 'can\'t infer module name from variable name'
    # Attempted to pass a kwarg with an invalid name.
    NONCONST_KEYWORD = 'keyword argument names should be constant'
    # Attempted to get an attribute by non-constant name.
    NONCONST_ATTR = 'can\'t access attributes with non-constant names'
    # Attempted to assign a value to something but a name.
    NONCONST_VARNAME = 'can\'t assign to non-constant names'
    # Same as above, but for function arguments.
    NONCONST_ARGUMENT = 'pattern-matching of function arguments is not supported'

    # Tried to assign something to a built-in.
    BUILTIN_ASSIGNMENT = 'that name is reserved and can\'t be modified'
    FAKE_METHOD_ASSIGNMENT = 'that attribute is reserved and can\'t be modified'

    # Two or more *varargs definitions.
    MULTIPLE_VARARGS = 'multiple *varargs are not allowed'
    # Same as above, but for **varkwargs.
    MULTIPLE_VARKWARGS = 'multiple **varkwargs are not allowed'
    # *varargs or **varkwargs have been assigned a default value in function definition.
    VARARG_DEFAULT = 'neither *varargs nor **varkwargs can have default values'
    # **varkwargs is not the last argument in function definition.
    ARG_AFTER_VARKWARGS = '**varkwargs must be the last argument'
    # *varargs or **varkwargs used on a compile-time function
    VARARG_WITH_BUILTIN = 'can\'t call compile-time functions with *varargs'

    # `else` did not follow an `if` directly.
    NOT_AFTER_IF = 'that should be used only after `if` or `unless`'

    # `switch` contains something other than assignments
    INVALID_STMT_IN_SWITCH = 'all rules in `switch` must be of form `condition = action`'

  ### UNDEFINED BEHAVIOR

    # Attempted to assign a value to a non-local variable.
    FREEVAR_ASSIGNMENT = 'can\'t assign to free variables'

  ### CPYTHON LIMITATIONS

    # More than 255 arguments in a function definition.
    TOO_MANY_ARGS = 'CPython can\'t into 256+ arguments'
    # More than 255 items before a *starred expression in iterable unpacking.
    TOO_MANY_ITEMS_BEFORE_STAR = 'too many items before a *starred expression'
    # An argument between one with a default value and *varargs lacks such a value.
    NO_DEFAULT = 'one of the arguments lacks the required default value'


class CO:<commit_msg>Make some error messages shorter.<commit_after>class ERR:

    DEFAULT = 'invalid syntax'

  ### SYNTAX

    # Attempted to store an imported module in a non-variable.
    NONCONST_IMPORT = 'can\'t infer module name from variable name'
    # Attempted to pass a kwarg with an invalid name.
    NONCONST_KEYWORD = 'keyword argument names should be constant'
    # Attempted to get an attribute by non-constant name.
    NONCONST_ATTR = 'can\'t access attributes with non-constant names'
    # Attempted to assign a value to something but a name.
    NONCONST_VARNAME = 'can\'t assign to non-constant names'
    # Same as above, but for function arguments.
    NONCONST_ARGUMENT = 'function arguments can\'t be pattern-matched'

    # Tried to assign something to a built-in.
    BUILTIN_ASSIGNMENT = 'that name is reserved and can\'t be modified'
    FAKE_METHOD_ASSIGNMENT = 'that attribute is reserved and can\'t be modified'

    # Two or more *varargs definitions.
    MULTIPLE_VARARGS = 'multiple *varargs are not allowed'
    # Same as above, but for **varkwargs.
    MULTIPLE_VARKWARGS = 'multiple **varkwargs are not allowed'
    # *varargs or **varkwargs have been assigned a default value.
    VARARG_DEFAULT = 'neither *varargs nor **varkwargs can have default values'
    # **varkwargs is not the last argument in function definition.
    ARG_AFTER_VARKWARGS = '**varkwargs must be the last argument'
    # *varargs or **varkwargs used on a compile-time function
    VARARG_WITH_BUILTIN = 'can\'t call compile-time functions with *varargs'

    # `else` did not follow an `if` directly.
    NOT_AFTER_IF = 'that should be used only after `if` or `unless`'

    # `switch` contains something other than assignments
    INVALID_STMT_IN_SWITCH = 'switch must only contain `if = then` pairs'

  ### UNDEFINED BEHAVIOR

    # Attempted to assign a value to a non-local variable.
    FREEVAR_ASSIGNMENT = 'can\'t assign to free variables'

  ### CPYTHON LIMITATIONS

    # More than 255 arguments in a function definition.
    TOO_MANY_ARGS = 'CPython can\'t into 256+ arguments'
    # More than 255 items before a *starred expression in iterable unpacking.
    TOO_MANY_ITEMS_BEFORE_STAR = 'too many items before a *starred expression'
    # An argument between one with a default value and *varargs lacks such a value.
    NO_DEFAULT = 'one of the arguments lacks the required default value'


class CO:
{'fraction_non_alphanumeric': 0.0703734099302421, 'fraction_numerical': 0.0036930652441526466, 'mean_word_length': 3.573170731707317, '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': '4563104', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1413, 'n_words': 592}