<commit_before>'use strict';
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function (config) {
  const { argv } = process;
  let files;

  for (const arg of argv) {
    if (arg.startsWith('-f=')) {
      files = arg.slice(3).split(',');
    }
  }

  config.set({
    files,
    frameworks: ['qunit'],
    basePath: '.',
    browsers: ['HeadlessChrome', 'PhantomJS'],
    customLaunchers: {
      HeadlessChrome: {
        base: 'ChromeHeadless',
        flags: ['--no-sandbox', '--disable-setuid-sandbox'],
      },
    },
    logLevel: config.LOG_ERROR,
    singleRun: true,
  });
};<commit_msg>simplify `karma.conf`<commit_after>'use strict';
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function (config) {
  const files = process.argv
    .find(it => it.startsWith('-f='))
    .slice(3)
    .split(',');

  config.set({
    files,
    frameworks: ['qunit'],
    basePath: '.',
    browsers: ['HeadlessChrome', 'PhantomJS'],
    customLaunchers: {
      HeadlessChrome: {
        base: 'ChromeHeadless',
        flags: ['--no-sandbox', '--disable-setuid-sandbox'],
      },
    },
    logLevel: config.LOG_ERROR,
    singleRun: true,
  });
};
{'fraction_non_alphanumeric': 0.18555008210180624, 'fraction_numerical': 0.0016420361247947454, 'mean_word_length': 2.919614147909968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1299066', 'n_tokens_mistral': 436, 'n_tokens_neox': 431, 'n_words': 74}