<commit_before>// Datepickers
$('.table-bioinfo-status').on('focus', '.input-group.date input', function(e) {
    if ($('.table-bioinfo-status').hasClass('bioinfo-status-disabled')) {
        return false;
    }
    e.preventDefault();
    e.stopImmediatePropagation();
    $(this).datepicker({
        format: "yyyy-mm-dd",
        todayHighlight: true
    });
});

$('.table-bioinfo-status').on('click', '.datepicker-today', function(e) {
    if ($('.table-bioinfo-status').hasClass('bioinfo-status-disabled')) {
        return false;
    }
    e.preventDefault();
    e.stopImmediatePropagation();
    var isdisabled = $(this).closest('tr').hasClass('bioinfo-status-disabled');
    if(!isdisabled){
      var today = formatDateTime(new Date(), false);
      $(this).prevAll("input:first").val(today);
    }
});

// expand or collapse table
$('.bioinfo-expand').click(function(e){
    // this = a[href=#$(tr).attr('id')];
    e.preventDefault();
    e.stopImmediatePropagation();
    tr = $(this).parent().parent();
    if ($(tr).hasClass('bioinfo-project')) {
        collapseAll(this);
        return false;<commit_msg>Bioinfo tab: update all the levels when set delivery date (today)<commit_after>// Datepickers
$('.table-bioinfo-status').on('focus', '.input-group.date input', function(e) {
    if ($('.table-bioinfo-status').hasClass('bioinfo-status-disabled')) {
        return false;
    }
    e.preventDefault();
    e.stopImmediatePropagation();
    $(this).datepicker({
        format: "yyyy-mm-dd",
        todayHighlight: true
    });
});

$('.table-bioinfo-status').on('click', '.datepicker-today', function(e) {
    if ($('.table-bioinfo-status').hasClass('bioinfo-status-disabled')) {
        return false;
    }
    e.preventDefault();
    e.stopImmediatePropagation();
    var isdisabled = $(this).closest('tr').hasClass('bioinfo-status-disabled');
    if(!isdisabled){
      var today = formatDateTime(new Date(), false);
      $(this).prevAll("input:first").val(today);
    }
    // set values to upper and lower levels
    var date_td = $(this).closest('td.datadelivered');
    var child_tds = getChildTds(date_td);
    $.each(child_tds, function(i, td){
        // do not change if disabled
        if (!$(td).parent().hasClass('bioinfo-status-disabled')) {
            $(td).find('input:text').val(today);
        }
    });
    setParentDate(date_td);
});

// expand or collapse table
$('.bioinfo-expand').click(function(e){
    // this = a[href=#$(tr).attr('id')];
    e.preventDefault();
    e.stopImmediatePropagation();
    tr = $(this).parent().parent();
    if ($(tr).hasClass('bioinfo-project')) {
        collapseAll(this);
        return false;
{'fraction_non_alphanumeric': 0.19910347403810236, 'fraction_numerical': 0.0, 'mean_word_length': 3.2643312101910826, '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': '3846051', 'n_tokens_mistral': 844, 'n_tokens_neox': 833, 'n_words': 138}