<commit_before><% # You need to pass a local variable called 'manage' that is true or false %>
<% # i.e. like <%= render_partial 'task_list', nil, 'task' => task, 'manage' => true %> %>

<% # if true, the partial will also display edit and destroy buttons %>

  <tr> 
    <td><b><%= task.title %></b></td>
    <td>
      <% for user in task.users %>
      <%= user.name %><br/>
      <% end %>
      </td>
    <td>
      <%= task.repeat == 0 ? "Daily" : '' %>
      <%= task.repeat == 1 ? "Every Sunday" : '' %>
      <%= task.repeat == 2 ? "Every Monday" : '' %>
      <%= task.repeat == 3 ? "Every Tuesday" : '' %>
      <%= task.repeat == 4 ? "Every Wednesday" : '' %>
      <%= task.repeat == 5 ? "Every Thursday" : '' %>
      <%= task.repeat == 6 ? "Every Friday" : '' %>
      <%= task.repeat == 7 ? "Every Saturday" : '' %>
    </td>
    <td>
    <% if task.done_by_schedule %> 
       <%= nice_date task.last_done_date %>
    <% else %>
       <% if manage == true %>
        [<%= link_to 'Just Done', :controller => 'tasks', :action => 'done', :id => task %>]
       <% else %>
        Not done on schedule
       <% end %>
    <% end %>
    </td>
    <td><%= link_to 'Show', :action => 'show', :id => task %></td>
    <% if manage == true %>
    <td><%= link_to 'Edit', :action => 'edit', :id => task %></td>
    <td><%= link_to 'Destroy', { :action => 'destroy', :id => task }, :confirm => 'Are you sure?', :post => true %></td>
    <% end %>
 </tr>
    <commit_msg>Added controller information so that calls to show, edit, and detroy from other pages would still work.<commit_after><% # You need to pass a local variable called 'manage' that is true or false %>
<% # i.e. like <%= render_partial 'task_list', nil, 'task' => task, 'manage' => true %> %>

<% # if true, the partial will also display edit and destroy buttons %>

  <tr> 
    <td><b><%= task.title %></b></td>
    <td>
      <% for user in task.users %>
      <%= user.name %><br/>
      <% end %>
      </td>
    <td>
      <%= task.repeat == 0 ? "Daily" : '' %>
      <%= task.repeat == 1 ? "Every Sunday" : '' %>
      <%= task.repeat == 2 ? "Every Monday" : '' %>
      <%= task.repeat == 3 ? "Every Tuesday" : '' %>
      <%= task.repeat == 4 ? "Every Wednesday" : '' %>
      <%= task.repeat == 5 ? "Every Thursday" : '' %>
      <%= task.repeat == 6 ? "Every Friday" : '' %>
      <%= task.repeat == 7 ? "Every Saturday" : '' %>
    </td>
    <td>
    <% if task.done_by_schedule %> 
       <%= nice_date task.last_done_date %>
    <% else %>
       <% if manage == true %>
        [<%= link_to 'Just Done', :controller => 'tasks', :action => 'done', :id => task %>]
       <% else %>
        Not done on schedule
       <% end %>
    <% end %>
    </td>
    <td><%= link_to 'Show', :controller => 'tasks', :action => 'show', :id => task %></td>
    <% if manage == true %>
    <td><%= link_to 'Edit',  :controller => 'tasks', :action => 'edit', :id => task %></td>
    <td><%= link_to 'Destroy', { :controller => 'tasks', :action => 'destroy', :id => task }, :confirm => 'Are you sure?', :post => true %></td>
    <% end %>
 </tr>
    
{'fraction_non_alphanumeric': 0.23372875921769798, 'fraction_numerical': 0.005129849310676499, 'mean_word_length': 2.3620689655172415, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 128, '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': '1882288', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1022, 'n_words': 306}