<commit_before>{% extends 'modal-layout.html' %}
{% import 'macros.twig' as scat %}

{% block title %}
  Notes
{% endblock %}

{% block body %}
  <table class="table table-striped">
    {% for note in notes %}
      <tr>
        <td class="col-xs-4 text-right">
          {% if note.kind == 'txn' %}
            {% set txn= note.txn %}
            <a href="{{ path_for('sale', { 'id' : txn.id }) }}">
              Invoice {{ txn.formatted_number }}
            </a>
            <a class="clearfix" href="{{ path_for('person', { 'id' : txn.person_id }) }}">
              {{ txn.owner.friendly_name }}
            </a>
          {% endif %}
        </td>
        <td class="col-xs-8"><commit_msg>Cap height of notes dialog<commit_after>{% extends 'modal-layout.html' %}
{% import 'macros.twig' as scat %}

{% block title %}
  Notes
{% endblock %}

{% block body %}
  {# TODO hardcoded height in here, should be smarter #}
  <table class="table table-striped"
         style="display: block;
                max-height: 500px; overflow: auto; margin-bottom: 0px">
    {% for note in notes %}
      <tr>
        <td class="col-xs-4 text-right">
          {% if note.kind == 'txn' %}
            {% set txn= note.txn %}
            <a href="{{ path_for('sale', { 'id' : txn.id }) }}">
              Invoice {{ txn.formatted_number }}
            </a>
            <a class="clearfix" href="{{ path_for('person', { 'id' : txn.person_id }) }}">
              {{ txn.owner.friendly_name }}
            </a>
          {% endif %}
        </td>
        <td class="col-xs-8">
{'fraction_non_alphanumeric': 0.18849840255591055, 'fraction_numerical': 0.005111821086261981, 'mean_word_length': 1.8786764705882353, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4513586', 'n_tokens_mistral': 551, 'n_tokens_neox': 505, 'n_words': 119}