<commit_before><div xmlns:h="http://java.sun.com/jsf/html"
  xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxd="http://nuxeo.org/nxweb/document"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:f="http://java.sun.com/jsf/core">

<br/>

<a4j:outputPanel id="admStatusPanel" ajaxRendered="true">

 <h:panelGroup rendered="#{isMultiServerInstallation}">
  <h:outputText value="#{messages['label.monitoring.multiserver']}" /><br/>
  <h:outputText value="#{messages['label.monitoring.instanceList']}" /><br/>
  <nxu:repeat var="serverName" value="#{monitoringAction.listNuxeoInstances()}">
   <h:outputText value="#{serverName}" /> <br/>
  </nxu:repeat>
 </h:panelGroup>

 <h:panelGroup rendered="#{!isMultiServerInstallation}">
  <h:outputText value="#{messages['label.monitoring.monoserver']}" /><br/>
 </h:panelGroup>

 <br/>

  <h:dataTable var="status" value="#{monitoringAction.getAdministrativeStatuses()}" class="dataOutput" rendered="#{monitoringAction.editableStatus==null}">
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{messages['label.monitoring.status.label']}" />
      </f:facet>
      <h:outputText value="#{status.label}" />
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.state']}" />
      </f:facet>
       <h:graphicImage url="/img/state_active.png"
    alt="#{status.state}"  title="#{status.state}" rendered="#{status.isActive()}"/>
       <h:graphicImage url="/img/state_inactive.png"
    alt="#{status.state}" title="#{status.state}" rendered="#{!status.isActive()}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.message']}" />
      </f:facet>
      <h:outputText value="#{status.message}" />
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.description']}" />
      </f:facet>
      <h:outputText value="#{status.description}" />
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.action']}" />
      </f:facet>

     <a4j:form>
        <a4j:commandButton  value="#{messages['action.monitoring.edit']}" action="#{monitoringAction.editStatus()}" reRender="admStatusPanel" styleClass="button">
            <f:param name="serviceIdentifier" value="#{status.serviceIdentifier}" />
        </a4j:commandButton>
     </a4j:form>

    </h:column>
  </h:dataTable>

  <h:panelGroup rendered="#{monitoringAction.editableStatus!=null}">
    <h:form>
      <h:outputText value="#{messages['label.monitoring.status.currentState']}" />
      <table class="dataOutput">
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.label']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.label}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.state']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.state}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.description']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.description}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.lastUpdate']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.modificationDate.time}">
                  <f:convertDateTime type="both" dateStyle="short" timeStyle="short"/>
                </h:outputText>
            </td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.login']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.userLogin}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.message']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.message}"/></td>
        </tr>

      </table>

      <br/><hr/><br/>

      <h:outputText value="#{messages['label.monitoring.status.newState']}" />

      <table class="dataInput">
        <tr>
            <td><h:outputText value="#{messages['label.monitoring.status.message']}"/></td>
            <td><h:inputText value="#{monitoringAction.newStatusMessage}" size="100"/></td>
        </tr>
        <tr>
            <td><h:outputText value="#{messages['label.monitoring.status.state']}" /></td>
            <td>
              <h:selectOneListbox class="dataInputText" size="1" value="#{monitoringAction.newStatusValue}">
                    <f:selectItem itemValue = "active" itemLabel = "#{messages['label.status.active']}"/>
                    <f:selectItem itemValue = "passive" itemLabel = "#{messages['label.status.passive']}"/>
             </h:selectOneListbox>
            </td>
        </tr>
      </table>

      <a4j:commandButton  value="#{messages['action.monitoring.save']}" action="#{monitoringAction.saveStatus()}" reRender="admStatusPanel" styleClass="button" />
      <a4j:commandButton  value="#{messages['action.monitoring.cancel']}" action="#{monitoringAction.cancelEdit()}" reRender="admStatusPanel" styleClass="button" />

    </h:form>
  </h:panelGroup>
</a4j:outputPanel>

</div><commit_msg>NXP-9435: Remove unnecessary br tag<commit_after><div xmlns:h="http://java.sun.com/jsf/html"
  xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxd="http://nuxeo.org/nxweb/document"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:f="http://java.sun.com/jsf/core">

