<commit_before><% @title = @form.name %>

<% locale_was = I18n.locale; I18n.locale = @lang %>
<div class="sms_guide">
  <div class="header"><%= t("sms_form.guide.header") %></div>
  <h1 class="printable"><%= title %></h1>
  <div class="controls">
    <form>
      <input type="hidden" name="sms_guide" value="1">
      <%= t("common.language") %>:
      <select name="lang" onchange="this.form.submit();">
        <%= configatron.full_locales.collect{|l| content_tag(:option, language_name(l),
          {:value => l}.merge(@lang.to_s == l.to_s ? {:selected => "selected"} : {}))}.reduce(:<<) %>
      </select>
    </form>

    <%= link_to(t("page_titles.sms_tests.all"), new_sms_test_path) if can?(:create, Sms::Test) %>
  </div>
  <table>
    <tr>
      <td colspan="2" class="user-field">
        <%= Response.human_attribute_name(:user_id) %>: _________________________________________
      </td>
    </tr>
    <tr>
      <td colspan="2" class="step1">
        <strong><%= t("common.step") %> 1:</strong> <%= t("sms_form.guide.step1") %>
        <%= t(@form.all_required? ? "sms_form.guide.all_required" : "sms_form.guide.not_all_required") %>
      </td>
      <td class="answers"></td>
    </tr>
    <tr>
      <td class="rank"></td>
      <td class="pointer">
        <em><%= t("sms_form.guide.unique_code") %> </em>
      </td>
      <td class="answers">
        <%= answer_space(@form.current_version.code) %>
      </td>
    </tr>

    <%# loop over each question %>
    <% @form.smsable_questionings.each do |qing| %>
      <tr>
        <td class="rank"><%= qing.rank %>.</td>
        <td class="question">
          <%= qing.question.name %>
          <%= reqd_sym if qing.required? %>
        </td>
        <td class="answers">
          <%= answer_space(" #{qing.rank}.") %>
        </td>
      </tr><commit_msg>2716: Fix questions numbering on sms guide.<commit_after><% @title = @form.name %>

<% locale_was = I18n.locale; I18n.locale = @lang %>
<div class="sms_guide">
  <div class="header"><%= t("sms_form.guide.header") %></div>
  <h1 class="printable"><%= title %></h1>
  <div class="controls">
    <form>
      <input type="hidden" name="sms_guide" value="1">
      <%= t("common.language") %>:
      <select name="lang" onchange="this.form.submit();">
        <%= configatron.full_locales.collect{|l| content_tag(:option, language_name(l),
          {:value => l}.merge(@lang.to_s == l.to_s ? {:selected => "selected"} : {}))}.reduce(:<<) %>
      </select>
    </form>

    <%= link_to(t("page_titles.sms_tests.all"), new_sms_test_path) if can?(:create, Sms::Test) %>
  </div>
  <table>
    <tr>
      <td colspan="2" class="user-field">
        <%= Response.human_attribute_name(:user_id) %>: _________________________________________
      </td>
    </tr>
    <tr>
      <td colspan="2" class="step1">
        <strong><%= t("common.step") %> 1:</strong> <%= t("sms_form.guide.step1") %>
        <%= t(@form.all_required? ? "sms_form.guide.all_required" : "sms_form.guide.not_all_required") %>
      </td>
      <td class="answers"></td>
    </tr>
    <tr>
      <td class="rank"></td>
      <td class="pointer">
        <em><%= t("sms_form.guide.unique_code") %> </em>
      </td>
      <td class="answers">
        <%= answer_space(@form.current_version.code) %>
      </td>
    </tr>

    <%# loop over each question %>
    <% @form.smsable_questionings.each do |qing| %>
      <tr>
        <td class="rank"><%= qing.full_dotted_rank %>.</td>
        <td class="question">
          <%= qing.question.name %>
          <%= reqd_sym if qing.required? %>
        </td>
        <td class="answers">
          <%= answer_space(" #{qing.rank}.") %>
        </td>
      </tr>
{'fraction_non_alphanumeric': 0.22282314764737696, 'fraction_numerical': 0.0075716603569497025, 'mean_word_length': 2.774489795918367, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, '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': '4020962', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1317, 'n_words': 219}