<commit_before><%= render 'search' %>
<section class="column">
  <h3>Rides Matching Your Search</h3>
  <table>
    <thead>
      <tr>
        <% if user_signed_in? %>
          <th>Picture of Driver</th>
        <% end %>
          <th>From:</th>
          <th>To:</th>
          <th>Departs</th>
          <th>Arrives</th>
        <% if user_signed_in? %>
          <th>Seats</th>
          <th>Cost per Seat</th>
          <th>Smoking</th>
          <th>Children</th>
          <th>Preferences</th>
          <th></th>
        <% end %>
      </tr>
    </thead>

    <tbody>
      <% @rides.each do |ride| %>
        <tr>
          <% if user_signed_in? %>
            <td><%= image_tag(ride.userphoto, :alt => "Picture of Driver") %></td>
          <% end %>
            <td><%= ride.departlocation %></td>
            <td><%= ride.arrivelocation %></td>
            <td><%= ride.departtime.to_time.strftime('%a, %b %d, %Y %l:%M%p') %></td>
            <td><%= ride.arrivetime.to_time.strftime('%a, %b %d, %Y %l:%M%p') %></td>
          <% if user_signed_in? %>
            <td><%= ride.seatsavailable %></td>
            <td><%= ride.costperseat %></td>
            <td><%= ride.checked(ride.smoking) %></td>
            <td><%= ride.checked(ride.children) %></td>
            <td><%= ride.preferences %></td>
            <td><%= link_to 'Show', ride %></td>
          <% end %>
        </tr>
      <% end %>
    </tbody>
  </table>
</section>
<commit_msg>Added Join Ride to Ride table<commit_after><%= render 'search' %>
<section class="column">
  <h3>Rides Matching Your Search</h3>
  <table>
    <thead>
      <tr>
        <% if user_signed_in? %>
          <th>Picture of Driver</th>
        <% end %>
          <th>From:</th>
          <th>To:</th>
          <th>Departs</th>
          <th>Arrives</th>
          <th>Join Ride</th>
        <% if user_signed_in? %>
          <th>Seats</th>
          <th>Cost per Seat</th>
          <th>Smoking</th>
          <th>Children</th>
          <th>Preferences</th>
          <th></th>
        <% end %>
      </tr>
    </thead>

    <tbody>
      <% @rides.each do |ride| %>
        <tr>
          <% if user_signed_in? %>
            <td><%= image_tag(ride.userphoto, :alt => "Picture of Driver") %></td>
          <% end %>
            <td><%= ride.departlocation %></td>
            <td><%= ride.arrivelocation %></td>
            <td><%= ride.departtime.to_time.strftime('%a, %b %d, %Y %l:%M%p') %></td>
            <td><%= ride.arrivetime.to_time.strftime('%a, %b %d, %Y %l:%M%p') %></td>
          <% if user_signed_in? %>
            <td><%= ride.seatsavailable %></td>
            <td><%= ride.costperseat %></td>
            <td><%= ride.checked(ride.smoking) %></td>
            <td><%= ride.checked(ride.children) %></td>
            <td><%= ride.preferences %></td>
            <td><%= link_to 'Show', ride %></td>
          <% end %>
        </tr>
      <% end %>
    </tbody>
  </table>
</section>

{'fraction_non_alphanumeric': 0.21888701517706577, 'fraction_numerical': 0.0013490725126475548, 'mean_word_length': 1.6841628959276018, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 167, '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': '7127438', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1047, 'n_words': 203}