<commit_before>$(document).ready(function(){
   cbsubmit();
   hideandshow();
   confirmDelete();
   addDatepicker();
});

function cbsubmit() {
   $('.cbauto').each(function(index ) {
       var combobox = $(this);
       var button = combobox.siblings('.cbbutton').first();

       combobox.change(function() {
           button.click();
       });
       button.hide();
   })
};


function hideandshow() {
   $('.cbhideandshow').each(function(index ) {
       var combobox = $(this);
       var id = combobox.attr("id")
       var showClass = combobox.attr("data-class-show")
       var oldValue = combobox.val();
       $('#'+id + oldValue).removeClass("hide").addClass(showClass);
       combobox.change(function() {
           $('#'+id + oldValue).addClass("hide").removeClass(showClass);
           oldValue = combobox.val();
           $('#'+id + oldValue).removeClass("hide").addClass(showClass);
       });
   })
};

function confirmDelete() {
    $('button .delete').each(function(index) {
        var myBtn = $(this).parent().get(0)
        myBtn.addEventListener('click',function(event) {
          if(!confirm('Wollen Sie wirklich löschen?'))
               event.preventDefault();;
        })
    })
}

function addDatepicker() {
$(function() {<commit_msg>Löschen jetzt unabhängig vom Typ Button<commit_after>$(document).ready(function(){
   cbsubmit();
   hideandshow();
   confirmDelete();
   addDatepicker();
});

function cbsubmit() {
   $('.cbauto').each(function(index ) {
       var combobox = $(this);
       var button = combobox.siblings('.cbbutton').first();

       combobox.change(function() {
           button.click();
       });
       button.hide();
   })
};


function hideandshow() {
   $('.cbhideandshow').each(function(index ) {
       var combobox = $(this);
       var id = combobox.attr("id")
       var showClass = combobox.attr("data-class-show")
       var oldValue = combobox.val();
       $('#'+id + oldValue).removeClass("hide").addClass(showClass);
       combobox.change(function() {
           $('#'+id + oldValue).addClass("hide").removeClass(showClass);
           oldValue = combobox.val();
           $('#'+id + oldValue).removeClass("hide").addClass(showClass);
       });
   })
};

function confirmDelete() {
    $('.btn .delete').each(function(index) {
        var myBtn = $(this).parent().get(0)
        myBtn.addEventListener('click',function(event) {
          if(!confirm('Wollen Sie wirklich löschen?'))
               event.preventDefault();;
        })
    })
}

function addDatepicker() {
$(function() {
{'fraction_non_alphanumeric': 0.18745128604832423, 'fraction_numerical': 0.000779423226812159, 'mean_word_length': 2.791728212703102, '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': '4105838', 'n_tokens_mistral': 771, 'n_tokens_neox': 768, 'n_words': 119}