<commit_before>var path         = require('path');
var program      = require('commander');
var demeteorizer = require('../lib/demeteorizer');

program
  .version(require('../package.json').version)
  .option('-o, --output <path>', 'Output folder for converted application. Defaults to ./.demeteorized.')
  .option('-r, --release <version>', 'The Meteor version. Defaults to latest installed.')
  .option('-t, --tarball <path>', 'Output tarball path. If specified, creates a tar.gz of demeteorized application instead of directory.')
  .option('-a, --app_name <name>', 'Value to put in the package.json name field. Defaults to the current directory name.')
  .option('-d, --debug', 'Bundle in debug mode (don\'t minify, etc).', false)
  .parse(process.argv);

var appName    = program.app_name;
var debug      = program.debug;
var input      = process.cwd();
var output     = program.output;
var release    = program.release;
var tarball    = program.tarball;

output = output || path.join(process.cwd(), '.demeteorized');

if (release) {
  console.log('Release:', release);
}

demeteorizer.on('progress', console.log.bind(console));

var options = {
  appName    : appName,
  debug      : debug,
  input      : input,
  output     : output,
  release    : release,
  tarball    : tarball
};

demeteorizer.convert(
  options,
  function (err) {
    if (err) {
      if (!process.env.running_under_istanbul) {
        console.log('Demeteorization failed:', err.message || err);
        process.exit(1);
      }
    } else {
      console.log('Demeteorization complete.');
    }
  }
);<commit_msg>Removed unnecessary whitespace<commit_after>var path         = require('path');
var program      = require('commander');
var demeteorizer = require('../lib/demeteorizer');

program
  .version(require('../package.json').version)
  .option('-o, --output <path>', 'Output folder for converted application. Defaults to ./.demeteorized.')
  .option('-r, --release <version>', 'The Meteor version. Defaults to latest installed.')
  .option('-t, --tarball <path>', 'Output tarball path. If specified, creates a tar.gz of demeteorized application instead of directory.')
  .option('-a, --app_name <name>', 'Value to put in the package.json name field. Defaults to the current directory name.')
  .option('-d, --debug', 'Bundle in debug mode (don\'t minify, etc).', false)
  .parse(process.argv);

var appName = program.app_name;
var debug   = program.debug;
var input   = process.cwd();
var output  = program.output;
var release = program.release;
var tarball = program.tarball;

output = output || path.join(process.cwd(), '.demeteorized');

if (release) {
  console.log('Release:', release);
}

demeteorizer.on('progress', console.log.bind(console));

var options = {
  appName : appName,
  debug   : debug,
  input   : input,
  output  : output,
  release : release,
  tarball : tarball
};

demeteorizer.convert(
  options,
  function (err) {
    if (err) {
      if (!process.env.running_under_istanbul) {
        console.log('Demeteorization failed:', err.message || err);
        process.exit(1);
      }
    } else {
      console.log('Demeteorization complete.');
    }
  }
);
{'fraction_non_alphanumeric': 0.15578681803847366, 'fraction_numerical': 0.000630715862503942, 'mean_word_length': 3.3631361760660248, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1909359', 'n_tokens_mistral': 1003, 'n_tokens_neox': 1010, 'n_words': 272}