<commit_before><div class="styleguide-example">
  <h3><%= section.section %> <em><%= section.filename %></em></h3>
  <div class="styleguide-description">
    <p><%= section.description %></p>
    <% if section.modifiers.any? %>
      <ul class="styleguide-modifier">
        <% section.modifiers.each do |modifier| %>
          <li><strong><%= modifier.name %></strong> - <%= modifier.description %></li>
        <% end %>
      </ul>
    <% end %>
  </div>
  <div class="styleguide-element">
    <%= example_html.html_safe %>
  </div>
  <% section.modifiers.each do |modifier| %>
    <div class="styleguide-element styleguide-modifier">
      <span class="styleguide-modifier-name"><%= modifier.name %></span>
      <%= example_html.sub('$modifier_class', " #{modifier.class_name}").html_safe %>
    </div>
  <% end %>
</div>
<commit_msg>Make the modifier_class replacement global so that it replaces all instances within the example_html. Allows for generation of a displayed code example alongside the rendered html within the same example_html block. <commit_after><div class="styleguide-example">
  <h3><%= section.section %> <em><%= section.filename %></em></h3>
  <div class="styleguide-description">
    <p><%= section.description %></p>
    <% if section.modifiers.any? %>
      <ul class="styleguide-modifier">
        <% section.modifiers.each do |modifier| %>
          <li><strong><%= modifier.name %></strong> - <%= modifier.description %></li>
        <% end %>
      </ul>
    <% end %>
  </div>
  <div class="styleguide-element">
    <%= example_html.html_safe %>
  </div>
  <% section.modifiers.each do |modifier| %>
    <div class="styleguide-element styleguide-modifier">
      <span class="styleguide-modifier-name"><%= modifier.name %></span>
      <%= example_html.gsub('$modifier_class', "#{modifier.class_name}").html_safe %>
    </div>
  <% end %>
</div>

{'fraction_non_alphanumeric': 0.19351408825093036, 'fraction_numerical': 0.002126528442317916, 'mean_word_length': 3.5349397590361447, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '4141145', 'n_tokens_mistral': 659, 'n_tokens_neox': 616, 'n_words': 125}