<commit_before>import logging

logger = logging.getLogger("heroku_web_autoscale")
logger.setLevel(logging.WARN)

ch = logging.StreamHandler()
ch.setLevel(logging.WARN)

formatter = logging.Formatter('%(name)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
logger.addHandler(ch)<commit_msg>only specifying logging info for non-django instances (for now)<commit_after>import logging

logger = logging.getLogger("heroku_web_autoscale")


ch = logging.StreamHandler()

try:
    import django
except:
    logger.setLevel(logging.WARN)
    ch.setLevel(logging.WARN)

formatter = logging.Formatter('%(name)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
logger.addHandler(ch)
{'fraction_non_alphanumeric': 0.1341991341991342, 'fraction_numerical': 0.0, 'mean_word_length': 6.543478260869565, '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': '4798584', 'n_tokens_mistral': 232, 'n_tokens_neox': 221, 'n_words': 39}