<commit_before>programs.push({
    name: "Dec / Hex / Bin Converter",
    initiate: function () {
        var dhb = makeWindow("Dec / Hex / Bin Converter", 300, 229);
        var dec = UI.textbox("Decimal:");
        var hex = UI.textbox("Hexadecimal:");
        var bin = UI.textbox("Binary:");
        dhb.content.appendChild(dec.elem);
        dhb.content.appendChild(hex.elem);
        dhb.content.appendChild(bin.elem);
        var bincnv = function () {
            var v;
            if(isNaN(parseInt(bin.input.value, 2))) {
                v = "0";
            } else {
                v = bin.input.value;
            }
            hex.value(parseInt(v, 2).toString(16));
            dec.value(parseInt(v, 2).toString());
        };
        var hexcnv = function () {
            var v;
            if(isNaN(parseInt(hex.input.value, 16))) {
                v = "0";
            } else {
                v = hex.input.value;
            }
            bin.input.value = parseInt(v, 16).toString(2);
            dec.input.value = parseInt(v, 16).toString();
        };
        var deccnv = function () {
            var v;
            if(isNaN(parseInt(dec.input.value))) {
                v = "0";
            } else {
                v = dec.input.value;
            }
            hex.input.value = parseInt(v).toString(16);
            bin.input.value = parseInt(v).toString(2);
            console.log(dec.input.value);
        };
        bin.onchange(bincnv);
        dec.onchange(deccnv);
        hex.onchange(hexcnv);
    }
});
<commit_msg>Remove left-over debugging statement<commit_after>programs.push({
    name: "Dec / Hex / Bin Converter",
    initiate: function () {
        var dhb = makeWindow("Dec / Hex / Bin Converter", 300, 229);
        var dec = UI.textbox("Decimal:");
        var hex = UI.textbox("Hexadecimal:");
        var bin = UI.textbox("Binary:");
        dhb.content.appendChild(dec.elem);
        dhb.content.appendChild(hex.elem);
        dhb.content.appendChild(bin.elem);
        var bincnv = function () {
            var v;
            if(isNaN(parseInt(bin.input.value, 2))) {
                v = "0";
            } else {
                v = bin.input.value;
            }
            hex.value(parseInt(v, 2).toString(16));
            dec.value(parseInt(v, 2).toString());
        };
        var hexcnv = function () {
            var v;
            if(isNaN(parseInt(hex.input.value, 16))) {
                v = "0";
            } else {
                v = hex.input.value;
            }
            bin.input.value = parseInt(v, 16).toString(2);
            dec.input.value = parseInt(v, 16).toString();
        };
        var deccnv = function () {
            var v;
            if(isNaN(parseInt(dec.input.value))) {
                v = "0";
            } else {
                v = dec.input.value;
            }
            hex.input.value = parseInt(v).toString(16);
            bin.input.value = parseInt(v).toString(2);
        };
        bin.onchange(bincnv);
        dec.onchange(deccnv);
        hex.onchange(hexcnv);
    }
});

{'fraction_non_alphanumeric': 0.14784859268845035, 'fraction_numerical': 0.01552895503073439, 'mean_word_length': 1.4289080911233307, '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': '3269708', 'n_tokens_mistral': 981, 'n_tokens_neox': 939, 'n_words': 164}