<commit_before>/*
 * js-data-mongodb
 * https://github.com/js-data/js-data-mongodb
 *
 * Copyright (c) 2014-2015 <NAME> <http://www.js-data.io/docs/dsmongodbadapter>
 * Licensed under the MIT license. <https://github.com/js-data/js-data-mongodb/blob/master/LICENSE>
 */
module.exports = function (grunt) {
  'use strict';

  require('jit-grunt')(grunt, {
    coveralls: 'grunt-karma-coveralls'
  });
  require('time-grunt')(grunt);

  var pkg = grunt.file.readJSON('package.json');

  // Project configuration.
  grunt.initConfig({
    pkg: pkg,
    watch: {
      dist: {
        files: ['src/**/*.js'],
        tasks: ['build']
      }
    },
    coveralls: {
      options: {
        coverage_dir: 'coverage'
      }
    },
    mochaTest: {
      all: {
        options: {
          timeout: 20000,
          reporter: 'spec'
        },
        src: ['mocha.start.js', 'test/**/*.js']
      }
    },
    webpack: {
      dist: {
        debug: true,
        entry: './src/index.js',
        output: {
          filename: './dist/js-data-mongodb.js',
          libraryTarget: 'commonjs2',
          library: 'js-data-mongodb'
        },
        externals: [
          'mout/string/underscore',
          'mout/object/keys',
          'mout/array/map',
          'mout/lang/isEmpty',
          'js-data',
          'js-data-schema',
          'mongodb'
        ],
        module: {
          loaders: [
            { test: /(src)(.+)\.js$/, exclude: /node_modules/, loader: 'babel-loader?blacklist=useStrict' }
          ],
          preLoaders: [
            {
              test: /(src)(.+)\.js$|(test)(.+)\.js$/, // include .js files
              exclude: /node_modules/, // exclude any and all files in the node_modules folder
              loader: "jshint-loader?failOnHint=true"
            }
          ]
        }<commit_msg>Slimmer bundle.<commit_after>/*
 * js-data-mongodb
 * https://github.com/js-data/js-data-mongodb
 *
 * Copyright (c) 2014-2015 <NAME> <http://www.js-data.io/docs/dsmongodbadapter>
 * Licensed under the MIT license. <https://github.com/js-data/js-data-mongodb/blob/master/LICENSE>
 */
module.exports = function (grunt) {
  'use strict';

  require('jit-grunt')(grunt, {
    coveralls: 'grunt-karma-coveralls'
  });
  require('time-grunt')(grunt);

  var pkg = grunt.file.readJSON('package.json');

  // Project configuration.
  grunt.initConfig({
    pkg: pkg,
    watch: {
      dist: {
        files: ['src/**/*.js'],
        tasks: ['build']
      }
    },
    coveralls: {
      options: {
        coverage_dir: 'coverage'
      }
    },
    mochaTest: {
      all: {
        options: {
          timeout: 20000,
          reporter: 'spec'
        },
        src: ['mocha.start.js', 'test/**/*.js']
      }
    },
    webpack: {
      dist: {
        debug: true,
        entry: './src/index.js',
        output: {
          filename: './dist/js-data-mongodb.js',
          libraryTarget: 'commonjs2',
          library: 'js-data-mongodb'
        },
        externals: [
          'mout/string/underscore',
          'mout/object/keys',
          'mout/array/map',
          'mout/lang/isEmpty',
          'mout/object/omit',
          'js-data',
          'js-data-schema',
          'mongodb'
        ],
        module: {
          loaders: [
            { test: /(src)(.+)\.js$/, exclude: /node_modules/, loader: 'babel-loader?blacklist=useStrict' }
          ],
          preLoaders: [
            {
              test: /(src)(.+)\.js$|(test)(.+)\.js$/, // include .js files
              exclude: /node_modules/, // exclude any and all files in the node_modules folder
              loader: "jshint-loader?failOnHint=true"
            }
          ]
        }
{'fraction_non_alphanumeric': 0.17189189189189188, 'fraction_numerical': 0.0075675675675675675, 'mean_word_length': 1.6435714285714285, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '3769909', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1213, 'n_words': 200}