<commit_before>/*
JSONStream.Parser class

Inherits from stream.Transform (http://nodejs.org/api/stream.html#stream_class_stream_transform)

Usage:

var Parser = require("json-stream").Parser
,   parser = new Parser();

parser.write('{"a": 1, "b": 2}');

parser.on("data", function (object) {
  console.log(object.a); //-> 1
  console.log(object.b);
});

parser.end();
*/
'use strict';

module.exports = Parser;

var Transform = require("stream").Transform
,   util = require("util");<commit_msg>Updated Parser's usage documentation<commit_after>/*
JSONStream.Parser class

Inherits from stream.Transform (http://nodejs.org/api/stream.html#stream_class_stream_transform)

Usage:

var Parser = require("json-stream").Parser
,   parser = new Parser();

parser.write('{"a": 1,');
parser.write('"b": 2}');

parser.on("data", function (object) {
  console.log(object.a); //-> 1
  console.log(object.b); //-> 2
});

parser.end();
*/
'use strict';

module.exports = Parser;

var Transform = require("stream").Transform
,   util = require("util");
{'fraction_non_alphanumeric': 0.19345524542829645, 'fraction_numerical': 0.006737247353224254, 'mean_word_length': 4.842696629213483, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 6, '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': '6458871', 'n_tokens_mistral': 361, 'n_tokens_neox': 350, 'n_words': 71}