<commit_before>= form_for @domain do |f|
  -if @domain.errors.any?
    .error
      %p= "#{pluralize(@domain.errors.count, "error")} stopped this domain from being saved:"
      %ul
        - @domain.errors.full_messages.each do |msg|
          %li= msg

  %fieldset
    %legend= t('.details')
    %ul
      %li
        = f.label :name
        = f.text_field :name
        %span.hint= t('.hints.name')
      %li
        = f.label :active
        = f.check_box :active
        %span.hint= t('.hints.active')
      - if can? :manage, Account
        %li
          = f.label :account
          = collection_select(:domain, :account_id, Account.all, :id, :name)

  %fieldset
    %legend= t('.email')
    %ul
      %li
        = f.label :email_active
        = f.check_box :email_active
      %li
        = f.label :email_max_quota
        = f.text_field :email_max_quota
        %span.hint= t('.hints.email_max_quota')
      %li
        = f.label :email_alias
        %select{:name => 'domain[email_alias]'}
          %option{:value => ''}
          - @account.domains.each do |domain|
            - unless domain.new? or !can?(:read, domain) or domain == @domain or domain.email_alias
              %option{:value => domain.name, :selected => (@domain.email_alias == domain.name) && 'selected'}= domain.name
        %span.hint= t('.hints.email_alias', :domain => @domain.name)

  %fieldset
    %legend= t('.dns')
    %ul
      %li
        = f.label :dns_active
        = f.check_box :dns_active

  %fieldset
    %legend= t('.ftp')
    %ul
      %li
        = f.label :ftp_active
        = f.check_box :ftp_active
      %li
        = f.label :passhash
        = f.password_field :passhash, :value => nil<commit_msg>alias domain list<commit_after>= form_for @domain do |f|
  -if @domain.errors.any?
    .error
      %p= "#{pluralize(@domain.errors.count, "error")} stopped this domain from being saved:"
      %ul
        - @domain.errors.full_messages.each do |msg|
          %li= msg

  %fieldset
    %legend= t('.details')
    %ul
      %li
        = f.label :name
        = f.text_field :name
        %span.hint= t('.hints.name')
      %li
        = f.label :active
        = f.check_box :active
        %span.hint= t('.hints.active')
      - if can? :manage, Account
        %li
          = f.label :account
          = collection_select(:domain, :account_id, Account.all, :id, :name)

  %fieldset
    %legend= t('.email')
    %ul
      %li
        = f.label :email_active
        = f.check_box :email_active
      %li
        = f.label :email_max_quota
        = f.text_field :email_max_quota
        %span.hint= t('.hints.email_max_quota')
      %li
        = f.label :email_alias
        %select{:name => 'domain[email_alias]'}
          %option{:value => ''}
          - @account.domains.each do |domain|
            - unless domain.new? or !can?(:read, domain) or domain == @domain or !domain.email_alias.blank?
              %option{:value => domain.name, :selected => (@domain.email_alias == domain.name) && 'selected'}= domain.name
        %span.hint= t('.hints.email_alias', :domain => @domain.name)

  %fieldset
    %legend= t('.dns')
    %ul
      %li
        = f.label :dns_active
        = f.check_box :dns_active

  %fieldset
    %legend= t('.ftp')
    %ul
      %li
        = f.label :ftp_active
        = f.check_box :ftp_active
      %li
        = f.label :passhash
        = f.password_field :passhash, :value => nil
{'fraction_non_alphanumeric': 0.14938846825859056, 'fraction_numerical': 0.0, 'mean_word_length': 1.9663212435233162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5303675', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1160, 'n_words': 249}