<commit_before>// static requires - handle both initial dependency load (deps will be available
// among other modules) as well as they will be included by browserify AST
var container = {};

var Chance = require('chance');

container.faker = require('faker');
container.chance = new Chance();
container.randexp = require('randexp');

function hasContainer(name) {
  if (typeof container[name] === 'undefined') {
    throw new ReferenceError('"' + name + '" dependency doesn\'t exist.');
  }
}

module.exports = {
  set: function(name, callback) {
    hasContainer(name);
    container[name] = callback(container[name]);
  },
  get: function(name) {
    hasContainer(name);
    return container[name];
  }
};<commit_msg>Fixed container; again<commit_after>// static requires - handle both initial dependency load (deps will be available
// among other modules) as well as they will be included by browserify AST
var container = {
  faker: null,

  // both chance and randexp are required
  chance: require('chance').Chance(),
  randexp: require('randexp')
};

module.exports = {
  set: function(name, callback) {
    if (typeof container[name] === 'undefined') {
      throw new ReferenceError('"' + name + '" dependency is not allowed.');
    }

    container[name] = callback(container[name]);
  },
  get: function(name) {
    if (!container[name]) {
      throw new ReferenceError('"' + name + '" dependency doesn\'t exist.');
    }

    return container[name];
  }
};
{'fraction_non_alphanumeric': 0.14072059823249491, 'fraction_numerical': 0.0, 'mean_word_length': 3.9562289562289563, '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': '6398748', 'n_tokens_mistral': 421, 'n_tokens_neox': 414, 'n_words': 134}