<commit_before>var usb = require('./usb_connection')
  , lan = require('./lan_connection')
  , Tessel = require('./tessel/tessel')
  , async = require('async')
  , tessel = require('tessel')
  , Promise = require('bluebird')
  , _ = require('lodash')
  ;


/*
  Fetches Tessels and prints them out
    param callback: called upon completion in the form (err)
*/
function listTessels(opts) {
  // If delay is undefined, default to 1.5 second
  var timeout = opts.timeout || 1500;
  tessel.logs.info('Scanning for connections...');
  return Promise.all([
          // Fetch usb connected Tessels
          usb.findConnections()
            .map(function(usb_connection){
              tessel.logs.info('USB CONNECTION ', usb_connection.serialNumber);
              // Pass connections through for consistency
              return usb_connection;
            })
            .then(function(connections){
              // Start spinner since mdns scans take a while
              Tessel.spinner.start();
              // Pass connections through for consistency
              return connections;
            }),
          // Fetch all mdns tessel's
          lan.findConnections(timeout)<commit_msg>Fixes timeout of 1500 seconds<commit_after>var usb = require('./usb_connection')
  , lan = require('./lan_connection')
  , Tessel = require('./tessel/tessel')
  , async = require('async')
  , tessel = require('tessel')
  , Promise = require('bluebird')
  , _ = require('lodash')
  ;


/*
  Fetches Tessels and prints them out
    param callback: called upon completion in the form (err)
*/
function listTessels(opts) {
  // If delay is undefined, default to 1.5 second
  var timeout = opts.timeout || 1.5;
  tessel.logs.info('Scanning for connections...');
  return Promise.all([
          // Fetch usb connected Tessels
          usb.findConnections()
            .map(function(usb_connection){
              tessel.logs.info('USB CONNECTION ', usb_connection.serialNumber);
              // Pass connections through for consistency
              return usb_connection;
            })
            .then(function(connections){
              // Start spinner since mdns scans take a while
              Tessel.spinner.start();
              // Pass connections through for consistency
              return connections;
            }),
          // Fetch all mdns tessel's
          lan.findConnections(timeout)
{'fraction_non_alphanumeric': 0.11027881814398668, 'fraction_numerical': 0.005826050769870994, 'mean_word_length': 2.2398921832884096, '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': '1500252', 'n_tokens_mistral': 667, 'n_tokens_neox': 620, 'n_words': 175}