<commit_before>class ApplicationController < ActionController::Base

  before_filter :authenticated, :has_info
  helper_method :current_user, :is_admin?

  # Our security guy keep talking about sea-surfing, cool story bro.
  # protect_from_forgery

  private

  def current_user
    @current_user ||= User.find_by_auth_token!(cookies[:auth_token].to_s)
  end

  def authenticated<commit_msg>application controller edits<commit_after>class ApplicationController < ActionController::Base

  before_filter :authenticated, :has_info
  helper_method :current_user, :is_admin?

  # Our security guy keep talking about sea-surfing, cool story bro.
  # protect_from_forgery

  private

  def current_user
    @current_user ||= User.find_by_auth_token(cookies[:auth_token].to_s)
  end

  def authenticated
{'fraction_non_alphanumeric': 0.07412060301507538, 'fraction_numerical': 0.0, 'mean_word_length': 5.479674796747967, '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': '2388489', 'n_tokens_mistral': 254, 'n_tokens_neox': 237, 'n_words': 57}