<commit_before><section>
  <% if @networks.any? %>
    <div class="header--section">
      <h2 class="u-inline-block header--site-connections">Site connections</h2><button class="button--hide">Hide</button>
    </div>

    <div class="js-tabs-map">
      <ul class="tab__titles u-margin--page">
        <% @networks.each_with_index do |network, i| %>
          <li data-wdpa-ids="<%= network.protected_areas.map(&:wdpa_id).to_json %>"
            data-id="tab-<%= i+1 %>"
            class="tab__title js-tab-title <%= "tab__title--active" if i.zero? %>">
            <%= network.name %>
          </li>
        <% end %>
      </ul>


      <% @networks.each_with_index do |network, i| %>
        <div data-id="tab-<%= i+1 %>-content" class="key tab__content js-tab-content u-margin--page <%= "u-hide" unless i.zero? %>">
          <% network.protected_areas.each_with_index do |protected_area, i| %>
            <p data-wdpa-id="<%= i %>" class="key__title"><span class="key__icon"></span><span><%= protected_area.name %></span></p>
          <% end %>
        </div>
      <% end %>
    </div>

    <div id="map" class="map--hero" data-bound-from="<%= @protected_area.bounds.first %>" data-bound-to="<%= @protected_area.bounds.last %>" data-wdpa-ids="<%= @networks.first.protected_areas.map(&:wdpa_id).to_json %>"></div>
  <% else %>
    <div id="map" class="map--hero" data-bound-from="<%= @protected_area.bounds.first %>" data-bound-to="<%= @protected_area.bounds.last %>" data-wdpa-id="<%= @protected_area.wdpa_id %>"></div>
  <% end %>
</section><commit_msg>use data-wdpa-ids also if there's only one PA in _map.html.erb<commit_after><section>
  <% if @networks.any? %>
    <div class="header--section">
      <h2 class="u-inline-block header--site-connections">Site connections</h2><button class="button--hide">Hide</button>
    </div>

    <div class="js-tabs-map">
      <ul class="tab__titles u-margin--page">
        <% @networks.each_with_index do |network, i| %>
          <li data-wdpa-ids="<%= network.protected_areas.map(&:wdpa_id).to_json %>"
            data-id="tab-<%= i+1 %>"
            class="tab__title js-tab-title <%= "tab__title--active" if i.zero? %>">
            <%= network.name %>
          </li>
        <% end %>
      </ul>


      <% @networks.each_with_index do |network, i| %>
        <div data-id="tab-<%= i+1 %>-content" class="key tab__content js-tab-content u-margin--page <%= "u-hide" unless i.zero? %>">
          <% network.protected_areas.each_with_index do |protected_area, i| %>
            <p data-wdpa-id="<%= i %>" class="key__title"><span class="key__icon"></span><span><%= protected_area.name %></span></p>
          <% end %>
        </div>
      <% end %>
    </div>

    <div id="map" class="map--hero"
      data-bound-from="<%= @protected_area.bounds.first %>"
      data-bound-to="<%= @protected_area.bounds.last %>"
      data-wdpa-ids="<%= @networks.first.protected_areas.map(&:wdpa_id).to_json %>">
    </div>
  <% else %>
    <div id="map" class="map--hero"
      data-bound-from="<%= @protected_area.bounds.first %>"
      data-bound-to="<%= @protected_area.bounds.last %>"
      data-wdpa-ids="<%= [@protected_area.wdpa_id] %>">
    </div>
  <% end %>
</section>
{'fraction_non_alphanumeric': 0.22026022304832713, 'fraction_numerical': 0.0024783147459727386, 'mean_word_length': 2.86244019138756, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '5310778', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1125, 'n_words': 182}