conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add colors to Flash test to ease debugging.\n" }, { "from": "human", "value": "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" }, ...
actionscript
chosen
[ { "from": "system", "value": "Handle null in validation elem iteration\n" }, { "from": "human", "value": "/*\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 al...
actionscript
chosen
[ { "from": "system", "value": "Load sound directly on constructor\n" }, { "from": "human", "value": "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 v...
actionscript
chosen
[ { "from": "system", "value": "Set test to ignore while stack trace is still under investigation\n" }, { "from": "human", "value": "package org.flexunit.experimental.theories.internals.cases\r\n{\r\n\timport org.flexunit.Assert;\r\n\timport org.flexunit.experimental.theories.internals.Parameteriz...
actionscript
chosen
[ { "from": "system", "value": "Delete is now a non-core function\n\ngit-svn-id: f772d44cbf86d9968f12179c1556189f5afcea6e@658 e0ac87d7-b42b-0410-9034-8248a05cb448\n" }, { "from": "human", "value": "import Drawable;\r\nimport Lobe;\r\nimport Core;\r\n\r\nclass Brain{\r\n static var brain = new A...
actionscript
chosen
[ { "from": "human", "value": "Add a roadmap (of sorts)\n" }, { "from": "gpt", "value": "// [ ] 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\nuin...
actionscript
chosen
[ { "from": "system", "value": "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 5...
actionscript
chosen
[ { "from": "system", "value": "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" }, { "from": "human", "value": "package com.threerings.flex {\n\nimport mx.containers....
actionscript
chosen
[ { "from": "system", "value": "Fix issue where check for final slash was comparing zero-based index with length\n" }, { "from": "human", "value": "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:Strin...
actionscript
chosen
[ { "from": "system", "value": "Return true if we succeeded.\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4462 542714f4-19e9-0310-aa3c-eee0fc999fb1\n" }, { "from": "human", "value": "package com.threerings.util {\n\nimport flash.net.URLRequest;\n//import flash.net.navigateToURL; // fu...
actionscript
chosen
[ { "from": "system", "value": "Put MX dependencies in skin\n\ngit-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4281 3e7533ad-8678-4d30-8e38-00a379d3f0d0\n" }, { "from": "human", "value": "package laml.display {\n\timport flash.display.DisplayObject;\n\timport flash.display.Sprite;\n\t\n\tpubl...
actionscript
chosen
[ { "from": "system", "value": "Order vairable added todecide order of association\n\n\nSVN-Revision: 9306\n" }, { "from": "human", "value": "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:Strin...
actionscript
chosen
[ { "from": "system", "value": "Put [SWF] tag in test runner app.\n" }, { "from": "human", "value": "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 ...
actionscript
chosen
[ { "from": "system", "value": "Implement getPayload() method to extract SPS/PPS bytes\n" }, { "from": "human", "value": "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 {\...
actionscript
chosen
[ { "from": "system", "value": "Use `colorize` in readline test.\n" }, { "from": "human", "value": "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...
actionscript
chosen
[ { "from": "system", "value": "Return resource name instead of null if not found" }, { "from": "human", "value": "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 fun...
actionscript
chosen
[ { "from": "system", "value": "Fix stupid mistake with metadata names.\n" }, { "from": "human", "value": "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...
actionscript
chosen
[ { "from": "system", "value": "Add URI tests to the asunit test suite\n" }, { "from": "human", "value": "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 }\...
actionscript
chosen
[ { "from": "system", "value": "Store url & add getUrl() getter\n" }, { "from": "human", "value": "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.<ImpetusCh...
actionscript
chosen
[ { "from": "system", "value": "Fix call super test case.\n" }, { "from": "human", "value": "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 ...
actionscript
chosen
[ { "from": "system", "value": "Set currentInstance on prepare, not on instantiation time.\n" }, { "from": "human", "value": "package flails.mxml {\n import com.asfusion.mate.actions.AbstractServiceInvoker;\n import com.asfusion.mate.actionLists.IScope;\n import com.asfusion.mate.actions.IActio...
actionscript
chosen
[ { "from": "system", "value": "Fix unexpected behavior with nested tabs" }, { "from": "human", "value": "/**\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\npa...
actionscript
chosen
[ { "from": "system", "value": "Implement IMXMLObject. Some defaults and checks.\n" }, { "from": "human", "value": "/**\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.reques...
actionscript
chosen
[ { "from": "system", "value": "Test for calculation of cloneable fields in CompositeCloneableClass.\n" }, { "from": "human", "value": "package dolly {\n\nimport dolly.core.dolly_internal;\nimport dolly.data.CompositeCloneableClass;\n\nimport org.as3commons.reflect.Type;\n\nuse namespace dolly_int...
actionscript
chosen
[ { "from": "system", "value": "Test for cloning array in CompositeCloneableClass.\n" }, { "from": "human", "value": "package dolly {\nimport dolly.core.dolly_internal;\nimport dolly.data.CompositeCloneableClass;\n\nimport org.as3commons.reflect.Field;\nimport org.as3commons.reflect.Type;\nimport ...
actionscript
chosen
[ { "from": "system", "value": "Fix for build issue around unknown error\n" }, { "from": "human", "value": "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:E...
actionscript
chosen
[ { "from": "system", "value": "Fix a bug that caused \"ChangeMedia\" to fail" }, { "from": "human", "value": "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...
actionscript
chosen
[ { "from": "system", "value": "Improve error handling of external content loading.\n" }, { "from": "human", "value": "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.Applicati...
actionscript
chosen
[ { "from": "system", "value": "Optimize uv shader for limit values\n" }, { "from": "human", "value": "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.BasicSh...
actionscript
chosen
[ { "from": "system", "value": "Change metadata tags to Copyable in test data class.\n" }, { "from": "human", "value": "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[Clo...
actionscript
chosen
[ { "from": "system", "value": "Remove custom LoaderContext creation code.\n" }, { "from": "human", "value": "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\...
actionscript
chosen
[ { "from": "system", "value": "Move the images by their offset\n" }, { "from": "human", "value": "//\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;...
actionscript
chosen
[ { "from": "system", "value": "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: b675b909355d5cf946977f44a8ec5a6ceb...
actionscript
chosen
[ { "from": "system", "value": "Fix bug preventing running processes recursively.\n" }, { "from": "human", "value": "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 p...
actionscript
chosen
[ { "from": "system", "value": "Add a level timer to the main procedure\n" }, { "from": "human", "value": "Scene@ newScene_;\nScene@ scene_;\nCamera@ camera_;\n\nvoid Start()\n{\n\tStartScene(\"Scenes/Level1.xml\");\n\tSubscribeToEvent(\"LevelComplete\", \"HandleLevelComplete\");\n}\n\nvoid Stop()...
actionscript
chosen
[ { "from": "system", "value": "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" }, { "from": "human", "value": "//\n// $Id$\n\npackage com.threerings.flash {...
actionscript
chosen
[ { "from": "system", "value": "Fix bug on getContext() null\n" }, { "from": "human", "value": "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.compon...
actionscript
chosen
[ { "from": "human", "value": "Add bead to draw solid background\n" }, { "from": "gpt", "value": "////////////////////////////////////////////////////////////////////////////////\n//\n// Licensed to the Apache Software Foundation (ASF) under one or more\n// contributor license agreements. See t...
actionscript
chosen
[ { "from": "human", "value": "Add template for writing SWF unit tests\n" }, { "from": "gpt", "value": "/* -*- 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 tem...
actionscript
chosen
[ { "from": "human", "value": "Create a dummy textbox class for the sole purpose of writing the XML loader\n" }, { "from": "gpt", "value": "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=\...
actionscript
chosen
[ { "from": "human", "value": "Add AngelScript Http Request demo sample.\n" }, { "from": "gpt", "value": "// 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@ httpRequ...
actionscript
chosen
[ { "from": "human", "value": "Add a simple terminal-like output.\n" }, { "from": "gpt", "value": "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:TextF...
actionscript
chosen
[ { "from": "human", "value": "Test case base class -- all AS test classes extend this.\n" }, { "from": "gpt", "value": "/*\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 i...
actionscript
chosen
[ { "from": "human", "value": "Add stub class for Equivalence class testing\n" }, { "from": "gpt", "value": "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 tearD...
actionscript
chosen
[ { "from": "human", "value": "Add VertexUvShader (vertex streams must have an uv component)\n" }, { "from": "gpt", "value": "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.s...
actionscript
chosen
[ { "from": "human", "value": "Add empty test for PropertyUtil class.\n" }, { "from": "gpt", "value": "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 PropertyUtilT...
actionscript
chosen
[ { "from": "human", "value": "Fix 525654 - added test for runtime Vector specialization\n" }, { "from": "gpt", "value": "/* ***** 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 \"Lice...
actionscript
chosen
[ { "from": "human", "value": "Test class for cloning of PropertyLevelCopyableCloneableClass.\n" }, { "from": "gpt", "value": "package dolly {\n\nimport dolly.core.dolly_internal;\nimport dolly.data.PropertyLevelCopyableCloneableClass;\n\nimport org.as3commons.reflect.Type;\n\nuse namespace dolly_...
actionscript
chosen