<commit_before>class Applicant < ActiveRecord::Base
	before_create :confirmation_token
	attr_accessible :username, :studentid, :phone, :department, :email, :name, :password,:isvalid
	has_many :requests, dependent: :destroy
	private
	def confirmation_token
		if self.confirmation_token.blank?
			self.confirmation_token = SecureRandom.urlsafe_base64.to_s
		end
	end
	def email_active
		self.email_confirmed = true
		self.confirm_token = nil
		#save!(:validate => false)
	end
end<commit_msg>change private method<commit_after>class Applicant < ActiveRecord::Base
	before_create :confirmation_token
	attr_accessible :username, :studentid, :phone, :department, :email, :name, :password,:isvalid
	has_many :requests, dependent: :destroy
	#private

	def confirmation_token
		if self.confirmation_token.blank?
			self.confirmation_token = SecureRandom.urlsafe_base64.to_s
		end
	end

	def email_active
		self.email_confirmed = true
		self.confirm_token = nil
	end

end
{'fraction_non_alphanumeric': 0.08532778355879292, 'fraction_numerical': 0.004162330905306972, 'mean_word_length': 6.021897810218978, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1036759', 'n_tokens_mistral': 334, 'n_tokens_neox': 308, 'n_words': 71}