<commit_before>/* global module:false */

require("es5-shim");
require("es6-shim");

module.exports = function(grunt) {
  grunt.loadNpmTasks("grunt-karma");
  grunt.loadNpmTasks("grunt-contrib-jshint");
  grunt.loadNpmTasks("grunt-contrib-uglify");
  grunt.loadNpmTasks("grunt-contrib-watch");
  grunt.loadNpmTasks("grunt-webpack");
  grunt.loadNpmTasks("grunt-contrib-connect");
  grunt.loadNpmTasks("grunt-jasmine-nodejs");
  grunt.loadNpmTasks("grunt-contrib-clean");

  grunt.initConfig({
    pkg: grunt.file.readJSON("package.json"),

    webpack: {
      dist: require("./config/webpack/dist"),
      test: require("./config/webpack/test"),
      uncompressed: require("./config/webpack/uncompressed")
    },

    "webpack-dev-server": {
      start: {
        webpack: require("./config/webpack/dev"),
        keepalive: true,
        hot: true,
        contentBase: "./",
        inline: true,
        host: "127.0.0.1"
      }
    },

    karma: {
      test: {
        configFile: "./config/karma.conf.js"
      }
    },

    jshint: require("./config/jshint.conf"),

    connect: {
      server: {
        options: {
          port: 8000,
          hostname: "127.0.0.1"
        }
      }
    },

    jasmine_nodejs: {
      options: {
        specNameSuffix: "spec.js",
        useHelpers: false,
        stopOnFailure: false,
        reporters: {
          console: {
            colors: true,
            cleanStack: 1,
            verbosity: 1,
            listStyle: "flat",
            activity: true
          }
        }
      },
      test: {
        specs: ["spec/e2e/*.spec.js"]
      }
    },

    clean: {
      all: ["build/*.*"]<commit_msg>Fix hotmodule replacement<commit_after>/* global module:false */

require("es5-shim");
require("es6-shim");

module.exports = function(grunt) {
  grunt.loadNpmTasks("grunt-karma");
  grunt.loadNpmTasks("grunt-contrib-jshint");
  grunt.loadNpmTasks("grunt-contrib-uglify");
  grunt.loadNpmTasks("grunt-contrib-watch");
  grunt.loadNpmTasks("grunt-webpack");
  grunt.loadNpmTasks("grunt-contrib-connect");
  grunt.loadNpmTasks("grunt-jasmine-nodejs");
  grunt.loadNpmTasks("grunt-contrib-clean");

  grunt.initConfig({
    pkg: grunt.file.readJSON("package.json"),

    webpack: {
      dist: require("./config/webpack/dist"),
      test: require("./config/webpack/test"),
      uncompressed: require("./config/webpack/uncompressed")
    },

    "webpack-dev-server": {
      start: {
        webpack: require("./config/webpack/dev"),
        keepalive: true,
        hot: true,
        contentBase: "./",
        inline: true,
        host: "localhost",
        port: 8080,
        disableHostCheck: true
      }
    },

    karma: {
      test: {
        configFile: "./config/karma.conf.js"
      }
    },

    jshint: require("./config/jshint.conf"),

    connect: {
      server: {
        options: {
          port: 8000,
          hostname: "localhost"
        }
      }
    },

    jasmine_nodejs: {
      options: {
        specNameSuffix: "spec.js",
        useHelpers: false,
        stopOnFailure: false,
        reporters: {
          console: {
            colors: true,
            cleanStack: 1,
            verbosity: 1,
            listStyle: "flat",
            activity: true
          }
        }
      },
      test: {
        specs: ["spec/e2e/*.spec.js"]
      }
    },

    clean: {
      all: ["build/*.*"]
{'fraction_non_alphanumeric': 0.15959952885747938, 'fraction_numerical': 0.010011778563015312, 'mean_word_length': 1.9668122270742359, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4956371', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1131, 'n_words': 159}