<commit_before><%page args=""/>
<script type="text/javascript">

    IndicoUI.executeOnLoad(function()
    {
        var startDate = IndicoUI.Widgets.Generic.dateField_sdate(false,null,['sDay', 'sMonth', 'sYear']);
        $E('sDatePlace').set(startDate);

        var endDate = IndicoUI.Widgets.Generic.dateField_edate(false,null,['eDay', 'eMonth', 'eYear']);
        $E('eDatePlace').set(endDate);

        /* In case the date changes, we need to check whether the start date is greater than the end date,
        and if it's so we need to change it */
        startDate.observe(function(value) {
            if ( IndicoUtil.parseDate(startDate.get()) > IndicoUtil.parseDate(endDate.get()) ) {
                endDate.set(startDate.get());
                set_repeatition_comment();
            }
            updateFields();
        });

        endDate.observe(function(value) {
            if ( IndicoUtil.parseDate(startDate.get()) > IndicoUtil.parseDate(endDate.get()) ) {
                startDate.set(endDate.get());
                set_repeatition_comment();
            }
            updateFields();
        });

        $('#sTime, #eTime').on('change', function() {
            updateFields();
        });

        function updateFields() {
            $('#start_date').val('{0}/{1}/{2} {3}'.format($('#sDay').val(), $('#sMonth').val(), $('#sYear').val(), $('#sTime').val()));
            $('#end_date').val('{0}/{1}/{2} {3}'.format($('#eDay').val(), $('#eMonth').val(), $('#eYear').val(), $('#eTime').val()));
        }

        % if startDT.day != '':
            startDate.set('${ startDT.day }/${ startDT.month }/${ startDT.year }');
        % endif

        % if endDT.day != '':
            endDate.set('${ endDT.day }/${ endDT.month }/${ endDT.year }');
        % endif

        updateFields();
     });
</script>
    <tr id="sdatesTR" >
        <td class="subFieldWidth" align="right" > ${ _("Start Date")}&nbsp;&nbsp;</td>
        <td class="blacktext">
            <span id="sDatePlace"></span>
            <input type="hidden" value="${ startDT.day }" name="sDay" id="sDay"/>
            <input type="hidden" value="${ startDT.month }" name="sMonth" id="sMonth"/>
            <input type="hidden" value="${ startDT.year }" name="sYear" id="sYear"/>
        </td>
      </tr>
     <tr id="edatesTR" >
        <td class="subFieldWidth" align="right" >${ _("End Date")}&nbsp;&nbsp;</td>
        <td>
            <span id="eDatePlace"></span>
            <input type="hidden" value="${ endDT.day }" name="eDay" id="eDay"/>
            <input type="hidden" value="${ endDT.month }" name="eMonth" id="eMonth"/>
            <input type="hidden" value="${ endDT.year }" name="eYear" id="eYear"/>
        </td>
    </tr><commit_msg>Fix a missed date=>dt rename<commit_after><%page args=""/>
<script type="text/javascript">

    IndicoUI.executeOnLoad(function()
    {
        var startDate = IndicoUI.Widgets.Generic.dateField_sdate(false,null,['sDay', 'sMonth', 'sYear']);
        $E('sDatePlace').set(startDate);

        var endDate = IndicoUI.Widgets.Generic.dateField_edate(false,null,['eDay', 'eMonth', 'eYear']);
        $E('eDatePlace').set(endDate);

        /* In case the date changes, we need to check whether the start date is greater than the end date,
        and if it's so we need to change it */
        startDate.observe(function(value) {
            if ( IndicoUtil.parseDate(startDate.get()) > IndicoUtil.parseDate(endDate.get()) ) {
                endDate.set(startDate.get());
                set_repeatition_comment();
            }
            updateFields();
        });

        endDate.observe(function(value) {
            if ( IndicoUtil.parseDate(startDate.get()) > IndicoUtil.parseDate(endDate.get()) ) {
                startDate.set(endDate.get());
                set_repeatition_comment();
            }
            updateFields();
        });

        $('#sTime, #eTime').on('change', function() {
            updateFields();
        });

        function updateFields() {
            $('#start_dt').val('{0}/{1}/{2} {3}'.format($('#sDay').val(), $('#sMonth').val(), $('#sYear').val(), $('#sTime').val()));
            $('#end_dt').val('{0}/{1}/{2} {3}'.format($('#eDay').val(), $('#eMonth').val(), $('#eYear').val(), $('#eTime').val()));
        }

        % if startDT.day != '':
            startDate.set('${ startDT.day }/${ startDT.month }/${ startDT.year }');
        % endif

        % if endDT.day != '':
            endDate.set('${ endDT.day }/${ endDT.month }/${ endDT.year }');
        % endif

        updateFields();
     });
</script>
    <tr id="sdatesTR" >
        <td class="subFieldWidth" align="right" > ${ _("Start Date")}&nbsp;&nbsp;</td>
        <td class="blacktext">
            <span id="sDatePlace"></span>
            <input type="hidden" value="${ startDT.day }" name="sDay" id="sDay"/>
            <input type="hidden" value="${ startDT.month }" name="sMonth" id="sMonth"/>
            <input type="hidden" value="${ startDT.year }" name="sYear" id="sYear"/>
        </td>
      </tr>
     <tr id="edatesTR" >
        <td class="subFieldWidth" align="right" >${ _("End Date")}&nbsp;&nbsp;</td>
        <td>
            <span id="eDatePlace"></span>
            <input type="hidden" value="${ endDT.day }" name="eDay" id="eDay"/>
            <input type="hidden" value="${ endDT.month }" name="eMonth" id="eMonth"/>
            <input type="hidden" value="${ endDT.year }" name="eYear" id="eYear"/>
        </td>
    </tr>
{'fraction_non_alphanumeric': 0.211961461552445, 'fraction_numerical': 0.0029085620796218867, 'mean_word_length': 2.3775322283609577, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 58, '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': '7485342', 'n_tokens_mistral': 1729, 'n_tokens_neox': 1709, 'n_words': 307}