<commit_before>'use strict';


var ProbeError  = require('./lib/common').ProbeError;
var parsers     = require('./lib/parsers_stream');
var PassThrough = require('stream').PassThrough;
var pipeline    = require('stream').pipeline;


module.exports = function probeStream(src, keepOpen) {
  var proxy = new PassThrough();<commit_msg>Fix max listeners exceeded warning<commit_after>'use strict';


var ProbeError  = require('./lib/common').ProbeError;
var parsers     = require('./lib/parsers_stream');
var PassThrough = require('stream').PassThrough;
var pipeline    = require('stream').pipeline;


module.exports = function probeStream(src, keepOpen) {
  var proxy = new PassThrough();

  // increase max number of listeners to stop memory leak warning
  proxy.setMaxListeners(Object.keys(parsers).length + 10);
{'fraction_non_alphanumeric': 0.1344019728729963, 'fraction_numerical': 0.002466091245376079, 'mean_word_length': 5.105263157894737, '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': '5901916', 'n_tokens_mistral': 237, 'n_tokens_neox': 223, 'n_words': 59}