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

    require('load-grunt-tasks')(grunt);

    grunt.initConfig({

        availabletasks: {
            tasks: {}
        },

        jshint: {
            all: {
                src: ['Grunfile.js', 'karma.conf.js', 'src/**/*.js', 'test/**/*.js']
            }
        },

        copy: {
            hooks: {
                files: [
                    {
                        expand: true,
                        flatten: true,
                        cwd: 'git_hooks/',
                        src: '*',
                        dest: '.git/hooks/'
                    }
                ]
            }
        },

        bower: {
            install: {
                options: {
                    copy: false,
                    verbose: true
                }
            }
        },

        karma: {
            continuous: {
                configFile: 'karma.conf.js',
                autoWatch: true,
                singleRun: false
            },
            once: {
                configFile: 'karma.conf.js',
                autoWatch: false,
                singleRun: true
            }
        },

        bump: {
            options: {
                files: ['package.json', 'bower.json'],
                updateConfigs: [],
                commit: true,
                commitMessage: 'Release v%VERSION%',
                commitFiles: ['-a'],
                createTag: true,
                tagName: 'v%VERSION%',
                tagMessage: 'Version %VERSION%',
                push: true,
                pushTo: 'origin'
            }
        },

        publish: {
            main: {
                src: ['./']
            }
        }

    });

    grunt.registerTask('default', ['availabletasks:tasks']);
    grunt.registerTask('test', ['jshint', 'karma:once']);
    grunt.registerTask('prepush', ['test']);
    grunt.registerTask('run', ['jshint', 'karma:continuous']);
    // Keep test (even if pre-push hook also test) to avoid bump create tag if failed.
    grunt.registerTask('release', ['test', 'bump:patch', 'publish']);

};
<commit_msg>Remove 'v' prefix on tags when release.<commit_after>module.exports = function (grunt) {

    require('load-grunt-tasks')(grunt);

    grunt.initConfig({

        availabletasks: {
            tasks: {}
        },

        jshint: {
            all: {
                src: ['Grunfile.js', 'karma.conf.js', 'src/**/*.js', 'test/**/*.js']
            }
        },

        copy: {
            hooks: {
                files: [
                    {
                        expand: true,
                        flatten: true,
                        cwd: 'git_hooks/',
                        src: '*',
                        dest: '.git/hooks/'
                    }
                ]
            }
        },

        bower: {
            install: {
                options: {
                    copy: false,
                    verbose: true
                }
            }
        },

        karma: {
            continuous: {
                configFile: 'karma.conf.js',
                autoWatch: true,
                singleRun: false
            },
            once: {
                configFile: 'karma.conf.js',
                autoWatch: false,
                singleRun: true
            }
        },

        bump: {
            options: {
                files: ['package.json', 'bower.json'],
                updateConfigs: [],
                commit: true,
                commitMessage: 'Release v%VERSION%',
                commitFiles: ['-a'],
                createTag: true,
                tagName: '%VERSION%',
                tagMessage: 'Version %VERSION%',
                push: true,
                pushTo: 'origin'
            }
        },

        publish: {
            main: {
                src: ['./']
            }
        }

    });

    grunt.registerTask('default', ['availabletasks:tasks']);
    grunt.registerTask('test', ['jshint', 'karma:once']);
    grunt.registerTask('prepush', ['test']);
    grunt.registerTask('run', ['jshint', 'karma:continuous']);
    // Keep test (even if pre-push hook also test) to avoid bump create tag if failed.
    grunt.registerTask('release', ['test', 'bump:patch', 'publish']);

};

{'fraction_non_alphanumeric': 0.1348079161816065, 'fraction_numerical': 0.0, 'mean_word_length': 0.9925788497217068, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1140676', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1102, 'n_words': 214}