<commit_before>/* jshint node: true */

module.exports = function (grunt) {
    'use strict';

    if (grunt.option('help')) {
        require('load-grunt-tasks')(grunt);
    } else {
        require('jit-grunt')(grunt, {
            force: 'grunt-force-task'
        });
    }

    require('time-grunt')(grunt);

    grunt.initConfig({
        config: {
            lib: 'bower_components',
            modules: 'src',
            files: {
                lint: [
                    'src/**/*.js',
                    '<%= config.files.karmaTests %>',
                    './grunt/**/*.js',
                    'Gruntfile.js'
                ],
                karmaTests: 'tests/unit/**/*.js'
            }
        },
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                '<%= config.files.lint %>'
            ]
        },
        jscs: {
            options: {
                config: '.jscsrc'
            },
            src: '<%= config.files.lint %>'
        }
    });

    grunt.registerTask('default', [
        'test'
    ]);

    grunt.registerTask('lint', 'Run the JS linters.', [
        'jshint',
        'jscs'
    ]);

    grunt.registerTask('test', 'Run the tests.', function (env) {
        var karmaTarget = 'dev';
        if (grunt.option('debug')) {
            karmaTarget = 'debug';<commit_msg>Tell grunt to load the karma.js file.<commit_after>/* jshint node: true */

module.exports = function (grunt) {
    'use strict';

    if (grunt.option('help')) {
        require('load-grunt-tasks')(grunt);
    } else {
        require('jit-grunt')(grunt, {
            force: 'grunt-force-task'
        });
    }

    require('time-grunt')(grunt);

    grunt.initConfig({
        config: {
            lib: 'bower_components',
            modules: 'src',
            files: {
                lint: [
                    'src/**/*.js',
                    '<%= config.files.karmaTests %>',
                    './grunt/**/*.js',
                    'Gruntfile.js'
                ],
                karmaTests: 'tests/unit/**/*.js'
            }
        },
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                '<%= config.files.lint %>'
            ]
        },
        jscs: {
            options: {
                config: '.jscsrc'
            },
            src: '<%= config.files.lint %>'
        }
    });

    // Load external grunt task config.
    grunt.loadTasks('./grunt');

    grunt.registerTask('default', [
        'test'
    ]);

    grunt.registerTask('lint', 'Run the JS linters.', [
        'jshint',
        'jscs'
    ]);

    grunt.registerTask('test', 'Run the tests.', function (env) {
        var karmaTarget = 'dev';
        if (grunt.option('debug')) {
            karmaTarget = 'debug';
{'fraction_non_alphanumeric': 0.1640652098508498, 'fraction_numerical': 0.0, 'mean_word_length': 1.1964965727341965, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2070981', 'n_tokens_mistral': 903, 'n_tokens_neox': 867, 'n_words': 141}