<commit_before>﻿<div id="search" class="col s12 m8 l9">
  <form v-on:submit.prevent="search()">
    <div class="input-field col s12">
      <input placeholder="'a -> 'a" id="search_query" v-model="query" type="text" class="required" minlength="1">
      <label for="search_query">Query</label>
    </div>
    <button class="btn tooltipped" v-bind:class="{ 'disabled': ! valid, 'waves-effect': valid, 'waves-light': valid }" data-position="bottom" data-delay="50" data-tooltip="search query requires non empty.">
      <i class="fa fa-search fa-inversex left"></i>
      Search
    </button>
    <div class="preloader-wrapper small active">
      <div class="spinner-layer spinner-green-only" v-bind:class="{ 'hide': hide_progress }">
       <div class="circle-clipper left">
          <div class="circle"></div>
        </div><div class="gap-patch">
          <div class="circle"></div>
        </div><div class="circle-clipper right">
          <div class="circle"></div>
        </div>
      </div>
    </div>
  </form>
  <div class="row" v-bind:class="{ 'hide': searched || raised_error }">
    <div class="col s12 m6">
      <div class="card light-blue darken-2">
        <div class="card-content white-text">
          <span class="card-title">Examples</span>
          <div class="collection">
            <a class="collection-item" v-on:click="search(&quot;'a -&gt; 'a&quot;)">'a -&gt; 'a</a>
            <a class="collection-item" v-on:click="search(&quot;?a -&gt; ?a&quot;)">?a -&gt; ?a</a>
            <a class="collection-item" v-on:click="search(&quot;id : 'a -&gt; 'a&quot;)">id : 'a -&gt; 'a</a>
            <a class="collection-item" v-on:click="search(&quot;map : _&quot;)">map : _</a>
            <a class="collection-item" v-on:click="search(&quot;? -&gt; list&lt;?&gt; -&gt; ?&quot;)">? -&gt; list&lt;?&gt; -&gt; ?</a>
            <a class="collection-item" v-on:click="search(&quot;string =&gt; int&quot;)">string =&gt; int</a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="row" v-bind:class="{ 'hide': ! raised_error }">
    <div class="col s10 m8">
      <div class="card red darken-2">
        <div class="card-content white-text">
          <span class="card-title">Error!</span>
          <pre>{{error_message}}</pre>
          <div class="card-action">
            <a href="https://github.com/pocketberserker/FSDN/issues">
              <span class="octicon octicon-issue-opened"></span>
              Report Issue
            </a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <ul class="collapsible popout" data-collapsible="expandable" v-bind:class="{ 'hide': (! searched) || raised_error }">
    <li v-for="result in search_results">
      <div class="collapsible-header">
        <span>{{ result.api.name }}: {{ result.api.signature }}</span>
        <br>
        <span id="type_constraints" v-if="result.api.type_constraints">{{ result.api.type_constraints }}</span>
      </div>
      <div class="collapsible-body">
        <ul class="collection" id="assembly_info">
          <li class="collection-item" id="distance">distance: {{ result.distance }}</li>
          <li class="collection-item" id="kind">kind: {{ result.api.kind }}</li>
        </ul>
      </div>
    </li>
  </ul>
</div>
<div id="search_options" class="col s12 m4 l3">
  <p>
    <input type="checkbox" class="filled-in" v-model="strict" id="strict" />
    <label for="strict">strict</label>
  </p>
  <p>
    <input type="checkbox" class="filled-in" v-model="similarity" id="similarity" />
    <label for="similarity">similarity</label>
  </p>
  <p>
    <input type="checkbox" class="filled-in" v-model="ignore_arg_style" id="ignore_arg_style" />
    <label for="ignore_arg_style">ignore-argstyle</label>
  </p>
  <div class="card light-blue darken-2">
    <div class="card-content white-text">
      <span class="card-title">Target Assemblies</span>
      <div class="collection">
        <p class="collection-item" v-for="assembly in all_assemblies">
          <input type="checkbox" class="filled-in" id="{{assembly.name}}" value="{{assembly.name}}" v-model="assembly.checked" />
          <label for="{{assembly.name}}">{{assembly.name}}</label>
        </p>
      </div>
    </div>
  </div>
