<commit_before>from functools import wraps
from flask import flash, redirect, url_for, session
from app import views

def login_required(f):
    @wraps(f)
    def decorated_function(*args, **kwargs):
        if 'logged_in' in session:
            return f(*args, **kwargs)
        else:
            flash("Please login to continue.", "danger")
            return redirect(url_for("login"))
    return decorated_function

def for_guests(f):
    @wraps(f)
    def decorated_function(*args, **kwrags):
        if not 'logged_in' in session:
            return f(*args, **kwargs)
        else:
            flash("Invalid Action.", "danger")
            return redirect(url_for("dashboard"))
    return decorated_function<commit_msg>Fix typo in for_guest function.<commit_after>from functools import wraps
from flask import flash, redirect, url_for, session
from app import views

def login_required(f):
    @wraps(f)
    def decorated_function(*args, **kwargs):
        if 'logged_in' in session:
            return f(*args, **kwargs)
        else:
            flash("Please login to continue.", "danger")
            return redirect(url_for("login"))
    return decorated_function

def for_guests(f):
    @wraps(f)
    def decorated_function(*args, **kwargs):
        if not 'logged_in' in session:
            return f(*args, **kwargs)
        else:
            flash("Invalid Action.", "danger")
            return redirect(url_for("dashboard"))
    return decorated_function
{'fraction_non_alphanumeric': 0.10922659430122117, 'fraction_numerical': 0.0, 'mean_word_length': 2.801546391752577, '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': '2809278', 'n_tokens_mistral': 419, 'n_tokens_neox': 416, 'n_words': 123}