<commit_before><?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Rotate effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
    initialize="Font.registerFont(myriad_font);">

    <mx:Script>
        <![CDATA[

            import flash.text.Font;
            
            [Embed("assets/MyriadWebPro.ttf", fontName="MyMyriad")]
            public var myriad_font:Class;

            [Bindable]
            public var angle:int=0;

            private function rotateImage():void {
                rotate.end();
                angle += 45;
                rotate.play();
            }
      ]]>
    </mx:Script>

    <mx:Rotate id="rotate" angleFrom="{angle-45}" angleTo="{angle}" target="{myVB}"/>

    <mx:Panel title="Rotate Effect Example" horizontalAlign="center" 
        width="75%" height="75%" layout="horizontal"
        paddingTop="5" paddingLeft="10" paddingRight="10" paddingBottom="5">

        <mx:VBox id="myVB" width="50%" horizontalAlign="center">
            <mx:Label text="Nokia 9930"  
                fontFamily="MyMyriad" fontSize="14"/>

            <mx:Image id="img" 
                source="@Embed(source='assets/Nokia_6630.png')"/>
        </mx:VBox>

        <mx:Text width="50%" color="blue" 
            text="Click the button to rotate the image 45 degrees. Use an embedded font when applying the Rotate effect to text."/>

        <mx:ControlBar>
            <mx:Button label="Rotate 45 Degrees" click="rotateImage();"/>
        </mx:ControlBar>
    </mx:Panel>
</mx:Application>
<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after><?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Rotate effect. -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        initialize="Font.registerFont(myriad_font);">

    <fx:Script>
        <![CDATA[

            import flash.text.Font;

            [Embed("assets/MyriadWebPro.ttf", fontName="MyMyriad")]
            public var myriad_font:Class;

            [Bindable]
            public var angle:int=0;

            private function rotateImage():void {
                rotate.end();
                angle += 45;
                rotate.play();
            }
      ]]>
    </fx:Script>

    <fx:Declarations>
        <mx:Rotate id="rotate" angleFrom="{angle-45}" angleTo="{angle}" target="{myVB}"/>
    </fx:Declarations>

    <s:Panel title="Halo Rotate Effect Example" width="75%" height="75%" >
        <s:VGroup left="20" right="20" top="20" bottom="20">

            <s:VGroup id="myVB" width="50%" horizontalAlign="center">
                <mx:Label text="Nokia 9930"
                    fontFamily="MyMyriad" fontSize="14"/>

                <mx:Image id="img"
                    source="@Embed(source='assets/Nokia_6630.png')"/>
            </s:VGroup>

            <s:SimpleText width="50%" color="blue"
                text="Click the button to rotate the image 45 degrees. Use an embedded font when applying the Rotate effect to text."/>

            <s:Button label="Rotate 45 Degrees" click="rotateImage();"/>
        </s:VGroup>
    </s:Panel>
</s:Application>

{'fraction_non_alphanumeric': 0.15556234718826406, 'fraction_numerical': 0.02506112469437653, 'mean_word_length': 2.2762762762762763, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 2, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 8}, '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': '6724565', 'n_tokens_mistral': 1081, 'n_tokens_neox': 942, 'n_words': 202}