<commit_before>'use strict';

// use es6-promise during the tests for browser who
// do not support promises natively.
var Promise = require('es6-promise').Promise;

describe('Unit tests', function () {
  require('./unit');
});

describe('Integration tests', function () {
  require('./integration');
});<commit_msg>Only assign Promise polyfill to window.Promise when it is not defined<commit_after>'use strict';
/* globals window: true */

// use es6-promise during the tests for browser who
// do not support promises natively.
if (!window.Promise) {
  window.Promise = require('es6-promise').Promise;
}

describe('Unit tests', function () {
  require('./unit');
});

describe('Integration tests', function () {
  require('./integration');
});
{'fraction_non_alphanumeric': 0.16241610738255033, 'fraction_numerical': 0.005369127516778523, 'mean_word_length': 4.651515151515151, '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': '7169042', 'n_tokens_mistral': 212, 'n_tokens_neox': 205, 'n_words': 66}