<commit_before>import passport from 'passport'
import config from 'config'
import {Strategy as LocalStrategy} from 'passport-local'
import {Strategy as JwtStrategy } from 'passport-jwt'
import { ExtractJwt } from 'passport-jwt'
import bcrypt from 'bcrypt'
import model from './model/models.js'
    
module.exports = (app) => {
    app.use(passport.initialize())
    var opts = {
        jwtFromRequest: ExtractJwt.fromAuthHeaderWithScheme('Bearer'),
        secretOrKey: config.get("jwt-secret-key")
    }
    
    passport.use(new JwtStrategy(<commit_msg>Change export syntax to es6 style<commit_after>import passport from 'passport'
import config from 'config'
import {Strategy as LocalStrategy} from 'passport-local'
import {Strategy as JwtStrategy } from 'passport-jwt'
import { ExtractJwt } from 'passport-jwt'
import bcrypt from 'bcrypt'
import model from './model/models.js'
    
export default function(){
    app.use(passport.initialize())
    var opts = {
        jwtFromRequest: ExtractJwt.fromAuthHeaderWithScheme('Bearer'),
        secretOrKey: config.get("jwt-secret-key")
    }
    
    passport.use(new JwtStrategy(
{'fraction_non_alphanumeric': 0.10963748894783377, 'fraction_numerical': 0.0008841732979664014, 'mean_word_length': 4.168949771689498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3922188', 'n_tokens_mistral': 354, 'n_tokens_neox': 344, 'n_words': 91}