<commit_before><div xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:nxthemes="http://nuxeo.org/nxthemes"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:nxl="http://nuxeo.org/nxforms/layout"
  xmlns:a4j="http://richfaces.org/a4j"
  class="popUpContent" id="popUpContent">

    <script language="javascript" type="text/javascript">
      function updateParent(documentUid, documentTitle) {
        parentInput = document.getElementById('createForm:objectDocumentUid');
        parentInput.value = documentUid;
        parentTitle = document.getElementById('createForm:objectDocumentTitle');
        parentTitle.innerHTML = documentTitle;
        parentTitleSaved = document.getElementById('createForm:objectDocumentTitleSaved');
        parentTitleSaved.value = documentTitle;
        hidePopUp();
      }
    </script>

    <nxu:set var="contentViewName" value="relation_search">
    <nxu:set var="contentViewId" value="0">

      <div>
        <h3><h:outputText value="#{messages['label.search.form.simple']}" /></h3>
        <h:form>
          <nxu:set var="contentView"
            value="#{contentViewActions.getContentViewWithProvider(contentViewName)}"
            cache="true">
            <c:if test="#{contentView != null}">
              <nxl:layout name="#{contentView.searchLayout.name}" mode="search"
                value="#{contentView.searchDocumentModel}" />
            </c:if>

            <a4j:commandButton value="#{messages['command.search']}"
              action="#{contentViewActions.resetPageProvider(contentViewName)}"
              styleClass="button" id="searchButton" render="content">
              <!-- popupDisplayed flag for preventing relation_search content view execution until search button clicked -->
              <a4j:actionparam value="true"
                assignTo="#{relationActions.popupDisplayed}" />
            </a4j:commandButton>
          </nxu:set>
        </h:form>
      </div>

      <a4j:outputPanel id="content" layout="block">
        <c:if test="#{relationActions.popupDisplayed}">
          <ui:decorate template="/incl/content_view.xhtml">
            <ui:param name="useAjaxPagination" value="true" />
            <ui:param name="contentIdToBeReRendered" value="content" />

            <ui:define name="content_view_syndication_buttons" />
            <ui:define name="content_view_selector">
              <div style="clear:both;" />
            </ui:define>
          </ui:decorate>
        </c:if>
      </a4j:outputPanel>
    </nxu:set><commit_msg>NXP-14230: migrate a4j:actionparam to a4j:param<commit_after><div xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:nxthemes="http://nuxeo.org/nxthemes"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:nxl="http://nuxeo.org/nxforms/layout"
  xmlns:a4j="http://richfaces.org/a4j"
  class="popUpContent" id="popUpContent">

    <script language="javascript" type="text/javascript">
      function updateParent(documentUid, documentTitle) {
        parentInput = document.getElementById('createForm:objectDocumentUid');
        parentInput.value = documentUid;
        parentTitle = document.getElementById('createForm:objectDocumentTitle');
        parentTitle.innerHTML = documentTitle;
        parentTitleSaved = document.getElementById('createForm:objectDocumentTitleSaved');
        parentTitleSaved.value = documentTitle;
        hidePopUp();
      }
    </script>

    <nxu:set var="contentViewName" value="relation_search">
    <nxu:set var="contentViewId" value="0">

      <div>
        <h3><h:outputText value="#{messages['label.search.form.simple']}" /></h3>
        <h:form>
          <nxu:set var="contentView"
            value="#{contentViewActions.getContentViewWithProvider(contentViewName)}"
            cache="true">
            <c:if test="#{contentView != null}">
              <nxl:layout name="#{contentView.searchLayout.name}" mode="search"
                value="#{contentView.searchDocumentModel}" />
            </c:if>

            <a4j:commandButton value="#{messages['command.search']}"
              action="#{contentViewActions.resetPageProvider(contentViewName)}"
              styleClass="button" id="searchButton" render="content">
              <!-- popupDisplayed flag for preventing relation_search content view execution until search button clicked -->
              <a4j:param value="true"
                assignTo="#{relationActions.popupDisplayed}" />
            </a4j:commandButton>
          </nxu:set>
        </h:form>
      </div>

      <a4j:outputPanel id="content" layout="block">
        <c:if test="#{relationActions.popupDisplayed}">
          <ui:decorate template="/incl/content_view.xhtml">
            <ui:param name="useAjaxPagination" value="true" />
            <ui:param name="contentIdToBeReRendered" value="content" />

            <ui:define name="content_view_syndication_buttons" />
            <ui:define name="content_view_selector">
              <div style="clear:both;" />
            </ui:define>
          </ui:decorate>
        </c:if>
      </a4j:outputPanel>
    </nxu:set>
{'fraction_non_alphanumeric': 0.1519368183527642, 'fraction_numerical': 0.0069575028206092515, 'mean_word_length': 2.969402985074627, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '686472', 'n_tokens_mistral': 1638, 'n_tokens_neox': 1598, 'n_words': 209}