<commit_before><div class="big-text" style="text-align:center;border-bottom:1px solid #99f;">
  <%= @scenario.plan.percent_tested %>%</div>
<br/>

<span style="font-weight:bold;"><%= @scenario.feature.name %></span><br/>
<% for scenario in @scenario.feature.scenarios %>
  <% if scenario.id == @scenario.id %>
<div style="background:#eee;padding:5px">
  <span class="<%= result_class(scenario.result) %>">
    <%=truncate(scenario.name, {:length => 25})%>
  </span><br/>
  <div align="center">
    <%= link_to_remote 'Pass',
        :url => scenario_result_path(:result => Scenario::RESULT_PASSED),
        :method => :put,
        :html => { :class => "small-link pass-link" } %>
    <%= link_to_remote 'Fail',
        :url => scenario_result_path(:result => Scenario::RESULT_FAILED),
        :method => :put,
        :html => { :class => "small-link fail-link" } %>
    <%= link_to_remote 'Untested',
        :url => scenario_result_path(:result => Scenario::RESULT_UNTESTED),
        :method => :put,
        :html => { :class => "small-link clear-link" } %>
  </div>
</div>
  <% else %>
    <%= link_to(truncate(scenario.name, {:length => 25}), 
          scenario_steps_path(scenario),
          :class => result_class(scenario.result)) %>
    <br/>
  <% end %>
<% end %>
<br/>

<% complete_features, incomplete_features = scenario.plan.features_tested %>
<% if incomplete_features.size > 0 %>
  <div class="medium-text">Incomplete</div>
<% end %>
<% for feature in incomplete_features %>
  <% if feature.id != @scenario.feature.id %>
    <% if feature.scenarios.size > 0 %>
      <%= link_to(feature.name, scenario_steps_path(feature.scenarios[0]), 
            :style => "font-weight:bold;") %>
      <div style="height:5px;"></div>
    <% end %>
  <% else %>
    <span style="font-weight:bold"><%=feature.name%></span>
    <div style="height:5px;"></div>
  <% end %>
<% end %>

<% if complete_features.size > 0 %>
  <div class="medium-text">Complete</div>
<% end %>
<% for feature in complete_features %>
  <% if feature.id != @scenario.feature.id %>
    <% if feature.scenarios.size > 0 %>
      <%= link_to(feature.name, scenario_steps_path(feature.scenarios[0]), 
            :style => "font-weight:bold;") %>
      <div style="height:5px;"></div>
    <% end %>
  <% else %>
    <span style="font-weight:bold"><%=feature.name%></span>
    <div style="height:5px;"></div>
  <% end %>
<% end %><commit_msg>truncate sidebar contents correctly<commit_after><div class="big-text" style="text-align:center;border-bottom:1px solid #99f;">
  <%= @scenario.plan.percent_tested %>%</div>
<br/>

<span style="font-weight:bold;">
  <%= truncate(h(@scenario.feature.name), 35) %>
</span><br/>
<% for scenario in @scenario.feature.scenarios %>
  <% if scenario.id == @scenario.id %>
<div style="background:#eee;padding:5px">
  <span class="<%= result_class(scenario.result) %>">
    <%=truncate(h(scenario.name), 25)%>
  </span><br/>
  <div align="center">
    <%= link_to_remote 'Pass',
        :url => scenario_result_path(:result => Scenario::RESULT_PASSED),
        :method => :put,
        :html => { :class => "small-link pass-link" } %>
    <%= link_to_remote 'Fail',
        :url => scenario_result_path(:result => Scenario::RESULT_FAILED),
        :method => :put,
        :html => { :class => "small-link fail-link" } %>
    <%= link_to_remote 'Untested',
        :url => scenario_result_path(:result => Scenario::RESULT_UNTESTED),
        :method => :put,
        :html => { :class => "small-link clear-link" } %>
  </div>
</div>
  <% else %>
    <%= link_to(truncate(h(scenario.name), 25), 
          scenario_steps_path(scenario),
          :class => result_class(scenario.result)) %>
    <br/>
  <% end %>
<% end %>
<br/>

<% complete_features, incomplete_features = scenario.plan.features_tested %>
<% if incomplete_features.size > 0 %>
  <div class="medium-text">Incomplete</div>
<% end %>
<% for feature in incomplete_features %>
  <% if feature.id != @scenario.feature.id %>
    <% if feature.scenarios.size > 0 %>
      <%= link_to(truncate(h(feature.name), 35), 
            scenario_steps_path(feature.scenarios[0]), 
            :style => "font-weight:bold;") %>
      <div style="height:5px;"></div>
    <% end %>
  <% else %>
    <span style="font-weight:bold"><%=truncate(h(feature.name),35)%></span>
    <div style="height:5px;"></div>
  <% end %>
<% end %>

<% if complete_features.size > 0 %>
  <div class="medium-text">Complete</div>
<% end %>
<% for feature in complete_features %>
  <% if feature.id != @scenario.feature.id %>
    <% if feature.scenarios.size > 0 %>
      <%= link_to(truncate(h(feature.name),25), scenario_steps_path(feature.scenarios[0]), 
            :style => "font-weight:bold;") %>
      <div style="height:5px;"></div>
    <% end %>
  <% else %>
    <span style="font-weight:bold"><%=truncate(h(feature.name),35)%></span>
    <div style="height:5px;"></div>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.2127357533968769, 'fraction_numerical': 0.00932873656459136, 'mean_word_length': 3.5372585096596136, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 183, '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': '343340', 'n_tokens_mistral': 1864, 'n_tokens_neox': 1668, 'n_words': 281}