<commit_before><h1>Your Outfits</h1>

<% @outfits.each do |outfit| %>
  <table class="table table-striped table-hover ">
  <thead>
    <tr>
    <h3>On <%= link_to outfit.date, user_outfit_path(outfit.user_id, outfit.id) %>...</h3>
    <% if !outfit.friends.empty? %>
      <h4>Who Saw You: <%= outfit.friends.map(&:name).to_sentence %></h4>
    <% end %>
    <% if !outfit.clothing_articles.empty? %>
      
        <% outfit.clothing_articles.each do |clothing_article| %>
          <tr><td><%= clothing_article.description %></td></tr>
            
              <tr><th>Category: <%= clothing_article.clothing_category.category %></th></tr>
              <tr><td>Color: <%= clothing_article.color %></td></tr>
            </tr>
          </thead>
        <% end %>
      
    <% end %>
  
  <br>
<% end %>






original-

<% @outfits.each do |outfit| %>
  <div>
    <h3>On <%= link_to outfit.date, user_outfit_path(outfit.user_id, outfit.id) %>...</h3>
    <% if !outfit.friends.empty? %>
      <h4>Who Saw You: <%= outfit.friends.map(&:name).to_sentence %></h4>
    <% end %>
    <% if !outfit.clothing_articles.empty? %>
      <ol>
        <% outfit.clothing_articles.each do |clothing_article| %>
          <li><%= clothing_article.description %>
            <ul>
              <li>Category: <%= clothing_article.clothing_category.category %></li>
              <li>Color: <%= clothing_article.color %></li>
            </ul>
          </li>
        <% end %>
      </ol>
    <% end %>
  </div>
  <br>
<% end %>
<commit_msg>Removes duplicated code on outfits index<commit_after><h1>Your Outfits</h1>

<% @outfits.each do |outfit| %>
  <table class="table table-striped table-hover ">
  <thead>
    <tr>
    <h3>On <%= link_to outfit.date, user_outfit_path(outfit.user_id, outfit.id) %>...</h3>
    <% if !outfit.friends.empty? %>
      <h4>Who Saw You: <%= outfit.friends.map(&:name).to_sentence %></h4>
    <% end %>
    <% if !outfit.clothing_articles.empty? %>
      
        <% outfit.clothing_articles.each do |clothing_article| %>
          <tr><td><%= clothing_article.description %></td></tr>
            
              <tr><th>Category: <%= clothing_article.clothing_category.category %></th></tr>
              <tr><td>Color: <%= clothing_article.color %></td></tr>
            </tr>
          </thead>
        <% end %>
      
    <% end %>
  
  <br>
<% end %>
{'fraction_non_alphanumeric': 0.1968040370058873, 'fraction_numerical': 0.00672834314550042, 'mean_word_length': 2.3041666666666667, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '1056842', 'n_tokens_mistral': 921, 'n_tokens_neox': 811, 'n_words': 137}