<commit_before><script type="text/javascript">
    
    function duplicateItem(container) {
        $(container.concat(' div:first-child')).clone().appendTo(container);
        $(container.concat(' div:last-child input')).each(function() {
           this.value = ''; 
        });
        checkForHidden();
        
        $(container.concat(' div:first-child')).css('background-color', 'red');
        $(container.concat(' div:last-child')).css('background-color', 'blue');
        
    }
    
    function checkForHidden() {
        var style;
        if ($('.remote_strip_inputs').length > 1) {
            style = 'visible';  
        } else {
            style = 'hidden';
        }
        <commit_msg>Update ids on clone<commit_after><script type="text/javascript">
    
    var index = 0;
    
    function duplicateItem(container) {
        var new_inputs = $(container.concat(' div:first-child')).clone();
        var new_id = new_inputs.find(':file').attr('id').concat(index++);
        new_inputs.find(':file').attr('id', new_id);
        new_inputs.find('span label:first-child').attr('for', new_id);
        new_inputs.appendTo(container);
        $(container.concat(' div:last-child input')).each(function() {
           this.value = ''; 
        });
        checkForHidden();
        
        $(container.concat(' div:first-child')).css('background-color', 'red');
        $(container.concat(' div:last-child')).css('background-color', 'blue');
        
    }
    
    function checkForHidden() {
        var style;
        if ($('.remote_strip_inputs').length > 1) {
            style = 'visible';  
        } else {
            style = 'hidden';
        }
        
{'fraction_non_alphanumeric': 0.1740938799762329, 'fraction_numerical': 0.0017825311942959, 'mean_word_length': 2.2015209125475286, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3723336', 'n_tokens_mistral': 472, 'n_tokens_neox': 474, 'n_words': 75}