<commit_before>-- Wire Trigger created by mitterdoo
AddCSLuaFile()
ENT.Base = "base_anim"
ENT.Name = "Wire Trigger Entity"
ENT.Author = "mitterdoo"

function ENT:Initialize()

	if SERVER then
		self.EntsInside = {}
	end

end
function ENT:SetupDataTables()

	self:NetworkVar( "Entity", 0, "TriggerEntity" )

end
function ENT:StartTouch( ent )

	local owner = self:GetTriggerEntity()
	if ent == owner then return end -- this never happens but just in case...
	if owner:GetFilter() == 1 and !ent:IsPlayer() or owner:GetFilter() == 2 and ent:IsPlayer() then return end
	if owner:GetOwnerOnly() and WireLib.GetOwner( ent ) != WireLib.GetOwner( owner ) then return end
	self.EntsInside[ ent ] = true
	WireLib.TriggerOutput( self:GetTriggerEntity(), "EntCount", table.Count( self.EntsInside ) )
	WireLib.TriggerOutput( self:GetTriggerEntity(), "Entities", self.EntsInside )

end
function ENT:EndTouch( ent )

	if !self.EntsInside[ ent ] then return end
	self.EntsInside[ ent ] = nil
	WireLib.TriggerOutput( self:GetTriggerEntity(), "EntCount", table.Count( self.EntsInside ) )
	WireLib.TriggerOutput( self:GetTriggerEntity(), "Entities", self.EntsInside )

end<commit_msg>Ok these really are final touch-ups now<commit_after>-- Wire Trigger created by mitterdoo
AddCSLuaFile()
ENT.Base = "base_anim"
ENT.Name = "Wire Trigger Entity"
ENT.Author = "mitterdoo"

function ENT:Initialize()

	if SERVER then
		self.EntsInside = {}
		self.Count = 0
	end

end
function ENT:SetupDataTables()

	self:NetworkVar( "Entity", 0, "TriggerEntity" )

end
function ENT:StartTouch( ent )

	local owner = self:GetTriggerEntity()
	if ent == owner then return end -- this never happens but just in case...
	if owner:GetFilter() == 1 and !ent:IsPlayer() or owner:GetFilter() == 2 and ent:IsPlayer() then return end
	if owner:GetOwnerOnly() and WireLib.GetOwner( ent ) != WireLib.GetOwner( owner ) then return end
	self.EntsInside[ ent ] = true
	self.Count = self.Count + 1
	WireLib.TriggerOutput( self:GetTriggerEntity(), "EntCount", self.Count )
	WireLib.TriggerOutput( self:GetTriggerEntity(), "Entities", self.EntsInside )

end
function ENT:EndTouch( ent )

	if !self.EntsInside[ ent ] then return end
	self.EntsInside[ ent ] = nil
	self.Count = self.Count - 1
	WireLib.TriggerOutput( self:GetTriggerEntity(), "EntCount", self.Count )
	WireLib.TriggerOutput( self:GetTriggerEntity(), "Entities", self.EntsInside )

end
{'fraction_non_alphanumeric': 0.12337933918862401, 'fraction_numerical': 0.0037641154328732747, 'mean_word_length': 5.086513994910941, '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': '6332918', 'n_tokens_mistral': 822, 'n_tokens_neox': 781, 'n_words': 225}