<commit_before>= content_for :title do
  Backup Network Access

= simple_form_for @rbac, url: plugin('networking').backup_networks_path, method: :post, remote: request.xhr?, html: {data: {modal: true} } do |f|

  %div{class: modal? ? 'modal-body' : ''}
    - unless @rbac.errors.blank?
      %p.alert.alert-error= @rbac.errors.full_messages.to_sentence

    %p
      - if @backup_network
        Assign the backup network <b>#{@backup_network.name}</b> to my project <b>#{@scoped_project_name}</b>.
      - else
        No backup network found for this domain.  

  %div.buttons{class: modal? ? 'modal-footer' : ''}
    %button.btn.btn-default{ type: 'button', data: { dismiss:'modal' }, aria: { label: 'Cancel' } } Cancel
    %button{ type: 'submit', class: 'btn btn-primary', data: { disable_with: 'Please wait...'} } Assign Network<commit_msg>Error handling for domains with non-standard backup network names<commit_after>= content_for :title do
  Backup Network Access

= simple_form_for @rbac, url: plugin('networking').backup_networks_path, method: :post, remote: request.xhr?, html: {data: {modal: true} } do |f|

  %div{class: modal? ? 'modal-body' : ''}
    - unless @rbac.errors.blank?
      %p.alert.alert-error= @rbac.errors.full_messages.to_sentence

    %p
      - if @backup_network
        Assign the backup network <b>#{@backup_network.name}</b> to my project <b>#{@scoped_project_name}</b>.
      - else
        The backup network cannot be automatically assigned in this domain. Please open a support ticket so our support staff can take care of this for you.

  %div.buttons{class: modal? ? 'modal-footer' : ''}
    - if @backup_network
      %button.btn.btn-default{ type: 'button', data: { dismiss:'modal' }, aria: { label: 'Cancel' } } Cancel
      %button{ type: 'submit', class: 'btn btn-primary', data: { disable_with: 'Please wait...'} } Assign Network
    - else
      %button.btn.btn-default{ type: 'button', data: { dismiss:'modal' }, aria: { label: 'Close' } } Close

{'fraction_non_alphanumeric': 0.15315315315315314, 'fraction_numerical': 0.0, 'mean_word_length': 3.65967365967366, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1464474', 'n_tokens_mistral': 648, 'n_tokens_neox': 641, 'n_words': 183}