<commit_before>def send_commit(branch, rev_id):
    config = branch.get_config()
    host = config.get_user_option('message_host').encode('ascii')
    port = int(config.get_user_option('message_port'))
    password = config.get_user_option('message_password').encode('utf-8')
    channel = config.get_user_option('message_channel').encode('utf-8')

    revision = branch.repository.get_revision(rev_id)
    message = ("%s r%d committed by %s\r\n%s"
               % (branch.get_config().get_nickname(),
                  branch.revno(), revision.message,
                  branch.get_config().user_email()))
    import socket
    s = socket.socket()
    s.connect((host, port))
    packit = ''
    for line in message.splitlines():
        packit += '%s:%s:%s\r\n' % (password, channel, line)
    s.sendall(packit)
    s.close()<commit_msg>- Fixed broken string interpolation argument ordering.<commit_after>def send_commit(branch, rev_id):
    config = branch.get_config()
    host = config.get_user_option('message_host').encode('ascii')
    port = int(config.get_user_option('message_port'))
    password = config.get_user_option('message_password').encode('utf-8')
    channel = config.get_user_option('message_channel').encode('utf-8')

    revision = branch.repository.get_revision(rev_id)
    message = ("%s r%d committed by %s\r\n%s"
               % (branch.get_config().get_nickname(),
                  branch.revno(), branch.get_config().user_email(),
                  revision.message))
    import socket
    s = socket.socket()
    s.connect((host, port))
    packit = ''
    for line in message.splitlines():
        packit += '%s:%s:%s\r\n' % (password, channel, line)
    s.sendall(packit)
    s.close()
{'fraction_non_alphanumeric': 0.15339918651946544, 'fraction_numerical': 0.002324230098779779, 'mean_word_length': 3.251851851851852, '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': '189934', 'n_tokens_mistral': 547, 'n_tokens_neox': 538, 'n_words': 91}