<commit_before><% if current_user? %>
  <%= form_for([@exercise, @solution], remote: true, html: {role: 'form'}) do |f| %>
    <div class="field form-group">
      <%= f.editor :content, 'dynamic',
                      class: "form-control #{'editor' if editor_visible }",
                      value: @previous_solution_content,
                      style: 'display: none' %>
      <%= hidden_field_tag(:exercise_language, @exercise.highlight_mode) %>
    </div>
    <div class="actions">
      <%= button_tag (fa_icon :play, text: t(:create_submission)),
                     class: 'btn btn-primary',
                     data: {disable_with: "#{fa_icon 'refresh spin', text: t(:sending_solution)}", normal_text: t(:create_submission)} %>
    </div>
  <% end %>

  <div class="console">
  </div>
<% else %>
  <p><%= t :you_must_sign_in_before_submitting %></p>
<commit_msg>Using tabs for displaying console<commit_after><% if current_user? %>

  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
  </ul>

  <div class="tab-content">
    <div role="tabpanel" class="tab-pane fade in active" id="home">
      <%= form_for([@exercise, @solution], remote: true, html: {role: 'form'}) do |f| %>
        <div class="field form-group">
          <%= f.editor :content, 'dynamic',
                       class: "form-control #{'editor' if editor_visible }",
                       value: @previous_solution_content,
                       style: 'display: none' %>
          <%= hidden_field_tag(:exercise_language, @exercise.highlight_mode) %>
        </div>
        <div class="actions">
          <%= button_tag (fa_icon :play, text: t(:create_submission)),
                         class: 'btn btn-primary',
                         data: {disable_with: "#{fa_icon 'refresh spin', text: t(:sending_solution)}", normal_text: t(:create_submission)} %>
        </div>
      <% end %>
    </div>
    <div role="tabpanel" class="tab-pane fade" id="profile">
      <div class="console">
      </div>
    </div>
  </div>
<% else %>
  <p><%= t :you_must_sign_in_before_submitting %></p>

{'fraction_non_alphanumeric': 0.18087408048463868, 'fraction_numerical': 0.0, 'mean_word_length': 2.7532467532467533, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '5707824', 'n_tokens_mistral': 770, 'n_tokens_neox': 709, 'n_words': 159}