<commit_before>var test = require('tape')
    , streamify = require('..')
;

test('ctor', function(t) {
    t.throws(function() {
        streamify();
    }, 'throws: no argument');

    [null, undefined, 1, 'string', new Object(), function(){}].forEach(
        function(item) {
            t.throws(function() {
                streamify(item);
            }, 'throws: ' + (!item? 'null/undefined' : item.toString()));
        }
    );

    [[], [1], [1,2], ['1', '2'], [new Buffer('asdf')]].forEach(
        function(item) {
            t.doesNotThrow(function() {<commit_msg>test/3.js :: verify that `NaN` throws an error as a source object<commit_after>var test = require('tape')
    , streamify = require('..')
;

test('ctor', function(t) {
    t.throws(function() {
        streamify();
    }, 'throws: no argument');

    [null, undefined, 1, NaN, 'string', new Object(), function(){}].forEach(
        function(item) {
            t.throws(function() {
                streamify(item);
            }, 'throws: ' + (!item? 'null/undefined' : item.toString()));
        }
    );

    [[], [1], [1,2], ['1', '2'], [new Buffer('asdf')]].forEach(
        function(item) {
            t.doesNotThrow(function() {
{'fraction_non_alphanumeric': 0.21152263374485597, 'fraction_numerical': 0.010699588477366255, 'mean_word_length': 2.4061624649859943, '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': '4344742', 'n_tokens_mistral': 389, 'n_tokens_neox': 379, 'n_words': 79}