<commit_before>'use strict';

var Table = require('cli-table2'),
  chalk = require('chalk'),
  EOL = require("os").EOL;

function getNewTable() {
  return new Table({
    'style': {
      'head': ['blue'],
      'border': ['white']
    },
    colWidths: [20, 60, 10]
  });
}

function getColoredMessage(score, message) {
  let color = chalk.green;
  if (score >= 80 && score <= 95) color = chalk.yellow;
  else if (score < 80) color = chalk.red;
  return color(message ? message : score);
}

function getValue(value) {
  return (typeof value === 'object') ? JSON.stringify(value, null, ' ') : value;
}


class ResultTable {
  constructor(result, options) {
    this.result = result;
    this.options = options;
  }

  setupAdviceTable(type) {<commit_msg>oops, let make 95 green<commit_after>'use strict';

var Table = require('cli-table2'),
  chalk = require('chalk'),
  EOL = require("os").EOL;

function getNewTable() {
  return new Table({
    'style': {
      'head': ['blue'],
      'border': ['white']
    },
    colWidths: [20, 60, 10]
  });
}

function getColoredMessage(score, message) {
  let color = chalk.green;
  if (score >= 80 && score < 95) color = chalk.yellow;
  else if (score < 80) color = chalk.red;
  return color(message ? message : score);
}

function getValue(value) {
  return (typeof value === 'object') ? JSON.stringify(value, null, ' ') : value;
}


class ResultTable {
  constructor(result, options) {
    this.result = result;
    this.options = options;
  }

  setupAdviceTable(type) {
{'fraction_non_alphanumeric': 0.16743572841133816, 'fraction_numerical': 0.01845748187211602, 'mean_word_length': 3.5044510385756675, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1717884', 'n_tokens_mistral': 541, 'n_tokens_neox': 504, 'n_words': 132}