<commit_before>module.exports = function (grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        mochaTest: {
            test: {
                options: {
                    reporter: 'spec'
                },
                src: ['test/**/*.js']
            }
        },

        uglify: {
            cassier: {
                options: {
                    banner: '/*! <%= pkg.name %>@<%= pkg.version %> by <%= pkg.author.name %> [<%= pkg.author.email %>] */\n'
                },
                files: {
                    'dist/cassier.min.js': ['src/cassier.js']
                }
            },
            locales: {
                options: {
                    preserveComments: 'some'
                },
                files: [{
                    expand: true,
                    cwd: 'src/locales',
                    src: '**/*.js',
                    dest: 'dist/locales'
                }]
            }
        },

        jshint: {
            all: [
                'Gruntfile.js',
                'src/cassier.js',
                'src/locales/**/*.js'
            ],
            options: {
                node: true,
                browser: true,
                curly: true,
                devel: false,
                eqeqeq: true,
                noarg: true,
                undef: true,
                "-W100": true,
                globals: {
                    define: true,
                    require: true
                }
            }
        },

        release: {
            options: {
                bump: true,
                add: true,
                commit: true,
                tag: true,
                push: true,
                pushTags: true,
                npm: true,
                tagName: 'v-<%= version %>'
            }
        }
    });

    grunt.loadNpmTasks('grunt-mocha-test');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-release');

    grunt.registerTask('test', 'mochaTest');
    grunt.registerTask('build', ['mochaTest', 'jshint', 'uglify']);
};<commit_msg>release command fix<commit_after>module.exports = function (grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        mochaTest: {
            test: {
                options: {
                    reporter: 'spec'
                },
                src: ['test/**/*.js']
            }
        },

        uglify: {
            cassier: {
                options: {
                    banner: '/*! <%= pkg.name %>@<%= pkg.version %> by <%= pkg.author.name %> [<%= pkg.author.email %>] */\n'
                },
                files: {
                    'dist/cassier.min.js': ['src/cassier.js']
                }
            },
            locales: {
                options: {
                    preserveComments: 'some'
                },
                files: [{
                    expand: true,
                    cwd: 'src/locales',
                    src: '**/*.js',
                    dest: 'dist/locales'
                }]
            }
        },

        jshint: {
            all: [
                'Gruntfile.js',
                'src/cassier.js',
                'src/locales/**/*.js'
            ],
            options: {
                node: true,
                browser: true,
                curly: true,
                devel: false,
                eqeqeq: true,
                noarg: true,
                undef: true,
                "-W100": true,
                globals: {
                    define: true,
                    require: true
                }
            }
        },

        release: {
            options: {
                bump: true,
                add: true,
                commit: true,
                tag: true,
                push: true,
                pushTags: true,
                npm: true,
                tagName: 'v-<%= version %>'
            }
        }
    });

    grunt.loadNpmTasks('grunt-mocha-test');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-release');

    grunt.registerTask('test', 'mochaTest');
    grunt.registerTask('build', ['mochaTest', 'jshint', 'uglify']);
    grunt.registerTask('release:patch', ['mochaTest', 'jshint', 'uglify', 'release:patch']);
    grunt.registerTask('release:minor', ['mochaTest', 'jshint', 'uglify', 'release:minor']);
    grunt.registerTask('release:major', ['mochaTest', 'jshint', 'uglify', 'release:major']);
};
{'fraction_non_alphanumeric': 0.14003902016041622, 'fraction_numerical': 0.001300672013873835, 'mean_word_length': 0.9726378794356563, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 13, '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': '4755883', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1250, 'n_words': 207}