<commit_before>from bs4 import BeautifulSoup
import jinja2
import flask
import json

blueprint = flask.Blueprint('filters', __name__)


@jinja2.contextfilter
@blueprint.app_template_filter()
def prettify(context, code):
    soup = BeautifulSoup(code)
    return soup.prettify()

blueprint.add_app_template_filter(prettify)

<commit_msg>Remove unused import<commit_after>from bs4 import BeautifulSoup
import jinja2
import flask

blueprint = flask.Blueprint('filters', __name__)


@jinja2.contextfilter
@blueprint.app_template_filter()
def prettify(context, code):
    soup = BeautifulSoup(code)
    return soup.prettify()

blueprint.add_app_template_filter(prettify)


{'fraction_non_alphanumeric': 0.08695652173913043, 'fraction_numerical': 0.008995502248875561, 'mean_word_length': 6.67816091954023, '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': '7445458', 'n_tokens_mistral': 230, 'n_tokens_neox': 218, 'n_words': 46}