<commit_before>/**
 * Created by Indexyz on 2017/4/30.
 */

const express = require('express');
let router = express.Router();

router.get('/', (req, res, next) => {
    res.render("auth/access_require")
    // res.status(204).send();
});

router.use('/authorize', (req, res, next) => {
    if (!req.session.user) {
        res.redirect("/auth/login?redirect=" + encodeURIComponent(req.originalUrl))<commit_msg>Remove debug code<commit_after>/**
 * Created by Indexyz on 2017/4/30.
 */

const express = require('express');
let router = express.Router();

router.get('/', (req, res, next) => {
    res.status(204).send();
});

router.use('/authorize', (req, res, next) => {
    if (!req.session.user) {
        res.redirect("/auth/login?redirect=" + encodeURIComponent(req.originalUrl))
{'fraction_non_alphanumeric': 0.2089171974522293, 'fraction_numerical': 0.025477707006369428, 'mean_word_length': 3.8819875776397517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3351936', 'n_tokens_mistral': 272, 'n_tokens_neox': 259, 'n_words': 52}