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

-- LightingStatusRequest
--
local LightingStatusRequest = Class{name='LightingStatusRequest',
	inherits=Event,
	function(self, entity)
		if type(entity) ~= number then entity = entity:getID() end
		verify('number', entity)
		assert(EntityRegistry:exists(entity),
			'LightingStatusRequest: entity %d does not exist', entity)

		Event.construct(self, 'Lighting Status Request')

		self._entity = entity
	end
}

-- destructor
function LightingStatusRequest:destroy()
	self._entity = nil
	Event.destroy(self)
end

function LightingStatusRequest:getEntity() return self._entity end

-- the class
return LightingStatusRequest<commit_msg>pass position with lighting status request<commit_after>local Class = require 'lib.hump.class'
local Event = getClass 'pud.event.Event'

-- LightingStatusRequest
--
local LightingStatusRequest = Class{name='LightingStatusRequest',
	inherits=Event,
	function(self, entity, x, y)
		if type(entity) ~= number then entity = entity:getID() end
		verify('number', entity, x, y)
		assert(EntityRegistry:exists(entity),
			'LightingStatusRequest: entity %d does not exist', entity)

		Event.construct(self, 'Lighting Status Request')

		self._entity = entity
		self._x = x
		self._y = y
	end
}

-- destructor
function LightingStatusRequest:destroy()
	self._entity = nil
	Event.destroy(self)
end

function LightingStatusRequest:getEntity() return self._entity end
function LightingStatusRequest:getPosition() return self._x, self._y end

-- the class
return LightingStatusRequest
{'fraction_non_alphanumeric': 0.10513141426783479, 'fraction_numerical': 0.0, 'mean_word_length': 5.55327868852459, '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': '4993464', 'n_tokens_mistral': 491, 'n_tokens_neox': 472, 'n_words': 128}