<commit_before>'use strict';

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        // Metadata.
        pkg: grunt.file.readJSON('mentions-kinder.jquery.json'),
        banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
            '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
            '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
            '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.company %>;' +
            ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
        // Task configuration.
        clean: {
            files: ['dist', 'tmp', 'test/*.js']
        },
        coffee: {
            dev:{
                expand: true,
                cwd: 'src',
                src: ['**/*.coffee'],
                dest: 'tmp/src',
                ext: '.js'
            },
            test:{
                files:{
                    'tmp/tests.js':'test/**/*.coffee'
                }
            }
        },
        concat: {
            options: {
                banner: '<%= banner %>' +
                    "(function($){\n",
                footer: "\n})(jQuery);",
                stripBanners: true
            },
            dev: {
                src: [
                    'tmp/src/mentions-kinder.js',
                    'tmp/src/autocompleter.js',
                    'src/extend-patch.js',
//                    'tmp/src/autocompleter/dummy-autocompleter.js',
                    'tmp/src/autocompleter/select2-autocompleter.js',
                    'tmp/src/jquery-plugin.js'
                ],
                dest: 'tmp/<%= pkg.name %>.js',
                nonull: true
            },
            dist: {
                src: [
                    'tmp/src/mentions-kinder.js',
                    'tmp/src/autocompleter.js',
                    'src/extend-patch.js',
//                    'tmp/src/autocompleter/dummy-autocompleter.js',
                    'tmp/src/autocompleter/select2-autocompleter.js',
                    'tmp/src/jquery-plugin.js'
                ],
                dest: 'dist/<%= pkg.name %>.js',
                nonull: true
            },
            dist_rangy: {
                src: [
                    'tmp/src/mentions-kinder.js',
                    'tmp/src/autocompleter.js',
                    'src/extend-patch.js',
//                    'tmp/src/autocompleter/dummy-autocompleter.js',
                    'tmp/src/autocompleter/select2-autocompleter.js',
                    'libs/rangy-1.2.3/uncompressed/rangy-core.js',
                    'tmp/src/jquery-plugin.js',
                    'tmp/src/init-rangy.js'
                ],
                dest: 'dist/<%= pkg.name %>.rangy.js',
                nonull: true
            }
        },
        uglify: {
            options: {
                banner: '<%= banner %>'
            },
            dist: {
                src: '<%= concat.dist.dest %>',
                dest: 'dist/<%= pkg.name %>.min.js'
            },
            dist_rangy: {
                src: '<%= concat.dist_rangy.dest %>',
                dest: 'dist/<%= pkg.name %>.rangy.min.js'
            }
        },
        qunit: {
            files: ['test/**/*-test.html']
        },
        watch: {
            all:{
                files:['src/**/*.coffee', 'test/**/*.coffee'],
                tasks:['test']
            }
        },
        connect: {
            server: {
                options: {
                    port: 1338
                }
            }<commit_msg>public grunt server for IE vm testing<commit_after>'use strict';

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        // Metadata.
        pkg: grunt.file.readJSON('mentions-kinder.jquery.json'),
        banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
            '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
            '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
            '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.company %>;' +
            ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
        // Task configuration.
        clean: {
            files: ['dist', 'tmp', 'test/*.js']
        },
        coffee: {
            dev:{
                expand: true,
                cwd: 'src',
                src: ['**/*.coffee'],
                dest: 'tmp/src',
                ext: '.js'
            },
            test:{
                files:{
                    'tmp/tests.js':'test/**/*.coffee'
                }
            }
        },
        concat: {
            options: {
                banner: '<%= banner %>' +
                    "(function($){\n",
                footer: "\n})(jQuery);",
                stripBanners: true
            },
            dev: {
                src: [
                    'tmp/src/mentions-kinder.js',
                    'tmp/src/autocompleter.js',
                    'src/extend-patch.js',
//                    'tmp/src/autocompleter/dummy-autocompleter.js',
                    'tmp/src/autocompleter/select2-autocompleter.js',
                    'tmp/src/jquery-plugin.js'
                ],
                dest: 'tmp/<%= pkg.name %>.js',
                nonull: true
            },
            dist: {
                src: [
                    'tmp/src/mentions-kinder.js',
                    'tmp/src/autocompleter.js',
                    'src/extend-patch.js',
//                    'tmp/src/autocompleter/dummy-autocompleter.js',
                    'tmp/src/autocompleter/select2-autocompleter.js',
                    'tmp/src/jquery-plugin.js'
                ],
                dest: 'dist/<%= pkg.name %>.js',
                nonull: true
            },
            dist_rangy: {
                src: [
                    'tmp/src/mentions-kinder.js',
                    'tmp/src/autocompleter.js',
                    'src/extend-patch.js',
//                    'tmp/src/autocompleter/dummy-autocompleter.js',
                    'tmp/src/autocompleter/select2-autocompleter.js',
                    'libs/rangy-1.2.3/uncompressed/rangy-core.js',
                    'tmp/src/jquery-plugin.js',
                    'tmp/src/init-rangy.js'
                ],
                dest: 'dist/<%= pkg.name %>.rangy.js',
                nonull: true
            }
        },
        uglify: {
            options: {
                banner: '<%= banner %>'
            },
            dist: {
                src: '<%= concat.dist.dest %>',
                dest: 'dist/<%= pkg.name %>.min.js'
            },
            dist_rangy: {
                src: '<%= concat.dist_rangy.dest %>',
                dest: 'dist/<%= pkg.name %>.rangy.min.js'
            }
        },
        qunit: {
            files: ['test/**/*-test.html']
        },
        watch: {
            all:{
                files:['src/**/*.coffee', 'test/**/*.coffee'],
                tasks:['test']
            }
        },
        connect: {
            server: {
                options: {
                    hostname: '0.0.0.0',
                    port: 1338
                }
            }
{'fraction_non_alphanumeric': 0.16439299986220202, 'fraction_numerical': 0.0033071517155849523, 'mean_word_length': 0.9626825310978907, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2298333', 'n_tokens_mistral': 2295, 'n_tokens_neox': 2064, 'n_words': 276}