<commit_before><script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery("#set_rounds").click(function () {
        changeReviewRounds();
        event.preventDefault(); // Prevent link from following its href
    });
    });

    function addDueDateTableElement(addnameurl,deadline_type, round_no, due_date) {
//round_no = 0 for submission and review is not possible
//round_no = 0 is used for other deadlines
        var previous_element;
        if (round_no == 0) {
            previous_element = jQuery('#due_dates_table>tbody>tr:not(#due_date_heading)').last();
            element_id = deadline_type;
            if (jQuery('#' + element_id).length != 0) {
                return
            }
        }
        else {
            if (deadline_type == 'submission') {
                if (round_no == 1) {
                    previous_element = jQuery('#due_date_heading');
                } else {
                    previous_element = jQuery('#review_round_' + (round_no - 1));
                }
            }
            else if (deadline_type == 'review') {
                previous_element = jQuery('#submission_round_' + round_no);
            }
            else {
                console.log('error: addDueDateTableElement');
            }
            element_id = deadline_type + '_round_' + round_no;
            if (jQuery('#' + element_id).length != 0) {
                return
            }
        }
        if (previous_element.length == 0) {
            return
        }

        var html = '<tr id=' + element_id + '>';

        var id = due_date.id
        if(id == null){
            id='';
        }
        html +=
                '<input name="assignment_form[due_date][][id]" type="hidden" value="' + id +'">';

        html += '<input class="due_date_assignment_id" name="assignment_form[due_date][][assignment_id]" type="hidden" value="' + <%= @assignment_form.assignment.id %> + '">' +
        '<input class="due_date_round" name="assignment_form[due_date][][round]" type="hidden" value="' + round_no + '">' +
        '<input class="due_date_deadline_type_id" name="assignment_form[due_date][][deadline_type_id]" type="hidden" value="' + due_date.deadline_type_id + '">';

        html += '<td class="due_date_name" width="15%">';
        if (round_no != 0) {
            html += 'Round ' + round_no + ': ' + deadline_type.capitalize();
        } else {
            html += deadline_type.replace("_", " ").capitalize();
        }
        html += '</td>';
        var due_at = due_date.due_at;
        if (due_at == null) {
            due_at = '';
        }
        else{
            var tzone = due_at.substr(23,6);
            if(tzone=='Z'){
                tzone = '+00:00';
            }
            var timezone = "(GMT"+tzone.toString()+")";
            due_at = due_at.substr(0,4)+'/'+due_at.substr(5,2)+'/'+due_at.substr(8,2)+' '+due_at.substr(11,2)+':'+due_at.substr(14,2)+' '+timezone;
        }<commit_msg>Changed due date timezone from GMT to UTC<commit_after><script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery("#set_rounds").click(function () {
        changeReviewRounds();
        event.preventDefault(); // Prevent link from following its href
    });
    });

    function addDueDateTableElement(addnameurl,deadline_type, round_no, due_date) {
//round_no = 0 for submission and review is not possible
//round_no = 0 is used for other deadlines
        var previous_element;
        if (round_no == 0) {
            previous_element = jQuery('#due_dates_table>tbody>tr:not(#due_date_heading)').last();
            element_id = deadline_type;
            if (jQuery('#' + element_id).length != 0) {
                return
            }
        }
        else {
            if (deadline_type == 'submission') {
                if (round_no == 1) {
                    previous_element = jQuery('#due_date_heading');
                } else {
                    previous_element = jQuery('#review_round_' + (round_no - 1));
                }
            }
            else if (deadline_type == 'review') {
                previous_element = jQuery('#submission_round_' + round_no);
            }
            else {
                console.log('error: addDueDateTableElement');
            }
            element_id = deadline_type + '_round_' + round_no;
            if (jQuery('#' + element_id).length != 0) {
                return
            }
        }
        if (previous_element.length == 0) {
            return
        }

        var html = '<tr id=' + element_id + '>';

        var id = due_date.id
        if(id == null){
            id='';
        }
        html +=
                '<input name="assignment_form[due_date][][id]" type="hidden" value="' + id +'">';

        html += '<input class="due_date_assignment_id" name="assignment_form[due_date][][assignment_id]" type="hidden" value="' + <%= @assignment_form.assignment.id %> + '">' +
        '<input class="due_date_round" name="assignment_form[due_date][][round]" type="hidden" value="' + round_no + '">' +
        '<input class="due_date_deadline_type_id" name="assignment_form[due_date][][deadline_type_id]" type="hidden" value="' + due_date.deadline_type_id + '">';

        html += '<td class="due_date_name" width="15%">';
        if (round_no != 0) {
            html += 'Round ' + round_no + ': ' + deadline_type.capitalize();
        } else {
            html += deadline_type.replace("_", " ").capitalize();
        }
        html += '</td>';
        var due_at = due_date.due_at;
        if (due_at == null) {
            due_at = '';
        }
        else{
            var tzone = due_at.substr(23,6);
            if(tzone=='Z'){
                tzone = '+00:00';
            }
            var timezone = "(UTC "+tzone.toString()+")";
            due_at = due_at.substr(0,4)+'/'+due_at.substr(5,2)+'/'+due_at.substr(8,2)+' '+due_at.substr(11,2)+':'+due_at.substr(14,2)+' '+timezone;
        }
{'fraction_non_alphanumeric': 0.15721692590734238, 'fraction_numerical': 0.010035122930255895, 'mean_word_length': 2.000501756146513, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, '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': '3009155', 'n_tokens_mistral': 1899, 'n_tokens_neox': 1788, 'n_words': 322}