<commit_before>module Effect
	class ActOnTick < Effect::Base

		def initialize(parent, interval)
			@interval = interval.to_sym
			@parent = parent

			define_singleton_method ('tick_' + interval.to_s).to_sym do |target|
				tick_event target
			end
		end

		def tick_event(target, additional_target = nil)
			return additional_target unless additional_target === nil
			return target
		end

		def describe
			"Each #{@interval.to_s} tick, "
		end

		def save_state
			[self.class.name, @interval] # Will take the inherited class name
		end
	end
end<commit_msg>Resolve issue with ticks not transmitting the optional extra arguments<commit_after>module Effect
	class ActOnTick < Effect::Base

		def initialize(parent, interval)
			@interval = interval.to_sym
			@parent = parent

			define_singleton_method ('tick_' + interval.to_s).to_sym do |*args|
				tick_event *args
			end
		end

		def tick_event(target, additional_target = nil)
			return additional_target unless additional_target === nil
			return target
		end

		def describe
			"Each #{@interval.to_s} tick, "
		end

		def save_state
			[self.class.name, @interval] # Will take the inherited class name
		end
	end
end
{'fraction_non_alphanumeric': 0.07816482582837724, 'fraction_numerical': 0.0, 'mean_word_length': 3.8677685950413223, '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': '3855221', 'n_tokens_mistral': 422, 'n_tokens_neox': 356, 'n_words': 112}