<commit_before>/* Waterbot - The Modular IRC Bot
 *   Sorta like Hubot, but for IRC and JavaScript
 *   instead of Campfire and CoffeeScript.
 *
 * Copyright 2013-2014 <NAME> (waddlesplash).
 * Licensed under the MIT license.
 * 
 * Install script to create and upload to a Heroku instance.
 * USAGE: npm install shelljs; node heroku-install name_of_herokuapp
 */
require('shelljs/global');

if(!which('git')) {
  echo('This script requires git to be in your PATH.');
  exit(1);
} else if(!which('heroku')) {
  echo('This script requires the Heroku Toolbelt to be in your PATH.');
  exit(1);
} else if(process.argv[2] == undefined) {
  echo('You must pass a HerokuApp name as an argument.');
}

echo("Copying files...");
mkdir("heroku-build");
cp('-Rf', 'modules', 'heroku-build');
cp('-f', '*.*', 'heroku-build');

cd('heroku-build'); {<commit_msg>Not passing an app name is a fatal.<commit_after>/* Waterbot - The Modular IRC Bot
 *   Sorta like Hubot, but for IRC and JavaScript
 *   instead of Campfire and CoffeeScript.
 *
 * Copyright 2013-2014 <NAME> (waddlesplash).
 * Licensed under the MIT license.
 * 
 * Install script to create and upload to a Heroku instance.
 * USAGE: npm install shelljs; node heroku-install name_of_herokuapp
 */
require('shelljs/global');

if(!which('git')) {
  echo('This script requires git to be in your PATH.');
  exit(1);
} else if(!which('heroku')) {
  echo('This script requires the Heroku Toolbelt to be in your PATH.');
  exit(1);
} else if(process.argv[2] == undefined) {
  echo('You must pass a HerokuApp name as an argument.');
  exit(1);
}

echo("Copying files...");
mkdir("heroku-build");
cp('-Rf', 'modules', 'heroku-build');
cp('-f', '*.*', 'heroku-build');

cd('heroku-build'); {
{'fraction_non_alphanumeric': 0.15944540727902945, 'fraction_numerical': 0.013287117273252455, 'mean_word_length': 4.18562874251497, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6371065', 'n_tokens_mistral': 588, 'n_tokens_neox': 561, 'n_words': 192}