<commit_before>var Plaster = function(){
    var self = this;

    self.loadedModes = ["text"];
    self.loadedThemes = ["default"];
    self.staticUrl = "/static/plaster/codemirror/";
    self.editors = [];
    self.defaultConfig = {"lineNumbers": true,
                          "lineWrapping": true,
                          "viewportMargin": Infinity,};

    self.addToHead = function(element){
        document.getElementsByTagName("head")[0].appendChild(element);
        return element;
    }

    self.loadScript = function(url, callback){
        console.log("Loading script", url);
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = url;
        script.onload = callback;
        return self.addToHead(script);
    }

    self.loadStylesheet = function(url, callback){
        console.log("Loading stylesheet", url);
        var link = document.createElement("link");
        link.type = "text/css";
        link.rel = "stylesheet";
        link.href = url;
        link.onload = callback;
        return self.addToHead(link);
    }

    self.maybeLoadTheme = function(theme, callback){
        if(self.loadedThemes.indexOf(theme) === -1){
            self.loadedThemes.push(theme);
            self.loadStylesheet(self.staticUrl + "theme/"+theme+".css", callback);
        }else{
            if(callback) callback();
        }
        return true;
    }

    self.maybeLoadMode = function(mode, callback){
        if(self.loadedModes.indexOf(mode) === -1){
            self.loadedModes.push(mode);
            self.loadScript(self.staticUrl + "mode/"+mode+".js", callback);
        }else{
            if(callback) callback();
        }
        return true;
    }

    self.createEditor = function(element, config, callback){
        console.log("Creating editor for", element, "with", config);
        var textarea = element.getElementsByTagName("textarea")[0];
        var type = element.getElementsByClassName("type")[0];

        self.editors.push(element);
        if(!config) config = {};
        if(!config.theme) config.theme = "default";
        if(!config.readOnly) config.readOnly = textarea.hasAttribute("readonly");
        <commit_msg>Remove uses of console.log<commit_after>var Plaster = function(){
    var self = this;

    self.loadedModes = ["text"];
    self.loadedThemes = ["default"];
    self.staticUrl = "/static/plaster/codemirror/";
    self.editors = [];
    self.defaultConfig = {"lineNumbers": true,
                          "lineWrapping": true,
                          "viewportMargin": Infinity,};

    self.addToHead = function(element){
        document.getElementsByTagName("head")[0].appendChild(element);
        return element;
    }

    self.loadScript = function(url, callback){
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = url;
        script.onload = callback;
        return self.addToHead(script);
    }

    self.loadStylesheet = function(url, callback){
        var link = document.createElement("link");
        link.type = "text/css";
        link.rel = "stylesheet";
        link.href = url;
        link.onload = callback;
        return self.addToHead(link);
    }

    self.maybeLoadTheme = function(theme, callback){
        if(self.loadedThemes.indexOf(theme) === -1){
            self.loadedThemes.push(theme);
            self.loadStylesheet(self.staticUrl + "theme/"+theme+".css", callback);
        }else{
            if(callback) callback();
        }
        return true;
    }

    self.maybeLoadMode = function(mode, callback){
        if(self.loadedModes.indexOf(mode) === -1){
            self.loadedModes.push(mode);
            self.loadScript(self.staticUrl + "mode/"+mode+".js", callback);
        }else{
            if(callback) callback();
        }
        return true;
    }

    self.createEditor = function(element, config, callback){
        var textarea = element.getElementsByTagName("textarea")[0];
        var type = element.getElementsByClassName("type")[0];

        self.editors.push(element);
        if(!config) config = {};
        if(!config.theme) config.theme = "default";
        if(!config.readOnly) config.readOnly = textarea.hasAttribute("readonly");
        
{'fraction_non_alphanumeric': 0.14033457249070633, 'fraction_numerical': 0.0023234200743494425, 'mean_word_length': 2.3372093023255816, 'pattern_counts': {'":': 6, '<': 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': '1410406', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1211, 'n_words': 219}