<commit_before>module.exports = function(opts){
  return function(flag, account, user, cb){
    var key = 'BETAFLAG_' + flag.toUpperCase();
    var on = process.env[key];
    cb(null, on ? true : false);
  };
};<commit_msg>refactoring<commit_after>module.exports = function(opts){
  var prefix = (opts.envVarPrefix || 'BETAFLAG').toUpperCase();

  return function(flag, account, user, cb){
    var key = prefix + '_' + flag.toUpperCase();
    var value = process.env[key];

    cb(null, value ? true : false);
  };
};
{'fraction_non_alphanumeric': 0.16827852998065765, 'fraction_numerical': 0.0, 'mean_word_length': 4.029126213592233, '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': '5858227', 'n_tokens_mistral': 176, 'n_tokens_neox': 173, 'n_words': 40}