<commit_before>(function() {
  'use strict';

  module.exports = function(grunt) {
    // Configure Grunt
    var grunt_config = {
      pkg: grunt.file.readJSON('package.json')
    };
    _LoadTasksIntoConfig(grunt_config, './tasks/options/');

    grunt.initConfig(grunt_config);

    // Load NPM plugin Grunt tasks
    require('load-grunt-tasks')(grunt);

    // Register custom tasks
    grunt.registerTask('default', []);

    // Dev tasks
    grunt.registerTask('build:dev', [
      'shell:check_data', 'compass:dev', 'requirejs:dev'
    ]);
    grunt.registerTask('lint', ['jshint']);
    grunt.registerTask('test', ['lint', 'build:dev', 'jasmine']);
    grunt.registerTask('dev', ['test']);

    // Prod tasks
    grunt.registerTask('build:prod', ['compass:prod', 'requirejs:prod']);

    // Do a sanity check by running all dev commands first
    grunt.registerTask('prod', ['test', 'build:prod']);

    // Generate data
    grunt.registerTask('build:data', ['shell:generate_data']);
  };

  return;

  // Idea to load from multiple files is from this site:<commit_msg>Fixing Gruntfile<commit_after>(function() {
  'use strict';

  module.exports = function(grunt) {
    // Configure Grunt
    var grunt_config = {
      pkg: grunt.file.readJSON('package.json')
    };
    _LoadTasksIntoConfig(grunt_config, './tasks/options/');

    grunt.initConfig(grunt_config);

    // Load NPM plugin Grunt tasks
    require('load-grunt-tasks')(grunt);

    // Register custom tasks
    grunt.registerTask('default', ['test']);

    // Dev tasks
    grunt.registerTask('build:dev', ['requirejs:dev']);
    grunt.registerTask('lint', ['jshint']);
    grunt.registerTask('test', ['lint', 'build:dev', 'jasmine']);
    grunt.registerTask('dev', ['test']);

    // Prod tasks
    grunt.registerTask('build:prod', ['requirejs:prod']);

    // Do a sanity check by running all dev commands first
    grunt.registerTask('prod', ['test', 'build:prod']);
  };

  return;

  // Idea to load from multiple files is from this site:
{'fraction_non_alphanumeric': 0.17104610808130888, 'fraction_numerical': 0.0, 'mean_word_length': 3.5044642857142856, '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': '3248265', 'n_tokens_mistral': 656, 'n_tokens_neox': 630, 'n_words': 136}