<commit_before>import tornado.web, tornado.ioloop, tornado.httpserver
import tornado.template as template
from  motor import MotorClient
import os

from app import uimodules
from app.handlers import RfpHandler, UploadHandler

static_path =os.path.join(os.getcwd(), 'app/lib/static')
debug=True,
routes = [ 
  ('/',RfpHandler), 
  ('/upload/', UploadHandler),
  ('/static/(.*)',tornado.web.StaticFileHandler, {'path':static_path})]
db = MotorClient().open_sync().c3px


application = tornado.web.Application(routes,db = db,ui_modules=uimodules, debug=debug, upload_dir="uploads") 
if __name__ == "__main__":
  tornado.httpserver.HTTPServer(application).listen(8888)
  tornado.ioloop.IOLoop.instance().start()
<commit_msg>changing how handlers uimodules are included <commit_after>import tornado.web, tornado.ioloop, tornado.httpserver
import tornado.template as template
from  motor import MotorClient
import os

from app import uimodules
from app.handlers import RfpHandler, UploadHandler, HomeHandler

cwd = os.getcwd()
static_path =os.path.join(cwd, 'app/lib/static')
template_path = os.path.join(cwd, "app/templates")
debug=True,
routes = [ 
  ('/',HomeHandler), 
  ('/create',RfpHandler), 
  ('/upload/', UploadHandler),
  ('/static/(.*)',tornado.web.StaticFileHandler, {'path':static_path})]
db = MotorClient().open_sync().c3px


application = tornado.web.Application(routes,db = db,ui_modules=uimodules, debug=debug, upload_dir="uploads", template_path=template_path) 
if __name__ == "__main__":
  tornado.httpserver.HTTPServer(application).listen(8888)
  tornado.ioloop.IOLoop.instance().start()

{'fraction_non_alphanumeric': 0.14348097317529632, 'fraction_numerical': 0.006238303181534623, 'mean_word_length': 6.290909090909091, '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': '4747166', 'n_tokens_mistral': 557, 'n_tokens_neox': 528, 'n_words': 104}