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

  // Project configuration
  grunt.initConfig({

    // Meta data from config file
    pkg: grunt.file.readJSON('package.json'),

    // Linting options
    jshint:
    {
      // Defaults
      options: grunt.file.readJSON('.jshintrc'),
      // Files to watch
      files: { src: [ 'index.js', 'lib/**/*.js' ] }
    },

    // Watch tasks to run on file changes
    watch:
    {
      files: ['index.js', 'lib/**/*.js' ],
      tasks: ['jshint:files']
    }

  });

  // Load plugins
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default task(s)
  grunt.registerTask('default', ['jshint']);
  grunt.registerTask('lint', ['jshint']);
<commit_msg>Place 'files' as a reference and switch initConfig to `config.init`<commit_after>module.exports = function( grunt ) {

  grunt.config.set('files', [ 'lib/**/*.js' ]);

  // Project configuration
  grunt.config.init({

    // Meta data from config file
    pkg: grunt.file.readJSON('package.json'),

    // Linting options
    jshint:
    {
      // Defaults
      options: grunt.file.readJSON('.jshintrc'),
      // Files to watch
      files: { src: grunt.config.get('files') }
    },

    // Watch tasks to run on file changes
    watch:
    {
      files: grunt.config.get('files'),
      tasks: ['jshint:files']
    }

  });

  // Load plugins
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default task(s)
  grunt.registerTask('default', ['jshint']);
  grunt.registerTask('lint', ['jshint']);

{'fraction_non_alphanumeric': 0.17385866166353972, 'fraction_numerical': 0.0, 'mean_word_length': 2.6613272311212817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3542500', 'n_tokens_mistral': 557, 'n_tokens_neox': 539, 'n_words': 107}