<commit_before>import socket

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
    s.connect(('127.0.0.1', 8080))
    s.sendall(b'I am Holo')

    buffer = []
    while True:
        d = s.recv(4096)
        if not d:
            break
        buffer.append(d)
    data = b''.join(buffer)
    s.close()

print(data.decode('utf-8'))
<commit_msg>add shudown<commit_after>import socket

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
    s.connect(('127.0.0.1', 8080))
    s.sendall(b'I am Holo')
    s.shutdown(socket.SHUT_WR)

    buffer = []
    while True:
        d = s.recv(4096)
        if not d:
            break
        buffer.append(d)
    data = b''.join(buffer)
    s.close()

print(data.decode('utf-8'))

{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.04048582995951417, 'mean_word_length': 2.327354260089686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5471756', 'n_tokens_mistral': 302, 'n_tokens_neox': 282, 'n_words': 54}