<commit_before>
const webdriver = require("selenium-webdriver");
const firefox = require("selenium-webdriver/firefox");
const By = webdriver.By;
const until = webdriver.until;
const Key = webdriver.Key;
const minimist = require("minimist");
const url = require('url');


const args = minimist(process.argv.slice(2),
{
  boolean: ["start", "tests", "websocket"],
  string: ["location"],
});

const isWindows = /^win/.test(process.platform);
const shouldStart = args.start;
const isTests = args.tests;
const useWebSocket = args.websocket;

function binaryArgs() {
  return [
    (!isWindows ? "-" : "") +
    "-start-debugger-server=" +
    (useWebSocket ? "ws:6080" : "6080")
  ];
}
<commit_msg>change path for windows in firefox driver (#1456)<commit_after>
const webdriver = require("selenium-webdriver");
const firefox = require("selenium-webdriver/firefox");
const By = webdriver.By;
const until = webdriver.until;
const Key = webdriver.Key;
const minimist = require("minimist");
const url = require('url');


const args = minimist(process.argv.slice(2),
{
  boolean: ["start", "tests", "websocket"],
  string: ["location"],
});

const isWindows = /^win/.test(process.platform);
const shouldStart = args.start;
const isTests = args.tests;
const useWebSocket = args.websocket;

if (isWindows) {
  // https://github.com/devtools-html/debugger.html/pull/1309
  var path = require('path');
  process.env.PATH = `${path.resolve(__dirname, '../node_modules/geckodriver')};${process.env.PATH}`;
}

function binaryArgs() {
  return [
    (!isWindows ? "-" : "") +
    "-start-debugger-server=" +
    (useWebSocket ? "ws:6080" : "6080")
  ];
}

{'fraction_non_alphanumeric': 0.17704517704517705, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 4.671280276816609, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7518189', 'n_tokens_mistral': 563, 'n_tokens_neox': 538, 'n_words': 118}