<commit_before>'use strict';

module.exports = function (grunt) {
  var serveStatic = require('serve-static');
  // Time how long tasks take. Can help when optimizing build times
  require('time-grunt')(grunt);

  // Load grunt tasks automatically
  require('load-grunt-tasks')(grunt);

  // Configurable paths
  var config = {
    app: 'src/main/webapp',
    test: 'src/main/test',
    dist: 'target/classes',
    bower: grunt.file.readJSON('.bowerrc')
  };

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

    config: config,

    jshint: {
      files: [
        //'Gruntfile.js',
        '<%= config.app %>/**/*.js',
        '<%= config.test %>/**/*.js',
        '!<%= config.app %>/lib/**/*.js',
        '!<%= config.test %>/lib/**/*.js'
      ],
      options: {
        jshintrc: '.jshintrc'
      }
    },

    bower: {
      all: {
        options: {
          install: true,
          targetDir: '<%= config.app %>/lib',
          layout: 'byComponent'
        }
      },
      test: {
        options: {
          install: true,
          targetDir: '<%= config.test %>/lib',
          layout: 'byComponent'
        }
      }
    },

    // Mocha testing framework configuration options<commit_msg>Avoid bower to run on all builds<commit_after>'use strict';

module.exports = function (grunt) {
  // Time how long tasks take. Can help when optimizing build times
  require('time-grunt')(grunt);

  // Load grunt tasks automatically
  require('load-grunt-tasks')(grunt);

  var serveStatic = require('serve-static');
  // Configurable paths
  var config = {
    app: 'src/main/webapp',
    test: 'src/main/test',
    dist: 'target/classes',
    bower: grunt.file.readJSON('.bowerrc')
  };

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

    config: config,

    jshint: {
      files: [
        //'Gruntfile.js',
        '<%= config.app %>/**/*.js',
        '<%= config.test %>/**/*.js',
        '!<%= config.app %>/lib/**/*.js',
        '!<%= config.test %>/lib/**/*.js'
      ],
      options: {
        jshintrc: '.jshintrc'
      }
    },

    bower: {
      all: {
        options: {
          install: false,
          targetDir: '<%= config.app %>/lib',
          layout: 'byComponent'
        }
      },
      test: {
        options: {
          install: false,
          targetDir: '<%= config.test %>/lib',
          layout: 'byComponent'
        }
      }
    },

    // Mocha testing framework configuration options
{'fraction_non_alphanumeric': 0.17749092375958048, 'fraction_numerical': 0.0, 'mean_word_length': 1.9210836277974088, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6145726', 'n_tokens_mistral': 835, 'n_tokens_neox': 802, 'n_words': 165}