<commit_before>module.exports = function (grunt) {
    grunt.loadNpmTasks('grunt-open');
    grunt.loadNpmTasks('grunt-webpack');
    grunt.initConfig({
        webpack: {
            dist: {
                entry: './backbone-roger.js',
                output: {
                    filename: 'backbone-roger.js',
                    libraryTarget: 'umd',
                    path: 'dist/'
                }
            }
        },
        open: {
            options: {
                delay: 500
            },
            dev: {
                path: 'http://localhost:9000/webpack-dev-server/demo.html'
            }
        },
        'webpack-dev-server': {
            options: {
                port: 9000,
                webpack: '<%= webpack.dist %>',
                publicPath: '/dist/',
                contentBase: './',
            },
            dev: {
                keepAlive: true,
            }
        }
    });

    grunt.registerTask('default', ['webpack:dist']);
    grunt.registerTask('serve', ['open:dev', 'webpack-dev-server']);
};<commit_msg>add minify task<commit_after>module.exports = function (grunt) {
    var webpack = require('webpack');
    grunt.loadNpmTasks('grunt-open');
    grunt.loadNpmTasks('grunt-webpack');
    grunt.initConfig({
        webpack: {
            dist: {
                entry: './backbone-roger.js',
                output: {
                    filename: 'backbone-roger.js',
                    libraryTarget: 'umd',
                    path: 'dist/'
                }
            },
            dist_min: {
                entry: './backbone-roger.js',
                output: {
                    filename: 'backbone-roger.min.js',
                    libraryTarget: 'umd',
                    path: 'dist/'
                },
                plugins: [
                    new webpack.optimize.UglifyJsPlugin()
                ]
            }
        },
        open: {
            options: {
                delay: 500
            },
            dev: {
                path: 'http://localhost:9000/webpack-dev-server/demo.html'
            }
        },
        'webpack-dev-server': {
            options: {
                port: 9000,
                webpack: '<%= webpack.dist %>',
                publicPath: '/dist/',
                contentBase: './',
            },
            dev: {
                keepAlive: true,
            }
        }
    });

    grunt.registerTask('default', ['build']);
    grunt.registerTask('build', ['webpack:dist', 'webpack:dist_min']);
    grunt.registerTask('serve', ['open:dev', 'webpack-dev-server']);
};
{'fraction_non_alphanumeric': 0.14105504587155962, 'fraction_numerical': 0.008409785932721712, 'mean_word_length': 1.0936, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4457744', 'n_tokens_mistral': 752, 'n_tokens_neox': 692, 'n_words': 103}