<commit_before>"""
Handles ambiguities of RFCs.
"""


def normalize_namreply_params(params):
    # So… RFC 2812 says:
    #       "( "=" / "*" / "@" ) <channel>
    #       :[ "@" / "+" ] <nick> *( " " [ "@" / "+" ] <nick> )
    # but spaces seem to be missing (eg. before the colon), so we
    # don't know if there should be one before the <channel> and its
    # prefix.
    # So let's normalize this to “with space”, and strip spaces at the
    # end of the nick list.
    if len(params) == 3:
        assert params[1][0] in "=*@", params
        params.insert(1), params[1][0]
        params[2] = params[2][1:]
    params[3] = params[3].rstrip()
    return params
<commit_msg>normalize_namreply_params: Fix typo in function call<commit_after>"""
Handles ambiguities of RFCs.
"""


def normalize_namreply_params(params):
    # So… RFC 2812 says:
    #       "( "=" / "*" / "@" ) <channel>
    #       :[ "@" / "+" ] <nick> *( " " [ "@" / "+" ] <nick> )
    # but spaces seem to be missing (eg. before the colon), so we
    # don't know if there should be one before the <channel> and its
    # prefix.
    # So let's normalize this to “with space”, and strip spaces at the
    # end of the nick list.
    if len(params) == 3:
        assert params[1][0] in "=*@", params
        params.insert(1, params[1][0])
        params[2] = params[2][1:]
    params[3] = params[3].rstrip()
    return params

{'fraction_non_alphanumeric': 0.17059243397573162, 'fraction_numerical': 0.021413276231263382, 'mean_word_length': 2.505, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2864665', 'n_tokens_mistral': 496, 'n_tokens_neox': 467, 'n_words': 147}