<commit_before><% content_for :javascript do %>
  <%= javascript_include_tag "account" %>
<% end %>

<% content_for :toolbar_secondary do %>
  <%= render partial: 'shared/feedback' %>
  <%= render partial: 'shared/login' %>
<% end %>

<div class="data-access">
  <nav class="data-access-nav">
      <a href="javascript:history.back()"><i class="edsc-icon-arrow-left"></i> Back <%= request.referrer && request.referrer.include?('search') ? 'to Search Session' : '' %></a>
  </nav>
  <header>
    <h1>Saved Projects</h1>
  </header>
  <div class="data-access-content">
    <% if @projects.size == 0 %>
      <p>No saved projects</p>
    <% else %>
      <table class="data-retrievals">
        <thead>
          <tr>
            <th>Project Name</th>
            <th>Information</th>
            <th>Created</th>
            <th>Actions</th>
          </tr>
        </thead>
        <tbody>
          <% @projects.each do |project| %>
          <tr class="<%= cycle("odd", "even") -%>">
            <td>
              <a href="<%= project.url %>"><%= project.name %></a>
            </td>
            <td>
              <%= project.number_datasets %> datasets
            </td>
            <td>
              <%= time_ago_in_words(project.created_at, include_seconds: true).capitalize %> ago
            </td>
            <td><commit_msg>EDSC-157: changed label on table of saved projects<commit_after><% content_for :javascript do %>
  <%= javascript_include_tag "account" %>
<% end %>

<% content_for :toolbar_secondary do %>
  <%= render partial: 'shared/feedback' %>
  <%= render partial: 'shared/login' %>
<% end %>

<div class="data-access">
  <nav class="data-access-nav">
      <a href="javascript:history.back()"><i class="edsc-icon-arrow-left"></i> Back <%= request.referrer && request.referrer.include?('search') ? 'to Search Session' : '' %></a>
  </nav>
  <header>
    <h1>Saved Projects</h1>
  </header>
  <div class="data-access-content">
    <% if @projects.size == 0 %>
      <p>No saved projects</p>
    <% else %>
      <table class="data-retrievals">
        <thead>
          <tr>
            <th>Project Name</th>
            <th>Contents</th>
            <th>Created</th>
            <th>Actions</th>
          </tr>
        </thead>
        <tbody>
          <% @projects.each do |project| %>
          <tr class="<%= cycle("odd", "even") -%>">
            <td>
              <a href="<%= project.url %>"><%= project.name %></a>
            </td>
            <td>
              <%= project.number_datasets %> datasets
            </td>
            <td>
              <%= time_ago_in_words(project.created_at, include_seconds: true).capitalize %> ago
            </td>
            <td>
{'fraction_non_alphanumeric': 0.19142645971914266, 'fraction_numerical': 0.0033259423503325942, 'mean_word_length': 2.0656851642129106, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '1665230', 'n_tokens_mistral': 929, 'n_tokens_neox': 856, 'n_words': 170}