<commit_before>{% extends "page.html" %}
{% block tbody %}
  <tr class="name">
    <th scope="row">name</th>
    <td>{{ work.name }}</td>
  </tr>

  {% if work.published_at %}
    <tr class="published_at">
      <th scope="row">published_at</th>
      <td>{{ work.published_at }}</td>
    </tr>
  {% endif %}

  {% if work.number_of_pages %}
    <tr class="number_of_pages">
      <th scope="row">number_of_pages</th>
      <td>{{ work.number_of_pages }}</td>
    </tr>
  {% endif %}

  {% if work.isbn %}
    <tr class="isbn">
      <th scope="row">isbn</th>
      <td>{{ work.isbn }}</td>
    </tr>
  {% endif %}

  {% if work.awards %}
    <tr class="awards">
      <th scope="row">awards</th>
      <td>
        <ul>
          {% for val in work.awards %}
            <li><a href="{{ url_for('.page', type_='award', title=val.name) }}">{{ val.name }}</a></li>
          {% endfor %}
        </ul>
      </td>
    </tr>
  {% endif %}

  {% if work.genres %}
    <tr class="genres">
      <th scope="row">genres</th>
      <td>
        <ul>
          {% for val in work.genres %}
            <li><a href="{{ url_for('.page', type_='genre', title=val.name) }}">{{ val.name }}</a></li>
          {% endfor %}
        </ul>
      </td>
    </tr>
  {% endif %}

  {% if grouped_credits %}
    <tr class="credits">
      <th role="row">credits</th>
      <td>
        <table>
          <caption>Credits of {{ title }}</caption>
          <thead>
            <tr>
              <th>Team</th>
              <th>Name</th>
              <th>Role</th>
            </tr>
          </thead>
          <tbody>
            {% for team_id, credits in grouped_credits %}
              {% for credit in credits %}
                {% if team_id is none %}
                  <tr>
                    <td colspan="2">{{ credit.person.name }}</td>
                    <td>{{ credit.role.value }}</td>
                  </tr>
                {% else %}
                  <tr>
                    {% if loop.first %}
                      <td rowspan="{{ loop.length }}">
                        {{- credit.team.name -}}
                      </td>
                    {% endif %}
                    <td>{{ credit.person.name }}</td>
                    <td>{{ credit.role.value }}</td>
                  </tr>
                {% endif %}
              {% endfor %}
            {% endfor %}
          </tbody>
        </table>
      </td>
    </tr>
  {% endif %}
{% endblock %}<commit_msg>add missing links<commit_after>{% extends "page.html" %}
{% block tbody %}
  <tr class="name">
    <th scope="row">name</th>
    <td>{{ work.name }}</td>
  </tr>

  {% if work.published_at %}
    <tr class="published_at">
      <th scope="row">published_at</th>
      <td>{{ work.published_at }}</td>
    </tr>
  {% endif %}

  {% if work.number_of_pages %}
    <tr class="number_of_pages">
      <th scope="row">number_of_pages</th>
      <td>{{ work.number_of_pages }}</td>
    </tr>
  {% endif %}

  {% if work.isbn %}
    <tr class="isbn">
      <th scope="row">isbn</th>
      <td>{{ work.isbn }}</td>
    </tr>
  {% endif %}

  {% if work.awards %}
    <tr class="awards">
      <th scope="row">awards</th>
      <td>
        <ul>
          {% for val in work.awards %}
            <li><a href="{{ url_for('.page', type_='award', title=val.name) }}">{{ val.name }}</a></li>
          {% endfor %}
        </ul>
      </td>
    </tr>
  {% endif %}

  {% if work.genres %}
    <tr class="genres">
      <th scope="row">genres</th>
      <td>
        <ul>
          {% for val in work.genres %}
            <li><a href="{{ url_for('.page', type_='genre', title=val.name) }}">{{ val.name }}</a></li>
          {% endfor %}
        </ul>
      </td>
    </tr>
  {% endif %}

  {% if grouped_credits %}
    <tr class="credits">
      <th role="row">credits</th>
      <td>
        <table>
          <caption>Credits of {{ title }}</caption>
          <thead>
            <tr>
              <th>Team</th>
              <th>Name</th>
              <th>Role</th>
            </tr>
          </thead>
          <tbody>
            {% for team_id, credits in grouped_credits %}
              {% for credit in credits %}
                {% if team_id is none %}
                  <tr>
                    <td colspan="2" class="name">
                      <a href="{{ url_for('.page', type_='person', title=credit.person.name) }}">
                        {{- credit.person.name -}}
                      </a>
                    </td>
                    <td class="role">
                      <a href="{{ url_for('.page', type_='role', title=credit.role.value) }}">
                        {{- credit.role.value -}}
                      </a>
                    </td>
                  </tr>
                {% else %}
                  <tr>
                    {% if loop.first %}
                      <td rowspan="{{ loop.length }}" class="team">
                        <a href="{{ url_for('.page', type_='team', title=credit.team.name) }}">
                          {{- credit.team.name -}}
                        </a>
                      </td>
                    {% endif %}
                    <td class="name">
                      <a href="{{ url_for('.page', type_='person', title=credit.person.name) }}">
                        {{- credit.person.name -}}
                      </a>
                    </td>
                    <td class="role">
                      <a href="{{ url_for('.page', type_='role', title=credit.role.value) }}">
                        {{- credit.role.value -}}
                      </a>
                    </td>
                  </tr>
                {% endif %}
              {% endfor %}
            {% endfor %}
          </tbody>
        </table>
      </td>
    </tr>
  {% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.19518900343642612, 'fraction_numerical': 0.0003436426116838488, 'mean_word_length': 1.2311230356458414, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, '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': '5441005', 'n_tokens_mistral': 1985, 'n_tokens_neox': 1771, 'n_words': 361}