<commit_before>from flask import Flask, render_template, request, abort
import wintergarten
from redis_cache import cache_it_json

app = Flask(__name__)
app.config.from_object('config.Development')

wintergarten.API_KEY = app.config['TMDB_API_KEY']
wintergarten.IMAGE_BASE = app.config['IMG_BASE_URL']
wintergarten.POSTER_SIZE = app.config['POSTER_SIZE']

@app.route("/")
def home():

    return render_template("home.html")

@app.route('/search', methods=['POST', 'GET'])
def search():

	return	render_template("search.html",
		                    query=request.form['query'],
		                    films=wintergarten.search(request.form['query']))

@app.route('/film/<id>', methods=['GET'])
def film_view(id):

	return render_template('film.html', film=wintergarten.get_film(id))

@app.route('/<listing>', methods=['GET'])
def listing(listing):

	map = {
		'popular': 'popular',
		'theatres': 'now_playing',
		'upcoming': 'upcoming'
	}

	if listing in map:

		return	render_template("listing.html", films=wintergarten.get_set(map[listing]))

	else:

		abort(404)

if __name__ == "__main__":

	app.run()
<commit_msg>Fixed spacing<commit_after>from flask import Flask, render_template, request, abort
import wintergarten
from redis_cache import cache_it_json

app = Flask(__name__)
app.config.from_object('config.Development')

wintergarten.API_KEY = app.config['TMDB_API_KEY']
wintergarten.IMAGE_BASE = app.config['IMG_BASE_URL']
wintergarten.POSTER_SIZE = app.config['POSTER_SIZE']

@app.route("/")
def home():

    return render_template("home.html")

@app.route('/search', methods=['POST', 'GET'])
def search():

	return render_template("search.html",
		                    query=request.form['query'],
		                    films=wintergarten.search(request.form['query']))

@app.route('/film/<id>', methods=['GET'])
def film_view(id):

	return render_template('film.html', film=wintergarten.get_film(id))

@app.route('/<listing>', methods=['GET'])
def listing(listing):

	map = {
		'popular': 'popular',
		'theatres': 'now_playing',
		'upcoming': 'upcoming'
	}

	if listing in map:

		return	render_template("listing.html", films=wintergarten.get_set(map[listing]))

	else:

		abort(404)

if __name__ == "__main__":

	app.run()

{'fraction_non_alphanumeric': 0.1647269471799463, 'fraction_numerical': 0.0026857654431512983, 'mean_word_length': 5.04054054054054, 'pattern_counts': {'":': 2, '<': 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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3530248', 'n_tokens_mistral': 820, 'n_tokens_neox': 746, 'n_words': 135}