<commit_before><!DOCTYPE html>
<html>
<body>
<h2 id="text1">Counter: 0</h2>
<button type="button" id="button1">Counter ++</button>
<h2 id="text2">Counter: 0</h2>
<button type="button" id="button2">Counter ++</button>
<h2 id="text3">Counter: 0</h2>
<button type="button" id="button3">Counter ++</button>
<script>
(function() {
    function makeCounter() {
        var count = 0;
        return function() {
            count = count + 1;
            return count;
        }
    }

    function setupCounter(index) {
        var button = document.getElementById("button" + index);
        var text = document.getElementById("text" + index);
        var counter = makeCounter();
        button.onclick = function main() {
            text.innerHTML = "Counter: " + counter();
        }
    }

    for( var i : [1,2,3] ) {
        setupCounter(i);
    }
    //    setupCounter(1);
    //    setupCounter(2);
    //    setupCounter(3);
})();
</script>
</body>
</html><commit_msg>bug fix<commit_after><!DOCTYPE html>
<html>
<body>
<h2 id="text1">Counter: 0</h2>
<button type="button" id="button1">Counter ++</button>
<h2 id="text2">Counter: 0</h2>
<button type="button" id="button2">Counter ++</button>
<h2 id="text3">Counter: 0</h2>
<button type="button" id="button3">Counter ++</button>
<script>
(function() {
    function makeCounter() {
        var count = 0;
        return function() {
            count = count + 1;
            return count;
        }
    }

    function setupCounter(index) {
        var button = document.getElementById("button" + index);
        var text = document.getElementById("text" + index);
        var counter = makeCounter();
        button.onclick = function main() {
            text.innerHTML = "Counter: " + counter();
        }
    }

    setupCounter(1);
    setupCounter(2);
    setupCounter(3);
})();
</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.1791845493562232, 'fraction_numerical': 0.023068669527896997, 'mean_word_length': 2.722554890219561, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '66722', 'n_tokens_mistral': 607, 'n_tokens_neox': 588, 'n_words': 133}