<commit_before>#!/usr/bin/python3

# Echo client program
import socket

HOST = 'localhost'    # The remote host
PORT = 50007              # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.sendall(b'Hello, world')
data = s.recv(1024)
s.close()
print('Received', repr(data))<commit_msg>tcp fastopen in client<commit_after>#!/usr/bin/python3

# Echo client program
import socket

MSG_FASTOPEN = 0x20000000

HOST = 'localhost'    # The remote host
PORT = 50007              # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.sendto(b'Hello, world', MSG_FASTOPEN, (HOST, PORT))
s.sendall(b'  world')
data = s.recv(1024)
s.close()
print('Received', repr(data))
{'fraction_non_alphanumeric': 0.13202614379084968, 'fraction_numerical': 0.03790849673202614, 'mean_word_length': 4.2465753424657535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '2385767', 'n_tokens_mistral': 292, 'n_tokens_neox': 262, 'n_words': 73}