<commit_before>module Socializer
  class ApplicationController < ActionController::Base
    # Prevent CSRF attacks by raising an exception.
    # For APIs, you may want to use :null_session instead.
    protect_from_forgery with: :exception

    helper_method :current_user
    helper_method :signed_in?

    private

    def current_user
      @current_user ||= Person.find(cookies[:user_id]) if cookies[:user_id].present?
    end

    def signed_in?
      current_user.present?
    end
  end
end<commit_msg>having issues with protect_from_forgery. comment out for now<commit_after>module Socializer
  class ApplicationController < ActionController::Base
    # Prevent CSRF attacks by raising an exception.
    # For APIs, you may want to use :null_session instead.
    # FIXME: Not sure why protect_from_forgery is no longer working
    # protect_from_forgery with: :exception

    helper_method :current_user
    helper_method :signed_in?

    private

    def current_user
      @current_user ||= Person.find(cookies[:user_id]) if cookies[:user_id].present?
    end

    def signed_in?
      current_user.present?
    end
  end
end
{'fraction_non_alphanumeric': 0.06519823788546256, 'fraction_numerical': 0.0, 'mean_word_length': 3.6557377049180326, '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': '250187', 'n_tokens_mistral': 336, 'n_tokens_neox': 323, 'n_words': 99}