<commit_before>package spark.automation.delegates.components
{
	import flash.display.DisplayObject;
	
	import mx.automation.Automation;
	import mx.automation.IAutomationObject;
	import mx.automation.IAutomationObjectHelper;
	import mx.automation.delegates.core.UIComponentAutomationImpl;
	import mx.core.UIComponent;
	import mx.core.mx_internal;
	
	import spark.components.PopUpAnchor;
	
	use namespace mx_internal;
	
	[Mixin]
	public class SparkPopUpAnchorAutomationImpl extends UIComponentAutomationImpl
	{
		
		include "../../../core/Version.as";
		
		//--------------------------------------------------------------------------
		//
		//  Class methods
		//
		//--------------------------------------------------------------------------
		
		/**
		 *  Registers the delegate class for a component class with automation manager.
		 *  
		 *  @param root DisplayObject object representing the application root. 
		 *  
		 *  @langversion 3.0
		 *  @playerversion Flash 10
		 *  @playerversion AIR 2.5
		 *  @productversion Flex 4.5
		 */
		public static function init(root:DisplayObject):void
		{
			Automation.registerDelegateClass(PopUpAnchor, SparkPopUpAnchorAutomationImpl);
		}   
		
		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		
		/**
		 *  Constructor.
		 *
		 *  @param obj PopUpAnchor object to be automated.     
		 *  
		 *  @langversion 3.0
		 *  @playerversion Flash 10
		 *  @playerversion AIR 2.5
		 *  @productversion Flex 4.5
		 */
		public function SparkPopUpAnchorAutomationImpl(obj:PopUpAnchor)
		{
			super(obj);
		}
		
		public function get popUpAnchor():PopUpAnchor
		{
			return uiComponent as PopUpAnchor;
		}
		
		/**
		 *  @private
		 */
		override public function createAutomationIDPart(child:IAutomationObject):Object
		{
			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
			return help.helpCreateIDPart(popUpAnchor, child);
		}
		
		/**
		 *  @private
		 */
		override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
		{
			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
			return help.helpCreateIDPartWithRequiredProperties(popUpAnchor, child,properties);
		}
		
		/**
		 *  @private
		 */
		override public function resolveAutomationIDPart(criteria:Object):Array
		{
			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
			return help.helpResolveIDPart(popUpAnchor, criteria);
		}
		
		/**
		 *  @private
		 */
		override public function getAutomationChildren():Array
		{
			var childList:Array = new Array();
			childList.push(popUpAnchor.popUp as IAutomationObject);
			return childList;
		}
		
		/**
		 *  @private
		 */
		override public function get numAutomationChildren():int
		{
			return 1;
		}
		
		/**
		 *  @private
		 */
		override public function getAutomationChildAt(index:int):IAutomationObject
		{
			if(index == 0)
				return popUpAnchor.popUp as IAutomationObject;
			return null;
		}
	}
}<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after>package spark.automation.delegates.components
{
    import flash.display.DisplayObject;
    
    import mx.automation.Automation;
    import mx.automation.IAutomationObject;
    import mx.automation.IAutomationObjectHelper;
    import mx.automation.delegates.core.UIComponentAutomationImpl;
    import mx.core.UIComponent;
    import mx.core.mx_internal;
    
    import spark.components.PopUpAnchor;
    
    use namespace mx_internal;
    
    [Mixin]
    /**
     *  Defines methods and properties required to perform instrumentation for the 
     *  PopUpAnchor component.
     * 
     *  @see spark.components.PopUpAnchor
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 2.5
     *  @productversion Flex 4.5
     */
    public class SparkPopUpAnchorAutomationImpl extends UIComponentAutomationImpl
    {
        
        include "../../../core/Version.as";
        
        //--------------------------------------------------------------------------
        //
        //  Class methods
        //
        //--------------------------------------------------------------------------
        
        /**
         *  Registers the delegate class for a component class with automation manager.
         *  
         *  @param root DisplayObject object representing the application root. 
         *  
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 2.5
         *  @productversion Flex 4.5
         */
        public static function init(root:DisplayObject):void
        {
            Automation.registerDelegateClass(PopUpAnchor, SparkPopUpAnchorAutomationImpl);
        }   
        
        //--------------------------------------------------------------------------
        //
        //  Constructor
        //
        //--------------------------------------------------------------------------
        
        /**
         *  Constructor.
         *
         *  @param obj PopUpAnchor object to be automated.     
         *  
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 2.5
         *  @productversion Flex 4.5
         */
        public function SparkPopUpAnchorAutomationImpl(obj:PopUpAnchor)
        {
            super(obj);
        }
        
        public function get popUpAnchor():PopUpAnchor
        {
            return uiComponent as PopUpAnchor;
        }
        
        /**
         *  @private
         */
        override public function createAutomationIDPart(child:IAutomationObject):Object
        {
            var help:IAutomationObjectHelper = Automation.automationObjectHelper;
            return help.helpCreateIDPart(popUpAnchor, child);
        }
        
        /**
         *  @private
         */
        override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
        {
            var help:IAutomationObjectHelper = Automation.automationObjectHelper;
            return help.helpCreateIDPartWithRequiredProperties(popUpAnchor, child,properties);
        }
        
        /**
         *  @private
         */
        override public function resolveAutomationIDPart(criteria:Object):Array
        {
            var help:IAutomationObjectHelper = Automation.automationObjectHelper;
            return help.helpResolveIDPart(popUpAnchor, criteria);
        }
        
        /**
         *  @private
         */
        override public function getAutomationChildren():Array
        {
            var childList:Array = new Array();
            childList.push(popUpAnchor.popUp as IAutomationObject);
            return childList;
        }
        
        /**
         *  @private
         */
        override public function get numAutomationChildren():int
        {
            return 1;
        }
        
        /**
         *  @private
         */
        override public function getAutomationChildAt(index:int):IAutomationObject
        {
            if(index == 0)
                return popUpAnchor.popUp as IAutomationObject;
            return null;
        }
    }
}
{'fraction_non_alphanumeric': 0.15744274809160305, 'fraction_numerical': 0.0059978189749182115, 'mean_word_length': 1.6767603064574972, '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': '7255811', 'n_tokens_mistral': 2067, 'n_tokens_neox': 1871, 'n_words': 368}