<commit_before>(function(window) {

var formatFailedAssertion = function(assertion) {
  return (assertion.message || assertion.method || 'no message') +
    '\n' + (assertion.error.stack || assertion.error);
};

var createStartFn = function(tc, passedInRunner) {
  var nodeunit = window.nodeunit,
      deferredModules;
  
  // Intercept nodeunit.run in case its called before Karma has started
  nodeunit.run = function(modules) {
    deferredModules = modules;
  };

  return function () {
    var totalNumberOfTest = 0;
    var runner = passedInRunner || nodeunit;

    runner.run = function(modules) {
      runner.runModules(modules, {

        testStart: function(name) {
          totalNumberOfTest += 1;
        },

        testDone: function(name, assertions) {<commit_msg>fix: Include assertion details in chrome error reports<commit_after>(function(window) {

var formatFailedAssertion = function(assertion) {
  var stack = assertion.error.stack;
  return (assertion.message || assertion.method || 'no message') +
    '\n' + (assertion.error) +
    (stack ? ('\n' + stack) : '');
};

var createStartFn = function(tc, passedInRunner) {
  var nodeunit = window.nodeunit,
      deferredModules;

  // Intercept nodeunit.run in case its called before Karma has started
  nodeunit.run = function(modules) {
    deferredModules = modules;
  };

  return function () {
    var totalNumberOfTest = 0;
    var runner = passedInRunner || nodeunit;

    runner.run = function(modules) {
      runner.runModules(modules, {

        testStart: function(name) {
          totalNumberOfTest += 1;
        },

        testDone: function(name, assertions) {
{'fraction_non_alphanumeric': 0.11629315566323441, 'fraction_numerical': 0.0024227740763173833, 'mean_word_length': 3.290909090909091, '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': '2042744', 'n_tokens_mistral': 498, 'n_tokens_neox': 481, 'n_words': 118}