<commit_before>import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)

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

@app.route("/<zip_code>")
def forecast(zip_code):
	if not zip_codes.is_listed(zip_code):
		return render_template("wrong_zip.html", zip_code=zip_code),404
	city = "/".join(zip_codes.city(zip_code))
	txt = weather.forecast_txt(zip_code)
	alerts,forecast,meta = weather.parse(txt)
	print(forecast)
	return render_template(
		"forecast.html",city=city,alerts=alerts,forecast=forecast,meta=meta
	)

@app.errorhandler(404)
def page_not_found(error):
    return render_template('404.html'), 404

@app.errorhandler(500)
def server_error(error):
	return render_template('500.html',error=error), 500

@app.route('/favicon.ico')
def favicon():
    return send_from_directory(os.path.join(app.root_path, 'static/img'),
                               'favicon.ico', mimetype='image/vnd.microsoft.icon')

if __name__ == "__main__":
    app.run(debug=True)<commit_msg>A little spacing between duplicate city names<commit_after>import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)

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

@app.route("/<zip_code>")
def forecast(zip_code):
	if not zip_codes.is_listed(zip_code):
		return render_template("wrong_zip.html", zip_code=zip_code),404
	city = " / ".join(zip_codes.city(zip_code))
	txt = weather.forecast_txt(zip_code)
	alerts,forecast,meta = weather.parse(txt)
	print(forecast)
	return render_template(
		"forecast.html",city=city,alerts=alerts,forecast=forecast,meta=meta
	)

@app.errorhandler(404)
def page_not_found(error):
    return render_template('404.html'), 404

@app.errorhandler(500)
def server_error(error):
	return render_template('500.html',error=error), 500

@app.route('/favicon.ico')
def favicon():
    return send_from_directory(os.path.join(app.root_path, 'static/img'),
                               'favicon.ico', mimetype='image/vnd.microsoft.icon')

if __name__ == "__main__":
    app.run(debug=True)
{'fraction_non_alphanumeric': 0.13416815742397137, 'fraction_numerical': 0.018783542039355994, 'mean_word_length': 5.521865889212828, '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': '1471875', 'n_tokens_mistral': 807, 'n_tokens_neox': 754, 'n_words': 141}