<commit_before><table class="results-table">
{{range .wordList}}
  {{$entry := .}}
  <tr class="word">
    <td class="title">
      <a class="main-entry" href="/{{$entry.Japanese}}">{{html $entry.JapaneseHL}}</a>
      {{if $entry.Common}}
      <div class="label label-success label-common">common</div>
      {{end}}
      <span class="reading">
        {{if eq $entry.Furigana $entry.Japanese}}
        {{else}}
        <a class="furigana-entry" href="/{{$entry.Furigana}}">{{html $entry.FuriganaHL}}</a>
        {{end}}
      </span>
    </td>
    <td class="definition">
      {{range $i, $gloss := $entry.EnglishHL}}
        <div class="gloss">{{add $i 1}}. <a class="english-entry" href="/{{get $entry.English $i}}">{{html $gloss}}</a></div>
      {{end}}
    </td>
  </div>
  </tr>
{{end}}
</table><commit_msg>Add save button for logged in users<commit_after><table class="results-table">
{{$user := .user}}
{{range .wordList}}
  {{$entry := .}}
  <tr class="word">
    <td class="title">
      <a class="main-entry" href="/{{$entry.Japanese}}">{{html $entry.JapaneseHL}}</a>
      {{if $entry.Common}}
      <div class="label label-success label-common">common</div>
      {{end}}
      <span class="reading">
        {{if eq $entry.Furigana $entry.Japanese}}
        {{else}}
        <a class="furigana-entry" href="/{{$entry.Furigana}}">{{html $entry.FuriganaHL}}</a>
        {{end}}
      </span>
    </td>
    <td class="definition">
      {{range $i, $gloss := $entry.EnglishHL}}
        <div class="gloss">{{add $i 1}}. <a class="english-entry" href="/{{get $entry.English $i}}">{{html $gloss}}</a></div>
      {{end}}
    </td>

    {{if $user}}
    <td class="save">
      {{if contains $entry.Japanese $user.Words}}
      <span>Saved</span>
      {{else}}
      <a class="btn btn-save" data-value="{{ $entry.Japanese }}" data-action="save" href="#">Save</a>
      {{end}}
    </td>
    {{end}}
  </div>
  </tr>
{{end}}
</table>
{'fraction_non_alphanumeric': 0.24730077120822622, 'fraction_numerical': 0.0010282776349614395, 'mean_word_length': 2.9552845528455283, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '4520688', 'n_tokens_mistral': 713, 'n_tokens_neox': 681, 'n_words': 139}