<commit_before><%inherit file="base.mako"/>
<%def name="title()">Search</%def>
<%def name="content()">
<section id="Search" xmlns="http://www.w3.org/1999/html">
    <div class="page-header">
        % if query:
##            split on and, so we will be able to remove tags
            <%
                cleaned_query = 'AND'.join(query.split('AND'))
                components = cleaned_query.split('AND')
            %>
        <h1>Search <small> for
##            for showing tags
            % for i, term in enumerate(components):
##              the first is not removable. we need it to query
                    <span class="label label-success btn-mini" style="margin-right:.5em">${term}\
                        % if len(components) > 1:
                        <a href="/search/?q=${'AND'.join((x for x in components if x != term)) | h }" style="color:white">&times;</a>
                        % endif
<%                %></span>
            % endfor<commit_msg>Removed parens from returned query<commit_after><%inherit file="base.mako"/>
<%def name="title()">Search</%def>
<%def name="content()">
<section id="Search" xmlns="http://www.w3.org/1999/html">
    <div class="page-header">
        % if query:
##            split on and, so we will be able to remove tags
            <%
                cleaned_query = 'AND'.join(query.split('AND'))
                components = cleaned_query.split('AND')
            %>
        <h1>Search <small> for
##            for showing tags
            % for i, term in enumerate(components):
##              the first is not removable. we need it to query
                    <span class="label label-success btn-mini" style="margin-right:.5em">${term.replace('(', ' ').replace(')',' ')}\
                        % if len(components) > 1:
                        <a href="/search/?q=${'AND'.join((x for x in components if x != term)) | h }" style="color:white">&times;</a>
                        % endif
<%                %></span>
            % endfor
{'fraction_non_alphanumeric': 0.1626746506986028, 'fraction_numerical': 0.007984031936127744, 'mean_word_length': 1.8002793296089385, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '5191240', 'n_tokens_mistral': 590, 'n_tokens_neox': 541, 'n_words': 146}