<commit_before><%= gather_form_for(group, url: group.new_record? ? groups_groups_path : groups_group_path(group)) do |f| %>
  <%= f.input(:name, maxlength: Groups::Group.columns_hash["name"].limit) %>
  <% if @community_options %>
    <%= f.input(:communities) do %>
      <% @community_options.each do |community| %>
        <div class="checkbox">
          <label>
            <%= check_box_tag("groups_group[community_ids][]", community.id,
                  group.communities.include?(community)) %>
            <%= community.name %>
          </label>
        </div>
      <% end %>
    <% end %>
  <% end %>
  <%= f.input(:description, as: :text, maxlength: Groups::Group.columns_hash["description"].limit) %>
  <%= f.input(:kind, collection: Groups::Group::KINDS, include_blank: false) %>
  <%= f.input(:availability, collection: Groups::Group::AVAILABILITIES, include_blank: false) %>
  <%= nested_field_set(f, :memberships, single_row: true, inner_labels: false) %>

  <% if policy(group).change_permissions? %>
    <%= f.input(:can_request_jobs) %>
    <%= f.input(:can_administer_email_lists) %>
    <%= f.input(:can_moderate_email_lists) %>
  <% end %>

  <% if policy(group).edit_list? %>
    <h2>Email List</h2>

    <% if @domain_options.empty? %>
      You can't create an email list because there are no domains associated with this community.
      <a href="mailto:<EMAIL>">Contact Gather staff</a> to rectify this.
    <% else %>
      <%= f.simple_fields_for(:mailman_list) do |list_form| %>
        <p>
          Email lists are provided through the Mailman mailing list software.
          Leave these fields blank if you don't need an email list for this group.
        </p>

        <%= list_form.input(:address) do %>
          <%= list_form.input(:name, label: false) %>
          <span><strong>&nbsp;@&nbsp;</strong></span>
          <%= list_form.input(:domain_id, collection: @domain_options, label: false) %>
        <% end %>

        <div class="list-form-details hiding">
          <%= list_form.input(:managers_can_administer) %>
          <%= list_form.input(:managers_can_moderate) %>
          <%= list_form.input(:members) do %><commit_msg>717: Remove blank from domain dropdown<commit_after><%= gather_form_for(group, url: group.new_record? ? groups_groups_path : groups_group_path(group)) do |f| %>
  <%= f.input(:name, maxlength: Groups::Group.columns_hash["name"].limit) %>
  <% if @community_options %>
    <%= f.input(:communities) do %>
      <% @community_options.each do |community| %>
        <div class="checkbox">
          <label>
            <%= check_box_tag("groups_group[community_ids][]", community.id,
                  group.communities.include?(community)) %>
            <%= community.name %>
          </label>
        </div>
      <% end %>
    <% end %>
  <% end %>
  <%= f.input(:description, as: :text, maxlength: Groups::Group.columns_hash["description"].limit) %>
  <%= f.input(:kind, collection: Groups::Group::KINDS, include_blank: false) %>
  <%= f.input(:availability, collection: Groups::Group::AVAILABILITIES, include_blank: false) %>
  <%= nested_field_set(f, :memberships, single_row: true, inner_labels: false) %>

  <% if policy(group).change_permissions? %>
    <%= f.input(:can_request_jobs) %>
    <%= f.input(:can_administer_email_lists) %>
    <%= f.input(:can_moderate_email_lists) %>
  <% end %>

  <% if policy(group).edit_list? %>
    <h2>Email List</h2>

    <% if @domain_options.empty? %>
      You can't create an email list because there are no domains associated with this community.
      <a href="mailto:<EMAIL>">Contact Gather staff</a> to rectify this.
    <% else %>
      <%= f.simple_fields_for(:mailman_list) do |list_form| %>
        <p>
          Email lists are provided through the Mailman mailing list software.
          Leave these fields blank if you don't need an email list for this group.
        </p>

        <%= list_form.input(:address) do %>
          <%= list_form.input(:name, label: false) %>
          <span><strong>&nbsp;@&nbsp;</strong></span>
          <%= list_form.input(:domain_id, collection: @domain_options, label: false, include_blank: false) %>
        <% end %>

        <div class="list-form-details hiding">
          <%= list_form.input(:managers_can_administer) %>
          <%= list_form.input(:managers_can_moderate) %>
          <%= list_form.input(:members) do %>
{'fraction_non_alphanumeric': 0.16647740177151943, 'fraction_numerical': 0.001589825119236884, 'mean_word_length': 3.2022900763358777, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '2123222', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1356, 'n_words': 275}