<commit_before>--- A BaseObject basically just adds the :Destroy() interface, and a _maid, along with an optional object it references.
-- @classmod BaseObject

local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))

local Maid = require("Maid")

local BaseObject = {}
BaseObject.ClassName = "BaseObject"
BaseObject.__index = BaseObject

function BaseObject.new(obj)
	local self = setmetatable({}, BaseObject)

	self._maid = Maid.new()
	self._obj = obj

	return self
end

function BaseObject:Destroy()
	self._maid:DoCleaning()
	setmetatable(self, nil)
end

return BaseObject<commit_msg>baseObject warning<commit_after>--- A BaseObject basically just adds the :Destroy() interface, and a _maid, along with an optional object it references.
-- @classmod BaseObject

local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))

local Maid = require("Maid")

local BaseObject = {}
BaseObject.ClassName = "BaseObject"
BaseObject.__index = BaseObject

function BaseObject.new(obj)
	local self = setmetatable({}, BaseObject)

	self._maid = Maid.new()
	self._obj = obj

	return self
end

function BaseObject:Destroy()
	local startTime = tick()
	self._maid:DoCleaning()
	if tick() - startTime >= 0.001 then
		warn(("[BaseObject.Destroy] - Took %f ms to clean up %s")
			:format(tick() - startTime, tostring(self.ClassName)))
	end
	setmetatable(self, nil)
end

return BaseObject
{'fraction_non_alphanumeric': 0.11686494051784464, 'fraction_numerical': 0.0027991602519244225, 'mean_word_length': 5.470588235294118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1979484', 'n_tokens_mistral': 447, 'n_tokens_neox': 433, 'n_words': 128}