<commit_before>/*
 * Copyright (c) 2015. Enterprise Architecture Group, EACG
 *
 * SPDX-License-Identifier:	MIT
 */

'use strict';

module.exports = function (grunt) {
    var clientOptions = {
        user: "<%= credentials['clientOptions.user'] %>",
        password: "<%= credentials['clientOptions.password'] %>"
    };

    grunt.initConfig({
//        credentials: grunt.file.readJSON('./.ecsrc.json'),

        properties: {
            credentials: './.ecsrc.properties'
        },

        'ecs-npm-scan': {
            options: {
                project: 'CodeScanNPM',
                user: '<%= credentials.user %>',
                apiKey: '<%= credentials.apiKey %>',
                simulate: false,
                baseUrl: '<%= credentials.baseUrl %>',
                includeDevDependencies: false,
                exclude: "bower",
                clientOptions: clientOptions
            }
        },
        'ecs-bower-scan': {
            options: {
                project: 'CodeScanBower',
                user: '<%= credentials.user %>',
                apiKey: '<%= credentials.apiKey %>',
                baseUrl: '<%= credentials.baseUrl %>',
                simulate: false,
                continueOnMissingDependencies: false,
                clientOptions: clientOptions
            }
        },
        simplemocha: {
            options: {
                globals: ['assert'],
                timeout: 3000,
                ignoreLeaks: false
                //           ui: 'bdd',
                //           reporter: 'verbose'
            },
            all: {src: ['test/*.js']}
        }
    });

    grunt.loadTasks("./tasks");
    grunt.loadNpmTasks('grunt-simple-mocha');
    grunt.loadNpmTasks('grunt-properties-reader');

//    grunt.registerTask('scan', ['properties', 'ecs-npm-scan', 'ecs-bower-scan']);
    grunt.registerTask('scan', ['properties', 'ecs-bower-scan']);
    grunt.registerTask('test', ['simplemocha']);

    grunt.registerTask('default', ['test', 'scan']);
};<commit_msg>renamed property-names<commit_after>/*
 * Copyright (c) 2015. Enterprise Architecture Group, EACG
 *
 * SPDX-License-Identifier:	MIT
 */

'use strict';

module.exports = function (grunt) {
    var clientOptions = {
        user: "<%= credentials['ecs.basicAuth.user'] %>",
        password: "<%= credentials['<PASSWORD>'] %>"
    };

    grunt.initConfig({

        properties: {
//        credentials: grunt.file.readJSON('./.ecsrc.json'),
            credentials: process.env['HOME'] + '/.ecsrc.properties'
        },

        'ecs-npm-scan': {
            options: {
                project: 'CodeScanNPM',
                user: "<%= credentials['ecs.user'] %>",
                apiKey: "<%= credentials['ecs.apiKey'] %>",
                simulate: false,
                baseUrl: "<%= credentials['ecs.baseUrl'] %>",
                includeDevDependencies: false,
                exclude: "bower",
                clientOptions: clientOptions
            }
        },
        'ecs-bower-scan': {
            options: {
                project: 'CodeScanBower',
                user: "<%= credentials['ecs.user'] %>",
                apiKey: "<%= credentials['ecs.apiKey'] %>",
                baseUrl: "<%= credentials['ecs.baseUrl'] %>",
                simulate: false,
                continueOnMissingDependencies: false,
                clientOptions: clientOptions
            }
        },
        simplemocha: {
            options: {
                globals: ['assert'],
                timeout: 3000,
                ignoreLeaks: false
                //           ui: 'bdd',
                //           reporter: 'verbose'
            },
            all: {src: ['test/*.js']}
        }
    });

    grunt.loadTasks("./tasks");
    grunt.loadNpmTasks('grunt-simple-mocha');
    grunt.loadNpmTasks('grunt-properties-reader');

    grunt.registerTask('scan', ['properties', 'ecs-npm-scan', 'ecs-bower-scan']);
//    grunt.registerTask('scan', ['properties', 'ecs-npm-scan']);
    grunt.registerTask('test', ['simplemocha']);

    grunt.registerTask('default', ['test', 'scan']);
};
{'fraction_non_alphanumeric': 0.1623062015503876, 'fraction_numerical': 0.003875968992248062, 'mean_word_length': 1.6690368455074338, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '6107283', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1128, 'n_words': 184}