<commit_before>'use strict'

var agent = require('../../..').start({
  appId: 'test',
  organizationId: 'test',
  secretToken: '<PASSWORD>',
  captureExceptions: false
})
var ins = global.ins = agent._instrumentation

var test = require('tape')
var genericPool = require('generic-pool')

if (genericPool.createPool) {
  test('v3.x', function (t) {
    var active = 0

    var pool = genericPool.createPool({
      create: function () {
        var p = new Promise(function (resolve, reject) {<commit_msg>test: don't test generic-pool 3.x on Node.js <3<commit_after>'use strict'

var agent = require('../../..').start({
  appId: 'test',
  organizationId: 'test',
  secretToken: '<PASSWORD>',
  captureExceptions: false
})
var ins = global.ins = agent._instrumentation

var semver = require('semver')
var pkg = require('generic-pool/package')

if (semver.lt(process.version, '4.0.0') && semver.gte(pkg.version, '3.0.0')) {
  console.log('Unsupported version of Node.js')
  process.exit()
}

var test = require('tape')
var genericPool = require('generic-pool')

if (genericPool.createPool) {
  test('v3.x', function (t) {
    var active = 0

    var pool = genericPool.createPool({
      create: function () {
        var p = new Promise(function (resolve, reject) {
{'fraction_non_alphanumeric': 0.16706254948535235, 'fraction_numerical': 0.009501187648456057, 'mean_word_length': 3.806083650190114, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, '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': '3424420', 'n_tokens_mistral': 418, 'n_tokens_neox': 413, 'n_words': 107}