<commit_before>/*

Generic IRC events. Simply passing selected IRC params into javascript objects

Example
    ERROR: {              IRC Command to match
        event: 'error',   Event name to trigger on the cleint instance
        reason: -1        Property on the triggered event, and which IRC param to should contain
    },
*/

var generics = {
    ERROR: {
        event: 'error',
        reason: -1
    },

    ERR_PASSWDMISMATCH: {
        event: 'irc_error',
        error: 'password_mismatch'
    },

    ERR_LINKCHANNEL: {
        event: 'channel_redirect',
        from: 1,
        to: 1
    },

    ERR_NOSUCHNICK: {
        event: 'irc_error',
        error: 'no_such_nick',
        nick: 1,
        reason: -1
    },

    ERR_CANNOTSENDTOCHAN: {
        event: 'irc_error',
        error: 'cannot_send_to_channel',
        channel: 1,
        reason: -1
    },

    ERR_TOOMANYCHANNELS: {<commit_msg>'ERROR' command remapped to 'irc_error' events to prevent killing the node process<commit_after>/*

Generic IRC events. Simply passing selected IRC params into javascript objects

Example
    ERROR: {              IRC Command to match
        event: 'error',   Event name to trigger on the cleint instance
        reason: -1        Property on the triggered event, and which IRC param to should contain
    },
*/

var generics = {
    ERROR: {
        event: 'irc_error',
        error: 'irc',
        reason: -1
    },

    ERR_PASSWDMISMATCH: {
        event: 'irc_error',
        error: 'password_mismatch'
    },

    ERR_LINKCHANNEL: {
        event: 'channel_redirect',
        from: 1,
        to: 1
    },

    ERR_NOSUCHNICK: {
        event: 'irc_error',
        error: 'no_such_nick',
        nick: 1,
        reason: -1
    },

    ERR_CANNOTSENDTOCHAN: {
        event: 'irc_error',
        error: 'cannot_send_to_channel',
        channel: 1,
        reason: -1
    },

    ERR_TOOMANYCHANNELS: {
{'fraction_non_alphanumeric': 0.09454545454545454, 'fraction_numerical': 0.008311688311688312, 'mean_word_length': 1.9093655589123868, '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': '4131588', 'n_tokens_mistral': 626, 'n_tokens_neox': 585, 'n_words': 173}