<commit_before>- if @domain.errors.any?
  .alert.alert-error.fade.in
    a.close data-dismiss="alert" href="#" &times;
    h2
      => pluralize(@domain.errors.count, "error")
      | prohibited this domain from being saved:

    ul
      - @domain.errors.full_messages.each do |msg|
        li= msg

= form_for @domain do |form|
  .form-group
    = form.label :name
    = form.text_field :name, class: 'form-control'

  .form-group
    = form.label :organisation
    = form.collection_select :organisation_id, Organisation.order('name'), :id, :name, {}, class: 'form-control'

  .form-group
    = form.label :registered_on
    = form.date_select :registered_on, order: [:day, :month, :year]

  .form-group
    label for="domain_with_us_true" With us?
    = form.radio_button :with_us, true, class: 'radio'
    label for="domain_with_us_true" Yes
    = form.radio_button :with_us, false, class: 'radio'
    label for="domain_with_us" No

  .form-group
    = form.label :forwarding, 'Forwards to'
    = form.collection_select :forwarding_id, @domain.organisation.domains, :id, :name, {prompt: 'No forwarding'}, class: 'form-control'

  .form-actions
    = form.submit class: 'btn btn-primary'<commit_msg>Better range for domain registration year<commit_after>- if @domain.errors.any?
  .alert.alert-error.fade.in
    a.close data-dismiss="alert" href="#" &times;
    h2
      => pluralize(@domain.errors.count, "error")
      | prohibited this domain from being saved:

    ul
      - @domain.errors.full_messages.each do |msg|
        li= msg

= form_for @domain do |form|
  .form-group
    = form.label :name
    = form.text_field :name, class: 'form-control'

  .form-group
    = form.label :organisation
    = form.collection_select :organisation_id, Organisation.order('name'), :id, :name, {}, class: 'form-control'

  .form-group
    = form.label :registered_on
    = form.date_select :registered_on, order: [:day, :month, :year], start_year: Date.today.year - 10, end_year: Date.today.year

  .form-group
    label for="domain_with_us_true" With us?
    = form.radio_button :with_us, true, class: 'radio'
    label for="domain_with_us_true" Yes
    = form.radio_button :with_us, false, class: 'radio'
    label for="domain_with_us" No

  .form-group
    = form.label :forwarding, 'Forwards to'
    = form.collection_select :forwarding_id, @domain.organisation.domains, :id, :name, {prompt: 'No forwarding'}, class: 'form-control'

  .form-actions
    = form.submit class: 'btn btn-primary'
{'fraction_non_alphanumeric': 0.13987975951903808, 'fraction_numerical': 0.0016032064128256513, 'mean_word_length': 3.481149012567325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3931061', 'n_tokens_mistral': 872, 'n_tokens_neox': 834, 'n_words': 197}