<commit_before><commit_msg>Added a sample python file to interact with the BYOND socket interface.<commit_after>import SocketServer

class UDPHandler(SocketServer.BaseRequestHandler):
    def handle(self):
        data = self.request[0].strip()
        socket = self.request[1]
        print "{} wrote:".format(self.client_address[0])
        print data
        socket.sendto(data.upper(), self.client_address)

if __name__ == "__main__":
    HOST, PORT = "localhost", 8019
    server = SocketServer.UDPServer((HOST, PORT), UDPHandler)
    server.serve_forever()
{'fraction_non_alphanumeric': 0.11565836298932385, 'fraction_numerical': 0.012455516014234875, 'mean_word_length': 3.8956521739130436, 'pattern_counts': {'":': 1, '<': 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': '901153', 'n_tokens_mistral': 170, 'n_tokens_neox': 163, 'n_words': 39}