<commit_before># encoding: utf-8

"""An example IOLoop/IOStream example, simplified version of the raw example."""


from marrow.server.base import Server
from marrow.server.protocol import Protocol



class HTTPResponse(Protocol):
    def accept(self, client):
        self.server.respond(client, "HTTP/1.0 200 OK\r\nContent-Length: 5\r\n\r\nPong!\r\n", client.close)


if __name__ == '__main__':
    Server(None, 8010, HTTPResponse).start()<commit_msg>Added debug-level logging.<commit_after># encoding: utf-8

"""An example IOLoop/IOStream example, simplified version of the raw example."""


from marrow.server.base import Server
from marrow.server.protocol import Protocol



class HTTPResponse(Protocol):
    def accept(self, client):
        self.server.respond(client, "HTTP/1.0 200 OK\r\nContent-Length: 5\r\n\r\nPong!\r\n", client.close)


if __name__ == '__main__':
    import logging
    
    logging.basicConfig(level=logging.DEBUG)
    
    Server(None, 8010, HTTPResponse).start()
{'fraction_non_alphanumeric': 0.12763819095477386, 'fraction_numerical': 0.022110552763819097, 'mean_word_length': 4.081632653061225, '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': '6157869', 'n_tokens_mistral': 338, 'n_tokens_neox': 309, 'n_words': 80}