<commit_before><div class='hero'>
  <div class='container'>
    <section class='row m-b-md'>
        <div class='col-sm-12'>
          <h2><span class='glyphicon glyphicon-lock' aria-hidden='true'></span> Register <strong>2 Factor Auth</strong></h2>
          <%= I18n.t('authy_register_title', {scope: 'devise'}) %>
          <%= render 'shared/breadcrumb' %>
          <%= render 'shared/social_media' %>
        </div>
    </section>
  </div>
</div>
<div class='sub'>
  <section class='container form-horizontal'>
    <%= verify_authy_form do %>
      <legend><%= I18n.t('submit_token_title', {scope: 'devise'}) %></legend>
      <%= label_tag :token %>
      <%= text_field_tag :token, "", autocomplete: :off, id: 'authy-token' %>
      <label>
        <%= check_box_tag :remember_device %>
        <span><%= I18n.t('remember_device', {scope: 'devise'}) %></span>
      </label>

      <!-- Help tooltip -->
      <!-- You need to configure a help message. -->
      <!-- See documentation: https://github.com/authy/authy-form-helpers#help-tooltip -->
      <script>
        var authyUI = Authy.UI.instance();
        authyUI.setTooltip('Two-Factor', 'Get this 2FA token from your cellphone');
      </script>
      <%= link_to '?', '#', id: 'authy-help' %>

      <%= authy_request_sms_link %>
      <%= submit_tag I18n.t('submit_token', {scope: 'devise'}), class: 'btn' %>
    <% end %>
  </section>
</div>
  <commit_msg>Autofocus form field and remove helper link.<commit_after><div class='hero'>
  <div class='container'>
    <section class='row m-b-md'>
        <div class='col-sm-12'>
          <h2><span class='glyphicon glyphicon-lock' aria-hidden='true'></span> Register <strong>2 Factor Auth</strong></h2>
          <%= I18n.t('authy_register_title', {scope: 'devise'}) %>
          <%= render 'shared/breadcrumb' %>
          <%= render 'shared/social_media' %>
        </div>
    </section>
  </div>
</div>
<div class='sub'>
  <section class='container form-horizontal'>
    <%= verify_authy_form do %>
      <legend><%= I18n.t('submit_token_title', {scope: 'devise'}) %></legend>
      <%= label_tag :token %>
      <%= text_field_tag :token, "", autocomplete: :off, id: 'authy-token', autofocus: true %>
      <label>
        <%= check_box_tag :remember_device %>
        <span><%= I18n.t('remember_device', {scope: 'devise'}) %></span>
      </label>

      <!-- Help tooltip -->
      <!-- You need to configure a help message. -->
      <!-- See documentation: https://github.com/authy/authy-form-helpers#help-tooltip -->
      <!-- <%= link_to '?', '#', id: 'authy-help' %> -->

      <%= authy_request_sms_link %>
      <%= submit_tag I18n.t('submit_token', {scope: 'devise'}), class: 'btn' %>
    <% end %>
  </section>
</div>
  
{'fraction_non_alphanumeric': 0.20813657827824192, 'fraction_numerical': 0.00980748274609517, 'mean_word_length': 2.8410041841004183, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 86, 'https://': 2, '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': '130032', 'n_tokens_mistral': 1007, 'n_tokens_neox': 929, 'n_words': 185}