<commit_before>require('proof/redux')(22, prove)

function prove (assert) {
    var Legislator = require('../legislator'), legislator

    function dump (legislator) {
        legislator.log.each(function (entry) { console.log(entry) })
    }

    var time = 0

    var options = {
        parliamentSize: 5,
        ping: 1,
        timeout: 3,
        naturalized: true,
        scheduler: { timerless: true },
        shifter: true
    }

    var legislators = [ new Legislator('0', options) ]
    legislators[0].bootstrap(time, 1, { location: '0' })

    function receive (legislator, send, failures) {
        console.log(send)
        failures || (failures = {})
        var responses = {}
        send.route.forEach(function (id) {
            var legislator = legislators[id]
            if (failures[id] != 'request' && failures[id] != 'isolate') {
                responses[id] = legislator.receive(time, send, send.messages)
            }
            if (failures[id] == 'response') {
                delete responses[id]
            }
        })
        legislator.sent(time, send, responses)
    }

    function send (legislator, failures) {
        failures || (failures = {})<commit_msg>Remove debugging message.<commit_after>require('proof/redux')(22, prove)

function prove (assert) {
    var Legislator = require('../legislator'), legislator

    function dump (legislator) {
        legislator.log.each(function (entry) { console.log(entry) })
    }

    var time = 0

    var options = {
        parliamentSize: 5,
        ping: 1,
        timeout: 3,
        naturalized: true,
        scheduler: { timerless: true },
        shifter: true
    }

    var legislators = [ new Legislator('0', options) ]
    legislators[0].bootstrap(time, 1, { location: '0' })

    function receive (legislator, send, failures) {
        failures || (failures = {})
        var responses = {}
        send.route.forEach(function (id) {
            var legislator = legislators[id]
            if (failures[id] != 'request' && failures[id] != 'isolate') {
                responses[id] = legislator.receive(time, send, send.messages)
            }
            if (failures[id] == 'response') {
                delete responses[id]
            }
        })
        legislator.sent(time, send, responses)
    }

    function send (legislator, failures) {
        failures || (failures = {})
{'fraction_non_alphanumeric': 0.13389121338912133, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 2.105194805194805, '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': '3465174', 'n_tokens_mistral': 716, 'n_tokens_neox': 694, 'n_words': 161}