<commit_before>/*
 * grunt-browserstack
 * https://github.com/pghalliday/grunt-browserstack
 *
 * Copyright (c) 2012 <NAME>
 * Licensed under the MIT license.
 */

var BrowserStackTunnel = require('browserstacktunnel-wrapper');

module.exports = function(grunt) {
  grunt.registerMultiTask('browserStackTunnel', 'start the browserstack tunnel', function() {
    var self = this;
    var done = self.async();
    var browserStackTunnel = new BrowserStackTunnel(self.data.key, self.data.hosts);
    browserStackTunnel.start(function(error) {
      if (error) {
        done(error);
      } else {
        if (!self.data.keepAlive) {
          done();
        }
      }
    });
  });
};<commit_msg>printing out when tunnel has started<commit_after>/*
 * grunt-browserstack
 * https://github.com/pghalliday/grunt-browserstack
 *
 * Copyright (c) 2012 <NAME>
 * Licensed under the MIT license.
 */

var BrowserStackTunnel = require('browserstacktunnel-wrapper');

module.exports = function(grunt) {
  grunt.registerMultiTask('browserStackTunnel', 'start the browserstack tunnel', function() {
    var self = this;
    var done = self.async();
    var browserStackTunnel = new BrowserStackTunnel(self.data.key, self.data.hosts);
    browserStackTunnel.start(function(error) {
      if (error) {
        done(error);
      } else {
        grunt.log.ok('BrowserStackTunnel has started');
        if (!self.data.keepAlive) {
          done();
        }
      }
    });
  });
};
{'fraction_non_alphanumeric': 0.13546630360789652, 'fraction_numerical': 0.005445881552076242, 'mean_word_length': 3.1176470588235294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6978232', 'n_tokens_mistral': 465, 'n_tokens_neox': 448, 'n_words': 92}