<commit_before>const inspect = require('util').inspect;

module.exports = {
  handler: (msg, answer) => {
    const client = msg.client;
    if (client.config.masters.includes(msg.author.id)) {
      const args = answer.rawArguments;
      let res;

      try {
        res = eval(args); // eslint-disable-line no-eval
        if (typeof res !== 'string') {
          res = inspect(res);
        }
      } catch (err) {
        res = err.msg;
      }
      msg.channel.sendMessage('```js\n' + res + '\n```');
    }
  },
  cmd: 'eval',
};<commit_msg>Fix eval<commit_after>const inspect = require('util').inspect;

module.exports = {
  handler: (msg, answer) => {
    const client = msg.client;
    if (client.config.bot.owners.includes(msg.author.id)) {
      const args = answer.rawArguments;
      let res;

      try {
        res = eval(args); // eslint-disable-line no-eval
        if (typeof res !== 'string') {
          res = inspect(res);
        }
      } catch (err) {
        res = err.msg;
      }
      msg.channel.sendMessage('```js\n' + res + '\n```');
    }
  },
  cmd: 'eval',
};
{'fraction_non_alphanumeric': 0.1760948905109489, 'fraction_numerical': 0.0, 'mean_word_length': 2.0728291316526612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5246512', 'n_tokens_mistral': 367, 'n_tokens_neox': 360, 'n_words': 75}