<commit_before><%@ page import="grails.plugins.crm.task.CrmTask" %>
<!doctype html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'crmTask.label', default: 'Task')}"/>
    <title><g:message code="crmTask.find.title" args="[entityName]"/></title>
    <r:require modules="datepicker,autocomplete"/>
    <r:script>
        $(document).ready(function() {
            $("form .date").datepicker({weekStart:1});

            $("input[name='type']").autocomplete("${createLink(action: 'autocompleteType')}", {
                remoteDataType: 'json',
                preventDefaultReturn: true,
                selectFirst: true
            });
            $("input[name='username']").autocomplete("${createLink(action: 'autocompleteUsername')}", {
                remoteDataType: 'json',
                preventDefaultReturn: true,
                selectFirst: true
            });
        });
    </r:script>
</head>

<body>

<crm:header title="crmTask.find.title" args="[entityName]"/>

<g:form action="list">

    <div class="row-fluid">

        <f:with bean="cmd">
            <div class="span3">
                <div class="row-fluid">
                    <f:field property="name" label="crmTask.name.label" input-autofocus="" input-class="span12"
                             input-placeholder="${message(code: 'crmTaskQueryCommand.name.placeholder', default: '')}"/>
                    <f:field property="location" label="crmTask.location.label" input-class="span12"
                             input-placeholder="${message(code: 'crmTaskQueryCommand.location.placeholder', default: '')}"/>
                </div>
            </div>

            <div class="span3">
                <div class="row-fluid">
                    <f:field property="fromDate">
                        <div class="input-append date"
                             data-date="${formatDate(format: 'yyyy-MM-dd', date: cmd.fromDate ?: new Date())}">
                            <g:textField name="fromDate" class="span11" size="10" placeholder="ÅÅÅÅ-MM-DD"
                                         value="${formatDate(format: 'yyyy-MM-dd', date: cmd.fromDate)}"/><span
                                class="add-on"><i
                                    class="icon-th"></i></span>
                        </div>
                    </f:field>
                    <f:field property="toDate">
                        <div class="input-append date"
                             data-date="${formatDate(format: 'yyyy-MM-dd', date: cmd.toDate ?: new Date())}">
                            <g:textField name="toDate" class="span11" size="10" placeholder="ÅÅÅÅ-MM-DD"
                                         value="${formatDate(format: 'yyyy-MM-dd', date: cmd.toDate)}"/><span
                                class="add-on"><i
                                    class="icon-th"></i></span>
                        </div>
                    </f:field>
                </div>
            </div>

            <div class="span3">
                <div class="row-fluid">
                    <f:field property="type" label="crmTask.type.label">
                        <input type="text" name="type" value="${fieldValue(bean: cmd, field: 'type')}"
                               class="span12" autocomplete="off"/>
                    </f:field>
                    <f:field property="username" label="crmTask.username.label">
                        <input type="text" name="username" value="${fieldValue(bean: cmd, field: 'username')}"
                               class="span12" autocomplete="off"/>
                    </f:field>
                </div>
            </div>

            <div class="span3">
                <div class="row-fluid">
                    <g:if test="${useAttenders}">
                        <f:field property="attender" label="crmTaskAttender.label">
                            <input type="text" name="attender" value="${fieldValue(bean: cmd, field: 'attender')}"
                                   class="span12"/>
                        </f:field>
                    </g:if>
                </div>
            </div>
        </f:with>

    </div>

    <div class="form-actions btn-toolbar">
        <crm:selectionMenu visual="primary">
            <crm:button action="list" icon="icon-search icon-white" visual="primary"
                        label="crmTask.button.search.label"/>
        </crm:selectionMenu>
        <crm:button type="link" group="true" action="create" visual="success" icon="icon-file icon-white"
                    label="crmTask.button.create.label" permission="crmTask:create"/>
        <g:link action="clearQuery" class="btn btn-link"><g:message code="crmAgreement.button.query.clear.label"
                                                                    default="Reset fields"/></g:link>
    </div>

</g:form>

