<commit_before>class HomeController < ApplicationController
    
  before_filter :require_login, :only => [:login, :register]
  
  def index 
    if current_user
      if current_user.is_admin?
        @title = "Course Dashboard"
      else
        @title = "My Dashboard"
        @user = current_user
      end
      @teams = current_course.try(:teams)
      @users = current_course.try(:users)
      @students = @users.students
      @top_ten_students = @students.order('sortable_score DESC').limit(10)
      @bottom_ten_students = @students.order('sortable_score ASC').limit(10)
      @assignments = current_course.try(:assignments)
    end
  end<commit_msg>Fixed the home controller missing badge statement<commit_after>class HomeController < ApplicationController
    
  before_filter :require_login, :only => [:login, :register]
  
  def index 
    if current_user
      if current_user.is_admin?
        @title = "Course Dashboard"
      else
        @title = "My Dashboard"
        @user = current_user
      end
      @teams = current_course.try(:teams)
      @users = current_course.try(:users)
      @badges = current_course.badges
      @students = @users.students
      @top_ten_students = @students.order('sortable_score DESC').limit(10)
      @bottom_ten_students = @students.order('sortable_score ASC').limit(10)
      @assignments = current_course.try(:assignments)
    end
  end
{'fraction_non_alphanumeric': 0.10243553008595989, 'fraction_numerical': 0.0057306590257879654, 'mean_word_length': 3.14540059347181, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5088796', 'n_tokens_mistral': 442, 'n_tokens_neox': 430, 'n_words': 87}