<commit_before>'use strict';

// 3rd-party modules

var webdriver = require('selenium-webdriver');

// this module

module.exports = function (browser) {
  var driver = new webdriver.Builder()
    .forBrowser(browser)
    // .setFirefoxOptions()
    .build();

  driver.manage().timeouts().implicitlyWait(1e3);

  if (browser !== 'safari') {
    driver.manage().timeouts().pageLoadTimeout(60e3);
    driver.manage().timeouts().setScriptTimeout(60e3);
  }

  return driver;
};<commit_msg>still setScriptTimeout in Safari, as that is supported<commit_after>'use strict';

// 3rd-party modules

var webdriver = require('selenium-webdriver');

// this module

module.exports = function (browser) {
  var driver = new webdriver.Builder()
    .forBrowser(browser)
    // .setFirefoxOptions()
    .build();

  driver.manage().timeouts().implicitlyWait(1e3);

  if (browser !== 'safari') {
    driver.manage().timeouts().pageLoadTimeout(60e3);
  }
  driver.manage().timeouts().setScriptTimeout(60e3);

  return driver;
};
{'fraction_non_alphanumeric': 0.16090819348469892, 'fraction_numerical': 0.017769002961500493, 'mean_word_length': 4.121212121212121, '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': '451304', 'n_tokens_mistral': 345, 'n_tokens_neox': 322, 'n_words': 61}