<commit_before>function changeStyle(req, res) {
    console.log("session: " + req.session);
    if(!req.session.style) {
        console.log("no css set yet");
        req.session.style = "default.css";
    } else if (req.url == '/changeStyle?') {
        console.log("change css");
        switch(req.session.style) {
            case 'default.css':
                console.log("stylechange: is style defautl");
                req.session.style = 'style2.css';
                break;
            case 'style2.css':
                console.log("stylechange: is style style2");
                req.session.style = 'default.css';
                break;
            default:
                req.session.style = 'default.css';
        }
    }
    console.log("req.session.style: " + req.session.style);
    res.redirect("/");
}

function getStyle(req, res) {
    if (!req.session.style) {
        req.session.style = "default.css";
    }<commit_msg>fix url check for styleSwitcher :smiley:<commit_after>function changeStyle(req, res) {
    console.log("session: " + req.session);
    if(!req.session.style) {
        console.log("no css set yet");
        req.session.style = "default.css";
    } else {
        console.log("change css");
        switch(req.session.style) {
            case 'default.css':
                console.log("stylechange: is style defautl");
                req.session.style = 'style2.css';
                break;
            case 'style2.css':
                console.log("stylechange: is style style2");
                req.session.style = 'default.css';
                break;
            default:
                req.session.style = 'default.css';
        }
    }
    console.log("req.session.style: " + req.session.style);
    res.redirect("/");
}

function getStyle(req, res) {
    if (!req.session.style) {
        req.session.style = "default.css";
    }
{'fraction_non_alphanumeric': 0.1478537360890302, 'fraction_numerical': 0.003179650238473768, 'mean_word_length': 1.801186943620178, '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': '7455069', 'n_tokens_mistral': 560, 'n_tokens_neox': 545, 'n_words': 102}