<commit_before>﻿describe('SQLite3JS', function () {
  function waitsForPromise(promise) {
    var done = false;

    promise.then(function () {
      done = true;
    }, function (error) {
      jasmine.getEnv().currentSpec.fail(error);
      done = true;
    });

    waitsFor(function () { return done; });
  }

  var db = null;
<commit_msg>Report arrays of errors correctly<commit_after>﻿describe('SQLite3JS', function () {
  function errorMessage(error) {
    return error.message;
  }

  function waitsForPromise(promise) {
    var done = false;

    promise.then(function () {
      done = true;
    }, function (error) {
      var message;

      if (error.constructor === Array) {
        message = error.map(errorMessage).join(', ');
      } else {
        message = errorMessage(error);
      }

      jasmine.getEnv().currentSpec.fail(message);
      done = true;
    });

    waitsFor(function () { return done; });
  }

  var db = null;

{'fraction_non_alphanumeric': 0.1431578947368421, 'fraction_numerical': 0.002105263157894737, 'mean_word_length': 2.6576923076923076, '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': '790020', 'n_tokens_mistral': 304, 'n_tokens_neox': 290, 'n_words': 60}