<commit_before>#!/usr/bin/env node

require('proof')(14, function (step, equal) {
    var cadence = require('../..')
    var one = step()
    var two = step()

    cadence(function () {
        return 1
    }, function (number) {
        equal(number, 1, 'return step')
    })()

    cadence(function () {
        return 1
    })(function (error, number) {
        equal(number, 1, 'return cadence')
        one()
    })

    cadence(function (step) {
        step()(null, 1)
    })(function (error, number) {
        equal(number, 1, 'callback cadence')
        two()
    })

    cadence(function () {
        return [ 1 ]
    })(function (error, number) {
        equal(number, 1, 'callback cadence arrayed')
    })

    cadence(function () {
        return [ 1, 2 ]
    })(function (error, one, two) {
        equal(one, 1, 'callback cadence arrayed ordered one')
        equal(two, 2, 'callback cadence arrayed ordered two')
    })

    cadence(function () {
        return [ [ 1, 2 ] ]
    })(function (error, array) {
        equal(array[0], 1, 'callback cadence array ordered one')
        equal(array[1], 2, 'callback cadence array ordered two')
    })

    cadence(function (step) {
        step(function () {
            step()(null, 1, 2)
        }, function (one, two) {
            equal(one, 1, 'return undefined ignore one')
            equal(two, 2, 'return undefined ignore two')
        }, function (one, two) {
            equal(one, 1, 'return undefined one')
            equal(two, 2, 'return undefined two')
        })
    })(function (error, one, two) {
        equal(one, 1, 'return propagate one')
        equal(two, 2, 'return propagate two')
    })
})
<commit_msg>Use `assert` instead of `equal` in return test.<commit_after>#!/usr/bin/env node

require('proof')(14, function (step, assert) {
    var cadence = require('../..')
    var one = step()
    var two = step()

    cadence(function () {
        return 1
    }, function (number) {
        assert(number, 1, 'return step')
    })()

    cadence(function () {
        return 1
    })(function (error, number) {
        assert(number, 1, 'return cadence')
        one()
    })

    cadence(function (step) {
        step()(null, 1)
    })(function (error, number) {
        assert(number, 1, 'callback cadence')
        two()
    })

    cadence(function () {
        return [ 1 ]
    })(function (error, number) {
        assert(number, 1, 'callback cadence arrayed')
    })

    cadence(function () {
        return [ 1, 2 ]
    })(function (error, one, two) {
        assert(one, 1, 'callback cadence arrayed ordered one')
        assert(two, 2, 'callback cadence arrayed ordered two')
    })

    cadence(function () {
        return [ [ 1, 2 ] ]
    })(function (error, array) {
        assert(array[0], 1, 'callback cadence array ordered one')
        assert(array[1], 2, 'callback cadence array ordered two')
    })

    cadence(function (step) {
        step(function () {
            step()(null, 1, 2)
        }, function (one, two) {
            assert(one, 1, 'return undefined ignore one')
            assert(two, 2, 'return undefined ignore two')
        }, function (one, two) {
            assert(one, 1, 'return undefined one')
            assert(two, 2, 'return undefined two')
        })
    })(function (error, one, two) {
        assert(one, 1, 'return propagate one')
        assert(two, 2, 'return propagate two')
    })
})

{'fraction_non_alphanumeric': 0.1530166132322938, 'fraction_numerical': 0.01632177207811134, 'mean_word_length': 2.128532360984503, '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': '5592478', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1025, 'n_words': 305}