<commit_before>'use strict';

module.exports = function(grunt) {
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-simple-mocha');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-browserify');
  grunt.loadNpmTasks('grunt-karma');

  grunt.initConfig({
    jshint: {
      dev: {
        options: {
          node: true,
          globals: {
            describe: true,
            it: true,
            before: true,
            after: true,
            beforeEach: true,
            expect: true
          }
        },
        src: ['Gruntfile.js', 'app/**/*.js', 'routes/**/*.js', 'models/**/*.js', 'test/**/*.js', '*.js']
      }
    },

    simplemocha: {
      all: {
        src: ['test/**/*.js']
      }
    },

    clean: {
      build: {
        src: ['build/']
      }
    },

    copy: {
      build: {
        expand: true,
        cwd: 'app/',
        src: ['**/*.html', '**/*.css', '**/*.png', 'fonts/**/*', 'img/**/*', 'vendors/lodash.js'],
        dest: 'build/',
        flatten: false,
        filter: 'isFile'
      }
    },

    browserify: {
      dev: {
        src: ['app/angular/**/*.js', 'app/react/**/*.js'],
        dest: 'build/bundle.js'
      },

      test: {
        src: ['test/client-side/*-test.js'],
        dest: 'test/client-side/test-bundle.js'
      },
      karmatest: {
        src: ['test/karma-tests/*-test.js'],
        dest: 'test/karma-tests/karma-test-bundle.js'
      },
      options: {
        transform: ['reactify', 'debowerify']
      }
    },

    karma: {
      unit: {
        configFile: 'karma.conf.js'
      }
    }

  });

  grunt.registerTask('test', ['jshint:dev', 'simplemocha:all']);
  grunt.registerTask('default', ['test']);
  grunt.registerTask('build', ['clean','browserify', 'copy']);<commit_msg>add task server-test to Gruntfile<commit_after>'use strict';

module.exports = function(grunt) {
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-simple-mocha');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-browserify');
  grunt.loadNpmTasks('grunt-karma');

  grunt.initConfig({
    jshint: {
      dev: {
        options: {
          node: true,
          globals: {
            describe: true,
            it: true,
            before: true,
            after: true,
            beforeEach: true,
            expect: true
          }
        },
        src: ['Gruntfile.js', 'app/**/*.js', 'routes/**/*.js', 'models/**/*.js', 'test/**/*.js', '*.js']
      }
    },

    simplemocha: {
      all: {
        src: ['test/**/*.js']
      }
    },

    clean: {
      build: {
        src: ['build/']
      }
    },

    copy: {
      build: {
        expand: true,
        cwd: 'app/',
        src: ['**/*.html', '**/*.css', '**/*.png', 'fonts/**/*', 'img/**/*', 'vendors/lodash.js'],
        dest: 'build/',
        flatten: false,
        filter: 'isFile'
      }
    },

    browserify: {
      dev: {
        src: ['app/angular/**/*.js', 'app/react/**/*.js'],
        dest: 'build/bundle.js'
      },

      test: {
        src: ['test/client-side/*-test.js'],
        dest: 'test/client-side/test-bundle.js'
      },
      karmatest: {
        src: ['test/karma-tests/*-test.js'],
        dest: 'test/karma-tests/karma-test-bundle.js'
      },
      options: {
        transform: ['reactify', 'debowerify']
      }
    },

    karma: {
      unit: {
        configFile: 'karma.conf.js'
      }
    }

  });

  grunt.registerTask('test', ['jshint:dev', 'simplemocha:all']);
  grunt.registerTask('test-server', ['simplemocha:all']);
  grunt.registerTask('default', ['test']);
  grunt.registerTask('build', ['clean','browserify', 'copy']);
{'fraction_non_alphanumeric': 0.20969441517386722, 'fraction_numerical': 0.0, 'mean_word_length': 1.8506006006006006, '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': '2425985', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1335, 'n_words': 197}