<commit_before>var defaults = ['test', 'devel', 'stage', 'production'];

/**
 *  Default function for getting the current environment.
 */
function dget() {
  return process.env.NODE_ENV;
}

/**
 *  Default function for setting the current environment.
 */
function dset(val) {
  var value = '' + this.value;
  if(this(val)) {
    process.env.NODE_ENV = val;
    this.current = val;
    return function revert() {
      process.env.NODE_ENV = value;
    }
  }
  return false;
}

/**
 *  Get an environment object.
 *
 *  @param available Array or map of available environments.
 *  @param get A custom get function.<commit_msg>Consider environment defined on explicit set.<commit_after>var defaults = ['test', 'devel', 'stage', 'production'];

/**
 *  Default function for getting the current environment.
 */
function dget() {
  return process.env.NODE_ENV;
}

/**
 *  Default function for setting the current environment.
 */
function dset(val) {
  var value = '' + this.value;

  if(this(val)) {
    process.env.NODE_ENV = val;
    this.current = val;
    // considered defined the first time the setter
    // is called explicitly
    this.defined = true;
    return function revert() {
      process.env.NODE_ENV = value;
    }
  }
  return false;
}

/**
 *  Get an environment object.
 *
 *  @param available Array or map of available environments.
 *  @param get A custom get function.
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0, 'mean_word_length': 3.097058823529412, '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': '1008758', 'n_tokens_mistral': 418, 'n_tokens_neox': 411, 'n_words': 134}