<commit_before>import logging

from flask import Flask, render_template, redirect
app = Flask(__name__)

@app.route('/')
def index():
    return render_template("index.html")

# Hacky, need to find who's making this wrong request.
@app.route('/resources/templates/common.html')
def record():
    return redirect("/static/resources/templates/common.html")<commit_msg>Using WhiteNoise for static files serving<commit_after>import logging
from whitenoise import WhiteNoise
from flask import Flask, render_template, redirect

app = Flask(__name__)
app.wsgi_app = WhiteNoise(app.wsgi_app, root="static/")

@app.route('/')
def index():
    return render_template("index.html")

# Hacky, need to find who's making this wrong request.
@app.route('/resources/templates/common.html')
def record():
    return redirect("/static/resources/templates/common.html")
{'fraction_non_alphanumeric': 0.12705882352941175, 'fraction_numerical': 0.0, 'mean_word_length': 5.700787401574803, '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': '6822991', 'n_tokens_mistral': 255, 'n_tokens_neox': 246, 'n_words': 69}