<commit_before>var express_jwt = require('express-jwt')


const express = require('express')
const polls_controller = require('./controller')
let logger = require('winston')

module.exports.get_router = function get_router() {
    let routers = express.Router()

    const auth_sites = [
        /\/auth\/google\/\w+/,
        '/'

    ]
    routers.use(express_jwt({ secret: process.env.JWT_SECRET }).unless({ path: auth_sites }), )
    routers.use(function (err, req, res, next) {
        if (err.name === 'UnauthorizedError') {
            res.status(err.status).send({ message: err.message });
            logger.error(err);
            return;
        }
        next();<commit_msg>fix testing with jwt<commit_after>var express_jwt = require('express-jwt')


const express = require('express')
const polls_controller = require('./controller')
let logger = require('winston')

module.exports.get_router = function get_router() {
    let routers = express.Router()

    const auth_sites = [
        /\/auth\/google\/\w+/,
        '/'

    ]
    routers.use(express_jwt({ secret: process.env.JWT_SECRET }).unless({ path: auth_sites }))
    routers.use(function (err, req, res, next) {
        if (err.name === 'UnauthorizedError') {
            res.status(err.status).send({ message: err.message });
            logger.error(err);
            return;
        }
        next();
{'fraction_non_alphanumeric': 0.15613652868554828, 'fraction_numerical': 0.0, 'mean_word_length': 2.6746666666666665, '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': '76799', 'n_tokens_mistral': 431, 'n_tokens_neox': 415, 'n_words': 84}