<commit_before>AddCSLuaFile()
DEFINE_BASECLASS("base_anim") -- NOTE: Not base_wire_entity! Simpler than that
ENT.PrintName = "Wire Hologram"
ENT.RenderGroup = RENDERGROUP_OPAQUE
ENT.DisableDuplicator = true

function ENT:SetPlayer(ply)
	self:SetVar("Founder", ply)
	self:SetVar("FounderIndex", ply:UniqueID())

	self:SetNWString("FounderName", ply:Nick())
end

function ENT:GetPlayer()
	return self:GetVar("Founder", NULL)
end

if CLIENT then
	local blocked = {}
	local scale_buffer = {}
	local bone_scale_buffer = {}
	local clip_buffer = {}
	local vis_buffer = {}
	local player_color_buffer = {}

	net.Receive( "holoQueueClear", function()
		local id = net.ReadUInt(16)
		print("Clearing: ", id)
		--clip_buffer
		if not (clip_buffer[id] == nil) then
			clip_buffer[id] = nil
		end
		--scale_buffer
		if not (scale_buffer[id] == nil) then
			scale_buffer[id] = nil
		end
		--bone_scale_buffer
		if not (bone_scale_buffer[id] == nil) then
			bone_scale_buffer[id] = nil
		end
		--vis_buffer
		if not (vis_buffer[id] == nil) then
			vis_buffer[id] = nil
		end
		--Clips
		if not (player_color_buffer[id] == nil) then
			player_color_buffer[id] = nil
		end
	end)

	function ENT:Initialize()
		self.bone_scale = {}
		self:DoScale()
		local ownerid = self:GetNWInt("ownerid")
		self.blocked = blocked[ownerid] or false

		self.clips = {}
		self:DoClip()
		self:DoVisible()
		self:DoPlayerColor()
	end

	hook.Add("PlayerBindPress", "wire_hologram_scale_setup", function() -- For initial spawn
		for _, ent in pairs(ents.FindByClass("gmod_wire_hologram")) do
			if ent:IsValid() and ent.DoScale then
				ent:DoScale()
				ent:DoClip()
				ent:DoVisible()
				ent:DoPlayerColor()
			end
		end
		hook.Remove("PlayerBindPress", "wire_hologram_scale_setup")<commit_msg>Cleanup<commit_after>AddCSLuaFile()
DEFINE_BASECLASS("base_anim") -- NOTE: Not base_wire_entity! Simpler than that
ENT.PrintName = "Wire Hologram"
ENT.RenderGroup = RENDERGROUP_OPAQUE
ENT.DisableDuplicator = true

function ENT:SetPlayer(ply)
	self:SetVar("Founder", ply)
	self:SetVar("FounderIndex", ply:UniqueID())

	self:SetNWString("FounderName", ply:Nick())
end

function ENT:GetPlayer()
	return self:GetVar("Founder", NULL)
end

if CLIENT then
	local blocked = {}
	local scale_buffer = {}
	local bone_scale_buffer = {}
	local clip_buffer = {}
	local vis_buffer = {}
	local player_color_buffer = {}

	net.Receive( "holoQueueClear", function()
		local id = net.ReadUInt(16)

		--clip_buffer
		clip_buffer[id] = nil

		--scale_buffer
		scale_buffer[id] = nil

		--bone_scale_buffer
		bone_scale_buffer[id] = nil

		--vis_buffer
		vis_buffer[id] = nil

		--Clips
		player_color_buffer[id] = nil
	end)

	function ENT:Initialize()
		self.bone_scale = {}
		self:DoScale()
		local ownerid = self:GetNWInt("ownerid")
		self.blocked = blocked[ownerid] or false

		self.clips = {}
		self:DoClip()
		self:DoVisible()
		self:DoPlayerColor()
	end

	hook.Add("PlayerBindPress", "wire_hologram_scale_setup", function() -- For initial spawn
		for _, ent in pairs(ents.FindByClass("gmod_wire_hologram")) do
			if ent:IsValid() and ent.DoScale then
				ent:DoScale()
				ent:DoClip()
				ent:DoVisible()
				ent:DoPlayerColor()
			end
		end
		hook.Remove("PlayerBindPress", "wire_hologram_scale_setup")
{'fraction_non_alphanumeric': 0.12750230982445335, 'fraction_numerical': 0.0012319063751154912, 'mean_word_length': 4.668411867364747, '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': '5198331', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1171, 'n_words': 245}