<commit_before>/*
  How do I fix the error EMFILE: Too many opened files?

    This is because of your system's max opened file limit.
    For OSX the default is very low (256).
    Temporarily increase your limit with `ulimit -n 10480`,
    the number being the new max limit.

    In some versions of OSX the above solution doesn't work.
    In that case try `launchctl limit maxfiles 10480 10480` and restart your terminal.

  https://github.com/gruntjs/grunt-contrib-watch#how-do-i-fix-the-error-emfile-too-many-opened-files

  https://superuser.com/questions/261023/how-to-change-default-ulimit-values-in-mac-os-x-10-6
*/

module.exports = function(grunt) {

// https://github.com/gruntjs/grunt-contrib-watch/issues/71#issuecomment-26152333

grunt.registerTask('watch:coverage', function() {

  grunt.config('watch', {

    coverage: {
      files : [
        '<%= project.paths.reports %>/coverage/html/index.html'
      ],
      options: {
        livereload: '<%= project.coverage.port.livereload %>'
      }
    }

  });
  return grunt.task.run('watch');

});

//---

grunt.registerTask('watch:reports', function() {

  grunt.config('watch', {

    reports: {
      files : [
        '<%= project.paths.reports %>/**/Phantom*/index.html'
      ],
      options: {
        livereload: '<%= project.reports.port.livereload %>'
      }
    }<commit_msg>tools grunt watch reports updated #7<commit_after>/*
  How do I fix the error EMFILE: Too many opened files?

    This is because of your system's max opened file limit.
    For OSX the default is very low (256).
    Temporarily increase your limit with `ulimit -n 10480`,
    the number being the new max limit.

    In some versions of OSX the above solution doesn't work.
    In that case try `launchctl limit maxfiles 10480 10480` and restart your terminal.

  https://github.com/gruntjs/grunt-contrib-watch#how-do-i-fix-the-error-emfile-too-many-opened-files

  https://superuser.com/questions/261023/how-to-change-default-ulimit-values-in-mac-os-x-10-6
*/

module.exports = function(grunt) {

// https://github.com/gruntjs/grunt-contrib-watch/issues/71#issuecomment-26152333

grunt.registerTask('watch:coverage', function() {

  grunt.config('watch', {

    coverage: {
      files : [
        '<%= project.paths.reports %>/coverage/html/index.html'
      ],
      options: {
        livereload: '<%= project.coverage.port.livereload %>'
      }
    }

  });
  return grunt.task.run('watch');

});

//---

grunt.registerTask('watch:reports', function() {

  grunt.config('watch', {

    jarmine_report: {
      files : [
        '<%= project.paths.reports %>/__jasmine/Phantom*/index.html'
      ],
      tasks: ['copy:karma_report_jasmine']
    },

    reports: {
      files : [
        //'<%= project.paths.reports %>/coverage/index.html',
        '<%= project.paths.reports %>/jasmine/index.html'
      ],
      options: {
        livereload: '<%= project.reports.port.livereload %>'
      }
    }
{'fraction_non_alphanumeric': 0.14767363452461227, 'fraction_numerical': 0.02528658125421443, 'mean_word_length': 2.746212121212121, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, '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': '7302554', 'n_tokens_mistral': 1065, 'n_tokens_neox': 961, 'n_words': 203}