</div>
<commit_msg>add example<commit_after>﻿<div id="search" class="col s12 m8 l9">
  <form v-on:submit.prevent="search()">
    <div class="input-field col s12">
      <input placeholder="'a -> 'a" id="search_query" v-model="query" type="text" class="required" minlength="1">
      <label for="search_query">Query</label>
    </div>
    <button class="btn tooltipped" v-bind:class="{ 'disabled': ! valid, 'waves-effect': valid, 'waves-light': valid }" data-position="bottom" data-delay="50" data-tooltip="search query requires non empty.">
      <i class="fa fa-search fa-inversex left"></i>
      Search
    </button>
    <div class="preloader-wrapper small active">
      <div class="spinner-layer spinner-green-only" v-bind:class="{ 'hide': hide_progress }">
       <div class="circle-clipper left">
          <div class="circle"></div>
        </div><div class="gap-patch">
          <div class="circle"></div>
        </div><div class="circle-clipper right">
          <div class="circle"></div>
        </div>
      </div>
    </div>
  </form>
  <div class="row" v-bind:class="{ 'hide': searched || raised_error }">
    <div class="col s12 m6">
      <div class="card light-blue darken-2">
        <div class="card-content white-text">
          <span class="card-title">Examples</span>
          <div class="collection">
            <a class="collection-item" v-on:click="search(&quot;'a -&gt; 'a&quot;)">'a -&gt; 'a</a>
            <a class="collection-item" v-on:click="search(&quot;?a -&gt; ?a&quot;)">?a -&gt; ?a</a>
            <a class="collection-item" v-on:click="search(&quot;id : 'a -&gt; 'a&quot;)">id : 'a -&gt; 'a</a>
            <a class="collection-item" v-on:click="search(&quot;map : _&quot;)">map : _</a>
            <a class="collection-item" v-on:click="search(&quot;? -&gt; list&lt;?&gt; -&gt; ?&quot;)">? -&gt; list&lt;?&gt; -&gt; ?</a>
            <a class="collection-item" v-on:click="search(&quot;string =&gt; int&quot;)">string =&gt; int</a>
            <a class="collection-item" v-on:click="search(&quot;(|_|) : Expr -&gt; ?&quot;)">(|_|) : Expr -&gt; ?</a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="row" v-bind:class="{ 'hide': ! raised_error }">
    <div class="col s10 m8">
      <div class="card red darken-2">
        <div class="card-content white-text">
          <span class="card-title">Error!</span>
          <pre>{{error_message}}</pre>
          <div class="card-action">
            <a href="https://github.com/pocketberserker/FSDN/issues">
              <span class="octicon octicon-issue-opened"></span>
              Report Issue
            </a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <ul class="collapsible popout" data-collapsible="expandable" v-bind:class="{ 'hide': (! searched) || raised_error }">
    <li v-for="result in search_results">
      <div class="collapsible-header">
        <span>{{ result.api.name }}: {{ result.api.signature }}</span>
        <br>
        <span id="type_constraints" v-if="result.api.type_constraints">{{ result.api.type_constraints }}</span>
      </div>
      <div class="collapsible-body">
        <ul class="collection" id="assembly_info">
          <li class="collection-item" id="distance">distance: {{ result.distance }}</li>
          <li class="collection-item" id="kind">kind: {{ result.api.kind }}</li>
        </ul>
      </div>
    </li>
  </ul>
</div>
<div id="search_options" class="col s12 m4 l3">
  <p>
    <input type="checkbox" class="filled-in" v-model="strict" id="strict" />
    <label for="strict">strict</label>
  </p>
  <p>
    <input type="checkbox" class="filled-in" v-model="similarity" id="similarity" />
    <label for="similarity">similarity</label>
  </p>
  <p>
    <input type="checkbox" class="filled-in" v-model="ignore_arg_style" id="ignore_arg_style" />
    <label for="ignore_arg_style">ignore-argstyle</label>
  </p>
  <div class="card light-blue darken-2">
    <div class="card-content white-text">
      <span class="card-title">Target Assemblies</span>
      <div class="collection">
        <p class="collection-item" v-for="assembly in all_assemblies">
          <input type="checkbox" class="filled-in" id="{{assembly.name}}" value="{{assembly.name}}" v-model="assembly.checked" />
          <label for="{{assembly.name}}">{{assembly.name}}</label>
        </p>
      </div>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.20684977958630044, 'fraction_numerical': 0.004973437323386459, 'mean_word_length': 2.7317587515816113, 'pattern_counts': {'":': 0, '<': 245, '<?xml version=': 0, '>': 247, 'https://': 2, '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': '6854326', 'n_tokens_mistral': 3022, 'n_tokens_neox': 2945, 'n_words': 588}