<commit_before>{%    if mid in result.data.message
%}{%    set message = result.data.message[mid]
%}{%  else
%}{%    set message = None
%}{%  endif
%}{%  set metadata = result.data.metadata[mid]
%}{%  set thread = result.data.threads[metadata.thread_mid]
%}{%  set from = result.data.addresses[metadata.from.aid]
%}{%  if not from
%}{%    set from = {'fn': 'Unknown sender', 'email': ''}
%}{%  endif
%}{%  if metadata.urls.editing
%}{%    set url = metadata.urls.editing
%}{%  else
%}{%    set url = metadata.urls.thread
%}{%  endif
%}
<tr id="pile-message-{{mid}}" class="result{% for tid in metadata.tag_tids %} in_{{result.data.tags[tid].slug}}{% endfor %}" data-state="normal" data-mid="{{mid}}">
  <td class="draggable"></td>
  <td class="avatar">
    <a href="{{url}}"><img src="{{ show_avatar(from) }}"></a>
  </td>
  <td class="from" title='{{metadata.from.fn}} &lt;{{from.address}}&gt;'>
    <a class="item-from" href="{{url}}">{{ metadata.from.fn }}</a>
    {% if thread|length > 1 %}<span class="conversation-count">{{ thread|length }}</span>{% endif %}
  </td>
  <td class="subject">
    {% if show_tags(result.search_terms, metadata.tag_ids) %}
    {% for tid in metadata.tag_tids %}
      {% set tag = result.data.tags[tid] %}
      {% if tag.label and not tag.searched %}
      <a class="pile-message-tag" href="{{url}}" data-tag_name="{{tag.name}}" data-tag_url="{{tag.url}}" data-tag_tid="{{tag.tid}}"><span class="icon-tag"></span> {{tag.name}}</a>
      {% endif %}
      {% endfor %}
    {% endif %}
    <a class="item-subject" href="{{url}}">{{metadata.subject}}</a>
    <span class="item-snippet">{{metadata.snippet}}</span>
  </td>
  <td class="date" valign="top">
    <a href="/search/dates:{{metadata.date}}/">{{metadata.timestamp|elapsed_datetime}}</a>
  </td><commit_msg>Added (no subject) to search results as per Issue #412<commit_after>{%    if mid in result.data.message
%}{%    set message = result.data.message[mid]
%}{%  else
%}{%    set message = None
%}{%  endif
%}{%  set metadata = result.data.metadata[mid]
%}{%  set thread = result.data.threads[metadata.thread_mid]
%}{%  set from = result.data.addresses[metadata.from.aid]
%}{%  if not from
%}{%    set from = {'fn': 'Unknown sender', 'email': ''}
%}{%  endif
%}{%  if metadata.urls.editing
%}{%    set url = metadata.urls.editing
%}{%  else
%}{%    set url = metadata.urls.thread
%}{%  endif
%}
<tr id="pile-message-{{mid}}" class="result{% for tid in metadata.tag_tids %} in_{{result.data.tags[tid].slug}}{% endfor %}" data-state="normal" data-mid="{{mid}}">
  <td class="draggable"></td>
  <td class="avatar">
    <a href="{{url}}"><img src="{{ show_avatar(from) }}"></a>
  </td>
  <td class="from" title='{{metadata.from.fn}} &lt;{{from.address}}&gt;'>
    <a class="item-from" href="{{url}}">{{ metadata.from.fn }}</a>
    {% if thread|length > 1 %}<span class="conversation-count">{{ thread|length }}</span>{% endif %}
  </td>
  <td class="subject">
    {% if show_tags(result.search_terms, metadata.tag_ids) %}
    {% for tid in metadata.tag_tids %}
      {% set tag = result.data.tags[tid] %}
      {% if tag.label and not tag.searched %}
      <a class="pile-message-tag" href="{{url}}" data-tag_name="{{tag.name}}" data-tag_url="{{tag.url}}" data-tag_tid="{{tag.tid}}"><span class="icon-tag"></span> {{tag.name}}</a>
      {% endif %}
      {% endfor %}
    {% endif %}
    <a class="item-subject" href="{{url}}">{% if metadata.subject %}{{metadata.subject}}{% else %}({{_("no subject")}}){% endif %}</a>
    <span class="item-snippet">{{metadata.snippet}}</span>
  </td>
  <td class="date" valign="top">
    <a href="/search/dates:{{metadata.date}}/">{{metadata.timestamp|elapsed_datetime}}</a>
  </td>
{'fraction_non_alphanumeric': 0.2478401727861771, 'fraction_numerical': 0.0013498920086393088, 'mean_word_length': 4.152990264255911, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 61, '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': '7478319', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1322, 'n_words': 258}