<commit_before><% if @highlight_words.nil?
      @highlight_words = []
end %>

<div class="request_listing">
	<span class="head">
        <% if not event.incoming_message.nil? %>
            <%= link_to highlight_words(info_request.title, @highlight_words), incoming_message_url(event.incoming_message) %>
        <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
            <%= link_to highlight_words(info_request.title, @highlight_words), outgoing_message_url(event.outgoing_message) %>
        <% else %>
            <%= link_to highlight_words(info_request.title, @highlight_words), request_url(info_request) %>
        <% end %>
	</span>
    <span class="desc">	
        <%= highlight_and_excerpt(event.search_text_main, @highlight_words, 150) %>
	</span>

    <span class="bottomline icon_<%= info_request.calculate_status %>">

        <strong>
        <%= info_request.display_status %>
        </strong><br>

        <% 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 <commit_msg>Say it is a followup<commit_after><% if @highlight_words.nil?
      @highlight_words = []
end %>

<div class="request_listing">
	<span class="head">
        <% if not event.incoming_message.nil? %>
            <%= link_to highlight_words(info_request.title, @highlight_words), incoming_message_url(event.incoming_message) %>
        <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
            <%= link_to highlight_words(info_request.title, @highlight_words), outgoing_message_url(event.outgoing_message) %>
        <% else %>
            <%= link_to highlight_words(info_request.title, @highlight_words), request_url(info_request) %>
        <% end %>
	</span>
    <span class="desc">	
        <%= highlight_and_excerpt(event.search_text_main, @highlight_words, 150) %>
	</span>

    <span class="bottomline icon_<%= info_request.calculate_status %>">

        <strong>
        <%= info_request.display_status %>
        </strong><br>

        <% 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' %>
            Follow up 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 
{'fraction_non_alphanumeric': 0.1407381855812349, 'fraction_numerical': 0.002069679199724043, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '3743012', 'n_tokens_mistral': 987, 'n_tokens_neox': 874, 'n_words': 144}