<commit_before><p class="request_listing">

    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].include?('title') %>
        <%= link_to @highlighting['InfoRequestEvent'][event.id]["title"], request_url(info_request) %>
        <% @highlighting['InfoRequestEvent'][event.id].delete("title") %>
    <% elsif not event.incoming_message.nil? %>
        <%= link_to "Response to '" + h(info_request.title) + "'", incoming_message_url(event.incoming_message) %>
    <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
        <%= link_to "Follow up message for '" + h(info_request.title) + "'", outgoing_message_url(event.outgoing_message) %>
    <% else %>
        <%= link_to h(info_request.title), request_url(info_request) %>
    <% end %>

    <br>
    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].size > 0 %>
        <%= @highlighting['InfoRequestEvent'][event.id].values.join(" ") %>
    <% elsif not event.outgoing_message.nil? %>
        <%= excerpt(event.outgoing_message.body_without_salutation, "", 150) %>
    <% elsif not event.incoming_message.nil? %>
        <%= excerpt(event.incoming_message.get_body_for_quoting, "", 150) %>
    <% else %>
        <%= excerpt(info_request.initial_request_text, "", 150) %>
    <% end %>
    <br>

    <span class="request_listing_bottomline">

        <% if event.event_type == 'sent' %>
            Request sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'followup_sent' %>
            Sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'response' %>
            <% if event.calculated_state.nil? %>
                Response 
            <% else %>
                <%=event.display_status %>
            <% end %>
            by <%= public_body_link(info_request.public_body) %>
            to <%= user_link(info_request.user) %>
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>

        on <%= simple_date(event.created_at) %>.
    </span>
</p>

<commit_msg>Show current status on the original sent things, so lists of requests are better.<commit_after><p class="request_listing">

    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].include?('title') %>
        <%= link_to @highlighting['InfoRequestEvent'][event.id]["title"], request_url(info_request) %>
        <% @highlighting['InfoRequestEvent'][event.id].delete("title") %>
    <% elsif not event.incoming_message.nil? %>
        <%= link_to "Response to '" + h(info_request.title) + "'", incoming_message_url(event.incoming_message) %>
    <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
        <%= link_to "Follow up message for '" + h(info_request.title) + "'", outgoing_message_url(event.outgoing_message) %>
    <% else %>
        <%= link_to h(info_request.title), request_url(info_request) %>
    <% end %>

    <br>
    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].size > 0 %>
        <%= @highlighting['InfoRequestEvent'][event.id].values.join(" ") %>
    <% elsif not event.outgoing_message.nil? %>
        <%= excerpt(event.outgoing_message.body_without_salutation, "", 150) %>
    <% elsif not event.incoming_message.nil? %>
        <%= excerpt(event.incoming_message.get_body_for_quoting, "", 150) %>
    <% else %>
        <%= excerpt(info_request.initial_request_text, "", 150) %>
    <% end %>
    <br>

    <span class="request_listing_bottomline">

        <% if event.event_type == 'sent' %>
            <strong>
            <%= info_request.display_status %>
            </strong>
            Request sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'followup_sent' %>
            Sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'response' %>
            <% if event.calculated_state.nil? %>
                Response 
            <% else %>
                <%=event.display_status %>
            <% end %>
            by <%= public_body_link(info_request.public_body) %>
            to <%= user_link(info_request.user) %>
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>

        on <%= simple_date(event.created_at) %>.
    </span>
</p>


{'fraction_non_alphanumeric': 0.16388174807197944, 'fraction_numerical': 0.004284490145672665, 'mean_word_length': 2.852310231023102, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 92, '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': '523621', 'n_tokens_mistral': 1629, 'n_tokens_neox': 1413, 'n_words': 224}