<commit_before>module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    concat: {
      dist: {
        src: ['lib/responsive.js', 'lib/*.js'],
        dest: 'dist/<%= pkg.name %>.js'
      },
      test: {
        src: [
          'bower_components/jquery/dist/jquery.js',
          'bower_components/handlebars/handlebars.js',
          'bower_components/ember/ember.js',
          'bower_components/qunit/qunit/qunit.js',
          'bower_components/sinonjs/sinon.js',
          'lib/responsive.js',
          'lib/*.js',
          'tests/**.js',
        ],
        dest: 'dist/<%= pkg.name %>.test.js'
      }
    },

    testem: {
      test: {
        options: {
          test_page: 'tests/index.html',
          framework: 'qunit',
          launch_in_dev: ['PhantomJS', 'Chrome'],
          launch_in_ci: ['PhantomJS', 'Chrome'],
        }
      }
    },

    yuidoc: {
      compile: {
        name: '<%= pkg.name %>',
        description: '<%= pkg.description %>',
        version: '<%= pkg.version %>',
        url: '<%= pkg.homepage %>',
        options: {
          paths: 'lib',
          outdir: 'dist/doc'
        }
      }
    },

    bump: {
      options: {
        files: ['package.json', 'bower.json'],
        commitFiles: ['package.json', 'bower.json', 'dist'],
        pushTo: 'origin',
      }
    },

    clean: ['dist']
  });

  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-testem');
  grunt.loadNpmTasks('grunt-contrib-yuidoc');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-bump');

  grunt.registerTask('test', 'Run tests using testem and PhantomJS',
                     ['concat:test', 'testem:ci:test']);

  grunt.registerTask('dist', 'Create a distributable version',
                     ['doc', 'concat:dist']);

  grunt.registerTask('doc', 'Generate API documentation',<commit_msg>Update configuration so YUIDoc receives the right version.<commit_after>module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    concat: {
      dist: {
        src: ['lib/responsive.js', 'lib/*.js'],
        dest: 'dist/<%= pkg.name %>.js'
      },
      test: {
        src: [
          'bower_components/jquery/dist/jquery.js',
          'bower_components/handlebars/handlebars.js',
          'bower_components/ember/ember.js',
          'bower_components/qunit/qunit/qunit.js',
          'bower_components/sinonjs/sinon.js',
          'lib/responsive.js',
          'lib/*.js',
          'tests/**.js',
        ],
        dest: 'dist/<%= pkg.name %>.test.js'
      }
    },

    testem: {
      test: {
        options: {
          test_page: 'tests/index.html',
          framework: 'qunit',
          launch_in_dev: ['PhantomJS', 'Chrome'],
          launch_in_ci: ['PhantomJS', 'Chrome'],
        }
      }
    },

    yuidoc: {
      compile: {
        name: '<%= pkg.name %>',
        description: '<%= pkg.description %>',
        version: '<%= pkg.version %>',
        url: '<%= pkg.homepage %>',
        options: {
          paths: 'lib',
          outdir: 'dist/doc'
        }
      }
    },

    bump: {
      options: {
        files: ['package.json', 'bower.json'],
        updateConfigs: ['pkg'],
        commitFiles: ['package.json', 'bower.json', 'dist/'],
        pushTo: 'origin',
      }
    },

    clean: ['dist']
  });

  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-testem');
  grunt.loadNpmTasks('grunt-contrib-yuidoc');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-bump');

  grunt.registerTask('test', 'Run tests using testem and PhantomJS',
                     ['concat:test', 'testem:ci:test']);

  grunt.registerTask('dist', 'Create a distributable version',
                     ['doc', 'concat:dist']);

  grunt.registerTask('doc', 'Generate API documentation',
{'fraction_non_alphanumeric': 0.17817258883248732, 'fraction_numerical': 0.0, 'mean_word_length': 2.0597826086956523, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5642936', 'n_tokens_mistral': 1346, 'n_tokens_neox': 1287, 'n_words': 196}