<commit_before>#!/usr/bin/env python3
import tornado.ioloop
import tornado.web
import argparse

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, World!")

app= tornado.web.Application([
    (r"/", MainHandler)
])

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument('-p', '--port', type=int, default=8080,
                        help='port to listen on')
    args = parser.parse_args()

    print("Starting server on :{}".format(args.port))
    app.listen(args.port)
    tornado.ioloop.IOLoop.instance().start()

# vim: set ts=4 et<commit_msg>app: serve static files<commit_after>#!/usr/bin/env python3
import tornado.ioloop
import tornado.web
import argparse

class IndexHandler(tornado.web.RequestHandler):
    def get(self):
        f = open('frontend/index.html', 'r')
        self.write(f.read())
        f.close()

app = tornado.web.Application([
    (r"/", IndexHandler),
    (r"/js/(.*)", tornado.web.StaticFileHandler, {'path': 'frontend/js'}),
    (r"/lib/(.*)", tornado.web.StaticFileHandler, {'path': 'frontend/lib'})
])

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument('-p', '--port', type=int, default=8080,
                        help='port to listen on')
    args = parser.parse_args()

    print("Starting server on :{}".format(args.port))
    app.listen(args.port)
    tornado.ioloop.IOLoop.instance().start()

# vim: set ts=4 et
{'fraction_non_alphanumeric': 0.17040054310930075, 'fraction_numerical': 0.008146639511201629, 'mean_word_length': 3.3480825958702063, 'pattern_counts': {'":': 2, '<': 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': '266622', 'n_tokens_mistral': 516, 'n_tokens_neox': 489, 'n_words': 99}