<commit_before>from mivs import *


@all_renderable()
class Root:
    def index(self, session, message=''):
        return {
            'message': message,
            'studio': session.logged_in_studio()
        }

    def logout(self):
        cherrypy.session.pop('studio_id', None)
        raise HTTPRedirect('login?message={}', 'You have been logged out')

    def continue_app(self, id):
        cherrypy.session['studio_id'] = id
        raise HTTPRedirect('index')

    def login(self, session, message='', studio_name=None, password=<PASSWORD>):
        if cherrypy.request.method == 'POST':<commit_msg>fixed typo in logout redirect<commit_after>from mivs import *


@all_renderable()
class Root:
    def index(self, session, message=''):
        return {
            'message': message,
            'studio': session.logged_in_studio()
        }

    def logout(self):
        cherrypy.session.pop('studio_id', None)
        raise HTTPRedirect('studio?message={}', 'You have been logged out')

    def continue_app(self, id):
        cherrypy.session['studio_id'] = id
        raise HTTPRedirect('index')

    def login(self, session, message='', studio_name=None, password=<PASSWORD>):
        if cherrypy.request.method == 'POST':
{'fraction_non_alphanumeric': 0.13515687851971037, 'fraction_numerical': 0.0, 'mean_word_length': 3.0, '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': '5817292', 'n_tokens_mistral': 396, 'n_tokens_neox': 389, 'n_words': 87}