<commit_before>var utils = require("./lib/utils");

var Box = {
  unbox: function(url, destination) {
    return Promise.resolve()
      .then(function() {
        return utils.downloadBox(url, destination)
      })
      .then(function() {
        return utils.unpackBox(destination);
      })
      .then(function(boxConfig) {
        return boxConfig;
      });
  }
};

module.exports = Box;<commit_msg>Add options to unbox() to support logging<commit_after>var utils = require("./lib/utils");

var Box = {
  unbox: function(url, destination, options) {
    options = options || {};
    options.logger = options.logger || {log: function() {}}

    return Promise.resolve()
      .then(function() {
        options.logger.log("Downloading Box");
        return utils.downloadBox(url, destination)
      })
      .then(function() {
        options.logger.log("Unpacking Box");
        return utils.unpackBox(destination);
      })
      .then(function(boxConfig) {
        if (boxConfig.epilogue) {
          options.logger.log(project_config.epilogue.replace("\n", OS.EOL));
        }

        return boxConfig;
      });
  }
};

module.exports = Box;
{'fraction_non_alphanumeric': 0.1491760624457936, 'fraction_numerical': 0.0, 'mean_word_length': 2.5727554179566563, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6789093', 'n_tokens_mistral': 344, 'n_tokens_neox': 346, 'n_words': 64}