<commit_before>__author__ = 'ntrepid8'
from email_css_inliner.email_css_inliner import EmailCssInlinerRequestHandler
import tornado.options
import tornado.ioloop
import tornado.web
import logging
logger = logging.getLogger(__name__)


def main():
    tornado.options.define(
        "port", default=8888, help="run on the given port", type=int)
    tornado.options.parse_command_line()
    logger.info('md to html with inline css starting...')
    application = tornado.web.Application(
        [(r"/", EmailCssInlinerRequestHandler), ],
        debug=False,
        autoreload=True
    )
    application.listen(8888)
    tornado.ioloop.IOLoop.instance().start()

if __name__ == '__main__':
    main()<commit_msg>have tornado listen for xheaders from nginx<commit_after>__author__ = 'ntrepid8'
from email_css_inliner.email_css_inliner import EmailCssInlinerRequestHandler
import tornado.options
import tornado.ioloop
import tornado.web
import logging
logger = logging.getLogger(__name__)


def main():
    tornado.options.define(
        "port", default=8888, help="run on the given port", type=int)
    tornado.options.parse_command_line()
    logger.info('md to html with inline css starting...')
    application = tornado.web.Application(
        [(r"/", EmailCssInlinerRequestHandler), ],
        debug=False,
        autoreload=True,
    )
    application.listen(8888, xheaders=True)
    tornado.ioloop.IOLoop.instance().start()

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.109375, 'fraction_numerical': 0.012228260869565218, 'mean_word_length': 4.114583333333333, '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': '3235961', 'n_tokens_mistral': 483, 'n_tokens_neox': 452, 'n_words': 100}