<commit_before>from flask import Flask, render_template, json, jsonify
from app.wikipedia import get_search_articles, get_random_articles

app = Flask(__name__)


@app.route('/')
def render_random_content():
    return render_template('posts.html', articles=get_random_articles(5))


@app.route('/search/<query>')
@app.route('/category/<query>')
def show_posts(query):
    return render_template('posts.html', query=query, articles=get_search_articles(query))<commit_msg>Remove unneeded requirements<commit_after>from flask import Flask, render_template
from app.wikipedia import get_search_articles, get_random_articles

app = Flask(__name__)


@app.route('/')
def show_random_posts():
    return render_template('articles.html', articles=get_random_articles(5))


@app.route('/search/<query>')
@app.route('/category/<query>')
def show_posts(query):
    return render_template('articles.html', query=query,
                           articles=get_search_articles(query))
{'fraction_non_alphanumeric': 0.12976313079299692, 'fraction_numerical': 0.0020597322348094747, 'mean_word_length': 6.363636363636363, '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': '603358', 'n_tokens_mistral': 305, 'n_tokens_neox': 287, 'n_words': 55}