<commit_before>class AdministratorConstraint
	def matches?(request)
		return false unless request.session[:user_id] && request.session[:security_code]
		User.find_by(id: session[:user_id], security_code: session[:security_code])
		user && user.administrator?
	end
end<commit_msg>Fix AdministratorConstraint<commit_after>class AdministratorConstraint
	def matches?(request)
		return false unless request.session[:user_id] && request.session[:security_code]
		user = User.find_by(id: request.session[:user_id], security_code: request.session[:security_code])
		user && user.administrator?
	end
end
{'fraction_non_alphanumeric': 0.11260504201680673, 'fraction_numerical': 0.0, 'mean_word_length': 8.030303030303031, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4501263', 'n_tokens_mistral': 178, 'n_tokens_neox': 170, 'n_words': 35}