<commit_before>/*
*api权限、安全相关，包括验证token、authorization、生成authToken等
*/

var uuid = require('node-uuid');
var crypto = require('crypto');
var util = require('../util/util');
var utility = require('utility');
var redisClient = require('../common/RedisClient');
var config = require('../config').config;
var logger = require('log4js').getLogger();
var consts = require('../util/constant');

var tokens = ['80451223123121secersb678954'];

var AUTH_TOKEN_PREFIX = 'AuthToken_';

var SecurityService = module.exports;

/*<commit_msg>	modified:   services/SecurityService.js<commit_after>/*
*api权限、安全相关，包括验证token、authorization、生成authToken等
*/

var uuid = require('node-uuid');
var crypto = require('crypto');
var util = require('../util/util');
var utility = require('utility');
var redisClient = require('../common/RedisClient');
var config = require('../config').config;
var logger = require('log4js').getLogger();
var consts = require('../util/constant');

var tokens = ['80451223123121secersb678954'];

var AUTH_TOKEN_PREFIX = 'AuthToken_';

var securityService = module.exports;

/*
{'fraction_non_alphanumeric': 0.1788693234476367, 'fraction_numerical': 0.03892493049119555, 'mean_word_length': 5.967741935483871, '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': '6583936', 'n_tokens_mistral': 376, 'n_tokens_neox': 365, 'n_words': 72}