<commit_before><% settings = @badge_config.settings || {} %>
<img src='<%= settings['badge_url'] %>' style='float: left; margin-right: 20px;' class='thumbnail'/>
<h2><%= settings['badge_name'] || "Unnamed Badge" %></h2>
<p class='desc'><%= settings['badge_description'] %></p>

<% if @current_badge %>
  <% if @user_config && @user_config.image %>
    <img src="<%= @user_config.image %>" class="avatar"/>
    <h2><a href="<%= @user_config.profile_url %>"><%= @current_badge.user_name %></a></h2>
  <% else %>
    <h2><%= @current_badge.user_name %></h2>
  <% end %>
  <% if @earned %>
    <p><img src='/check.gif'/> This user has completed the requirements necessary to receive this badge</p>
  <% else %>
    <p><img src='/redx.gif'/> This user has not completed the requirements necessary to receive this badge</p>
  <% end %>
<% end %>

<% if settings['badge_requirements'] && settings['badge_requirements'] != '' %>
  <h3>Requirements for completion:</h3><commit_msg>add award date to badge page<commit_after><% settings = @badge_config.settings || {} %>
<img src='<%= settings['badge_url'] %>' style='float: left; margin-right: 20px;' class='thumbnail'/>
<h2><%= settings['badge_name'] || "Unnamed Badge" %></h2>
<p class='desc'><%= settings['badge_description'] %></p>

<% if @current_badge %>
  <% if @user_config && @user_config.image %>
    <img src="<%= @user_config.image %>" class="avatar"/>
    <h2><a href="<%= @user_config.profile_url %>"><%= @current_badge.user_name %></a></h2>
  <% else %>
    <h2><%= @current_badge.user_name %></h2>
  <% end %>
  <% if @earned %>
    <p><img src='/check.gif'/> This user has completed the requirements necessary to receive this badge<% if @current_badge.issued %>, and it was awarded <%= @current_badge.issued.strftime("%d %b, %Y") %><% end %>.</p>
  <% else %>
    <p><img src='/redx.gif'/> This user has not completed the requirements necessary to receive this badge.</p>
  <% end %>
<% end %>

<% if settings['badge_requirements'] && settings['badge_requirements'] != '' %>
  <h3>Requirements for completion:</h3>
{'fraction_non_alphanumeric': 0.22549492998551424, 'fraction_numerical': 0.009657170449058426, 'mean_word_length': 4.836619718309859, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, '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': '6484894', 'n_tokens_mistral': 786, 'n_tokens_neox': 715, 'n_words': 169}