<commit_before>local Class = require 'lib.hump.class'
local Event = getClass 'pud.event.Event'

-- EntityPositionEvent
--
local EntityPositionEvent = Class{name='EntityPositionEvent',
	inherits=Event,
	function(self, entity, from, to)
		verifyClass('pud.entity.Entity', entity)
		verify('vector', from, to)

		Event.construct(self, 'Entity Position Event')

		self._entity = entity
		self._from = from
		self._to = to
	end
}

-- destructor
function EntityPositionEvent:destroy()
	self._entity = nil
	self._from = nil
	self._to = nil
	Event.destroy(self)
end

function EntityPositionEvent:getEntity() return self._entity end
function EntityPositionEvent:getOrigin() return self._from:clone() end
function EntityPositionEvent:getDestination() return self._to:clone() end

-- the class
return EntityPositionEvent<commit_msg>change order of arguments<commit_after>local Class = require 'lib.hump.class'
local Event = getClass 'pud.event.Event'

-- EntityPositionEvent
--
local EntityPositionEvent = Class{name='EntityPositionEvent',
	inherits=Event,
	function(self, entity, to, from)
		verifyClass('pud.entity.Entity', entity)
		verify('vector', to, from)

		Event.construct(self, 'Entity Position Event')

		self._entity = entity
		self._to = to
		self._from = from
	end
}

-- destructor
function EntityPositionEvent:destroy()
	self._entity = nil
	self._to = nil
	self._from = nil
	Event.destroy(self)
end

function EntityPositionEvent:getEntity() return self._entity end
function EntityPositionEvent:getDestination() return self._to:clone() end
function EntityPositionEvent:getOrigin() return self._from:clone() end

-- the class
return EntityPositionEvent
{'fraction_non_alphanumeric': 0.10882708585247884, 'fraction_numerical': 0.0, 'mean_word_length': 5.46484375, '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': '1536519', 'n_tokens_mistral': 502, 'n_tokens_neox': 487, 'n_words': 128}