<commit_before>/* eslint-env mocha */
'use strict'

const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
const waterfall = require('async/waterfall')
const series = require('async/series')
const parallel = require('async/parallel')
const CID = require('cids')

function spawnWithId (factory, callback) {
  waterfall([
    (cb) => factory.spawnNode(cb),
    (node, cb) => node.id((err, peerId) => {
      if (err) {
        return cb(err)
      }
      node.peerId = peerId
      cb(null, node)
    })
  ], callback)
}

module.exports = (common) => {
  describe('.dht', function () {
    this.timeout(20 * 1000)

    let nodeA
    let nodeB
    let nodeC
<commit_msg>chore: bump timeouts<commit_after>/* eslint-env mocha */
'use strict'

const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
const waterfall = require('async/waterfall')
const series = require('async/series')
const parallel = require('async/parallel')
const CID = require('cids')

function spawnWithId (factory, callback) {
  waterfall([
    (cb) => factory.spawnNode(cb),
    (node, cb) => node.id((err, peerId) => {
      if (err) {
        return cb(err)
      }
      node.peerId = peerId
      cb(null, node)
    })
  ], callback)
}

module.exports = (common) => {
  describe('.dht', function () {
    this.timeout(80 * 1000)

    let nodeA
    let nodeB
    let nodeC

{'fraction_non_alphanumeric': 0.15358361774744028, 'fraction_numerical': 0.008191126279863481, 'mean_word_length': 3.2991202346041058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3157523', 'n_tokens_mistral': 510, 'n_tokens_neox': 497, 'n_words': 120}