<commit_before><%@ page import="rundeck.User" %>
<g:set var="rkey" value="${g.rkey()}" />

<g:if test="${session.user && User.findByLogin(session.user)?.reportfilters}">
    <g:set var="filterset" value="${User.findByLogin(session.user)?.reportfilters}"/>
</g:if>
<g:set var="isCompact" value="${params.compact?true:false}"/>
    
<div id="${rkey}evtsForm">
    <g:if test="${params.createFilters}">
        <span class="note help">
            Enter filter parameters below and click "save this filter" to set a name and save it.
        </span>
    </g:if>
    <g:set var="wasfiltered" value="${paginateParams}"/>
    <div class="queryTable">
        <g:if test="${!params.nofilters}">
        <div id="${rkey}filter" >
            <g:form action="index" class="form-inline" role="form">
                <g:if test="${params.compact}">
                    <g:hiddenField name="compact" value="${params.compact}"/>
                </g:if>
                <g:hiddenField name="formInput" value="true"/>
                <g:hiddenField name="projFilter" value="${session.project}"/>

                <g:ifServletContextAttribute attribute="RSS_ENABLED" value="true">
                    <a title="RSS 2.0" class="floatr"
                       href="${createLink(controller: "feed", action: "index", params: paginateParams)}"
                        style="margin: 0 10px;"
                       id="rsslink"><img
                            src="${resource(dir: 'images', file: 'feed.png')}" width="14px" height="14px"
                            alt=""/> RSS</a>
                </g:ifServletContextAttribute>
                <g:render template="/common/queryFilterManager" model="${[rkey:rkey,filterName:filterName,filterset:filterset,update:rkey+'evtsForm',deleteActionSubmitRemote:[controller:'reports',action:'deleteFilter',params:[fragment:true]], storeActionSubmit:'storeFilter']}"/>
                <g:hiddenField name="max" value="${max}"/>
                <g:render template="baseFiltersPlain" model="${[params: params, query: query]}"/>
                <g:render template="recentDateFiltersPlain" model="${[params:params,query:query]}"/>
                <g:render template="advDateFiltersPlain" model="${[params:params,query:query]}"/>

                <g:submitButton value="Filter" name="filterAll" class="btn btn-default btn-sm"/>
            </g:form>
        </div>
        </g:if>
    </div>
            <div id="${rkey}evtscontent">
                <g:if test="${!params.nofilters}">
                <div class="queryresultsinfo">
                        <g:if test="${!params.compact}">
                            <span class="prompt"><span class="_obs_histtotal">${total}</span> Results</span>
                            matching ${filterName?'filter':'your query'}<commit_msg>Delete saved activity filter doesn't use ajax<commit_after><%@ page import="rundeck.User" %>
<g:set var="rkey" value="${g.rkey()}" />

<g:if test="${session.user && User.findByLogin(session.user)?.reportfilters}">
    <g:set var="filterset" value="${User.findByLogin(session.user)?.reportfilters}"/>
</g:if>
<g:set var="isCompact" value="${params.compact?true:false}"/>
    
<div id="${rkey}evtsForm">
    <g:if test="${params.createFilters}">
        <span class="note help">
            Enter filter parameters below and click "save this filter" to set a name and save it.
        </span>
    </g:if>
    <g:set var="wasfiltered" value="${paginateParams}"/>
    <div class="queryTable">
        <g:if test="${!params.nofilters}">
        <div id="${rkey}filter" >
            <g:form action="index" class="form-inline" role="form">
                <g:if test="${params.compact}">
                    <g:hiddenField name="compact" value="${params.compact}"/>
                </g:if>
                <g:hiddenField name="formInput" value="true"/>
                <g:hiddenField name="projFilter" value="${session.project}"/>

                <g:ifServletContextAttribute attribute="RSS_ENABLED" value="true">
                    <a title="RSS 2.0" class="floatr"
                       href="${createLink(controller: "feed", action: "index", params: paginateParams)}"
                        style="margin: 0 10px;"
                       id="rsslink"><img
                            src="${resource(dir: 'images', file: 'feed.png')}" width="14px" height="14px"
                            alt=""/> RSS</a>
                </g:ifServletContextAttribute>
                <g:render template="/common/queryFilterManager" model="${[rkey:rkey,filterName:filterName,filterset:filterset,update:rkey+'evtsForm',deleteActionSubmit:'deleteFilter', storeActionSubmit:'storeFilter']}"/>
                <g:hiddenField name="max" value="${max}"/>
                <g:render template="baseFiltersPlain" model="${[params: params, query: query]}"/>
                <g:render template="recentDateFiltersPlain" model="${[params:params,query:query]}"/>
                <g:render template="advDateFiltersPlain" model="${[params:params,query:query]}"/>

                <g:submitButton value="Filter" name="filterAll" class="btn btn-default btn-sm"/>
            </g:form>
        </div>
        </g:if>
    </div>
            <div id="${rkey}evtscontent">
                <g:if test="${!params.nofilters}">
                <div class="queryresultsinfo">
                        <g:if test="${!params.compact}">
                            <span class="prompt"><span class="_obs_histtotal">${total}</span> Results</span>
                            matching ${filterName?'filter':'your query'}
{'fraction_non_alphanumeric': 0.17896248429366363, 'fraction_numerical': 0.0032310177705977385, 'mean_word_length': 2.519898926089703, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6198859', 'n_tokens_mistral': 1638, 'n_tokens_neox': 1566, 'n_words': 277}