<commit_before><h1>Listing legs</h1>

<table>
  <thead>
    <tr>
      <th>Location</th>
      <th>Start date</th>
      <th>End date</th>
      <th>Trip</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @legs.each do |leg| %>
      <tr>
        <td><%= leg.location.name %></td>
        <td><%= leg.start_date %></td>
        <td><%= leg.end_date %></td>
        <td><%= leg.trip.name %></td>
        <td><%= link_to 'Show', leg %></td>
        <td><%= link_to 'Edit', edit_leg_path(leg) %></td>
        <td><%= link_to 'Destroy', leg, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Leg', new_trip_leg_path %><commit_msg>leg links to its expenses<commit_after><h1>Listing legs</h1>

<table>
  <thead>
    <tr>
      <th>Location</th>
      <th>Start date</th>
      <th>End date</th>
      <th>Trip</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @legs.each do |leg| %>
      <tr>
        <td><%= link_to leg.location.name, leg_expenses_path(leg) %></td>
        <td><%= leg.start_date %></td>
        <td><%= leg.end_date %></td>
        <td><%= leg.trip.name %></td>
        <td><%= link_to 'Edit', edit_leg_path(leg) %></td>
        <td><%= link_to 'Destroy', leg, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Leg', new_trip_leg_path %>
{'fraction_non_alphanumeric': 0.24209078404401652, 'fraction_numerical': 0.0041265474552957355, 'mean_word_length': 2.3448275862068964, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 94, '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': '2108172', 'n_tokens_mistral': 623, 'n_tokens_neox': 586, 'n_words': 127}