<commit_before>
module.exports = function (grunt) {
  "use strict";
  var neat = require('node-neat').includePaths;
  // Config...
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    connect: {
      server: {
        options: {
          port: 9001,
          // Prevents Grunt to close just after the task (starting the server) completes
          // This will be removed later as `watch` will take care of that
          keepalive: false,
          hostname: '',
          base: './src'
        }
      }
    },
    watch: {
      options: {
        livereload: true,
      },
      scripts: {
        files: ['./src/scripts/**/*.js']
      },
      html:{
        files: ['./src/**/*.html']
      },
      pictures:{
        files: ['./src/art/**/*']
      },
      css:{
        files: ['./src/sass/**/*.scss'],
        tasks: ['sass:dev']
      }
    },
    sass: {
      options: {
        includePaths: neat,
        outputStyle: 'compressed'
      },
      dev: {
        files: {
          './src/css/style.css': './src/sass/style.scss'
        }
      },
      dist: {
        files: {
          './dist/css/style.css': './src/sass/style.scss'
        }
      }
    },
    copy: {
      art: {
        expand: true,
        cwd: 'src/art',
        src: '**',
        dest: 'dist/art',
        flatten: false,
        filter: 'isFile'
      },
      vendor: {
        expand: true,
        cwd: 'src/scripts/vendor',
        src: '**',
        dest: 'dist/scripts/vendor',
        flatten: false,
        filter: 'isFile'
      },
      templates: {
        expand: true,
        cwd: 'src/templates',
        src: '**',
        dest: 'dist/templates',
        flatten: false,
        filter: 'isFile'
      }
    },
    requirejs: {
      compile: {
        options: {
          name: 'scripts/app',
          baseUrl: "src/",
          mainConfigFile: "src/config/requireConfig.js",
          out: "dist/scripts/game.js",
          exclude: ['jQuery', 'underscore', 'text', 'keypress', 'angular', 'angular-ui-router']
        }
      }
    }
  });

  // Load tasks...
  grunt.loadNpmTasks('grunt-contrib-connect');
  grunt.loadNpmTasks('grunt-open');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-sass');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-requirejs');
  // Task aliases and tasks
  grunt.registerTask('server', [
    'connect',
    'watch'
  ]);
  grunt.registerTask('build', [
    'copy',
    'sass',
    'requirejs'
  ]);
};<commit_msg>bundle all in one file<commit_after>
module.exports = function (grunt) {
  "use strict";
  var neat = require('node-neat').includePaths;
  // Config...
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    connect: {
      server: {
        options: {
          port: 9001,
          // Prevents Grunt to close just after the task (starting the server) completes
          // This will be removed later as `watch` will take care of that
          keepalive: false,
          hostname: '',
          base: './src'
        }
      }
    },
    watch: {
      options: {
        livereload: true,
      },
      scripts: {
        files: ['./src/scripts/**/*.js']
      },
      html:{
        files: ['./src/**/*.html']
      },
      pictures:{
        files: ['./src/art/**/*']
      },
      css:{
        files: ['./src/sass/**/*.scss'],
        tasks: ['sass:dev']
      }
    },
    sass: {
      options: {
        includePaths: neat,
        outputStyle: 'compressed'
      },
      dev: {
        files: {
          './src/css/style.css': './src/sass/style.scss'
        }
      },
      dist: {
        files: {
          './dist/css/style.css': './src/sass/style.scss'
        }
      }
    },
    copy: {
      art: {
        expand: true,
        cwd: 'src/art',
        src: '**',
        dest: 'dist/art',
        flatten: false,
        filter: 'isFile'
      },
      vendor: {
        expand: true,
        cwd: 'src/scripts/vendor',
        src: '**',
        dest: 'dist/scripts/vendor',
        flatten: false,
        filter: 'isFile'
      },
      templates: {
        expand: true,
        cwd: 'src/templates',
        src: '**',
        dest: 'dist/templates',
        flatten: false,
        filter: 'isFile'
      }
    },
    requirejs: {
      compile: {
        options: {
          name: 'scripts/app',
          baseUrl: "src",
          mainConfigFile: "src/config/requireConfig.js",
          out: "dist/scripts/game.js"
        }
      }
    }
  });

  // Load tasks...
  grunt.loadNpmTasks('grunt-contrib-connect');
  grunt.loadNpmTasks('grunt-open');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-sass');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-requirejs');
  // Task aliases and tasks
  grunt.registerTask('server', [
    'connect',
    'watch'
  ]);
  grunt.registerTask('build', [
    'copy',
    'sass',
    'requirejs'
  ]);
};
{'fraction_non_alphanumeric': 0.17116939459672648, 'fraction_numerical': 0.0015775981068822718, 'mean_word_length': 1.6184821889519876, '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': '4755868', 'n_tokens_mistral': 1695, 'n_tokens_neox': 1687, 'n_words': 305}