<commit_before><commit_msg>first commit<commit_after>var spawn = require('child_process').spawn;
var path = require('path');

var _ = require('underscore');




var child = spawn('REG', ['QUERY', path.normalize('HKLM/SOFTWARE/JavaSoft')]);

child.on('close', function(err) {
	if (err) {
		console.log('Error comand !' + err);
		console.log(child.output);
	} else {}
});

child.stdout.on('data', function(data) {
	//console.log('STDOUT:' + data);
	parseKey(data.toString('utf8'));
});
child.stderr.on('data', function(data) {
	console.log('STDERR:' + data);
});

function parseKey(data, callBack) {
	//console.dir(data.split('\r\n'));
	_.each(data.split('\r\n'), function(item) {
		if (item.search(/    /gm) !== -1) {
			console.log(item);
		}
	});
}
{'fraction_non_alphanumeric': 0.2336448598130841, 'fraction_numerical': 0.0026702269692923898, 'mean_word_length': 4.769230769230769, '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': '163846', 'n_tokens_mistral': 288, 'n_tokens_neox': 275, 'n_words': 43}