<commit_before><?xml version="1.0" encoding="utf-8"?>
<!--

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->


<!--- The default skin class for a Spark ViewMenu in a mobile application.  

@see spark.components.ViewMenu

@langversion 3.0
@playerversion Flash 10
@playerversion AIR 1.5
@productversion Flex 4
-->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
             xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5">
    
    <fx:Metadata>
        <![CDATA[ 
        /** 
        * @copy spark.skins.spark.ApplicationSkin#hostComponent
        */
        [HostComponent("spark.components.ViewMenu")]
        ]]>
    </fx:Metadata> 
    
    <fx:Script fb:purpose="styling">
        <![CDATA[
            import mx.core.DPIClassification;
            import mx.core.FlexGlobals;
            import mx.core.IVisualElement;
            import mx.core.UIComponent;
            import mx.events.FlexEvent;
            
            import spark.components.supportClasses.GroupBase;
            import spark.effects.easing.Power;
            

            /**
             * @private
             */
            override protected function initializationComplete():void
            {
                useChromeColor = false;
                super.initializationComplete();
            }
                
            /**
             *  @copy spark.skins.mobile.supportClasses.MobileSkin#applicationDPI
             */
            public function get applicationDPI():int
            {
                return FlexGlobals.topLevelApplication.applicationDPI;
            }
            
            /**
             *  @private
             */
            override protected function measure():void
            {
                super.measure();
                
                // not actually used in normal situations, but 
                // is here to prevent bug 28950 if ViewMenu is misused
                measuredHeight = 200;
            }
            
            /**
             *  @private
             */
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                
                var strokeWeight:Number = (applicationDPI == DPIClassification.DPI_320) ? 2 : 1;
                var separatorWeight:Number = 1;
                
                if (applicationDPI == DPIClassification.DPI_320)
                    separatorWeight = 4;
                else if (applicationDPI == DPIClassification.DPI_240)
                    separatorWeight = 2;          
                
                dividerStroke.weight = strokeWeight;
                background.top = strokeWeight;
                contentGroup.top = strokeWeight + separatorWeight;
                contentGroup.bottom = separatorWeight;
                contentGroupLayout.horizontalGap = separatorWeight;
                contentGroupLayout.verticalGap = separatorWeight;
            }

        ]]>
    </fx:Script>
    
    <s:states>
        <s:State name="normal"                          stateGroups="openedGroup"/><commit_msg>Added support for 480dpi<commit_after><?xml version="1.0" encoding="utf-8"?>
<!--

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->


<!--- The default skin class for a Spark ViewMenu in a mobile application.  

@see spark.components.ViewMenu

@langversion 3.0
@playerversion Flash 10
@playerversion AIR 1.5
@productversion Flex 4
-->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
             xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5">
    
    <fx:Metadata>
        <![CDATA[ 
        /** 
        * @copy spark.skins.spark.ApplicationSkin#hostComponent
        */
        [HostComponent("spark.components.ViewMenu")]
        ]]>
    </fx:Metadata> 
    
    <fx:Script fb:purpose="styling">
        <![CDATA[
            import mx.core.DPIClassification;
            import mx.core.FlexGlobals;
            import mx.core.IVisualElement;
            import mx.core.UIComponent;
            import mx.events.FlexEvent;
            
            import spark.components.supportClasses.GroupBase;
            import spark.effects.easing.Power;
            

            /**
             * @private
             */
            override protected function initializationComplete():void
            {
                useChromeColor = false;
                super.initializationComplete();
            }
                
            /**
             *  @copy spark.skins.mobile.supportClasses.MobileSkin#applicationDPI
             */
            public function get applicationDPI():int
            {
                return FlexGlobals.topLevelApplication.applicationDPI;
            }
            
            /**
             *  @private
             */
            override protected function measure():void
            {
                super.measure();
                
                // not actually used in normal situations, but 
                // is here to prevent bug 28950 if ViewMenu is misused
                measuredHeight = 200;
            }
            
            /**
             *  @private
             */
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                
                var strokeWeight:Number = (applicationDPI == DPIClassification.DPI_480 || applicationDPI == DPIClassification.DPI_320) ? 2 : 1;
                var separatorWeight:Number = 1;
                
				if (applicationDPI == DPIClassification.DPI_480)
					separatorWeight = 6;
				else if (applicationDPI == DPIClassification.DPI_320)
                    separatorWeight = 4;
                else if (applicationDPI == DPIClassification.DPI_240)
                    separatorWeight = 2;          
                
                dividerStroke.weight = strokeWeight;
                background.top = strokeWeight;
                contentGroup.top = strokeWeight + separatorWeight;
                contentGroup.bottom = separatorWeight;
                contentGroupLayout.horizontalGap = separatorWeight;
                contentGroupLayout.verticalGap = separatorWeight;
            }

        ]]>
    </fx:Script>
    
    <s:states>
        <s:State name="normal"                          stateGroups="openedGroup"/>
{'fraction_non_alphanumeric': 0.08188153310104529, 'fraction_numerical': 0.012692882030861125, 'mean_word_length': 1.740197749744289, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 2, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '4334503', 'n_tokens_mistral': 2112, 'n_tokens_neox': 1941, 'n_words': 520}