<commit_before>var redis = require('redis');

var config = {
  redis_server_host: process.env.REDIS_SERVER_HOST || "127.0.0.1",
  redis_server_port: process.env.REDIS_SERVER_PORT || 6379,
  redis_server_password: process.env.REDIS_SERVER_PASSWORD || undefined
};

exports.getRedisClient = function() {
  
  var options = {};
  if (process.env.NODE_ENV === 'production') {
    options = {
      auth_pass: config.redis_server_password, 
      tls: {
        servername: config.redis_server_host
      }
    };
  } else {
    options = {
      password: config.redis_server_password
    };
  }

  return redis.createClient(config.redis_server_port, config.redis_server_host, options);
};<commit_msg>modified config.js<commit_after>var redis = require('redis');

var config = {
  redis_server_host: process.env.REDIS_SERVER_HOST || "127.0.0.1",
  redis_server_port: process.env.REDIS_SERVER_PORT || 6379,
  redis_server_password: process.env.REDIS_SERVER_PASSWORD || <PASSWORD>
};

exports.getRedisClient = function() {
  
  var options = {
    password: config.redis_server_password
  };
  
  return redis.createClient(config.redis_server_port, config.redis_server_host, options);
};
{'fraction_non_alphanumeric': 0.12193056731583404, 'fraction_numerical': 0.01693480101608806, 'mean_word_length': 4.253333333333333, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5464488', 'n_tokens_mistral': 425, 'n_tokens_neox': 411, 'n_words': 60}