<commit_before>.text-center
  %h3= term_for :badges
  %hr
  %ul.small-block-grid-6.medium-block-grid-4
    - current_student.unique_student_earned_badges(current_course).each do |badge|
      %li
        - if badge.point_total.present && badge.point_total > 0
          %span.has-tip{:title => "#{badge.name}, #{badge.point_total} points", :data => {'tooltip' => true} }
            %img{:src => badge.icon, :alt => "You've earned the #{badge.name} badge", :class => "earned"}
        - else
          %span.has-tip.tip-top{:title => "#{badge.name}", :data => {'tooltip' => true} }
            %img{:src => badge.icon, :alt => "You've earned the #{badge.name} badge", :class => "earned"}
    - current_student.student_visible_unearned_badges(current_course).each do |badge|
      %li
        %span.has-tip{:title => "Not yet earned: #{badge.name}", :data => {'tooltip' => true} }
          %img{:src => badge.try(:icon), :alt => "#{badge.try(:name)}", :class => "unearned"}
    .clear
    - if current_student.earned_badge_score > 0
      .italic= "You've earned #{points current_student.earned_badge_score} points through #{(term_for :badges).titleize}."<commit_msg>Fixed empty badge points view<commit_after>.text-center
  %h3= term_for :badges
  %hr
  %ul.small-block-grid-6.medium-block-grid-4
    - current_student.unique_student_earned_badges(current_course).each do |badge|
      %li
        - if badge.point_total.present? && badge.point_total > 0
          %span.has-tip{:title => "#{badge.name}, #{badge.point_total} points", :data => {'tooltip' => true} }
            %img{:src => badge.icon, :alt => "You've earned the #{badge.name} badge", :class => "earned"}
        - else
          %span.has-tip.tip-top{:title => "#{badge.name}", :data => {'tooltip' => true} }
            %img{:src => badge.icon, :alt => "You've earned the #{badge.name} badge", :class => "earned"}
    - current_student.student_visible_unearned_badges(current_course).each do |badge|
      %li
        %span.has-tip{:title => "Not yet earned: #{badge.name}", :data => {'tooltip' => true} }
          %img{:src => badge.try(:icon), :alt => "#{badge.try(:name)}", :class => "unearned"}
    .clear
    - if current_student.earned_badge_score > 0
      .italic= "You've earned #{points current_student.earned_badge_score} points through #{(term_for :badges).titleize}."
{'fraction_non_alphanumeric': 0.1875797532964696, 'fraction_numerical': 0.004253509145044662, 'mean_word_length': 3.315596330275229, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '5320151', 'n_tokens_mistral': 837, 'n_tokens_neox': 811, 'n_words': 159}