<commit_before><div class="card-columns">
  <% @toys.each do |toy| %>
    <div class="card border-secondary mb-3" style="max-width: 20rem;">
      <%= image_tag toy.image.url(:medium), alt: "#{toy.toy_type.humanize}", class: "card-img-top" %>
      <div class="card-body">
        <h4 class="card-title"><%= toy.name %></h4>
        <p class="card-text"><%= toy.description[0..100] + "..."%></p>
      </div>
      <div class="card-footer">
        <%= link_to "Details", toy_path(toy), class: "btn btn-block btn-outline-primary" %>
        <% if is_lendable(toy) %>
        <%= link_to "Borrow", toy_lend_path(toy), method: :post, class: "btn btn-block btn-outline-secondary" %>
        <% end %>
      </div>
    </div>
  <% end %>
</div><commit_msg>toy cards now show if they are borrowed before or not.<commit_after><div class="card-columns">
  <% @toys.each do |toy| %>
    <div class="card border-secondary mb-3" style="max-width: 20rem;">
      <%= image_tag toy.image.url(:medium), alt: "#{toy.toy_type.humanize}", class: "card-img-top" %>
      <div class="card-body">
        <h4 class="card-title"><%= toy.name %></h4>
        <p class="card-text"><%= toy.description[0..100] + "..."%></p>
      </div>
      <div class="card-footer">
        <%= link_to "Details", toy_path(toy), class: "btn btn-block btn-outline-primary" %>
        <% if is_lendable(toy) %>
          <%= link_to "Borrow", toy_lend_path(toy), method: :post, class: "btn btn-block btn-outline-secondary" %>
        <% else %>
          <small class="text-muted">Sorry, already borrowed from someone else.</small>
        <% end %>
      </div>
    </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.21536600120992136, 'fraction_numerical': 0.010889292196007259, 'mean_word_length': 2.873536299765808, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 48, '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': '3846913', 'n_tokens_mistral': 631, 'n_tokens_neox': 584, 'n_words': 123}