<commit_before>resetDatabase = function (options) {
  if (process.env.NODE_ENV !== 'development' ||
     !(process.env.IS_MIRROR || process.env.VELOCITY_TEST_PACKAGES)
  ) {
    console.error(
      'resetDatabase is not allowed outside of a mirror. ' +
      'Something has gone wrong.'
    );
    return;
  }

  options = options || {};
  var excludedCollections = ['system.indexes'];
  if (options.excludedCollections) {
    excludedCollections = excludedCollections.concat(options.excludedCollections);
  }<commit_msg>Throw a error instead of just logging it<commit_after>resetDatabase = function (options) {
  if (process.env.NODE_ENV !== 'development' ||
     !(process.env.IS_MIRROR || process.env.VELOCITY_TEST_PACKAGES)
  ) {
    throw new Error(
      'resetDatabase is not allowed outside of a mirror. ' +
      'Something has gone wrong.'
    );
  }

  options = options || {};
  var excludedCollections = ['system.indexes'];
  if (options.excludedCollections) {
    excludedCollections = excludedCollections.concat(options.excludedCollections);
  }
{'fraction_non_alphanumeric': 0.12064090480678605, 'fraction_numerical': 0.0, 'mean_word_length': 3.7837837837837838, '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': '7334552', 'n_tokens_mistral': 312, 'n_tokens_neox': 308, 'n_words': 70}