<commit_before>module.exports = function(grunt) {

  // project configuration
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    karma: {
      single: {

        browsers: [ 'PhantomJS' ],
        autoWatch: false,
        singleRun: true,

        configFile: 'test/config/karma.unit.js',

        browserify: {
          watch: false,
          debug: false,
          transform: [ 'debowerify' ]
        }
      },
      unit: {
        configFile: 'test/config/karma.unit.js',
      
        singleRun: false,
        autoWatch: true,
        browsers: [ 'Chrome' ]
      }
    },
    browserify: {
      vendor: {
        src: [ 'bower_components/snapsvg/index.js', 'node_modules/lodash/lodash.js' ],
        dest: 'build/common.js',
        options: {
          alias: [
            'bower_components/snapsvg/index.js:snapsvg',
            'node_modules/lodash/lodash.js:lodash'
          ],
          transform: [ 'uglifyify' ]
        }
      },
      src: {
        files: {
          'build/diagram.js': [ 'src/**/*.js' ]
        },
        options: {
          external: [ 'snapsvg', 'lodash' ],
          alias: [
            'src/diagram.js:diagram'
          ],
          transform: [ 'uglifyify' ]
        }
      }
    },
    watch: {
      browserify: {
        files: [ 'src/**/*.js' ],
        tasks: [ 'browserify' ],
      },
      jsdoc: {
        files: [ 'src/**/*.js', 'test/**/*.js' ],
        tasks: [ 'jsdoc']
      }
    },
    jsdoc: {
      dist: {
        src: [ 'src/**/*.js', 'test/**/*.js' ],
        options: {
          destination: 'doc',
          plugins: [ 'plugins/markdown' ]
        }
      }
    }
  });

  // load external scripts<commit_msg>chore(build): do not uglify (yet)<commit_after>module.exports = function(grunt) {

  // project configuration
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    karma: {
      single: {

        browsers: [ 'PhantomJS' ],
        autoWatch: false,
        singleRun: true,

        configFile: 'test/config/karma.unit.js',

        browserify: {
          watch: false,
          debug: false,
          transform: [ 'debowerify' ]
        }
      },
      unit: {
        configFile: 'test/config/karma.unit.js',
      
        singleRun: false,
        autoWatch: true,
        browsers: [ 'Chrome' ]
      }
    },
    browserify: {
      vendor: {
        src: [ 'bower_components/snapsvg/index.js', 'node_modules/lodash/lodash.js' ],
        dest: 'build/common.js',
        options: {
          alias: [
            'bower_components/snapsvg/index.js:snapsvg',
            'node_modules/lodash/lodash.js:lodash'
          ]
        }
      },
      src: {
        files: {
          'build/diagram.js': [ 'src/**/*.js' ]
        },
        options: {
          external: [ 'snapsvg', 'lodash' ],
          alias: [
            'src/diagram.js:diagram'
          ]
        }
      }
    },
    watch: {
      browserify: {
        files: [ 'src/**/*.js' ],
        tasks: [ 'browserify' ],
      },
      jsdoc: {
        files: [ 'src/**/*.js', 'test/**/*.js' ],
        tasks: [ 'jsdoc']
      }
    },
    jsdoc: {
      dist: {
        src: [ 'src/**/*.js', 'test/**/*.js' ],
        options: {
          destination: 'doc',
          plugins: [ 'plugins/markdown' ]
        }
      }
    }
  });

  // load external scripts
{'fraction_non_alphanumeric': 0.16567519333729921, 'fraction_numerical': 0.0, 'mean_word_length': 1.4073013600572655, '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': '4062898', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1109, 'n_words': 165}