<commit_before><% if current_user.owns?(submission) %>
  <div class="btn-group submission-user-actions">
    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
      Manage <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
      <li>
        <% if submission.user.completed?(submission.problem) %>
          <form accept-charset="UTF-8" action="/submissions/<%= submission.key %>/reopen" method="POST">
            <button type="submit" name="reopen" class="btn btn-default">Reopen Exercise</button>
          </form>
        <% else %>
          <form accept-charset="UTF-8" action="/submissions/<%= submission.key %>/done" method="POST">
            <button
              type="submit"
              name="done"
              class="btn btn-default"
              data-toggle="tooltip"
              data-placement="bottom"
              title="I don't need any more feedback on this.">
              Mark as done
            </button>
          </form>
        <% end %>
      </li>

      <% unless submission.state == "hibernating" %>
        <li>
          <form accept-charset="UTF-8" action="/submissions/<%= submission.key %>/hibernate" method="POST">
            <button
              type="submit"
              name="hibernate"
              class="btn btn-default"<commit_msg>Don't show hibernate option on completed exercises<commit_after><% if current_user.owns?(submission) %>
  <div class="btn-group submission-user-actions">
    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
      Manage <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
      <li>
        <% if submission.user.completed?(submission.problem) %>
          <form accept-charset="UTF-8" action="/submissions/<%= submission.key %>/reopen" method="POST">
            <button type="submit" name="reopen" class="btn btn-default">Reopen Exercise</button>
          </form>
        <% else %>
          <form accept-charset="UTF-8" action="/submissions/<%= submission.key %>/done" method="POST">
            <button
              type="submit"
              name="done"
              class="btn btn-default"
              data-toggle="tooltip"
              data-placement="bottom"
              title="I don't need any more feedback on this.">
              Mark as done
            </button>
          </form>
        <% end %>
      </li>

      <% unless submission.state == "hibernating" || submission.state == "done" %>
        <li>
          <form accept-charset="UTF-8" action="/submissions/<%= submission.key %>/hibernate" method="POST">
            <button
              type="submit"
              name="hibernate"
              class="btn btn-default"
{'fraction_non_alphanumeric': 0.15623895369388477, 'fraction_numerical': 0.0021208907741251328, 'mean_word_length': 2.158482142857143, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 55, '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': '4927787', 'n_tokens_mistral': 821, 'n_tokens_neox': 764, 'n_words': 167}