<commit_before>class PagesController < ApplicationController

  def main
    @user = User.new
  end

  def test

  end

  def dashboard
  	@target_user = User.find(session[:id])

  	@my_cases = User.find(session[:id]).cases

  	@my_invites = User.find(session[:id]).cases.where(status: "pending")
    
    @active_cases = Case.where(status: "active")
		@closed_cases = Case.where(status: "closed")
  end

end
<commit_msg>Added sort by status and created_at date to my_cases list<commit_after>class PagesController < ApplicationController

  def main
    @user = User.new
  end

  def test

  end

  def dashboard
  	@target_user = User.find(session[:id])

  	@my_cases = User.find(session[:id]).cases.order('status').order('created_at')

  	@my_invites = User.find(session[:id]).cases.where(status: "pending")
    
    @active_cases = Case.where(status: "active")
		@closed_cases = Case.where(status: "closed")
  end

end

{'fraction_non_alphanumeric': 0.1301518438177874, 'fraction_numerical': 0.0, 'mean_word_length': 3.9623655913978495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '802200', 'n_tokens_mistral': 323, 'n_tokens_neox': 304, 'n_words': 65}