<commit_before>%h3
  Provider Accounts for
  = @pool_family.name

- unless @pool_family.provider_accounts.blank?
  - form_tag do
    = restful_submit_tag "Remove selected", 'destroy', multi_destroy_provider_accounts_pool_families_path(:pool_family_id => @pool_family.id), 'DELETE', :id => 'delete_button', :class => 'button'
    = #submit_tag "Remove selected"

    %table#provider_accounts_table
      = sortable_table_header @provider_accounts_header
      - @pool_family.provider_accounts.each do |provider_account|
        %tr
          %td
            - selected = params[:select_provider_accounts] == 'all'
            %input{:name => "provider_account_selected[]", :type => "checkbox", :value => provider_account.id, :id => "provider_account_checkbox_#{provider_account.id}", :checked => selected }
            = provider_account.name

- unless @pool_family.provider_accounts.count == ProviderAccount.all.count
  - form_for :pool_family, :url => add_provider_account_pool_families_path(:id => @pool_family.id) do |f|
    - unless @pool_family.provider_accounts.blank?
      = select_tag :provider_account_id, options_for_select(ProviderAccount.find(:all, :conditions => [ "id NOT IN (?)", @pool_family.provider_account_ids ]).collect{ |pa| [pa.name, pa.id] })<commit_msg>BZ 717571 - fixed pool family's account deletion<commit_after>%h3
  Provider Accounts for
  = @pool_family.name

- unless @pool_family.provider_accounts.blank?
  - form_tag do
    = restful_submit_tag "Remove selected", 'destroy', multi_destroy_provider_accounts_pool_families_path(:pool_family_id => @pool_family.id), 'DELETE', :id => 'delete_button', :class => 'button danger'
    = #submit_tag "Remove selected"

    %table#provider_accounts_table.checkbox_table
      = sortable_table_header @provider_accounts_header
      - @pool_family.provider_accounts.each do |provider_account|
        %tr
          %td
            - selected = params[:select_provider_accounts] == 'all'
            %input{:name => "provider_account_selected[]", :type => "checkbox", :value => provider_account.id, :id => "provider_account_checkbox_#{provider_account.id}", :checked => selected }
            = provider_account.name

- unless @pool_family.provider_accounts.count == ProviderAccount.all.count
  - form_for :pool_family, :url => add_provider_account_pool_families_path(:id => @pool_family.id) do |f|
    - unless @pool_family.provider_accounts.blank?
      = select_tag :provider_account_id, options_for_select(ProviderAccount.find(:all, :conditions => [ "id NOT IN (?)", @pool_family.provider_account_ids ]).collect{ |pa| [pa.name, pa.id] })
{'fraction_non_alphanumeric': 0.12743972445464982, 'fraction_numerical': 0.0030616150019135095, 'mean_word_length': 4.6457883369330455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '2554252', 'n_tokens_mistral': 827, 'n_tokens_neox': 810, 'n_words': 145}