<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">

 <a4j:outputPanel id="eventStatsPanel">

 <h2><h:outputText value="#{messages['adminsubtab.monitoring.events']}" /></h2>

  <h:outputText value="#{messages['label.monitoring.eventStats']}" />
  
  <div class="evenStatsBloc">
  <ul>
    <li>
      <h:panelGroup rendered="#{eventSyncTrackingEnabled}">
    		<h:form>
    			<h:graphicImage url="/img/state_active.png" title="active" />
    			<h:outputText value=" "/>
    			<h:outputText value="#{messages['label.monitoring.events.synctracking.on']}" />
    			<h:outputText value=" "/>
      		<a4j:commandButton
        		action="#{eventMonitoringAction.disableSyncTracking()}" reRender="eventStatsPanel"
        		value="#{messages['label.monitoring.events.synctracking.switch.off']}"
        		styleClass="button"/>
    		</h:form>
  		</h:panelGroup>
      <h:panelGroup rendered="#{!eventSyncTrackingEnabled}">
    		<h:form>
    			<h:graphicImage url="/img/state_inactive.png" title="inactive" />
    			<h:outputText value=" "/>
    			<h:outputText value="#{messages['label.monitoring.events.synctracking.off']}" />
    			<h:outputText value=" "/>
     		  <a4j:commandButton
       			 action="#{eventMonitoringAction.enableSyncTracking()}" reRender="eventStatsPanel"
       			 value="#{messages['label.monitoring.events.synctracking.switch.on']}"
        		 styleClass="button"/>
    		</h:form>
 			 </h:panelGroup>
    </li>
    <li>
      <h:panelGroup rendered="#{eventAsyncTrackingEnabled}">
    		<h:form>
    			<h:graphicImage url="/img/state_active.png" title="active" />
    			<h:outputText value=" "/>
    			<h:outputText value="#{messages['label.monitoring.events.asynctracking.on']}" />
   			  <h:outputText value=" "/>
     		  <a4j:commandButton
             action="#{eventMonitoringAction.disableAsyncTracking()}" reRender="eventStatsPanel"
       			 value="#{messages['label.monitoring.events.asynctracking.switch.off']}"
       			 styleClass="button"/>
   		  </h:form>
 		  </h:panelGroup>
      <h:panelGroup rendered="#{!eventAsyncTrackingEnabled}">
   		  <h:form>
   			  <h:graphicImage url="/img/state_inactive.png" title="inactive" />
   			  <h:outputText value=" "/>
    		  <h:outputText value="#{messages['label.monitoring.events.asynctracking.off']}" />
   			  <h:outputText value=" "/>
    		  <a4j:commandButton
     			   action="#{eventMonitoringAction.enableAsyncTracking()}" reRender="eventStatsPanel"
      		   value="#{messages['label.monitoring.events.asynctracking.switch.on']}"
      		   styleClass="button"/>
   		  </h:form>
  		 </h:panelGroup>
    </li>
  </ul><commit_msg>Cosmit<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="eventStatsPanel">

 <h2><h:outputText value="#{messages['adminsubtab.monitoring.events']}" /></h2>

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

  <div class="evenStatsBloc">
  <ul>
    <li>
      <h:panelGroup rendered="#{eventSyncTrackingEnabled}">
        <h:form>
          <h:graphicImage url="/img/state_active.png" title="active" />
          <h:outputText value=" "/>
          <h:outputText value="#{messages['label.monitoring.events.synctracking.on']}" />
          <h:outputText value=" "/>
          <a4j:commandButton
            action="#{eventMonitoringAction.disableSyncTracking()}" reRender="eventStatsPanel"
            value="#{messages['label.monitoring.events.synctracking.switch.off']}"
            styleClass="button"/>
        </h:form>
      </h:panelGroup>
      <h:panelGroup rendered="#{!eventSyncTrackingEnabled}">
        <h:form>
          <h:graphicImage url="/img/state_inactive.png" title="inactive" />
          <h:outputText value=" "/>
          <h:outputText value="#{messages['label.monitoring.events.synctracking.off']}" />
          <h:outputText value=" "/>
           <a4j:commandButton
              action="#{eventMonitoringAction.enableSyncTracking()}" reRender="eventStatsPanel"
              value="#{messages['label.monitoring.events.synctracking.switch.on']}"
             styleClass="button"/>
        </h:form>
        </h:panelGroup>
    </li>
    <li>
      <h:panelGroup rendered="#{eventAsyncTrackingEnabled}">
        <h:form>
          <h:graphicImage url="/img/state_active.png" title="active" />
          <h:outputText value=" "/>
          <h:outputText value="#{messages['label.monitoring.events.asynctracking.on']}" />
           <h:outputText value=" "/>
           <a4j:commandButton
             action="#{eventMonitoringAction.disableAsyncTracking()}" reRender="eventStatsPanel"
              value="#{messages['label.monitoring.events.asynctracking.switch.off']}"
              styleClass="button"/>
         </h:form>
       </h:panelGroup>
      <h:panelGroup rendered="#{!eventAsyncTrackingEnabled}">
         <h:form>
           <h:graphicImage url="/img/state_inactive.png" title="inactive" />
           <h:outputText value=" "/>
          <h:outputText value="#{messages['label.monitoring.events.asynctracking.off']}" />
           <h:outputText value=" "/>
          <a4j:commandButton
              action="#{eventMonitoringAction.enableAsyncTracking()}" reRender="eventStatsPanel"
             value="#{messages['label.monitoring.events.asynctracking.switch.on']}"
             styleClass="button"/>
         </h:form>
       </h:panelGroup>
    </li>
  </ul>
{'fraction_non_alphanumeric': 0.18132056106739652, 'fraction_numerical': 0.003079028395484092, 'mean_word_length': 3.123413258110014, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '7595902', 'n_tokens_mistral': 2025, 'n_tokens_neox': 1977, 'n_words': 195}