<commit_before><h1>Nested Resources for All Tools</h1>

<% @tools.each do |tool| %>
  <ul>
    <li><%= link_to tool.name, tool_path(tool.id) %> | <span class="resources">Resources</span> <% if current_user %>| <%= link_to "Add Resource (AJAX)", new_tool_resource_path(tool.id), :class => 'btn-resources' %><% end %></li>

    <div class="hidden-resources">
      <% tool.resources.each do |resource| %>

      <ul>

          <li><%= link_to resource.name, tool_resource_path(tool, resource) %> | <a href="<%= resource.url %>" target="_blank"><%= resource.url %></a></li>
          <ul>
            <li><%= resource.summary %></li>
          </ul>

      </ul>

      <% end %>
    </div>
  </ul>
<% end %>


<commit_msg>Add bug fix note to tools#index. Delete dev direction.<commit_after><h1>Nested Resources for All Tools</h1>
<p>Note: If the <strong>Resources</strong> toggle does not work, refresh the page! Or fork the repo and fix the bug! :)</p>

<% @tools.each do |tool| %>
  <ul>
    <li><%= link_to tool.name, tool_path(tool.id) %> | <span class="resources">Resources</span> <% if current_user %>| <%= link_to "Add Resource", new_tool_resource_path(tool.id), :class => 'btn-resources' %><% end %></li>

    <div class="hidden-resources">
      <% tool.resources.each do |resource| %>

      <ul>

          <li><%= link_to resource.name, tool_resource_path(tool, resource) %> | <a href="<%= resource.url %>" target="_blank"><%= resource.url %></a></li>
          <ul>
            <li><%= resource.summary %></li>
          </ul>

      </ul>

      <% end %>
    </div>
  </ul>
<% end %>



{'fraction_non_alphanumeric': 0.209375, 'fraction_numerical': 0.0025, 'mean_word_length': 3.022613065326633, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 73, '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': '4415021', 'n_tokens_mistral': 585, 'n_tokens_neox': 534, 'n_words': 133}