<commit_before>from flask import Blueprint, render_template, current_app, redirect, url_for, request
from ..call.decorators import crossdomain
from ..extensions import csrf

site = Blueprint('site', __name__, )
csrf.exempt(site)

@site.route('/')
def index():
    INSTALLED_ORG = current_app.config.get('INSTALLED_ORG', '<YOUR ORG NAME>')
    return render_template('site/index.html', INSTALLED_ORG=INSTALLED_ORG)


@site.route('/create')
@crossdomain(origin='*')
def legacy_call_redirect():
	return redirect(url_for('call.create', **request.args), 302)<commit_msg>Redirect loses post params, just return desired function<commit_after>from flask import Blueprint, render_template, current_app, request
from ..call.views import create
from ..call.decorators import crossdomain
from ..extensions import csrf

site = Blueprint('site', __name__, )
csrf.exempt(site)

@site.route('/')
def index():
    INSTALLED_ORG = current_app.config.get('INSTALLED_ORG', '<YOUR ORG NAME>')
    return render_template('site/index.html', INSTALLED_ORG=INSTALLED_ORG)


# legacy route to be compatible with call-congress
@site.route('/create', methods = ['GET', 'POST'])
@crossdomain(origin='*')
def legacy_call_redirect():
	# don't redirect, just return desired function
	return create()
{'fraction_non_alphanumeric': 0.13417521704814522, 'fraction_numerical': 0.0023677979479084454, 'mean_word_length': 6.372093023255814, 'pattern_counts': {'":': 0, '<': 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': '7556143', 'n_tokens_mistral': 414, 'n_tokens_neox': 393, 'n_words': 102}