<commit_before>section id="invitations-new"
  header class="row"
    div class="large-12 columns"
      h1= t("users.invitations.new.title")

  div class="row"
    div class="large-5 columns"
      div class="panel"
        header
          h4= t("users.invitations.invited.title")

        - if current_user.invitations.count > 0
          table
            thead
              tr
                th= t("users.invitations.invited.email")
                th= t("users.invitations.invited.status")
            tbody
              - current_user.invitations.order("created_at ASC").each do |user|
                tr
                  td= user.email
                  td
                    - if user.invitation_accepted?
                      span class="success label"
                        = t("users.invitations.invited.confirmed")
                    - else
                      span class="secondary label"
                        = t("users.invitations.invited.unconfirmed")
        - else
          span= t("users.invitations.invited.none")

    div class="large-7 columns"
      div id="invite-area"
        div class="row"
          div class="large-6 columns"
            article class="spiel"
              header
                h5= t("users.invitations.new.spiel.title")

              section class="content"
                = md t("users.invitations.new.spiel.body", \
                  referral_bonus: ISO[:defaults][:upload_referral_bonus])
              
                - if Devise.invitation_limit.present? && Devise.invitation_limit > 0
                  p class="note"
                    = t("users.invitations.new.limit", n: Devise.invitation_limit)
                

          div class="large-6 columns"
            = simple_form_for resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post } do |f|
              = devise_error_messages!

              fieldset
                - resource.class.invite_key_fields.each do |field|
                  = f.input field, required: true, input_html: { autocomplete: "off" }

                = f.button :submit, t("users.invitations.new.invite"), class: "secondary small"


<commit_msg>Remove devise errors because they suck<commit_after>section id="invitations-new"
  header class="row"
    div class="large-12 columns"
      h1= t("users.invitations.new.title")

  div class="row"
    div class="large-5 columns"
      div class="panel"
        header
          h4= t("users.invitations.invited.title")

        - if current_user.invitations.count > 0
          table
            thead
              tr
                th= t("users.invitations.invited.email")
                th= t("users.invitations.invited.status")
            tbody
              - current_user.invitations.order("created_at ASC").each do |user|
                tr
                  td= user.email
                  td
                    - if user.invitation_accepted?
                      span class="success label"
                        = t("users.invitations.invited.confirmed")
                    - else
                      span class="secondary label"
                        = t("users.invitations.invited.unconfirmed")
        - else
          span= t("users.invitations.invited.none")

    div class="large-7 columns"
      div id="invite-area"
        div class="row"
          div class="large-6 columns"
            article class="spiel"
              header
                h5= t("users.invitations.new.spiel.title")

              section class="content"
                = md t("users.invitations.new.spiel.body", \
                  referral_bonus: ISO[:defaults][:upload_referral_bonus])
              
                - if Devise.invitation_limit.present? && Devise.invitation_limit > 0
                  p class="note"
                    = t("users.invitations.new.limit", n: Devise.invitation_limit)
                

          div class="large-6 columns"
            = simple_form_for resource, as: resource_name, url: invitation_path(resource_name), html: { method: :post } do |f|

              fieldset
                - resource.class.invite_key_fields.each do |field|
                  = f.input field, required: true, input_html: { autocomplete: "off" }

                = f.button :submit, t("users.invitations.new.invite"), class: "secondary small"



{'fraction_non_alphanumeric': 0.10509407985314365, 'fraction_numerical': 0.005048187241854061, 'mean_word_length': 1.543173862310385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3820978', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1145, 'n_words': 232}