<commit_before>var debug = require('hitd-debug')('hitd'),
  localLauncher = require('hitd-launcher').local;


module.exports = function(internalEndpoint, internalConf, cb) {

  var Client = require('hitd-client');
  var client;
  localLauncher('hitd-router', internalEndpoint, internalConf, function(
    err) {
    debug('Internal Router launched', err);
    localLauncher('hitd-launcher', internalEndpoint, internalConf,
      function(err) {
        debug('Internal Launcher launched', err);
        client = Client(internalEndpoint, internalConf, function(err,
          client) {
          debug('Internal Client launched', err);
          cb(null, client);
        });
      });
  });
};<commit_msg>handle missing error case<commit_after>var debug = require('hitd-debug')('hitd'),
  localLauncher = require('hitd-launcher').local;


module.exports = function(internalEndpoint, internalConf, cb) {

  var Client = require('hitd-client');
  var client;
  localLauncher('hitd-router', internalEndpoint, internalConf, function(
    err) {
    if (err) {
      console.log(err);
      return cb(err);
    };

    debug('Internal Router launched', err);
    console.log("will launch launcher");
    localLauncher('hitd-launcher', internalEndpoint, internalConf,
      function(err) {
        if (err) {
          return cb(err);
        }
        console.log("did launch launcher", err);
        debug('Internal Launcher launched', err);
        client = Client(internalEndpoint, internalConf, function(err,
          client) {
          debug('Internal Client launched', err);
          cb(null, client);
        });
      });
  });
};
{'fraction_non_alphanumeric': 0.1393643031784841, 'fraction_numerical': 0.0, 'mean_word_length': 3.1974358974358976, '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': '4353006', 'n_tokens_mistral': 467, 'n_tokens_neox': 455, 'n_words': 103}