<commit_before>/*global module:true, require:true */

(function(module, semver) {
    'use strict';

    module.exports = function(grunt) {

        grunt.initConfig({
            // TODO: put initialCopyrightYear someplace smarter?
            initialCopyrightYear: 2011,

            // TODO: put baseFilename someplace smarter?
            baseFilename: 'emulatetab.joelpurra',

            pkg: grunt.file.readJSON('package.json'),

            semver: semver,

            meta: {
                banner: ['/*!',
                    '* <%= pkg.title %> v<%= pkg.version %>',
                    '* <%= pkg.homepage %>',
                    '*',
                    '* Copyright © <%= _.range(initialCopyrightYear, new Date().getFullYear()+1, 1).join(", ") %> <%= pkg.author.name %>',
                    '* Developed by <%= pkg.contributors[0].name %> <<%= pkg.contributors[0].url %>>',
                    '* Released under the <%= _.pluck(pkg.licenses, "type").join(", ") %> license<%= pkg.licenses.length === 1 ? "" : "s" %>.',
                    '*',
                    '* <%= pkg.description %>',
                    '*/\n\n'
                ].join('\n'),
                microbanner: ['/*! <%= pkg.title %> v<%= pkg.version %>',
                    '© <%= _.range(initialCopyrightYear, new Date().getFullYear()+1, 1).join(", ") %> <%= pkg.author.name %>,',
                    'Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n'
                ].join(' ')
            },

            clean: {
                files: ['dist/', '.grunt/']
            },

            concat: {
                options: {
                    banner: '<%= meta.banner %>',
                    stripBanners: true
                },
                dist: {
                    src: ['src/<%= baseFilename %>.js'],
                    dest: 'dist/<%= baseFilename %>.js'
                }
            },

            uglify: {
                options: {
                    banner: '<%= meta.microbanner %>'
                },
                dist: {
                    src: ['<%= concat.dist.dest %>'],
                    dest: 'dist/<%= baseFilename %>.min.js'
                }
            },

            connect: {
                server: {
                    options: {
                        port: 8000,
                        base: '.'
                    }
                }
            },

            qunit: {
                all: {
                    options: {
                        urls: [
                            'http://localhost:8000/test/'
                        ]
                    }
                }
            },

            jshint: {
                src: [
                    'Gruntfile.js',
                    'src/**/*.js',
                    'test/**/*.js',
                    'example/**/*.js'
                ],
                options: {
                    jshintrc: '.jshintrc'
                }
            },

            jsonlint: {
                all: {
                    src: ['package.json', 'bower.json', 'emulatetab.jquery.json', 'composer.json', 'component.json']
                }
            },

            micro: {
                src: '<%= uglify.dist.dest %>',
                options: {
                    limit: 1024,
                    gzip: true
                }
            },

            copy: {
                'jekyll-site-theme': {
                    expand: true,
                    cwd: 'site/theme/',
                    src: [
                        '**',
                    ],
                    dest: '.grunt/jekyll/'
                },
                'jekyll-site-contents': {
                    expand: true,
                    cwd: 'site/contents/',
                    src: [
                        '**',
                    ],
                    dest: '.grunt/jekyll/'
                },
                'jekyll-site-code': {
                    expand: true,
                    src: [
                        'bower_components/qunit/qunit/qunit.css',
                        'bower_components/qunit/qunit/qunit.js',
                        'bower_components/jquery/jquery.js',
                        'dist/**',
                        'src/**',
                        'example/**',
                        'test/**'
                    ],
                    dest: '.grunt/jekyll/'
                }
            },

            jekyll: {
                options: {
                    src: '.grunt/jekyll/',
                    dest: '.grunt/site/',
                    safe: true
                },
                dist: {},
                test: {
                    options: {
                        doctor: true
                    }
                },
                serve: {
                    options: {
                        serve: true,
                        watch: true,
                        future: true,
                        drafts: true
                    }
                }
            },

            checkrepo: {
                tagged: {
                    tag: {
                        valid: '<%= pkg.version %>',
                    },
                    tagged: true,
                    clean: true,
                },
                clean: {
                    clean: true
                }
            },

            bump: {
                options: {
                    files: ['package.json', 'bower.json', 'emulatetab.jquery.json', 'composer.json', 'component.json'],
                    updateConfigs: ['pkg'],
                    commitMessage: 'v%VERSION%',
                    commitFiles: '<%= bump.options.files %>',
                    tagName: 'v%VERSION%',
                    tagMessage: 'v%VERSION%',
                    gitDescribeOptions: '--tags --always --dirty=-SNAPSHOT'
                }
            },

            'gh-pages': {
                options: {
                    base: '.grunt/site/'
                },
                src: '**/*'
            },

            watch: {
                files: '<%= jshint.src %>',
                tasks: ['default', 'jekyll:serve']
            },

            prompt: {
                bump: {
                    options: {
                        questions: [{
                            config: 'bump.increment',
                            type: 'list',
                            message: 'Bump version from ' + '<%= pkg.version %>'.cyan + ' to:',
                            choices: [{<commit_msg>Push tagged versins to origin<commit_after>/*global module:true, require:true */

(function(module, semver) {
    'use strict';

    module.exports = function(grunt) {

        grunt.initConfig({
            // TODO: put initialCopyrightYear someplace smarter?
            initialCopyrightYear: 2011,

            // TODO: put baseFilename someplace smarter?
            baseFilename: 'emulatetab.joelpurra',

            pkg: grunt.file.readJSON('package.json'),

            semver: semver,

            meta: {
                banner: ['/*!',
                    '* <%= pkg.title %> v<%= pkg.version %>',
                    '* <%= pkg.homepage %>',
                    '*',
                    '* Copyright © <%= _.range(initialCopyrightYear, new Date().getFullYear()+1, 1).join(", ") %> <%= pkg.author.name %>',
                    '* Developed by <%= pkg.contributors[0].name %> <<%= pkg.contributors[0].url %>>',
                    '* Released under the <%= _.pluck(pkg.licenses, "type").join(", ") %> license<%= pkg.licenses.length === 1 ? "" : "s" %>.',
                    '*',
                    '* <%= pkg.description %>',
                    '*/\n\n'
                ].join('\n'),
                microbanner: ['/*! <%= pkg.title %> v<%= pkg.version %>',
                    '© <%= _.range(initialCopyrightYear, new Date().getFullYear()+1, 1).join(", ") %> <%= pkg.author.name %>,',
                    'Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n'
                ].join(' ')
            },

            clean: {
                files: ['dist/', '.grunt/']
            },

            concat: {
                options: {
                    banner: '<%= meta.banner %>',
                    stripBanners: true
                },
                dist: {
                    src: ['src/<%= baseFilename %>.js'],
                    dest: 'dist/<%= baseFilename %>.js'
                }
            },

            uglify: {
                options: {
                    banner: '<%= meta.microbanner %>'
                },
                dist: {
                    src: ['<%= concat.dist.dest %>'],
                    dest: 'dist/<%= baseFilename %>.min.js'
                }
            },

            connect: {
                server: {
                    options: {
                        port: 8000,
                        base: '.'
                    }
                }
            },

            qunit: {
                all: {
                    options: {
                        urls: [
                            'http://localhost:8000/test/'
                        ]
                    }
                }
            },

            jshint: {
                src: [
                    'Gruntfile.js',
                    'src/**/*.js',
                    'test/**/*.js',
                    'example/**/*.js'
                ],
                options: {
                    jshintrc: '.jshintrc'
                }
            },

            jsonlint: {
                all: {
                    src: ['package.json', 'bower.json', 'emulatetab.jquery.json', 'composer.json', 'component.json']
                }
            },

            micro: {
                src: '<%= uglify.dist.dest %>',
                options: {
                    limit: 1024,
                    gzip: true
                }
            },

            copy: {
                'jekyll-site-theme': {
                    expand: true,
                    cwd: 'site/theme/',
                    src: [
                        '**',
                    ],
                    dest: '.grunt/jekyll/'
                },
                'jekyll-site-contents': {
                    expand: true,
                    cwd: 'site/contents/',
                    src: [
                        '**',
                    ],
                    dest: '.grunt/jekyll/'
                },
                'jekyll-site-code': {
                    expand: true,
                    src: [
                        'bower_components/qunit/qunit/qunit.css',
                        'bower_components/qunit/qunit/qunit.js',
                        'bower_components/jquery/jquery.js',
                        'dist/**',
                        'src/**',
                        'example/**',
                        'test/**'
                    ],
                    dest: '.grunt/jekyll/'
                }
            },

            jekyll: {
                options: {
                    src: '.grunt/jekyll/',
                    dest: '.grunt/site/',
                    safe: true
                },
                dist: {},
                test: {
                    options: {
                        doctor: true
                    }
                },
                serve: {
                    options: {
                        serve: true,
                        watch: true,
                        future: true,
                        drafts: true
                    }
                }
            },

            checkrepo: {
                tagged: {
                    tag: {
                        valid: '<%= pkg.version %>',
                    },
                    tagged: true,
                    clean: true,
                },
                clean: {
                    clean: true
                }
            },

            bump: {
                options: {
                    files: ['package.json', 'bower.json', 'emulatetab.jquery.json', 'composer.json', 'component.json'],
                    updateConfigs: ['pkg'],
                    commitMessage: 'v%VERSION%',
                    commitFiles: '<%= bump.options.files %>',
                    tagName: 'v%VERSION%',
                    tagMessage: 'v%VERSION%',
                    pushTo: 'origin',
                    gitDescribeOptions: '--tags --always --dirty=-SNAPSHOT'
                }
            },

            'gh-pages': {
                options: {
                    base: '.grunt/site/'
                },
                src: '**/*'
            },

            watch: {
                files: '<%= jshint.src %>',
                tasks: ['default', 'jekyll:serve']
            },

            prompt: {
                bump: {
                    options: {
                        questions: [{
                            config: 'bump.increment',
                            type: 'list',
                            message: 'Bump version from ' + '<%= pkg.version %>'.cyan + ' to:',
                            choices: [{
{'fraction_non_alphanumeric': 0.13880414887126297, 'fraction_numerical': 0.0035082367297132396, 'mean_word_length': 0.7229010642491132, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6088504', 'n_tokens_mistral': 3514, 'n_tokens_neox': 3045, 'n_words': 510}