<commit_before>  <div id="lock" class="right">
    <% if not @list.user_id %>
      <%= link_to "Lock", "#{request.url}/lock", :method => :post %>
    <% else %>
      <%= link_to "Unlock", "#{request.url}/lock", :method => :post %>
    <% end %>
  </div>
  <h2>
    <%= params[:name] %>
  </h2>

  <%= render 'form' %>

  <p id="errors"><%= params[:errors] %></p>

  <ul id="tasks">
    <%= render :partial => 'task', :collection => @tasks %>
  </ul><commit_msg>Don't display lock when there isnt a list<commit_after>  <div id="lock" class="right">
  <% if not @list.nil? %>
    <% if not @list.user_id %>
      <%= link_to "Lock", "#{request.url}/lock", :method => :post %>
    <% else %>
      <%= link_to "Unlock", "#{request.url}/lock", :method => :post %>
    <% end %>
  <% end %>
  </div>
  <h2>
    <%= params[:name] %>
  </h2>

  <%= render 'form' %>

  <p id="errors"><%= params[:errors] %></p>

  <ul id="tasks">
    <%= render :partial => 'task', :collection => @tasks %>
  </ul>
{'fraction_non_alphanumeric': 0.26814516129032256, 'fraction_numerical': 0.004032258064516129, 'mean_word_length': 2.956175298804781, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 47, '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': '641923', 'n_tokens_mistral': 412, 'n_tokens_neox': 366, 'n_words': 84}