<commit_before>var io         = require('socket.io-client'),
    _          = require('underscore'),
    fs         = require('fs'),
    assert     = require('assert'),
    path       = require('path'),
    common     = require('./common.js'),
    QueryStats = require('../lib/query-stats.js');

common.parser.add('--clients', {
                    default: 8,
                    type: 'integer',
                  });
common.parser.add('--slow-clients', {
                    default: 1,
                    type: 'integer',
                    target: 'slow_clients'
                  });

common.parser.add('--remote', {
                    default: 'http://localhost:8910/',
                    type: 'string'
                  });
var opts = common.parseopts();

// var cs = common.get_codesearch();
var queries = common.load_queries();

var count = 0;

var QueryThread = (
  function () {
    var id = 0;
    return function (queries, stats) {
      var self = this;
      this.connection = io.connect(opts.remote, {<commit_msg>stress.js: Default to no slow clients.<commit_after>var io         = require('socket.io-client'),
    _          = require('underscore'),
    fs         = require('fs'),
    assert     = require('assert'),
    path       = require('path'),
    common     = require('./common.js'),
    QueryStats = require('../lib/query-stats.js');

common.parser.add('--clients', {
                    default: 8,
                    type: 'integer',
                  });
common.parser.add('--slow-clients', {
                    default: 0,
                    type: 'integer',
                    target: 'slow_clients'
                  });

common.parser.add('--remote', {
                    default: 'http://localhost:8910/',
                    type: 'string'
                  });
var opts = common.parseopts();

// var cs = common.get_codesearch();
var queries = common.load_queries();

var count = 0;

var QueryThread = (
  function () {
    var id = 0;
    return function (queries, stats) {
      var self = this;
      this.connection = io.connect(opts.remote, {
{'fraction_non_alphanumeric': 0.1532219570405728, 'fraction_numerical': 0.0076372315035799524, 'mean_word_length': 1.5686274509803921, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4176089', 'n_tokens_mistral': 608, 'n_tokens_neox': 568, 'n_words': 121}