<commit_before>var makeWindow = function (titletext, width, height) {
    var outer = document.createElement("div");
    outer.className = "window";
    outer.style.width = width + "px";
    outer.style.height = height + "px";
    outer.onclick = function (e) {
        if(e.target.tagName !== "A" && e.target.tagName !== "BUTTON") {
            win_up(windows[this.id.substring(14)]);
        }
    };
    var close = document.createElement("div");
    close.className = "window-close";
    var title = document.createElement("div");
    title.className = "window-title";
    title.innerHTML = titletext;
    var box = document.createElement("div");
    box.className = "window-box";
    var content = document.createElement("div");
    content.className = "window-content";
    document.body.appendChild(outer);
    outer.appendChild(close);
    outer.appendChild(title);
    outer.appendChild(box);
    box.appendChild(content);
    outer.style.zIndex = "3";
    close.onclick = function () {
        document.body.removeChild(outer);
        windows[this.parentNode.id.substring(14)].open = false;
    };
    new Draggable(outer);
    outer.style.zIndex = windows.length - 1;
    var win = {
        window: outer,
        title: title,
        content: content,
        open: true,
        z: windows.length
    };
    windows.push(win);
    win_up(win);
    outer.id = "window-number-" + windows.indexOf(win);
    return win;
};
var win_up = function (win) {
     var grz = 0;
     for(var i = 0; i < windows.length; i++) {
         if(windows[i].z >= win.z) {
             if(windows[i].z > grz) grz = windows[i].z;
             windows[i].z--;
             windows[i].window.style.zIndex = windows[i].z + 1;
         }
     }
     win.z = grz;
     win.window.style.zIndex = grz + 1;<commit_msg>fixes #10<commit_after>var makeWindow = function (titletext, width, height) {
    var outer = document.createElement("div");
    outer.className = "window";
    outer.style.width = width + "px";
    outer.style.height = height + "px";
    outer.onclick = function (e) {
        if(e.target.tagName !== "A" && e.target.tagName !== "BUTTON") {
            win_up(windows[this.id.substring(14)]);
        }
    };
    var close = document.createElement("div");
    close.className = "window-close";
    var title = document.createElement("div");
    title.className = "window-title";
    title.innerHTML = titletext;
    var box = document.createElement("div");
    box.className = "window-box";
    var content = document.createElement("div");
    content.className = "window-content";
    document.body.appendChild(outer);
    outer.appendChild(close);
    outer.appendChild(title);
    outer.appendChild(box);
    box.appendChild(content);
    close.onclick = function () {
        document.body.removeChild(outer);
        windows[this.parentNode.id.substring(14)].open = false;
    };
    new Draggable(outer);
    outer.style.zIndex = windows.length;
    var win = {
        window: outer,
        title: title,
        content: content,
        open: true,
        z: windows.length
    };
    windows.push(win);
    outer.id = "window-number-" + windows.indexOf(win);
    return win;
};
var win_up = function (win) {
    if(win.z < windows.length - 1) {
        var grz = 0;
        for(var i = 0; i < windows.length; i++) {
            if(windows[i].open && windows[i].z > win.z) {
                if(windows[i].z > grz) grz = windows[i].z;
                windows[i].z--;
                windows[i].window.style.zIndex = windows[i].z;
            }
        }
        win.z = grz;
        win.window.style.zIndex = grz;
    }
{'fraction_non_alphanumeric': 0.15602641717116125, 'fraction_numerical': 0.005228398458998349, 'mean_word_length': 2.3719851576994433, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '870008', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1126, 'n_words': 220}