<commit_before><% if related_users && related_users.count > 0 %>
  <h1>Related users</h1>
  <sub>Here are some of the users who interacted with facts in this channel:</sub>
<% else %>
  <h1>Interesting users</h1>
  <sub>Here are some of the users who might be of interest:</sub>
  <% related_users = interesting_users_without( [current_user] + excluded_users, 5) %>
<% end %>

<ul>
  <% related_users.andand.each do |related_user| %>
  	<%= render "home/snippets/user_li", user: related_user %>
  <% end %>
</ul><commit_msg>rendering collections is faster than rendering in a loop<commit_after><% if related_users && related_users.count > 0 %>
  <h1>Related users</h1>
  <sub>Here are some of the users who interacted with facts in this channel:</sub>
<% else %>
  <h1>Interesting users</h1>
  <sub>Here are some of the users who might be of interest:</sub>
  <% related_users = interesting_users_without( [current_user] + excluded_users, 5) %>
<% end %>

<% if related_users %>
  <ul>
    <%= render :partial => "home/snippets/user_li", :collection => related_users, :as => :user %>
  </ul>
<% end %>
{'fraction_non_alphanumeric': 0.15077202543142598, 'fraction_numerical': 0.010899182561307902, 'mean_word_length': 4.482587064676617, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 42, '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': '5518629', 'n_tokens_mistral': 396, 'n_tokens_neox': 359, 'n_words': 109}