<commit_before><%@ include file="/WEB-INF/template/include.jsp"%>
<%@ include file="/WEB-INF/template/header.jsp"%>

<%@ include file="template/localHeader.jsp"%>

<script type="text/javascript">
    jQuery(document).ready(function($) {
        $("#editReportingReportMapping").click( function() {
            document.getElementById("reportinReportMappingValue").innerHTML =document.getElementById("reportingReportsList").innerHTML;
            $("#editReportingReportMapping").hide();
            $("#saveReportingReportMapping").show();
        });
        $("#saveReportingReportMapping").click( function() {
            $.post("${pageContext.request.contextPath}/module/dhisreport/mapReports.form",{reportDefinition_id: document.getElementById("reportDefinitionId").value,reportmoduledefinitions: document.getElementById("reportmoduledefinitions").value});
            setTimeout(function(){
                window.location.reload();
            }, 1000);
        });

    });
</script>

<form>
    <table style="width: 70%">
        <thead style="background-color: #1AAC9B; color: white; padding: 2px;">
        <tr>
            <td><spring:message code="dhisreport.mappingDHISHeader" /></td>
            <td><spring:message code="dhisreport.mappingReportingHeader" /></td>
            <td><spring:message code="dhisreport.action" /></td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <input id="reportDefinitionId" value="${reportDefinition.id}" hidden>
            <td>${reportDefinition.name}</td>
            <td>
                <span id="reportinReportMappingValue"> ${correspondingReportDefinition.name}</span>
            </td>
            <td><a
                    id="editReportingReportMapping" style="cursor: pointer;"><img
                    src="<c:url value='/images/edit.gif'/>" border="0"
                    title='<spring:message code="dhisreport.editReportMapping"/>'/></a><a
                    id="saveReportingReportMapping" style="display: none; cursor: pointer;"><spring:message code="dhisreport.dhis2saveButton" /></a>
                <span id="reportingReportsList" style="display: none;">
                <select id="reportmoduledefinitions" name="reportmoduledefinitions">
                    <c:forEach items="${definitionSummaries}" var="r">
                        <c:choose>
                            <c:when test="${r.uuid == correspondingReportDefinition.uuid}">
                                <option selected value="${r.uuid}"> ${r.name}
                                </option>
                            </c:when>
                            <c:otherwise>
                                <option value="${r.uuid}"> ${r.name}
                                </option>
                            </c:otherwise>
                        </c:choose>
                    </c:forEach>
                </select>
                </span>
            </td>
        </tr>
        </tbody>
    </table>
    <br>
    <br>
    <c:if test="${not empty correspondingReportDefinition}">
        <div id="openmrs_msg"><spring:message code="dhisreport.mappingReportInformation" /> </div>
    </c:if>
    <br>
    <br>
    <div  style="float: left; width: 49%;">
        <b class="boxHeader"><spring:message code="dhisreport.mappingDHISTableHeader" /></b>
        <div class="box">
            <table cellspacing="0" cellpadding="2" style="width: 100%;">
                <tbody>
                <tr>
                    <th>[<spring:message code="dhisreport.dataElement" />]
                    </th>
                    <th>[<spring:message code="dhisreport.dataElement" />]
                    </th>

                    <th>[<spring:message code="dhisreport.disaggregationName" />]
                    </th>
                </tr>
                <c:forEach var="dataValueTemplate" varStatus="varStatus"
                           items="${reportDefinition.dataValueTemplates}">
                    <tr class='${varStatus.index % 2 == 0 ? "oddRow" : "evenRow" }'>
                        <td>${varStatus.index +1}</td>
                        <td>${dataValueTemplate.dataelement.name}</td>

                        <td>${dataValueTemplate.disaggregation.name}</td>

                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <c:if test="${not empty correspondingReportDefinition}">
        <div  style="float: Right; width: 49%;">
            <b class="boxHeader"><spring:message code="dhisreport.mappingReportingTableHeader" /></b>
            <div class="box" >
                <table cellspacing="0" cellpadding="2" style="width: 100%;">
                    <tbody>
                    <tr>
                        <th>[<spring:message code="dhisreport.indicatorOrder" />]
                        </th>
                        <th>[<spring:message code="dhisreport.label" />]
                        </th>

                        <th>[<spring:message code="dhisreport.label" />]
                        </th>
                    </tr>
                    <c:forEach var="col" varStatus="varStatus"
                               items="${reportingReportDefinitionReport.indicatorDataSetDefinition.columns}">
                        <tr class='${varStatus.index % 2 == 0 ? "oddRow" : "evenRow" }'>
                            <td>${varStatus.index +1}</td>
                            <td>${col.label}</td>
                            <td>${col.indicator.parameterizable.name}</td>
                        </tr>
                    </c:forEach>
                    </tbody><commit_msg>minor label text changes in the UI<commit_after><%@ include file="/WEB-INF/template/include.jsp"%>
<%@ include file="/WEB-INF/template/header.jsp"%>

