<commit_before>/*jshint browser: true*/
var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;

var pathToModule = function (path) {
    'use strict';
    return path.replace(/^\/base\//, '').replace(/\.js$/, '');
};

Object.keys(window.__karma__.files).forEach(function (file) {
    'use strict';
    if (TEST_REGEXP.test(file)) {
        // Normalize paths to RequireJS module names.
        allTestFiles.push(pathToModule(file));
    }
});


require.config({
    // Karma serves files under /base, which is the basePath from your config file
    baseUrl: '/base',

    map: {
        '*': {
            'css': './src/client/lib/require/require-css/css',
            'text': './src/client/lib/require/require-text/text'
        }
    },

    paths: {
        // plugin base classes
        'plugin': './src/plugin',

        // plugins
        // TODO: populate plugin list dynamically based on config.json


        // MAGIC ... from src/client/js/main.js
        'executor': './src/middleware/executor',
        'blob': './src/middleware/blob',
        'common': './src/common',
        //'core': './src/common/core',
        //'storage': './src/common/storage',

        'js': './src/client/js',
        //'util': './src/common/util',
        //'eventDispatcher': './src/common/EventDispatcher',
        //'logManager': './src/common/LogManager',
        //'coreclient': './src/common/core/users',

        'superagent': './src/client/lib/superagent/superagent',
        'jszip': './src/client/lib/jszip/jszip'

        // external libraries used by plugins
        //'ejs': './support/ejs/ejs.min',
        //'xmljsonconverter': './lib/xmljsonconverter',
        //'sax': './support/sax/sax',

        // modules used by test cases<commit_msg>Add debug to requirejs for karma<commit_after>/*jshint browser: true*/
var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;

var pathToModule = function (path) {
    'use strict';
    return path.replace(/^\/base\//, '').replace(/\.js$/, '');
};

Object.keys(window.__karma__.files).forEach(function (file) {
    'use strict';
    if (TEST_REGEXP.test(file)) {
        // Normalize paths to RequireJS module names.
        allTestFiles.push(pathToModule(file));
    }
});


require.config({
    // Karma serves files under /base, which is the basePath from your config file
    baseUrl: '/base',

    map: {
        '*': {
            'css': './src/client/lib/require/require-css/css',
            'text': './src/client/lib/require/require-text/text'
        }
    },

    paths: {
        // plugin base classes
        'plugin': './src/plugin',

        // plugins
        // TODO: populate plugin list dynamically based on config.json


        // MAGIC ... from src/client/js/main.js
        'executor': './src/middleware/executor',
        'blob': './src/middleware/blob',
        'common': './src/common',
        //'core': './src/common/core',
        //'storage': './src/common/storage',

        'js': './src/client/js',
        //'util': './src/common/util',
        //'eventDispatcher': './src/common/EventDispatcher',
        //'logManager': './src/common/LogManager',
        //'coreclient': './src/common/core/users',

        'superagent': './src/client/lib/superagent/superagent',
        'jszip': './src/client/lib/jszip/jszip',
        'debug': './src/client/lib/debug/debug'

        // external libraries used by plugins
        //'ejs': './support/ejs/ejs.min',
        //'xmljsonconverter': './lib/xmljsonconverter',
        //'sax': './support/sax/sax',

        // modules used by test cases
{'fraction_non_alphanumeric': 0.19329608938547485, 'fraction_numerical': 0.0, 'mean_word_length': 2.0711835334476842, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2915239', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1108, 'n_words': 224}