<commit_before>var cadence = require('cadence')
var UserAgent = require('inlet/http/ua')

require('proof')(3, cadence(prove))

function prove (async, assert) {
    var Kibitzer = require('../..'),
        Container = require('../container'),
        Binder = require('inlet/net/binder'),
        Bouquet = require('inlet/net/bouquet')

    var ua = new UserAgent

    var options = {
    }

    new Kibitzer({}).logger(1) // defaults

    var bouquet = new Bouquet
    var binder = new Binder('http://127.0.0.1:8086')
    var containers = [ new Container(binder, options) ]

    async(function () {
        bouquet.start(containers[0], async())
    }, [function () {
        containers[0].kibitzer.join(binder.location + '/discover', async())
    }, function (_, error) {
        assert(error.message, 'no other participants', 'no other participants')
    }], function () {
        containers[0].kibitzer.bootstrap(binder.location)
    }, function () {
        var binder = new Binder('http://127.0.0.1:8087')<commit_msg>Test error logger function builder.<commit_after>var cadence = require('cadence')
var UserAgent = require('inlet/http/ua')

require('proof')(5, cadence(prove))

function prove (async, assert) {
    var Kibitzer = require('../..'),
        Container = require('../container'),
        Binder = require('inlet/net/binder'),
        Bouquet = require('inlet/net/bouquet')

    var ua = new UserAgent

    var options = {
    }

    new Kibitzer({}).logger(1) // defaults

    var kibitzer = new Kibitzer({
        logger: function (level, context, error) {
            assert(context, 'test', 'catcher context')
            assert(error.message, 'catcher caught')
        }
    })

    kibitzer.catcher('test')(null, new Error('caught'))

    var bouquet = new Bouquet
    var binder = new Binder('http://127.0.0.1:8086')
    var containers = [ new Container(binder, options) ]

    async(function () {
        bouquet.start(containers[0], async())
    }, [function () {
        containers[0].kibitzer.join(binder.location + '/discover', async())
    }, function (_, error) {
        assert(error.message, 'no other participants', 'no other participants')
    }], function () {
        containers[0].kibitzer.bootstrap(binder.location)
    }, function () {
        var binder = new Binder('http://127.0.0.1:8087')
{'fraction_non_alphanumeric': 0.1643071643071643, 'fraction_numerical': 0.02145002145002145, 'mean_word_length': 2.8931552587646077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1418051', 'n_tokens_mistral': 749, 'n_tokens_neox': 720, 'n_words': 154}