<commit_before>// Sloppy mock for component.install in tests

var
  Emitter = require('events').EventEmitter;

function Package () {
}

Package.prototype.__proto__ = Emitter.prototype;

Package.prototype.install = function () {
  this.emit('end');
}

module.exports = {
  install : function (repo, version, options) {
    return new Package();
  }
};<commit_msg>Mock component lib will now copy originals over to install dir<commit_after>// Sloppy mock for component.install in tests

var
  utils   = require('../lib/utils'),
  fs      = require('fs-extra'),
  Emitter = require('events').EventEmitter;

function Package (repo, version, options) {
  this.repo = repo;
  this.version = version;
  this.options = options;
}

Package.prototype.__proto__ = Emitter.prototype;

Package.prototype.install = function () {
  var options = {
    src : '../mocks/components/' + this.repo.replace('/', '-');
    dest : utils.getInstallDir(this.repo);
  }
  fs.copy(options, function (err) {
    this.emit('end');
  });
}

module.exports = {
  install : function (repo, version, options) {
    return new Package(repo, version, options);
  }
};
{'fraction_non_alphanumeric': 0.14929328621908128, 'fraction_numerical': 0.0, 'mean_word_length': 3.720833333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '763412', 'n_tokens_mistral': 350, 'n_tokens_neox': 348, 'n_words': 87}