<commit_before><div id="history_show">
  <h4><%= @user.username.capitalize %>'s Caravan History</h4>
  <h5>Your Past Trips</h5>
      <div class="col-md-3">Destination</div>
      <div class="col-md-2">Deliveries</div>
      <div class="col-md-3">Update</div>
      <div class="col-md-2">Departing</div>
      <div class="col-md-2">Arriving</div>
  <% @trips.each do |trip| %>
    <%= render partial: '/trips/summary', locals: {trip:trip, history: true} %>
    <% trip.parcels.each do |parcel| %>
     <%= link_to "Review #{parcel.sender.username}", new_parcel_review_path(parcel.id), class: "btn btn-primary nextBtn btn-sm" %>
    <% end %>
  <%end %>
  <h5>Your Past Parcels</h5>
  <div class="row">
    <div class="col-md-3">Description</div>
    <div class="col-md-2">Update</div>
    <div class="col-md-3">Destination </div>
    <div class="col-md-3">Delivery</div>
  </div>
  <% @parcels.each do |parcel| %>
    <%= render partial: '/parcels/summary', locals: {parcel:parcel, history: true} %>
      <div class="col-md-2">
        <%= link_to "Review #{parcel.trip.driver.username} as Driver", new_trip_review_path(parcel.trip.id),class: "btn btn-primary nextBtn btn-xs" %>
      </div>
  <% end %>
</div><commit_msg>Format history to render to same layout as current user for parcel trips<commit_after><div id="history_show">
  <h4><%= @user.username.capitalize %>'s Caravan History</h4>
  <h5>Your Past Trips</h5>
    <div class="row">
      <div class="col-md-3">Destination</div>
      <div class="col-md-2">Deliveries</div>
      <div class="col-md-3">Review</div>
      <div class="col-md-2">Departing</div>
      <div class="col-md-2">Arriving</div>
    </div>
  <% @trips.each do |trip| %>
    <%= render partial: '/trips/summary', locals: {trip:trip, history: true} %>
    <% trip.parcels.each do |parcel| %>
     <%= link_to "Review #{parcel.sender.username}", new_parcel_review_path(parcel.id), class: "btn btn-primary nextBtn btn-sm" %>
    <% end %>
  <%end %>
  <h5>Your Past Parcels</h5>
  <div class="row">
    <div class="col-md-3">Description</div>
    <div class="col-md-2">Review</div>
    <div class="col-md-3">Destination </div>
    <div class="col-md-3">Delivery</div>
  </div>
  <% @parcels.each do |parcel| %>
      <div class="row">
      <%= render partial: '/parcels/summary', locals: {parcel:parcel, history: true} %>
        <div class="col-md-3"></div>
        <div class="col-md-2">
          <%= link_to "Review Driver #{parcel.trip.driver.username}", new_trip_review_path(parcel.trip.id),class: "btn btn-primary nextBtn btn-xs" %>
        </div>
      </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.20787160871226595, 'fraction_numerical': 0.012609858616736722, 'mean_word_length': 3.4448217317487266, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '3845389', 'n_tokens_mistral': 1027, 'n_tokens_neox': 965, 'n_words': 186}