<commit_before>var path = require('path');

var pattern = function (file, included) {
    return {pattern: file, included: included, served: true, watched: false};
};

var framework = function (files) {
    files.unshift(pattern(path.dirname(require.resolve('mocha')), 'mocha.js'), false);
    files.unshift(pattern(path.join(__dirname, 'framework.js'), false));
    files.unshift(pattern(path.join(__dirname, 'runner.js'), true));
};

var proxyBowerComponentsMiddlewareFactory = function () {
    return function (request, response, next) {
        next();
    };
};

var proxyNodeModulesMiddlewareFactory = function () {
    return function (request, response, next) {
        next();
    };
};

framework.$inject = ['config.files'];
module.exports = {
    'framework:web-components': ['factory', framework],
    'middleware:proxy-bower-components': ['factory', proxyBowerComponentsMiddlewareFactory],
    'middleware:proxy-node-modules': ['factory', proxyNodeModulesMiddlewareFactory]
};<commit_msg>Fixed mocha pathing for real this time<commit_after>var path = require('path');

var pattern = function (file, included) {
    return {pattern: file, included: included, served: true, watched: false};
};

var framework = function (files) {
    files.unshift(pattern(path.join(path.dirname(require.resolve('mocha')), 'mocha.js')), false);
    files.unshift(pattern(path.join(__dirname, 'framework.js'), false));
    files.unshift(pattern(path.join(__dirname, 'runner.js'), true));
};

var proxyBowerComponentsMiddlewareFactory = function () {
    return function (request, response, next) {
        next();
    };
};

var proxyNodeModulesMiddlewareFactory = function () {
    return function (request, response, next) {
        next();
    };
};

framework.$inject = ['config.files'];
module.exports = {
    'framework:web-components': ['factory', framework],
    'middleware:proxy-bower-components': ['factory', proxyBowerComponentsMiddlewareFactory],
    'middleware:proxy-node-modules': ['factory', proxyNodeModulesMiddlewareFactory]
};
{'fraction_non_alphanumeric': 0.15735294117647058, 'fraction_numerical': 0.0, 'mean_word_length': 5.038461538461538, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2413842', 'n_tokens_mistral': 574, 'n_tokens_neox': 581, 'n_words': 126}