<commit_before>var path = require('path'),
    colors = require('colors'),
    run = require('child_process').exec,
    shell = require('shelljs');

var heroku = module.exports = {};

heroku.name = heroku.cli_name = 'heroku';
heroku.download_url = 'https://toolbelt.heroku.com/';

heroku.check_credentials = function(cb){
  console.log('checking credentials...'.grey);
  run('heroku auth:whoami', { timeout: 500 }, function(err, out){
    if (err) { return console.error("\n  you are not logged in to heroku\n  run `heroku auth:login` to make this happen : )\n".red); }
    cb();
  });
}

heroku.add_config_files = function(cb){
  var source = path.join(__dirname, '../../templates/heroku') + "/*";
  var destination = process.cwd();
  shell.cp('-rf', source, destination);
  console.log('heroku config files copied'.grey);
  cb();
}

// need to deal with the name passing thing
heroku.create_project = function(cb){
  console.log('creating app on heroku...'.grey);

  var cmd = shell.exec('heroku create ' + this.name);

  console.log(cmd); // debug

  console.log('new heroku app created at '.green + cmd.output.match(/(http:\/\/.*\/)/)[1].green);
  cb();
}

heroku.push_code = function(cb){
  console.log('pushing master branch to heroku (this may take a few seconds)...'.grey);
  var cmd = shell.exec('git push heroku master');
  console.log(cmd);
  console.log('heroku app launched'.grey);
  cb();
}<commit_msg>small modifications to command line output<commit_after>var path = require('path'),
    colors = require('colors'),
    run = require('child_process').exec,
    shell = require('shelljs');

var heroku = module.exports = {};

heroku.name = heroku.cli_name = 'heroku';
heroku.download_url = 'https://toolbelt.heroku.com/';

heroku.check_credentials = function(cb){
  console.log('checking credentials...'.grey);
  run('heroku auth:whoami', { timeout: 500 }, function(err, out){
    if (err) { return console.error("\n  you are not logged in to heroku\n  run `heroku auth:login` to make this happen : )\n".red); }
    cb();
  });
}

heroku.add_config_files = function(cb){
  var source = path.join(__dirname, '../../templates/heroku') + "/*";
  var destination = process.cwd();
  shell.cp('-rf', source, destination);
  console.log('heroku config files copied'.grey);
  cb();
}

// need to deal with the name passing thing
heroku.create_project = function(cb){
  console.log('creating app on heroku...'.grey);
  var cmd = shell.exec('heroku create ' + this.name);
  if (cmd.code > 0) { return false }
  cb();
}

heroku.push_code = function(cb){
  console.log('pushing master branch to heroku (this may take a few seconds)...'.grey);
  var cmd = shell.exec('git push heroku master');
  if (cmd.code > 0) { return false }
  console.log('heroku app launched'.grey);
  cb();
}
{'fraction_non_alphanumeric': 0.17666068222621184, 'fraction_numerical': 0.003231597845601436, 'mean_word_length': 3.8791593695271454, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4484510', 'n_tokens_mistral': 929, 'n_tokens_neox': 900, 'n_words': 239}