<commit_before><%@ page import="com.imcode.imcms.flow.Page,
                 com.imcode.imcms.servlet.DocumentFinder,
                 com.imcode.imcms.servlet.SearchDocumentsPage,
                 imcode.server.document.DocumentDomainObject,
                 imcode.server.user.UserDomainObject,
                 imcode.util.Utility,
                 org.apache.commons.lang3.ObjectUtils"
         contentType="text/html; charset=UTF-8" %>
<%@ page import="org.apache.commons.text.StringEscapeUtils" %>
<%@ page import="java.util.List" %>
<%@ taglib prefix="ui" tagdir="/WEB-INF/tags/imcms/ui" %>

<%
    SearchDocumentsPage searchDocumentsPage = Page.fromRequest(request);
    UserDomainObject user = Utility.getLoggedOnUser( request ) ;
    List documentsFound = searchDocumentsPage.getDocumentsFound() ;
    DocumentFinder documentFinder = searchDocumentsPage.getDocumentFinder() ;
    int firstDocumentIndex = searchDocumentsPage.getFirstDocumentIndex() ;
    int documentsPerPage = searchDocumentsPage.getDocumentsPerPage() ;
    String IMG_PATH  = request.getContextPath()+"/imcms/"+Utility.getLoggedOnUser( request ).getLanguageIso639_2()+"/images/admin/" ;
