<commit_before>if RallyPoints == nil then
	print ('[RALLYPONTS] creating RallyPoints')
	_G.RallyPoints = class({})
end

function RallyPoints:PlayerSetRallyPointGround( event )
	local building = EntIndexToHScript(event.entIndex)
	local targetPoint = event.targetPoint
	building:SetRallyPointGround(targetPoint)
end

function RallyPoints:PlayerSetRallyPointEntity( event )
	local building = EntIndexToHScript(event.entIndex)
	local targetEntity = EntIndexToHScript(event.targetEntity)
	building:SetRallyPointEntity(targetEntity)
	--print("Target is:", targetEntity:GetUnitName())
end

function RallyPoints:PlayerRemovedRallyPoint( event )
	local building = EntIndexToHScript(event.entIndex)
	building:RemoveRallyPoint()
end

function RallyPoints:AttachRallyPointControl( building )

	-- Initial location of rally point is on the building itself
	local owner = building:GetOwner()
	building['RallyPoint'] = {}
	building['RallyPoint'].rallySet = false
	building['RallyPoint'].TargetRally = false
	building['RallyPoint'].GroundRally = false
	
	function building:SetRallyPointGround(location) -- Coordinates passed from PlayerSetRallyPoint		
	
		building['RallyPoint'].GroundRally = true
		building['RallyPoint'].TargetRally = false
		
		building['RallyPoint'].position = Vector(location["0"], location["1"], location["2"])
		--print("Vector:", building['RallyPoint'].position)
		building['RallyPoint'].rallySet = true 
	end
	
	function building:SetRallyPointEntity(unitHandle)
		
		building['RallyPoint'].TargetRally = true
		building['RallyPoint'].GroundRally = false
		
		building['RallyPoint'].targetEntity = unitHandle
		building['RallyPoint'].rallySet = true
	end
	
	function building:RemoveRallyPoint()
		building['RallyPoint'].TargetRally = false<commit_msg>Update iQueue_RallyPoints.lua<commit_after>if RallyPoints == nil then
	print ('[RALLYPONTS] creating RallyPoints')
	_G.RallyPoints = class({})
end

function RallyPoints:PlayerSetRallyPointGround( event )
	local building = EntIndexToHScript(event.entIndex)
	local targetPoint = event.targetPoint
	building:SetRallyPointGround(targetPoint)
end

function RallyPoints:PlayerSetRallyPointEntity( event )
	local building = EntIndexToHScript(event.entIndex)
	local targetEntity = EntIndexToHScript(event.targetEntity)
	building:SetRallyPointEntity(targetEntity)
	--print("Target is:", targetEntity:GetUnitName())
end

function RallyPoints:PlayerRemovedRallyPoint( event )
	local building = EntIndexToHScript(event.entIndex)
	building:RemoveRallyPoint()
end

function RallyPoints:AttachRallyPointControl( building )

	-- Initial location of rally point is on the building itself
	local owner = building:GetOwner()
	building['RallyPoint'] = {}
	building['RallyPoint'].rallySet = false
	building['RallyPoint'].TargetRally = false
	building['RallyPoint'].GroundRally = false
	
	function building:SetRallyPointGround(location) -- Coordinates passed from PlayerSetRallyPointGround	
	
		building['RallyPoint'].GroundRally = true
		building['RallyPoint'].TargetRally = false
		
		building['RallyPoint'].position = Vector(location["0"], location["1"], location["2"])
		--print("Vector:", building['RallyPoint'].position)
		building['RallyPoint'].rallySet = true 
	end
	
	function building:SetRallyPointEntity(unitHandle)
		
		building['RallyPoint'].TargetRally = true
		building['RallyPoint'].GroundRally = false
		
		building['RallyPoint'].targetEntity = unitHandle
		building['RallyPoint'].rallySet = true
	end
	
	function building:RemoveRallyPoint()
		building['RallyPoint'].TargetRally = false
{'fraction_non_alphanumeric': 0.10872634848912736, 'fraction_numerical': 0.0016944365998305564, 'mean_word_length': 6.941704035874439, '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': '4822950', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1042, 'n_words': 202}