<commit_before>var forEach = Array.prototype.forEach;
var $status;
var counter = 0;

function handleClick(event) {
    var more = false;
    if(event.shiftKey) {
        more = true;
    }

    if(counter > 0) {
        $status.innerHTML += '<img src="' + event.target.src + '" />'
    } else {
        $status.innerHTML = '<img src="' + event.target.src + '" />'
    }
    counter++;

    if(!more) {
        copyStatus();
    } else {
        showButtons();
    }
}

function copyStatus() {
    var range = document.createRange();
    range.selectNodeContents($status);  
    window.getSelection().addRange(range);  

    try {  
        var successful = document.execCommand('copy');  
        var msg = successful ? 'successful' : 'unsuccessful';  
    } catch(err) {  
    } 
<commit_msg>Fixed #2<commit_after>var forEach = Array.prototype.forEach;
var $status;
var counter = 0;

function handleClick(event) {
    var more = false;
    if(event.shiftKey) {
        more = true;
    }

    if(counter > 0) {
        $status.innerHTML += '<img src="' + event.target.src + '" style="background-color: transparent"/>'
    } else {
        $status.innerHTML = '<img src="' + event.target.src + '" style="background-color: transparent"/>'
    }
    counter++;

    if(!more) {
        copyStatus();
    } else {
        showButtons();
    }
}

function copyStatus() {
    var range = document.createRange();
    range.selectNodeContents($status);  
    window.getSelection().addRange(range);  

    try {  
        var successful = document.execCommand('copy');  
        var msg = successful ? 'successful' : 'unsuccessful';  
    } catch(err) {  
    } 

{'fraction_non_alphanumeric': 0.15528700906344411, 'fraction_numerical': 0.0030211480362537764, 'mean_word_length': 2.4074074074074074, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4835356', 'n_tokens_mistral': 517, 'n_tokens_neox': 507, 'n_words': 103}