<commit_before>'use strict';

module.exports = function (grunt) {

  require('time-grunt')(grunt);
  require('load-grunt-tasks')(grunt);

  // Configurable paths
  var config = {
    app: '.'
  };

  grunt.initConfig({

    config: config,

    watch: {
        js: {
            files: ['<%= config.app %>/**/*.js'],
            tasks: ['jshint'],
            options: {
                livereload: true
            }
        },
        gruntfile: {
            files: ['Gruntfile.js']
        },
        livereload: {
            options: {
                livereload: '<%= connect.options.livereload %>'
            },
            files: [
                '<%= config.app %>/{,*/}*.*'
            ]
        }
    },

    // The actual grunt server settings
    connect: {
      options: {
        port: 9000,
        open: true,
        livereload: 35729,
        hostname: 'localhost'
      },
      livereload: {
        options: {
          open: true,
          base: [
              '<%= config.app %>'
          ],
          middleware: function(connect) {
            return [
              connect.static(config.app)
            ];
          }
        }
      }
    },

    jshint: {
      options: {
        jshintrc: '.jshintrc',
        reporter: require('jshint-stylish')
      },
      all: [
        'Gruntfile.js',
        '<%= config.app %>/**/*.js'
      ]
    }
  });

  grunt.registerTask('default', [
      'connect:livereload',
      'watch'
  ]);
};<commit_msg>removes node_modules from jshint watch & adds jshint to default<commit_after>'use strict';

module.exports = function (grunt) {

  require('time-grunt')(grunt);
  require('load-grunt-tasks')(grunt);

  // Configurable paths
  var config = {
    app: '.',
    jsFiles: [
      '<%= config.app %>/**/*.js',
      '!<%= config.app %>/**/node_modules/**'
    ]
  };

  grunt.initConfig({

    config: config,

    watch: {
        js: {
            files: config.jsFiles,
            tasks: ['jshint'],
            options: {
                livereload: true
            }
        },
        gruntfile: {
            files: ['Gruntfile.js']
        },
        livereload: {
            options: {
                livereload: '<%= connect.options.livereload %>'
            },
            files: [
                '<%= config.app %>/{,*/}*.*'
            ]
        }
    },

    // The actual grunt server settings
    connect: {
      options: {
        port: 9000,
        open: true,
        livereload: 35729,
        hostname: 'localhost'
      },
      livereload: {
        options: {
          open: true,
          base: [
              '<%= config.app %>'
          ],
          middleware: function(connect) {
            return [
              connect.static(config.app)
            ];
          }
        }
      }
    },

    jshint: {
      options: {
        jshintrc: '.jshintrc',
        reporter: require('jshint-stylish')
      },
      all: config.jsFiles
    }
  });

  grunt.registerTask('default', [
      'jshint',
      'connect:livereload',
      'watch'
  ]);
};
{'fraction_non_alphanumeric': 0.15532399869749267, 'fraction_numerical': 0.005861282969716704, 'mean_word_length': 1.2755555555555556, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7095209', 'n_tokens_mistral': 994, 'n_tokens_neox': 935, 'n_words': 155}