<commit_before>module.exports = function(grunt) {
	'use strict';
	/** A Gruntfile is simply a JS file that loads tasks and sets up the configuration*/
	/** Project configuration.*/
	
	function fn2json(fnPath) {
		/**
		* Read config stored in JS; It will read function body including it's syntax, as text
		* Remove unnecessay parts like 'function', 'return', '{", etc...
		* convert text to JSON and return.
		*/
		var str = grunt.file.read(fnPath);
		str = str.split("={");
		if (str.length === 1) {
			str = str[0];
			str = str.split("= {");
		}
		str = str[1];
		str = str.split("return");
		str = "{"+(str[0]).trim();
		return JSON.parse(str);
	}
	var configPaths = fn2json('./src/config/ConfigPaths.js');
	
	/**
	* Loading tasks (kept in seperate js files) from "./tasks/" folder.
	*/
	var gruntConfig = {};
	gruntConfig['jshint'] = require('./tasks/' + 'jshint.js')(grunt, configPaths);
	gruntConfig['requirejs'] = require('./tasks/' + 'requirejs.js')(grunt, configPaths);
	gruntConfig['build'] = require('./tasks/' + 'build.js')(grunt, configPaths);
	grunt.initConfig(gruntConfig);
	//console.log("__________________");
	//console.log(gruntConfig);
		
	
	/** Load the plugins/tasks. --- Done from/inside individual task files*/
	//grunt.loadNpmTasks('grunt-contrib-uglify');
	//grunt.loadNpmTasks('grunt-jsdoc');
	
	
	/** Register tasks. */
	grunt.registerTask("default", [
        "build"
    ]);
	grunt.registerTask("build", [
        "jshint",
        "requirejs"
    ]);
	grunt.registerTask('consolidateJS', ['requirejs']);
		
};<commit_msg>creates a task to run all the tasks defined in grunt; this for testing purpose.<commit_after>module.exports = function(grunt) {
	'use strict';
	/** A Gruntfile is simply a JS file that loads tasks and sets up the configuration*/
	/** Project configuration.*/
	
	function fn2json(fnPath) {
		/**
		* Read config stored in JS; It will read function body including it's syntax, as text
		* Remove unnecessay parts like 'function', 'return', '{", etc...
		* convert text to JSON and return.
		*/
		var str = grunt.file.read(fnPath);
		str = str.split("={");
		if (str.length === 1) {
			str = str[0];
			str = str.split("= {");
		}
		str = str[1];
		str = str.split("return");
		str = "{"+(str[0]).trim();
		return JSON.parse(str);
	}
	var configPaths = fn2json('./src/config/ConfigPaths.js');
	
	/**
	* Loading tasks (kept in seperate js files) from "./tasks/" folder.
	*/
	var gruntConfig = {};
	//standalone tasks
	gruntConfig['jshint'] = require('./tasks/' + 'jshint.js')(grunt, configPaths);
	gruntConfig['requirejs'] = require('./tasks/' + 'requirejs.js')(grunt, configPaths);
	//tasks created out of mix-n-match of tasks
	gruntConfig['build'] = require('./tasks/' + 'build.js')(grunt, configPaths);
	grunt.initConfig(gruntConfig);
	//console.log("__________________");
	//console.log(gruntConfig);
		
	
	/** Load the plugins/tasks. --- Done from/inside individual task files*/
	//grunt.loadNpmTasks('grunt-contrib-uglify');
	//grunt.loadNpmTasks('grunt-jsdoc');
	
	
	/** Register tasks. */
	grunt.registerTask("default", [
        "all"
    ]);
	grunt.registerTask("all", [
        "jshint",
        "requirejs"
    ]);
	grunt.registerTask("build", [
        "jshint",
        "requirejs"
    ]);
	grunt.registerTask('consolidateJS', ['requirejs']);
		
};
{'fraction_non_alphanumeric': 0.18538647342995168, 'fraction_numerical': 0.0036231884057971015, 'mean_word_length': 3.489159891598916, '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': '3975106', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1102, 'n_words': 266}