<a4j:outputPanel id="admStatusPanel" ajaxRendered="true">

 <h:panelGroup rendered="#{isMultiServerInstallation}">
  <h:outputText value="#{messages['label.monitoring.multiserver']}" /><br/>
  <h:outputText value="#{messages['label.monitoring.instanceList']}" /><br/>
  <nxu:repeat var="serverName" value="#{monitoringAction.listNuxeoInstances()}">
   <h:outputText value="#{serverName}" /> <br/>
  </nxu:repeat>
 </h:panelGroup>

 <h:panelGroup rendered="#{!isMultiServerInstallation}">
  <h:outputText value="#{messages['label.monitoring.monoserver']}" /><br/>
 </h:panelGroup>

 <br/>

  <h:dataTable var="status" value="#{monitoringAction.getAdministrativeStatuses()}" class="dataOutput" rendered="#{monitoringAction.editableStatus==null}">
    <h:column>
      <f:facet name="header">
        <h:outputText value="#{messages['label.monitoring.status.label']}" />
      </f:facet>
      <h:outputText value="#{status.label}" />
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.state']}" />
      </f:facet>
       <h:graphicImage url="/img/state_active.png"
    alt="#{status.state}"  title="#{status.state}" rendered="#{status.isActive()}"/>
       <h:graphicImage url="/img/state_inactive.png"
    alt="#{status.state}" title="#{status.state}" rendered="#{!status.isActive()}"/>
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.message']}" />
      </f:facet>
      <h:outputText value="#{status.message}" />
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.description']}" />
      </f:facet>
      <h:outputText value="#{status.description}" />
    </h:column>
    <h:column>
      <f:facet name="header">
      <h:outputText value="#{messages['label.monitoring.status.action']}" />
      </f:facet>

     <a4j:form>
        <a4j:commandButton  value="#{messages['action.monitoring.edit']}" action="#{monitoringAction.editStatus()}" reRender="admStatusPanel" styleClass="button">
            <f:param name="serviceIdentifier" value="#{status.serviceIdentifier}" />
        </a4j:commandButton>
     </a4j:form>

    </h:column>
  </h:dataTable>

  <h:panelGroup rendered="#{monitoringAction.editableStatus!=null}">
    <h:form>
      <h:outputText value="#{messages['label.monitoring.status.currentState']}" />
      <table class="dataOutput">
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.label']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.label}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.state']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.state}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.description']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.description}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.lastUpdate']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.modificationDate.time}">
                  <f:convertDateTime type="both" dateStyle="short" timeStyle="short"/>
                </h:outputText>
            </td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.login']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.userLogin}"/></td>
        </tr>
        <tr><td class="labelColumn"><h:outputText value="#{messages['label.monitoring.status.message']}" /></td>
            <td><h:outputText value="#{monitoringAction.editableStatus.message}"/></td>
        </tr>

      </table>

      <br/><hr/><br/>

      <h:outputText value="#{messages['label.monitoring.status.newState']}" />

      <table class="dataInput">
        <tr>
            <td><h:outputText value="#{messages['label.monitoring.status.message']}"/></td>
            <td><h:inputText value="#{monitoringAction.newStatusMessage}" size="100"/></td>
        </tr>
        <tr>
            <td><h:outputText value="#{messages['label.monitoring.status.state']}" /></td>
            <td>
              <h:selectOneListbox class="dataInputText" size="1" value="#{monitoringAction.newStatusValue}">
                    <f:selectItem itemValue = "active" itemLabel = "#{messages['label.status.active']}"/>
                    <f:selectItem itemValue = "passive" itemLabel = "#{messages['label.status.passive']}"/>
             </h:selectOneListbox>
            </td>
        </tr>
      </table>

      <a4j:commandButton  value="#{messages['action.monitoring.save']}" action="#{monitoringAction.saveStatus()}" reRender="admStatusPanel" styleClass="button" />
      <a4j:commandButton  value="#{messages['action.monitoring.cancel']}" action="#{monitoringAction.cancelEdit()}" reRender="admStatusPanel" styleClass="button" />

    </h:form>
  </h:panelGroup>
</a4j:outputPanel>

</div>
{'fraction_non_alphanumeric': 0.20756432402945724, 'fraction_numerical': 0.002909355395945086, 'mean_word_length': 3.772234273318872, 'pattern_counts': {'":': 0, '<': 284, '<?xml version=': 0, '>': 284, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '4236364', 'n_tokens_mistral': 3617, 'n_tokens_neox': 3541, 'n_words': 416}