<commit_before>var cadence = require('cadence')
var Procesion = require('procession')
var coalesce = require('nascent.coalesce')

function Responder (object) {
    this._object = object
    this.responses = new Procesion
}

Responder.prototype.enqueue = cadence(function (async, envelope) {
    async(function () {
        var body = envelope
        while (typeof body == 'object' && body.type == 'conduit') {
            body = body.body
        }
        this._object.request(body, async())
    }, function (response) {
        if (envelope.from != null) {
            this.responses.enqueue({
                type: 'conduit',
                cookie: coalesce(envelope.cookie),
                to: envelope.from,
                body: coalesce(response)
            }, async())
        }
    })
})

module.exports = Responder<commit_msg>Skip confusion in the responder.<commit_after>var cadence = require('cadence')
var Procesion = require('procession')
var coalesce = require('nascent.coalesce')

function Responder (object) {
    this._object = object
    this.responses = new Procesion
}

Responder.prototype.enqueue = cadence(function (async, envelope) {
    if (envelope == null) {
        // TODO Not sure what to do.
    } else {
        async(function () {
            var body = envelope
            while (typeof body == 'object' && body.type == 'conduit') {
                body = body.body
            }
            this._object.request(body, async())
        }, function (response) {
            if (envelope.from != null) {
                this.responses.enqueue({
                    type: 'conduit',
                    cookie: coalesce(envelope.cookie),
                    to: envelope.from,
                    body: coalesce(response)
                }, async())
            }
        })
    }
})

module.exports = Responder
{'fraction_non_alphanumeric': 0.1212777476989713, 'fraction_numerical': 0.0, 'mean_word_length': 1.901098901098901, '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': '7512975', 'n_tokens_mistral': 531, 'n_tokens_neox': 505, 'n_words': 117}