<commit_before>module.exports = function(grunt) {

  /**
   * Configuration
   */

  grunt.config.init({

    // Constants
    dirs: {
      client    : __dirname + '/src/client/',
      components: __dirname + '/components/',
      server    : __dirname + '/src/server/',
      public    : __dirname + '/src/public/',
      dist      : __dirname + '/dist/'
    },

    files: {
      all       : '**/*',
      img       : '**/*.{png,gif,jpg,jpeg}',
      js        : '**/*.js',
      less      : '**/*.less',
      html      : '**/*.html'
    },

    // Common
    pkg         : grunt.file.readJSON('package.json'),
    meta        : {
      banner    : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - '                   +
                  '<%= grunt.template.today("yyyy-mm-dd") %>\\n'                                 +
                  '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>'                       +
                  '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
                  ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
    },
    clean:      ['<%= dirs.dist %>'],
    watch:      {
      grunt:    {
        files   : ['Gruntfile.js'],
        tasks   : ['jshint']
      },
      app:      {
        files   : ['<%= dirs.client + files.js %>'
                  ,'<%= dirs.client + files.html %>'],
        tasks   : ['jshint', 'ngtemplates', 'concat', 'livereload']
      },
      server:   {
        files   : ['<%= dirs.server + files.all %>'],
        tasks   : ['jshint', 'express-server', 'livereload']
      },
      less:     {
        files   : ['<%= dirs.client + files.less %>'],
        tasks   : ['less']
      },
      public:   {
        files   : ['<%= dirs.public + files.all %>'],
        tasks   : ['copy:public']
      }
    },

    // Code validation
    jshint:     {
      files     : ['grunt.js'
                  ,'<%= dirs.server + files.js %>'
                  ,'<%= dirs.client %>/app/<%= files.js %>'],
      options:  {
        es5:      true,
        laxcomma: true<commit_msg>Partials are watched separately from client app<commit_after>module.exports = function(grunt) {

  /**
   * Configuration
   */

  grunt.config.init({

    // Constants
    dirs: {
      client    : __dirname + '/src/client/',
      components: __dirname + '/components/',
      server    : __dirname + '/src/server/',
      public    : __dirname + '/src/public/',
      dist      : __dirname + '/dist/'
    },

    files: {
      all       : '**/*',
      img       : '**/*.{png,gif,jpg,jpeg}',
      js        : '**/*.js',
      less      : '**/*.less',
      html      : '**/*.html'
    },

    // Common
    pkg         : grunt.file.readJSON('package.json'),
    meta        : {
      banner    : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - '                   +
                  '<%= grunt.template.today("yyyy-mm-dd") %>\\n'                                 +
                  '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>'                       +
                  '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
                  ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
    },
    clean:      ['<%= dirs.dist %>'],
    watch:      {
      grunt:    {
        files   : ['Gruntfile.js'],
        tasks   : ['jshint']
      },
      app:      {
        files   : ['<%= dirs.client + files.js %>'],
        tasks   : ['jshint', 'concat', 'livereload']
      },
      partials: {
        files   : ['<%= dirs.client + files.html %>'],
        tasks   : ['copy:partials', 'ngtemplates', 'concat', 'livereload']
      },
      server:   {
        files   : ['<%= dirs.server + files.all %>'],
        tasks   : ['jshint', 'express-server', 'livereload']
      },
      less:     {
        files   : ['<%= dirs.client + files.less %>'],
        tasks   : ['less']
      },
      public:   {
        files   : ['<%= dirs.public + files.all %>'],
        tasks   : ['copy:public']
      }
    },

    // Code validation
    jshint:     {
      files     : ['grunt.js'
                  ,'<%= dirs.server + files.js %>'
                  ,'<%= dirs.client %>/app/<%= files.js %>'],
      options:  {
        es5:      true,
        laxcomma: true
{'fraction_non_alphanumeric': 0.2055491329479769, 'fraction_numerical': 0.00046242774566473987, 'mean_word_length': 1.3096636412172984, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4839062', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1365, 'n_words': 223}