<commit_before>var json_driver = require("./json-driver");

function playlists_driver(type) {
    var self = this;
    
    this.driver                = undefined;
    this.newPlaylistCallback    = undefined;
    this.updatePlaylistCallback = undefined;
    this.removePlaylistCallback = undefined;
    
    console.log("mbc-mosto: [INFO] Creating playlists driver for type [" + type + "]");
    
    if (type === 'json') {
        this.driver = new json_driver();
    } else {
        var err = new Error("mbc-mosto: [ERROR] Unknown type of driver [" + type + "]");
        console.error(err);
        throw err;
    }
    
    playlists_driver.prototype.start = function() {<commit_msg>add the new driver<commit_after>var json_driver = require("./json-driver"),
    mongo_driver = require("./mongo-driver");

function playlists_driver(type) {
    var self = this;
    
    this.driver                = undefined;
    this.newPlaylistCallback    = undefined;
    this.updatePlaylistCallback = undefined;
    this.removePlaylistCallback = undefined;
    
    console.log("mbc-mosto: [INFO] Creating playlists driver for type [" + type + "]");
    
    if (type === 'json') {
        this.driver = new json_driver();
    } else if (type === 'mongo') {
        this.driver = new mongo_driver();
    } else {
        var err = new Error("mbc-mosto: [ERROR] Unknown type of driver [" + type + "]");
        console.error(err);
        throw err;
    }
    
    playlists_driver.prototype.start = function() {
{'fraction_non_alphanumeric': 0.13231382978723405, 'fraction_numerical': 0.0, 'mean_word_length': 2.532863849765258, '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': '2216872', 'n_tokens_mistral': 452, 'n_tokens_neox': 445, 'n_words': 104}