<commit_before>/*
 * grunt-documentation
 * https://github.com/documentationjs/grunt-documentation
 *
 * Copyright (c) 2015 <NAME>
 * Licensed under the MIT license.
 */
'use strict';

module.exports = function(grunt) {

    var path = require('path'),
        chalk = require('chalk'),
        documentation = require('documentation');

    grunt.registerMultiTask('documentation', 'Use Grunt with documentation to generate great documentation for your JavaScript projects.', function() {
        var options = this.options({
            format: 'html',
            shallow: false,
            github: false,
            access: ['public', 'protected', 'undefined'],
            order: []
        });

        var formatter = documentation.formats[options.format];
        if (!formatter) {
            throw new Error('invalid format given: valid options are ' + Object.keys(documentation.formats).join(', '));
        }

        var docOptions = {
            github: options.github,
            shallow: options.shallow,<commit_msg>handle version incompatibilities<commit_after>/*
 * grunt-documentation
 * https://github.com/documentationjs/grunt-documentation
 *
 * Copyright (c) 2015 <NAME>
 * Licensed under the MIT license.
 */
'use strict';

module.exports = function(grunt) {

    var path = require('path'),
        chalk = require('chalk'),
        documentation = require('documentation').build || require('documentation'),
        formats = require('documentation').formats;

    grunt.registerMultiTask('documentation', 'Use Grunt with documentation to generate great documentation for your JavaScript projects.', function() {
        var options = this.options({
            format: 'html',
            shallow: false,
            github: false,
            access: ['public', 'protected', 'undefined'],
            order: []
        });

        var formatter = formats[options.format];
        if (!formatter) {
            throw new Error('invalid format given: valid options are ' + Object.keys(formats).join(', '));
        }

        var docOptions = {
            github: options.github,
            shallow: options.shallow,
{'fraction_non_alphanumeric': 0.12563983248022337, 'fraction_numerical': 0.0037226617031177293, 'mean_word_length': 2.5714285714285716, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1321838', 'n_tokens_mistral': 556, 'n_tokens_neox': 525, 'n_words': 146}