<commit_before><% @body_classes << 'assessing' if @body_classes %>
<% content_for :page_title do %><%= join_title @quiz.readable_type, @quiz.quiz_title %><% end %>

<% content_for :meta_tags do %>
  <% if params[:persist_headless] %>
    <meta name="viewport" id="vp" content="initial-scale=1.0,user-scalable=yes,width=device-width">
    <% js_env :MOBILE_UI => true %>
  <% end %>
<% end %>

<% content_for :right_side do %>
  <%= render "quizzes/take_quiz_right_side" %>
<% end %>
<% jammit_css :quizzes, :tinymce %>

<header class="quiz-header">
  <h2><%= @quiz.quiz_title || @quiz.readable_type %></h2>
  <% if @submission.preview? %>
    <h3>
      <i class="icon-warning"></i>
      <%= t('headers.draft_preview',
            "This is a preview of the draft version of the quiz") %>
    </h3>
  <% end %>
  <%= before_label(:started, "Started") %>
  <%= datetime_string(@submission.started_at) %>
  <h2><%= t('quiz_instructions','Quiz Instructions') %></h2>
  <div id="quiz-instructions" class="user_content">
    <%= user_content(@quiz.description) %>
  </div>
</header>

<% js_bundle :take_quiz %>

<% form_tag @quiz_presenter.form_action(session, @current_user), :id => "submit_quiz_form", :class => @quiz_presenter.form_class do %>

<div id="questions" class="assessing">
  <input type="hidden" name="attempt" value="<%= @submission.attempt %>"/>
  <% if @submission.validation_token.present? %>
    <input type="hidden" name="validation_token" value="<%= @submission.validation_token %>"/>
  <% end %>
  <% if @submission.preview? %>
    <input type="hidden" name="preview" value="1"/>
  <% end %>
  <div style="display: none;" id="quiz_urls">
    <a href="<%= context_url(@context, :backup_context_quiz_quiz_submissions_url, @quiz.id) %>?user_id=<%= @current_user && @current_user.id %><%= "&preview=1" if @submission.preview? %>" class="backup_quiz_submission_url">&nbsp;</a>
    <span class="started_at"><%= @submission.started_at.iso8601 %></span>
    <span class="now"><%= ActiveSupport::TimeWithZone.new(Time.now.utc, Time.zone).iso8601 %></span>
    <span class="end_at"><%= @submission.end_at && @submission.end_at.iso8601 %></span>
    <span class="time_limit"><%= @quiz.time_limit || nbsp %></span>
    <span class="time_left"><%= @submission.time_left %></span>
  </div>
<commit_msg>explicitly set quiz form method in attempt to fix 'only post request are allowed'<commit_after><% @body_classes << 'assessing' if @body_classes %>
<% content_for :page_title do %><%= join_title @quiz.readable_type, @quiz.quiz_title %><% end %>

<% content_for :meta_tags do %>
  <% if params[:persist_headless] %>
    <meta name="viewport" id="vp" content="initial-scale=1.0,user-scalable=yes,width=device-width">
    <% js_env :MOBILE_UI => true %>
  <% end %>
<% end %>

<% content_for :right_side do %>
  <%= render "quizzes/take_quiz_right_side" %>
<% end %>
<% jammit_css :quizzes, :tinymce %>

<header class="quiz-header">
  <h2><%= @quiz.quiz_title || @quiz.readable_type %></h2>
  <% if @submission.preview? %>
    <h3>
      <i class="icon-warning"></i>
      <%= t('headers.draft_preview',
            "This is a preview of the draft version of the quiz") %>
    </h3>
  <% end %>
  <%= before_label(:started, "Started") %>
  <%= datetime_string(@submission.started_at) %>
  <h2><%= t('quiz_instructions','Quiz Instructions') %></h2>
  <div id="quiz-instructions" class="user_content">
    <%= user_content(@quiz.description) %>
  </div>
</header>

<% js_bundle :take_quiz %>

<% form_tag @quiz_presenter.form_action(session, @current_user), :id => "submit_quiz_form", :class => @quiz_presenter.form_class, :method => "post" do %>

<div id="questions" class="assessing">
  <input type="hidden" name="attempt" value="<%= @submission.attempt %>"/>
  <% if @submission.validation_token.present? %>
    <input type="hidden" name="validation_token" value="<%= @submission.validation_token %>"/>
  <% end %>
  <% if @submission.preview? %>
    <input type="hidden" name="preview" value="1"/>
  <% end %>
  <div style="display: none;" id="quiz_urls">
    <a href="<%= context_url(@context, :backup_context_quiz_quiz_submissions_url, @quiz.id) %>?user_id=<%= @current_user && @current_user.id %><%= "&preview=1" if @submission.preview? %>" class="backup_quiz_submission_url">&nbsp;</a>
    <span class="started_at"><%= @submission.started_at.iso8601 %></span>
    <span class="now"><%= ActiveSupport::TimeWithZone.new(Time.now.utc, Time.zone).iso8601 %></span>
    <span class="end_at"><%= @submission.end_at && @submission.end_at.iso8601 %></span>
    <span class="time_limit"><%= @quiz.time_limit || nbsp %></span>
    <span class="time_left"><%= @submission.time_left %></span>
  </div>

{'fraction_non_alphanumeric': 0.20864381520119224, 'fraction_numerical': 0.00936768149882904, 'mean_word_length': 5.093385214007782, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 146, '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': '3501425', 'n_tokens_mistral': 1856, 'n_tokens_neox': 1696, 'n_words': 307}