<commit_before>module.exports = function(grunt) {
    "use strict";

    // Load all grunt-* modules in package.json
    require("load-grunt-tasks")(grunt);

    // Read in local environment variables
    var config = {
        mocha_grep: "",
        rst2html: "rst2html",
        jsdoc3: "jsdoc",
        jsdoc_private: false
    };

    // Try to load a local configuration file.
    var local_config = {};
    try {
        local_config = require('./local.grunt');
    }
    catch (e) {
        if (e.code !== "MODULE_NOT_FOUND")
            throw e;
    }

    // Override the defaults with what the local file has and the
    // environment
    for(var i in config) {
        if (local_config[i] !== undefined)
            config[i] = local_config[i];
        var opt_name = i.replace("_", "-");
        var opt = grunt.option(opt_name);
        if (opt !== undefined)
            config[i] = opt;
    }

    grunt.initConfig({
        copy: {
            build: {
                files: [
                    { src: "lib/**/*.js", dest: "build/" },
                    { src: "lib/**/*.xsl", dest: "build/" }
                ]
            }
        },
        clean: {
            build: ["build/"],
            readme: ["README.html"]
        },
        jsdoc: {
            build: {
                jsdoc: config.jsdoc3,
                src: "lib/**/*.js",
                dest: "build/doc",
                options: { private: config.jsdoc_private}
            }
        },
        shell: {
            readme: {
                src: "README.rst",
                dest: "README.html",
                options: {
                    stdout: true,
                    stderr: true,<commit_msg>Added some feedback when variables are set.<commit_after>module.exports = function(grunt) {
    "use strict";

    // Load all grunt-* modules in package.json
    require("load-grunt-tasks")(grunt);

    // Read in local environment variables
    var config = {
        mocha_grep: "",
        rst2html: "rst2html",
        jsdoc3: "jsdoc",
        jsdoc_private: false
    };

    // Try to load a local configuration file.
    var local_config = {};
    try {
        local_config = require('./local.grunt');
    }
    catch (e) {
        if (e.code !== "MODULE_NOT_FOUND")
            throw e;
    }

    // Override the defaults with what the local file has and the
    // environment
    for(var i in config) {
        var opt_name = i.replace("_", "-");
        var opt = grunt.option(opt_name);
        if (opt !== undefined) {
            console.log(i + " set from command line to " + opt);
            config[i] = opt;
        }
        else if (local_config[i] !== undefined) {
            console.log(i + " set from local.grunt to " + local_config[i]);
            config[i] = local_config[i];
        }
    }

    grunt.initConfig({
        copy: {
            build: {
                files: [
                    { src: "lib/**/*.js", dest: "build/" },
                    { src: "lib/**/*.xsl", dest: "build/" }
                ]
            }
        },
        clean: {
            build: ["build/"],
            readme: ["README.html"]
        },
        jsdoc: {
            build: {
                jsdoc: config.jsdoc3,
                src: "lib/**/*.js",
                dest: "build/doc",
                options: { private: config.jsdoc_private}
            }
        },
        shell: {
            readme: {
                src: "README.rst",
                dest: "README.html",
                options: {
                    stdout: true,
                    stderr: true,
{'fraction_non_alphanumeric': 0.13659078289838977, 'fraction_numerical': 0.002220988339811216, 'mean_word_length': 1.2646134506599622, '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': '1487334', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1029, 'n_words': 249}