<commit_before>/**
 * Fractionless build tasks
 *
 * Use this file to build the project
 * or modify it to suit your own project.
 */

module.exports = function(grunt) {

  // Time your grunt tasks and never need to loadGruntTask again
  require('time-grunt')(grunt);
  require('load-grunt-tasks')(grunt);

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    project: {
      dev: 'src',
      dist: 'dist',
      build: '<%= grunt.template.today("yyyymmdd") %>'
    },

    // local server
    connect: {
      server: {
        options: {
          host: 'localhost',
          port: '9000',
          base: '<%= project.dev %>/'
        }
      }
    },

    // watch for file changes
    watch: {
      styles: {
        files: ['<%= project.dev %>/less/**/*.less'],
        tasks: ['less:dev'],
        options: {
          livereload: true
        }
      },
      scripts: {
        files: ['<%= project.dev %>/js/**/*.js', 'Gruntfile.js'],
        tasks: ['jshint:dev'],
        options: {
          livereload: true,
          reload: true
        }
      }
    },

    // compile less
    less: {<commit_msg>Set grunt connect to livereload on changes.<commit_after>/**
 * Fractionless build tasks
 *
 * Use this file to build the project
 * or modify it to suit your own project.
 */

module.exports = function(grunt) {

  // Time your grunt tasks and never need to loadGruntTask again
  require('time-grunt')(grunt);
  require('load-grunt-tasks')(grunt);

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    project: {
      dev: 'src',
      dist: 'dist',
      build: '<%= grunt.template.today("yyyymmdd") %>'
    },

    // local server
    connect: {
      server: {
        options: {
          host: 'localhost',
          port: '9000',
          base: '<%= project.dev %>/',
          livereload: true
        }
      }
    },

    // watch for file changes
    watch: {
      styles: {
        files: ['<%= project.dev %>/less/**/*.less'],
        tasks: ['less:dev'],
        options: {
          livereload: true
        }
      },
      scripts: {
        files: ['<%= project.dev %>/js/**/*.js', 'Gruntfile.js'],
        tasks: ['jshint:dev'],
        options: {
          livereload: true,
          reload: true
        }
      }
    },

    // compile less
    less: {
{'fraction_non_alphanumeric': 0.16252144082332762, 'fraction_numerical': 0.003430531732418525, 'mean_word_length': 1.7840095465393795, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '446393', 'n_tokens_mistral': 765, 'n_tokens_neox': 729, 'n_words': 174}