<commit_before>'use strict';
/*jshint esnext: true */
var http = require('http');

module.exports = function (grunt) {
  grunt.initConfig({
    clean: ['build'],
    jshint: {
      options: {
        jshintrc: '.jshintrc'
      },
      all: ['Gruntfile.js', '*.js', 'features/**/*.js']
    },
    csslint: {
      strict: {
        options: {
          'box-model': false, // allows setting width/height with box properties
          ids: false, // allows ids to be used in CSS selectors
          'overqualified-elements': false // allows element name with class
        },
        src: ['build/styles/*.css']
      }
    },
    karma: {
      unit: {
        configFile: 'karma.conf.js'
      }
    },
    less: {
      all: {
        files: [{
          expand: true,
          cwd: 'styles',
          src: ['*.less'],
          dest: 'build/styles',
          ext: '.css'
        }]
      }
    },
    protractor: {
      options: {
        configFile: 'protractor.conf.js',
        keepAlive: true,
        noColor: false
      },
      all: {
      }
    },
    touch: { // used to force livereload after server restart
      /*
      options: {
        force: true,
        mtime: true
      },
      */
      src: ['index.html'],
    },
    traceur: {
      options: {
        includeRuntime: true, // includes runtime code in generated file
        traceurOptions: '--experimental --sourcemap'
      },
      server: {
        files: {
          // Just need to transpile main file which imports others.
          'build/server.js': ['server.js']
        }
      },
      webapp: {
        files: {
          // Just need to transpile main file which imports others.<commit_msg>Fixes bad --sourcemap option in Gruntfile.js.  Changed to --source-maps=file to generate sourcemap files to be loaded by the debugger.<commit_after>'use strict';
/*jshint esnext: true */
var http = require('http');

module.exports = function (grunt) {
  grunt.initConfig({
    clean: ['build'],
    jshint: {
      options: {
        jshintrc: '.jshintrc'
      },
      all: ['Gruntfile.js', '*.js', 'features/**/*.js']
    },
    csslint: {
      strict: {
        options: {
          'box-model': false, // allows setting width/height with box properties
          ids: false, // allows ids to be used in CSS selectors
          'overqualified-elements': false // allows element name with class
        },
        src: ['build/styles/*.css']
      }
    },
    karma: {
      unit: {
        configFile: 'karma.conf.js'
      }
    },
    less: {
      all: {
        files: [{
          expand: true,
          cwd: 'styles',
          src: ['*.less'],
          dest: 'build/styles',
          ext: '.css'
        }]
      }
    },
    protractor: {
      options: {
        configFile: 'protractor.conf.js',
        keepAlive: true,
        noColor: false
      },
      all: {
      }
    },
    touch: { // used to force livereload after server restart
      /*
      options: {
        force: true,
        mtime: true
      },
      */
      src: ['index.html'],
    },
    traceur: {
      options: {
        includeRuntime: true, // includes runtime code in generated file
        traceurOptions: '--experimental --source-maps=file'
      },
      server: {
        files: {
          // Just need to transpile main file which imports others.
          'build/server.js': ['server.js']
        }
      },
      webapp: {
        files: {
          // Just need to transpile main file which imports others.
{'fraction_non_alphanumeric': 0.13768529076396807, 'fraction_numerical': 0.0, 'mean_word_length': 1.552, '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': '5751752', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1038, 'n_words': 277}