<commit_before>var net = require('net'),
    path = require('path'),
    assert = require('assert'),
    spawn = require('child_process').spawn,
    cb = require('assert-called');

var PORT = 5434;

var server = net.createServer(cb(function (socket) {
  var data = '';
  socket.on('readable', cb(function () {
    var chunk = socket.read();

    if (chunk) {
      data += chunk;
    }
  }));

  socket.on('end', cb(function () {
    data = data.split('\n').filter(Boolean).map(JSON.parse);
    assert(data.length > 0);
    server.close();
  }));
}));

server.listen(PORT, function () {
  var child = spawn(
    path.join(__dirname, '..', 'estragon'),
    [
      '-h', '127.0.0.1:' + (PORT - 1).toString(),
      '-h', '127.0.0.1:' + PORT.toString(),<commit_msg>[test] Add one more failed server<commit_after>var net = require('net'),
    path = require('path'),
    assert = require('assert'),
    spawn = require('child_process').spawn,
    cb = require('assert-called');

var PORT = 5434;

var server = net.createServer(cb(function (socket) {
  var data = '';
  socket.on('readable', cb(function () {
    var chunk = socket.read();

    if (chunk) {
      data += chunk;
    }
  }));

  socket.on('end', cb(function () {
    data = data.split('\n').filter(Boolean).map(JSON.parse);
    assert(data.length > 0);
    server.close();
  }));
}));

server.listen(PORT, function () {
  var child = spawn(
    path.join(__dirname, '..', 'estragon'),
    [
      '-h', '127.0.0.1:' + (PORT - 2).toString(),
      '-h', '127.0.0.1:' + (PORT - 1).toString(),
      '-h', '127.0.0.1:' + PORT.toString(),
{'fraction_non_alphanumeric': 0.22305764411027568, 'fraction_numerical': 0.02694235588972431, 'mean_word_length': 2.9334975369458127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '5258086', 'n_tokens_mistral': 573, 'n_tokens_neox': 554, 'n_words': 108}