<commit_before>/*jshint node:true, quotmark:single */
'use strict';

module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        qunit: {
            all: 'test/index.html'
        },
        jshint: {
            options: {
                jshintrc: true
            },
            grunt: 'Gruntfile.js',
            source: 'src/**/*.js',
            tests: 'test/**/*.js'
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> v<%= pkg.version %> | <%= pkg.license %> */\n'
            },
            build: {
                files: {
                    'build/jquery.domPath-<%= pkg.version %>.min.js': 'src/jquery.domPath.js'
                }
            }
        },
        watch: {
            options: {
                livereload: true
            },
            files: '{src,test}/**/*.js',
            tasks: 'default'
        }
    });

    //for every grunt dependency load npm task
    for (var key in grunt.file.readJSON('package.json').devDependencies) {
        if (key !== 'grunt' && key.indexOf('grunt') === 0) {
            grunt.loadNpmTasks(key);
        }
    }

    grunt.registerTask('test', ['jshint', 'qunit']);
    grunt.registerTask('default', ['jshint', 'qunit', 'uglify']);
};<commit_msg>Adding grunt minifier for CDN<commit_after>/*jshint node:true, quotmark:single */
'use strict';

module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        qunit: {
            all: 'test/index.html'
        },
        jshint: {
            options: {
                jshintrc: true
            },
            grunt: 'Gruntfile.js',
            source: 'src/**/*.js',
            tests: 'test/**/*.js'
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> v<%= pkg.version %> | <%= pkg.license %> */\n'
            },
            build: {
                files: {
                    'build/jquery.domPath-<%= pkg.version %>.min.js': 'src/jquery.domPath.js',
                    'src/jquery.domPath.min.js': 'src/jquery.domPath.js'
                }
            }
        },
        watch: {
            options: {
                livereload: true
            },
            files: '{src,test}/**/*.js',
            tasks: 'default'
        }
    });

    //for every grunt dependency load npm task
    for (var key in grunt.file.readJSON('package.json').devDependencies) {
        if (key !== 'grunt' && key.indexOf('grunt') === 0) {
            grunt.loadNpmTasks(key);
        }
    }

    grunt.registerTask('test', ['jshint', 'qunit']);
    grunt.registerTask('default', ['jshint', 'qunit', 'uglify']);
    grunt.registerTask('cdn', ['uglify']);
};
{'fraction_non_alphanumeric': 0.17428880086424198, 'fraction_numerical': 0.0007202016564638099, 'mean_word_length': 1.4304461942257218, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6017253', 'n_tokens_mistral': 906, 'n_tokens_neox': 848, 'n_words': 150}