<commit_before>var express = require("express");
var router = express.Router();

function secure (req, res, next) {
    console.log("is Logged in???");
    if (!req.session.logged_in) {
        console.log("NA!!!!");
        return res.send(403);
    }
    console.log("YEP!!!!");
    next();
}

router.get("/login/:token", function (req, res) {
    console.log("token:" + req.params.token);
    if ("toki" === req.params.token) {
        console.log("Login Success");
        req.session.logged_in = true;
        res.end("Login Success");
        return;
    }

    console.log("Login Error");
    res.end("Login Error");
});

router.get("/finance", secure, function (req, res) {
    // secure!
    res.end("100 SHEKEL");
});

router.get("*", function (req, res) {
    res.end("Hello Express");
});

module.exports = router;<commit_msg>plumbing<commit_after>var express = require("express");
var router = express.Router();

function secure (req, res, next) {
    console.log("is Logged in???");
    if (!req.session.logged_in) {
        console.log("NA!!!!");
        return res.send(403);
    }
    console.log("YEP!!!!");
    next();
}

router.get("/login/:token", function (req, res) {
    console.log("token:" + req.params.token);
    if ("toki" === req.params.token) {
        console.log("Login Success");
        req.session.logged_in = true;
        res.send("Login Success");
        return;
    }

    console.log("Login Error");
    res.end("Login Error");
});

router.get("/finance", secure, function (req, res) {
    // secure!
    res.send("100 SHEKEL");
});

router.get("*", function (req, res) {
    res.send("Hello Express");
});

module.exports = router;
{'fraction_non_alphanumeric': 0.2066905615292712, 'fraction_numerical': 0.007168458781362007, 'mean_word_length': 2.978622327790974, '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': '279612', 'n_tokens_mistral': 562, 'n_tokens_neox': 550, 'n_words': 113}