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

    // Project configuration.
    grunt.initConfig({
        pkg : grunt.file.readJSON('package.json'),

        // Concatenate files together.
        //----------------------------
        concat : {
            all : {
                files : {
                    'lib/openlayers-animation-<%= pkg.version %>.js' : ['src/**/*.js', '!src/addins/lib/OpenLayers/Layer/Animation/internal/intro.js']
                }
            },
            intro : {
                files : {
                    // "Use strict" definition should be included once to the beginning of the concatenated file.
                    // Notice, combined files may contain their own strict definitions which should be removed in the grunt flow.
                    'lib/openlayers-animation-<%= pkg.version %>.js' : ['src/addins/lib/OpenLayers/Layer/Animation/internal/intro.js', 'lib/openlayers-animation-<%= pkg.version %>.js']
                }
            }
        },

        // Minimize JavaScript for release.
        //---------------------------------
        uglify : {
            all : {
                files : [{
                    dest : 'lib/openlayers-animation-<%= pkg.version %>-min.js',
                    src : ['lib/openlayers-animation-<%= pkg.version %>.js']
                }]
            }
        },

        // Clean build files or folders.
        //------------------------------
        clean : {
            onlyFiles : {
                src : ['lib/**'],
                filter : 'isFile'
            },
            // Notice, removal of directories may corrupt svn structure.
            // Therefore, be carefull if this is set as default command.
            all : ['lib/']
        },

        // Detect errors and potential problems in JavaScript code and enforce coding conventions.
        //----------------------------------------------------------------------------------------
        jshint : {
            all : ['src/**/*.js', 'lib/openlayers-animation-<%= pkg.version %>.js'],
            options : {
                "curly" : true,
                "eqeqeq" : true,
                "immed" : true,
                "latedef" : true,
                "newcap" : true,
                "noarg" : true,
                "sub" : true,
                "undef" : true,
                "boss" : true,
                "eqnull" : true,
                "node" : true,
                "globals" : {
                    "window" : true,
                    "document" : true,
                    "Element" : true,
                    "OpenLayers" : true,
                    "fi" : true,
                    "requestAnimationFrame" : true
                }
            }
        },

        // Replace strings inside files.
        //------------------------------
        "string-replace" : {
            // Make sure proper version number is used in source file paths of HTML files.
            // Notice, these HTML files are meant to be run separately by hand, not automatically by Grunt.
            // Notice, src files do not contain version in filename. They can be ignored here.
            version : {
                files : [{
                    dest : 'examples/index.html',
                    src : ['examples/index.html']
                }],
                options : {
                    replacements : [{
                        pattern : /openlayers-animation-.+-min\./g,
                        replacement : 'openlayers-animation-<%= pkg.version %>-min.'
                    }]
                }
            },<commit_msg>Gruntfile.js updates example HTML files properly with new library version.<commit_after>module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        pkg : grunt.file.readJSON('package.json'),

        // Concatenate files together.
        //----------------------------
        concat : {
            all : {
                files : {
                    'lib/openlayers-animation-<%= pkg.version %>.js' : ['src/**/*.js', '!src/addins/lib/OpenLayers/Layer/Animation/internal/intro.js']
                }
            },
            intro : {
                files : {
                    // "Use strict" definition should be included once to the beginning of the concatenated file.
                    // Notice, combined files may contain their own strict definitions which should be removed in the grunt flow.
                    'lib/openlayers-animation-<%= pkg.version %>.js' : ['src/addins/lib/OpenLayers/Layer/Animation/internal/intro.js', 'lib/openlayers-animation-<%= pkg.version %>.js']
                }
            }
        },

        // Minimize JavaScript for release.
        //---------------------------------
        uglify : {
            all : {
                files : [{
                    dest : 'lib/openlayers-animation-<%= pkg.version %>-min.js',
                    src : ['lib/openlayers-animation-<%= pkg.version %>.js']
                }]
            }
        },

        // Clean build files or folders.
        //------------------------------
        clean : {
            onlyFiles : {
                src : ['lib/**'],
                filter : 'isFile'
            },
            // Notice, removal of directories may corrupt svn structure.
            // Therefore, be carefull if this is set as default command.
            all : ['lib/']
        },

        // Detect errors and potential problems in JavaScript code and enforce coding conventions.
        //----------------------------------------------------------------------------------------
        jshint : {
            all : ['src/**/*.js', 'lib/openlayers-animation-<%= pkg.version %>.js'],
            options : {
                "curly" : true,
                "eqeqeq" : true,
                "immed" : true,
                "latedef" : true,
                "newcap" : true,
                "noarg" : true,
                "sub" : true,
                "undef" : true,
                "boss" : true,
                "eqnull" : true,
                "node" : true,
                "globals" : {
                    "window" : true,
                    "document" : true,
                    "Element" : true,
                    "OpenLayers" : true,
                    "fi" : true,
                    "requestAnimationFrame" : true
                }
            }
        },

        // Replace strings inside files.
        //------------------------------
        "string-replace" : {
            // Make sure proper version number is used in source file paths of HTML files.
            // Notice, these HTML files are meant to be run separately by hand, not automatically by Grunt.
            // Notice, src files do not contain version in filename. They can be ignored here.
            version : {
                files : [{
                    dest : 'examples/complex.html',
                    src : ['examples/complex.html']
                }, {
                    dest : 'examples/events.html',
                    src : ['examples/events.html']
                }, {
                    dest : 'examples/minimal.html',
                    src : ['examples/minimal.html']
                }, {
                    dest : 'examples/simple.html',
                    src : ['examples/simple.html']
                }],
                options : {
                    replacements : [{
                        pattern : /openlayers-animation-.+-min\./g,
                        replacement : 'openlayers-animation-<%= pkg.version %>-min.'
                    }]
                }
            },
{'fraction_non_alphanumeric': 0.1656650117585576, 'fraction_numerical': 0.0, 'mean_word_length': 0.9749742002063984, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3980615', 'n_tokens_mistral': 1917, 'n_tokens_neox': 1735, 'n_words': 463}