<commit_before>var uuid        = require('uuid');
var kafka       = require('kafka-node');
var config      = require('../config.js');
var logger      = require('../logger.js').logger;
var consumers   = require('../lib/consumers.js');
var producers   = require('../lib/producers.js');
var _           = require('lodash');


var waitForClient = function(client, cb) {
    var retryCount = 0;

    var clientRetry = function(){
        setTimeout(function() {
            if (!client.ready && retryCount < 5) {
                logger.trace('client currently not ready, retrying');
                retyrCount ++;
                clientRetry();
            } else {
                var err = !client.ready ? {message: 'client failed to initialise'} : null;
                if (!!cb) {
                    cb(err);
                }
            }
        }, 100);
    };

    if (!client.ready) {<commit_msg>fix typo in client initialisation retry<commit_after>var uuid        = require('uuid');
var kafka       = require('kafka-node');
var config      = require('../config.js');
var logger      = require('../logger.js').logger;
var consumers   = require('../lib/consumers.js');
var producers   = require('../lib/producers.js');
var _           = require('lodash');


var waitForClient = function(client, cb) {
    var retryCount = 0;

    var clientRetry = function(){
        setTimeout(function() {
            if (!client.ready && retryCount < 5) {
                logger.trace('client currently not ready, retrying');
                retryCount ++;
                clientRetry();
            } else {
                var err = !client.ready ? {message: 'client failed to initialise'} : null;
                if (!!cb) {
                    cb(err);
                }
            }
        }, 100);
    };

    if (!client.ready) {
{'fraction_non_alphanumeric': 0.14754098360655737, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 1.7166172106824926, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7420776', 'n_tokens_mistral': 516, 'n_tokens_neox': 490, 'n_words': 121}