<commit_before>import chalk from 'chalk';

export default(r, uri) => {

  //happen only once
  r.on('ready', () => {
    console.log(chalk.greenBright(`----------\nRedis-> connected on ${uri}\n----------`));
  });

  //happen each time when reconnected
  r.on('connected', () => {
    //console.log('redis connected');
  });

  r.on('disconnected', () => {
    console.log('redis disconnected');<commit_msg>message connected<commit_after>import chalk from 'chalk';

export default(r, conn) => {

  //happen only once
  r.on('ready', () => {
    console.log(chalk.greenBright(`----------\nRedis-> connected on ${conn.host}:${conn.port}/${conn.db}\n----------`));
  });

  //happen each time when reconnected
  r.on('connected', () => {
    //console.log('redis connected');
  });

  r.on('disconnected', () => {
    console.log('redis disconnected');
{'fraction_non_alphanumeric': 0.25323910482921086, 'fraction_numerical': 0.0, 'mean_word_length': 2.97196261682243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '777601', 'n_tokens_mistral': 286, 'n_tokens_neox': 275, 'n_words': 52}