<commit_before><div class="row">
  <div class="col-xs-12">
    <h2><%= plan.template.title %></h2>
  </div>
</div>
<div class="row">
  <div class="col-xs-12">
    <p>
      <%= _('This plan is based on the "%{template_title}" template provided by %{org_name}.') %{ :template_title => plan.template.title, :org_name => plan.template.org.name } %>
    </p>
    <p>
      <%= raw(plan.template.description) %>
    </p>
  </div>
</div>
<div class="row">
  <div class="col-xs-12">
    <% if plan.template.phases.size == 1 %>
      <%= render(partial: '/phases/overview', locals: { plan_id: plan.id, phase: plan.template.phases.first }) %>
    <% else %>
      <div class="panel-group" id="plan-overview-accordion" role="tablist" aria-multiselectable="true">
        <% plan.template.phases.each do |p| %>
          <div class="panel panel-default">
            <div class="heading-button" role="button" data-toggle="collapse"
                 data-parent="plan-overview-accordion" 
                 href="#plan-overview-collapse-<%= p.id %>"
                 aria-expanded="false" 
                 aria-controls="#plan-overview-collapse-<%= p.id %>">

              <div class="panel-heading" role="tab" id="plan-overview-heading-<%= p.id %>">
                <div class="panel-title">
                  <div class="pull-left">
                    <%= _("%{phase_title} (%{sections_size} %{sections}, %{questions_size} %{questions})") % {
                      :phase_title => p.title, :sections_size => p.sections.size, :sections => n_('section', 'sections', p.sections.size),
                      :questions_size => p.questions.size, :questions => n_('question', 'questions', p.questions.size) } %>
                  </div>
                  <div class="pull-right">
                    <i class="fa fa-plus pull-right" aria-hidden="true"></i>
                  </div>
                  <div class="clearfix"></div>
                </div>
              </div>
            </div>
            <div id="plan-overview-collapse-<%= p.id %>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="plan-overview-heading-<%= p.id %>">
              <div class="panel-body">
                <%= render(partial: '/phases/overview', locals: { plan_id: plan.id, phase: p }) %>
              </div>
            </div>
          </div>
        <% end %>
      </div>
    <% end %>
  </div><commit_msg>Fixed #1548<commit_after><div class="row">
  <div class="col-xs-12">
    <h2><%= plan.template.title %></h2>
  </div>
</div>
<div class="row">
  <div class="col-xs-12">
    <p>
      <%= _('This plan is based on the "%{template_title}" template provided by %{org_name}.') %{ :template_title => plan.template.title, :org_name => plan.template.org.name } %>
    </p>
    <p>
      <%= raw(plan.template.description) %>
    </p>
  </div>
</div>
<div class="row">
  <div class="col-xs-12">
    <% if plan.template.phases.size == 1 %>
      <%= render(partial: '/phases/overview', locals: { plan_id: plan.id, phase: plan.template.phases.first }) %>
    <% else %>
      <div class="panel-group" id="plan-overview-accordion" role="tablist" aria-multiselectable="true">
        <% plan.template.phases.each do |p| %>
          <div class="panel panel-default">
            <div class="heading-button" role="button" data-toggle="collapse"
                 data-parent="plan-overview-accordion" 
                 href="#plan-overview-collapse-<%= p.id %>"
                 aria-expanded="false" 
                 aria-controls="#plan-overview-collapse-<%= p.id %>">

              <div class="panel-heading" role="tab" id="plan-overview-heading-<%= p.id %>">
                <div class="panel-title">
                  <div class="pull-left">
                    <%= _("%{phase_title} (%{sections_size} %{sections}, %{questions_size} %{questions})") % {
                      :phase_title => p.title, :sections_size => p.sections.size, :sections => n_('section', 'sections', p.sections.size),
                      :questions_size => p.sections.map{|s| s.questions.size }.inject(0){|sum,x| sum + x }, 
                      :questions => n_('question', 'questions', p.sections.map{|s| s.questions.size }.inject(0){|sum,x| sum + x }) } %>
                  </div>
                  <div class="pull-right">
                    <i class="fa fa-plus pull-right" aria-hidden="true"></i>
                  </div>
                  <div class="clearfix"></div>
                </div>
              </div>
            </div>
            <div id="plan-overview-collapse-<%= p.id %>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="plan-overview-heading-<%= p.id %>">
              <div class="panel-body">
                <%= render(partial: '/phases/overview', locals: { plan_id: plan.id, phase: p }) %>
              </div>
            </div>
          </div>
        <% end %>
      </div>
    <% end %>
  </div>
{'fraction_non_alphanumeric': 0.19649765831806149, 'fraction_numerical': 0.004886988393402566, 'mean_word_length': 2.041486068111455, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 127, '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': '2389652', 'n_tokens_mistral': 1643, 'n_tokens_neox': 1496, 'n_words': 282}