<commit_before>/*
 * Copyright (C) 2012 Vanderbilt University, All rights reserved.
 *
 * Author: <NAME>
 */

define([ 'storage/mongo', 'storage/server', 'storage/cache', 'storage/log', 'storage/broadcaster'], function (Mongo,Server,Cache,Log,Broadcaster) {
    "use strict";
    function server(options){
        return new Server(new Log(new Cache/*(new Broadcaster*/(new Mongo(options)/*,options)*/,options),options),options);
    }



    return server;
});


<commit_msg>cacheSize===0 in config => dont use storage/cache at all<commit_after>/*
 * Copyright (C) 2012 Vanderbilt University, All rights reserved.
 *
 * Author: <NAME>
 */

define([ 'storage/mongo', 'storage/server', 'storage/cache', 'storage/log', 'storage/broadcaster'], function (Mongo,Server,Cache,Log,Broadcaster) {
    "use strict";
    function server(options){
        var server = /*new Broadcaster(*/new Mongo(options)/*,options)*/;
        if (options.cache !== 0) {
            server = new Cache(server, options);
        }
        return new Server(new Log(server, options), options);
    }



    return server;
});



{'fraction_non_alphanumeric': 0.15775635407537247, 'fraction_numerical': 0.008764241893076249, 'mean_word_length': 3.183150183150183, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '2214509', 'n_tokens_mistral': 368, 'n_tokens_neox': 323, 'n_words': 82}