<commit_before>(function() {
    "use strict";

    module.exports = function(grunt) {
        grunt.initConfig({
            pkg: grunt.file.readJSON('package.json'),
            tmp: 'tmp',
            filenames: {
                dist: 'dist/swig.js',
                min: 'dist/swig.min.js',
                sourceMap: 'dist/swig.js.map'
            },
            clean: {
                dist: {
                    src: ['dist']
                },
                tmp: {
                    src: ['<%= tmp %>']
                }
            },
            browserify: {
                dist: {
                    files: {
                        '<%= filenames.dist %>': ['browser/index.js']
                    }
                }
            },
            uglify: {
                dist: {
                    options: {
                        comments: true,
                        warnings: false,
                        sourceMap: '<%= filenames.sourceMap %>'
                    },
                    src: '<%= filenames.dist %>',
                    dest: '<%= filenames.min %>'
                }
            },
            concat: {
                options: {
                    banner: grunt.file.read('browser/comments.js')
                },
                dist: {
                    src: ['<%= filenames.dist %>'],
                    dest: '<%= filenames.dist %>'
                },
                min: {
                    src: ['<%= filenames.min %>'],
                    dest: '<%= filenames.min %>'
                }
            }
        });

        grunt.loadNpmTasks('grunt-browserify');
        grunt.loadNpmTasks('grunt-contrib-uglify');
        grunt.loadNpmTasks('grunt-contrib-clean');
        grunt.loadNpmTasks('grunt-contrib-concat');
        grunt.loadNpmTasks('grunt-mocha');

        grunt.registerTask('browser', ['browserify', 'uglify', 'concat']);
        grunt.registerTask('build', ['clean','browser']);

    };
})();
<commit_msg>hooks modified gruntfile<commit_after>(function () {
  "use strict";

  module.exports = function (grunt) {
    grunt.initConfig({
      pkg: grunt.file.readJSON('package.json'),
      tmp: 'tmp',
      filenames: {
        dist: 'dist/swig.js',
        min: 'dist/swig.min.js',
        sourceMap: 'dist/swig.js.map'
      },
      clean: {
        dist: {
          src: ['dist']
        },
        tmp: {
          src: ['<%= tmp %>']
        }
      },
      browserify: {
        dist: {
          files: {
            '<%= filenames.dist %>': ['browser/index.js']
          }
        }
      },
      uglify: {
        dist: {
          options: {
            comments: true,
            warnings: false,
            sourceMap: '<%= filenames.sourceMap %>'
          },
          src: '<%= filenames.dist %>',
          dest: '<%= filenames.min %>'
        }
      },
      concat: {
        options: {
          banner: grunt.file.read('browser/comments.js')
        },
        dist: {
          src: ['<%= filenames.dist %>'],
          dest: '<%= filenames.dist %>'
        },
        min: {
          src: ['<%= filenames.min %>'],
          dest: '<%= filenames.min %>'
        }
      }
    });

    grunt.loadNpmTasks('grunt-browserify');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-mocha');

    grunt.registerTask('browser', ['browserify', 'uglify', 'concat']);
    grunt.registerTask('build', ['clean', 'browser']);

  };
}());
{'fraction_non_alphanumeric': 0.164183300534158, 'fraction_numerical': 0.0, 'mean_word_length': 1.1976528721432984, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '2298319', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1029, 'n_words': 138}