<commit_before>'use strict'

{Pool} = require 'generic-pool'
r      = require 'rethinkdb'
debug  = require('debug')('rethinkdb:pool')

module.exports = (options, max, min, idleTimeoutMillis) ->
  Pool {
    name: 'rethinkdb'

    create: (done) ->
      r.connect options, done

    destroy: (connection) ->
      do connection.close

    log: debug
    max: max or 10
    min: min or 2
    idleTimeoutMillis: idleTimeoutMillis or 30000
  }<commit_msg>update source<commit_after>'use strict'

{Pool} = require 'generic-pool'
r      = require 'rethinkdb'
debug  = require('debug')('rethinkdb:pool')

module.exports = (options, max, min, idleTimeoutMillis, log) ->
  Pool {
    name: 'rethinkdb'

    create: (done) ->
      r.connect options, done

    destroy: (connection) ->
      do connection.close

    log: log or debug
    max: max or 10
    min: min or 2
    idleTimeoutMillis: idleTimeoutMillis or 30000
  }
{'fraction_non_alphanumeric': 0.12117903930131005, 'fraction_numerical': 0.017467248908296942, 'mean_word_length': 3.039647577092511, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5348714', 'n_tokens_mistral': 312, 'n_tokens_neox': 298, 'n_words': 86}