<commit_before>#!/usr/bin/env node
// module: data-stream, method: map

const DataStream = require('../').DataStream;

exports.stream = () => DataStream.fromArray([1,2,3,4,5,6,7,8,9,10])
    .map(
        (num) => ({val: num})
    )<commit_msg>update map sample for new operation<commit_after>#!/usr/bin/env node
// module: data-stream, method: map

const DataStream = require('../').DataStream;

exports.stream = () => DataStream.fromArray([1,2,3,4,5,6,7,8,9,10])
    .map(
        (num) => ({val: num})
    )
    .tap()
{'fraction_non_alphanumeric': 0.22072936660268713, 'fraction_numerical': 0.04222648752399232, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4090998', 'n_tokens_mistral': 202, 'n_tokens_neox': 195, 'n_words': 36}