<commit_before>'use strict';

let isCI = !!process.env.CI;
let smokeTests = !!process.env.SMOKE_TESTS;

let config = {
  framework: 'qunit',
  test_page: smokeTests ? 'tests/index.html?smoke_tests=true' : 'tests/index.html?hidepassed',
  disable_watching: true,
  browser_start_timeout: smokeTests ? 300000 : 30000,
  browser_args: {
    Chrome: {
      mode: 'ci',
      args: [
        // --no-sandbox is needed when running Chrome inside a container
        process.env.CI ? '--no-sandbox' : null,
        '--headless',
        '--disable-gpu',
        '--disable-dev-shm-usage',
        '--disable-software-rasterizer',
        '--mute-audio',
        '--remote-debugging-port=0',
        '--window-size=1440,900',
      ],
    },
  },
  launch_in_dev: ['Chrome'],
  launch_in_ci: ['Chrome'],
};

if (isCI) {<commit_msg>Increase browser disconnect timeout in smoke tests<commit_after>'use strict';

let isCI = !!process.env.CI;
let smokeTests = !!process.env.SMOKE_TESTS;

let config = {
  framework: 'qunit',
  test_page: smokeTests ? 'tests/index.html?smoke_tests=true' : 'tests/index.html?hidepassed',
  disable_watching: true,
  browser_start_timeout: smokeTests ? 300000 : 30000,
  browser_disconnect_timeout: smokeTests ? 120 : 10,
  browser_args: {
    Chrome: {
      mode: 'ci',
      args: [
        // --no-sandbox is needed when running Chrome inside a container
        process.env.CI ? '--no-sandbox' : null,
        '--headless',
        '--disable-gpu',
        '--disable-dev-shm-usage',
        '--disable-software-rasterizer',
        '--mute-audio',
        '--remote-debugging-port=0',
        '--window-size=1440,900',
      ],
    },
  },
  launch_in_dev: ['Chrome'],
  launch_in_ci: ['Chrome'],
};

if (isCI) {
{'fraction_non_alphanumeric': 0.16455696202531644, 'fraction_numerical': 0.02474108170310702, 'mean_word_length': 2.6765327695560255, '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': '2669306', 'n_tokens_mistral': 647, 'n_tokens_neox': 607, 'n_words': 114}