<commit_before>import os
import sys
import logging
import threading
from flask import Flask

ctx = threading.local()

def init_logging():
    logFormat = "%(asctime)s %(levelname)s %(filename)s:%(lineno)s %(message)s"
    logFormatter = logging.Formatter(fmt=logFormat)
    logHandler = logging.StreamHandler()
    logHandler.setFormatter(logFormatter)
    log = logging.getLogger(__name__)
    log.addHandler(logHandler)

init_logging()

app = Flask(__name__)

# This is required for sessions and message flashing
app.secret_key = os.urandom(24)

import pegasus.metrics.views

<commit_msg>Log timestamp is not needed with mod_wsgi<commit_after>import os
import sys
import logging
import threading
from flask import Flask

ctx = threading.local()

def init_logging():
    logFormat = "%(levelname)s %(filename)s:%(lineno)s %(message)s"
    logFormatter = logging.Formatter(fmt=logFormat)
    logHandler = logging.StreamHandler()
    logHandler.setFormatter(logFormatter)
    log = logging.getLogger(__name__)
    log.addHandler(logHandler)

init_logging()

app = Flask(__name__)

# This is required for sessions and message flashing
app.secret_key = os.urandom(24)

import pegasus.metrics.views


{'fraction_non_alphanumeric': 0.09949832775919733, 'fraction_numerical': 0.0033444816053511705, 'mean_word_length': 5.234375, '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': '2855877', 'n_tokens_mistral': 380, 'n_tokens_neox': 371, 'n_words': 93}