<commit_before>module Effect
	class MoralityRestrictionTarget < Effect::MoralityRestriction

		def initialize(*args)
			super *args
		end

		def learn_intent_callback(action, intent)
			# Nullify the check since it doesn't apply to target restrictions
		end

		def morality_check(action, intent)
			if action == :possible?
				entity = intent.entity
				entity = intent.target_entity if @type == :target && entity.respond_to?(:target_entity)
				text  =  "Morality check - #{entity.mo} needs to be between #{@mo_min} and #{@mo_max}"
				intent.debug text
				return entity.mo >= @mo_min * 10 && entity.mo <= @mo_max * 10
			end
		end

		def describe
			"Target's Morality must be #{@mo_min} - #{@mo_max}"
		end

	end
end<commit_msg>change init<commit_after>module Effect
	class MoralityRestrictionTarget < Effect::MoralityRestriction

		def initialize(parent, min, max)
			super parent, min, max
		end

		def learn_intent_callback(action, intent)
			# Nullify the check since it doesn't apply to target restrictions
		end

		def morality_check(action, intent)
			if action == :possible?
				entity = intent.entity
				entity = intent.target_entity if @type == :target && entity.respond_to?(:target_entity)
				text  =  "Morality check - #{entity.mo} needs to be between #{@mo_min} and #{@mo_max}"
				intent.debug text
				return entity.mo >= @mo_min * 10 && entity.mo <= @mo_max * 10
			end
		end

		def describe
			"Target's Morality must be #{@mo_min} - #{@mo_max}"
		end

	end
end
{'fraction_non_alphanumeric': 0.10646900269541779, 'fraction_numerical': 0.005390835579514825, 'mean_word_length': 3.729299363057325, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '6263497', 'n_tokens_mistral': 561, 'n_tokens_neox': 462, 'n_words': 146}