<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:rich="http://richfaces.org/rich"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  xmlns:s="http://jboss.org/schema/seam/taglib">

<ui:composition template="../WEB-INF/template/template_2x.xhtml">
  <!-- disabled since it doesn't create the HPerson to go with the HAccount
      <ui:define name="right_content">
          <s:link action="#{userAction.createUser}"
            rendered="#{s:hasPermission('seam.account', 'create')}"
            value="#{messages['jsf.CreateNewUser']}"/>
      </ui:define>
   -->

  <ui:define name="page_title">#{messages['jsf.ManageUsers']}</ui:define>
  <ui:define name="center_content">
    <script type="text/javascript">
      function confirmDelete() {
        return confirm("#{messages['jsf.AreYouSureYouWishToDeleteThisUserThisActionCannotBeUndone']}");
      }

      function focusUserFilterInput() {
        #{rich:element('username_filter_input')}
      .
        focus();
      }
    </script>
    <a4j:jsFunction name="editUser" action="#{userAction.editUser(username)}">
      <a4j:param name="val1" assignTo="#{username}"/>
    </a4j:jsFunction>
    <a4j:jsFunction name="deleteUser" action="#{userAction.deleteUser(username)}" render="usermanagerForm">
      <a4j:param name="val1" assignTo="#{username}"/>
    </a4j:jsFunction>

    <h:form id="usermanagerForm">
      <s:token allowMultiplePosts="true"/>

      <div style="text-align: center">
        <rich:dataScroller renderIfSinglePage="false" for="userList"
          maxPages="100" page="#{userAction.userPagedListDataModel.scrollerPage}"
          id="scroller" fastControls="hide" render="scroller2" >
          <f:facet name="first">
            <h:outputText value="" styleClass="icon-to-start"/>
          </f:facet>
          <f:facet name="previous">
            <h:outputText value="" styleClass="icon-left-open"/>
          </f:facet>
          <f:facet name="next">
            <h:outputText value="" styleClass="icon-right-open-1"/>
          </f:facet>
          <f:facet name="fastforward">
            <h:outputText value="" styleClass="icon-fast-fw-1"/>
          </f:facet>
          <f:facet name="last">
            <h:outputText value="" styleClass="icon-to-end"/>
          </f:facet>
          <f:facet name="first_disabled">
            <h:outputText value="" styleClass="icon-to-start"/>
          </f:facet>
          <f:facet name="previous_disabled">
            <h:outputText value="" styleClass="icon-left-open"/>
          </f:facet>
          <f:facet name="next_disabled">
            <h:outputText value="" styleClass="icon-right-open-1"/>
          </f:facet>
          <f:facet name="fastforward_disabled">
            <h:outputText value="" styleClass="icon-fast-fw-1"/>
          </f:facet>
          <f:facet name="last_disabled">
            <h:outputText value="" styleClass="icon-to-end"/>
          </f:facet>
        </rich:dataScroller>
      </div>

      <rich:dataTable id="userList" cellspacing="0" styleClass="fullwidth"
        value="#{userAction.userPagedListDataModel}" var="user"
        rows="#{userAction.userPagedListDataModel.pageSize}"
        columnClasses="centered,centered,centered,centered">
        <rich:column width="auto">
          <f:facet name="header">
            <h:panelGroup>
              <h:outputText value="#{messages['jsf.Username']}"/>
              <br/>
              <h:inputText id="username_filter_input"
                value="#{userAction.userPagedListDataModel.filter}"<commit_msg>disable enter key in user management screen<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:rich="http://richfaces.org/rich"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  xmlns:s="http://jboss.org/schema/seam/taglib">

<ui:composition template="../WEB-INF/template/template_2x.xhtml">
  <!-- disabled since it doesn't create the HPerson to go with the HAccount
      <ui:define name="right_content">
          <s:link action="#{userAction.createUser}"
            rendered="#{s:hasPermission('seam.account', 'create')}"
            value="#{messages['jsf.CreateNewUser']}"/>
      </ui:define>
   -->

  <ui:define name="page_title">#{messages['jsf.ManageUsers']}</ui:define>
  <ui:define name="center_content">
    <script type="text/javascript">
      function confirmDelete() {
        return confirm("#{messages['jsf.AreYouSureYouWishToDeleteThisUserThisActionCannotBeUndone']}");
      }

      function focusUserFilterInput() {
        #{rich:element('username_filter_input')}
      .
        focus();
      }
    </script>
    <a4j:jsFunction name="editUser" action="#{userAction.editUser(username)}">
      <a4j:param name="val1" assignTo="#{username}"/>
    </a4j:jsFunction>
    <a4j:jsFunction name="deleteUser" action="#{userAction.deleteUser(username)}" render="usermanagerForm">
      <a4j:param name="val1" assignTo="#{username}"/>
    </a4j:jsFunction>

    <h:form id="usermanagerForm">
      <s:token allowMultiplePosts="true"/>

      <div style="text-align: center">
        <rich:dataScroller renderIfSinglePage="false" for="userList"
          maxPages="100" page="#{userAction.userPagedListDataModel.scrollerPage}"
          id="scroller" fastControls="hide" render="scroller2" >
          <f:facet name="first">
            <h:outputText value="" styleClass="icon-to-start"/>
          </f:facet>
          <f:facet name="previous">
            <h:outputText value="" styleClass="icon-left-open"/>
          </f:facet>
          <f:facet name="next">
            <h:outputText value="" styleClass="icon-right-open-1"/>
          </f:facet>
          <f:facet name="fastforward">
            <h:outputText value="" styleClass="icon-fast-fw-1"/>
          </f:facet>
          <f:facet name="last">
            <h:outputText value="" styleClass="icon-to-end"/>
          </f:facet>
          <f:facet name="first_disabled">
            <h:outputText value="" styleClass="icon-to-start"/>
          </f:facet>
          <f:facet name="previous_disabled">
            <h:outputText value="" styleClass="icon-left-open"/>
          </f:facet>
          <f:facet name="next_disabled">
            <h:outputText value="" styleClass="icon-right-open-1"/>
          </f:facet>
          <f:facet name="fastforward_disabled">
            <h:outputText value="" styleClass="icon-fast-fw-1"/>
          </f:facet>
          <f:facet name="last_disabled">
            <h:outputText value="" styleClass="icon-to-end"/>
          </f:facet>
        </rich:dataScroller>
      </div>

      <rich:dataTable id="userList" cellspacing="0" styleClass="fullwidth"
        value="#{userAction.userPagedListDataModel}" var="user"
        rows="#{userAction.userPagedListDataModel.pageSize}"
        columnClasses="centered,centered,centered,centered">
        <rich:column width="auto">
          <f:facet name="header">
            <h:panelGroup>
              <h:outputText value="#{messages['jsf.Username']}"/>
              <br/>
              <h:inputText id="username_filter_input" onkeydown="if(event.keyCode == 13) {return false}"
                value="#{userAction.userPagedListDataModel.filter}"
{'fraction_non_alphanumeric': 0.1759175788795879, 'fraction_numerical': 0.00824211204121056, 'mean_word_length': 2.9202423018677437, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 123, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 16}, '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': '1455500', 'n_tokens_mistral': 2566, 'n_tokens_neox': 2501, 'n_words': 339}