<commit_before>var webdriver = require('selenium-webdriver');
var chrome = require('selenium-webdriver/chrome');

var options = new chrome.Options();
var logOptions = new webdriver.logging.Preferences();
logOptions.setLevel('browser', webdriver.logging.Level.ALL);
options.setLoggingPrefs(logOptions);
<commit_msg>More helpful exection handler<commit_after>var webdriver = null;
try {
   webdriver = require('selenium-webdriver');
}
catch (e) {
   console.log(e.message);
   if (e.message.indexOf("Cannot find module") > -1) {
     console.log("Selenium Webdriver needs to be installed.  Please run :");
     console.log("   npm install selenium-webdriver");
   } else {
     throw e;
   }
   process.exit(1);
}

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

var options = new chrome.Options();
var logOptions = new webdriver.logging.Preferences();
logOptions.setLevel('browser', webdriver.logging.Level.ALL);
options.setLoggingPrefs(logOptions);

{'fraction_non_alphanumeric': 0.13955928646379853, 'fraction_numerical': 0.002098635886673662, 'mean_word_length': 5.15483870967742, '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': '7217089', 'n_tokens_mistral': 298, 'n_tokens_neox': 286, 'n_words': 64}