<commit_before>var readline = require('readline');
var Echo = require('./echo');
var echo = new Echo();


echo.on('raw', function (event) {
	console.log("raw:", JSON.stringify(event));
});

echo.on('data', function (event) {
	console.log(event);
});

var rl = readline.createInterface({
	input: process.stdin,
	output: process.stdout
});

function readPassword(query, callback) {<commit_msg>updated example to add error handling of error event.<commit_after>var readline = require('readline');
var Echo = require('./echo');
var echo = new Echo();


echo.on('raw', function (event) {
	console.log("raw:", JSON.stringify(event));
});

echo.on('data', function (event) {
	console.log(event);
});

echo.on('error', function(data){
	console.error(data);
});

var rl = readline.createInterface({
	input: process.stdin,
	output: process.stdout
});

function readPassword(query, callback) {
{'fraction_non_alphanumeric': 0.18594104308390022, 'fraction_numerical': 0.0, 'mean_word_length': 5.6893939393939394, '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': '2578700', 'n_tokens_mistral': 287, 'n_tokens_neox': 280, 'n_words': 69}