<commit_before>'use strict';

// Small utility functions to help work with Node events, including an event
// emitter that can be shared between modules in a process, and an iterator
// over a stream of events.

// We use a non camel case variable name intentionally here
/* eslint camelcase:1 */

const _ = require('underscore');
const events = require('events');
const emitStream = require('emit-stream');
const through = require('through');

const memoize = _.memoize;
const first = _.first;
const rest = _.rest;

// Return an emitter, if a name is provided the emitter is shared
const emitter = (name) => {
  if(name) return global.__shared_emitter(name);
  const e = new events.EventEmitter();
  // Don't limit the number of listeners<commit_msg>Set maximum listeners to unlimited for all EventEmitter instances<commit_after>'use strict';

// Small utility functions to help work with Node events, including an event
// emitter that can be shared between modules in a process, and an iterator
// over a stream of events.

// We use a non camel case variable name intentionally here
/* eslint camelcase:1 */

const _ = require('underscore');
const events = require('events');
const emitStream = require('emit-stream');
const through = require('through');

const memoize = _.memoize;
const first = _.first;
const rest = _.rest;

// Don't limit the number of listeners
events.EventEmitter.defaultMaxListeners = 0;

// Return an emitter, if a name is provided the emitter is shared
const emitter = (name) => {
  if(name) return global.__shared_emitter(name);
  const e = new events.EventEmitter();
  // Don't limit the number of listeners
{'fraction_non_alphanumeric': 0.10067114093959731, 'fraction_numerical': 0.0018303843807199512, 'mean_word_length': 4.290322580645161, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3925022', 'n_tokens_mistral': 447, 'n_tokens_neox': 428, 'n_words': 199}