<commit_before>%h3 Service Links
%ul
  = f.fields_for :links do |link|
    - checkbox_id = "select_link_#{link.options[:child_index]}"
    %li
      %a{data: { checkbox: { selector: "##{checkbox_id}" } }, class: 'remove-link', title: 'remove link'} remove
      = link.object.service_name
      = link.check_box :_deleted, { id: checkbox_id }
      = link.hidden_field :service_id
      = link.hidden_field :alias
%ul.additional-entries
  %li.editing
    = add_fields_for(:links, f, { child_index: '_replaceme_' }) do |builder|
      = builder.select :service_id, linkable_service_options(services, service_id), { include_blank: true }, disabled: true
      = builder.hidden_field :alias, disabled: true

%button.button-add Add a Linked Service<commit_msg>Preserve service_name on reload [fixes #72442194]<commit_after>%h3 Service Links
%ul
  = f.fields_for :links do |link|
    - checkbox_id = "select_link_#{link.options[:child_index]}"
    %li
      %a{data: { checkbox: { selector: "##{checkbox_id}" } }, class: 'remove-link', title: 'remove link'} remove
      = link.object.service_name
      = link.check_box :_deleted, { id: checkbox_id }
      = link.hidden_field :service_id
      = link.hidden_field :service_name
      = link.hidden_field :alias
%ul.additional-entries
  %li.editing
    = add_fields_for(:links, f, { child_index: '_replaceme_' }) do |builder|
      = builder.select :service_id, linkable_service_options(services, service_id), { include_blank: true }, disabled: true
      = builder.hidden_field :alias, disabled: true

%button.button-add Add a Linked Service
{'fraction_non_alphanumeric': 0.13224181360201512, 'fraction_numerical': 0.006297229219143577, 'mean_word_length': 4.060509554140127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '402361', 'n_tokens_mistral': 532, 'n_tokens_neox': 522, 'n_words': 116}