<commit_before>-- Lua FCView object class

FCView = {}

function FCView:New( name, classType )
	ret = {}
	ret.m_name = name
	ret.m_classType = classType

	FCViewManager.CreateView( name, classType )

	-- setup the metatable entries

	setmetatable( ret, self )
	self.__index = self
	self.__newindex = function() error() end

	return ret
end

function FCView:Destroy()
	FCViewManager.DestroyView( self.m_name )
end

function FCView:SetBackgroundColor( color )
	FCViewManager.SetBackgroundColor( self.m_name, color )
end

function FCView:SetFrame( frame, duration )
	FCViewManager.SetFrame( self.m_name, frame, duration )
end

function FCView:SetAlpha( alpha, duration )
	FCViewManager.SetAlpha( self.m_name, alpha, duration )
end

function FCView:SetText( text )
	FCViewManager.SetText( self.m_name, text )
end

function FCView:SetImage( image )
	FCViewManager.SetImage( self.m_name, image )
end

function FCView:SetOnSelectLuaFunction( func )
	FCViewManager.SetOnSelectLuaFunction( self.m_name, func )
end

function FCView:SetViewPropertyInteger( prop, value )
	FCViewManager.SetViewPropertyInteger( self.m_name, prop, value )
end

function FCView:SetViewPropertyString( prop, value )
	FCViewManager.SetViewPropertyString( self.m_name, prop, value )
end

<commit_msg>Minor naming changes to FCView interface<commit_after>-- Lua FCView object class

FCView = {}

function FCView:New( name, classType )
	ret = {}
	ret.m_name = name
	ret.m_classType = classType

	FCViewManager.CreateView( name, classType )

	-- setup the metatable entries

	setmetatable( ret, self )
	self.__index = self
	self.__newindex = function() error() end

	return ret
end

function FCView:Destroy()
	FCViewManager.DestroyView( self.m_name )
end

function FCView:SetBackgroundColor( color )
	FCViewManager.SetBackgroundColor( self.m_name, color )
end

function FCView:SetFrame( frame, duration )
	FCViewManager.SetFrame( self.m_name, frame, duration )
end

function FCView:GetFrame()
	return FCViewManager.GetFrame( self.m_name )
end

function FCView:SetAlpha( alpha, duration )
	FCViewManager.SetAlpha( self.m_name, alpha, duration )
end

function FCView:SetText( text )
	FCViewManager.SetText( self.m_name, text )
end

function FCView:SetImage( image )
	FCViewManager.SetImage( self.m_name, image )
end

function FCView:SetOnSelectLuaFunction( func )
	FCViewManager.SetOnSelectLuaFunction( self.m_name, func )
end

function FCView:SetIntegerProperty( prop, value )
	FCViewManager.SetViewPropertyInteger( self.m_name, prop, value )
end

function FCView:SetStringProperty( prop, value )
	FCViewManager.SetViewPropertyString( self.m_name, prop, value )
end


{'fraction_non_alphanumeric': 0.0901483453784709, 'fraction_numerical': 0.0, 'mean_word_length': 5.52605459057072, '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': '2118195', 'n_tokens_mistral': 876, 'n_tokens_neox': 865, 'n_words': 217}