<commit_before>class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter :catch_referral_codes
  before_filter :admin_flash_messages
  
  include BootstrapFlashHelper
  include ApplicationHelper

  def admin_flash_messages
    @flash_messages = AdminFlash.where("expires >= ?", Time.now).order("expires ASC")
  end
  
  
  # Customize Devise to send signed out users to the home page not root
  def after_sign_out_path_for(resource_or_scope)
    home_path(:ref => "logout")
  end

  # Customize Devise to send newly signed in users to the home page
  def after_sign_in_path_for(resource_or_scope)<commit_msg>change order of flash messages<commit_after>class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter :catch_referral_codes
  before_filter :admin_flash_messages
  
  include BootstrapFlashHelper
  include ApplicationHelper

  def admin_flash_messages
    @flash_messages = AdminFlash.where("expires >= ?", Time.now).order("created_at desc")
  end
  
  
  # Customize Devise to send signed out users to the home page not root
  def after_sign_out_path_for(resource_or_scope)
    home_path(:ref => "logout")
  end

  # Customize Devise to send newly signed in users to the home page
  def after_sign_in_path_for(resource_or_scope)
{'fraction_non_alphanumeric': 0.05823754789272031, 'fraction_numerical': 0.0, 'mean_word_length': 5.18957345971564, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2545266', 'n_tokens_mistral': 397, 'n_tokens_neox': 384, 'n_words': 105}