<commit_before>var
	FILES_TO_VALIDATE = [
		'lib/**/*.js',
		'tests/**/tests*.js',
		'tests/**/fixtures/**/*.js',
		'example/src/**/*.js',
		'example/*.js',
		'Gruntfile.js',

		// Excludes:
		'!**/build/**/*.js'
	],
	FILES_TO_TEST = [
		'tests/**/tests*.js'
	]
;


module.exports = function(grunt) {

	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-jscs');
	grunt.loadNpmTasks('grunt-lintspaces');
	grunt.loadNpmTasks('grunt-contrib-nodeunit');
	grunt.loadNpmTasks('grunt-contrib-concat');

	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),

		jshint: {
			source: {
				src: FILES_TO_VALIDATE,
				options: {
					jshintrc: '.jshintrc'
				}
			}
		},

		jscs: {
			source: {
				src: FILES_TO_VALIDATE,
				options: {
					config: '.jscs.json'
				}
			}
		},

		lintspaces: {
			source: {
				src: FILES_TO_VALIDATE,
				options: {
					rcconfig: '.lintspacesrc'
				}
			}
		},

		nodeunit: {
			source: {
				src: FILES_TO_TEST
			},
			readme: {
				src: 'docs/**/*.md'
			}
		},

		concat: {
			readme: {
				src: [
					'docs/intro.md',
					'docs/installation.md',
					'docs/options.md',
					'docs/functions.md',
					'docs/examples.md',
					'docs/contribution.md',
					'docs/license.md'
				],
				dest: 'README.md'
			}
		}
	});

	grunt.registerTask(
		'validate',
		'Validate all files.',<commit_msg>Fix grunt validation<commit_after>var
	FILES_TO_VALIDATE = [
		'lib/**/*.js',
		'tests/**/tests*.js',
		'tests/**/fixtures/**/*.js',
		'example/src/**/*.js',
		'example/*.js',
		'Gruntfile.js',

		// Excludes:
		'!**/build/**/*.js'
	],
	FILES_TO_TEST = [
		'tests/**/tests*.js'
	]
;


module.exports = function(grunt) {

	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-jscs');
	grunt.loadNpmTasks('grunt-lintspaces');
	grunt.loadNpmTasks('grunt-contrib-nodeunit');
	grunt.loadNpmTasks('grunt-contrib-concat');

	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),

		jshint: {
			source: {
				src: FILES_TO_VALIDATE,
				options: {
					jshintrc: '.jshintrc'
				}
			}
		},

		jscs: {
			source: {
				src: FILES_TO_VALIDATE,
				options: {
					config: '.jscs.json'
				}
			}
		},

		lintspaces: {
			source: {
				src: FILES_TO_VALIDATE,
				options: {
					rcconfig: '.lintspacesrc'
				}
			},
			readme: {
				src: 'docs/**/*.md'
			}
		},

		nodeunit: {
			source: {
				src: FILES_TO_TEST
			}
		},

		concat: {
			readme: {
				src: [
					'docs/intro.md',
					'docs/installation.md',
					'docs/options.md',
					'docs/functions.md',
					'docs/examples.md',
					'docs/contribution.md',
					'docs/license.md'
				],
				dest: 'README.md'
			}
		}
	});

	grunt.registerTask(
		'validate',
		'Validate all files.',
{'fraction_non_alphanumeric': 0.19874861980125139, 'fraction_numerical': 0.0, 'mean_word_length': 2.516170763260026, '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': '6145717', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1137, 'n_words': 135}