<commit_before><h1 class="page-header">Search</h1>

<div class="row">
    {{#if true}}
    <div id="basic_search">
      <div class="form-group form-horizontal">
        <label for="quicksearch" class="col-sm-2 control-label">Quick Search</label>
        <div class="col-sm-7">
          {{input type="text" id="quicksearch" value=searchQuery action="quickSearch" placeholder="search artist, album, or track" class="form-control"}}
        </div>
        <div class="col-sm-1">
          <button class="btn btn-default" {{action 'quickSearch'}}>Search</button>
        </div>
      </div>
    </div>

  {{else}}

  <div class="container " id="advanced_search">

    <form class="form-horizontal">
      <div class="form-group">
        <label for="artist" class="col-sm-2 control-label">Artist</label>
        <div class="col-sm-8">
          {{input type="text" id="artist" value=artist placeholder="Artist" class="form-control"}}
        </div>
      </div>
      <div class="form-group">
        <label for="track" class="col-sm-2 control-label">Song Title</label>
        <div class="col-sm-8">
          {{input type="text" id="track" value=track placeholder="Track" class="form-control"}}
        </div>
      </div>
      <div class="form-group">
        <label for="release" class="col-sm-2 control-label">Album Title</label>
        <div class="col-sm-8">
          {{input type="text" id="album" value=album placeholder="Album" class="form-control"}}
        </div>
      </div>
      <div class="form-group">
        <p class="col-sm-2 control-label"><strong>Attributes</strong></p>
        <div class="col-sm-8">
          <label class="checkbox-inline">
            <input type="checkbox" id="female" value="female">Local
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" id="female" value="female">Female 
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" id="female" value="female">Compilation
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" id="female" value="female">Demo
          </label>
        </div>
      </div>
    </form>
  </div>

  {{/if}}
</div>

<div class="row">
<h2>Results {{#unless currentlyLoading}}<small>({{model.meta.count}})</small>{{/unless}}</h2>
{{#if currentlyLoading}}

<h4><span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> Searching...</h4>

{{else}}

{{#if model.meta.count}}
  {{release-list releaseSelected=(action 'gotoRelease') model=model}}

<nav>
  <ul class="pager">
    {{#if model.meta.previous}}
    <li>{{#link-to (query-params page=model.meta.previous)}}Previous Page{{/link-to}}</li>
    {{else}}
    <li class="disabled"><span>Previous Page</span></li>
    {{/if}}
    {{#if model.meta.next}}
    <li>{{#link-to (query-params page=model.meta.next)}}Next Page{{/link-to}}</li>
    {{else}}
    <li class="disabled"><span>Next Page</span></li>
    {{/if}}
  </ul>
</nav>
{{/if}}
{{/if}}

</div>
<commit_msg>Tweak search results formatting.<commit_after><h1 class="page-header">Search</h1>

<div class="row">
    <div id="basic_search">
      <div class="form-group form-horizontal">
        <label for="quicksearch" class="col-sm-2 control-label">Quick Search</label>
        <div class="col-sm-7">
          {{input type="text" id="quicksearch" value=searchQuery action="quickSearch" placeholder="search artist, album, or track" class="form-control"}}
        </div>
        <div class="col-sm-1">
          <button class="btn btn-default" {{action 'quickSearch'}}>Search</button>
        </div>
      </div>
    </div>
</div>

<div class="row">
<h2>Results {{#if model}}<small>({{model.meta.count}})</small>{{/if}}</h2>
{{#if currentlyLoading}}

<h4><span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> Searching...</h4>

{{else}}

{{#if model.meta.count}}
  {{release-list releaseSelected=(action 'gotoRelease') model=model}}

<nav>
  <ul class="pager">
    {{#if model.meta.previous}}
    <li>{{#link-to (query-params page=model.meta.previous)}}Previous Page{{/link-to}}</li>
    {{else}}
    <li class="disabled"><span>Previous Page</span></li>
    {{/if}}
    {{#if model.meta.next}}
    <li>{{#link-to (query-params page=model.meta.next)}}Next Page{{/link-to}}</li>
    {{else}}
    <li class="disabled"><span>Next Page</span></li>
    {{/if}}
  </ul>
</nav>
{{/if}}
{{/if}}

</div>

{'fraction_non_alphanumeric': 0.21208023439260762, 'fraction_numerical': 0.005859815190443994, 'mean_word_length': 3.2066350710900475, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, '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': '1778121', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1443, 'n_words': 277}