<commit_before>// Initialisation
var src = require('fs').readFileSync('spark.js', 'utf8'),
	sys = require('sys'),
	jshint = require('./jshint').JSHINT,
	i = null,
	e = null;

// Run jshint
var result = jshint(src, {
	curly: true,
	eqeqeq: true,
	forin: true,
	browser: true,
	evil: true
});

// Check for errors
if(!result) {
	// It's the end of the world!
	for(i = 0; i < jshint.errors.length; i++) {
		// Log the error
		e = jshint.errors[i];
		sys.puts(e.raw + ' (' + e.line + ':' + e.character + ')' + "\n" + e.evidence + "\n");
	}
}<commit_msg>Adapted validate.js for this project<commit_after>// Initialisation
var src = require('fs').readFileSync('listen.js', 'utf8'),
	sys = require('sys'),
	jshint = require('./jshint').JSHINT,
	i = null,
	e = null;

// Run jshint
var result = jshint(src, {
	curly: true,
	eqeqeq: true,
	forin: true,
	browser: true
});

// Check for errors
if(!result) {
	// It's the end of the world!
	for(i = 0; i < jshint.errors.length; i++) {
		// Log the error
		e = jshint.errors[i];
		sys.puts(e.raw + ' (' + e.line + ':' + e.character + ')' + "\n" + e.evidence + "\n");
	}
}
{'fraction_non_alphanumeric': 0.21190261496844004, 'fraction_numerical': 0.0036068530207394047, 'mean_word_length': 3.220532319391635, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4777578', 'n_tokens_mistral': 469, 'n_tokens_neox': 453, 'n_words': 112}