<commit_before>{% extends 'base.html.twig' %}

{% macro filter_checkbox(field, value, checked, count, hidden) %}
    <div class="form-check{% if hidden %} d-none{% endif %}">
        <label class="form-check-label">
            <input class="form-check-input" type="checkbox" name="f[{{ field.id }}][v][]"
                   value="{{ value }}"
                   {% if checked %}checked{% endif %}
            />
            {{ value }}
            <span class="badge-pill badge badge-default">{{ count }}</span>
        </label>
    </div>
{% endmacro %}

{% block body %}
    {% import _self as macros %}
    <div class="container" id="page--search-adventures" data-search-url="{{ path('field_content_search', {id: '__ID__', q: '__Q__'}) }}">
        <div class="row">
            <div class="col">
                <h1 class="mt-5">Adventure search</h1>
                {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
                    <a class="mb-3 float-right btn btn-outline-success" href="{{ path('adventure_new') }}">Add a new adventure</a>
                {% endif %}
                <p>Find adventures fitting your search term!</p>
                <div class="clearfix"></div>
                <form method="post" action="{{ url('adventure_index') }}{##search-results#}">
                    <div class="input-group input-group-lg">
                        <input class="form-control" name="q" type="text" value="{{ q }}" placeholder="goblins, mountains, ..." />
                        <span class="input-group-btn">
                            <button type="submit" class="btn btn-primary" role="button">Search</button>
                        </span>
                    </div>
                    <small class="form-text text-muted">Things you type in here will be split at <code>,</code> and then <code>OR</code>ed. Use the filters below for advanced searches (hit the 'Search' button again after filtering).</small>
                    <div class="row my-3">
                        <div class="col-3">
                            <div class="row no-gutters">
                                <div class="col-9"><commit_msg>Make 'create adventure' button more visible<commit_after>{% extends 'base.html.twig' %}

{% macro filter_checkbox(field, value, checked, count, hidden) %}
    <div class="form-check{% if hidden %} d-none{% endif %}">
        <label class="form-check-label">
            <input class="form-check-input" type="checkbox" name="f[{{ field.id }}][v][]"
                   value="{{ value }}"
                   {% if checked %}checked{% endif %}
            />
            {{ value }}
            <span class="badge-pill badge badge-default">{{ count }}</span>
        </label>
    </div>
{% endmacro %}

{% block body %}
    {% import _self as macros %}
    <div class="container" id="page--search-adventures" data-search-url="{{ path('field_content_search', {id: '__ID__', q: '__Q__'}) }}">
        <div class="row">
            <div class="col">
                <h1 class="mt-5">Adventure search</h1>
                {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
                    <a class="mb-3 float-right btn btn-success" href="{{ path('adventure_new') }}">Add a new adventure</a>
                {% endif %}
                <p>Find adventures fitting your search term!</p>
                <div class="clearfix"></div>
                <form method="post" action="{{ url('adventure_index') }}{##search-results#}">
                    <div class="input-group input-group-lg">
                        <input class="form-control" name="q" type="text" value="{{ q }}" placeholder="goblins, mountains, ..." />
                        <span class="input-group-btn">
                            <button type="submit" class="btn btn-primary" role="button">Search</button>
                        </span>
                    </div>
                    <small class="form-text text-muted">Things you type in here will be split at <code>,</code> and then <code>OR</code>ed. Use the filters below for advanced searches (hit the 'Search' button again after filtering).</small>
                    <div class="row my-3">
                        <div class="col-3">
                            <div class="row no-gutters">
                                <div class="col-9">
{'fraction_non_alphanumeric': 0.16635730858468678, 'fraction_numerical': 0.0032482598607888632, 'mean_word_length': 1.8797595190380763, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '2970158', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1165, 'n_words': 298}