<commit_before>#!/usr/bin/env node

// compile typescript code and run unit tests

const $ = require("./common");

async function main() {
  process.env.NODE_ENV = "test";
  await $.showVersions(["npm"]);

  $(await $.npm("install"));

  if (process.platform === "linux") {
    $(await $.sh('xvfb-run -a -s "-screen 0 1280x720x24" npm test'));
    $(await $.sh('xvfb-run -a -s "-screen 0 1280x720x24" npm run integration-tests'));
    $(await $.npm("run upload-coverage"));
  } else {
    $(await $.npm("test"));
    $(await $.npm("run integration-tests"));
  }
}

main();<commit_msg>Run thorough tests in CI<commit_after>#!/usr/bin/env node

// compile typescript code and run unit tests

const $ = require("./common");

async function main() {
  process.env.NODE_ENV = "test";
  await $.showVersions(["npm"]);

  $(await $.npm("install"));

  if (process.platform === "linux") {
    $(await $.sh('xvfb-run -a -s "-screen 0 1280x720x24" npm test -- --thorough'));
    $(await $.sh('xvfb-run -a -s "-screen 0 1280x720x24" npm run integration-tests'));
    $(await $.npm("run upload-coverage"));
  } else {
    $(await $.npm("test -- --thorough"));
    $(await $.npm("run integration-tests"));
  }
}

main();
{'fraction_non_alphanumeric': 0.2187241093620547, 'fraction_numerical': 0.033140016570008285, 'mean_word_length': 3.4249084249084247, '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': '6018352', 'n_tokens_mistral': 460, 'n_tokens_neox': 424, 'n_words': 109}