<%@ include file="template/localHeader.jsp"%>

<script type="text/javascript">
    jQuery(document).ready(function($) {
        $("#editReportingReportMapping").click( function() {
            document.getElementById("reportinReportMappingValue").innerHTML =document.getElementById("reportingReportsList").innerHTML;
            $("#editReportingReportMapping").hide();
            $("#saveReportingReportMapping").show();
        });
        $("#saveReportingReportMapping").click( function() {
            $.post("${pageContext.request.contextPath}/module/dhisreport/mapReports.form",{reportDefinition_id: document.getElementById("reportDefinitionId").value,reportmoduledefinitions: document.getElementById("reportmoduledefinitions").value});
            setTimeout(function(){
                window.location.reload();
            }, 1000);
        });

    });
</script>

<form>
    <table style="width: 70%">
        <thead style="background-color: #1AAC9B; color: white; padding: 2px;">
        <tr>
            <td><spring:message code="dhisreport.mappingDHISHeader" /></td>
            <td><spring:message code="dhisreport.mappingReportingHeader" /></td>
            <td><spring:message code="dhisreport.action" /></td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <input id="reportDefinitionId" value="${reportDefinition.id}" hidden>
            <td>${reportDefinition.name}</td>
            <td>
                <span id="reportinReportMappingValue"> ${correspondingReportDefinition.name}</span>
            </td>
            <td><a
                    id="editReportingReportMapping" style="cursor: pointer;"><img
                    src="<c:url value='/images/edit.gif'/>" border="0"
                    title='<spring:message code="dhisreport.editReportMapping"/>'/></a><a
                    id="saveReportingReportMapping" style="display: none; cursor: pointer;"><spring:message code="dhisreport.dhis2saveButton" /></a>
                <span id="reportingReportsList" style="display: none;">
                <select id="reportmoduledefinitions" name="reportmoduledefinitions">
                    <c:forEach items="${definitionSummaries}" var="r">
                        <c:choose>
                            <c:when test="${r.uuid == correspondingReportDefinition.uuid}">
                                <option selected value="${r.uuid}"> ${r.name}
                                </option>
                            </c:when>
                            <c:otherwise>
                                <option value="${r.uuid}"> ${r.name}
                                </option>
                            </c:otherwise>
                        </c:choose>
                    </c:forEach>
                </select>
                </span>
            </td>
        </tr>
        </tbody>
    </table>
    <br>
    <br>
    <c:if test="${not empty correspondingReportDefinition}">
        <div id="openmrs_msg"><spring:message code="dhisreport.mappingReportInformation" /> </div>
    </c:if>
    <br>
    <br>
    <div  style="float: left; width: 49%;">
        <b class="boxHeader"><spring:message code="dhisreport.mappingDHISTableHeader" /></b>
        <div class="box">
            <table cellspacing="0" cellpadding="2" style="width: 100%;">
                <tbody>
                <tr>
                    <th>[<spring:message code="dhisreport.dataElementOrder" />]
                    </th>
                    <th>[<spring:message code="dhisreport.dataElement" />]
                    </th>

                    <th>[<spring:message code="dhisreport.disaggregationName" />]
                    </th>
                </tr>
                <c:forEach var="dataValueTemplate" varStatus="varStatus"
                           items="${reportDefinition.dataValueTemplates}">
                    <tr class='${varStatus.index % 2 == 0 ? "oddRow" : "evenRow" }'>
                        <td>${varStatus.index +1}</td>
                        <td>${dataValueTemplate.dataelement.name}</td>

                        <td>${dataValueTemplate.disaggregation.name}</td>

                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <c:if test="${not empty correspondingReportDefinition}">
        <div  style="float: Right; width: 49%;">
            <b class="boxHeader"><spring:message code="dhisreport.mappingReportingTableHeader" /></b>
            <div class="box" >
                <table cellspacing="0" cellpadding="2" style="width: 100%;">
                    <tbody>
                    <tr>
                        <th>[<spring:message code="dhisreport.indicatorOrder" />]
                        </th>
                        <th>[<spring:message code="dhisreport.label" />]
                        </th>

                        <th>[<spring:message code="dhisreport.indicator" />]
                        </th>
                    </tr>
                    <c:forEach var="col" varStatus="varStatus"
                               items="${reportingReportDefinitionReport.indicatorDataSetDefinition.columns}">
                        <tr class='${varStatus.index % 2 == 0 ? "oddRow" : "evenRow" }'>
                            <td>${varStatus.index +1}</td>
                            <td>${col.label}</td>
                            <td>${col.indicator.parameterizable.name}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
{'fraction_non_alphanumeric': 0.1526175687666371, 'fraction_numerical': 0.005501330967169477, 'mean_word_length': 1.6563752062220127, 'pattern_counts': {'":': 0, '<': 261, '<?xml version=': 0, '>': 261, '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': '3934547', 'n_tokens_mistral': 3073, 'n_tokens_neox': 2869, 'n_words': 445}