<commit_before>module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        jshint: {
            files: [
                'src/**/*.js'
            ],
            options: {
                ignores: [],
                curly: true,
                eqnull: true,
                browser: true,
                globals: {
                    jQuery: true,
                    console: true,
                    exports: true,
                    require: true
                },
            }
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
                mangle: false
            },
            build: {
                files: {
                    'dist/blackjack-<%= pkg.version %>.min.js': ['src/**/*.js']
                }
            },
        },
        handlebars: {
            compile: {
                options: {
                    namespace: "dodgercms.templates",
                    partialsUseNamespace: false,
                    partialRegex: /.*/,
                    partialsPathRegex: /templates\/partials\//,
                    processPartialName: function(filePath) {
                        var pieces = filePath.split("/");
                        return pieces[pieces.length - 1];
                    },
                    processName: function(filePath) {
                        var pieces = filePath.split("/");
                        return pieces[pieces.length - 1];
                    }
                },
                files: {
                    "templates/compiled/entry.html.js": "templates/entry.html",
                    "templates/compiled/nav.html.js": "templates/nav.html",
                    "templates/compiled/menu.html.js": "templates/partials/menu.html"
                }
            }
        }
    });


    //grunt.loadNpmTasks('grunt-contrib-jshint');
    //grunt.loadNpmTasks('grunt-contrib-uglify');

    //grunt.registerTask('default', ['jshint', 'uglify']);

    grunt.loadNpmTasks('grunt-contrib-handlebars');
   // grunt.loadNpmTasks('grunt-contrib-uglify');

    grunt.registerTask('default', ['handlebars']);
};<commit_msg>Update Gruntfile to reflect changes in template compilation<commit_after>module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        jshint: {
            files: [
                'src/**/*.js'
            ],
            options: {
                ignores: [],
                curly: true,
                eqnull: true,
                browser: true,
                globals: {
                    jQuery: true,
                    console: true,
                    exports: true,
                    require: true
                },
            }
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
                mangle: false
            },
            build: {
                files: {
                    'dist/blackjack-<%= pkg.version %>.min.js': ['src/**/*.js']
                }
            },
        },
        handlebars: {
            compile: {
                options: {
                    namespace: "dodgercms.templates",
                    //partialsUseNamespace: false,
                    //partialRegex: /.*/,
                    //partialsPathRegex: /templates\/partials\//,
                    // processPartialName: function(filePath) {
                    //     var pieces = filePath.split("/");
                    //     return pieces[pieces.length - 1];
                    // },
                    processName: function(filePath) {
                        var pieces = filePath.split("/");
                        return pieces[pieces.length - 1];
                    }
                },
                files: {
                    "templates/compiled/entry.html.js": "templates/entry.html"
                    // "templates/compiled/nav.html.js": "templates/nav.html",
                    // "templates/compiled/menu.html.js": "templates/partials/menu.html"
                }
            }
        }
    });


    // grunt.loadNpmTasks('grunt-contrib-jshint');
    // grunt.loadNpmTasks('grunt-contrib-uglify');

    // grunt.registerTask('default', ['jshint', 'uglify']);
    grunt.loadNpmTasks('grunt-contrib-handlebars');
    // grunt.loadNpmTasks('grunt-contrib-uglify');

    grunt.registerTask('default', ['handlebars']);
};
{'fraction_non_alphanumeric': 0.13885267275097785, 'fraction_numerical': 0.000869187309865276, 'mean_word_length': 1.0989512083903328, 'pattern_counts': {'":': 6, '<': 11, '<?xml version=': 0, '>': 11, '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': '1396966', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1156, 'n_words': 171}