<commit_before>from wsgiref.simple_server import make_server
from . import WSGIApplication


def run_server(settings):
    application = WSGIApplication(settings)
    httpd = make_server('', 8000, application)
    print("Serving on port 8000...")
    httpd.serve_forever()<commit_msg>Add base tornado server support<commit_after>

def run_server(settings):
    '''Run application using wsgiref test server
    '''
    from wsgiref.simple_server import make_server
    from . import WSGIApplication
    application = WSGIApplication(settings)
    httpd = make_server('', 8000, application)
    print("Serving on port 8000...")
    httpd.serve_forever()


def run_tornado(settings):
    '''Run application using Tornade Web framework WSGI server
    '''
    from tornado import ioloop, httpserver, wsgi
    from . import WSGIApplication
    application = WSGIApplication(settings)
    container = wsgi.WSGIContainer(application)
    http_server = httpserver.HTTPServer(container)
    http_server.listen(8000)
    ioloop.IOLoop.instance().start()
{'fraction_non_alphanumeric': 0.09108341323106424, 'fraction_numerical': 0.019175455417066157, 'mean_word_length': 4.299492385786802, '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': '1645517', 'n_tokens_mistral': 330, 'n_tokens_neox': 297, 'n_words': 77}