<commit_before>from flask import Flask
from flask import render_template
from queries import get_filenames, get_metadata

app = Flask(__name__)


@app.route("/")
@app.route("/<item>")
def index(item="002341336"):
	files = get_filenames(item)
	metadata = get_metadata(item)

	return render_template("landing.html", file_id=item, files=files, metadata=metadata)

if __name__ == "__main__":
    app.run(debug=True)<commit_msg>Sort file names so they are displayed in alpha order<commit_after>from flask import Flask
from flask import render_template
from queries import get_filenames, get_metadata

app = Flask(__name__)


@app.route("/")
@app.route("/<item>")
def index(item="002341336"):
	files = sorted(get_filenames(item))
	print files
	metadata = get_metadata(item)

	return render_template("landing.html", file_id=item, files=files, metadata=metadata)

if __name__ == "__main__":
    app.run(debug=True)
{'fraction_non_alphanumeric': 0.12362030905077263, 'fraction_numerical': 0.019867549668874173, 'mean_word_length': 6.621848739495798, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '3323232', 'n_tokens_mistral': 312, 'n_tokens_neox': 298, 'n_words': 74}