%>
<% if (null != documentsFound) { %>
    <table border="0" cellspacing="0" cellpadding="2" width="656">
        <tr>
            <td><span class="imcmsAdmHeading"><? templates/sv/search/search_result.html/7 ?></span></td>
        </tr>
        <tr>
            <td><img src="<%= IMG_PATH %>/1x1_20568d.gif" width="100%" height="1" vspace="8"></td>
        </tr>
        <tr>
            <td class="imcmsAdmText"><b><? templates/sv/search/search_result.html/1003 ?></b>&nbsp;&nbsp;
            <%= documentsFound.size() %></td>
        </tr>
        <tr>
            <td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="15"></td>
        </tr>
        <tr>
            <td>
						<table border="0" cellspacing="0" cellpadding="2" width="100%"><%
					if (0 == documentsFound.size()) { %>
						<tr>
							<td colspan="3"><span class="imcmsAdmText" style="color: #cc0000"><? templates/sv/search/search_result_no_hit.html/1 ?></span></td>
						</tr><%
					} else { %>
						<tr>
                            <td class="imcmsAdmText"><b><? global/Page_alias ?>&nbsp;</b></td>
                            <td width="50" class="imcmsAdmText"><b><? webapp/imcms/lang/jsp/heading_status ?>&nbsp;</b></td>
                            <td width="40" class="imcmsAdmText"><b><? imcms/lang/jsp/search_documents.jsp/document_id ?></b></td>
                            <td width="50" class="imcmsAdmText"><b><? imcms/lang/jsp/search_documents.jsp/document_type ?></b></td>
							<td class="imcmsAdmText"><b><? imcms/lang/jsp/search_documents.jsp/document_headline ?></b></td><%
						DocumentFinder.SearchResultColumn[] searchResultColumns = documentFinder.getExtraSearchResultColumns() ;
						for ( int i = 0; i < searchResultColumns.length; i++ ) {
							DocumentFinder.SearchResultColumn searchResultColumn = searchResultColumns[i]; %>
							<td class="imcmsAdmText">&nbsp;<b><%= searchResultColumn.getName().toLocalizedString(request) %></b></td><%
						} %>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td colspan="<%= 6 + searchResultColumns.length %>"><img src="<%= IMG_PATH %>/1x1_cccccc.gif" width="100%" height="1"></td>
						</tr><%
						int firstDocumentIndexOnNextPage = ( firstDocumentIndex + documentsPerPage );
						for ( int i = firstDocumentIndex ; i < documentsFound.size() && i < firstDocumentIndexOnNextPage; i++ ) {
							DocumentDomainObject document = (DocumentDomainObject) documentsFound.get(i); %>
						<tr valign="top"<%= ((i - firstDocumentIndex) % 2 == 0) ? " bgcolor=\"#FFFFFF\"" : "" %>><%
                            String alias = document.getAlias();
                            if ( alias != null ) { %>
                            <td><a name="alias" href="<%= request.getContextPath() + "/" + document.getAlias() %>" title="<%= document.getAlias() %>"><%= StringEscapeUtils.escapeHtml4(document.getAlias()) %></a></td>
                            <% }else { %>
                            <td>&nbsp;</td> <%}%>
                            <td><%
							if (user.canEditDocumentInformationFor(document)) {
								%><a href="SearchDocuments?<%= searchDocumentsPage.getParameterStringWithParameter(request, SearchDocumentsPage.REQUEST_PARAMETER__TO_EDIT_DOCUMENT_ID, ""+document.getId()) %>"><%
							}
                            %><ui:statusIcon lifeCyclePhase="<%=document.getLifeCyclePhase()%>"/><%
							if (user.canEditDocumentInformationFor(document)) {
								%></a><%
							} %></td>
							<td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="3"><br><%
							if (user.canEdit(document)) {
								%><a href="AdminDoc?meta_id=<%= document.getId() %>" title="AdminDoc?meta_id=<%= document.getId() %>"><%
							}
							%><%= document.getId() %><%
							if (user.canEdit(document)) {
								%></a><%
							} %></td>
                            <td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="3"><br><%= document.getDocumentType().getName().toLocalizedString(request)%></td>
							<td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="3"><br><%
							%><a href="<%= request.getContextPath() + "/" + ObjectUtils.defaultIfNull(alias, document.getId() ) %>" target="<%= document.getTarget() %>" title="<%= document.getHeadline() %>"><%
								%><%= document.getHeadline() %></a></td><%
							for ( int j = 0; j < searchResultColumns.length; j++ ) {<commit_msg>IMCMS-255 - Upgrade server side to work with new client: - Commented no more existing method in JSP.<commit_after><%@ page import="com.imcode.imcms.flow.Page,
                 com.imcode.imcms.servlet.DocumentFinder,
                 com.imcode.imcms.servlet.SearchDocumentsPage,
                 imcode.server.document.DocumentDomainObject,
                 imcode.server.user.UserDomainObject,
                 imcode.util.Utility,
                 org.apache.commons.lang3.ObjectUtils"
         contentType="text/html; charset=UTF-8" %>
<%@ page import="org.apache.commons.text.StringEscapeUtils" %>
<%@ page import="java.util.List" %>
<%@ taglib prefix="ui" tagdir="/WEB-INF/tags/imcms/ui" %>

<%
    SearchDocumentsPage searchDocumentsPage = Page.fromRequest(request);
    UserDomainObject user = Utility.getLoggedOnUser( request ) ;
    List documentsFound = searchDocumentsPage.getDocumentsFound() ;
    DocumentFinder documentFinder = searchDocumentsPage.getDocumentFinder() ;
    int firstDocumentIndex = searchDocumentsPage.getFirstDocumentIndex() ;
    int documentsPerPage = searchDocumentsPage.getDocumentsPerPage() ;
    String IMG_PATH  = request.getContextPath()+"/imcms/"+Utility.getLoggedOnUser( request ).getLanguageIso639_2()+"/images/admin/" ;
%>
<% if (null != documentsFound) { %>
    <table border="0" cellspacing="0" cellpadding="2" width="656">
        <tr>
            <td><span class="imcmsAdmHeading"><? templates/sv/search/search_result.html/7 ?></span></td>
        </tr>
        <tr>
            <td><img src="<%= IMG_PATH %>/1x1_20568d.gif" width="100%" height="1" vspace="8"></td>
        </tr>
        <tr>
            <td class="imcmsAdmText"><b><? templates/sv/search/search_result.html/1003 ?></b>&nbsp;&nbsp;
            <%= documentsFound.size() %></td>
        </tr>
        <tr>
            <td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="15"></td>
        </tr>
        <tr>
            <td>
						<table border="0" cellspacing="0" cellpadding="2" width="100%"><%
					if (0 == documentsFound.size()) { %>
						<tr>
							<td colspan="3"><span class="imcmsAdmText" style="color: #cc0000"><? templates/sv/search/search_result_no_hit.html/1 ?></span></td>
						</tr><%
					} else { %>
						<tr>
                            <td class="imcmsAdmText"><b><? global/Page_alias ?>&nbsp;</b></td>
                            <td width="50" class="imcmsAdmText"><b><? webapp/imcms/lang/jsp/heading_status ?>&nbsp;</b></td>
                            <td width="40" class="imcmsAdmText"><b><? imcms/lang/jsp/search_documents.jsp/document_id ?></b></td>
                            <td width="50" class="imcmsAdmText"><b><? imcms/lang/jsp/search_documents.jsp/document_type ?></b></td>
							<td class="imcmsAdmText"><b><? imcms/lang/jsp/search_documents.jsp/document_headline ?></b></td><%
						DocumentFinder.SearchResultColumn[] searchResultColumns = documentFinder.getExtraSearchResultColumns() ;
						for ( int i = 0; i < searchResultColumns.length; i++ ) {
							DocumentFinder.SearchResultColumn searchResultColumn = searchResultColumns[i]; %>
							<td class="imcmsAdmText">&nbsp;<b><%= searchResultColumn.getName().toLocalizedString(request) %></b></td><%
						} %>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td colspan="<%= 6 + searchResultColumns.length %>"><img src="<%= IMG_PATH %>/1x1_cccccc.gif" width="100%" height="1"></td>
						</tr><%
						int firstDocumentIndexOnNextPage = ( firstDocumentIndex + documentsPerPage );
						for ( int i = firstDocumentIndex ; i < documentsFound.size() && i < firstDocumentIndexOnNextPage; i++ ) {
							DocumentDomainObject document = (DocumentDomainObject) documentsFound.get(i); %>
						<tr valign="top"<%= ((i - firstDocumentIndex) % 2 == 0) ? " bgcolor=\"#FFFFFF\"" : "" %>><%
                            String alias = document.getAlias();
                            if ( alias != null ) { %>
                            <td><a name="alias" href="<%= request.getContextPath() + "/" + document.getAlias() %>" title="<%= document.getAlias() %>"><%= StringEscapeUtils.escapeHtml4(document.getAlias()) %></a></td>
                            <% }else { %>
                            <td>&nbsp;</td> <%}%>
                            <td>
                                <%--<%--%>
                                <%--if (user.canEditDocumentInformationFor(document)) {%>--%>
                                <a href="SearchDocuments?<%= searchDocumentsPage.getParameterStringWithParameter(request, SearchDocumentsPage.REQUEST_PARAMETER__TO_EDIT_DOCUMENT_ID, ""+document.getId()) %>">
                                    <%--<%--%>
                                    <%--}--%>
                                    <%--%>--%>
                                    <ui:statusIcon lifeCyclePhase="<%=document.getLifeCyclePhase()%>"/>
                                    <%--<%--%>
                                    <%--if (user.canEditDocumentInformationFor(document)) {--%>
                                    <%--%>--%>
                                </a>
                                <%--<%--%>
                                <%--} %>--%>
                            </td>
							<td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="3"><br><%
							if (user.canEdit(document)) {
								%><a href="AdminDoc?meta_id=<%= document.getId() %>" title="AdminDoc?meta_id=<%= document.getId() %>"><%
							}
							%><%= document.getId() %><%
							if (user.canEdit(document)) {
								%></a><%
							} %></td>
                            <td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="3"><br><%= document.getDocumentType().getName().toLocalizedString(request)%></td>
							<td><img src="<%= IMG_PATH %>/1x1.gif" width="1" height="3"><br><%
							%><a href="<%= request.getContextPath() + "/" + ObjectUtils.defaultIfNull(alias, document.getId() ) %>" target="<%= document.getTarget() %>" title="<%= document.getHeadline() %>"><%
								%><%= document.getHeadline() %></a></td><%
							for ( int j = 0; j < searchResultColumns.length; j++ ) {
{'fraction_non_alphanumeric': 0.188557128063514, 'fraction_numerical': 0.013548498446668968, 'mean_word_length': 2.4563077840739638, 'pattern_counts': {'":': 0, '<': 319, '<?xml version=': 0, '>': 309, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7587845', 'n_tokens_mistral': 4173, 'n_tokens_neox': 3546, 'n_words': 535}