<commit_before>function createID() {
    var id = (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
    var today = new Date(), expires = new Date();
    expires.setTime(today.getTime() + (360 * 24 * 60 * 60 * 1000));
    document.cookie = "id =" + encodeURIComponent(id) + ";expires=" + expires.toGMTString();
}

function getID() {
    var oRegex = new RegExp("(?:; )?" + "id" + "=([^;]*);?");

    if (oRegex.test(document.cookie)) {
        return decodeURIComponent(RegExp["$1"]);
    } else {
        createID();
        getID();
    }
}
function bookmark() {
    document.getElementById("bookmark").setAttribute('href', "javascript:(function () {var d = document;var w = window;var enc = encodeURIComponent;var f = '"+window.location.href+"index.php';var l = d.location;var p = '?shorten=' + enc(l.href) + '&comment=' + enc(d.title) + '&userID="+getID()+"';var u = f + p;var a = function () {if (!w.open(u))l.href = u;};if (/Firefox/.test(navigator.userAgent))setTimeout(a, 0); else a();void(0);})();");
}
document.getElementById("userID").setAttribute('href', "list.php?userID=" + getID());
document.getElementById("userID2").value = getID();
bookmark();<commit_msg>one "return" was missing<commit_after>function createID() {
    var id = (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
    var today = new Date(), expires = new Date();
    expires.setTime(today.getTime() + (360 * 24 * 60 * 60 * 1000));
    document.cookie = "id =" + encodeURIComponent(id) + ";expires=" + expires.toGMTString();
}

function getID() {
    var oRegex = new RegExp("(?:; )?" + "id" + "=([^;]*);?");

    if (oRegex.test(document.cookie)) {
        return decodeURIComponent(RegExp["$1"]);
    } else {
        createID();
        return getID();
    }
}
function bookmark() {
    document.getElementById("bookmark").setAttribute('href', "javascript:(function () {var d = document;var w = window;var enc = encodeURIComponent;var f = '"+window.location.href+"index.php';var l = d.location;var p = '?shorten=' + enc(l.href) + '&comment=' + enc(d.title) + '&userID="+getID()+"';var u = f + p;var a = function () {if (!w.open(u))l.href = u;};if (/Firefox/.test(navigator.userAgent))setTimeout(a, 0); else a();void(0);})();");
}
document.getElementById("userID").setAttribute('href', "list.php?userID=" + getID());
document.getElementById("userID2").value = getID();
bookmark();

{'fraction_non_alphanumeric': 0.22630480167014613, 'fraction_numerical': 0.02338204592901879, 'mean_word_length': 4.445454545454545, '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': '697508', 'n_tokens_mistral': 856, 'n_tokens_neox': 819, 'n_words': 161}