<commit_before>var redis = require("redis"),
    config = require('./config.js').config();


module.exports = function() {
  if (config.localSetup ===  true){
    client = redis.createClient(config.localRedisPort,config.localRedisURL);
  } else {
    client = redis.createClient(config.remoteRedisPort, config.remoteRedisURL);
    client.auth(config.remoteRedisAuth, function (err) {
     if (err) { throw err; }
     // You are now connected to your redis.
    });
  }
  if (config.flushDBsOnStart){
    client.flushdb();
  }
  client.on('ready', function(){
  });
};<commit_msg>removed the unnecessary on ready<commit_after>var redis = require("redis"),
    config = require('./config.js').config();


module.exports = function() {
  if (config.localSetup ===  true){
    client = redis.createClient(config.localRedisPort,config.localRedisURL);
  } else {
    client = redis.createClient(config.remoteRedisPort, config.remoteRedisURL);
    client.auth(config.remoteRedisAuth, function (err) {
     if (err) { throw err; }
     // You are now connected to your redis.
    });
  }
  if (config.flushDBsOnStart){
    client.flushdb();
  }
};
{'fraction_non_alphanumeric': 0.15175438596491228, 'fraction_numerical': 0.0, 'mean_word_length': 3.6954732510288064, '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': '4963093', 'n_tokens_mistral': 368, 'n_tokens_neox': 366, 'n_words': 72}