<commit_before><% title @user.username %>

<h1><%= @user.username %></h1>

<% if @rides.any? %>
  <h3>Rides</h3>

  <table class="table table-striped table-hover table-bordered">
    <thead>
      <tr>
        <th>Date</th>
        <th>Distance</th>
        <th>Description</th>
      </tr>
    </thead>

    <% @rides.each do |ride| %>
      <%= content_tag_for :tr, ride do %>
        <td><%= ride.date %></td>
        <td><%= ride.bike_distance %></td>
        <td><%= ride.description %></td>
        <% if can? :manage, ride %>
          <td><%= link_to "Edit", edit_ride_path(ride) %></td>
        <% end %>
      <% end %>
    <% end %>
  </table>
<% else %>
  <p><%= t "user.rides.empty" %></p>
<% end %>
<commit_msg>Add trip type column to user show page<commit_after><% title @user.username %>

<h1><%= @user.username %></h1>

<% if @rides.any? %>
  <h3>Rides</h3>

  <table class="table table-striped table-hover table-bordered">
    <thead>
      <tr>
        <th>Date</th>
        <th>Distance</th>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>

    <% @rides.each do |ride| %>
      <%= content_tag_for :tr, ride do %>
        <td><%= ride.date %></td>
        <td><%= ride.bike_distance %></td>
        <td><%= trip_type(ride) %></td>
        <td><%= ride.description %></td>
        <% if can? :manage, ride %>
          <td><%= link_to "Edit", edit_ride_path(ride) %></td>
        <% end %>
      <% end %>
    <% end %>
  </table>
<% else %>
  <p><%= t "user.rides.empty" %></p>
<% end %>

{'fraction_non_alphanumeric': 0.236174365647365, 'fraction_numerical': 0.00520494469746259, 'mean_word_length': 2.190871369294606, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, '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': '3075949', 'n_tokens_mistral': 634, 'n_tokens_neox': 578, 'n_words': 123}