<commit_before><% size ||= :mini %>
<% itemprop ||= nil %>

<% if image && image.attachment? %>
  <% if itemprop %>
    <%= image_tag image.attachment(size), itemprop: itemprop %>
  <% else %>
    <%= image_tag image.attachment(size) %>
  <% end %>
<% else %>
  <span class="image-placeholder <%= size %>"></span>
<% end %><commit_msg>Use new image interface in frontend image partial<commit_after><% size ||= :mini %>
<% itemprop ||= nil %>

<% if image_url = image.try(:url, size)  %>
  <% if image_alt = image.try(:alt) %>
    <%= image_tag image_url, alt: image_alt, itemprop: itemprop %>
  <% else %>
    <%= image_tag image_url, itemprop: itemprop %>
  <% end %>
<% else %>
  <span class="image-placeholder <%= size %>"></span>
<% end %>
{'fraction_non_alphanumeric': 0.21668909825033647, 'fraction_numerical': 0.0, 'mean_word_length': 3.9271523178807946, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '6979106', 'n_tokens_mistral': 290, 'n_tokens_neox': 245, 'n_words': 61}