<commit_before><% author = post.author_subject %>
<div class="model_with_details">
  <div class="logo">
    <%= link_to (image_tag(author.logo.url , :size => "50x50", :alt => author.name )), author  %>
  </div>
  <div class="sub-block">
    <div class="brief">
    <%= link_to post do%>
      <% text = excerpt(strip_tags(post.text),get_search_query_words.first,:radius => 25) %>
      <% if text.length < 60 %>
        <% text = excerpt(strip_tags(post.text),get_search_query_words.first,:radius => 30 + (60 - text.length)) %>
      <% end %>
      <%= highlight(text,get_search_query_words) %>
      <% end %>
      <br>
    </div>
  </div>
</div><commit_msg>Fixing global search view for post<commit_after><% author = post.author_subject %>
<div class="model_with_details">
  <div class="logo">
    <%= link_to (image_tag(author.logo.url , :size => "50x50", :alt => author.name )), author  %>
  </div>
  <div class="sub-block">
    <div class="brief">
    <%= link_to post do%>
      <% text = excerpt(strip_tags(post.text),get_search_query_words.first,:radius => 25) || "" %>
      <% if text.length < 60 %>
        <% text = excerpt(strip_tags(post.text),get_search_query_words.first,:radius => 30 + (60 - text.length)) || "" %>
      <% end %>
      <%= highlight(text,get_search_query_words) %>
      <% end %>
      <br>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.1992619926199262, 'fraction_numerical': 0.017712177121771217, 'mean_word_length': 3.3184713375796178, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 47, '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': '6534009', 'n_tokens_mistral': 532, 'n_tokens_neox': 475, 'n_words': 84}