<commit_before>var exec = require('child_process').exec,
    fs = require('fs'),
    http = require('http'),
    tunnelJar = '/tmp/BrowserStackTunnel.jar',
    utils = require('./utils');

var Tunnel = function Tunnel (key, port, callback, err) {
  var that = {};

  function tunnelLauncher () {
    var tunnelCommand = 'java -jar ' + tunnelJar + ' ';
    tunnelCommand += key + ' ';
    tunnelCommand += 'localhost' + ',';
    tunnelCommand += port.toString() + ',';
    tunnelCommand += '0';

    if (typeof callback !== 'function') {
      callback = function () {};
    }

    console.log("Launching tunnel..");
    var subProcess = exec(tunnelCommand, function (error, stdout, stderr) {
      if (stdout.indexOf('Error') >= 0) {
        console.log("..Failed");
        console.log(stdout);
        process.exit(1);
      }
    });

    var data = '';
    var running = false;
    var runMatcher = "You can now access your local server(s)";
<commit_msg>this should work now<commit_after>var exec = require('child_process').exec,
    fs = require('fs'),
    http = require('http'),
    tunnelJar = '/tmp/BrowserStackTunnel.jar',
    utils = require('./utils');

var Tunnel = function Tunnel (key, port, callback, err) {
  var that = {};

  function tunnelLauncher () {
    var tunnelCommand = 'java -jar ' + tunnelJar + ' ';
    tunnelCommand += key + ' ';
    tunnelCommand += 'localhost' + ',';
    tunnelCommand += port.toString() + ',';
    tunnelCommand += '0';
    tunnelCommand += ' -force -onlyAutomate';

    if (typeof callback !== 'function') {
      callback = function () {};
    }

    console.log("Launching tunnel..");
    var subProcess = exec(tunnelCommand, function (error, stdout, stderr) {
      if (stdout.indexOf('Error') >= 0) {
        console.log("..Failed");
        console.log(stdout);
        process.exit(1);
      }
    });

    var data = '';
    var running = false;
    var runMatcher = "You can now access your local server(s)";

{'fraction_non_alphanumeric': 0.1691213814118842, 'fraction_numerical': 0.0030472320975114273, 'mean_word_length': 2.8104448742746615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7505714', 'n_tokens_mistral': 595, 'n_tokens_neox': 599, 'n_words': 148}