<commit_before># -*- coding: utf-8 -*-
#
# The main application file
#

from webapp2 import WSGIApplication
from helpers.config import load_config
from controllers import root


__author__  = "<NAME>"
__website__ = "http://example.com"
__email__   = "<EMAIL>"
__licence__ = "MIT"
__version__ = "0.1"


# Map route patterns to controller handlers
routes = [
    ('/', root.HomeRoute)
]


# Load config and set debug flag
debug, config = load_config()


# Create the application
app = WSGIApplication(routes=routes, debug=debug, config=config)


# Define error page handlers for production only
# We want to see full error traces during development
if not debug:
    app.error_handlers[404] = root.error_404
    app.error_handlers[500] = root.error_500<commit_msg>comment edit<commit_after># -*- coding: utf-8 -*-
#
# The main application file
#

from webapp2 import WSGIApplication
from helpers.config import load_config

# Explicitly import controller classes
from controllers import root


__author__  = "<NAME>"
__website__ = "http://example.com"
__email__   = "<EMAIL>"
__licence__ = "MIT"
__version__ = "0.1"


# Map route patterns to controller handlers
routes = [
    ('/', root.HomeRoute)
]


# Load config and set debug flag
debug, config = load_config()


# Create the application
app = WSGIApplication(routes=routes, debug=debug, config=config)


# Define error page handlers for production only
# We want to see full error traces during development
if not debug:
    app.error_handlers[404] = root.error_404
    app.error_handlers[500] = root.error_500
{'fraction_non_alphanumeric': 0.10044785668586052, 'fraction_numerical': 0.020473448496481125, 'mean_word_length': 4.430555555555555, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '687606', 'n_tokens_mistral': 509, 'n_tokens_neox': 474, 'n_words': 156}