<commit_before>from __future__ import unicode_literals
from APIHandler import APIHandler

from ClientSocketHandler import ClientSocketHandler
from HomePageHandler import HomePageHandler
from HostSocketHandler import HostSocketHandler
from MyApp import MyApp
from tornado.ioloop import IOLoop
from tornado.web import StaticFileHandler
import os


def main():
    print 'setting up tornado...'
    handlers = [
        (r'/', HomePageHandler),
        (r'/ws/host/', HostSocketHandler),
        (r'/ws/client/', ClientSocketHandler),
        (r'/static/(.*)', StaticFileHandler),
        (r'/api/', APIHandler)
    ]
    settings = dict(static_path=os.path.join(os.path.dirname(__file__), 'static'))
    app = MyApp(handlers, **settings)
    app.listen(8080)
    IOLoop.instance().start()


if __name__ == '__main__':
    main()<commit_msg>changed port<commit_after>from __future__ import unicode_literals
from APIHandler import APIHandler

from ClientSocketHandler import ClientSocketHandler
from HomePageHandler import HomePageHandler
from HostSocketHandler import HostSocketHandler
from MyApp import MyApp
from tornado.ioloop import IOLoop
from tornado.web import StaticFileHandler
import os


def main():
    print 'setting up tornado...'
    handlers = [
        (r'/', HomePageHandler),
        (r'/ws/host/', HostSocketHandler),
        (r'/ws/client/', ClientSocketHandler),
        (r'/static/(.*)', StaticFileHandler),
        (r'/api/', APIHandler)
    ]
    settings = dict(static_path=os.path.join(os.path.dirname(__file__), 'static'))
    app = MyApp(handlers, **settings)
    app.listen(5000)
    IOLoop.instance().start()


if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.11582089552238806, 'fraction_numerical': 0.004776119402985075, 'mean_word_length': 3.929411764705882, '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': '3147821', 'n_tokens_mistral': 518, 'n_tokens_neox': 483, 'n_words': 126}