<commit_before><h2><a href="/"><img src="<%= @org.settings['image'] || "/organizations/default.png" %>" alt="Root"/></a> <%= @org.settings['name'] %> Badging Stats</h2>
<div class='row'>
  <div class='span8 offset2'>
    <table class='table table-bordered table-striped'>
      <tr>
        <td>Authorized Badge Issuers</td>
        <td><%= comma @stats['issuers'] %></td>
      </tr>
      <tr>
        <td>Badges Configured <a class="sub" href="<%= request.env['badges.path_prefix'] %>/badges/public<%= "?this_org_only=1" if @stats_org %>">see earnable public badges</a></td>
        <td><%= comma @stats['badge_configs'] %></td>
      </tr>
      <tr>
        <td>Badge Placements</td>
        <td><%= comma @stats['badge_placement_configs'] %></td>
      </tr>
      <tr>
        <td>Badges Awarded <a class="sub" href="<%= request.env['badges.path_prefix'] %>/badges/public/awarded<%= "?this_org_only=1" if @stats_org %>">see learner-shared badges</a></td>
        <td><%= comma @stats['badges'] %></td>
      </tr>
      <tr>
        <td>Last Badge Awarded</td>
        <td>
          <% if @stats['last_badge_at'] %>
            <%= Time.parse(@stats['last_badge_at']).strftime("%d %b, %Y") %>
          <% else %>
            Unknown <!-- TODO: change this to "Never" after a while, say mid-2015... -->
          <% end %>
        </td>
      </tr>
      <% unless @stats_org %>
        <tr>
          <td>Canvas Domains</td>
          <td><%= comma @stats['domains'] %></td>
        </tr>
        <tr>
          <td>
            Organizations
            <ul style="padding-top: 10px;">
              <% Organization.all.select(&:approved?).each do |org| %>
                <li>
                  <a href="<%= org.settings['url'] %>">
                    <img src="<%= org.settings['image'] || "/organizations/default.png" %>" alt="" style="height: 40px; padding-right: 10px;"/>
                    <%= org.settings['name'] %></a> 
                  <a class="sub" href="<%= BadgeHelper.protocol %>://<%= org.host %>">badge site</a>
                </li>
              <% end %>
              <li style="margin-top: 15px; font-size: 12px; list-style: none;">
                <a href="<%= BadgeHelper.issuer['owner_url'] %>">Contact us</a> to add your own badging site
              </li>
            </ul>
            
          </td>
          <td><%= @stats['organizations'] %></td>
        </tr>
      <% end %>
    </table>
  </div>
</div><commit_msg>better spacing for org list<commit_after><h2><a href="/"><img src="<%= @org.settings['image'] || "/organizations/default.png" %>" alt="Root"/></a> <%= @org.settings['name'] %> Badging Stats</h2>
<div class='row'>
  <div class='span8 offset2'>
    <table class='table table-bordered table-striped'>
      <tr>
        <td>Authorized Badge Issuers</td>
        <td><%= comma @stats['issuers'] %></td>
      </tr>
      <tr>
        <td>Badges Configured <a class="sub" href="<%= request.env['badges.path_prefix'] %>/badges/public<%= "?this_org_only=1" if @stats_org %>">see earnable public badges</a></td>
        <td><%= comma @stats['badge_configs'] %></td>
      </tr>
      <tr>
        <td>Badge Placements</td>
        <td><%= comma @stats['badge_placement_configs'] %></td>
      </tr>
      <tr>
        <td>Badges Awarded <a class="sub" href="<%= request.env['badges.path_prefix'] %>/badges/public/awarded<%= "?this_org_only=1" if @stats_org %>">see learner-shared badges</a></td>
        <td><%= comma @stats['badges'] %></td>
      </tr>
      <tr>
        <td>Last Badge Awarded</td>
        <td>
          <% if @stats['last_badge_at'] %>
            <%= Time.parse(@stats['last_badge_at']).strftime("%d %b, %Y") %>
          <% else %>
            Unknown <!-- TODO: change this to "Never" after a while, say mid-2015... -->
          <% end %>
        </td>
      </tr>
      <% unless @stats_org %>
        <tr>
          <td>Canvas Domains</td>
          <td><%= comma @stats['domains'] %></td>
        </tr>
        <tr>
          <td>
            Organizations
            <ul style="padding-top: 10px; list-style: none;">
              <% Organization.all.select(&:approved?).each do |org| %>
                <li style="margin: 5px;">
                  <a href="<%= org.settings['url'] %>">
                    <img src="<%= org.settings['image'] || "/organizations/default.png" %>" alt="" style="height: 40px; padding-right: 10px;"/>
                    <%= org.settings['name'] %></a> 
                  <a class="sub" href="<%= BadgeHelper.protocol %>://<%= org.host %>">badge site</a>
                </li>
              <% end %>
              <li style="margin-top: 15px; font-size: 12px; list-style: none;">
                <a href="<%= BadgeHelper.issuer['owner_url'] %>">Contact us</a> to add your own badging site
              </li>
            </ul>
            
          </td>
          <td><%= @stats['organizations'] %></td>
        </tr>
      <% end %>
    </table>
  </div>
</div>
{'fraction_non_alphanumeric': 0.21682393093756275, 'fraction_numerical': 0.008231278859666733, 'mean_word_length': 2.0267314702308625, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 197, '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': '6151803', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1637, 'n_words': 349}