<commit_before>module Subengine

# class ApplicationController < ActionController::Base
	class ApplicationController < ::ApplicationController

		protect_from_forgery with: :null_session

		def after_sign_in_path_for(resource)
			request.env['omniauth.origin'] || stored_location_for(resource) || subengine.accounts_path
		end
    
    # Starting to Add User Helpers
		def current_user?(user)
			user == current_user
		end

		private

		def redirect_logged_in_users_to_account_page
			redirect_to subengine.accounts_path if user_signed_in?
		end

	end
end
<commit_msg>Add helper method to current_user.<commit_after>module Subengine

# class ApplicationController < ActionController::Base
	class ApplicationController < ::ApplicationController

		protect_from_forgery with: :null_session

		def after_sign_in_path_for(resource)
			request.env['omniauth.origin'] || stored_location_for(resource) || subengine.accounts_path
		end
    
    # Starting to Add User Helpers
		def current_user?(user)
			user == current_user
		end
    helper_method :current_user

		private

		def redirect_logged_in_users_to_account_page
			redirect_to subengine.accounts_path if user_signed_in?
		end

	end
end

{'fraction_non_alphanumeric': 0.060555088309503784, 'fraction_numerical': 0.0, 'mean_word_length': 5.197916666666667, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6265884', 'n_tokens_mistral': 396, 'n_tokens_neox': 355, 'n_words': 80}