<commit_before>/* globals requirejs, require */

var moduleName, shouldLoad;

QUnit.config.urlConfig.push({ id: 'nojshint', label: 'Disable JSHint'});

// TODO: load based on params
for (moduleName in requirejs.entries) {
  shouldLoad = false;

  if (moduleName.match(/[-_]test$/)) { shouldLoad = true; }
  if (!QUnit.urlParams.nojshint && moduleName.match(/\.jshint$/)) { shouldLoad = true; }

  if (shouldLoad) { require(moduleName); }
}<commit_msg>Introduce a timeout before tests to fix loading issues.<commit_after>/* globals requirejs, require */

var moduleName, shouldLoad;

QUnit.config.autostart = false;
QUnit.config.urlConfig.push({ id: 'nojshint', label: 'Disable JSHint'});

// TODO: load based on params
setTimeout(function() {
  for (moduleName in requirejs.entries) {
    shouldLoad = false;

    if (moduleName.match(/[-_]test$/)) { shouldLoad = true; }
    if (!QUnit.urlParams.nojshint && moduleName.match(/\.jshint$/)) { shouldLoad = true; }

    if (shouldLoad) { require(moduleName); }
  }
  QUnit.start();
}, 250);
{'fraction_non_alphanumeric': 0.1628131021194605, 'fraction_numerical': 0.002890173410404624, 'mean_word_length': 4.274111675126903, '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': '225122', 'n_tokens_mistral': 362, 'n_tokens_neox': 349, 'n_words': 85}