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

<div class="request_listing">
  <div class="request_left">
      <span class="head">
        <% if event.is_incoming_message? %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), incoming_message_path(event.incoming_message) %>
        <% elsif event.is_outgoing_message? and event.event_type == 'followup_sent' %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), outgoing_message_path(event.outgoing_message) %>
        <% elsif event.is_comment? %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), comment_path(event.comment) %>
        <% else %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), request_path(event.info_request) %>
        <% end %>
      </span>
      <div class="requester">
        <%= event_description(event) %>
      </div>
      <span class="bottomline icon_<%= event.info_request.calculate_status %>">
        <strong>
        <%= event.info_request.display_status(cached_value_ok=true) %>
        </strong><br>
      </span>
  </div>
  <div class="request_right">
    <span class="desc">
        <%= highlight_and_excerpt(event.search_text_main(true), @highlight_words, 150) %>
    </span>
  </div>
</div><commit_msg>Only use and/or for control flow<commit_after><% if @highlight_words.nil?
      @highlight_words = []
end %>

<div class="request_listing">
  <div class="request_left">
      <span class="head">
        <% if event.is_incoming_message? %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), incoming_message_path(event.incoming_message) %>
        <% elsif event.is_outgoing_message? && event.event_type == 'followup_sent' %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), outgoing_message_path(event.outgoing_message) %>
        <% elsif event.is_comment? %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), comment_path(event.comment) %>
        <% else %>
            <%= link_to highlight_words(event.info_request.title, @highlight_words), request_path(event.info_request) %>
        <% end %>
      </span>
      <div class="requester">
        <%= event_description(event) %>
      </div>
      <span class="bottomline icon_<%= event.info_request.calculate_status %>">
        <strong>
        <%= event.info_request.display_status(cached_value_ok=true) %>
        </strong><br>
      </span>
  </div>
  <div class="request_right">
    <span class="desc">
        <%= highlight_and_excerpt(event.search_text_main(true), @highlight_words, 150) %>
    </span>
  </div>
</div>
{'fraction_non_alphanumeric': 0.14996368917937544, 'fraction_numerical': 0.002178649237472767, 'mean_word_length': 3.4363929146537844, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '5558701', 'n_tokens_mistral': 935, 'n_tokens_neox': 858, 'n_words': 127}