<commit_before>'use strict';

/**
 * CLI Download module
 * Invokes the downloader and prepares the deploy directory.
 *
 * (c) 2015 <NAME>
 */

// == Load libraries
var logSymbols    = require('log-symbols');

// == Load modules
var isDeployDir     = require('../helper/is-deploy-dir'); 
var initDirectories = require('../directories/init');

var downloadMeta    = require('../downloader/download-release-meta');
var downloadRelease = require('../downloader/download-release');
var unpack          = require('../archiver/unpack');
var verify          = require('../verifier/verify');
var install         = require('../installer/install');

// == Action: Download release and initialize deploy directory.
var cli_download = function(argv) {

  // Get repository url from commandline and target directory
  var repositoryUrl   = argv._[0];
  var deployDirectory = process.cwd();
  
  // Create deploy directory
  initDirectories(deployDirectory);

  // Start (and verify) download
  downloadMeta(repositoryUrl)
    .then(downloadRelease(repositoryUrl))
    .then(unpack())
    .then(verify())
    .then(install())
    .then(function(release) {<commit_msg>removed imported but not used isDeployDir<commit_after>'use strict';

/**
 * CLI Download module
 * Invokes the downloader and prepares the deploy directory.
 *
 * (c) 2015 <NAME>
 */

// == Load libraries
var logSymbols    = require('log-symbols');

// == Load modules
var initDirectories = require('../directories/init');

var downloadMeta    = require('../downloader/download-release-meta');
var downloadRelease = require('../downloader/download-release');
var unpack          = require('../archiver/unpack');
var verify          = require('../verifier/verify');
var install         = require('../installer/install');

// == Action: Download release and initialize deploy directory.
var cli_download = function(argv) {

  // Get repository url from commandline and target directory
  var repositoryUrl   = argv._[0];
  var deployDirectory = process.cwd();
  
  // Create deploy directory
  initDirectories(deployDirectory);

  // Start (and verify) download
  downloadMeta(repositoryUrl)
    .then(downloadRelease(repositoryUrl))
    .then(unpack())
    .then(verify())
    .then(install())
    .then(function(release) {
{'fraction_non_alphanumeric': 0.1422924901185771, 'fraction_numerical': 0.004391743522178305, 'mean_word_length': 3.565130260521042, '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': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6684718', 'n_tokens_mistral': 644, 'n_tokens_neox': 621, 'n_words': 166}