</body>
</html><commit_msg>It's now possible to query on tags<commit_after><%@ page import="grails.plugins.crm.task.CrmTask" %>
<!doctype html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'crmTask.label', default: 'Task')}"/>
    <title><g:message code="crmTask.find.title" args="[entityName]"/></title>
    <r:require modules="datepicker,autocomplete"/>
    <r:script>
        $(document).ready(function() {
            $("form .date").datepicker({weekStart:1});

            $("input[name='type']").autocomplete("${createLink(action: 'autocompleteType')}", {
                remoteDataType: 'json',
                preventDefaultReturn: true,
                selectFirst: true
            });
            $("input[name='username']").autocomplete("${createLink(action: 'autocompleteUsername')}", {
                remoteDataType: 'json',
                preventDefaultReturn: true,
                selectFirst: true
            });
        });
    </r:script>
</head>

<body>

<crm:header title="crmTask.find.title" args="[entityName]"/>

<g:form action="list">

    <div class="row-fluid">

        <f:with bean="cmd">
            <div class="span3">
                <div class="row-fluid">
                    <f:field property="name" label="crmTask.name.label" input-autofocus="" input-class="span12"
                             input-placeholder="${message(code: 'crmTaskQueryCommand.name.placeholder', default: '')}"/>
                    <f:field property="location" label="crmTask.location.label" input-class="span12"
                             input-placeholder="${message(code: 'crmTaskQueryCommand.location.placeholder', default: '')}"/>
                </div>
            </div>

            <div class="span3">
                <div class="row-fluid">
                    <f:field property="fromDate">
                        <div class="input-append date"
                             data-date="${formatDate(format: 'yyyy-MM-dd', date: cmd.fromDate ?: new Date())}">
                            <g:textField name="fromDate" class="span11" size="10" placeholder="ÅÅÅÅ-MM-DD"
                                         value="${formatDate(format: 'yyyy-MM-dd', date: cmd.fromDate)}"/><span
                                class="add-on"><i
                                    class="icon-th"></i></span>
                        </div>
                    </f:field>
                    <f:field property="toDate">
                        <div class="input-append date"
                             data-date="${formatDate(format: 'yyyy-MM-dd', date: cmd.toDate ?: new Date())}">
                            <g:textField name="toDate" class="span11" size="10" placeholder="ÅÅÅÅ-MM-DD"
                                         value="${formatDate(format: 'yyyy-MM-dd', date: cmd.toDate)}"/><span
                                class="add-on"><i
                                    class="icon-th"></i></span>
                        </div>
                    </f:field>
                </div>
            </div>

            <div class="span3">
                <div class="row-fluid">
                    <f:field property="type" label="crmTask.type.label">
                        <input type="text" name="type" value="${fieldValue(bean: cmd, field: 'type')}"
                               class="span12" autocomplete="off"/>
                    </f:field>
                    <f:field property="username" label="crmTask.username.label">
                        <input type="text" name="username" value="${fieldValue(bean: cmd, field: 'username')}"
                               class="span12" autocomplete="off"/>
                    </f:field>
                </div>
            </div>

            <div class="span3">
                <div class="row-fluid">
                    <g:if test="${useAttenders}">
                        <f:field property="attender" label="crmTaskAttender.label">
                            <input type="text" name="attender" value="${fieldValue(bean: cmd, field: 'attender')}"
                                   class="span12"/>
                        </f:field>
                    </g:if>
                    <f:field property="tags" label="crmTask.tags.label">
                        <g:textField name="tags" class="span12" value="${cmd.tags}"
                                     placeholder="${message(code: 'crmTask.tags.placeholder', default: '')}"/>
                    </f:field>
                </div>
            </div>
        </f:with>

    </div>

    <div class="form-actions btn-toolbar">
        <crm:selectionMenu visual="primary">
            <crm:button action="list" icon="icon-search icon-white" visual="primary"
                        label="crmTask.button.search.label"/>
        </crm:selectionMenu>
        <crm:button type="link" group="true" action="create" visual="success" icon="icon-file icon-white"
                    label="crmTask.button.create.label" permission="crmTask:create"/>
        <g:link action="clearQuery" class="btn btn-link"><g:message code="crmTask.button.query.clear.label"
                                                                    default="Reset fields"/></g:link>
    </div>

</g:form>

</body>
</html>
{'fraction_non_alphanumeric': 0.16098949641700205, 'fraction_numerical': 0.004711887700009816, 'mean_word_length': 1.5733771154331901, 'pattern_counts': {'":': 0, '<': 164, '<?xml version=': 0, '>': 164, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '108339', 'n_tokens_mistral': 2813, 'n_tokens_neox': 2661, 'n_words': 446}