<commit_before>const Promise = require('es6-promise').Promise;
const selenium = require('selenium-standalone');

const startSeleniumServer = () => {
  return new Promise((resolve, reject) => {
    selenium.start((err, process) => err ? reject(err) : resolve(process));
  });
};

let seleniumProcess;

exports.config = {
  baseUrl: 'http://todomvc.com',
  framework: 'mocha',
  sync: false,
  waitforTimeout: 60000,
  logLevel: 'silent',
  coloredLogs: true,
  reporters: ['spec'],
  specs: ['./tests/*.test.js'],
  capabilities: [
    // {
    //   browserName: 'chrome',
    //   chromeOptions: {
    //     args: ['no-sandbox', 'disable-web-security']
    //   }
    // },
    {
      browserName: 'firefox'
    }
  ],
  mochaOpts: {
    timeout: 40000,
    compilers: ['js:babel-core/register']
  },
  onPrepare: () => {
    return startSeleniumServer()<commit_msg>Run tests on both chroe and firefox<commit_after>const Promise = require('es6-promise').Promise;
const selenium = require('selenium-standalone');

const startSeleniumServer = () => {
  return new Promise((resolve, reject) => {
    selenium.start((err, process) => err ? reject(err) : resolve(process));
  });
};

let seleniumProcess;

exports.config = {
  baseUrl: 'http://todomvc.com',
  framework: 'mocha',
  sync: false,
  waitforTimeout: 60000,
  logLevel: 'silent',
  coloredLogs: true,
  reporters: ['spec'],
  specs: ['./tests/*.test.js'],
  capabilities: [
    {
      browserName: 'chrome',
      chromeOptions: {
        args: ['no-sandbox', 'disable-web-security']
      }
    },
    {
      browserName: 'firefox'
    }
  ],
  mochaOpts: {
    timeout: 40000,
    compilers: ['js:babel-core/register']
  },
  onPrepare: () => {
    return startSeleniumServer()
{'fraction_non_alphanumeric': 0.17586206896551723, 'fraction_numerical': 0.01264367816091954, 'mean_word_length': 3.1951807228915663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '172622', 'n_tokens_mistral': 627, 'n_tokens_neox': 595, 'n_words': 111}