<commit_before><div id="admin">
  <h1>Timer</h1>
  <h2><a href="/admin">Back</a></h2>

  <p>
    Status: <%= Timer.instance.status %> <br>
  </p>

  <ul>
    <% if Timer.instance.status == "cleared" %>
    <li>
      <%= link_to "Start", timer_url(command: "start"), method: "patch" %>
    </li>
    <% end %>
    <% if Timer.instance.status == "started" %>
    <li>
      <%= link_to "Stop", timer_url(command: "stop"), method: "patch" %>
    </li>
    <% end %>
    <% if Timer.instance.status == "ended" %>
    <li>
      <%= link_to "Reset", timer_url(command: "reset"), method: "patch" %>
    </li>
    <% end %>
  </ul>
</div><commit_msg>Adds a confirmation before timer stop<commit_after><div id="admin">
  <h1>Timer</h1>
  <h2><a href="/admin">Back</a></h2>

  <p>
    Status: <%= Timer.instance.status %> <br>
  </p>

  <ul>
    <% if Timer.instance.status == "cleared" %>
    <li>
      <%= link_to "Start", timer_url(command: "start"), method: "patch" %>
    </li>
    <% end %>
    <% if Timer.instance.status == "started" %>
    <li>
      <%= link_to "Stop", timer_url(command: "stop"), method: "patch", data: { confirm: "Why?! Are you sure?" } %>
    </li>
    <% end %>
    <% if Timer.instance.status == "ended" %>
    <li>
      <%= link_to "Reset", timer_url(command: "reset"), method: "patch" %>
    </li>
    <% end %>
  </ul>
</div>
{'fraction_non_alphanumeric': 0.24076809453471196, 'fraction_numerical': 0.005908419497784343, 'mean_word_length': 2.763888888888889, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '5604390', 'n_tokens_mistral': 561, 'n_tokens_neox': 504, 'n_words': 108}