<commit_before>/*global module:false*/
module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('package.json'),
    banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
    // Task configuration.
    concat_sourcemap: {
      options: {
        sourcesContent: true
      },
      target: {
        files: {
          'dist/FooFighter.js': [
              'src/namespace.js',
              'src/modules/Util.js',
              'bower_components/shout/shout.js',
              'src/modules/GameState.js',
              'src/modules/GameEngine.js',
              'src/modules/StartScreen.js',
              'src/entities/Score.js',
              'src/entities/Timer.js',
              'src/entities/StarField.js',
              'src/entities/Player.js',
              'src/entities/EnemyShip.js',
              'src/entities/Asteroid.js',
              'src/app.js'
          ]
        }
      }
    },
    uglify: {
      options: {
        banner: '<%= banner %>',
        sourceMap: 'dist/FooFighter.min.map',
        sourceMappingURL: 'dist/FooFighter.min.map',
        sourceMapPrefix: 1
      },
      dist: {
        src: 'dist/FooFighter.js',
        dest: 'dist/FooFighter.min.js'
      }
    },
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        unused: true,
        boss: true,
        eqnull: true,
        browser: true,
        globals: {}
      },
      gruntfile: {
        src: 'Gruntfile.js'
      },
      lib_test: {
        src: ['lib/**/*.js', 'test/**/*.js']
      }
    },
    qunit: {
      files: ['test/**/*.html']
    },
    watch: {
      gruntfile: {
        files: ['src/**/*.js','src/*.js'],
        tasks: ['jshint:gruntfile', 'default']
      },
      lib_test: {
        files: '<%= jshint.lib_test.src %>',
        tasks: ['jshint:lib_test', 'qunit']
      }
    },
    connect: {
      server: {
        options: {
          port: 8000,
          base: './',
          keepalive: true
        }
      }
  }
  });

  // These plugins provide necessary tasks.<commit_msg>cleanup gruntfile<commit_after>/*global module:false*/
module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
    concat_sourcemap: {
      options: {
        sourcesContent: true
      },
      target: {
        files: {
          'dist/FooFighter.js': [
              'src/namespace.js',
              'src/modules/Util.js',
              'bower_components/shout/shout.js',
              'src/modules/GameState.js',
              'src/modules/GameEngine.js',
              'src/modules/StartScreen.js',
              'src/entities/Score.js',
              'src/entities/Timer.js',
              'src/entities/StarField.js',
              'src/entities/Player.js',
              'src/entities/EnemyShip.js',
              'src/entities/Asteroid.js',
              'src/app.js'
          ]
        }
      }
    },
    uglify: {
      options: {
        banner: '<%= banner %>',
        sourceMap: 'dist/FooFighter.min.map',
        sourceMappingURL: 'dist/FooFighter.min.map',
        sourceMapPrefix: 1
      },
      dist: {
        src: 'dist/FooFighter.js',
        dest: 'dist/FooFighter.min.js'
      }
    },
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        unused: true,
        boss: true,
        eqnull: true,
        browser: true,
        globals: {}
      },
      gruntfile: {
        src: 'Gruntfile.js'
      }
    },
    watch: {
      gruntfile: {
        files: ['src/**/*.js','src/*.js'],
        tasks: ['jshint:gruntfile', 'default']
      }
    },
    connect: {
      server: {
        options: {
          port: 8000,
          base: './',
          keepalive: true
        }
      }
  }
  });

  // These plugins provide necessary tasks.
{'fraction_non_alphanumeric': 0.1757779646761985, 'fraction_numerical': 0.0021026072329688814, 'mean_word_length': 1.489272632129775, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '2070388', 'n_tokens_mistral': 1638, 'n_tokens_neox': 1572, 'n_words': 238}