<commit_before>--- General humanoid utility code.
-- @module HumanoidUtil
-- @alias HumanoidUtil

local HumanoidUtil = {}

--- Retrieves a humanoid from a descendant (Players only).
-- @param descendant Child of a humanoid model, like a limb
-- @return Humanoid
function HumanoidUtil.GetHumanoid(descendant)
	local character = descendant
	while character do
		local humanoid = character:FindFirstChildOfClass("Humanoid")
		if humanoid then
			return humanoid
		end
		character = character.Parent
	end

	return nil
end

--- Forcefully unseats the humanoid. Useful when teleporting humanoid
function HumanoidUtil.ForceUnseatHumanoid(humanoid)
	if humanoid.SeatPart then
		local weld = humanoid.SeatPart:FindFirstChild("SeatWeld")
		if weld then
			weld:Destroy()
		end

		humanoid.SeatPart:Sit(nil)
	end
	humanoid.Sit = false
end

return HumanoidUtil<commit_msg>Update HumanoidUtil to lowerCase<commit_after>--- General humanoid utility code.
-- @module HumanoidUtil
-- @alias HumanoidUtil

local HumanoidUtil = {}

--- Retrieves a humanoid from a descendant (Players only).
-- @param descendant Child of a humanoid model, like a limb
-- @return Humanoid
function HumanoidUtil.getHumanoid(descendant)
	local character = descendant
	while character do
		local humanoid = character:FindFirstChildOfClass("Humanoid")
		if humanoid then
			return humanoid
		end
		character = character.Parent
	end

	return nil
end

--- Forcefully unseats the humanoid. Useful when teleporting humanoid
function HumanoidUtil.forceUnseatHumanoid(humanoid)
	if humanoid.SeatPart then
		local weld = humanoid.SeatPart:FindFirstChild("SeatWeld")
		if weld then
			weld:Destroy()
		end

		humanoid.SeatPart:Sit(nil)
	end
	humanoid.Sit = false
end

return HumanoidUtil
{'fraction_non_alphanumeric': 0.07475560667050028, 'fraction_numerical': 0.0, 'mean_word_length': 4.506329113924051, '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': '660609', 'n_tokens_mistral': 577, 'n_tokens_neox': 530, 'n_words': 166}