<commit_before>#!/usr/bin/env python

from circuits.net.sockets import TCPServer

class EchoServer(TCPServer):

    def read(self, sock, data):
        self.write(sock, data)
    
EchoServer(8000).run()<commit_msg>examples: Use Write Event in echoserver.py<commit_after>#!/usr/bin/env python

from circuits.net.sockets import TCPServer, Write

class EchoServer(TCPServer):

    def read(self, sock, data):
        self.push(Write(sock, data))
    
EchoServer(8000).run()
{'fraction_non_alphanumeric': 0.125531914893617, 'fraction_numerical': 0.01702127659574468, 'mean_word_length': 4.233333333333333, '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': '2093742', 'n_tokens_mistral': 169, 'n_tokens_neox': 156, 'n_words': 35}