<commit_before>const settings = require('./../../settings.json');
const moment = require('moment');
/**
 * This method should return the response directly to the channel
 * @param {*string array} params 
 * @param {*message} message
 */
const access_log = require('./../commands').access_log;
async function command(params, message) {
    if (settings.owners.includes(message.author.id)) {
        let user = message.mentions.users.first();
        if (!user || user == null) {
            await message.reply('Invalid Arguments')
            return false;
        }
        if(!access_log)
        {
            await message.reply('access_Log is undefined')
            return false;
        }
        let logs_for_user = access_log.filter(ac => ac.author == user.id);
        if (logs_for_user.length < 1) {
            await message.reply("He hasn't used any bot commands since " + moment(access_log[0].time).fromNow());
        }
        else {
            let res = `${user.toString()} has used ${logs_for_user.length} since ${moment(access_log[0].time).fromNow()}`;
            logs_for_user.map((l) => {<commit_msg>Update access_log.js<commit_after>const settings = require('./../../settings.json');
const moment = require('moment');
/**
 * This method should return the response directly to the channel
 * @param {*string array} params 
 * @param {*message} message
 */
async function command(params, message) {
    if (settings.owners.includes(message.author.id)) {
        const access_log = require('./../commands').access_log;
        let user = message.mentions.users.first();
        if (!user || user == null) {
            await message.reply('Invalid Arguments')
            return false;
        }
        if(!access_log)
        {
            await message.reply('access_Log is undefined')
            return false;
        }
        let logs_for_user = access_log.filter(ac => ac.author == user.id);
        if (logs_for_user.length < 1) {
            await message.reply("He hasn't used any bot commands since " + moment(access_log[0].time).fromNow());
        }
        else {
            let res = `${user.toString()} has used ${logs_for_user.length} since ${moment(access_log[0].time).fromNow()}`;
            logs_for_user.map((l) => {
{'fraction_non_alphanumeric': 0.14551083591331268, 'fraction_numerical': 0.0026536930561698365, 'mean_word_length': 2.5069767441860464, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '486037', 'n_tokens_mistral': 629, 'n_tokens_neox': 634, 'n_words': 157}