<commit_before>var _ = require("lodash");
var pluginManifest = require("../plugin-manifest").load();
var pluginComponentKarmaConfig = require("../plugin-component-karma-config");

module.exports = function(config) {
    var coverageDir = 'coverage/renderer';
    var files = _.concat(
        [
            // TODO: Remove this hack to get jquery, angular etc till renderer exposes bundled dependency file
            // https://github.com/ekstep/Contributed-Plugins/issues/136
            "bower_components/content-editor-dependency/index.js",
            "bower_components/renderer-dependency-toastr/index.js",
            "bower_components/renderer-dependency-appconfig/index.js",
            "bower_components/renderer-dependency-script/index.js",
            "bower_components/renderer/index.js"
        ],
        pluginManifest.getRendererSrcFiles(), [
            "test/renderer/**/*.js"
        ]
    );
    var filesForCoverage = ["renderer/**/*.js"];
    var karmaServePort = 9877;

    pluginComponentKarmaConfig(config, karmaServePort, files, filesForCoverage, coverageDir);
}<commit_msg>Issue #1 merge: pull request #4 from abha01singh/updateDev<commit_after>var _ = require("lodash");
var pluginManifest = require("../plugin-manifest").load();
var pluginComponentKarmaConfig = require("../plugin-component-karma-config");

module.exports = function(config) {
    var coverageDir = 'coverage/renderer';
    var files = _.concat(
        [
            // TODO: Remove this hack to get jquery, angular etc till renderer exposes bundled dependency file
            // https://github.com/ekstep/Contributed-Plugins/issues/136
            "bower_components/content-editor-dependency/index.js",
            "bower_components/renderer-dependency-toastr/index.js",
            "bower_components/renderer-dependency-appconfig/index.js",
            "bower_components/renderer-createjs/index.js",
            "bower_components/renderer-creatine/index.js",
            "bower_components/renderer/index.js"
        ],
        pluginManifest.getRendererSrcFiles(), [
            "test/renderer/**/*.js"
        ]
    );
    var filesForCoverage = ["renderer/**/*.js"];
    var karmaServePort = 9877;

    pluginComponentKarmaConfig(config, karmaServePort, files, filesForCoverage, coverageDir);
}
{'fraction_non_alphanumeric': 0.12712233347845014, 'fraction_numerical': 0.00783630822812364, 'mean_word_length': 2.955249569707401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7289456', 'n_tokens_mistral': 675, 'n_tokens_neox': 653, 'n_words': 108}