<commit_before>'use strict';

var help = require('../help');
var logger = require('../logger')('install');
var chalk = require('chalk');

module.exports = function(api, args, out) {
  if (args.help) {
    help(out, 'install');
  } else {
    var repoUri = 'https://github.com/'.concat(args._[0]).concat('.git');
    var to = args._[1];
    api.clone(repoUri, to, function(err) {
      if (err) {
        logger.error(err);
        out(chalk.red('Unable to clone repo ' + args._[0]));
      } else {
        out(chalk.green(args._[0] + ' successfully cloned.'));
      }
    });
  }
};<commit_msg>Fix failing install tc<commit_after>'use strict';

var help = require('../help');
var logger = require('../logger')('install');
var chalk = require('chalk');

function getPrefix(args) {
  return args.ssh ? 'git@github.com:' :
    'https://github.com/';
}

module.exports = function(api, args, out) {
  if (args.help) {
    help(out, 'install');
  } else {
    var repoUri = getPrefix(args).concat(args._[0]).concat('.git');
    var to = args._[1];
    api.clone(repoUri, to, function(err) {
      if (err) {
        logger.error(err);
        out(chalk.red('Unable to clone repo ' + args._[0]));
      } else {
        out(chalk.green(args._[0] + ' successfully cloned.'));
      }
    });
  }
};
{'fraction_non_alphanumeric': 0.20820433436532507, 'fraction_numerical': 0.006191950464396285, 'mean_word_length': 2.8597014925373134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6308608', 'n_tokens_mistral': 446, 'n_tokens_neox': 441, 'n_words': 91}