<commit_before><template>
  <div class="ui form" @change="$root.fetch()">
    <div class="field">
      <form class="ui action input" @submit.prevent="$root.fetch()">
        <input type="text" v-model="model.query" placeholder="Zoeken..." style="width:100px">
        <button class="ui icon button" :class="{green:model.query}">
          <i class="search icon"></i>
        </button>
      </form>
    </div>
    
    <div v-if="$root.user.email">
      <h3 class="facet-title">Favorieten</h3>
      <a href="#" class="facet-a" :class="{active:name=='$val'}" @click.prevent="restore({name:'$val', state:{status:'in bewerking'}})" v-if="$root.user.validator">Te valideren vondsten</a>
      <a href="#" class="facet-a" :class="{active:model.myfinds}" @click.prevent="restore({name:'$mine', state:{myfinds:true}})">Mijn vondsten</a>
      <a href="#" class="facet-a" :class="{active:name==fav.name}" @click.prevent="restore(fav)" v-for="fav in saved" v-text="fav.name"></a>
    </div>

    <div v-if="statuses" style="margin-top:1rem;"><commit_msg>Change my finds to a toggle<commit_after><template>
  <div class="ui form" @change="$root.fetch()">
    <div class="field">
      <form class="ui action input" @submit.prevent="$root.fetch()">
        <input type="text" v-model="model.query" placeholder="Zoeken..." style="width:100px">
        <button class="ui icon button" :class="{green:model.query}">
          <i class="search icon"></i>
        </button>
      </form>
    </div>
    
    <div v-if="$root.user.email">
      <h3 class="facet-title">Favorieten</h3>
      <a href="#" class="facet-a" :class="{active:name=='$val'}" @click.prevent="restore({name:'$val', state:{status:'in bewerking'}})" v-if="$root.user.validator">Te valideren vondsten</a>
      <a href="#" class="facet-a" :class="{active:model.myfinds}" @click.prevent="toggle('myfinds', true)">Mijn vondsten</a>
      <a href="#" class="facet-a" :class="{active:name==fav.name}" @click.prevent="restore(fav)" v-for="fav in saved" v-text="fav.name"></a>
    </div>

    <div v-if="statuses" style="margin-top:1rem;">
{'fraction_non_alphanumeric': 0.23563218390804597, 'fraction_numerical': 0.005747126436781609, 'mean_word_length': 4.2225, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '3862283', 'n_tokens_mistral': 752, 'n_tokens_neox': 726, 'n_words': 128}