<commit_before><div class="newsletter-signup">
  <%= form_tag(newsletter_subscription_path, class: 'newsletter', remote: true) do %>
    <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
    <fieldset>
      <legend class="newsletter-signup__heading"><%= t('newsletter_subscriptions.title') %></legend>

      <ul class="newsletter-signup__benefits-list list-benefits">
        <% t('newsletter_subscriptions.benefits').each do |benefit| %>
          <li><%= benefit %></li>
        <% end %>
      </ul>

      <div class="newsletter-signup__form js-newsletter-form">
        <%= label_tag('subscription[email]', 'Email address', class: 'newsletter-signup__form-label') %>
        <%= text_field_tag('subscription[email]', nil, class: 'js-newsletter-input newsletter-signup__input', placeholder: '<EMAIL>') %>
        <%= button_tag('Sign up', type: 'submit', class: 'button button--inline-input newsletter-signup__button') %>
      </div>
    </fieldset>
  <% end %>
</div><commit_msg>Restructure the newsletter signup HTML<commit_after><%= form_tag(newsletter_subscription_path, class: 'newsletter-signup', remote: true) do %>
  <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>

  <h2 class="newsletter-signup__heading"><%= t('newsletter_subscriptions.title') %></h2>

  <ul class="newsletter-signup__benefits-list list-benefits">
    <% t('newsletter_subscriptions.benefits').each do |benefit| %>
      <li><%= benefit %></li>
    <% end %>
  </ul>

  <fieldset class="newsletter-signup__form js-newsletter-form">
    <legend class="visually-hidden">Sign up to our newsletter</legend>
    <div class="">
      <%= label_tag('subscription[email]', 'Email address', class: 'newsletter-signup__form-label') %>
      <%= text_field_tag('subscription[email]', nil, class: 'js-newsletter-input newsletter-signup__input', placeholder: '<EMAIL>') %>
      <%= button_tag('Sign up', type: 'submit', class: 'button button--inline-input newsletter-signup__button') %>
    </div>
  </fieldset>
<% end %>
{'fraction_non_alphanumeric': 0.1738703339882122, 'fraction_numerical': 0.0009823182711198428, 'mean_word_length': 4.674094707520891, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '5618864', 'n_tokens_mistral': 699, 'n_tokens_neox': 641, 'n_words': 116}