<commit_before>import re

import oauth 
from sqlalchemy.exc import SQLAlchemyError
from tornado import locale
from tornado import web, escape
from tornado.options import options

from .useragent import search_ua_strings
from .util import set_default_option


#: initialize options
__all__ = ["DojangHandler", "ApiHandler", "init_options", "run_server"]

def ignore_user_agent(user_agent):
        print user_agent
        if user_agent:
            for ua in options.mobile_ua_ignores:
                if ua and ua.lower() in user_agent.lower():
                    return True
        return False
    



class DojangHandler(web.RequestHandler):
    messages = []

    def messages(self):
        return self.flash_message()

    def redirect(self, url, domain=None):
        if domain:
            url = "%s://%s%s" % ("http", options.default_domain, url)
        super(DojangHandler, self).redirect(url)
<commit_msg>rm print use agent<commit_after>import re

import oauth 
from sqlalchemy.exc import SQLAlchemyError
from tornado import locale
from tornado import web, escape
from tornado.options import options

from .useragent import search_ua_strings
from .util import set_default_option


#: initialize options
__all__ = ["DojangHandler", "ApiHandler", "init_options", "run_server"]

def ignore_user_agent(user_agent):
        if user_agent:
            for ua in options.mobile_ua_ignores:
                if ua and ua.lower() in user_agent.lower():
                    return True
        return False
    



class DojangHandler(web.RequestHandler):
    messages = []

    def messages(self):
        return self.flash_message()

    def redirect(self, url, domain=None):
        if domain:
            url = "%s://%s%s" % ("http", options.default_domain, url)
        super(DojangHandler, self).redirect(url)

{'fraction_non_alphanumeric': 0.08791208791208792, 'fraction_numerical': 0.0, 'mean_word_length': 2.9934210526315788, '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': '5717254', 'n_tokens_mistral': 544, 'n_tokens_neox': 517, 'n_words': 153}