<commit_before>var mbc            = require('mbc-common'),
    collections    = mbc.config.Common.Collections,
    backboneio     = require('backbone.io'),
    middleware     = new mbc.iobackends().get_middleware()
;

module.exports = function (db) {
    var backends = {
        app: {
            use: [backboneio.middleware.configStore()]
        },
        sketch: {
            use: [middleware.uuid],
            mongo: {
                db: db,
                collection: collections.Sketchs,
            }
        },
    }
    return backends;
};<commit_msg>Adding backend for keep live items<commit_after>var mbc            = require('mbc-common'),
    collections    = mbc.config.Common.Collections,
    backboneio     = require('backbone.io'),
    middleware     = new mbc.iobackends().get_middleware()
;

module.exports = function (db) {
    var backends = {
        app: {
            use: [backboneio.middleware.configStore()]
        },
        sketch: {
            use: [middleware.uuid],
            mongo: {
                db: db,
                collection: collections.Sketchs,
            }
        },
        live: {
            use: [backboneio.middleware.memoryStore()]
        }
    }
    return backends;
};
{'fraction_non_alphanumeric': 0.11974110032362459, 'fraction_numerical': 0.0, 'mean_word_length': 1.6263269639065818, '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': '3158918', 'n_tokens_mistral': 364, 'n_tokens_neox': 365, 'n_words': 64}