<commit_before>var evals = function(template, result, vars) {
  strictEqual(Codie.template(template)(vars), result);
};

var raisesWithMessage = function(block, constructor, message) {
  raises(
    block,
    function(e) { return e instanceof constructor && e.message === message; }
  );
};

module("Codie.template");<commit_msg>Extend QUnit a bit more cleanly<commit_after>QUnit.extend(QUnit, {
  evals: function(template, result, vars) {
    QUnit.strictEqual(Codie.template(template)(vars), result);
  },

  raisesWithMessage: function(block, constructor, message) {
    QUnit.raises(
      block,
      function(e) { return e instanceof constructor && e.message === message; }
    );
  }
});

var evals             = QUnit.evals,
    raisesWithMessage = QUnit.raisesWithMessage;

module("Codie.template");
{'fraction_non_alphanumeric': 0.1382716049382716, 'fraction_numerical': 0.0, 'mean_word_length': 4.266233766233766, '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': '6094338', 'n_tokens_mistral': 253, 'n_tokens_neox': 254, 'n_words': 52}