<commit_before><h1>Listing tasks</h1>

<table>
  <tr>
    <th>Task</th>
    <th>Fact</th>
    <th>Difficulty</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <tr>
    <td><%= @random.task %></td>
    <td><%= @random.fact %></td>
    <td><%= @random.difficulty %></td>
  </tr>
</table>

<br />

<%= link_to 'Skip for now', tasks_path %>

<br />

<%= link_to 'Already Done', :controller => 'completed_tasks', :action => 'completed' %>  

<br />
<% link_to 'New Task', new_task_path %>
<commit_msg>Only show 'already done' on tasks for logged-in users<commit_after><h1>Listing tasks</h1>

<table>
  <tr>
    <th>Task</th>
    <th>Fact</th>
    <th>Difficulty</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <tr>
    <td><%= @random.task %></td>
    <td><%= @random.fact %></td>
    <td><%= @random.difficulty %></td>
  </tr>
</table>

<br />

<%= link_to 'Skip for now', tasks_path %>

<br />

<% if user_signed_in? %>
  <%= link_to 'Already Done', :controller => 'completed_tasks', :action => 'completed' %>
<% else %>
  Sign up to track your progress!
  <a href="users/sign_up"><button class="btn btn-info btn-large">sign up now >></button></a>
<% end %>

<br />
<% link_to 'New Task', new_task_path %>

<br />


{'fraction_non_alphanumeric': 0.248371335504886, 'fraction_numerical': 0.003257328990228013, 'mean_word_length': 3.152027027027027, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 87, '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': '4202774', 'n_tokens_mistral': 541, 'n_tokens_neox': 504, 'n_words': 111}