<commit_before><div class="results" data-href="{{url}}">
<span class="background"></span>
<h4 class="summary">
{{summary}}
</h4>
{{#if query.facets}}
<div class="row-fluid">
    <div class="span10 facets">
        <span class="facet-label">Limits</span>
            {{#each query.facets}}
                &gt; <span class="selected-facet"><span class="facet-label">{{label}}</span><span class="facet-value">{{value}}</span> <sub><a title="Remove {{label}} facet" class="remove-facet" data-facet="{{link}}" href="#">x</a></sub></span>
            {{/each}}
        </span>
    </div>
{{/if}}
{{#if sortings}}
<div class="row-fluid">
    <div class="span10 offset2">
        <span class="sort-label">Sort</span> &gt;
        {{#with sortings}}
            {{#each used}}
                <span class="sort-facet">{{label}} <sub><a title="Remove {{label}} sort" class="remove-sort">x</a></sub></span> &gt;
            {{/each}}
            {{#if available}}
                <span data-toggle="dropdown-select" class="button-dropdown white">
                    <select id="add-sort">
                        <option data-placeholder="true">-- add sort --</option>
                        {{#each available}}
                            <option value="{{schema}}_{{field}}">{{label}}</option>
                        {{/each}}
                    </select>
                </span>
            {{/if}}
        {{/with}}
    </div>
</div>
{{/if}}
<div class="row-fluid">
    {{#if facet}}
        <div class="span2">
            {{>facets}}
        </div>
    {{else}}<commit_msg>Fix layout on results page when facet is applied<commit_after><div class="results" data-href="{{url}}">
<span class="background"></span>
<h4 class="summary">
{{summary}}
</h4>
{{#if query.facets}}
<div class="row-fluid">
    <div class="span10 facets">
        <span class="facet-label">Limits</span>
            {{#each query.facets}}
                &gt; <span class="selected-facet"><span class="facet-label">{{label}}</span><span class="facet-value">{{value}}</span> <sub><a title="Remove {{label}} facet" class="remove-facet" data-facet="{{link}}" href="#">x</a></sub></span>
            {{/each}}
        </span>
    </div>
</div>
{{/if}}
{{#if sortings}}
<div class="row-fluid">
    <div class="span10 offset2">
        <span class="sort-label">Sort</span> &gt;
        {{#with sortings}}
            {{#each used}}
                <span class="sort-facet">{{label}} <sub><a title="Remove {{label}} sort" class="remove-sort">x</a></sub></span> &gt;
            {{/each}}
            {{#if available}}
                <span data-toggle="dropdown-select" class="button-dropdown white">
                    <select id="add-sort">
                        <option data-placeholder="true">-- add sort --</option>
                        {{#each available}}
                            <option value="{{schema}}_{{field}}">{{label}}</option>
                        {{/each}}
                    </select>
                </span>
            {{/if}}
        {{/with}}
    </div>
</div>
{{/if}}
<div class="row-fluid">
    {{#if facet}}
        <div class="span2">
            {{>facets}}
        </div>
    {{else}}
{'fraction_non_alphanumeric': 0.22176913425345043, 'fraction_numerical': 0.005018820577164366, 'mean_word_length': 2.081159420289855, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 94, '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': '952944', 'n_tokens_mistral': 992, 'n_tokens_neox': 948, 'n_words': 194}