<commit_before>from controllers import *
from bootstrap import app, db
from flask import redirect, url_for
from flask_user import UserManager, SQLAlchemyAdapter, current_user
from models import User, UserInvitation
from proxy import ReverseProxied

__all__ = [ 'app', 'db', 'user_manager' ]

app.secret_key = <KEY>'
user_adapter = SQLAlchemyAdapter(db, User, UserInvitationClass=UserInvitation)
user_manager = UserManager(user_adapter, app)

app.wsgi_app = ReverseProxied(app.wsgi_app)

@app.route('/')
def index():
	if current_user.is_authenticated:
		return redirect(url_for('static', 'main.html'))
	else:
		return redirect(url_for('static', 'index.html'))

# Start development web server
if __name__== '__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)<commit_msg>FIXED url_for() takes one argument<commit_after>from controllers import *
from bootstrap import app, db
from flask import redirect, url_for
from flask_user import UserManager, SQLAlchemyAdapter, current_user
from models import User, UserInvitation
from proxy import ReverseProxied

__all__ = [ 'app', 'db', 'user_manager' ]

app.secret_key = <KEY>'
user_adapter = SQLAlchemyAdapter(db, User, UserInvitationClass=UserInvitation)
user_manager = UserManager(user_adapter, app)

app.wsgi_app = ReverseProxied(app.wsgi_app)

@app.route('/')
def index():
	if current_user.is_authenticated:
		return redirect(url_for('static', filename='main.html'))
	else:
		return redirect(url_for('static', filename='index.html'))

# Start development web server
if __name__== '__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)
{'fraction_non_alphanumeric': 0.11772072636192861, 'fraction_numerical': 0.010018785222291797, 'mean_word_length': 6.795121951219512, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '614532', 'n_tokens_mistral': 547, 'n_tokens_neox': 513, 'n_words': 133}