<commit_before>{% set min_chars = config.get('plugins.simplesearch.min_query_length', 3) %}

<div class="search-wrapper">
    <form name="search" data-simplesearch-form>
        <input name="searchfield" class="search-input" type="text" {% if min_chars > 0 %} data-min="{{- min_chars -}}" {% endif %} required placeholder="{{"PLUGIN_SIMPLESEARCH.SEARCH_PLACEHOLDER"|t}}" value="{{ query }}" data-search-invalid="{{ "PLUGIN_SIMPLESEARCH.SEARCH_FIELD_MINIMUM_CHARACTERS"|t(min_chars)|raw }}" data-search-separator="{{ config.system.param_sep }}" data-search-input="{{ base_url }}{{ config.plugins.simplesearch.route == '@self' ? '' : (config.plugins.simplesearch.route == '/' ? '' : config.plugins.simplesearch.route) }}/query"/>
        {% if config.plugins.simplesearch.display_button %}
            <button type="submit" class="search-submit">
                <img src="{{ url('plugin://simplesearch/assets/search.svg') }}"/>
            </button>
        {% endif %}
    </form>
</div><commit_msg>simplesearch<commit_after>{% set min_chars = config.get('plugins.simplesearch.min_query_length', 3) %}

<div class="search-wrapper">
    <form name="search" data-simplesearch-form>
        <input name="searchfield" class="search-input" type="text" {% if min_chars > 0 %} data-min="{{- min_chars -}}" {% endif %} required placeholder="{{"PLUGIN_SIMPLESEARCH.SEARCH_PLACEHOLDER"|t}}" value="{{ query }}" data-search-invalid="{{ "PLUGIN_SIMPLESEARCH.SEARCH_FIELD_MINIMUM_CHARACTERS"|t(min_chars)|raw }}" data-search-separator="{{ config.system.param_sep }}" data-search-input="{{ base_url }}{{ config.plugins.simplesearch.route == '@self' ? '' : (config.plugins.simplesearch.route == '/' ? '' : config.plugins.simplesearch.route) }}/query"/>
        {% if config.plugins.simplesearch.display_button %}
            <button type="submit" class="search-submit">
                <i class="i-search font-sm"></i>
            </button>
        {% endif %}
    </form>
</div>
{'fraction_non_alphanumeric': 0.19653767820773932, 'fraction_numerical': 0.002036659877800407, 'mean_word_length': 4.212201591511937, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 22, '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': '6714821', 'n_tokens_mistral': 657, 'n_tokens_neox': 618, 'n_words': 93}