<commit_before>{{/*
  extends: header.html
*/}}

{{ define "heading" }}
  {{ $lower := to_lower . }}
  <h2 id="pkg-{{ $lower }}">{{ . }}
    <a class="doc-anchor slide-up" href="#">{{ fa "caret-up" }}</a>
    <a class="doc-anchor" href="#pkg-{{ $lower }}">{{ fa "link" }}</a>
  </h2>
{{ end }}

{{ define "values" }}
  {{ $p := .Package }}
  {{ range .Values }}
    <pre class="doc">{{ $p.HTMLDecl .Decl }}</pre>
    {{ $p.ScopedHTML .Doc .Decl }}</p>
  {{ end }}
{{ end }}

{{ define "funcs" }}
  {{ $p := .Package }}
  {{ range .Funcs }}
    {{ $id := func_id . }}
    <h4 id="{{ $id }}">func {{ with .Recv }}({{ . }}) {{ end }}{{ .Name }}
      <a class="doc-anchor" href="#{{ $id }}">{{ fa "link" }}</a>
      <a class="doc-anchor" href="{{ reverse "source" ($p.Position .Decl) }}">{{ fa "external-link" }}</a>
    </h4>
    <pre class="doc">{{ $p.HTMLDecl .Decl }}</pre>
    {{ $p.ScopedHTML .Doc .Decl }}</p>
  {{ end }}
{{ end }}


{{ define "content" }}
{{ with .Package }}
  {{ $package := . }}
  <div class="container">
    {{ if .ImportPath }}
      <p>
        <span class="import">import "{{ .ImportPath }}"</span>
        {{ $stats := .DocStats }}
        {{ with $stats }}
          {{ $p := .NormalizedScore }}
          <span data-toggle="tooltip" title="Percentage Documented" class="label label-{{ if lt $p 25 }}danger{{ else if lt $p 50 }}warning{{ else if lt $p 75 }}info{{ else }}success{{ end }}">{{ $p }}%</span>
          {{ if .Undocumented }}
            <a class="show-undocumented" href="#pkg-undocumented" rel="popover">Improve this!</a>
          {{ end }}
        {{ end }}
      </p>
      {{ with $stats }}
        <div id="pkg-undocumented" class="pkg-undocumented">
          <table class="table table-striped">
            <tbody>
              {{ if not .HasDoc }}
              <tr><td>Write this package's <a href="http://blog.golang.org/godoc-documenting-go-code">documentation</a></td><td><span class="label label-success">+{{ .DocScore }}%</span></td></tr>
              {{ end }}
	      {{ range .Undocumented }} 
              <tr><td>Document <a href="#{{ .Id }}">{{ . }}</a></td><td><span class="label label-success">+{{ printf "%.2f" ($stats.Increase .Kind) }}%</span></td></tr>
              {{ end }}
            </tbody>
          </table><commit_msg>Cosmetic change in user visible string<commit_after>{{/*
  extends: header.html
*/}}

{{ define "heading" }}
  {{ $lower := to_lower . }}
  <h2 id="pkg-{{ $lower }}">{{ . }}
    <a class="doc-anchor slide-up" href="#">{{ fa "caret-up" }}</a>
    <a class="doc-anchor" href="#pkg-{{ $lower }}">{{ fa "link" }}</a>
  </h2>
{{ end }}

{{ define "values" }}
  {{ $p := .Package }}
  {{ range .Values }}
    <pre class="doc">{{ $p.HTMLDecl .Decl }}</pre>
    {{ $p.ScopedHTML .Doc .Decl }}</p>
  {{ end }}
{{ end }}

{{ define "funcs" }}
  {{ $p := .Package }}
  {{ range .Funcs }}
    {{ $id := func_id . }}
    <h4 id="{{ $id }}">func {{ with .Recv }}({{ . }}) {{ end }}{{ .Name }}
      <a class="doc-anchor" href="#{{ $id }}">{{ fa "link" }}</a>
      <a class="doc-anchor" href="{{ reverse "source" ($p.Position .Decl) }}">{{ fa "external-link" }}</a>
    </h4>
    <pre class="doc">{{ $p.HTMLDecl .Decl }}</pre>
    {{ $p.ScopedHTML .Doc .Decl }}</p>
  {{ end }}
{{ end }}


{{ define "content" }}
{{ with .Package }}
  {{ $package := . }}
  <div class="container">
    {{ if .ImportPath }}
      <p>
        <span class="import">import "{{ .ImportPath }}"</span>
        {{ $stats := .DocStats }}
        {{ with $stats }}
          {{ $p := .NormalizedScore }}
          <span data-toggle="tooltip" title="Documentation Score" class="label label-{{ if lt $p 25 }}danger{{ else if lt $p 50 }}warning{{ else if lt $p 75 }}info{{ else }}success{{ end }}">{{ $p }}%</span>
          {{ if .Undocumented }}
            <a class="show-undocumented" href="#pkg-undocumented" rel="popover">Improve this!</a>
          {{ end }}
        {{ end }}
      </p>
      {{ with $stats }}
        <div id="pkg-undocumented" class="pkg-undocumented">
          <table class="table table-striped">
            <tbody>
              {{ if not .HasDoc }}
              <tr><td>Write this package's <a href="http://blog.golang.org/godoc-documenting-go-code">documentation</a></td><td><span class="label label-success">+{{ .DocScore }}%</span></td></tr>
              {{ end }}
	      {{ range .Undocumented }} 
              <tr><td>Document <a href="#{{ .Id }}">{{ . }}</a></td><td><span class="label label-success">+{{ printf "%.2f" ($stats.Increase .Kind) }}%</span></td></tr>
              {{ end }}
            </tbody>
          </table>
{'fraction_non_alphanumeric': 0.25848281824076075, 'fraction_numerical': 0.004754700669980549, 'mean_word_length': 2.402941176470588, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '6841692', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1579, 'n_words': 374}