<commit_before><% activities.each do |activity| %>
  <%
    photo_url = if activity.media_content
                  activity.media_content.photo_sizes.where(label: PhotoSize::MEDIUM).first.try(:url)
                else
                  nil
                end
  %>
  <%= link_to activity do %>
    <div class="item">
      <article class="c-card">
        <% if photo_url.present? %>
            <div class="card-pic" style="background-image: url('<%= photo_url %>')"></div>
        <% end %>
        <div class="card-description">
          <h3 class="text -title-card"><%= activity.title %></h3>
          <% if  activity.short_description.present? %>
            <p class="text -summary"><%= activity.short_description %></p>
          <% end %>
            <p class="card-meta">
              <% if activity.status %>
                <span class="text -meta"><%= activity.status %></span>
              <% end %>
              <% if activity.content_type %>
                <span class="text -meta"><%= activity.content_type.title %></span>
              <% end %>
            </p>
        </div><commit_msg>enclosing meta-tag with another condition to avoid empty div<commit_after><% activities.each do |activity| %>
  <%
    photo_url = if activity.media_content
                  activity.media_content.photo_sizes.where(label: PhotoSize::MEDIUM).first.try(:url)
                else
                  nil
                end
  %>
  <%= link_to activity do %>
    <div class="item">
      <article class="c-card">
        <% if photo_url.present? %>
            <div class="card-pic" style="background-image: url('<%= photo_url %>')"></div>
        <% end %>
        <div class="card-description">
          <h3 class="text -title-card"><%= activity.title %></h3>
          <% if  activity.short_description.present? %>
            <p class="text -summary"><%= activity.short_description %></p>
          <% end %>
            <% if activity.status || activity.content_type %>
              <p class="card-meta">
                <% if activity.status %>
                  <span class="text -meta"><%= activity.status %></span>
                <% end %>
                <% if activity.content_type %>
                  <span class="text -meta"><%= activity.content_type.title %></span>
                <% end %>
              </p>
            <% end %>
        </div>
{'fraction_non_alphanumeric': 0.16294736842105262, 'fraction_numerical': 0.0016842105263157896, 'mean_word_length': 1.727898966704937, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '3420749', 'n_tokens_mistral': 711, 'n_tokens_neox': 639, 'n_words': 137}