{"commit":"e7cbdfab19d615b146da95f6fbabc3520795fb4f","old_file":"test\/flash_test.as","new_file":"test\/flash_test.as","old_contents":"package {\n import stdio.Sprite\n\n [SWF(width=0, height=0)]\n public class flash_test extends Sprite {\n public function main(): void {\n test_body()\n }\n }\n}\n","new_contents":"package {\n import stdio.Sprite\n\n [SWF(width=100, height=100)]\n public class flash_test extends Sprite {\n public function flash_test(): void {\n graphics.beginFill(0xff0000)\n graphics.drawRect(10, 10, 80, 80)\n graphics.endFill()\n }\n\n public function main(): void {\n graphics.beginFill(0x0000ff)\n graphics.drawRect(30, 30, 40, 40)\n graphics.endFill()\n\n test_body()\n }\n }\n}\n","subject":"Add colors to Flash test to ease debugging.","message":"Add colors to Flash test to ease debugging.\n","lang":"ActionScript","license":"mit","repos":"dbrock\/stdio.as,dbrock\/stdio.as,dbrock\/stdio.as"} {"commit":"250ef712d3bba79191d5ae7f4612d391c78f52f8","old_file":"as3\/smartform\/src\/com\/rpath\/raf\/views\/CompoundInputItem.as","new_file":"as3\/smartform\/src\/com\/rpath\/raf\/views\/CompoundInputItem.as","old_contents":"\/*\n#\n# Copyright (c) 2009 rPath, Inc.\n#\n# This program is distributed under the terms of the MIT License as found \n# in a file called LICENSE. If it is not present, the license\n# is always available at http:\/\/www.opensource.org\/licenses\/mit-license.php.\n#\n# This program is distributed in the hope that it will be useful, but\n# without any warranty; without even the implied warranty of merchantability\n# or fitness for a particular purpose. See the MIT License for full details.\n*\/\n\npackage com.rpath.raf.views\n{\n import mx.core.UIComponent;\n import mx.events.ValidationResultEvent;\n \n import spark.components.Group;\n\n public class CompoundInputItem extends Group\n {\n public function CompoundInputItem()\n {\n super();\n \n \/\/ force height computation\n minHeight = 0;\n }\n\n [Bindable]\n public var inputFields:Array;\n\n public override function validationResultHandler(event:ValidationResultEvent):void\n {\n \/\/ let our specific input controls mark themselves appropriately\n for each (var elem:UIComponent in inputFields)\n {\n elem.validationResultHandler(event);\n }\n \n \/\/ propagate events beyond ourselves\n super.validationResultHandler(event);\n }\n\n }\n}","new_contents":"\/*\n#\n# Copyright (c) 2009 rPath, Inc.\n#\n# This program is distributed under the terms of the MIT License as found \n# in a file called LICENSE. If it is not present, the license\n# is always available at http:\/\/www.opensource.org\/licenses\/mit-license.php.\n#\n# This program is distributed in the hope that it will be useful, but\n# without any warranty; without even the implied warranty of merchantability\n# or fitness for a particular purpose. See the MIT License for full details.\n*\/\n\npackage com.rpath.raf.views\n{\n import mx.core.UIComponent;\n import mx.events.ValidationResultEvent;\n \n import spark.components.Group;\n\n public class CompoundInputItem extends Group\n {\n public function CompoundInputItem()\n {\n super();\n \n \/\/ force height computation\n minHeight = 0;\n }\n\n [Bindable]\n public var inputFields:Array;\n\n public override function validationResultHandler(event:ValidationResultEvent):void\n {\n \/\/ let our specific input controls mark themselves appropriately\n for each (var elem:UIComponent in inputFields)\n {\n if (elem)\n elem.validationResultHandler(event);\n }\n \n \/\/ propagate events beyond ourselves\n super.validationResultHandler(event);\n }\n\n }\n}","subject":"Handle null in validation elem iteration","message":"Handle null in validation elem iteration\n","lang":"ActionScript","license":"apache-2.0","repos":"sassoftware\/smartform"} {"commit":"282e0c5177e4bcf16e8594d9d97d97b2d63dd94c","old_file":"ImpetusSound.as","new_file":"ImpetusSound.as","old_contents":"package io.github.jwhile.impetus\n{\n import flash.media.Sound;\n import flash.media.SoundChannel;\n\n public class ImpetusSound\n {\n private var url:String;\n private var sound:Sound;\n\n private var channels:Vector.;\n\n public function ImpetusSound(url:String):void\n {\n this.url = url;\n this.sound = new Sound();\n\n this.channels = new Vector.;\n }\n } \n}\n","new_contents":"package io.github.jwhile.impetus\n{\n import flash.media.Sound;\n import flash.media.SoundChannel;\n import flash.net.URLRequest;\n\n public class ImpetusSound\n {\n private var sound:Sound;\n\n private var channels:Vector.;\n\n public function ImpetusSound(url:String):void\n {\n this.sound = new Sound();\n\n this.channels = new Vector.;\n\n this.sound.load(new URLRequest(url));\n }\n } \n}\n","subject":"Load sound directly on constructor","message":"Load sound directly on constructor\n","lang":"ActionScript","license":"mit","repos":"Julow\/Impetus"} {"commit":"249ac6912541cdd6eff1d6ec04f86a1de1f6e597","old_file":"FlexUnit4Test\/src\/org\/flexunit\/experimental\/theories\/internals\/cases\/ParameterizedAssertionErrorCase.as","new_file":"FlexUnit4Test\/src\/org\/flexunit\/experimental\/theories\/internals\/cases\/ParameterizedAssertionErrorCase.as","old_contents":"package org.flexunit.experimental.theories.internals.cases\r\n{\r\n\timport org.flexunit.Assert;\r\n\timport org.flexunit.experimental.theories.internals.ParameterizedAssertionError;\r\n\r\n\tpublic class ParameterizedAssertionErrorCase\r\n\t{\r\n\t\t\/\/TODO: Ensure that these tests and this test case are being implemented correctly.\r\n\t\t\/\/It is currently impossible to test the stringValueOf function.\r\n\t\t\r\n\t\t[Test(description=\"Ensure that the ParameterizedAssertionError constructor is correctly assigning parameter values\")]\r\n\t\tpublic function constructorTest():void {\r\n\t\t\tvar targetException:Error = new Error();\r\n\t\t\tvar methodName:String = \"methodName\";\r\n\t\t\tvar params:Array = new Array(\"valueOne\", \"valueTwo\");\r\n\t\t\t\r\n\t\t\tvar parameterizedAssertionError:ParameterizedAssertionError = new ParameterizedAssertionError(targetException, methodName, \"valueOne\", \"valueTwo\");\r\n\t\t\t\r\n\t\t\tvar message:String = methodName + \" \" + params.join( \", \" );\r\n\t\t\tAssert.assertEquals( message, parameterizedAssertionError.message);\r\n\t\t\tAssert.assertEquals( targetException, parameterizedAssertionError.targetException );\r\n\t\t}\r\n\t\t\r\n\t\t[Test(description=\"Ensure that the join function is correctly joining the delimiter to the other parameters\")]\r\n\t\tpublic function joinTest():void {\r\n\t\t\tvar delimiter:String = \", \";\r\n\t\t\tvar params:Array = new Array(\"valueOne\", \"valueTwo\", \"valueThree\");\r\n\t\t\t\r\n\t\t\tvar message:String = params.join( delimiter );\r\n\t\t\tAssert.assertEquals( message, ParameterizedAssertionError.join(delimiter, \"valueOne\", \"valueTwo\", \"valueThree\") );\r\n\t\t}\r\n\t}\r\n}","new_contents":"package org.flexunit.experimental.theories.internals.cases\n{\n\timport org.flexunit.Assert;\n\timport org.flexunit.experimental.theories.internals.ParameterizedAssertionError;\n\n\tpublic class ParameterizedAssertionErrorCase\n\t{\n\t\t\/\/TODO: Ensure that these tests and this test case are being implemented correctly.\n\t\t\/\/It is currently impossible to test the stringValueOf function.\n\t\t\n\t\t[Ignore(\"Currently Ignoring Test as this functionality is under investigation due to Max stack overflow issue\")]\n\t\t[Test(description=\"Ensure that the ParameterizedAssertionError constructor is correctly assigning parameter values\")]\n\t\tpublic function constructorTest():void {\n\t\t\tvar targetException:Error = new Error();\n\t\t\tvar methodName:String = \"methodName\";\n\t\t\tvar params:Array = new Array(\"valueOne\", \"valueTwo\");\n\t\t\t\n\t\t\tvar parameterizedAssertionError:ParameterizedAssertionError = new ParameterizedAssertionError(targetException, methodName, \"valueOne\", \"valueTwo\");\n\t\t\t\n\t\t\tvar message:String = methodName + \" \" + params.join( \", \" );\n\t\t\tAssert.assertEquals( message, parameterizedAssertionError.message);\n\t\t\tAssert.assertEquals( targetException, parameterizedAssertionError.targetException );\n\t\t}\n\t\t\n\t\t[Test(description=\"Ensure that the join function is correctly joining the delimiter to the other parameters\")]\n\t\tpublic function joinTest():void {\n\t\t\tvar delimiter:String = \", \";\n\t\t\tvar params:Array = new Array(\"valueOne\", \"valueTwo\", \"valueThree\");\n\t\t\t\n\t\t\tvar message:String = params.join( delimiter );\n\t\t\tAssert.assertEquals( message, ParameterizedAssertionError.join(delimiter, \"valueOne\", \"valueTwo\", \"valueThree\") );\n\t\t}\n\t}\n}","subject":"Set test to ignore while stack trace is still under investigation","message":"Set test to ignore while stack trace is still under investigation\n","lang":"ActionScript","license":"apache-2.0","repos":"SlavaRa\/flex-flexunit,SlavaRa\/flex-flexunit,SlavaRa\/flex-flexunit,apache\/flex-flexunit,apache\/flex-flexunit,apache\/flex-flexunit,SlavaRa\/flex-flexunit,apache\/flex-flexunit"} {"commit":"5a0a30838ae3515302f39b2f3ccb3ea98aba5101","old_file":"braineditor\/Brain.as","new_file":"braineditor\/Brain.as","old_contents":"import Drawable;\r\nimport Lobe;\r\nimport Core;\r\n\r\nclass Brain{\r\n static var brain = new Array();\r\n var mSelectionManager:SelectionManager;\r\n static function makenewlobe(){\r\n var newmov=(new Lobe(_root,_root.getNextHighestDepth()));\r\n var topleft = new Point(100,40);\r\n var botright = new Point(200,140);\r\n newmov.commitBox(topleft, botright, 0);\r\n var keyListener = {};\r\n keyListener.onKeyDown = function()\r\n {\r\n var k = Key.getCode();\r\n if(k == Key.DELETEKEY){\r\n Brain.makenewlobe();\r\n }\r\n };\r\n }\r\n function Brain (root_mc:MovieClip) {\r\n mSelectionManager = new SelectionManager(root_mc);\r\n }\r\n}\r\n\r\n","new_contents":"import Drawable;\r\nimport Lobe;\r\nimport Core;\r\n\r\nclass Brain{\r\n static var brain = new Array();\r\n var mSelectionManager:SelectionManager;\r\n static function makenewlobe(){\r\n var newmov=(new Lobe(_root,_root.getNextHighestDepth()));\r\n var topleft = new Point(100,40);\r\n var botright = new Point(200,140);\r\n newmov.commitBox(topleft, botright, 0);\r\n }\r\n\r\n function Brain (root_mc:MovieClip) {\r\n mSelectionManager = new SelectionManager(root_mc);\r\n var keyListener = {};\r\n keyListener.onKeyDown = function()\r\n {\r\n var k = Key.getCode();\r\n if(k == Key.DELETEKEY){\r\n Brain.makenewlobe();\r\n }\r\n };\r\n Key.addListener( keyListener );\r\n }\r\n}\r\n\r\n","subject":"Delete is now a non-core function","message":"Delete is now a non-core function\n\ngit-svn-id: f772d44cbf86d9968f12179c1556189f5afcea6e@658 e0ac87d7-b42b-0410-9034-8248a05cb448\n","lang":"ActionScript","license":"bsd-3-clause","repos":"elysia\/elysia,elysia\/elysia,elysia\/elysia"} {"commit":"e2f5dda9653b3f96d48985af0d263eb2a6200b44","old_file":"index.as","new_file":"index.as","old_contents":"","new_contents":"\/\/ [ ] Variable declaration\nlet name: type = expression;\n\n\/\/ [ ] Basic types (arrow)\n\/*\n\nbyte (8-bit, unsigned)\nbool (1-bit[*])\n\nint8\nint16\nint32\nint64\nint128\n\nuint8\nuint16\nuint32\nuint64\nuint128\n\nintptr (size of a pointer, signed)\nuintptr (size of a pointer, unsigned)\n\nchar (32-bit, unsigned)\n\nfloat16\nfloat32\nfloat64\nfloat128\n\n*\/\n\n\/\/ [ ] Expressions\n\/\/ [ ] - Add\n\/\/ [ ] - Subtract\n\/\/ [ ] - Multiply\n\/\/ [ ] - Divide\n\/\/ [ ] - Modulo\n\/\/ [ ] - Logical And\n\/\/ [ ] - Logical Or\n\/\/ [ ] - Logical Not\n\/\/ [ ] - Relational GT\n\/\/ [ ] - Relational GE\n\/\/ [ ] - Relational LT\n\/\/ [ ] - Relational LE\n\/\/ [ ] - Relational And\n\/\/ [ ] - Relational Or\n\/\/ [ ] - Bitwise And\n\/\/ [ ] - Bitwise Or\n\/\/ [ ] - Bitwise Xor\n\/\/ [ ] - Bitwise Not\n\n\/\/ [ ] Pointers\n\/\/ [ ] - Type\n\/\/ [ ] - Address Of\n\/\/ [ ] - Dereference\n\n\/\/ [ ] Cast\n\n\/\/ [ ] Function declaration\ndef main() {\n}\n\n\/\/ [ ] Extern function declaration\nextern def puts(s: *byte);\n\n\/\/ [ ] Extern function declaration w\/ABI\nextern \"stdcall\" def CreateWindowExA();\n\n\/\/ [ ] Function call (extern AND local)\nmain();\nputs(\"Hello\");\n\n\/\/ [ ] Extern import\nextern import \"stdint.h\";\n\n\/\/ [ ] Module (namespace)\nmodule cstdint { extern import \"stdint.h\"; }\n\n\/\/ [ ] c module (built-in)\nimport \"c\";\n\n\/*\n\n\/\/ [ ] Basic types (in C)\nc.char\nc.uchar\nc.schar\nc.int\nc.uint\nc.short\nc.ushort\nc.long\nc.ulong\nc.float\nc.double\nc.ldouble\n\n*\/\n\n\/\/ [ ] BigInt\nint \/\/ (∞-bit, signed)\n","subject":"Add a roadmap (of sorts)","message":"Add a roadmap (of sorts)\n","lang":"ActionScript","license":"mit","repos":"arrow-lang\/arrow,arrow-lang\/arrow,arrow-lang\/arrow"} {"commit":"5e97a04402e9e854dd68c6aceb088ed46f0faa6f","old_file":"src\/as\/com\/threerings\/crowd\/data\/ManagerCaller.as","new_file":"src\/as\/com\/threerings\/crowd\/data\/ManagerCaller.as","old_contents":"\/\/\n\/\/ $Id$\n\/\/\n\/\/ Narya library - tools for developing networked games\n\/\/ Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved\n\/\/ http:\/\/www.threerings.net\/code\/narya\/\n\/\/\n\/\/ This library is free software; you can redistribute it and\/or modify it\n\/\/ under the terms of the GNU Lesser General Public License as published\n\/\/ by the Free Software Foundation; either version 2.1 of the License, or\n\/\/ (at your option) any later version.\n\/\/\n\/\/ This library is distributed in the hope that it will be useful,\n\/\/ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\/\/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\/\/ Lesser General Public License for more details.\n\/\/\n\/\/ You should have received a copy of the GNU Lesser General Public\n\/\/ License along with this library; if not, write to the Free Software\n\/\/ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\npackage com.threerings.crowd.data {\n\npublic class ManagerCaller\n{\n public function ManagerCaller (plobj :PlaceObject)\n {\n _plobj = plobj;\n }\n\n \/**\n * Called to call a method on the manager.\n *\/\n public function invoke (method :String, args :Array = null) :void\n {\n _plobj.postMessage(method, args);\n }\n\n \/** The place object we're thingy-ing for. *\/\n protected var _plobj :PlaceObject;\n}\n}\n","new_contents":"\/\/\n\/\/ $Id$\n\/\/\n\/\/ Narya library - tools for developing networked games\n\/\/ Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved\n\/\/ http:\/\/www.threerings.net\/code\/narya\/\n\/\/\n\/\/ This library is free software; you can redistribute it and\/or modify it\n\/\/ under the terms of the GNU Lesser General Public License as published\n\/\/ by the Free Software Foundation; either version 2.1 of the License, or\n\/\/ (at your option) any later version.\n\/\/\n\/\/ This library is distributed in the hope that it will be useful,\n\/\/ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\/\/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\/\/ Lesser General Public License for more details.\n\/\/\n\/\/ You should have received a copy of the GNU Lesser General Public\n\/\/ License along with this library; if not, write to the Free Software\n\/\/ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\npackage com.threerings.crowd.data {\n\npublic class ManagerCaller\n{\n public function ManagerCaller (plobj :PlaceObject)\n {\n _plobj = plobj;\n }\n\n \/**\n * Called to call a method on the manager.\n *\/\n public function invoke (method :String, ... args) :void\n {\n _plobj.postMessage(method, args);\n }\n\n \/** The place object we're thingy-ing for. *\/\n protected var _plobj :PlaceObject;\n}\n}\n","subject":"Change this instance back. Varargs are still a nightmare and should generally be avoided, but nobody's going to override this method and we're always calling a regular method on the server, not a varargs method.","message":"Change this instance back. Varargs are still a nightmare and should\ngenerally be avoided, but nobody's going to override this method and\nwe're always calling a regular method on the server, not a varargs method.\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4622 542714f4-19e9-0310-aa3c-eee0fc999fb1\n","lang":"ActionScript","license":"lgpl-2.1","repos":"threerings\/narya,threerings\/narya,threerings\/narya,threerings\/narya,threerings\/narya"} {"commit":"f475b23fb4845ee1bd34bf8d88581f16c96470eb","old_file":"src\/as\/com\/threerings\/flex\/LabeledSlider.as","new_file":"src\/as\/com\/threerings\/flex\/LabeledSlider.as","old_contents":"package com.threerings.flex {\n\nimport mx.containers.HBox;\n\nimport mx.controls.Label;\n\nimport mx.controls.sliderClasses.Slider;\n\nimport mx.events.SliderEvent;\n\n\/**\n * A simple component that displays a label to the left of a slider.\n *\/\npublic class LabeledSlider extends HBox\n{\n \/** The slider, all public and accessable. Don't fuck it up! *\/\n public var slider :Slider;\n\n \/**\n * Create a LabeledSlider holding the specified slider.\n *\/\n public function LabeledSlider (slider :Slider)\n {\n _label = new Label();\n _label.text = String(slider.value);\n\n addChild(_label);\n this.slider = slider;\n slider.showDataTip = false; \/\/ because we do it...\n addChild(slider);\n\n slider.addEventListener(SliderEvent.CHANGE, handleSliderChange, false, 0, true);\n }\n\n protected function handleSliderChange (event :SliderEvent) :void\n {\n _label.text = String(event.value);\n }\n\n protected var _label :Label;\n}\n}\n","new_contents":"package com.threerings.flex {\n\nimport mx.containers.HBox;\n\nimport mx.controls.Label;\n\nimport mx.controls.sliderClasses.Slider;\n\nimport mx.events.SliderEvent;\n\n\/**\n * A simple component that displays a label to the left of a slider.\n *\/\npublic class LabeledSlider extends HBox\n{\n \/** The actual slider. *\/\n public var slider :Slider;\n\n \/**\n * Create a LabeledSlider holding the specified slider.\n *\/\n public function LabeledSlider (slider :Slider)\n {\n _label = new Label();\n _label.text = String(slider.value);\n\n addChild(_label);\n this.slider = slider;\n slider.showDataTip = false; \/\/ because we do it...\n addChild(slider);\n\n slider.addEventListener(SliderEvent.CHANGE, handleSliderChange, false, 0, true);\n }\n\n protected function handleSliderChange (event :SliderEvent) :void\n {\n _label.text = String(event.value);\n }\n\n protected var _label :Label;\n}\n}\n","subject":"Clean up my comment, this is in a public API (and my comment wasn't helpful).","message":"Clean up my comment, this is in a public API (and my comment wasn't helpful).\n\n\ngit-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@166 ed5b42cb-e716-0410-a449-f6a68f950b19\n","lang":"ActionScript","license":"lgpl-2.1","repos":"threerings\/nenya,threerings\/nenya"} {"commit":"09607ce618998f098daf204f4dfb54f3a79408c3","old_file":"HLSPlugin\/src\/org\/denivip\/osmf\/utils\/Utils.as","new_file":"HLSPlugin\/src\/org\/denivip\/osmf\/utils\/Utils.as","old_contents":"package org.denivip.osmf.utils\n{\n\timport org.osmf.utils.URL;\n\t\n\tpublic class Utils\n\t{\n\t\tpublic static function createFullUrl(rootUrl:String, url:String):String{\n\t\t\t\n\t\t\tif(url.search(\/(ftp|file|https?):\\\/\\\/\\\/?\/) == 0)\n\t\t\t\treturn url;\n\t\t\t\n\t\t\t\/\/ other manipulations :)\n\t\t\tif(url.charAt(0) == '\/'){\n\t\t\t\treturn URL.getRootUrl(rootUrl) + url;\n\t\t\t}\n\t\t\t\n\t\t\tif(rootUrl.lastIndexOf('\/') != rootUrl.length)\n\t\t\t\trootUrl += '\/';\n\t\t\t\n\t\t\treturn rootUrl + url;\n\t\t}\n\t}\n}","new_contents":"package org.denivip.osmf.utils\n{\n\timport org.osmf.utils.URL;\n\t\n\tpublic class Utils\n\t{\n\t\tpublic static function createFullUrl(rootUrl:String, url:String):String {\n\t\t\tif(url.search(\/(ftp|file|https?):\\\/\\\/\\\/?\/) == 0)\n\t\t\t\treturn url;\n\t\t\t\n\t\t\t\/\/ other manipulations :)\n\t\t\tif(url.charAt(0) == '\/'){\n\t\t\t\treturn URL.getRootUrl(rootUrl) + url;\n\t\t\t}\n\t\t\t\n\t\t\tif(rootUrl.lastIndexOf('\/') != rootUrl.length - 1)\n\t\t\t\trootUrl += '\/';\n\t\t\t\n\t\t\treturn rootUrl + url;\n\t\t}\n\t}\n}","subject":"Fix issue where check for final slash was comparing zero-based index with length","message":"Fix issue where check for final slash was comparing zero-based index with length\n","lang":"ActionScript","license":"isc","repos":"mruse\/osmf-hls-plugin,denivip\/osmf-hls-plugin,mruse\/osmf-hls-plugin,denivip\/osmf-hls-plugin"} {"commit":"616f18546c777108dd2b7b39d2e4f524bbfd42c1","old_file":"src\/as\/com\/threerings\/util\/NetUtil.as","new_file":"src\/as\/com\/threerings\/util\/NetUtil.as","old_contents":"package com.threerings.util {\n\nimport flash.net.URLRequest;\n\/\/import flash.net.navigateToURL; \/\/ function import\n\npublic class NetUtil\n{\n \/**\n * Convenience method to load a web page in the browser window without\n * having to worry about SecurityErrors in various conditions.\n *\/\n public static function navigateToURL (\n url :String, preferSameWindowOrTab :Boolean = true) :void\n {\n var ureq :URLRequest = new URLRequest(url);\n if (preferSameWindowOrTab) {\n try {\n flash.net.navigateToURL(ureq, \"_self\");\n return;\n } catch (err :SecurityError) {\n \/\/ ignore; fall back to using a blank window, below...\n }\n }\n\n \/\/ open in a blank window\n try {\n flash.net.navigateToURL(ureq);\n } catch (err :SecurityError) {\n Log.getLog(NetUtil).warning(\n \"Unable to navigate to URL [e=\" + err + \"].\");\n }\n }\n\n\n}\n}\n","new_contents":"package com.threerings.util {\n\nimport flash.net.URLRequest;\n\/\/import flash.net.navigateToURL; \/\/ function import\n\npublic class NetUtil\n{\n \/**\n * Convenience method to load a web page in the browser window without\n * having to worry about SecurityErrors in various conditions.\n *\n * @return true if the url was unable to be loaded.\n *\/\n public static function navigateToURL (\n url :String, preferSameWindowOrTab :Boolean = true) :Boolean\n {\n var ureq :URLRequest = new URLRequest(url);\n if (preferSameWindowOrTab) {\n try {\n flash.net.navigateToURL(ureq, \"_self\");\n return true;\n } catch (err :SecurityError) {\n \/\/ ignore; fall back to using a blank window, below...\n }\n }\n\n \/\/ open in a blank window\n try {\n flash.net.navigateToURL(ureq);\n return true;\n } catch (err :SecurityError) {\n Log.getLog(NetUtil).warning(\n \"Unable to navigate to URL [e=\" + err + \"].\");\n }\n\n return false; \/\/ failure!\n }\n}\n}\n","subject":"Return true if we succeeded.","message":"Return true if we succeeded.\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4462 542714f4-19e9-0310-aa3c-eee0fc999fb1\n","lang":"ActionScript","license":"lgpl-2.1","repos":"threerings\/narya,threerings\/narya,threerings\/narya,threerings\/narya,threerings\/narya"} {"commit":"a7d413fa70a55a8050ba5ca6c98938c2d5533c0b","old_file":"src\/laml\/display\/Skin.as","new_file":"src\/laml\/display\/Skin.as","old_contents":"package laml.display {\n\timport flash.display.DisplayObject;\n\timport flash.display.Sprite;\n\t\n\tpublic class Skin extends Sprite implements ISkin {\n\n\t\tpublic function getBitmapByName(alias:String):DisplayObject {\n\t\t\tif(hasOwnProperty(alias)) {\n\t\t\t\treturn new this[alias]() as DisplayObject;\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t}\n}","new_contents":"package laml.display {\n\timport flash.display.DisplayObject;\n\timport flash.display.Sprite;\n\t\n\timport mx.core.BitmapAsset;\n\timport mx.core.FontAsset;\n\timport mx.core.IFlexAsset;\n\timport mx.core.IFlexDisplayObject;\n\timport mx.core.SpriteAsset;\n\t\n\tpublic class Skin extends Sprite implements ISkin {\n \t\tprivate var bitmapAsset:BitmapAsset;\n\t\tprivate var fontAsset:FontAsset;\n\t\tprivate var iFlexAsset:IFlexAsset;\n\t\tprivate var iFlexDisplayObject:IFlexDisplayObject;\n\t\tprivate var spriteAsset:SpriteAsset;\n\n\t\tpublic function getBitmapByName(alias:String):DisplayObject {\n\t\t\tif(hasOwnProperty(alias)) {\n\t\t\t\treturn new this[alias]() as DisplayObject;\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t}\n}","subject":"Put MX dependencies in skin","message":"Put MX dependencies in skin\n\ngit-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4281 3e7533ad-8678-4d30-8e38-00a379d3f0d0\n","lang":"ActionScript","license":"mit","repos":"lukebayes\/laml"} {"commit":"0f4d55bed5e68604f4dcc42305136227aa075e3c","old_file":"flexclient\/dag\/Components\/Association.as","new_file":"flexclient\/dag\/Components\/Association.as","old_contents":"package Components\r\n{\r\n\t[Bindable]\r\n\tpublic class Association\r\n\t{\r\n\t\tpublic var associatedNode:String;\r\n\t\tpublic var associatedLink:String;\r\n\t\tpublic var operatorIndex:int;\r\n\t\t\r\n\t\tpublic function Association(associatedNode:String,associatedLink:String,operatorIndex:int)\r\n\t\t{\r\n\t\t\tthis.associatedLink = associatedLink;\r\n\t\t\tthis.associatedNode = associatedNode;\r\n\t\t\tthis.operatorIndex = operatorIndex;\r\n\t\t}\r\n\t\t\r\n\t}\r\n}","new_contents":"package Components\r\n{\r\n\t[Bindable]\r\n\tpublic class Association\r\n\t{\r\n\t\tpublic var associatedNode:String;\r\n\t\tpublic var associatedLink:String;\r\n\t\tpublic var operatorIndex:int;\r\n\t\tpublic var order:int=0;\r\n\t\t\r\n\t\tpublic function Association(associatedNode:String,associatedLink:String,operatorIndex:int,order:int)\r\n\t\t{\r\n\t\t\tthis.associatedLink = associatedLink;\r\n\t\t\tthis.associatedNode = associatedNode;\r\n\t\t\tthis.operatorIndex = operatorIndex;\r\n\t\t\tthis.order=order;\r\n\t\t}\r\n\t\t\r\n\t}\r\n}","subject":"Order vairable added todecide order of association","message":"Order vairable added todecide order of association\n\n\nSVN-Revision: 9306\n","lang":"ActionScript","license":"bsd-3-clause","repos":"asamgir\/openspecimen,asamgir\/openspecimen,krishagni\/openspecimen,krishagni\/openspecimen,asamgir\/openspecimen,krishagni\/openspecimen"} {"commit":"5230cd695aca000a21c51a148333efc1b83d77bf","old_file":"tests\/org\/osflash\/signals\/AllTestsRunner.as","new_file":"tests\/org\/osflash\/signals\/AllTestsRunner.as","old_contents":"package org.osflash.signals {\r\n\timport asunit4.ui.MinimalRunnerUI;\r\n\timport org.osflash.signals.AllTests;\r\n\t\r\n\tpublic class AllTestsRunner extends MinimalRunnerUI\r\n\t{\r\n\t\tpublic function AllTestsRunner()\r\n\t\t{\r\n\t\t\trun(org.osflash.signals.AllTests);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n","new_contents":"package org.osflash.signals {\r\n\timport asunit4.ui.MinimalRunnerUI;\r\n\timport org.osflash.signals.AllTests;\r\n\t\r\n\t[SWF(width='1000', height='800', backgroundColor='#333333', frameRate='31')]\r\n\tpublic class AllTestsRunner extends MinimalRunnerUI\r\n\t{\r\n\t\tpublic function AllTestsRunner()\r\n\t\t{\r\n\t\t\trun(org.osflash.signals.AllTests);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n","subject":"Put [SWF] tag in test runner app.","message":"Put [SWF] tag in test runner app.\n","lang":"ActionScript","license":"mit","repos":"ifuller1\/Signals"} {"commit":"7b21f4727df5d0d411788bc1db1c73e4606727b0","old_file":"src\/com\/axis\/rtspclient\/NALU.as","new_file":"src\/com\/axis\/rtspclient\/NALU.as","old_contents":"package com.axis.rtspclient {\n import flash.events.Event;\n import flash.external.ExternalInterface;\n import flash.utils.ByteArray;\n\n public class NALU extends Event {\n public static const NEW_NALU:String = \"NEW_NALU\";\n\n private var data:ByteArray;\n public var ntype:uint;\n public var nri:uint;\n public var timestamp:uint;\n public var bodySize:uint;\n\n public function NALU(ntype:uint, nri:uint, data:ByteArray, timestamp:uint) {\n super(NEW_NALU);\n\n this.data = data;\n this.ntype = ntype;\n this.nri = nri;\n this.timestamp = timestamp;\n this.bodySize = data.bytesAvailable;\n }\n\n public function appendData(idata:ByteArray):void {\n ByteArrayUtils.appendByteArray(data, idata);\n this.bodySize = data.bytesAvailable;\n }\n\n public function isIDR():Boolean {\n return (5 === ntype);\n }\n\n public function writeSize():uint {\n return 2 + 2 + 1 + data.bytesAvailable;\n }\n\n public function writeStream(output:ByteArray):void {\n output.writeUnsignedInt(data.bytesAvailable + 1); \/\/ NALU length + header\n output.writeByte((0x0 & 0x80) | (nri & 0x60) | (ntype & 0x1F)); \/\/ NAL header\n output.writeBytes(data, data.position);\n }\n }\n}\n","new_contents":"package com.axis.rtspclient {\n import flash.events.Event;\n import flash.external.ExternalInterface;\n import flash.utils.ByteArray;\n\n public class NALU extends Event {\n public static const NEW_NALU:String = \"NEW_NALU\";\n\n private var data:ByteArray;\n public var ntype:uint;\n public var nri:uint;\n public var timestamp:uint;\n public var bodySize:uint;\n\n public function NALU(ntype:uint, nri:uint, data:ByteArray, timestamp:uint) {\n super(NEW_NALU);\n\n this.data = data;\n this.ntype = ntype;\n this.nri = nri;\n this.timestamp = timestamp;\n this.bodySize = data.bytesAvailable;\n }\n\n public function appendData(idata:ByteArray):void {\n ByteArrayUtils.appendByteArray(data, idata);\n this.bodySize = data.bytesAvailable;\n }\n\n public function isIDR():Boolean {\n return (5 === ntype);\n }\n\n public function writeSize():uint {\n return 2 + 2 + 1 + data.bytesAvailable;\n }\n\n public function writeStream(output:ByteArray):void {\n output.writeUnsignedInt(data.bytesAvailable + 1); \/\/ NALU length + header\n output.writeByte((0x0 & 0x80) | (nri & 0x60) | (ntype & 0x1F)); \/\/ NAL header\n output.writeBytes(data, data.position);\n }\n\n public function getPayload():ByteArray {\n var payload:ByteArray = new ByteArray();\n data.position -= 1;\n data.readBytes(payload, 0, data.bytesAvailable);\n return payload;\n }\n }\n}\n","subject":"Implement getPayload() method to extract SPS\/PPS bytes","message":"Implement getPayload() method to extract SPS\/PPS bytes\n","lang":"ActionScript","license":"bsd-3-clause","repos":"AxisCommunications\/locomote-video-player,gaetancollaud\/locomote-video-player"} {"commit":"dfa67685ba284fc652661591d78c5cda846680df","old_file":"test-src\/test_readline_flash.as","new_file":"test-src\/test_readline_flash.as","old_contents":"package {\n import stdio.flash.Sprite\n import stdio.process\n import stdio.Interactive\n\n [SWF(width=0, height=0)]\n public class test_readline_flash extends Sprite implements Interactive {\n public function main(): void {\n process.prompt = \"What’s your name? \"\n process.gets(function (name: String): void {\n process.puts(\"Hello, \" + name + \"!\")\n process.prompt = \"Favorite color? \"\n process.gets(function (color: String): void {\n process.puts(\"I like \" + color + \" too!\")\n process.exit()\n })\n })\n }\n }\n}\n","new_contents":"package {\n import stdio.colorize\n import stdio.flash.Sprite\n import stdio.process\n import stdio.Interactive\n\n [SWF(width=0, height=0)]\n public class test_readline_flash extends Sprite implements Interactive {\n public function main(): void {\n process.prompt = \"What’s your name? \"\n process.gets(function (name: String): void {\n process.puts(\"Hello, \" + name + \"!\")\n process.prompt = \"What’s your favorite color? \"\n process.gets(function (color: String): void {\n color = color.toLowerCase()\n process.puts(\n \"I like \" + colorize(\n \"%{bold}%{\" + color + \"}\" + color + \"%{none}\"\n ) + \" too!\"\n )\n process.exit()\n })\n })\n }\n }\n}\n","subject":"Use `colorize` in readline test.","message":"Use `colorize` in readline test.\n","lang":"ActionScript","license":"mit","repos":"dbrock\/stdio.as,dbrock\/stdio.as,dbrock\/stdio.as"} {"commit":"9eab92b2206ba25d79229f744fe95824c95ce64a","old_file":"collect-flex\/collect-flex-client\/src\/main\/flex\/org\/openforis\/collect\/i18n\/Message.as","new_file":"collect-flex\/collect-flex-client\/src\/main\/flex\/org\/openforis\/collect\/i18n\/Message.as","old_contents":"package org.openforis.collect.i18n {\r\n\timport mx.resources.ResourceManager;\r\n\r\n\t\/**\r\n\t * @author Mino Togna\r\n\t * *\/\r\n\tpublic class Message {\r\n\t\t\r\n\t\tpublic function Message() {\r\n\t\t}\r\n\t\t\r\n\t\tpublic static function get(resource:String, parameters:Array=null, bundle:String=\"messages\"):String {\r\n\t\t\treturn ResourceManager.getInstance().getString(bundle, resource, parameters);\r\n\t\t} \r\n\t}\r\n}","new_contents":"package org.openforis.collect.i18n {\r\n\timport mx.resources.ResourceManager;\r\n\r\n\t\/**\r\n\t * @author Mino Togna\r\n\t * @author S. Ricci\r\n\t * *\/\r\n\tpublic class Message {\r\n\t\t\r\n\t\tpublic function Message() {\r\n\t\t}\r\n\t\t\r\n\t\tpublic static function get(resource:String, parameters:Array=null, bundle:String=\"messages\"):String {\r\n\t\t\tvar message:String = ResourceManager.getInstance().getString(bundle, resource, parameters);\r\n\t\t\tif(message != null) {\r\n\t\t\t\treturn message;\r\n\t\t\t} else {\r\n\t\t\t\treturn resource;\r\n\t\t\t}\r\n\t\t} \r\n\t}\r\n}","subject":"Return resource name instead of null if not found","message":"Return resource name instead of null if not found","lang":"ActionScript","license":"mit","repos":"openforis\/collect,openforis\/collect,openforis\/collect,openforis\/collect"} {"commit":"630666dc175d469d0b6e9dabb880aeffc2f2d5ee","old_file":"dolly-framework\/src\/test\/resources\/dolly\/data\/PropertyLevelCopyableClass.as","new_file":"dolly-framework\/src\/test\/resources\/dolly\/data\/PropertyLevelCopyableClass.as","old_contents":"package dolly.data {\n\npublic class PropertyLevelCopyableClass {\n\n\t[Copyable]\n\tpublic static var staticProperty1:String = \"Value of first-level static property 1.\";\n\n\tpublic static var staticProperty2:String = \"Value of first-level static property 2.\";\n\n\t[Cloneable]\n\tprivate var _writableField1:String = \"Value of first-level writable field.\";\n\n\t[Cloneable]\n\tpublic var property1:String = \"Value of first-level public property 1.\";\n\n\tpublic var property2:String = \"Value of first-level public property 2.\";\n\n\tpublic function PropertyLevelCopyableClass() {\n\t}\n\n\t[Copyable]\n\tpublic function get writableField1():String {\n\t\treturn _writableField1;\n\t}\n\n\tpublic function set writableField1(value:String):void {\n\t\t_writableField1 = value;\n\t}\n\n\t[Copyable]\n\tpublic function get readOnlyField1():String {\n\t\treturn \"Value of first-level read-only field.\";\n\t}\n}\n}\n","new_contents":"package dolly.data {\n\npublic class PropertyLevelCopyableClass {\n\n\t[Copyable]\n\tpublic static var staticProperty1:String = \"Value of first-level static property 1.\";\n\n\tpublic static var staticProperty2:String = \"Value of first-level static property 2.\";\n\n\t[Copyable]\n\tprivate var _writableField1:String = \"Value of first-level writable field.\";\n\n\t[Copyable]\n\tpublic var property1:String = \"Value of first-level public property 1.\";\n\n\tpublic var property2:String = \"Value of first-level public property 2.\";\n\n\tpublic function PropertyLevelCopyableClass() {\n\t}\n\n\t[Copyable]\n\tpublic function get writableField1():String {\n\t\treturn _writableField1;\n\t}\n\n\tpublic function set writableField1(value:String):void {\n\t\t_writableField1 = value;\n\t}\n\n\t[Copyable]\n\tpublic function get readOnlyField1():String {\n\t\treturn \"Value of first-level read-only field.\";\n\t}\n}\n}\n","subject":"Fix stupid mistake with metadata names.","message":"Fix stupid mistake with metadata names.\n","lang":"ActionScript","license":"mit","repos":"Yarovoy\/dolly"} {"commit":"c6baab42b3de3e9651be5a9ef0fa0a59135c77e1","old_file":"test\/unit\/Suite.as","new_file":"test\/unit\/Suite.as","old_contents":"package {\n import asunit.framework.TestSuite;\n\n public class Suite extends TestSuite {\n public function Suite() {\n super();\n addTest(new PlayerTest(\"testPass\"));\n }\n }\n}\n","new_contents":"package {\n import asunit.framework.TestSuite;\n\n public class Suite extends TestSuite {\n public function Suite() {\n super();\n addTest(new PlayerTest(\"testPass\"));\n addTest(new UriTest(\"test_isSafe\"));\n }\n }\n}\n","subject":"Add URI tests to the asunit test suite","message":"Add URI tests to the asunit test suite\n","lang":"ActionScript","license":"mit","repos":"cameronhunter\/divine-player-swf"} {"commit":"66f76eb954dd7fb4a0d9b92c099a53aa6ef6519a","old_file":"ImpetusSound.as","new_file":"ImpetusSound.as","old_contents":"package\n{\n import flash.media.Sound;\n import flash.net.URLRequest;\n\n public class ImpetusSound\n {\n private var sound:Sound;\n\n private var channels:Vector.;\n\n public function ImpetusSound(url:String):void\n {\n this.sound = new Sound();\n\n this.channels = new Vector.;\n\n this.sound.load(new URLRequest(url));\n }\n\n public function playNew():ImpetusChannel\n {\n var c:ImpetusChannel = new ImpetusChannel(this.sound.play(0));\n\n channels.push(c);\n\n return c;\n }\n\n public function stopAll():void\n {\n var len:int = this.channels.length;\n\n for(var i:int; i < len; i++)\n {\n this.channels[i].stop();\n }\n }\n }\n}\n","new_contents":"package\n{\n import flash.media.Sound;\n import flash.net.URLRequest;\n\n public class ImpetusSound\n {\n private var url:String;\n private var sound:Sound;\n\n private var channels:Vector.;\n\n public function ImpetusSound(url:String):void\n {\n this.url = url;\n this.sound = new Sound();\n\n this.channels = new Vector.;\n\n this.sound.load(new URLRequest(url));\n }\n\n public function get getUrl():String\n {\n return this.url\n }\n\n public function playNew():ImpetusChannel\n {\n var c:ImpetusChannel = new ImpetusChannel(this.sound.play(0));\n\n channels.push(c);\n\n return c;\n }\n\n public function stopAll():void\n {\n var len:int = this.channels.length;\n\n for(var i:int; i < len; i++)\n {\n this.channels[i].stop();\n }\n }\n }\n}\n","subject":"Store url & add getUrl() getter","message":"Store url & add getUrl() getter\n","lang":"ActionScript","license":"mit","repos":"Julow\/Impetus"} {"commit":"c20791327b41070b5de2d34c49be14eb766be31d","old_file":"src\/avm2\/tests\/regress\/correctness\/callsuper7.as","new_file":"src\/avm2\/tests\/regress\/correctness\/callsuper7.as","old_contents":"package {\n\n class ClassA\n {\n public function ClassA()\n {\n trace('A');\n }\n protected function foo() : void\n {\n trace('a');\n }\n protected function bar() : void\n {\n trace('b');\n }\n }\n\n class ClassC extends ClassA\n {\n public function ClassC()\n {\n trace('> C');\n super();\n\n foo();\n bar();\n trace('< C');\n }\n\n override protected function bar() : void {\n super.bar();\n trace('override b');\n }\n }\n\n class ClassE extends ClassC\n {\n public function ClassE()\n {\n trace('> E');\n super();\n foo();\n bar();\n trace('< E');\n }\n\n override protected function bar() : void {\n super.bar();\n trace('override b again');\n }\n }\n\n \/\/ var c = new ClassC();\n \/\/ var e = new ClassE();\n\n class X {\n protected var\n }\n trace(\"--\");\n}\n","new_contents":"package {\n\n class ClassA\n {\n public function ClassA()\n {\n trace('A');\n }\n protected function foo() : void\n {\n trace('a');\n }\n protected function bar() : void\n {\n trace('b');\n }\n }\n\n class ClassC extends ClassA\n {\n public function ClassC()\n {\n trace('> C');\n super();\n\n foo();\n bar();\n trace('< C');\n }\n\n override protected function bar() : void {\n super.bar();\n trace('override b');\n }\n }\n\n class ClassE extends ClassC\n {\n public function ClassE()\n {\n trace('> E');\n super();\n foo();\n bar();\n trace('< E');\n }\n\n override protected function bar() : void {\n super.bar();\n trace('override b again');\n }\n }\n\n trace(\"--\");\n}\n","subject":"Fix call super test case.","message":"Fix call super test case.\n","lang":"ActionScript","license":"apache-2.0","repos":"mbebenita\/shumway,mbebenita\/shumway,tschneidereit\/shumway,mozilla\/shumway,mbebenita\/shumway,mozilla\/shumway,tschneidereit\/shumway,yurydelendik\/shumway,mozilla\/shumway,mozilla\/shumway,mozilla\/shumway,yurydelendik\/shumway,tschneidereit\/shumway,mbebenita\/shumway,yurydelendik\/shumway,tschneidereit\/shumway,mbebenita\/shumway,yurydelendik\/shumway,yurydelendik\/shumway,tschneidereit\/shumway,yurydelendik\/shumway,tschneidereit\/shumway,mozilla\/shumway,yurydelendik\/shumway,tschneidereit\/shumway,mbebenita\/shumway,mbebenita\/shumway,mozilla\/shumway,yurydelendik\/shumway,mozilla\/shumway,tschneidereit\/shumway,mbebenita\/shumway"} {"commit":"6f3e6e0cf6bd1178eb5aa12ccb1e9e179f9c420b","old_file":"src\/flails\/mxml\/ResourcefulServiceInvoker.as","new_file":"src\/flails\/mxml\/ResourcefulServiceInvoker.as","old_contents":"package flails.mxml {\n import com.asfusion.mate.actions.AbstractServiceInvoker;\n import com.asfusion.mate.actionLists.IScope;\n import com.asfusion.mate.actions.IAction;\n\n import mx.rpc.events.ResultEvent;\n import mx.rpc.events.FaultEvent;\n\n import flails.request.RequestPipe;\n import flails.resource.Resources;\n import flails.resource.Resource;\n\n public class ResourcefulServiceInvoker extends AbstractServiceInvoker implements IAction {\n public var resource:Resource;\n public var data:Array;\n public var type:String;\n public var id:String;\n public var parent:Object;\n\n [Bindable] public var result:Object;\n\n public function ResourcefulServiceInvoker() { \n currentInstance = this;\n }\n\n override protected function prepare(scope:IScope):void {\n super.prepare(scope);\n }\n\n override protected function run(scope:IScope):void {\n trace (\"Using resource \" + resource);\n\n var rp:RequestPipe = resource.newRequestPipe();\n\n innerHandlersDispatcher = rp;\n\n if (resultHandlers && resultHandlers.length > 0) {\n createInnerHandlers(scope, ResultEvent.RESULT, resultHandlers);\n }\n \n if (faultHandlers && faultHandlers.length > 0) {\n createInnerHandlers(scope, FaultEvent.FAULT, faultHandlers);\n }\n \n trace(\"calling \" + type + \"()\");\n\n rp[type].apply(rp, data);\n }\n }\n}","new_contents":"package flails.mxml {\n import com.asfusion.mate.actions.AbstractServiceInvoker;\n import com.asfusion.mate.actionLists.IScope;\n import com.asfusion.mate.actions.IAction;\n\n import mx.rpc.events.ResultEvent;\n import mx.rpc.events.FaultEvent;\n\n import flails.request.RequestPipe;\n import flails.resource.Resources;\n import flails.resource.Resource;\n\n public class ResourcefulServiceInvoker extends AbstractServiceInvoker implements IAction {\n private var _data:Array;\n\n public var resource:Resource;\n public var type:String;\n public var id:String;\n public var parent:Object;\n\n [Bindable] public var result:Object;\n\n public function set data(args:Object):void {\n trace(\"setting data\");\n\n if (args is Array)\n _data = args as Array;\n else\n _data = [args];\n }\n\n override protected function prepare(scope:IScope):void {\n currentInstance = this;\n\n super.prepare(scope);\n }\n\n override protected function run(scope:IScope):void {\n trace (\"Using resource \" + resource);\n\n var rp:RequestPipe = resource.newRequestPipe();\n\n innerHandlersDispatcher = rp;\n\n if (resultHandlers && resultHandlers.length > 0) {\n createInnerHandlers(scope, ResultEvent.RESULT, resultHandlers);\n }\n \n if (faultHandlers && faultHandlers.length > 0) {\n createInnerHandlers(scope, FaultEvent.FAULT, faultHandlers);\n }\n \n trace(\"calling \" + type + \"() with \" + _data);\n\n rp[type].apply(rp, _data);\n }\n }\n}","subject":"Set currentInstance on prepare, not on instantiation time.","message":"Set currentInstance on prepare, not on instantiation time.\n","lang":"ActionScript","license":"mit","repos":"lancecarlson\/flails,lancecarlson\/flails"} {"commit":"b9d05ab7c28d46cd78ed67539719266e6a2be545","old_file":"collect-client\/src\/generated\/flex\/org\/openforis\/collect\/metamodel\/proxy\/UITabSetProxy.as","new_file":"collect-client\/src\/generated\/flex\/org\/openforis\/collect\/metamodel\/proxy\/UITabSetProxy.as","old_contents":"\/**\r\n * Generated by Gas3 v2.3.0 (Granite Data Services).\r\n *\r\n * NOTE: this file is only generated if it does not exist. You may safely put\r\n * your custom code here.\r\n *\/\r\n\r\npackage org.openforis.collect.metamodel.proxy {\r\n\timport mx.collections.IList;\r\n\t\r\n\timport org.openforis.collect.util.CollectionUtil;\r\n\r\n [Bindable]\r\n [RemoteClass(alias=\"org.openforis.collect.metamodel.proxy.UITabSetProxy\")]\r\n public class UITabSetProxy extends UITabSetProxyBase {\r\n\t\t\r\n\t\tpublic function getTab(name:String):UITabProxy {\r\n\t\t\tvar stack:Array = new Array();\r\n\t\t\tstack.push(tabs);\r\n\t\t\twhile (stack.length > 0) {\r\n\t\t\t\tvar tabs:IList = stack.pop();\r\n\t\t\t\tfor each(var tab:UITabProxy in tabs) {\r\n\t\t\t\t\tif(tab.name == name) {\r\n\t\t\t\t\t\treturn tab;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( CollectionUtil.isNotEmpty(tab.tabs) ) {\r\n\t\t\t\t\t\tstack.push(tab.tabs);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n }\r\n}","new_contents":"\/**\r\n * Generated by Gas3 v2.3.0 (Granite Data Services).\r\n *\r\n * NOTE: this file is only generated if it does not exist. You may safely put\r\n * your custom code here.\r\n *\/\r\n\r\npackage org.openforis.collect.metamodel.proxy {\r\n\timport mx.collections.IList;\r\n\t\r\n\timport org.openforis.collect.util.CollectionUtil;\r\n\r\n [Bindable]\r\n [RemoteClass(alias=\"org.openforis.collect.metamodel.proxy.UITabSetProxy\")]\r\n public class UITabSetProxy extends UITabSetProxyBase {\r\n\t\t\r\n\t\tpublic function getTab(name:String):UITabProxy {\r\n\t\t\tvar stack:Array = new Array();\r\n\t\t\tstack.push(this.tabs);\r\n\t\t\twhile (stack.length > 0) {\r\n\t\t\t\tvar currentTabs:IList = stack.pop();\r\n\t\t\t\tfor each(var tab:UITabProxy in currentTabs) {\r\n\t\t\t\t\tif(tab.name == name) {\r\n\t\t\t\t\t\treturn tab;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( CollectionUtil.isNotEmpty(tab.tabs) ) {\r\n\t\t\t\t\t\tstack.push(tab.tabs);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n }\r\n}","subject":"Fix unexpected behavior with nested tabs","message":"Fix unexpected behavior with nested tabs","lang":"ActionScript","license":"mit","repos":"openforis\/collect,openforis\/collect,openforis\/collect,openforis\/collect"} {"commit":"ee53a0253c3012d5673767ec32fd7fabf73c324d","old_file":"src\/laml\/display\/Skin.as","new_file":"src\/laml\/display\/Skin.as","old_contents":"package laml.display {\n\timport flash.display.DisplayObject;\n\timport flash.display.Sprite;\n\t\n\tpublic class Skin extends Sprite implements ISkin {\n\n\t\tpublic function getBitmapByName(alias:String):DisplayObject {\n\t\t\tif(hasOwnProperty(alias)) {\n\t\t\t\treturn new this[alias]() as DisplayObject;\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t}\n}","new_contents":"package laml.display {\n\timport flash.display.DisplayObject;\n\timport flash.display.Sprite;\n\t\n\timport mx.core.BitmapAsset;\n\timport mx.core.FontAsset;\n\timport mx.core.IFlexAsset;\n\timport mx.core.IFlexDisplayObject;\n\timport mx.core.SpriteAsset;\n\t\n\tpublic class Skin extends Sprite implements ISkin {\n \t\tprivate var bitmapAsset:BitmapAsset;\n\t\tprivate var fontAsset:FontAsset;\n\t\tprivate var iFlexAsset:IFlexAsset;\n\t\tprivate var iFlexDisplayObject:IFlexDisplayObject;\n\t\tprivate var spriteAsset:SpriteAsset;\n\n\t\tpublic function getBitmapByName(alias:String):DisplayObject {\n\t\t\tif(hasOwnProperty(alias)) {\n\t\t\t\treturn new this[alias]() as DisplayObject;\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t}\n}","subject":"Put MX dependencies in skin","message":"Put MX dependencies in skin\n\ngit-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4281 3e7533ad-8678-4d30-8e38-00a379d3f0d0\n","lang":"ActionScript","license":"mit","repos":"lukebayes\/laml"} {"commit":"bff95367e7657906745761bf06f795bb767219e0","old_file":"src\/flails\/resource\/Resource.as","new_file":"src\/flails\/resource\/Resource.as","old_contents":"\/**\n * Copyright (c) 2009 Lance Carlson\n * See LICENSE for full license information.\n *\/\n\npackage flails.resource {\n import flails.request.RequestPipe;\n import flails.request.HTTPClient;\n import flails.request.ResourcePathBuilder;\n import flails.request.JSONFilter;\n\n import flash.utils.getQualifiedClassName;\n \n import mx.core.IMXMLObject;\n\n public class Resource {\n public var name:String;\n public var instanceClass:Class;\n \n public function Resource() {}\n \n public function initialized(parent:Object, id:String):void {\n }\n\n public function index(resultHandler:Function, errorHandler:Function = null):void {\n requestPipe(resultHandler, errorHandler).index();\n }\n\n public function show(id:Number, resultHandler:Function, errorHandler:Function = null):void {\n requestPipe(resultHandler, errorHandler).show(id);\n }\n\n public function requestPipe(resultHandler:Function, errorHandler:Function):RequestPipe {\n \/\/ TODO: The pluralization obviously needs to be taken care of\n var pipe:RequestPipe = new HTTPClient(new ResourcePathBuilder(name), new JSONFilter(instanceClass));\n\n pipe.addEventListener(\"result\", resultHandler);\n\n return pipe;\n }\n }\n}\n","new_contents":"\/**\n * Copyright (c) 2009 Lance Carlson\n * See LICENSE for full license information.\n *\/\n\npackage flails.resource {\n import flails.request.RequestPipe;\n import flails.request.HTTPClient;\n import flails.request.ResourcePathBuilder;\n import flails.request.JSONFilter;\n\n import mx.core.IMXMLObject;\n\n public class Resource implements IMXMLObject {\n public var name:String;\n public var instanceClass:Class;\n \n public function Resource() {}\n \n public function initialized(parent:Object, id:String):void {\n if (name == null) throw new Error(\"Name not set for resource.\");\n if (instanceClass == null) instanceClass = Record;\n }\n\n public function index(resultHandler:Function, errorHandler:Function = null):void {\n requestPipe(resultHandler, errorHandler).index();\n }\n\n public function show(id:Number, resultHandler:Function, errorHandler:Function = null):void {\n requestPipe(resultHandler, errorHandler).show(id);\n }\n\n public function requestPipe(resultHandler:Function, errorHandler:Function):RequestPipe {\n \/\/ TODO: The pluralization obviously needs to be taken care of\n var pipe:RequestPipe = new HTTPClient(new ResourcePathBuilder(name), new JSONFilter(instanceClass));\n\n pipe.addEventListener(\"result\", resultHandler);\n\n return pipe;\n }\n }\n}\n","subject":"Implement IMXMLObject. Some defaults and checks.","message":"Implement IMXMLObject. Some defaults and checks.\n","lang":"ActionScript","license":"mit","repos":"lancecarlson\/flails,lancecarlson\/flails"} {"commit":"736682536f49fd2ff75131649a522c519d6d3022","old_file":"dolly-framework\/src\/test\/actionscript\/dolly\/CloningOfCompositeCloneableClassTest.as","new_file":"dolly-framework\/src\/test\/actionscript\/dolly\/CloningOfCompositeCloneableClassTest.as","old_contents":"package dolly {\n\nimport dolly.core.dolly_internal;\nimport dolly.data.CompositeCloneableClass;\n\nimport org.as3commons.reflect.Type;\n\nuse namespace dolly_internal;\n\npublic class CloningOfCompositeCloneableClassTest {\n\n\tprivate var compositeCloneableClass:CompositeCloneableClass;\n\tprivate var compositeCloneableClassType:Type;\n\n\t[Before]\n\tpublic function before():void {\n\t\tcompositeCloneableClass = new CompositeCloneableClass();\n\n\t\tcompositeCloneableClassType = Type.forInstance(compositeCloneableClass);\n\t}\n\n\t[After]\n\tpublic function after():void {\n\t\tcompositeCloneableClass = null;\n\t\tcompositeCloneableClassType = null;\n\t}\n}\n}\n","new_contents":"package dolly {\nimport dolly.core.dolly_internal;\nimport dolly.data.CompositeCloneableClass;\n\nimport org.as3commons.reflect.Field;\nimport org.as3commons.reflect.Type;\nimport org.flexunit.asserts.assertEquals;\nimport org.flexunit.asserts.assertNotNull;\n\nuse namespace dolly_internal;\n\npublic class CloningOfCompositeCloneableClassTest {\n\n\tprivate var compositeCloneableClass:CompositeCloneableClass;\n\tprivate var compositeCloneableClassType:Type;\n\n\t[Before]\n\tpublic function before():void {\n\t\tcompositeCloneableClass = new CompositeCloneableClass();\n\n\t\tcompositeCloneableClassType = Type.forInstance(compositeCloneableClass);\n\t}\n\n\t[After]\n\tpublic function after():void {\n\t\tcompositeCloneableClass = null;\n\t\tcompositeCloneableClassType = null;\n\t}\n\n\t[Test]\n\tpublic function findingAllWritableFieldsForType():void {\n\t\tconst writableFields:Vector. = Cloner.findAllWritableFieldsForType(compositeCloneableClassType);\n\t\tassertNotNull(writableFields);\n\t\tassertEquals(4, writableFields.length);\n\t}\n}\n}\n","subject":"Test for calculation of cloneable fields in CompositeCloneableClass.","message":"Test for calculation of cloneable fields in CompositeCloneableClass.\n","lang":"ActionScript","license":"mit","repos":"Yarovoy\/dolly"} {"commit":"5ea2fefddeb6cd9681f0e8bdc2fd5c7214105327","old_file":"dolly-framework\/src\/test\/actionscript\/dolly\/CloningOfCompositeCloneableClassTest.as","new_file":"dolly-framework\/src\/test\/actionscript\/dolly\/CloningOfCompositeCloneableClassTest.as","old_contents":"package dolly {\nimport dolly.core.dolly_internal;\nimport dolly.data.CompositeCloneableClass;\n\nimport org.as3commons.reflect.Field;\nimport org.as3commons.reflect.Type;\nimport org.flexunit.asserts.assertEquals;\nimport org.flexunit.asserts.assertNotNull;\n\nuse namespace dolly_internal;\n\npublic class CloningOfCompositeCloneableClassTest {\n\n\tprivate var compositeCloneableClass:CompositeCloneableClass;\n\tprivate var compositeCloneableClassType:Type;\n\n\t[Before]\n\tpublic function before():void {\n\t\tcompositeCloneableClass = new CompositeCloneableClass();\n\n\t\tcompositeCloneableClassType = Type.forInstance(compositeCloneableClass);\n\t}\n\n\t[After]\n\tpublic function after():void {\n\t\tcompositeCloneableClass = null;\n\t\tcompositeCloneableClassType = null;\n\t}\n\n\t[Test]\n\tpublic function findingAllWritableFieldsForType():void {\n\t\tconst writableFields:Vector. = Cloner.findAllWritableFieldsForType(compositeCloneableClassType);\n\t\tassertNotNull(writableFields);\n\t\tassertEquals(4, writableFields.length);\n\t}\n}\n}\n","new_contents":"package dolly {\nimport dolly.core.dolly_internal;\nimport dolly.data.CompositeCloneableClass;\n\nimport org.as3commons.reflect.Field;\nimport org.as3commons.reflect.Type;\nimport org.flexunit.asserts.assertEquals;\nimport org.flexunit.asserts.assertFalse;\nimport org.flexunit.asserts.assertNotNull;\nimport org.hamcrest.assertThat;\nimport org.hamcrest.collection.array;\nimport org.hamcrest.collection.arrayWithSize;\nimport org.hamcrest.collection.everyItem;\nimport org.hamcrest.core.isA;\nimport org.hamcrest.object.equalTo;\n\nuse namespace dolly_internal;\n\npublic class CloningOfCompositeCloneableClassTest {\n\n\tprivate var compositeCloneableClass:CompositeCloneableClass;\n\tprivate var compositeCloneableClassType:Type;\n\n\t[Before]\n\tpublic function before():void {\n\t\tcompositeCloneableClass = new CompositeCloneableClass();\n\n\t\tcompositeCloneableClassType = Type.forInstance(compositeCloneableClass);\n\t}\n\n\t[After]\n\tpublic function after():void {\n\t\tcompositeCloneableClass = null;\n\t\tcompositeCloneableClassType = null;\n\t}\n\n\t[Test]\n\tpublic function findingAllWritableFieldsForType():void {\n\t\tconst writableFields:Vector. = Cloner.findAllWritableFieldsForType(compositeCloneableClassType);\n\t\tassertNotNull(writableFields);\n\t\tassertEquals(4, writableFields.length);\n\t}\n\n\t[Test]\n\tpublic function cloningOfArray():void {\n\t\tconst clone:CompositeCloneableClass = Cloner.clone(compositeCloneableClass);\n\n\t\tassertNotNull(clone.array);\n\t\tassertThat(clone.array, arrayWithSize(5));\n\t\tassertThat(clone.array, compositeCloneableClass.array);\n\t\tassertFalse(clone.array == compositeCloneableClass.array);\n\t\tassertThat(clone.array, everyItem(isA(Number)));\n\t\tassertThat(clone.array, array(equalTo(0), equalTo(1), equalTo(2), equalTo(3), equalTo(4)));\n\t}\n}\n}\n","subject":"Test for cloning array in CompositeCloneableClass.","message":"Test for cloning array in CompositeCloneableClass.\n","lang":"ActionScript","license":"mit","repos":"Yarovoy\/dolly"} {"commit":"8eb7d7978dfd82a0b5f3b21ab5ec2a462bef3aa1","old_file":"FlexUnit4\/src\/org\/flexunit\/events\/UnknownError.as","new_file":"FlexUnit4\/src\/org\/flexunit\/events\/UnknownError.as","old_contents":"package org.flexunit.events\n{\n\timport flash.events.ErrorEvent;\n\timport flash.events.Event;\n\t\n\tpublic class UnknownError extends Error\n\t{\n\t\tpublic function UnknownError( event:Event )\n\t\t{\n\t\t\tvar error:Error;\n\t\t\tif ( event.hasOwnProperty( \"error\" ) ) {\n\t\t\t\tvar errorGeneric:* = event[ \"error\" ];\n\t\t\t\t\n\t\t\t\tif ( errorGeneric is Error ) {\n\t\t\t\t\terror = errorGeneric as Error;\n\t\t\t\t} else if ( errorGeneric is ErrorEvent ) {\n\t\t\t\t\tvar errorEvent:ErrorEvent = errorGeneric as ErrorEvent;\n\t\t\t\t\terror = new Error( \"Top Level Error\", errorEvent.errorID );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsuper( error.message, error.errorID );\n\t\t}\n\t}\n}","new_contents":"package org.flexunit.events\n{\n\timport flash.events.ErrorEvent;\n\timport flash.events.Event;\n\t\n\tpublic class UnknownError extends Error\n\t{\n\t\tpublic function UnknownError( event:Event )\n\t\t{\n\t\t\tvar error:Error;\n\t\t\tif ( event.hasOwnProperty( \"error\" ) ) {\n\t\t\t\tvar errorGeneric:* = event[ \"error\" ];\n\t\t\t\t\n\t\t\t\tif ( errorGeneric is Error ) {\n\t\t\t\t\terror = errorGeneric as Error;\n\t\t\t\t} else if ( errorGeneric is ErrorEvent ) {\n\t\t\t\t\tvar errorEvent:ErrorEvent = errorGeneric as ErrorEvent;\n\t\t\t\t\terror = new Error( \"Top Level Error\", Object(errorEvent).errorID );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsuper( error.message, error.errorID );\n\t\t}\n\t}\n}","subject":"Fix for build issue around unknown error","message":"Fix for build issue around unknown error\n","lang":"ActionScript","license":"apache-2.0","repos":"SlavaRa\/flex-flexunit,apache\/flex-flexunit,apache\/flex-flexunit,apache\/flex-flexunit,SlavaRa\/flex-flexunit,SlavaRa\/flex-flexunit,apache\/flex-flexunit,SlavaRa\/flex-flexunit"} {"commit":"9cb51568c37c5ffec45d001c69cae5d3969cfb83","old_file":"plugins\/wvPlugin\/src\/com\/kaltura\/kdpfl\/plugin\/WVLoader.as","new_file":"plugins\/wvPlugin\/src\/com\/kaltura\/kdpfl\/plugin\/WVLoader.as","old_contents":"package com.kaltura.kdpfl.plugin\n{\n\timport org.osmf.traits.LoaderBase;\n\t\n\tpublic class WVLoader extends LoaderBase\n\t{\n\t\tpublic function WVLoader()\n\t\t{\n\t\t\tsuper();\n\t\t}\n\t}\n}","new_contents":"package com.kaltura.kdpfl.plugin\r\n{\r\n\timport flash.external.ExternalInterface;\r\n\t\r\n\timport org.osmf.media.MediaResourceBase;\r\n\timport org.osmf.traits.LoaderBase;\r\n\t\r\n\tpublic class WVLoader extends LoaderBase\r\n\t{\r\n\t\tpublic function WVLoader()\r\n\t\t{\r\n\t\t\tsuper();\r\n\t\t}\r\n\t\t\r\n\t\toverride public function canHandleResource(resource:MediaResourceBase):Boolean\r\n\t\t{\r\n\t\t\tif (resource.hasOwnProperty(\"url\") && resource[\"url\"].toString().indexOf(\".wvm\") > -1 )\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tExternalInterface.call(\"mediaURL\" , resource[\"url\"].toString());\r\n\t\t\t\t} \r\n\t\t\t\tcatch(error:Error) \r\n\t\t\t\t{\r\n\t\t\t\t\ttrace(\"Failed to call external interface\");\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n}","subject":"Fix a bug that caused \"ChangeMedia\" to fail","message":"Fix a bug that caused \"ChangeMedia\" to fail","lang":"ActionScript","license":"agpl-3.0","repos":"kaltura\/kdp,shvyrev\/kdp,shvyrev\/kdp,shvyrev\/kdp,kaltura\/kdp,kaltura\/kdp"} {"commit":"a52512f1414c32c6b96c98965148f4a97ec4c3dd","old_file":"src\/goplayer\/FlashContentLoadAttempt.as","new_file":"src\/goplayer\/FlashContentLoadAttempt.as","old_contents":"package goplayer\n{\n import flash.display.Loader\n import flash.events.Event\n import flash.events.IOErrorEvent\n import flash.net.URLRequest\n import flash.system.ApplicationDomain\n import flash.system.LoaderContext\n import flash.system.SecurityDomain\n\n public class FlashContentLoadAttempt\n {\n private const loader : Loader = new Loader\n\n private var url : String\n private var listener : FlashContentLoaderListener\n\n public function FlashContentLoadAttempt\n (url : String, listener : FlashContentLoaderListener)\n {\n this.url = url, this.listener = listener\n\n loader.contentLoaderInfo.addEventListener\n (Event.COMPLETE, handleContentLoaded)\n loader.contentLoaderInfo.addEventListener\n (IOErrorEvent.IO_ERROR, handleIOError)\n }\n\n public function execute() : void\n { loader.load(new URLRequest(url)) }\n\n private function handleContentLoaded(event : Event) : void\n { listener.handleContentLoaded(loader.contentLoaderInfo) }\n\n private function handleIOError(event : IOErrorEvent) : void\n { debug(\"Failed to load <\" + url + \">: \" + event.text) }\n }\n}\n","new_contents":"package goplayer\n{\n import flash.display.Loader\n import flash.events.Event\n import flash.events.IOErrorEvent\n import flash.net.URLRequest\n import flash.system.ApplicationDomain\n import flash.system.LoaderContext\n import flash.system.SecurityDomain\n\n public class FlashContentLoadAttempt\n {\n private const loader : Loader = new Loader\n\n private var url : String\n private var listener : FlashContentLoaderListener\n\n public function FlashContentLoadAttempt\n (url : String, listener : FlashContentLoaderListener)\n {\n this.url = url, this.listener = listener\n\n loader.contentLoaderInfo.addEventListener\n (Event.COMPLETE, handleContentLoaded)\n loader.contentLoaderInfo.addEventListener\n (IOErrorEvent.IO_ERROR, handleIOError)\n }\n\n public function execute() : void\n { loader.load(new URLRequest(url)) }\n\n private function handleContentLoaded(event : Event) : void\n { listener.handleContentLoaded(loader.contentLoaderInfo) }\n\n private function handleIOError(event : IOErrorEvent) : void\n {\n const code : String = event.text.match(\/^Error #(\\d+)\/)[1] \n const message : String = code == \"2035\" ? \"Not found\" : event.text\n\n debug(\"Error: Failed to load <\" + url + \">: \" + message)\n }\n }\n}\n","subject":"Improve error handling of external content loading.","message":"Improve error handling of external content loading.\n","lang":"ActionScript","license":"mit","repos":"dbrock\/goplayer,dbrock\/goplayer"} {"commit":"9048d4b0250a6742f81712f65cccf04c0be4aa94","old_file":"src\/aerys\/minko\/render\/effect\/vertex\/VertexUVShader.as","new_file":"src\/aerys\/minko\/render\/effect\/vertex\/VertexUVShader.as","old_contents":"package aerys.minko.render.effect.vertex\n{\n\timport aerys.minko.render.RenderTarget;\n\timport aerys.minko.render.effect.basic.BasicProperties;\n\timport aerys.minko.render.effect.basic.BasicShader;\n\timport aerys.minko.render.shader.SFloat;\n\timport aerys.minko.type.stream.format.VertexComponent;\n\t\n\tpublic class VertexUVShader extends BasicShader\n\t{\n\t\t\n\t\tpublic function VertexUVShader(target \t: RenderTarget \t= null, \n\t\t\t\t\t\t\t\t\t priority\t: Number\t\t= 0)\n\t\t{\n\t\t\tsuper(target, priority);\n\t\t}\n\t\t\n\t\toverride protected function getPixelColor() : SFloat\n\t\t{\n\t\t\tvar uv \t\t\t\t: SFloat = getVertexAttribute(VertexComponent.UV);\n\t\t\t\n\t\t\tif (meshBindings.propertyExists(BasicProperties.DIFFUSE_UV_SCALE))\n\t\t\t\tuv.scaleBy(meshBindings.getParameter(BasicProperties.DIFFUSE_UV_SCALE, 2));\n\t\t\t\n\t\t\tif (meshBindings.propertyExists(BasicProperties.DIFFUSE_UV_OFFSET))\n\t\t\t\tuv.incrementBy(meshBindings.getParameter(BasicProperties.DIFFUSE_UV_OFFSET, 2));\n\n\t\t\tvar interpolatedUv \t: SFloat = fractional(interpolate(uv));\n\t\t\t\n\t\t\treturn float4(interpolatedUv.x, interpolatedUv.y, 0, 1);\n\t\t}\n\t\t\n\t}\n}","new_contents":"package aerys.minko.render.effect.vertex\n{\n\timport aerys.minko.render.RenderTarget;\n\timport aerys.minko.render.effect.basic.BasicProperties;\n\timport aerys.minko.render.effect.basic.BasicShader;\n\timport aerys.minko.render.shader.SFloat;\n\timport aerys.minko.type.stream.format.VertexComponent;\n\t\n\tpublic class VertexUVShader extends BasicShader\n\t{\t\t\n\t\tpublic function VertexUVShader(target \t: RenderTarget \t= null, \n\t\t\t\t\t\t\t\t\t priority\t: Number\t\t= 0)\n\t\t{\n\t\t\tsuper(target, priority);\n\t\t}\n\t\t\n\t\toverride protected function getPixelColor() : SFloat\n\t\t{\n\t\t\tvar uv \t: SFloat = getVertexAttribute(VertexComponent.UV);\n\t\t\t\n\t\t\tif (meshBindings.propertyExists(BasicProperties.DIFFUSE_UV_SCALE))\n\t\t\t\tuv.scaleBy(meshBindings.getParameter(BasicProperties.DIFFUSE_UV_SCALE, 2));\n\t\t\t\n\t\t\tif (meshBindings.propertyExists(BasicProperties.DIFFUSE_UV_OFFSET))\n\t\t\t\tuv.incrementBy(meshBindings.getParameter(BasicProperties.DIFFUSE_UV_OFFSET, 2));\n\n\t\t\tuv = interpolate(uv);\n\t\t\t\n\t\t\tvar fractional : SFloat = fractional(uv);\n\t\t\tvar fractionalIsZero : SFloat = equal(fractional, float2(0, 0));\n\t\t\tvar interpolatedUv \t: SFloat = add(\n\t\t\t\tmultiply(not(fractionalIsZero), fractional),\n\t\t\t\tmultiply(fractionalIsZero, saturate(uv))\n\t\t\t);\n\t\t\t\n\t\t\treturn float4(interpolatedUv.x, interpolatedUv.y, 0, 1);\n\t\t}\n\t\t\n\t}\n}","subject":"Optimize uv shader for limit values","message":"Optimize uv shader for limit values\n","lang":"ActionScript","license":"mit","repos":"aerys\/minko-as3"} {"commit":"912692ea30af1f186de02f86b8a0687523e9c7e9","old_file":"dolly-framework\/src\/test\/resources\/dolly\/ClassWithSomeCopyableFields.as","new_file":"dolly-framework\/src\/test\/resources\/dolly\/ClassWithSomeCopyableFields.as","old_contents":"package dolly {\npublic class ClassWithSomeCopyableFields {\n\n\tpublic static var staticProperty1:String;\n\n\t[Cloneable]\n\tpublic static var staticProperty2:String;\n\n\t[Cloneable]\n\tpublic static var staticProperty3:String;\n\n\tprivate var _writableField:String;\n\tprivate var _readOnlyField:String = \"read-only field value\";\n\n\tpublic var property1:String;\n\n\t[Cloneable]\n\tpublic var property2:String;\n\n\t[Cloneable]\n\tpublic var property3:String;\n\n\tpublic function ClassWithSomeCopyableFields() {\n\t}\n\n\t[Cloneable]\n\tpublic function get writableField():String {\n\t\treturn _writableField;\n\t}\n\n\tpublic function set writableField(value:String):void {\n\t\t_writableField = value;\n\t}\n\n\t[Cloneable]\n\tpublic function get readOnlyField():String {\n\t\treturn _readOnlyField;\n\t}\n}\n}\n","new_contents":"package dolly {\npublic class ClassWithSomeCopyableFields {\n\n\tpublic static var staticProperty1:String;\n\n\t[Copyable]\n\tpublic static var staticProperty2:String;\n\n\t[Copyable]\n\tpublic static var staticProperty3:String;\n\n\tprivate var _writableField:String;\n\tprivate var _readOnlyField:String = \"read-only field value\";\n\n\tpublic var property1:String;\n\n\t[Copyable]\n\tpublic var property2:String;\n\n\t[Copyable]\n\tpublic var property3:String;\n\n\tpublic function ClassWithSomeCopyableFields() {\n\t}\n\n\t[Copyable]\n\tpublic function get writableField():String {\n\t\treturn _writableField;\n\t}\n\n\tpublic function set writableField(value:String):void {\n\t\t_writableField = value;\n\t}\n\n\t[Copyable]\n\tpublic function get readOnlyField():String {\n\t\treturn _readOnlyField;\n\t}\n}\n}\n","subject":"Change metadata tags to Copyable in test data class.","message":"Change metadata tags to Copyable in test data class.\n","lang":"ActionScript","license":"mit","repos":"Yarovoy\/dolly"} {"commit":"5f9b770ac4d5d2b6799009db942e4bfcd3ffb7bc","old_file":"src\/goplayer\/FlashContentLoadAttempt.as","new_file":"src\/goplayer\/FlashContentLoadAttempt.as","old_contents":"package goplayer\n{\n import flash.display.Loader\n import flash.events.Event\n import flash.events.IOErrorEvent\n import flash.net.URLRequest\n import flash.system.ApplicationDomain\n import flash.system.LoaderContext\n import flash.system.SecurityDomain\n\n public class FlashContentLoadAttempt\n {\n private const loader : Loader = new Loader\n\n private var url : String\n private var listener : FlashContentLoaderListener\n\n public function FlashContentLoadAttempt\n (url : String, listener : FlashContentLoaderListener)\n {\n this.url = url, this.listener = listener\n\n loader.contentLoaderInfo.addEventListener\n (Event.COMPLETE, handleContentLoaded)\n loader.contentLoaderInfo.addEventListener\n (IOErrorEvent.IO_ERROR, handleIOError)\n }\n\n public function execute() : void\n { loader.load(new URLRequest(url)) }\n\n private function get loaderContext() : LoaderContext\n {\n const result : LoaderContext = new LoaderContext(false, new ApplicationDomain(ApplicationDomain.currentDomain))\n\n result.securityDomain = SecurityDomain.currentDomain\n\n return result\n }\n\n private function handleContentLoaded(event : Event) : void\n { listener.handleContentLoaded(loader.contentLoaderInfo) }\n\n private function handleIOError(event : IOErrorEvent) : void\n { debug(\"Failed to load <\" + url + \">: \" + event.text) }\n }\n}\n","new_contents":"package goplayer\n{\n import flash.display.Loader\n import flash.events.Event\n import flash.events.IOErrorEvent\n import flash.net.URLRequest\n import flash.system.ApplicationDomain\n import flash.system.LoaderContext\n import flash.system.SecurityDomain\n\n public class FlashContentLoadAttempt\n {\n private const loader : Loader = new Loader\n\n private var url : String\n private var listener : FlashContentLoaderListener\n\n public function FlashContentLoadAttempt\n (url : String, listener : FlashContentLoaderListener)\n {\n this.url = url, this.listener = listener\n\n loader.contentLoaderInfo.addEventListener\n (Event.COMPLETE, handleContentLoaded)\n loader.contentLoaderInfo.addEventListener\n (IOErrorEvent.IO_ERROR, handleIOError)\n }\n\n public function execute() : void\n { loader.load(new URLRequest(url)) }\n\n private function handleContentLoaded(event : Event) : void\n { listener.handleContentLoaded(loader.contentLoaderInfo) }\n\n private function handleIOError(event : IOErrorEvent) : void\n { debug(\"Failed to load <\" + url + \">: \" + event.text) }\n }\n}\n","subject":"Remove custom LoaderContext creation code.","message":"Remove custom LoaderContext creation code.\n","lang":"ActionScript","license":"mit","repos":"dbrock\/goplayer,dbrock\/goplayer"} {"commit":"7c291f387d8af2946b6407ef5a5cde2cb58958f3","old_file":"src\/main\/as\/flump\/export\/PackedTexture.as","new_file":"src\/main\/as\/flump\/export\/PackedTexture.as","old_contents":"\/\/\n\/\/ Flump - Copyright 2012 Three Rings Design\n\npackage flump.export {\n\nimport flash.display.DisplayObject;\nimport flash.display.Sprite;\nimport flash.geom.Point;\nimport flash.geom.Rectangle;\n\nimport flump.xfl.XflTexture;\n\npublic class PackedTexture\n{\n public const holder :Sprite = new Sprite();\n public var tex :XflTexture;\n public var offset :Point;\n public var w :int, h :int, a :int;\n public var atlasX :int, atlasY :int;\n public var atlasRotated :Boolean;\n\n public function PackedTexture (tex :XflTexture, image :DisplayObject) {\n this.tex = tex;\n holder.addChild(image);\n const bounds :Rectangle = image.getBounds(holder);\n offset = new Point(bounds.x, bounds.y);\n w = Math.ceil(bounds.width);\n h = Math.ceil(bounds.height);\n a = w * h;\n }\n\n public function toString () :String {\n return \"a \" + a + \" w \" + w + \" h \" + h + \" atlas \" + atlasX + \", \" + atlasY;\n }\n}\n}\n","new_contents":"\/\/\n\/\/ Flump - Copyright 2012 Three Rings Design\n\npackage flump.export {\n\nimport flash.display.DisplayObject;\nimport flash.display.Sprite;\nimport flash.geom.Point;\nimport flash.geom.Rectangle;\n\nimport flump.xfl.XflTexture;\n\npublic class PackedTexture\n{\n public const holder :Sprite = new Sprite();\n public var tex :XflTexture;\n public var offset :Point;\n public var w :int, h :int, a :int;\n public var atlasX :int, atlasY :int;\n public var atlasRotated :Boolean;\n\n public function PackedTexture (tex :XflTexture, image :DisplayObject) {\n this.tex = tex;\n holder.addChild(image);\n const bounds :Rectangle = image.getBounds(holder);\n image.x = -bounds.x;\n image.y = -bounds.y;\n offset = new Point(bounds.x, bounds.y);\n w = Math.ceil(bounds.width);\n h = Math.ceil(bounds.height);\n a = w * h;\n }\n\n public function toString () :String {\n return \"a \" + a + \" w \" + w + \" h \" + h + \" atlas \" + atlasX + \", \" + atlasY;\n }\n}\n}\n","subject":"Move the images by their offset","message":"Move the images by their offset\n","lang":"ActionScript","license":"mit","repos":"funkypandagame\/flump,tconkling\/flump,funkypandagame\/flump,tconkling\/flump,mathieuanthoine\/flump,mathieuanthoine\/flump,mathieuanthoine\/flump"} {"commit":"51cf6b65bec7c91b21172fff6224855f503e01fa","old_file":"src\/as\/com\/threerings\/flex\/FlexWrapper.as","new_file":"src\/as\/com\/threerings\/flex\/FlexWrapper.as","old_contents":"\/\/\n\/\/ $Id$\n\/\/\n\/\/ Nenya library - tools for developing networked games\n\/\/ Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved\n\/\/ http:\/\/www.threerings.net\/code\/nenya\/\n\/\/\n\/\/ This library is free software; you can redistribute it and\/or modify it\n\/\/ under the terms of the GNU Lesser General Public License as published\n\/\/ by the Free Software Foundation; either version 2.1 of the License, or\n\/\/ (at your option) any later version.\n\/\/\n\/\/ This library is distributed in the hope that it will be useful,\n\/\/ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\/\/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\/\/ Lesser General Public License for more details.\n\/\/\n\/\/ You should have received a copy of the GNU Lesser General Public\n\/\/ License along with this library; if not, write to the Free Software\n\/\/ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\npackage com.threerings.flex {\n\nimport flash.display.DisplayObject;\n\nimport mx.core.UIComponent;\n\n\/**\n * Wraps a non-Flex component for use in Flex. \n *\/\npublic class FlexWrapper extends UIComponent\n{\n public function FlexWrapper (object :DisplayObject)\n {\n \/\/ don't capture mouse events in this wrapper\n mouseEnabled = false;\n addChild(object);\n width = object.width;\n height = object.height;\n }\n}\n}\n","new_contents":"\/\/\n\/\/ $Id$\n\/\/\n\/\/ Nenya library - tools for developing networked games\n\/\/ Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved\n\/\/ http:\/\/www.threerings.net\/code\/nenya\/\n\/\/\n\/\/ This library is free software; you can redistribute it and\/or modify it\n\/\/ under the terms of the GNU Lesser General Public License as published\n\/\/ by the Free Software Foundation; either version 2.1 of the License, or\n\/\/ (at your option) any later version.\n\/\/\n\/\/ This library is distributed in the hope that it will be useful,\n\/\/ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\/\/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\/\/ Lesser General Public License for more details.\n\/\/\n\/\/ You should have received a copy of the GNU Lesser General Public\n\/\/ License along with this library; if not, write to the Free Software\n\/\/ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\npackage com.threerings.flex {\n\nimport flash.display.DisplayObject;\n\nimport mx.core.UIComponent;\n\n\/**\n * Wraps a non-Flex component for use in Flex. \n *\/\npublic class FlexWrapper extends UIComponent\n{\n public function FlexWrapper (object :DisplayObject, inheritSize :Boolean = false)\n {\n \/\/ don't capture mouse events in this wrapper\n mouseEnabled = false;\n addChild(object);\n if (inheritSize) {\n width = object.width;\n height = object.height;\n }\n }\n}\n}\n","subject":"Make this optional, and not the default. Turns out a bunch of shit makes the wrapper size a little bigger, and some things seem to freak out when the wrapper has a size, even when includeInLayout=false. Flex you very much.","message":"Make this optional, and not the default.\nTurns out a bunch of shit makes the wrapper size a little bigger,\nand some things seem to freak out when the wrapper has a size,\neven when includeInLayout=false.\nFlex you very much.\n\n\ngit-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@616 ed5b42cb-e716-0410-a449-f6a68f950b19\n","lang":"ActionScript","license":"lgpl-2.1","repos":"threerings\/nenya,threerings\/nenya"} {"commit":"60ec297e24004ef5f50d8dae05c3313e99d3263a","old_file":"src\/stdio\/Sprite.as","new_file":"src\/stdio\/Sprite.as","old_contents":"package stdio {\n import flash.display.*\n import flash.utils.getQualifiedClassName\n import flash.utils.setTimeout\n\n public class Sprite extends flash.display.Sprite {\n public function Sprite() {\n stage.scaleMode = StageScaleMode.NO_SCALE\n stage.align = StageAlign.TOP_LEFT\n\n \/\/ Let the subclass constructor run first.\n setTimeout(initialize, 0)\n }\n\n private function initialize(): void {\n setup(loaderInfo, this, start)\n }\n\n private function start(): void {\n if (\"main\" in this && this[\"main\"].length === 0) {\n this[\"main\"]()\n } else {\n warn(\"Please write your main method like this:\")\n warn(\"public function main(): void {}\")\n process.exit(1)\n }\n }\n\n private function warn(message: String): void {\n process.warn(getQualifiedClassName(this) + \": \" + message)\n }\n }\n}\n","new_contents":"package stdio {\n import flash.display.*\n import flash.utils.getQualifiedClassName\n import flash.utils.setTimeout\n\n public class Sprite extends flash.display.Sprite {\n public function Sprite() {\n if (stage) {\n stage.scaleMode = StageScaleMode.NO_SCALE\n stage.align = StageAlign.TOP_LEFT\n }\n\n \/\/ Let the subclass constructor run first.\n setTimeout(initialize, 0)\n }\n\n private function initialize(): void {\n setup(loaderInfo, this, start)\n }\n\n private function start(): void {\n if (\"main\" in this && this[\"main\"].length === 0) {\n this[\"main\"]()\n } else {\n warn(\"Please write your main method like this:\")\n warn(\"public function main(): void {}\")\n process.exit(1)\n }\n }\n\n private function warn(message: String): void {\n process.warn(getQualifiedClassName(this) + \": \" + message)\n }\n }\n}\n","subject":"Fix bug preventing running processes recursively.","message":"Fix bug preventing running processes recursively.\n","lang":"ActionScript","license":"mit","repos":"dbrock\/stdio.as,dbrock\/stdio.as,dbrock\/stdio.as"} {"commit":"14e29c99fbaba25aace6714949c3cca398c89643","old_file":"bin\/Data\/Scripts\/Main.as","new_file":"bin\/Data\/Scripts\/Main.as","old_contents":"Scene@ newScene_;\nScene@ scene_;\nCamera@ camera_;\n\nvoid Start()\n{\n\tStartScene(\"Scenes\/Level1.xml\");\n\tSubscribeToEvent(\"LevelComplete\", \"HandleLevelComplete\");\n}\n\nvoid Stop()\n{\n}\n\nvoid HandleLevelComplete(StringHash type, VariantMap& data)\n{\n\tlog.Debug(\"Level Complete. I should be loading \"+data[\"NextLevel\"].GetString());\n\tStartScene(data[\"NextLevel\"].GetString());\n}\n\nvoid StartScene(String scene)\n{\n\tnewScene_ = Scene();\n\tnewScene_.LoadAsyncXML(cache.GetFile(scene));\n\n\tSubscribeToEvent(\"AsyncLoadFinished\", \"HandleAsyncLoadFinished\");\n}\n\nvoid HandleAsyncLoadFinished(StringHash type, VariantMap& data)\n{\n\tUnsubscribeFromEvent(\"AsyncLoadFinished\");\n\n\tnewScene_ = data[\"Scene\"].GetPtr();\n\n\tSubscribeToEvent(\"Update\", \"HandleDelayedStart\");\n}\n\nvoid HandleDelayedStart(StringHash type, VariantMap& data)\n{\n\tUnsubscribeFromEvent(\"Update\");\n\n\tNode@ cameraNode = newScene_.GetChild(\"Camera\", true);\n\tCamera@ newCamera = cameraNode.CreateComponent(\"Camera\");\n\n\tViewport@ viewport = Viewport(newScene_, cameraNode.GetComponent(\"Camera\"));\n\trenderer.viewports[0] = viewport;\n\n\tscene_ = newScene_;\n\tcamera_ = newCamera;\n\tnewScene_ = null;\n}\n","new_contents":"Scene@ newScene_;\nScene@ scene_;\nCamera@ camera_;\nTimer timer_;\n\nvoid Start()\n{\n\tStartScene(\"Scenes\/Level1.xml\");\n\tSubscribeToEvent(\"LevelComplete\", \"HandleLevelComplete\");\n}\n\nvoid Stop()\n{\n}\n\nvoid HandleLevelComplete(StringHash type, VariantMap& data)\n{\n\tlog.Debug(\"Level Complete. I should be loading \"+data[\"NextLevel\"].GetString());\n\tfloat timeTaken = timer_.GetMSec(false);\n\tlog.Debug(\"You took \" + timeTaken \/ 1000.f + \" seconds to solve the level\");\n\n\tStartScene(data[\"NextLevel\"].GetString());\n}\n\nvoid StartScene(String scene)\n{\n\tnewScene_ = Scene();\n\tnewScene_.LoadAsyncXML(cache.GetFile(scene));\n\n\tSubscribeToEvent(\"AsyncLoadFinished\", \"HandleAsyncLoadFinished\");\n}\n\nvoid HandleAsyncLoadFinished(StringHash type, VariantMap& data)\n{\n\tUnsubscribeFromEvent(\"AsyncLoadFinished\");\n\n\tnewScene_ = data[\"Scene\"].GetPtr();\n\n\tSubscribeToEvent(\"Update\", \"HandleDelayedStart\");\n}\n\nvoid HandleDelayedStart(StringHash type, VariantMap& data)\n{\n\tUnsubscribeFromEvent(\"Update\");\n\n\tNode@ cameraNode = newScene_.GetChild(\"Camera\", true);\n\tCamera@ newCamera = cameraNode.CreateComponent(\"Camera\");\n\n\tViewport@ viewport = Viewport(newScene_, cameraNode.GetComponent(\"Camera\"));\n\trenderer.viewports[0] = viewport;\n\n\tscene_ = newScene_;\n\tcamera_ = newCamera;\n\tnewScene_ = null;\n\n\ttimer_.Reset();\n}\n","subject":"Add a level timer to the main procedure","message":"Add a level timer to the main procedure\n","lang":"ActionScript","license":"mit","repos":"leyarotheconquerer\/on-off"} {"commit":"59c6998c30630453371516f40bfa19f6fd24cf36","old_file":"src\/as\/com\/threerings\/flash\/FrameSprite.as","new_file":"src\/as\/com\/threerings\/flash\/FrameSprite.as","old_contents":"\/\/\n\/\/ $Id$\n\npackage com.threerings.flash {\n\nimport flash.display.Sprite;\n\nimport flash.events.Event;\n\n\/**\n * Convenience superclass to use for sprites that need to update every frame.\n * (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they\n * will prevent an object from being garbage collected!)\n *\/\npublic class FrameSprite extends Sprite\n{\n public function FrameSprite ()\n {\n addEventListener(Event.ADDED_TO_STAGE, handleAdded);\n addEventListener(Event.REMOVED_FROM_STAGE, handleRemoved);\n }\n\n \/**\n * Called when we're added to the stage.\n *\/\n protected function handleAdded (... ignored) :void\n {\n addEventListener(Event.ENTER_FRAME, handleFrame);\n handleFrame(); \/\/ update immediately\n }\n\n \/**\n * Called when we're added to the stage.\n *\/\n protected function handleRemoved (... ignored) :void\n {\n removeEventListener(Event.ENTER_FRAME, handleFrame);\n }\n\n \/**\n * Called to update our visual appearance prior to each frame.\n *\/\n protected function handleFrame (... ignored) :void\n {\n \/\/ nothing here. Override in yor subclass.\n }\n}\n\n}\n","new_contents":"\/\/\n\/\/ $Id$\n\npackage com.threerings.flash {\n\nimport flash.display.Sprite;\n\nimport flash.events.Event;\n\n\/**\n * Convenience superclass to use for sprites that need to update every frame.\n * (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they\n * will prevent an object from being garbage collected!)\n *\/\npublic class FrameSprite extends Sprite\n{\n \/**\n * @param renderFrameUponAdding if true, the handleFrame() method\n * is called whenever an ADDED_TO_STAGE event is received.\n *\/\n public function FrameSprite (renderFrameUponAdding :Boolean = true)\n {\n _renderOnAdd = renderFrameUponAdding;\n\n addEventListener(Event.ADDED_TO_STAGE, handleAdded);\n addEventListener(Event.REMOVED_FROM_STAGE, handleRemoved);\n }\n\n \/**\n * Called when we're added to the stage.\n *\/\n protected function handleAdded (... ignored) :void\n {\n addEventListener(Event.ENTER_FRAME, handleFrame);\n if (_renderOnAdd) {\n handleFrame(); \/\/ update immediately\n }\n }\n\n \/**\n * Called when we're added to the stage.\n *\/\n protected function handleRemoved (... ignored) :void\n {\n removeEventListener(Event.ENTER_FRAME, handleFrame);\n }\n\n \/**\n * Called to update our visual appearance prior to each frame.\n *\/\n protected function handleFrame (... ignored) :void\n {\n \/\/ nothing here. Override in yor subclass.\n }\n\n \/** Should we call handleFrame() when we get ADDED_TO_STAGE? *\/\n protected var _renderOnAdd :Boolean;\n}\n\n}\n","subject":"Allow subclasses to choose not to call handleFrame() when ADDED_TO_STAGE is received.","message":"Allow subclasses to choose not to call handleFrame() when\nADDED_TO_STAGE is received.\n\n\ngit-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@253 ed5b42cb-e716-0410-a449-f6a68f950b19\n","lang":"ActionScript","license":"lgpl-2.1","repos":"threerings\/nenya,threerings\/nenya"} {"commit":"074ee8976d0c8c96773a51f3a81f0bede4f50177","old_file":"src\/main\/flex\/org\/servebox\/cafe\/core\/application\/Application.as","new_file":"src\/main\/flex\/org\/servebox\/cafe\/core\/application\/Application.as","old_contents":"package org.servebox.cafe.core.application\n{\n\timport org.servebox.cafe.core.spring.ApplicationContext;\n\t\n\timport spark.components.Application;\n\t\n\tpublic class Application extends spark.components.Application implements CafeApplication\n\t{\n\t\tprivate var _context : ApplicationContext;\n\t\t\n\t\tpublic function Application()\n\t\t{\n\t\t\tsuper();\n\t\t\tApplicationInitializer.prepare( this );\n\t\t\t_context = ApplicationInitializer.getDefaultContext();\t\t\t\n\t\t}\n\t\t\n\t\tpublic function getContext():ApplicationContext\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}\n}","new_contents":"package org.servebox.cafe.core.application\n{\n\timport org.servebox.cafe.core.spring.ApplicationContext;\n\t\n\timport spark.components.Application;\n\t\n\tpublic class Application extends spark.components.Application implements CafeApplication\n\t{\n\t\tprivate var _context : ApplicationContext;\n\t\t\n\t\tpublic function Application()\n\t\t{\n\t\t\tsuper();\n\t\t\tApplicationInitializer.prepare( this );\n\t\t\t_context = ApplicationInitializer.getDefaultContext();\t\t\t\n\t\t}\n\t\t\n\t\tpublic function getContext():ApplicationContext\n\t\t{\n\t\t\treturn _context;\n\t\t}\n\t}\n}","subject":"Fix bug on getContext() null","message":"Fix bug on getContext() null\n","lang":"ActionScript","license":"mit","repos":"servebox\/as-cafe"} {"commit":"afe0ec129b581ac6d1fc693226c997ae23d30a23","old_file":"frameworks\/as\/src\/org\/apache\/flex\/html\/staticControls\/beads\/SolidBackgroundBead.as","new_file":"frameworks\/as\/src\/org\/apache\/flex\/html\/staticControls\/beads\/SolidBackgroundBead.as","old_contents":"","new_contents":"\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/\n\/\/ Licensed to the Apache Software Foundation (ASF) under one or more\n\/\/ contributor license agreements. See the NOTICE file distributed with\n\/\/ this work for additional information regarding copyright ownership.\n\/\/ The ASF licenses this file to You under the Apache License, Version 2.0\n\/\/ (the \"License\"); you may not use this file except in compliance with\n\/\/ the License. You may obtain a copy of the License at\n\/\/\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\/\/\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\/\/ See the License for the specific language governing permissions and\n\/\/ limitations under the License.\n\/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\npackage org.apache.flex.html.staticControls.beads\n{\n\timport flash.display.Graphics;\n\timport flash.events.Event;\n\timport flash.events.IEventDispatcher;\n\t\n\timport org.apache.flex.core.IBead;\n\timport org.apache.flex.core.IStrand;\n\timport org.apache.flex.core.UIBase;\n\n\tpublic class SolidBackgroundBead implements IBead\n\t{\n\t\tpublic function SolidBackgroundBead()\n\t\t{\n\t\t}\n\t\t\t\t\n\t\tprivate var _strand:IStrand;\n\t\t\n\t\tpublic function get strand():IStrand\n\t\t{\n\t\t\treturn _strand;\n\t\t}\n\t\tpublic function set strand(value:IStrand):void\n\t\t{\n\t\t\t_strand = value;\n IEventDispatcher(value).addEventListener(\"heightChanged\", changeHandler);\n IEventDispatcher(value).addEventListener(\"widthChanged\", changeHandler);\n\t\t}\n\t\t\n\t\tprivate var _backgroundColor:uint;\n\t\t\n\t\tpublic function get backgroundColor():uint\n\t\t{\n\t\t\treturn _backgroundColor;\n\t\t}\n\t\tpublic function set backgroundColor(value:uint):void\n\t\t{\n\t\t\t_backgroundColor = value;\n\t\t\tif (_strand)\n\t\t\t\tchangeHandler(null);\n\t\t}\n\t\t\n\t\tprivate function changeHandler(event:Event):void\n\t\t{\n var host:UIBase = UIBase(_strand);\n var g:Graphics = host.graphics;\n var w:Number = host.width;\n var h:Number = host.height;\n g.clear();\n g.beginFill(backgroundColor);\n g.drawRect(0, 0, w, h);\n g.endFill();\n\t\t}\n\t}\n}","subject":"Add bead to draw solid background","message":"Add bead to draw solid background\n","lang":"ActionScript","license":"apache-2.0","repos":"greg-dove\/flex-asjs,greg-dove\/flex-asjs,greg-dove\/flex-asjs,greg-dove\/flex-asjs"} {"commit":"e7bf51cfb89a12a7d718026032b58910d9fc755b","old_file":"test\/swfs\/test_Template.as","new_file":"test\/swfs\/test_Template.as","old_contents":"","new_contents":"\/* -*- Mode: java; indent-tabs-mode: nil -*- *\/\n\/*\n Compiled with:\n java -jar utils\/asc.jar -import playerglobal.abc -swf Template,100,100,10 test\/swfs\/test_TemplateTest.as\n\n This template is for writing test SWFs using pure AS3. It allows for testing\n UI events, screen and program state using the Shumway test harness.\n*\/\n\npackage {\n\n import flash.display.Sprite;\n import flash.events.Event;\n\n public class TemplateTest extends Sprite {\n public var loader;\n public function TemplateTest() {\n var child = new TestObject();\n addChild(child);\n addEventListener(Event.ENTER_FRAME, child.enterFrameHandler);\n }\n }\n}\n\nimport flash.display.*;\nimport flash.events.*;\nimport flash.net.*;\n\nclass TestObject extends Sprite {\n private var color: uint = 0xFFCC00;\n private var pos: uint = 10;\n private var size: uint = 80;\n\n \/*\n In the constructor, install event listeners for testing events, and\n construct and add child objects.\n *\/\n public function TestObject() {\n }\n\n private var frameCount = 0;\n\n \/*\n In the enterFrameHandler, make API calls per frame to test both\n screen and program side-effects.\n *\/\n function enterFrameHandler(event:Event):void {\n frameCount++;\n var target = event.target;\n var loader = target.loader;\n switch (frameCount) {\n case 1:\n (function () {\n \/*\n Log test results in the standard format shown here to allow\n for easy linking with monitor programs.\n *\/\n var result = true ? \"PASS\" : \"FAIL\";\n trace(result + \": test::Template\/method ()\");\n trace(result + \": test::Template\/get name ()\");\n trace(result + \": test::Template\/set name ()\");\n })();\n break;\n default:\n \/*\n Remove enterFrameHandler when done.\n *\/\n parent.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);\n break;\n }\n }\n}\n","subject":"Add template for writing SWF unit tests","message":"Add template for writing SWF unit tests\n","lang":"ActionScript","license":"apache-2.0","repos":"mozilla\/shumway,mozilla\/shumway,mozilla\/shumway,mbebenita\/shumway,mozilla\/shumway,yurydelendik\/shumway,mbebenita\/shumway,tschneidereit\/shumway,tschneidereit\/shumway,yurydelendik\/shumway,mbebenita\/shumway,yurydelendik\/shumway,tschneidereit\/shumway,tschneidereit\/shumway,yurydelendik\/shumway,yurydelendik\/shumway,mbebenita\/shumway,mbebenita\/shumway,mbebenita\/shumway,tschneidereit\/shumway,yurydelendik\/shumway,tschneidereit\/shumway,tschneidereit\/shumway,mozilla\/shumway,yurydelendik\/shumway,mbebenita\/shumway,tschneidereit\/shumway,yurydelendik\/shumway,mozilla\/shumway,mozilla\/shumway,mbebenita\/shumway,mozilla\/shumway"} {"commit":"479ea0c600c850d250a09fe2dd6d9df3e37db95a","old_file":"Classes\/Textbox.as","new_file":"Classes\/Textbox.as","old_contents":"","new_contents":"package Classes\r\n{\r\n\tpublic class Textbox\r\n\t{\r\n\t\tpublic var contents:String;\r\n\t\t\r\n\t\tpublic function Textbox()\r\n\t\t{\r\n\t\t\tcontents=\"\";\r\n\t\t}\r\n\t\tpublic function Textbox(text)\r\n\t\t{\r\n\t\t\tcontents=text;\r\n\t\t}\r\n\t\tpublic setContents(text)\r\n\t\t{\r\n\t\t\tcontents=text;\r\n\t\t}\r\n\t}\r\n}","subject":"Create a dummy textbox class for the sole purpose of writing the XML loader","message":"Create a dummy textbox class for the sole purpose of writing the XML loader\n","lang":"ActionScript","license":"agpl-3.0","repos":"mbjornas3\/AGORA,MichaelHoffmann\/AGORA,mbjornas3\/AGORA,MichaelHoffmann\/AGORA,MichaelHoffmann\/AGORA"} {"commit":"969ae27b78e5252d95d53c2ac482eafeb899e437","old_file":"bin\/Data\/Scripts\/43_HttpRequestDemo.as","new_file":"bin\/Data\/Scripts\/43_HttpRequestDemo.as","old_contents":"","new_contents":"\/\/ Http request example.\n\/\/ This example demonstrates:\n\/\/ - How to use Http request API\n\n#include \"Scripts\/Utilities\/Sample.as\"\n\nString message;\nText@ text;\nHttpRequest@ httpRequest;\n\nvoid Start()\n{\n \/\/ Execute the common startup for samples\n SampleStart();\n\n \/\/ Create the user interface\n CreateUI();\n\n \/\/ Set the mouse mode to use in the sample\n SampleInitMouseMode(MM_FREE);\n\n \/\/ Subscribe to basic events such as update\n SubscribeToEvents();\n}\n\nvoid CreateUI()\n{\n \/\/ Construct new Text object\n text = Text();\n\n \/\/ Set font and text color\n text.SetFont(cache.GetResource(\"Font\", \"Fonts\/Anonymous Pro.ttf\"), 15);\n text.color = Color(1.0f, 1.0f, 0.0f);\n\n \/\/ Align Text center-screen\n text.horizontalAlignment = HA_CENTER;\n text.verticalAlignment = VA_CENTER;\n\n \/\/ Add Text instance to the UI root element\n ui.root.AddChild(text);\n}\n\nvoid SubscribeToEvents()\n{\n \/\/ Subscribe HandleUpdate() function for processing HTTP request\n SubscribeToEvent(\"Update\", \"HandleUpdate\");\n}\n\nvoid HandleUpdate(StringHash eventType, VariantMap& eventData)\n{\n \/\/ Create HTTP request\n if (httpRequest is null)\n httpRequest = network.MakeHttpRequest(\"http:\/\/httpbin.org\/ip\", \"GET\");\n else\n {\n \/\/ Initializing HTTP request\n if (httpRequest.state == HTTP_INITIALIZING)\n return;\n \/\/ An error has occured\n else if (httpRequest.state == HTTP_ERROR)\n {\n text.text = \"An error has occured.\";\n UnsubscribeFromEvent(\"Update\");\n }\n \/\/ Get message data\n else\n {\n if (httpRequest.availableSize > 0)\n message += httpRequest.ReadLine();\n else\n {\n text.text = \"Processing...\";\n\n JSONFile@ json = JSONFile();\n json.FromString(message);\n\n JSONValue val = json.GetRoot().Get(\"origin\");\n\n if (val.isNull)\n text.text = \"Invalid string.\";\n else\n text.text = \"Your IP is: \" + val.GetString();\n\n UnsubscribeFromEvent(\"Update\");\n }\n }\n }\n}\n\n\/\/ Create XML patch instructions for screen joystick layout specific to this sample app\nString patchInstructions =\n \"\" +\n \" \" +\n \" \" +\n \" <\/add>\" +\n \"<\/patch>\";\n\n","subject":"Add AngelScript Http Request demo sample.","message":"Add AngelScript Http Request demo sample.\n","lang":"ActionScript","license":"mit","repos":"PredatorMF\/Urho3D,SuperWangKai\/Urho3D,MeshGeometry\/Urho3D,henu\/Urho3D,fire\/Urho3D-1,iainmerrick\/Urho3D,eugeneko\/Urho3D,codemon66\/Urho3D,MeshGeometry\/Urho3D,xiliu98\/Urho3D,urho3d\/Urho3D,codemon66\/Urho3D,tommy3\/Urho3D,codemon66\/Urho3D,urho3d\/Urho3D,carnalis\/Urho3D,luveti\/Urho3D,SirNate0\/Urho3D,299299\/Urho3D,MonkeyFirst\/Urho3D,xiliu98\/Urho3D,kostik1337\/Urho3D,SuperWangKai\/Urho3D,henu\/Urho3D,victorholt\/Urho3D,helingping\/Urho3D,helingping\/Urho3D,fire\/Urho3D-1,codedash64\/Urho3D,codedash64\/Urho3D,kostik1337\/Urho3D,fire\/Urho3D-1,SuperWangKai\/Urho3D,xiliu98\/Urho3D,henu\/Urho3D,helingping\/Urho3D,kostik1337\/Urho3D,helingping\/Urho3D,rokups\/Urho3D,xiliu98\/Urho3D,cosmy1\/Urho3D,bacsmar\/Urho3D,carnalis\/Urho3D,tommy3\/Urho3D,299299\/Urho3D,cosmy1\/Urho3D,victorholt\/Urho3D,abdllhbyrktr\/Urho3D,luveti\/Urho3D,rokups\/Urho3D,iainmerrick\/Urho3D,luveti\/Urho3D,kostik1337\/Urho3D,299299\/Urho3D,bacsmar\/Urho3D,c4augustus\/Urho3D,eugeneko\/Urho3D,urho3d\/Urho3D,299299\/Urho3D,abdllhbyrktr\/Urho3D,MeshGeometry\/Urho3D,carnalis\/Urho3D,urho3d\/Urho3D,c4augustus\/Urho3D,orefkov\/Urho3D,iainmerrick\/Urho3D,PredatorMF\/Urho3D,tommy3\/Urho3D,weitjong\/Urho3D,weitjong\/Urho3D,luveti\/Urho3D,codemon66\/Urho3D,rokups\/Urho3D,fire\/Urho3D-1,SuperWangKai\/Urho3D,cosmy1\/Urho3D,MonkeyFirst\/Urho3D,rokups\/Urho3D,SuperWangKai\/Urho3D,eugeneko\/Urho3D,iainmerrick\/Urho3D,victorholt\/Urho3D,SirNate0\/Urho3D,299299\/Urho3D,iainmerrick\/Urho3D,c4augustus\/Urho3D,helingping\/Urho3D,PredatorMF\/Urho3D,fire\/Urho3D-1,henu\/Urho3D,orefkov\/Urho3D,weitjong\/Urho3D,abdllhbyrktr\/Urho3D,codedash64\/Urho3D,tommy3\/Urho3D,c4augustus\/Urho3D,orefkov\/Urho3D,codedash64\/Urho3D,c4augustus\/Urho3D,kostik1337\/Urho3D,carnalis\/Urho3D,MonkeyFirst\/Urho3D,rokups\/Urho3D,299299\/Urho3D,SirNate0\/Urho3D,SirNate0\/Urho3D,SirNate0\/Urho3D,codemon66\/Urho3D,cosmy1\/Urho3D,carnalis\/Urho3D,henu\/Urho3D,weitjong\/Urho3D,PredatorMF\/Urho3D,MeshGeometry\/Urho3D,MeshGeometry\/Urho3D,luveti\/Urho3D,rokups\/Urho3D,weitjong\/Urho3D,xiliu98\/Urho3D,abdllhbyrktr\/Urho3D,eugeneko\/Urho3D,MonkeyFirst\/Urho3D,MonkeyFirst\/Urho3D,cosmy1\/Urho3D,tommy3\/Urho3D,orefkov\/Urho3D,bacsmar\/Urho3D,victorholt\/Urho3D,bacsmar\/Urho3D,abdllhbyrktr\/Urho3D,victorholt\/Urho3D,codedash64\/Urho3D"} {"commit":"da113bebedd55e245527c41d507e7a0f4af97893","old_file":"swfcat.as","new_file":"swfcat.as","old_contents":"","new_contents":"package\n{\n import flash.display.Sprite;\n import flash.text.TextField;\n import flash.net.XMLSocket;\n\n public class swfcat extends Sprite\n {\n private var output_text:TextField;\n\n private function puts(s:String):void\n {\n output_text.appendText(s + \"\\n\");\n }\n\n public function swfcat()\n {\n output_text = new TextField();\n output_text.width = 400;\n output_text.height = 300;\n output_text.background = true;\n output_text.backgroundColor = 0x001f0f;\n output_text.textColor = 0x44CC44;\n addChild(output_text);\n }\n }\n}\n","subject":"Add a simple terminal-like output.","message":"Add a simple terminal-like output.\n","lang":"ActionScript","license":"mit","repos":"glamrock\/flashproxy,infinity0\/flashproxy,glamrock\/flashproxy,arlolra\/flashproxy,arlolra\/flashproxy,arlolra\/flashproxy,infinity0\/flashproxy,infinity0\/flashproxy,glamrock\/flashproxy,infinity0\/flashproxy,infinity0\/flashproxy,arlolra\/flashproxy,arlolra\/flashproxy,arlolra\/flashproxy,glamrock\/flashproxy,glamrock\/flashproxy,arlolra\/flashproxy,infinity0\/flashproxy,glamrock\/flashproxy"} {"commit":"d309f0539165ce6a1603728fa49753daa0f63d3d","old_file":"flash\/org\/windmill\/TestCase.as","new_file":"flash\/org\/windmill\/TestCase.as","old_contents":"","new_contents":"\/*\nCopyright 2009, Matthew Eernisse (mde@fleegix.org) and Slide, Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*\/\n\npackage org.windmill {\n import flash.display.Sprite;\n import flash.display.Stage;\n import org.windmill.WMAssert;\n public class TestCase extends Sprite {\n public var asserts:* = WMAssert; \n \/\/ Get a reference to the Stage in the base class\n \/\/ before the tests actually load so tests can all\n \/\/ reference it\n private var fakeStage:Stage = Windmill.getStage();\n override public function get stage():Stage {\n return fakeStage;\n }\n }\n}\n\n","subject":"Test case base class -- all AS test classes extend this.","message":"Test case base class -- all AS test classes extend this.\n","lang":"ActionScript","license":"apache-2.0","repos":"windmill\/windmill,windmill\/windmill,windmill\/windmill,windmill\/windmill,windmill\/windmill,windmill\/windmill"} {"commit":"0e3d427edcef3904f1f46bd7e53c6b163e985771","old_file":"unittests\/TestEquivalence.as","new_file":"unittests\/TestEquivalence.as","old_contents":"","new_contents":"package unittests\r\n{\r\n\tpublic class TestEquivalence\r\n\t{\t\t\r\n\t\t[Before]\r\n\t\tpublic function setUp():void\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t[After]\r\n\t\tpublic function tearDown():void\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t[BeforeClass]\r\n\t\tpublic static function setUpBeforeClass():void\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t[AfterClass]\r\n\t\tpublic static function tearDownAfterClass():void\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n}","subject":"Add stub class for Equivalence class testing","message":"Add stub class for Equivalence class testing\n","lang":"ActionScript","license":"agpl-3.0","repos":"mbjornas3\/AGORA,MichaelHoffmann\/AGORA,mbjornas3\/AGORA,MichaelHoffmann\/AGORA,MichaelHoffmann\/AGORA"} {"commit":"40df1f5dc2d021e9562c0d4a9e594b4ac00c29c4","old_file":"src\/aerys\/minko\/render\/effect\/vertex\/VertexUVShader.as","new_file":"src\/aerys\/minko\/render\/effect\/vertex\/VertexUVShader.as","old_contents":"","new_contents":"package aerys.minko.render.effect.vertex\n{\n\timport aerys.minko.render.RenderTarget;\n\timport aerys.minko.render.effect.basic.BasicShader;\n\timport aerys.minko.render.shader.SFloat;\n\timport aerys.minko.type.stream.format.VertexComponent;\n\t\n\tpublic class VertexUVShader extends BasicShader\n\t{\n\t\t\n\t\tpublic function VertexUVShader(target \t: RenderTarget \t= null, \n\t\t\t\t\t\t\t\t\t priority\t: Number\t\t= 0)\n\t\t{\n\t\t\tsuper(target, priority);\n\t\t}\n\t\t\n\t\toverride protected function getPixelColor() : SFloat\n\t\t{\n\t\t\tvar uv \t\t\t\t: SFloat = getVertexAttribute(VertexComponent.UV);\n\t\t\tvar interpolatedUv \t: SFloat = normalize(interpolate(uv));\n\t\t\t\n\t\t\t\n\t\t\treturn float4(interpolatedUv.x, interpolatedUv.y, 0, 1);\n\t\t}\n\t\t\n\t}\n}","subject":"Add VertexUvShader (vertex streams must have an uv component)","message":"Add VertexUvShader (vertex streams must have an uv component)\n","lang":"ActionScript","license":"mit","repos":"aerys\/minko-as3"} {"commit":"7d076cb1674217d0b171d19ce9839e93512dc9d9","old_file":"dolly-framework\/src\/test\/actionscript\/dolly\/utils\/PropertyUtilTests.as","new_file":"dolly-framework\/src\/test\/actionscript\/dolly\/utils\/PropertyUtilTests.as","old_contents":"","new_contents":"package dolly.utils {\nimport dolly.core.dolly_internal;\n\nimport mx.collections.ArrayCollection;\nimport mx.collections.ArrayList;\n\nuse namespace dolly_internal;\n\npublic class PropertyUtilTests {\n\n\tprivate var sourceObj:Object;\n\tprivate var targetObj:Object;\n\n\t[Before]\n\tpublic function before():void {\n\t\tsourceObj = {};\n\t\tsourceObj.array = [0, 1, 2, 3, 4];\n\t\tsourceObj.arrayList = new ArrayList([0, 1, 2, 3, 4]);\n\t\tsourceObj.arrayCollection = new ArrayCollection([0, 1, 2, 3, 4]);\n\n\t\ttargetObj = {};\n\t}\n\n\t[After]\n\tpublic function after():void {\n\t\tsourceObj = targetObj = null;\n\t}\n}\n}\n","subject":"Add empty test for PropertyUtil class.","message":"Add empty test for PropertyUtil class.\n","lang":"ActionScript","license":"mit","repos":"Yarovoy\/dolly"} {"commit":"44897a82d0a0921479f56c7ba29ad1b0b0dfbb9b","old_file":"test\/acceptance\/as3\/Vector\/specializedAtRuntime.as","new_file":"test\/acceptance\/as3\/Vector\/specializedAtRuntime.as","old_contents":"","new_contents":"\/* ***** BEGIN LICENSE BLOCK *****\n * Version: MPL 1.1\/GPL 2.0\/LGPL 2.1\n *\n * The contents of this file are subject to the Mozilla Public License Version\n * 1.1 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n * http:\/\/www.mozilla.org\/MPL\/\n *\n * Software distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\n * for the specific language governing rights and limitations under the\n * License.\n *\n * The Original Code is [Open Source Virtual Machine.].\n *\n * The Initial Developer of the Original Code is\n * Adobe System Incorporated.\n * Portions created by the Initial Developer are Copyright (C) 2007-2008\n * the Initial Developer. All Rights Reserved.\n *\n * Contributor(s):\n * Adobe AS3 Team\n *\n * Alternatively, the contents of this file may be used under the terms of\n * either the GNU General Public License Version 2 or later (the \"GPL\"), or\n * the GNU Lesser General Public License Version 2.1 or later (the \"LGPL\"),\n * in which case the provisions of the GPL or the LGPL are applicable instead\n * of those above. If you wish to allow use of your version of this file only\n * under the terms of either the GPL or the LGPL, and not to allow others to\n * use your version of this file under the terms of the MPL, indicate your\n * decision by deleting the provisions above and replace them with the notice\n * and other provisions required by the GPL or the LGPL. If you do not delete\n * the provisions above, a recipient may use your version of this file under\n * the terms of any one of the MPL, the GPL or the LGPL.\n *\n * ***** END LICENSE BLOCK ***** *\/\n\/**\n Description:\n Runtime specialization\n Specialization of the Vector type can be done at runtime \n instead of at compile time.\n*\/\n\nfunction getVector() { return Vector; }\n\nvar CODE = 1007; \/\/ Instantiation attempted on a non-constructor.\n\nstartTest();\nvar TITLE=\"Runtime specialization\";\nwriteHeaderToLog(TITLE);\n\nvar x = getVector().;\ny = new x();\n\ny.push(1);\ny.push(2);\ny.push(3);\n\nAddTestCase( \"Vector constructed via runtime specialization\",\n 3,\n y.length); \n\nAddTestCase( \"Vector constructed via runtime specialization\",\n 2,\n y[1]);\n\n\nvar neg_result = \"Failed to catch invalid construct\";\n\ntry {\n unspecialized = getVector();\n var z = new unspecialized();\n} catch ( ex )\n{\n neg_result = String(ex);\n}\n\nAddTestCase ( \"Invalid use of unspecialized type in constructor\", TYPEERROR + CODE, typeError(neg_result));\n\n\ntest();\n","subject":"Fix 525654 - added test for runtime Vector specialization","message":"Fix 525654 - added test for runtime Vector specialization\n","lang":"ActionScript","license":"mpl-2.0","repos":"pfgenyun\/tamarin-redux,pnkfelix\/tamarin-redux,pfgenyun\/tamarin-redux,pfgenyun\/tamarin-redux,pfgenyun\/tamarin-redux,pfgenyun\/tamarin-redux,pnkfelix\/tamarin-redux,pnkfelix\/tamarin-redux,pnkfelix\/tamarin-redux,pfgenyun\/tamarin-redux,pnkfelix\/tamarin-redux,pfgenyun\/tamarin-redux,pnkfelix\/tamarin-redux,pnkfelix\/tamarin-redux,pfgenyun\/tamarin-redux"} {"commit":"7f04749ad7a0d346562dbdc851a30df5fb71d8e5","old_file":"dolly-framework\/src\/test\/actionscript\/dolly\/CloningOfPropertyLevelCopyableCloneableClassTest.as","new_file":"dolly-framework\/src\/test\/actionscript\/dolly\/CloningOfPropertyLevelCopyableCloneableClassTest.as","old_contents":"","new_contents":"package dolly {\n\nimport dolly.core.dolly_internal;\nimport dolly.data.PropertyLevelCopyableCloneableClass;\n\nimport org.as3commons.reflect.Type;\n\nuse namespace dolly_internal;\n\npublic class CloningOfPropertyLevelCopyableCloneableClassTest {\n\n\tprivate var propertyLevelCopyableCloneable:PropertyLevelCopyableCloneableClass;\n\tprivate var propertyLevelCopyableCloneableType:Type;\n\n\t[Before]\n\tpublic function before():void {\n\t\tpropertyLevelCopyableCloneable = new PropertyLevelCopyableCloneableClass();\n\t\tpropertyLevelCopyableCloneable.property1 = \"property1 value\";\n\t\tpropertyLevelCopyableCloneable.writableField1 = \"writableField1 value\";\n\t\tpropertyLevelCopyableCloneableType = Type.forInstance(propertyLevelCopyableCloneable);\n\t}\n\n\t[After]\n\tpublic function after():void {\n\t\tpropertyLevelCopyableCloneable = null;\n\t\tpropertyLevelCopyableCloneableType = null;\n\t}\n\n\t\/**\n\t * Cloner.findingAllWritableFieldsForType()<\/code> method will throw CloningError<\/code> in this case\n\t * because PropertyLevelCopyableCloneableClass<\/code> class is not cloneable indeed.\n\t *\/\n\t[Test(expects=\"dolly.core.errors.CloningError\")]\n\tpublic function findingAllWritableFieldsForType():void {\n\t\tCloner.findAllWritableFieldsForType(propertyLevelCopyableCloneableType);\n\t}\n\n\t\/**\n\t * Cloner.clone()<\/code> method will throw CloningError<\/code> in this case\n\t * because PropertyLevelCopyableCloneableClass<\/code> class is not cloneable indeed.\n\t *\/\n\t[Test(expects=\"dolly.core.errors.CloningError\")]\n\tpublic function cloningByCloner():void {\n\t\tCloner.clone(propertyLevelCopyableCloneable);\n\t}\n\n\t\/**\n\t * Method clone()<\/code> will throw CloningError<\/code> in this case\n\t * because PropertyLevelCopyableCloneableClass<\/code> class is not cloneable indeed.\n\t *\/\n\t[Test(expects=\"dolly.core.errors.CloningError\")]\n\tpublic function cloningByCloneFunction():void {\n\t\tclone(propertyLevelCopyableCloneable);\n\t}\n}\n}\n","subject":"Test class for cloning of PropertyLevelCopyableCloneableClass.","message":"Test class for cloning of PropertyLevelCopyableCloneableClass.\n","lang":"ActionScript","license":"mit","repos":"Yarovoy\/dolly"}