<commit_before><div>
    <a href="#" id="tri_query_toggle_simple_mode" data-advanced_mode="simple">Switch to advanced search</a>

    <form id="tri_query_form" class="compact">
        <table style="width: 100%">
            <tr class="tri_query_form_advanced" style="display: none">
                <td><label for="id_query">Search query:</label></td>
            </tr>
            <tr>
                <td>
                    <div id="tri_query_form_simple">
                        {{ form.compact }}
                    </div>
                    <div class="tri_query_form_advanced" style="display: none">
                        <input id="id_query" name="query" type="text" style="width:95%" data-query="{{ form.tri_query_advanced_value }}"/>
                    </div>
                </td>
                <td class="tri_query_toggle_help" style="display: none">
                    <span>Show help</span> <i class="fa fa-chevron-down"></i>
                </td>
            </tr>
            <tr>
                <td class="tri_query_help" style="display: none">
                    <div class="tri_query_available_fields">
                        <h3>Available fields</h3>
                        <ul>
                            {% for variable in form.tri_query.variables %}
                                <li>{{ variable.name }}</li>
                            {% endfor %}
                        </ul>
                    </div>
                    <div class="tri_query_available_query_commands">
                        <h3>Queries</h3>
                        <ul>
                            <li>Search for an exact value: field_name=value</li>
                            <li>Search for an exact value containing space: field_name="value with space"</li>
                            <li>Containing a text: field_name:val</li>
                            <li>Exclude a value: field_name!=value</li>
                            <li>You can also use <, >, <= and >= to find ranges of values: field_name<10</li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        <div id="tri_query_error">
            {{ tri_query_error }}
        </div>

        <style type="text/css" scoped>
            .tri_query_available_fields,
            .tri_query_available_query_commands {
                display: inline-block;
                vertical-align: top;
                margin-right: 10px;
            }
            .tri_query_toggle_help,
            .tri_query_help {
                margin-left: 3px;
            }
            .tri_query_toggle_help {
                cursor: pointer;
                width: 100px;
            }
            #tri_query_toggle_simple_mode {
                float: right;
            }
            #tri_query_error {
                color: red;
            }
        </style>
   </form>
</div>

<script>
    $(document).ready(function() {<commit_msg>Added missing submit button for filter<commit_after><div>
    <a href="#" id="tri_query_toggle_simple_mode" data-advanced_mode="simple">Switch to advanced search</a>

    <form id="tri_query_form" class="compact">
        <table style="width: 100%">
            <tr class="tri_query_form_advanced" style="display: none">
                <td><label for="id_query">Search query:</label></td>
            </tr>
            <tr>
                <td>
                    <div id="tri_query_form_simple">
                        {{ form.compact }}
                    </div>
                    <div class="tri_query_form_advanced" style="display: none">
                        <input id="id_query" name="query" type="text" style="width:95%" data-query="{{ form.tri_query_advanced_value }}"/>
                    </div>
                </td>
                <td class="tri_query_toggle_help" style="display: none">
                    <span>Show help</span> <i class="fa fa-chevron-down"></i>
                </td>
            </tr>
            <tr>
                <td class="tri_query_help" style="display: none">
                    <div class="tri_query_available_fields">
                        <h3>Available fields</h3>
                        <ul>
                            {% for variable in form.tri_query.variables %}
                                <li>{{ variable.name }}</li>
                            {% endfor %}
                        </ul>
                    </div>
                    <div class="tri_query_available_query_commands">
                        <h3>Queries</h3>
                        <ul>
                            <li>Search for an exact value: field_name=value</li>
                            <li>Search for an exact value containing space: field_name="value with space"</li>
                            <li>Containing a text: field_name:val</li>
                            <li>Exclude a value: field_name!=value</li>
                            <li>You can also use <, >, <= and >= to find ranges of values: field_name<10</li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        <div id="tri_query_error">
            {{ tri_query_error }}
        </div>

        <style type="text/css" scoped>
            .tri_query_available_fields,
            .tri_query_available_query_commands {
                display: inline-block;
                vertical-align: top;
                margin-right: 10px;
            }
            .tri_query_toggle_help,
            .tri_query_help {
                margin-left: 3px;
            }
            .tri_query_toggle_help {
                cursor: pointer;
                width: 100px;
            }
            #tri_query_toggle_simple_mode {
                float: right;
            }
            #tri_query_error {
                color: red;
            }
        </style>

        <div class="submit"><input class="button" type="submit" value="Filter" /></div>
   </form>
</div>

<script>
    $(document).ready(function() {
{'fraction_non_alphanumeric': 0.11838624338624339, 'fraction_numerical': 0.005621693121693121, 'mean_word_length': 1.2068588106530462, 'pattern_counts': {'":': 0, '<': 136, '<?xml version=': 0, '>': 134, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4813020', 'n_tokens_mistral': 1678, 'n_tokens_neox': 1555, 'n_words': 313}