<commit_before>
var math = require('mathjs');

var pointTable = {};

var renderPoints = function renderPoints(points) {
  if (typeof points !== 'number' || points !== points) {
    return 'wat';
  }

  if (points === Infinity) {
    return 'way too many points';
  }

  return points.toString + ' points';
};

var points = function points(match, response) {
  var matchExpr = match[1],
    points = Math.round(math.eval(matchExpr)),
    multiplier = ('to' === match[3]) - ('from' === match[3]),
    target = match[4];
<commit_msg>Use json.stringify because lol<commit_after>
var math = require('mathjs');

var pointTable = {};

var renderPoints = function renderPoints(points) {
  if (typeof points !== 'number' || points !== points) {
    return 'wat';
  }

  if (points === Infinity) {
    return 'way too many points';
  }

  return JSON.stringify(points) + ' points';
};

var points = function points(match, response) {
  var matchExpr = match[1],
    points = Math.round(math.eval(matchExpr)),
    multiplier = ('to' === match[3]) - ('from' === match[3]),
    target = match[4];

{'fraction_non_alphanumeric': 0.17435424354243542, 'fraction_numerical': 0.007380073800738007, 'mean_word_length': 3.7379912663755457, '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': '1495877', 'n_tokens_mistral': 345, 'n_tokens_neox': 340, 'n_words': 95}