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

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        copy: {
            main: {
                files: [
                    {
                        src: 'src/js/<%= pkg.name %>.js',
                        dest: 'build/<%= pkg.name %>-<%= pkg.version %>.js'
                    },
                    {
                        src: 'src/css/<%= pkg.name %>.css',
                        dest: 'build/<%= pkg.name %>-<%= pkg.version %>.css'
                    }
                ]
            }
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
                preserveComments: 'some'
            },
            build: {
                src: 'src/js/<%= pkg.name %>.js',
                dest: 'build/<%= pkg.name %>-<%= pkg.version %>.min.js'
            }
        },
        cssmin: {
            build: {
                src: 'src/css/<%= pkg.name %>.css',
                dest: 'build/<%= pkg.name %>-<%= pkg.version %>.min.css'
            }
        },
        jslint: {
            files: [
                'Gruntfile.js',
                'src/js/*.js',
                'test/js/*.js'
            ]
        },
        karma: {
            unit: {
                options: {
                    configFile: 'karma.conf.js',
                    autoWatch: false,
                    singleRun: true,
                    keepalive: true
                }
            }
        },
        bump: {
            options: {
                pushTo: "origin"
            }
        }
    });

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-karma');
    grunt.loadNpmTasks('grunt-jslint');
    grunt.loadNpmTasks('grunt-css');
    grunt.loadNpmTasks('grunt-bump');

    grunt.registerTask('default', [ 'jslint', 'karma:unit', 'uglify', 'cssmin', 'copy' ]);
};<commit_msg>Bump version in bower.json too.<commit_after>/*globals module*/
module.exports = function (grunt) {
    "use strict";

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        copy: {
            main: {
                files: [
                    {
                        src: 'src/js/<%= pkg.name %>.js',
                        dest: 'build/<%= pkg.name %>-<%= pkg.version %>.js'
                    },
                    {
                        src: 'src/css/<%= pkg.name %>.css',
                        dest: 'build/<%= pkg.name %>-<%= pkg.version %>.css'
                    }
                ]
            }
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
                preserveComments: 'some'
            },
            build: {
                src: 'src/js/<%= pkg.name %>.js',
                dest: 'build/<%= pkg.name %>-<%= pkg.version %>.min.js'
            }
        },
        cssmin: {
            build: {
                src: 'src/css/<%= pkg.name %>.css',
                dest: 'build/<%= pkg.name %>-<%= pkg.version %>.min.css'
            }
        },
        jslint: {
            files: [
                'Gruntfile.js',
                'src/js/*.js',
                'test/js/*.js'
            ]
        },
        karma: {
            unit: {
                options: {
                    configFile: 'karma.conf.js',
                    autoWatch: false,
                    singleRun: true,
                    keepalive: true
                }
            }
        },
        bump: {
            options: {
                files: [ 'package.json', 'bower.json' ],
                pushTo: "origin"
            }
        }
    });

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-karma');
    grunt.loadNpmTasks('grunt-jslint');
    grunt.loadNpmTasks('grunt-css');
    grunt.loadNpmTasks('grunt-bump');

    grunt.registerTask('default', [ 'jslint', 'karma:unit', 'uglify', 'cssmin', 'copy' ]);
};
{'fraction_non_alphanumeric': 0.1677403960868528, 'fraction_numerical': 0.0, 'mean_word_length': 1.0408958130477117, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '446413', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1249, 'n_words': 191}