<commit_before>from flask import Blueprint, render_template, session
from dart.web.api.entity_lookup import check_login

index_bp = Blueprint('index', __name__)


@index_bp.route('/')
@check_login
def index():
    # Forcing user to authenticate if he is not.
    # This is a work around since python-saml & Flask-login should have made this redirect.
    if not session.get("user_id"):<commit_msg>Removing login check before index.py<commit_after>from flask import Blueprint, render_template, session
from dart.web.api.entity_lookup import check_login

index_bp = Blueprint('index', __name__)


@index_bp.route('/')
def index():
    print "### index '/' %s " % session.get("user_id")
    # Forcing user to authenticate if he is not.
    # This is a work around since python-saml & Flask-login should have made this redirect.
    if not session.get("user_id"):
        print "### render 'info'"
{'fraction_non_alphanumeric': 0.10974244120940649, 'fraction_numerical': 0.0, 'mean_word_length': 4.289940828402367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3928941', 'n_tokens_mistral': 274, 'n_tokens_neox': 267, 'n_words': 91}