<commit_before>"""Views for cvrminer app."""

from flask import render_template

from . import app


@app.route("/")
def index():
    """Return index page of for app."""
    return render_template('base.html')


@app.route("/smiley/")
def smiley():
    """Return smiley page of for app."""
    table = app.smiley.db.tables.smiley.head(n=10000).to_html()
    return render_template('smiley.html', table=table)


<commit_msg>Fix style<commit_after>"""Views for cvrminer app."""

from flask import render_template

from . import app


@app.route("/")
def index():
    """Return index page of for app."""
    return render_template('base.html')


@app.route("/smiley/")
def smiley():
    """Return smiley page of for app."""
    table = app.smiley.db.tables.smiley.head(n=10000).to_html()
    return render_template('smiley.html', table=table)

{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.011904761904761904, 'mean_word_length': 4.066265060240964, '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': '3585541', 'n_tokens_mistral': 286, 'n_tokens_neox': 268, 'n_words': 73}