<commit_before>'use strict';

module.exports = function(grunt) {

  grunt.initConfig({
    jshint: {
      options: {
        jshintrc: '.jshintrc'
      },
      all: [
        'Gruntfile.js',
        'public/assets/js/*.js',
        '!/public/assets/js/build/common.min.js'
      ]
    },
    less: {
      dist: {
        files: {
          'public/assets/css/build/common.min.css': [
            'public/assets/less/app.less'
          ]
        },
        options: {
          compress: true
        }
      }
    },
    uglify: {
      dist: {
        files: {
          'public/assets/js/build/common.min.js': [
            'public/assets/js/vendor/bootstrap/alert.js',
            'public/assets/js/vendor/bootstrap/button.js',
            'public/assets/js/vendor/bootstrap/dropdown.js',
            'public/assets/js/vendor/bootstrap/tooltip.js',
            'public/assets/js/vendor/*.js',
          ]
        }
      }
    },
    imagemin: {
      files: {
      },
      dynamic: {
        options: {
          optimizationLevel: 7,
          cache: false
        },
        files: [{
          expand: true,
          cwd: 'public/assets/img/src',
          src: [
            '**/*.{png,jpg,gif}'
          ],
          dest: 'public/assets/img/build'
        }]
      }
    },
    watch: {
      less: {
        files: [
          'public/assets/less/*.less',
          'public/assets/less/burthorpe/*.less',
          'public/assets/less/vendor/bootstrap/*.less',
          'public/assets/less/vendor/font-awesome/*.less'
        ],
        options: {
          livereload: true
        },
        tasks: ['less']
      },
      js: {
        files: [
          '<%= jshint.all %>'
        ],
        options: {
          livereload: true
        },
        tasks: ['jshint', 'uglify']
      },
      imagemin: {
        files: [
          'public/assets/img/src/**/*'
        ],
        options: {
          livereload: true
        }
      }
    }
  });

  // Load tasks
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-imagemin');

  // Register tasks
  grunt.registerTask('default', [
    'less',
    'uglify',
    'imagemin'
  ]);

  grunt.registerTask('dev', [
    'watch'
  ]);<commit_msg>Fix autoreloading<commit_after>'use strict';

module.exports = function(grunt) {

  grunt.initConfig({
    jshint: {
      options: {
        jshintrc: '.jshintrc'
      },
      all: [
        'Gruntfile.js',
        'public/assets/js/*.js',
        '!/public/assets/js/build/common.min.js'
      ]
    },
    less: {
      dist: {
        files: {
          'public/assets/css/build/common.min.css': [
            'public/assets/less/app.less'
          ]
        },
        options: {
          compress: true
        }
      }
    },
    uglify: {
      dist: {
        files: {
          'public/assets/js/build/common.min.js': [
            'public/assets/js/vendor/bootstrap/alert.js',
            'public/assets/js/vendor/bootstrap/button.js',
            'public/assets/js/vendor/bootstrap/dropdown.js',
            'public/assets/js/vendor/bootstrap/tooltip.js',
            'public/assets/js/vendor/*.js',
          ]
        }
      }
    },
    imagemin: {
      files: {
      },
      dynamic: {
        options: {
          optimizationLevel: 7,
          cache: false
        },
        files: [{
          expand: true,
          cwd: 'public/assets/img/src',
          src: [
            '**/*.{png,jpg,gif}'
          ],
          dest: 'public/assets/img/build'
        }]
      }
    },
    watch: {
      options: {
        livereload: true
      },
      less: {
        files: [
          'public/assets/less/*.less',
          'public/assets/less/burthorpe/*.less',
          'public/assets/less/vendor/bootstrap/*.less',
          'public/assets/less/vendor/font-awesome/*.less'
        ],
        tasks: ['less']
      },
      js: {
        files: [
          '<%= jshint.all %>'
        ],
        tasks: ['jshint', 'uglify']
      },
      imagemin: {
        files: [
          'public/assets/img/src/**/*'
        ]
      }
    }
  });

  // Load tasks
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-imagemin');

  // Register tasks
  grunt.registerTask('default', [
    'less',
    'uglify',
    'imagemin'
  ]);

  grunt.registerTask('dev', [
    'watch'
  ]);
{'fraction_non_alphanumeric': 0.16358157554885924, 'fraction_numerical': 0.00043047783039173483, 'mean_word_length': 1.4406512605042017, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4636713', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1532, 'n_words': 173}