<commit_before>'use strict';

module.exports = function(grunt) {

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks("grunt-remove-logging");

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        umd: {
          prefix: '(function (factory, window) {\n' +
                    'if (typeof define === \'function\' && define.amd) {\n' +
                    '  // define an AMD module that relies on leaflet\n' +
                    '  define([\'leaflet\'], factory);\n' +
                    '} else if (typeof exports === \'object\') {\n' +
                    '  // define a Common JS module that relies on leaflet\n' +
                    '  module.exports = factory(require(\'leaflet\'));\n' +
                    '}\n' +
                    'if (typeof window !== \'undefined\' && window.L && typeof L !== \'undefined\') {\n' +
                    '  // attach your plugin to the global L variable\n' +
                    '  window.L.TimeDimension = factory(L);\n' +
                    '}\n' +
                    '}(function (L) {\n'+
                    '  // TimeDimension plugin implementation\n',
          postfix:  '  \n'+
                    '  return L.TimeDimension;\n'+
                    '}, window));'
        },
        meta: {
            banner: '/* \n' +
                ' * Leaflet TimeDimension v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> \n' +
                ' * \n' +<commit_msg>if L is global; window.L timedimension is already set; moved binding to global L to else if block, conform standard, non-Leaflet-style UMD<commit_after>'use strict';

module.exports = function(grunt) {

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks("grunt-remove-logging");

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        umd: {
          prefix: '(function (factory, window) {\n' +
                    '  if (typeof define === \'function\' && define.amd) {\n' +
                    '    // define an AMD module that relies on leaflet\n' +
                    '    define([\'leaflet\'], factory);\n' +
                    '  } else if (typeof exports === \'object\') {\n' +
                    '    // define a Common JS module that relies on leaflet\n' +
                    '    module.exports = factory(require(\'leaflet\'));\n' +
                    '  } else if (typeof window !== \'undefined\' && window.L && typeof L !== \'undefined\') {\n' +
                    '    // attach your plugin to the global L variable\n' +
                    '    window.L.TimeDimension = factory(L);\n' +
                    '  }\n' +
                    '  }(function (L) {\n'+
                    '    // TimeDimension plugin implementation\n',
          postfix:  '    \n'+
                    '    return L.TimeDimension;\n'+
                    '  }, window)\n'+
                    ');'
        },
        meta: {
            banner: '/* \n' +
                ' * Leaflet TimeDimension v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> \n' +
                ' * \n' +
{'fraction_non_alphanumeric': 0.16369213608477412, 'fraction_numerical': 0.0, 'mean_word_length': 1.5842939481268012, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5058289', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1036, 'n_words': 211}