<commit_before>from io import StringIO
from wsgifire.settings import settings

from mako.template import Template
from mako.lookup import TemplateLookup
from mako.runtime import Context

if settings.TEMP_DIRECTORY:
    mako_lookup = TemplateLookup(directories=settings.TEMPLATE_DIRS,
                                 module_directory=settings.TEMP_DIRECTORY)
else:
    mako_lookup = TemplateLookup(directories=settings.TEMPLATE_DIRS)

def render_template(template_path, data):
    template = mako_lookup.get_template(template_path)
    return template.render_unicode(**data)<commit_msg>Edited mako.py to remove unused import statements.<commit_after>from wsgifire.settings import settings

from mako.lookup import TemplateLookup


if settings.TEMP_DIRECTORY:
    mako_lookup = TemplateLookup(directories=settings.TEMPLATE_DIRS,
                                 module_directory=settings.TEMP_DIRECTORY)
else:
    mako_lookup = TemplateLookup(directories=settings.TEMPLATE_DIRS)

def render_template(template_path, data):
    template = mako_lookup.get_template(template_path)
    return template.render_unicode(**data)
{'fraction_non_alphanumeric': 0.06440071556350627, 'fraction_numerical': 0.0, 'mean_word_length': 4.768041237113402, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7304813', 'n_tokens_mistral': 316, 'n_tokens_neox': 313, 'n_words': 63}