<commit_before><% @title = "Mon journal de critiques" %>

<% unless @reviews.empty? %>
  <table>
    <thead>
      <th>Cote</th>
      <th>Vin</th>
      <th>Critique</th>
      <th></th>
    </thead>
    <tbody>
      <%- @reviews.each do |review| %>
        <tr class="<%= cycle("even", "odd") %>">
          <td class="rating"><%= stars_rating review.rating %></td>
          <td><%= link_to review.wine.name, wine_reviews_path(review.wine) %></td>
          <td><%= format_user_content review.comment %></td>
          <td class="actions">
            <% editable_review?(review) do %>
              <%= link_to "Mettre à jour", edit_wine_review_path(review.wine, review), :title => "Mettre à jour", :class => "update" %>
            <% end %>
            <% editable_review?(review) do %>
              <%= link_to "Supprimer", wine_review_path(review.wine, review), :confirm => ApplicationHelper::DELETE_CONFIRM_MESSAGE, :title => "Supprimer", :method => :delete, :class => "remove" %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

<% end %><commit_msg>made reviews list more like the search results<commit_after><% @title = "Mon journal de critiques" %>

<% unless @reviews.empty? %>
  <table class="reviews">
    <thead>
      <th>Cote</th>
      <th>Vin</th>
      <th>Critique</th>
      <th></th>
    </thead>
    <tbody>
      <%- @reviews.each do |review| %>
        <tr class="<%= cycle("even", "odd") %>">
          <td class="rating"><%= stars_rating review.rating %></td>
          <td class="wine">
            <%= link_to review.wine.name, wine_reviews_url(review.wine), :title => review.wine.name, :class => "name" %>
            <small>
            <%= (review.wine.appellation.name + ", ") unless review.wine.appellation.nil? %> 
            <%= review.wine.region.name unless review.wine.region.nil? %>
          </small>
          </td>
          <td><%= format_user_content review.comment %></td>
          <td class="actions">
            <% editable_review?(review) do %>
              <%= link_to "Mettre à jour", edit_wine_review_path(review.wine, review), :title => "Mettre à jour", :class => "update" %>
            <% end %>
            <% editable_review?(review) do %>
              <%= link_to "Supprimer", wine_review_path(review.wine, review), :confirm => ApplicationHelper::DELETE_CONFIRM_MESSAGE, :title => "Supprimer", :method => :delete, :class => "remove" %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

<% end %>
{'fraction_non_alphanumeric': 0.19333333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 2.3259452411994785, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 99, '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': '4212320', 'n_tokens_mistral': 898, 'n_tokens_neox': 820, 'n_words': 171}