<commit_before>const express = require('express');
const router = express.Router();
const hbs = require('hbs');

router.get('/', async function(req, res) {
    if (!req.user) {
        res.redirect('/login');
        return;
    }
    res.locals.user = req.user;
    req.session.returnTo = req.path;
    //    logger.website();
    if (req.user) {
        res.locals.url = config.general.isbeta ? 'ws://localhost:8109' : 'wss://ssh.blargbot.xyz:8109';
        res.locals.sessionId = req.sessionID;<commit_msg>nope that was a bad<commit_after>const express = require('express');
const router = express.Router();
const hbs = require('hbs');

router.get('/', async function(req, res) {
    if (!req.user) {
        res.redirect('/login');
        return;
    }
    res.locals.user = req.user;
    req.session.returnTo = req.path;
    //    logger.website();
    if (req.user) {
        res.locals.url = config.general.isbeta ? 'ws://localhost:8085' : 'wss://blargbot.xyz';
        res.locals.sessionId = req.sessionID;
{'fraction_non_alphanumeric': 0.17733990147783252, 'fraction_numerical': 0.011822660098522168, 'mean_word_length': 2.791044776119403, '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': '1653733', 'n_tokens_mistral': 352, 'n_tokens_neox': 339, 'n_words': 63}