<commit_before><% all_checked = (collection.map(&:slug) - f.object.send(model_collection.to_sym)).empty? -%>
<div class="control-group" id="<%= title.downcase.singularize.strip.gsub(' ', '_') %>">
  <h3><%= title %></h3>
  <label for="business_support_<%= title.downcase.singularize %>_check_all" class="checkbox inline all">
    <%= check_box_tag "business_support_#{title.downcase.singularize}_check_all", "", all_checked, { :disabled => published } %>All
  </label>

  <% collection.each do |facet| -%>
    <label class="checkbox inline">
      <%= f.check_box model_collection, { :multiple => true, :disabled => published }, facet.slug, nil %>
      <%= facet.name %>
    </label>
  <% end %>
</div><commit_msg>Simplified the ids and labels using the model_collection<commit_after><% all_checked = (collection.map(&:slug) - f.object.send(model_collection.to_sym)).empty? -%>
<div class="control-group" id="<%= model_collection.singularize %>">
  <h3><%= title %></h3>
  <label for="business_support_<%= model_collection.singularize %>_check_all" class="checkbox inline all">
    <%= check_box_tag "business_support_#{model_collection.singularize}_check_all", "", all_checked, { :disabled => published } %>All
  </label>

  <% collection.each do |facet| -%>
    <label class="checkbox inline">
      <%= f.check_box model_collection, { :multiple => true, :disabled => published }, facet.slug, nil %>
      <%= facet.name %>
    </label>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.1934156378600823, 'fraction_numerical': 0.0027434842249657062, 'mean_word_length': 4.812749003984064, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 43, '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': '6339370', 'n_tokens_mistral': 511, 'n_tokens_neox': 476, 'n_words': 92}