<commit_before><div class="tab-pane" id="plan_year_<%=plan_year.start_date.year%>">
  <div id="info">
    <dl class="dl-horizontal">
      <dt><%= PlanYear.human_attribute_name(:open_enrollment_start) %></dt>
      <dd><%= plan_year.open_enrollment_start %></dd>
      <dt><%= PlanYear.human_attribute_name(:open_enrollment_end) %></dt>
      <dd><%= plan_year.open_enrollment_end %></dd>
      <dt><%= PlanYear.human_attribute_name(:start_date) %></dt>
      <dd><%= plan_year.start_date %></dd>
      <dt><%= PlanYear.human_attribute_name(:end_date) %></dt>
      <dd><%= plan_year.end_date %></dd>
      <dt><%= PlanYear.human_attribute_name(:fte_count) %></dt>
      <dd><%= plan_year.fte_count %></dd>
      <dt><%= PlanYear.human_attribute_name(:pte_count) %></dt>
      <dd><%= plan_year.pte_count %></dd>
      <dt>Broker</dt>
      <% if plan_year.broker.nil? %>
        <dd></dd>
      <% else %>
        <dd><%= link_to(plan_year.broker.name_full, plan_year.broker) %></dd>
      <% end %>

    </dl>
  </div>
  <div id="plans">
    <% if @employer.carriers.count <= 0 %>
      <p> No Elected Plans Found! </p>
    <% elsif @employer.carriers.count == 1 %>
      <%= render "employers/showtabs/elected_plans_table", elected_plans: plan_year.elected_plans %>
    <% else %>
      <div class="row">
        <div class="col-md-12">
          <ul class="nav nav-tabs nav-append-content">
            <% @employer.carriers.each_with_index do |carrier, index| %>
              <li class="<%= 'active' if index==0 %>"><a href="#<%= carrier.id %>"><%= carrier.name %></a></li>
            <% end %>
          </ul>
          <div class="tab-content">
            <% @employer.carriers.each_with_index do |carrier, index| %>
              <div class="tab-pane <%= 'active' if index==0 %>" id="<%= carrier.id %>">
                <%= render "employers/showtabs/elected_plans_table", elected_plans: plan_year.elected_plans.select { |p| p.carrier_id == carrier.id } %>
              </div>
            <% end %>
          </div>
        </div>
      </div>
    <% end %>
  </div>
</div>
<commit_msg>fix on employer plan year tab multiple carrier tab on employer show page<commit_after><div class="tab-pane" id="plan_year_<%=plan_year.start_date.year%>">
  <div id="info">
    <dl class="dl-horizontal">
      <dt><%= PlanYear.human_attribute_name(:open_enrollment_start) %></dt>
      <dd><%= plan_year.open_enrollment_start %></dd>
      <dt><%= PlanYear.human_attribute_name(:open_enrollment_end) %></dt>
      <dd><%= plan_year.open_enrollment_end %></dd>
      <dt><%= PlanYear.human_attribute_name(:start_date) %></dt>
      <dd><%= plan_year.start_date %></dd>
      <dt><%= PlanYear.human_attribute_name(:end_date) %></dt>
      <dd><%= plan_year.end_date %></dd>
      <dt><%= PlanYear.human_attribute_name(:fte_count) %></dt>
      <dd><%= plan_year.fte_count %></dd>
      <dt><%= PlanYear.human_attribute_name(:pte_count) %></dt>
      <dd><%= plan_year.pte_count %></dd>
      <dt>Broker</dt>
      <% if plan_year.broker.nil? %>
        <dd></dd>
      <% else %>
        <dd><%= link_to(plan_year.broker.name_full, plan_year.broker) %></dd>
      <% end %>

    </dl>
  </div>
  <div id="plans">
    <% if @employer.carriers.count <= 0 %>
      <p> No Elected Plans Found! </p>
    <% elsif @employer.carriers.count == 1 %>
      <%= render "employers/showtabs/elected_plans_table", elected_plans: plan_year.elected_plans %>
    <% else %>
      <div class="row">
        <div class="col-md-12">
          <ul class="nav nav-tabs nav-append-content">
            <% @employer.carriers.each_with_index do |carrier, index| %>
              <li class="<%= 'active' if index==0 %>"><a href="#<%= "#{carrier.id}#{plan_year.start_date.year}" %>"><%= carrier.name %></a></li>
            <% end %>
          </ul>
          <div class="tab-content">
            <% @employer.carriers.each_with_index do |carrier, index| %>
              <div class="tab-pane <%= 'active' if index==0 %>" id="<%= "#{carrier.id}#{plan_year.start_date.year}" %>">
                <%= render "employers/showtabs/elected_plans_table", elected_plans: plan_year.elected_plans.select { |p| p.carrier_id == carrier.id } %>
              </div>
            <% end %>
          </div>
        </div>
      </div>
    <% end %>
  </div>
</div>

{'fraction_non_alphanumeric': 0.2055079842629021, 'fraction_numerical': 0.00277713492247165, 'mean_word_length': 2.7549956559513467, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 175, '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': '6714971', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1524, 'n_words': 264}