<commit_before>module.exports = function(grunt) {

    // Load all grunt tasks matching the `grunt-*` pattern
    require( 'load-grunt-tasks' )(grunt);

    // Configurable paths
    var config = {
        src: 'src',
        build: 'build'
    };

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        config: config,
        // Compile Sass
        sass: {
            dev: {
                files: {
                    'css/style.css': 'sass/main.scss'
                },
                options: {
                    style: 'expanded',
                    sourcemap: true
                }
            }
        },
        // Watch for file changes
        watch: {
            css: {
                files: [ 'sass/**/*.scss' ],
                tasks: [ 'sass:dev', 'autoprefixer:dev' ],
                options: {
                    livereload: true,
                },
            }
        },
        // Autoprefix the compiled CSS
        autoprefixer: {
            dev: {
                options: {
                    browsers: ['last 2 version', 'ie 8', 'ie 9']
                },
                src: 'css/style.css',
                dest: 'css/style.css'
            }
        },
        // Minify CSS
        cssmin: {
            build: {
                files: {
                    'css/style.min.css': 'css/style.css'
                }
            }
        },
        // Minify images
        imagemin: {
            dynamic: {
                files: [{
                    expand: true,
                    cwd: 'images/',
                    src: ['**/*.{png,jpg,gif}'],
                    dest: 'images/'
                }]
            }
        },
        // Clean the build folder
        clean: {
            build: {
                src: ['build/']
            }
        },
        // Copy to build folder
        copy: {
            build: {
                src: ['**', '!.gitignore', '!node_modules/**', '!.css.map'],
                dest: 'build/',
            },
        },
        // Compress the build folder into a zip file
        compress: {
            build: {
                options: {
                    archive: '<%= config.build %>/jayj-html5-theme-<%= pkg.version %>.zip'
                },
                cwd: 'build/',
                src: ['**/*'],
                dest: 'jayj-html5-theme/'
            }
        }
    });

    // Load the plugin that provides the "uglify" task.
    //grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-compress');

    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.loadNpmTasks('grunt-contrib-imagemin');
    grunt.loadNpmTasks('grunt-autoprefixer');
    grunt.loadNpmTasks('grunt-contrib-cssmin');

    // Default task
    grunt.registerTask( 'default', [ 'watch' ] );

    // Generate CSS task
    grunt.registerTask( 'css', [ 'sass', 'autoprefixer' ]);

    // Pre-build task
    grunt.registerTask( 'pre-build', [ 'sass', 'autoprefixer', 'cssmin:build', 'imagemin' ]);

    // Build task
    grunt.registerTask( 'build', [ 'clean:build', 'copy:build', 'compress:build' ]);

};
<commit_msg>Grunt: Add more files to the watch task<commit_after>module.exports = function(grunt) {

    // Load all grunt tasks matching the `grunt-*` pattern
    require( 'load-grunt-tasks' )(grunt);

    // Configurable paths
    var config = {
        src: 'src',
        build: 'build'
    };

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        config: config,

        // Watch for file changes
        watch: {
            sass: {
                files: [ '<%= config.src %>/sass/**/*.scss' ],
                tasks: [ 'sass:dev', 'autoprefixer' ],
            },
            js: {
                files: [ '<%= config.src %>/js/{,*/}*.js' ],
                tasks: [ 'newer:jshint:js' ]
            },
            images: {
                files: [ '<%= config.src %>/images/{,*/}*' ],
                tasks: [ 'newer:imagemin' ]
            },
            grunt: {
                files: [ 'Gruntfile.js' ],
                tasks: [ 'jshint:grunt' ]
            }
        },

        // Compile Sass
        sass: {
            dev: {
                files: {
                    'css/style.css': 'sass/main.scss'
                },
                options: {
                    style: 'expanded',
                    sourcemap: true
                }
            }
        },

        // Autoprefix the compiled CSS
        autoprefixer: {
            dev: {
                options: {
                    browsers: ['last 2 version', 'ie 8', 'ie 9']
                },
                src: 'css/style.css',
                dest: 'css/style.css'
            }
        },
        // Minify CSS
        cssmin: {
            build: {
                files: {
                    'css/style.min.css': 'css/style.css'
                }
            }
        },
        // Minify images
        imagemin: {
            dynamic: {
                files: [{
                    expand: true,
                    cwd: 'images/',
                    src: ['**/*.{png,jpg,gif}'],
                    dest: 'images/'
                }]
            }
        },
        // Clean the build folder
        clean: {
            build: {
                src: ['build/']
            }
        },
        // Copy to build folder
        copy: {
            build: {
                src: ['**', '!.gitignore', '!node_modules/**', '!.css.map'],
                dest: 'build/',
            },
        },
        // Compress the build folder into a zip file
        compress: {
            build: {
                options: {
                    archive: '<%= config.build %>/jayj-html5-theme-<%= pkg.version %>.zip'
                },
                cwd: 'build/',
                src: ['**/*'],
                dest: 'jayj-html5-theme/'
            }
        }
    });

    // Load the plugin that provides the "uglify" task.
    //grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-compress');

    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.loadNpmTasks('grunt-contrib-imagemin');
    grunt.loadNpmTasks('grunt-autoprefixer');
    grunt.loadNpmTasks('grunt-contrib-cssmin');

    // Default task
    grunt.registerTask( 'default', [ 'watch' ] );

    // Generate CSS task
    grunt.registerTask( 'css', [ 'sass', 'autoprefixer' ]);

    // Pre-build task
    grunt.registerTask( 'pre-build', [ 'sass', 'autoprefixer', 'cssmin:build', 'imagemin' ]);

    // Build task
    grunt.registerTask( 'build', [ 'clean:build', 'copy:build', 'compress:build' ]);

};

{'fraction_non_alphanumeric': 0.15039313795568263, 'fraction_numerical': 0.0014295925661186562, 'mean_word_length': 1.1896713615023473, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '560392', 'n_tokens_mistral': 2149, 'n_tokens_neox': 2031, 'n_words': 378}