<commit_before>module.exports = function(email,password,cb){
    const Users = require('../../models/users');
         new Users().query({where:{email:email}}).fetchAll().then((user) =>{
         const crypto = require("crypto-js")
         const salt = {}
         salt.words = user.toJSON()[0].salt.split(',')
         salt.sigBytes = 16
         const hashed_password = hashed_password = require('./cryptoWrapper').hashPassword(password,salt)//crypto.PBKDF2(password, salt, { keySize: 512/32, iterations: 1000 }) 
         const user_verified = user.toJSON()[0].password === <PASSWORD>.join()
         const out = {logged:user_verified};
         if (user_verified){
             const Token = randtoken = require('neo-rand-token')
             const token = Token.generate(128)
             out.token = token;
             const cache = require('../').cache
             cache.setCache(token,email)
             out.token = token
         }
         cb(out);

     })
<commit_msg>bug fixing<commit_after>module.exports = function(email,password,cb){
             console.log('ok//////////////////////////////////////////////////')
    const Users = require('../../models/users');
         new Users().query({where:{email:email}}).fetchAll().then((user) =>{
         const crypto = require("crypto-js")
         const salt = {}
         salt.words = user.toJSON()[0].salt.split(',')
         salt.sigBytes = 16
         const hashed_password = hashed_password = require('./cryptoWrapper').hashPassword(password,salt)//crypto.PBKDF2(password, salt, { keySize: 512/32, iterations: 1000 })
         const user_verified = user.toJSON()[0].password === <PASSWORD>.join()
         const out = {logged:user_verified};
         if (user_verified){
             const Token = randtoken = require('neo-rand-token')
             const token = Token.generate(128)
             out.token = token;
             const cache = require('../').cache
             cache.setCache(token,email)                                                                                       )
             out.token = token
         }
         cb(out);

     })

{'fraction_non_alphanumeric': 0.16971401781528364, 'fraction_numerical': 0.015939990623534926, 'mean_word_length': 1.84913217623498, 'pattern_counts': {'":': 0, '<': 5, '<?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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4133589', 'n_tokens_mistral': 585, 'n_tokens_neox': 551, 'n_words': 102}