<commit_before>export default (reporter) => (input) => {
    return function tape(/* log */) {
        const test = require('tape');
        const requireUncached = require('require-uncached');

        return new Promise((resolve, reject) => {
            const stream = test.createStream();
            const results = test.getHarness()._results;
            const through = require('through');

            if (typeof reporter === 'function') {
                stream.pipe(reporter()).pipe(process.stdout);
            } else {
                stream.pipe(process.stdout);
            }

            results.once('done', function () {
                if (this.fail === 0) {
                    resolve();
                } else {
                    reject();
                }

                this.count = 0;
                this.fail = 0;
                this.pass = 0;
                this.tests = [];
                this._stream = through();<commit_msg>:lipstick:<commit_after>export default (reporter) => (input) => {
    return function tape(/* log */) {
        const test = require('tape');
        const through = require('through');
        const requireUncached = require('require-uncached');

        return new Promise((resolve, reject) => {
            const stream = test.createStream();
            const results = test.getHarness()._results;

            if (typeof reporter === 'function') {
                stream.pipe(reporter()).pipe(process.stdout);
            } else {
                stream.pipe(process.stdout);
            }

            results.once('done', function () {
                if (this.fail === 0) {
                    resolve();
                } else {
                    reject();
                }

                this.count = 0;
                this.fail = 0;
                this.pass = 0;
                this.tests = [];
                this._stream = through();
{'fraction_non_alphanumeric': 0.13145539906103287, 'fraction_numerical': 0.004173187271778821, 'mean_word_length': 1.324848484848485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4571829', 'n_tokens_mistral': 486, 'n_tokens_neox': 444, 'n_words': 101}