<commit_before>var files = window.__karma__.files;
var start = window.__karma__.start;
var tests = [];

Object.keys(files).forEach(function (file) {
  if (file.indexOf('/unit/') > -1) {
    tests.push(file);
  }
});

afterEach(function () {
  skate.destroy();
});

require(tests, start);
<commit_msg>Ensure beforeEach is called with an AMD version of skate.<commit_after>var files = window.__karma__.files;
var start = window.__karma__.start;
var tests = [];

Object.keys(files).forEach(function (file) {
  if (file.indexOf('/unit/') > -1) {
    tests.push(file);
  }
});

require(['/base/src/skate.js'], function (skate) {
  afterEach(skate.destroy);
  require(tests, start);
});

{'fraction_non_alphanumeric': 0.18502202643171806, 'fraction_numerical': 0.002936857562408223, 'mean_word_length': 4.3700787401574805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7408779', 'n_tokens_mistral': 236, 'n_tokens_neox': 235, 'n_words': 47}