<commit_before>module Coursewareable
  # Courseware Main Page Controller class
  class HomeController < ApplicationController

    # Do not check for abilities, but load the class properly
    load_and_authorize_resource :class => Coursewareable::Classroom
    skip_authorize_resource

    # Main page handler
    def index
      redirect_to dashboard_home_index_path if logged_in?
    end

    # User Dashboard handler
    def dashboard
      redirect_to home_index_path unless logged_in?
      @timeline = current_user.activities
    end

  end
end
<commit_msg>Reverse chronologic order of user activities.<commit_after>module Coursewareable
  # Courseware Main Page Controller class
  class HomeController < ApplicationController

    # Do not check for abilities, but load the class properly
    load_and_authorize_resource :class => Coursewareable::Classroom
    skip_authorize_resource

    # Main page handler
    def index
      redirect_to dashboard_home_index_path if logged_in?
    end

    # User Dashboard handler
    def dashboard
      redirect_to home_index_path unless logged_in?
      @timeline = current_user.activities.reverse
    end

  end
end

{'fraction_non_alphanumeric': 0.03430531732418525, 'fraction_numerical': 0.0, 'mean_word_length': 3.7056451612903225, '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': '5556627', 'n_tokens_mistral': 318, 'n_tokens_neox': 303, 'n_words': 101}