<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2009 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
package spark.automation.delegates.skins.spark
{
	import flash.display.DisplayObject;
	
	import mx.automation.Automation;
	import mx.automation.IAutomationObject;
	import mx.core.UIComponent;
	import mx.core.mx_internal;
	
	import spark.automation.delegates.components.SparkGroupAutomationImpl;
	import spark.automation.delegates.components.gridClasses.SparkGridItemRendererAutomationImpl;
	import spark.skins.spark.DefaultGridHeaderRenderer;
	
	use namespace mx_internal;
	
	[Mixin]
	/**
	 * 
	 *  Defines methods and properties required to perform instrumentation for the 
	 *  ItemRenderer class for spark.
	 * 
	 *  @see spark.skins.spark.DefaultItemRenderer
	 *
	 *  
	 *  @langversion 3.0
	 *  @playerversion Flash 10
	 *  @playerversion AIR 1.1
	 *  @productversion Flex 4
	 */
	public class SparkDefaultGridHeaderRendererAutomationImpl extends SparkGridItemRendererAutomationImpl
	{
		include "../../../../core/Version.as";
		
		//--------------------------------------------------------------------------
		//
		//  Class methods
		//
		//--------------------------------------------------------------------------
		
		/**
		 *  Registers the delegate class for a component class with automation manager.
		 *  
		 *  @param root The SystemManger of the application.
		 *  
		 *  @langversion 3.0
		 *  @playerversion Flash 9
		 *  @playerversion AIR 1.1
		 *  @productversion Flex 3
		 */
		public static function init(root:DisplayObject):void
		{
			Automation.registerDelegateClass(spark.skins.spark.DefaultGridHeaderRenderer, SparkDefaultGridHeaderRendererAutomationImpl);
		}   
		
		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		
		/**
		 *  Constructor.
		 * @param obj DefaultGridHeaderRenderer object to be automated.     
		 *  
		 *  @langversion 3.0
		 *  @playerversion Flash 10.2
		 *  @playerversion AIR 2.0
		 *  @productversion Flex 4.5
		 */
		public function SparkDefaultGridHeaderRendererAutomationImpl(obj:DefaultGridHeaderRenderer)
		{
			super(obj);
			recordClick = false;
		}
		
		//--------------------------------------------------------------------------
		//
		//  Variables
		//
		//--------------------------------------------------------------------------
		
		/**
		 *  @private
		 *  storage for the owner component
		 */
		protected function get gridItem():spark.skins.spark.DefaultGridHeaderRenderer
		{
			return uiComponent as spark.skins.spark.DefaultGridHeaderRenderer;
		}
		
		
		//--------------------------------------------------------------------------
		//
		//  Overridden properties
		//
		//--------------------------------------------------------------------------
		
		//----------------------------------
		//  automationName
		//----------------------------------
		
		/**
		 *  @private
		 */
		override public function get automationName():String
		{
			return gridItem.label|| super.automationName;
		}
		
		//----------------------------------
		//  automationValue
		//----------------------------------
		
		/**
		 *  @private
		 */
		override public function get automationValue():Array
		{
			return [automationName];
		}
		
		override public function getAutomationChildAt(index:int):IAutomationObject
		{
			return null;
		}
		
		override public function get numAutomationChildren():int
		{
			return 0;
		}
		
		override public function getAutomationChildren():Array
		{
			return [];
		}
	}
}<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2009 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
package spark.automation.delegates.skins.spark
{
    import flash.display.DisplayObject;
    
    import mx.automation.Automation;
    import mx.automation.IAutomationObject;
    import mx.core.UIComponent;
    import mx.core.mx_internal;
    
    import spark.automation.delegates.components.SparkGroupAutomationImpl;
    import spark.automation.delegates.components.gridClasses.SparkGridItemRendererAutomationImpl;
    import spark.skins.spark.DefaultGridHeaderRenderer;
    
    use namespace mx_internal;
    
    [Mixin]
    /**
     * 
     *  Defines methods and properties required to perform instrumentation for the 
     *  ItemRenderer class for spark.
     * 
     *  @see spark.skins.spark.DefaultItemRenderer
     *
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 2.5
     *  @productversion Flex 4.5
     */
    public class SparkDefaultGridHeaderRendererAutomationImpl extends SparkGridItemRendererAutomationImpl
    {
        include "../../../../core/Version.as";
        
        //--------------------------------------------------------------------------
        //
        //  Class methods
        //
        //--------------------------------------------------------------------------
        
        /**
         *  Registers the delegate class for a component class with automation manager.
         *  
         *  @param root The SystemManger of the application.
         *  
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 2.5
         *  @productversion Flex 4.5
         */
        public static function init(root:DisplayObject):void
        {
            Automation.registerDelegateClass(spark.skins.spark.DefaultGridHeaderRenderer, SparkDefaultGridHeaderRendererAutomationImpl);
        }   
        
        //--------------------------------------------------------------------------
        //
        //  Constructor
        //
        //--------------------------------------------------------------------------
        
        /**
         *  Constructor.
         * @param obj DefaultGridHeaderRenderer object to be automated.     
         *  
         *  @langversion 3.0
         *  @playerversion Flash 10.2
         *  @playerversion AIR 2.5
         *  @productversion Flex 4.5
         */
        public function SparkDefaultGridHeaderRendererAutomationImpl(obj:DefaultGridHeaderRenderer)
        {
            super(obj);
            recordClick = false;
        }
        
        //--------------------------------------------------------------------------
        //
        //  Variables
        //
        //--------------------------------------------------------------------------
        
        /**
         *  @private
         *  storage for the owner component
         */
        protected function get gridItem():spark.skins.spark.DefaultGridHeaderRenderer
        {
            return uiComponent as spark.skins.spark.DefaultGridHeaderRenderer;
        }
        
        
        //--------------------------------------------------------------------------
        //
        //  Overridden properties
        //
        //--------------------------------------------------------------------------
        
        //----------------------------------
        //  automationName
        //----------------------------------
        
        /**
         *  @private
         */
        override public function get automationName():String
        {
            return gridItem.label|| super.automationName;
        }
        
        //----------------------------------
        //  automationValue
        //----------------------------------
        
        /**
         *  @private
         */
        override public function get automationValue():Array
        {
            return [automationName];
        }
        
        override public function getAutomationChildAt(index:int):IAutomationObject
        {
            return null;
        }
        
        override public function get numAutomationChildren():int
        {
            return 0;
        }
        
        override public function getAutomationChildren():Array
        {
            return [];
        }
    }
}
{'fraction_non_alphanumeric': 0.27411751178567323, 'fraction_numerical': 0.006553984132459468, 'mean_word_length': 1.098431845597105, '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': '383168', 'n_tokens_mistral': 2184, 'n_tokens_neox': 1898, 'n_words': 421}