<commit_before>'use strict';

module.exports = function(grunt) {
  grunt.initConfig({
    concat_sourcemap: {
      options: {
        sourcesContent: true
      },
      target: {
        files: { 
          'dist/jsoneditor.js': [
            
            // License & version info, start the containing closure
            'src/intro.js',
            
            // Simple inheritance
            'src/class.js',
            // IE9 polyfills
            'src/ie9.js',
            // Utils like extend, each, and trigger
            'src/utilities.js',
            
            // The main JSONEditor class
            'src/core.js',

            // JSON Schema validator
            'src/validator.js',
            
            // All the editors
            'src/editor.js',
            'src/editors/null.js',
            'src/editors/string.js',
            'src/editors/number.js',
            'src/editors/integer.js',
            'src/editors/object.js',
            'src/editors/array.js',
            'src/editors/table.js',
            'src/editors/multiple.js',
            'src/editors/enum.js',
            'src/editors/select.js',
            'src/editors/multiselect.js',
            'src/editors/base64.js',
            'src/editors/upload.js',
            'src/editors/checkbox.js',

            // All the themes and iconlibs
            'src/theme.js',
            'src/themes/*.js',
            'src/iconlib.js',
            'src/iconlibs/*.js',

            // The JS templating engines
            'src/templates/*.js',

            // Set the defaults
            'src/defaults.js',
            
            // Wrapper for $.fn style initialization
            'src/jquery.js',
            
            // End the closure
            'src/outro.js'
          ],
        }
      }
    },
    uglify: {
      dist: {
        src: 'dist/jsoneditor.js',
        dest: 'dist/jsoneditor.min.js'
      },
      options: {
        preserveComments: 'some'
      }
    },
    watch: {
      scripts: {
        files: ["src/**/*.js"],
        tasks: ["concat"]
      }
    },
    jshint: {
      options: {
        browser: true,
        indent: 2,
        nonbsp: true,
        nonew: true,
        immed: true,
        latedef: true
      },
      beforeconcat: [<commit_msg>Fix grunt watch to work with concat_sourcemap<commit_after>'use strict';

module.exports = function(grunt) {
  grunt.initConfig({
    concat_sourcemap: {
      options: {
        sourcesContent: true
      },
      target: {
        files: { 
          'dist/jsoneditor.js': [
            
            // License & version info, start the containing closure
            'src/intro.js',
            
            // Simple inheritance
            'src/class.js',
            // IE9 polyfills
            'src/ie9.js',
            // Utils like extend, each, and trigger
            'src/utilities.js',
            
            // The main JSONEditor class
            'src/core.js',

            // JSON Schema validator
            'src/validator.js',
            
            // All the editors
            'src/editor.js',
            'src/editors/null.js',
            'src/editors/string.js',
            'src/editors/number.js',
            'src/editors/integer.js',
            'src/editors/object.js',
            'src/editors/array.js',
            'src/editors/table.js',
            'src/editors/multiple.js',
            'src/editors/enum.js',
            'src/editors/select.js',
            'src/editors/multiselect.js',
            'src/editors/base64.js',
            'src/editors/upload.js',
            'src/editors/checkbox.js',

            // All the themes and iconlibs
            'src/theme.js',
            'src/themes/*.js',
            'src/iconlib.js',
            'src/iconlibs/*.js',

            // The JS templating engines
            'src/templates/*.js',

            // Set the defaults
            'src/defaults.js',
            
            // Wrapper for $.fn style initialization
            'src/jquery.js',
            
            // End the closure
            'src/outro.js'
          ],
        }
      }
    },
    uglify: {
      dist: {
        src: 'dist/jsoneditor.js',
        dest: 'dist/jsoneditor.min.js'
      },
      options: {
        preserveComments: 'some'
      }
    },
    watch: {
      scripts: {
        files: ["src/**/*.js"],
        tasks: ["concat_sourcemap"]
      }
    },
    jshint: {
      options: {
        browser: true,
        indent: 2,
        nonbsp: true,
        nonew: true,
        immed: true,
        latedef: true
      },
      beforeconcat: [
{'fraction_non_alphanumeric': 0.1297016861219196, 'fraction_numerical': 0.00216169476869866, 'mean_word_length': 1.1273563218390805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1588579', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1343, 'n_words': 242}