Dataset Viewer
Auto-converted to Parquet Duplicate
Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add colors to Flash test to ease debugging.
package { import stdio.Sprite [SWF(width=0, height=0)] public class flash_test extends Sprite { public function main(): void { test_body() } } }
package { import stdio.Sprite [SWF(width=100, height=100)] public class flash_test extends Sprite { public function flash_test(): void { graphics.beginFill(0xff0000) graphics.drawRect(10, 10, 80, 80) graphics.endFill() } public function main(): void { graphics.beginFill(0x000...
Load sound directly on constructor
package io.github.jwhile.impetus { import flash.media.Sound; import flash.media.SoundChannel; public class ImpetusSound { private var url:String; private var sound:Sound; private var channels:Vector.<SoundChannel>; public function ImpetusSound(url:String):void ...
package io.github.jwhile.impetus { import flash.media.Sound; import flash.media.SoundChannel; import flash.net.URLRequest; public class ImpetusSound { private var sound:Sound; private var channels:Vector.<SoundChannel>; public function ImpetusSound(url:String):void ...
Set test to ignore while stack trace is still under investigation
package org.flexunit.experimental.theories.internals.cases { import org.flexunit.Assert; import org.flexunit.experimental.theories.internals.ParameterizedAssertionError; public class ParameterizedAssertionErrorCase { //TODO: Ensure that these tests and this test case are being implemented correctly. //...
package org.flexunit.experimental.theories.internals.cases { import org.flexunit.Assert; import org.flexunit.experimental.theories.internals.ParameterizedAssertionError; public class ParameterizedAssertionErrorCase { //TODO: Ensure that these tests and this test case are being implemented correctly. //It is cu...
Delete is now a non-core function
import Drawable; import Lobe; import Core; class Brain{ static var brain = new Array(); var mSelectionManager:SelectionManager; static function makenewlobe(){ var newmov=(new Lobe(_root,_root.getNextHighestDepth())); var topleft = new Point(100,40); var botright = new Point(200,...
import Drawable; import Lobe; import Core; class Brain{ static var brain = new Array(); var mSelectionManager:SelectionManager; static function makenewlobe(){ var newmov=(new Lobe(_root,_root.getNextHighestDepth())); var topleft = new Point(100,40); var botright = new Point(200,...
Add a roadmap (of sorts)
// [ ] Variable declaration let name: type = expression; // [ ] Basic types (arrow) /* byte (8-bit, unsigned) bool (1-bit[*]) int8 int16 int32 int64 int128 uint8 uint16 uint32 uint64 uint128 intptr (size of a pointer, signed) uintptr (size of a pointer, unsigned) char (32-bit, unsigned) float16 float32 float64 f...
Clean up my comment, this is in a public API (and my comment wasn't helpful).
package com.threerings.flex { import mx.containers.HBox; import mx.controls.Label; import mx.controls.sliderClasses.Slider; import mx.events.SliderEvent; /** * A simple component that displays a label to the left of a slider. */ public class LabeledSlider extends HBox { /** The slider, all public and accessa...
package com.threerings.flex { import mx.containers.HBox; import mx.controls.Label; import mx.controls.sliderClasses.Slider; import mx.events.SliderEvent; /** * A simple component that displays a label to the left of a slider. */ public class LabeledSlider extends HBox { /** The actual slider. */ public v...
Return true if we succeeded.
package com.threerings.util { import flash.net.URLRequest; //import flash.net.navigateToURL; // function import public class NetUtil { /** * Convenience method to load a web page in the browser window without * having to worry about SecurityErrors in various conditions. */ public static functio...
package com.threerings.util { import flash.net.URLRequest; //import flash.net.navigateToURL; // function import public class NetUtil { /** * Convenience method to load a web page in the browser window without * having to worry about SecurityErrors in various conditions. * * @return true if the...
Order vairable added todecide order of association
package Components { [Bindable] public class Association { public var associatedNode:String; public var associatedLink:String; public var operatorIndex:int; public function Association(associatedNode:String,associatedLink:String,operatorIndex:int) { this.associatedLink = associatedLink; ...
package Components { [Bindable] public class Association { public var associatedNode:String; public var associatedLink:String; public var operatorIndex:int; public var order:int=0; public function Association(associatedNode:String,associatedLink:String,operatorIndex:int,order:int) { thi...
Put [SWF] tag in test runner app.
package org.osflash.signals { import asunit4.ui.MinimalRunnerUI; import org.osflash.signals.AllTests; public class AllTestsRunner extends MinimalRunnerUI { public function AllTestsRunner() { run(org.osflash.signals.AllTests); } } }
package org.osflash.signals { import asunit4.ui.MinimalRunnerUI; import org.osflash.signals.AllTests; [SWF(width='1000', height='800', backgroundColor='#333333', frameRate='31')] public class AllTestsRunner extends MinimalRunnerUI { public function AllTestsRunner() { run(org.osflash.signals.AllT...
Implement getPayload() method to extract SPS/PPS bytes
package com.axis.rtspclient { import flash.events.Event; import flash.external.ExternalInterface; import flash.utils.ByteArray; public class NALU extends Event { public static const NEW_NALU:String = "NEW_NALU"; private var data:ByteArray; public var ntype:uint; public var nri:uint; public...
package com.axis.rtspclient { import flash.events.Event; import flash.external.ExternalInterface; import flash.utils.ByteArray; public class NALU extends Event { public static const NEW_NALU:String = "NEW_NALU"; private var data:ByteArray; public var ntype:uint; public var nri:uint; public...
Use `colorize` in readline test.
package { import stdio.flash.Sprite import stdio.process import stdio.Interactive [SWF(width=0, height=0)] public class test_readline_flash extends Sprite implements Interactive { public function main(): void { process.prompt = "What’s your name? " process.gets(function (name: String): void {...
package { import stdio.colorize import stdio.flash.Sprite import stdio.process import stdio.Interactive [SWF(width=0, height=0)] public class test_readline_flash extends Sprite implements Interactive { public function main(): void { process.prompt = "What’s your name? " process.gets(functio...
Return resource name instead of null if not found
package org.openforis.collect.i18n { import mx.resources.ResourceManager; /** * @author Mino Togna * */ public class Message { public function Message() { } public static function get(resource:String, parameters:Array=null, bundle:String="messages"):String { return ResourceManager.get...
package org.openforis.collect.i18n { import mx.resources.ResourceManager; /** * @author Mino Togna * @author S. Ricci * */ public class Message { public function Message() { } public static function get(resource:String, parameters:Array=null, bundle:String="messages"):String { var ...
Add URI tests to the asunit test suite
package { import asunit.framework.TestSuite; public class Suite extends TestSuite { public function Suite() { super(); addTest(new PlayerTest("testPass")); } } }
package { import asunit.framework.TestSuite; public class Suite extends TestSuite { public function Suite() { super(); addTest(new PlayerTest("testPass")); addTest(new UriTest("test_isSafe")); } } }
Store url & add getUrl() getter
package { import flash.media.Sound; import flash.net.URLRequest; public class ImpetusSound { private var sound:Sound; private var channels:Vector.<ImpetusChannel>; public function ImpetusSound(url:String):void { this.sound = new Sound(); this.c...
package { import flash.media.Sound; import flash.net.URLRequest; public class ImpetusSound { private var url:String; private var sound:Sound; private var channels:Vector.<ImpetusChannel>; public function ImpetusSound(url:String):void { this.url = ur...
Set currentInstance on prepare, not on instantiation time.
package flails.mxml { import com.asfusion.mate.actions.AbstractServiceInvoker; import com.asfusion.mate.actionLists.IScope; import com.asfusion.mate.actions.IAction; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import flails.request.RequestPipe; import flails.resource.Resources; ...
package flails.mxml { import com.asfusion.mate.actions.AbstractServiceInvoker; import com.asfusion.mate.actionLists.IScope; import com.asfusion.mate.actions.IAction; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import flails.request.RequestPipe; import flails.resource.Resources; ...
Fix unexpected behavior with nested tabs
/** * Generated by Gas3 v2.3.0 (Granite Data Services). * * NOTE: this file is only generated if it does not exist. You may safely put * your custom code here. */ package org.openforis.collect.metamodel.proxy { import mx.collections.IList; import org.openforis.collect.util.CollectionUtil; [Bi...
/** * Generated by Gas3 v2.3.0 (Granite Data Services). * * NOTE: this file is only generated if it does not exist. You may safely put * your custom code here. */ package org.openforis.collect.metamodel.proxy { import mx.collections.IList; import org.openforis.collect.util.CollectionUtil; [Bi...
Put MX dependencies in skin
package laml.display { import flash.display.DisplayObject; import flash.display.Sprite; public class Skin extends Sprite implements ISkin { public function getBitmapByName(alias:String):DisplayObject { if(hasOwnProperty(alias)) { return new this[alias]() as DisplayObject; } return null; } } ...
package laml.display { import flash.display.DisplayObject; import flash.display.Sprite; import mx.core.BitmapAsset; import mx.core.FontAsset; import mx.core.IFlexAsset; import mx.core.IFlexDisplayObject; import mx.core.SpriteAsset; public class Skin extends Sprite implements ISkin { private var bitmapAss...
Implement IMXMLObject. Some defaults and checks.
/** * Copyright (c) 2009 Lance Carlson * See LICENSE for full license information. */ package flails.resource { import flails.request.RequestPipe; import flails.request.HTTPClient; import flails.request.ResourcePathBuilder; import flails.request.JSONFilter; import flash.utils.getQualifiedClassName; ...
/** * Copyright (c) 2009 Lance Carlson * See LICENSE for full license information. */ package flails.resource { import flails.request.RequestPipe; import flails.request.HTTPClient; import flails.request.ResourcePathBuilder; import flails.request.JSONFilter; import mx.core.IMXMLObject; public class Res...
Test for calculation of cloneable fields in CompositeCloneableClass.
package dolly { import dolly.core.dolly_internal; import dolly.data.CompositeCloneableClass; import org.as3commons.reflect.Type; use namespace dolly_internal; public class CloningOfCompositeCloneableClassTest { private var compositeCloneableClass:CompositeCloneableClass; private var compositeCloneableClassType:T...
package dolly { import dolly.core.dolly_internal; import dolly.data.CompositeCloneableClass; import org.as3commons.reflect.Field; import org.as3commons.reflect.Type; import org.flexunit.asserts.assertEquals; import org.flexunit.asserts.assertNotNull; use namespace dolly_internal; public class CloningOfCompositeClone...
Test for cloning array in CompositeCloneableClass.
package dolly { import dolly.core.dolly_internal; import dolly.data.CompositeCloneableClass; import org.as3commons.reflect.Field; import org.as3commons.reflect.Type; import org.flexunit.asserts.assertEquals; import org.flexunit.asserts.assertNotNull; use namespace dolly_internal; public class CloningOfCompositeClone...
package dolly { import dolly.core.dolly_internal; import dolly.data.CompositeCloneableClass; import org.as3commons.reflect.Field; import org.as3commons.reflect.Type; import org.flexunit.asserts.assertEquals; import org.flexunit.asserts.assertFalse; import org.flexunit.asserts.assertNotNull; import org.hamcrest.assertT...
Improve error handling of external content loading.
package goplayer { import flash.display.Loader import flash.events.Event import flash.events.IOErrorEvent import flash.net.URLRequest import flash.system.ApplicationDomain import flash.system.LoaderContext import flash.system.SecurityDomain public class FlashContentLoadAttempt { private const loa...
package goplayer { import flash.display.Loader import flash.events.Event import flash.events.IOErrorEvent import flash.net.URLRequest import flash.system.ApplicationDomain import flash.system.LoaderContext import flash.system.SecurityDomain public class FlashContentLoadAttempt { private const loa...
Optimize uv shader for limit values
package aerys.minko.render.effect.vertex { import aerys.minko.render.RenderTarget; import aerys.minko.render.effect.basic.BasicProperties; import aerys.minko.render.effect.basic.BasicShader; import aerys.minko.render.shader.SFloat; import aerys.minko.type.stream.format.VertexComponent; public class VertexUVShad...
package aerys.minko.render.effect.vertex { import aerys.minko.render.RenderTarget; import aerys.minko.render.effect.basic.BasicProperties; import aerys.minko.render.effect.basic.BasicShader; import aerys.minko.render.shader.SFloat; import aerys.minko.type.stream.format.VertexComponent; public class VertexUVShad...
Change metadata tags to Copyable in test data class.
package dolly { public class ClassWithSomeCopyableFields { public static var staticProperty1:String; [Cloneable] public static var staticProperty2:String; [Cloneable] public static var staticProperty3:String; private var _writableField:String; private var _readOnlyField:String = "read-only field value"; pu...
package dolly { public class ClassWithSomeCopyableFields { public static var staticProperty1:String; [Copyable] public static var staticProperty2:String; [Copyable] public static var staticProperty3:String; private var _writableField:String; private var _readOnlyField:String = "read-only field value"; publ...
Remove custom LoaderContext creation code.
package goplayer { import flash.display.Loader import flash.events.Event import flash.events.IOErrorEvent import flash.net.URLRequest import flash.system.ApplicationDomain import flash.system.LoaderContext import flash.system.SecurityDomain public class FlashContentLoadAttempt { private const loa...
package goplayer { import flash.display.Loader import flash.events.Event import flash.events.IOErrorEvent import flash.net.URLRequest import flash.system.ApplicationDomain import flash.system.LoaderContext import flash.system.SecurityDomain public class FlashContentLoadAttempt { private const loa...
Move the images by their offset
// // Flump - Copyright 2012 Three Rings Design package flump.export { import flash.display.DisplayObject; import flash.display.Sprite; import flash.geom.Point; import flash.geom.Rectangle; import flump.xfl.XflTexture; public class PackedTexture { public const holder :Sprite = new Sprite(); public var tex :...
// // Flump - Copyright 2012 Three Rings Design package flump.export { import flash.display.DisplayObject; import flash.display.Sprite; import flash.geom.Point; import flash.geom.Rectangle; import flump.xfl.XflTexture; public class PackedTexture { public const holder :Sprite = new Sprite(); public var tex :...
Fix bug preventing running processes recursively.
package stdio { import flash.display.* import flash.utils.getQualifiedClassName import flash.utils.setTimeout public class Sprite extends flash.display.Sprite { public function Sprite() { stage.scaleMode = StageScaleMode.NO_SCALE stage.align = StageAlign.TOP_LEFT // Let the subclass cons...
package stdio { import flash.display.* import flash.utils.getQualifiedClassName import flash.utils.setTimeout public class Sprite extends flash.display.Sprite { public function Sprite() { if (stage) { stage.scaleMode = StageScaleMode.NO_SCALE stage.align = StageAlign.TOP_LEFT } ...
Add a level timer to the main procedure
Scene@ newScene_; Scene@ scene_; Camera@ camera_; void Start() { StartScene("Scenes/Level1.xml"); SubscribeToEvent("LevelComplete", "HandleLevelComplete"); } void Stop() { } void HandleLevelComplete(StringHash type, VariantMap& data) { log.Debug("Level Complete. I should be loading "+data["NextLevel"].GetString()...
Scene@ newScene_; Scene@ scene_; Camera@ camera_; Timer timer_; void Start() { StartScene("Scenes/Level1.xml"); SubscribeToEvent("LevelComplete", "HandleLevelComplete"); } void Stop() { } void HandleLevelComplete(StringHash type, VariantMap& data) { log.Debug("Level Complete. I should be loading "+data["NextLevel...
Allow subclasses to choose not to call handleFrame() when ADDED_TO_STAGE is received.
// // $Id$ package com.threerings.flash { import flash.display.Sprite; import flash.events.Event; /** * Convenience superclass to use for sprites that need to update every frame. * (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they * will prevent an object from being garbage c...
// // $Id$ package com.threerings.flash { import flash.display.Sprite; import flash.events.Event; /** * Convenience superclass to use for sprites that need to update every frame. * (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they * will prevent an object from being garbage c...
Add bead to draw solid background
//////////////////////////////////////////////////////////////////////////////// // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF license...
Add template for writing SWF unit tests
/* -*- Mode: java; indent-tabs-mode: nil -*- */ /* Compiled with: java -jar utils/asc.jar -import playerglobal.abc -swf Template,100,100,10 test/swfs/test_TemplateTest.as This template is for writing test SWFs using pure AS3. It allows for testing UI events, screen and program state using the Shumway test ...
Create a dummy textbox class for the sole purpose of writing the XML loader
package Classes { public class Textbox { public var contents:String; public function Textbox() { contents=""; } public function Textbox(text) { contents=text; } public setContents(text) { contents=text; } } }
Add AngelScript Http Request demo sample.
// Http request example. // This example demonstrates: // - How to use Http request API #include "Scripts/Utilities/Sample.as" String message; Text@ text; HttpRequest@ httpRequest; void Start() { // Execute the common startup for samples SampleStart(); // Create the user interface CreateUI(); ...
Add a simple terminal-like output.
package { import flash.display.Sprite; import flash.text.TextField; import flash.net.XMLSocket; public class swfcat extends Sprite { private var output_text:TextField; private function puts(s:String):void { output_text.appendText(s + "\n"); } pu...
Test case base class -- all AS test classes extend this.
/* Copyright 2009, Matthew Eernisse (mde@fleegix.org) and Slide, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
Add stub class for Equivalence class testing
package unittests { public class TestEquivalence { [Before] public function setUp():void { } [After] public function tearDown():void { } [BeforeClass] public static function setUpBeforeClass():void { } [AfterClass] public static function tearDownAfterClass():...
Add empty test for PropertyUtil class.
package dolly.utils { import dolly.core.dolly_internal; import mx.collections.ArrayCollection; import mx.collections.ArrayList; use namespace dolly_internal; public class PropertyUtilTests { private var sourceObj:Object; private var targetObj:Object; [Before] public function before():void { sourceObj = {}; ...
Fix 525654 - added test for runtime Vector specialization
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
Test class for cloning of PropertyLevelCopyableCloneableClass.
package dolly { import dolly.core.dolly_internal; import dolly.data.PropertyLevelCopyableCloneableClass; import org.as3commons.reflect.Type; use namespace dolly_internal; public class CloningOfPropertyLevelCopyableCloneableClassTest { private var propertyLevelCopyableCloneable:PropertyLevelCopyableCloneableClass;...
Change the Event type to a limited type
----------------------------------------------------------------------- -- util-events -- Events -- Copyright (C) 2001, 2002, 2003, 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file...
----------------------------------------------------------------------- -- util-events -- Events -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
Update to use the new command implementation
----------------------------------------------------------------------- -- gen-commands-info -- Collect and give information about the project -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
----------------------------------------------------------------------- -- gen-commands-info -- Collect and give information about the project -- Copyright (C) 2011, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
Update to use the new command implementation
----------------------------------------------------------------------- -- gen-commands-docs -- Extract and generate documentation for the project -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
----------------------------------------------------------------------- -- gen-commands-docs -- Extract and generate documentation for the project -- Copyright (C) 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"...
Add Name parameter to the Help procedure
----------------------------------------------------------------------- -- gen-commands-page -- Page creation command for dynamo -- Copyright (C) 2011, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
----------------------------------------------------------------------- -- gen-commands-page -- Page creation command for dynamo -- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
Add unit tests for the questionVote bean
----------------------------------------------------------------------- -- awa-questions-services-tests -- Unit tests for question service -- Copyright (C) 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
----------------------------------------------------------------------- -- awa-questions-services-tests -- Unit tests for question service -- Copyright (C) 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
Update to use the new command implementation
----------------------------------------------------------------------- -- gen-commands-layout -- Layout creation command for dynamo -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
----------------------------------------------------------------------- -- gen-commands-layout -- Layout creation command for dynamo -- Copyright (C) 2011, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
Use the MAT.Readers.Streams package for the file reader implementation
----------------------------------------------------------------------- -- mat-readers-files -- Reader for files -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except ...
----------------------------------------------------------------------- -- mat-readers-files -- Reader for files -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except ...
Declare the Test_Set_Connection_Error test procedure
----------------------------------------------------------------------- -- ado-drivers-tests -- Unit tests for database drivers -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
----------------------------------------------------------------------- -- ado-drivers-tests -- Unit tests for database drivers -- Copyright (C) 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
Change Help command to accept in out command
----------------------------------------------------------------------- -- druss-commands-status -- Druss status commands -- Copyright (C) 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
----------------------------------------------------------------------- -- druss-commands-status -- Druss status commands -- Copyright (C) 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
Add the data buffer in the Stream_Reader_Type type
----------------------------------------------------------------------- -- mat-readers-streams -- Reader for streams -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
----------------------------------------------------------------------- -- mat-readers-streams -- Reader for streams -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
Call the Finish procedure after executing the testsuite Finish will destroy the AWA application that was allocated dynamically
----------------------------------------------------------------------- -- AWA - Unit tests -- Copyright (C) 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
----------------------------------------------------------------------- -- AWA - Unit tests -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in ...
Add the new unit tests
----------------------------------------------------------------------- -- mat-testsuite - MAT Testsuite -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compl...
----------------------------------------------------------------------- -- mat-testsuite - MAT Testsuite -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compl...
Declare the new Test_Null_Locale procedure
----------------------------------------------------------------------- -- locales.tests -- Unit tests for Locales -- Copyright (C) 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
----------------------------------------------------------------------- -- util-locales-tests -- Unit tests for Locales -- Copyright (C) 2009, 2010, 2011, 2022 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
Upgrade version 1.21 => 1.22
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package Definitions is pragma Pure; synth_version_major : constant String := "1"; synth_version_minor : constant String := "21"; copyright_years : constant String := "2015-2016"; host_localbase...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package Definitions is pragma Pure; synth_version_major : constant String := "1"; synth_version_minor : constant String := "22"; copyright_years : constant String := "2015-2016"; host_localbase...
Declare the Test_List_Tables procedure to test the 'list -t' command
----------------------------------------------------------------------- -- awa-commands-tests -- Test the AWA.Commands -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
----------------------------------------------------------------------- -- awa-commands-tests -- Test the AWA.Commands -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
Add the new unit tests
----------------------------------------------------------------------- -- Security testsuite - Ada Security Test suite -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
----------------------------------------------------------------------- -- Security testsuite - Ada Security Test suite -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
Add the new unit tests
----------------------------------------------------------------------- -- mat-testsuite - MAT Testsuite -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compl...
----------------------------------------------------------------------- -- mat-testsuite - MAT Testsuite -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compl...
Fix running the testsuite with AUnit: create the 'regtests/result' directory if it does not exist
----------------------------------------------------------------------- -- Util -- Utilities -- Copyright (C) 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance ...
----------------------------------------------------------------------- -- Util -- Utilities -- Copyright (C) 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance ...
Add new unit tests to check the Permissions.Definition package
----------------------------------------------------------------------- -- Security-permissions-tests - Unit tests for Security.Permissions -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
----------------------------------------------------------------------- -- Security-permissions-tests - Unit tests for Security.Permissions -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
Add the Ada beans in the workspace documentation
----------------------------------------------------------------------- -- awa-workspaces -- Module workspaces -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
----------------------------------------------------------------------- -- awa-workspaces -- Module workspaces -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
Remove the declaration of Usage procedure
----------------------------------------------------------------------- -- gen-commands -- Commands for dynamo -- Copyright (C) 2011, 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fi...
----------------------------------------------------------------------- -- gen-commands -- Commands for dynamo -- Copyright (C) 2011, 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fi...
Change the Argument_List to an interface with a Get_Count and Get_Argument operation
----------------------------------------------------------------------- -- util-commands -- Support to make command line tools -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
----------------------------------------------------------------------- -- util-commands -- Support to make command line tools -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
Add the Test_Create_Wiki_Content unit test
----------------------------------------------------------------------- -- awa-wikis-modules-tests -- Unit tests for wikis service -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use...
----------------------------------------------------------------------- -- awa-wikis-modules-tests -- Unit tests for wikis service -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use...
Fix the unit test to use AWA.Tests.Test for the correct test setup
----------------------------------------------------------------------- -- awa-changelogs-tests -- Tests for changelogs -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ...
----------------------------------------------------------------------- -- awa-changelogs-tests -- Tests for changelogs -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ...
Fix style warnings: add missing overriding and update and then/or else conditions
----------------------------------------------------------------------- -- awa-sysadmin -- -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with th...
----------------------------------------------------------------------- -- awa-sysadmin -- sysadmin module -- Copyright (C) 2019, 2022 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except ...
Use the Is_Test_Enabled function to ignore or take into account the test when it is added in the testsuite.
----------------------------------------------------------------------- -- AUnit utils - Helper for writing unit tests -- Copyright (C) 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use...
----------------------------------------------------------------------- -- AUnit utils - Helper for writing unit tests -- Copyright (C) 2009, 2010, 2011, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
Add Name parameter to the Help procedure
----------------------------------------------------------------------- -- gen-commands-propset -- Set a property on dynamo project -- Copyright (C) 2011, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
----------------------------------------------------------------------- -- gen-commands-propset -- Set a property on dynamo project -- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
Declare the UString subtype to simplify the implementation and use of Unbounded_String
----------------------------------------------------------------------- -- Gen -- Code Generator -- Copyright (C) 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in c...
----------------------------------------------------------------------- -- gen -- Code Generator -- Copyright (C) 2009, 2010, 2011, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file excep...
Declare the Location function to format a file,line,function code location
----------------------------------------------------------------------- -- mat-formats - Format various types for the console or GUI interface -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
----------------------------------------------------------------------- -- mat-formats - Format various types for the console or GUI interface -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
Implement the Size function to format sizes
----------------------------------------------------------------------- -- mat-formats - Format various types for the console or GUI interface -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
----------------------------------------------------------------------- -- mat-formats - Format various types for the console or GUI interface -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
Use Util.Log.Loggers.Initialize to configure the loggers
----------------------------------------------------------------------- -- mat-types -- Global types -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complianc...
----------------------------------------------------------------------- -- mat-types -- Global types -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complianc...
Use the Message_Type and MAT.Events.Probes.Probe_Manager_Type types
----------------------------------------------------------------------- -- mat-readers-streams -- Reader for streams -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
----------------------------------------------------------------------- -- mat-readers-streams -- Reader for streams -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
Fix applied for Linux resource usage
-- t0026.adb - Sat Jan 11 23:18:41 2014 -- -- (c) Warren W. Gay VE3WWG ve3wwg@gmail.com -- -- Protected under the following license: -- GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 with Ada.Text_IO; with Posix; use Posix; procedure T0026 is use Ada.Text_IO; Child : pid_t := -1; Res...
-- t0026.adb - Sat Jan 11 23:18:41 2014 -- -- (c) Warren W. Gay VE3WWG ve3wwg@gmail.com -- -- Protected under the following license: -- GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 with Ada.Text_IO; with Posix; use Posix; procedure T0026 is use Ada.Text_IO; Child : pid_t := -1; Res...
Add new unit tests to check the Permissions.Definition package
----------------------------------------------------------------------- -- Security-permissions-tests - Unit tests for Security.Permissions -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
----------------------------------------------------------------------- -- Security-permissions-tests - Unit tests for Security.Permissions -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
Add Name parameter to the Help procedure
----------------------------------------------------------------------- -- gen-commands-distrib -- Distrib command for dynamo -- Copyright (C) 2012, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
----------------------------------------------------------------------- -- gen-commands-distrib -- Distrib command for dynamo -- Copyright (C) 2012, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
Add Name parameter to the Help procedure
----------------------------------------------------------------------- -- gen-commands-project -- Project creation command for dynamo -- Copyright (C) 2011, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
----------------------------------------------------------------------- -- gen-commands-project -- Project creation command for dynamo -- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"...
Declare the Extract_Redirect function to help a unit test in extracting the result from a redirection
----------------------------------------------------------------------- -- Aawa-tests-helpers - Helpers for AWA unit tests -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fi...
----------------------------------------------------------------------- -- awa-tests-helpers - Helpers for AWA unit tests -- Copyright (C) 2011, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
Define Sha1 procedure with a Stream_Ref object
----------------------------------------------------------------------- -- babel-files-signatures -- Signatures calculation -- Copyright (C) 2014 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
----------------------------------------------------------------------- -- babel-files-signatures -- Signatures calculation -- Copyright (C) 2014, 2015, 2016 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
Add the new unit tests
----------------------------------------------------------------------- -- Security testsuite - Ada Security Test suite -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
----------------------------------------------------------------------- -- Security testsuite - Ada Security Test suite -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
Update the unit test declaration
----------------------------------------------------------------------- -- ADO Tests -- Database sequence generator -- Copyright (C) 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fil...
----------------------------------------------------------------------- -- ADO Tests -- Database sequence generator -- Copyright (C) 2009, 2010, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
Adjust this test for recent sroa improvements.
-- RUN: %llvmgcc -S -O2 %s -I%p/Support -o - | grep 105 | count 2 package body Element_Copy is function F return VariableSizedField is X : VariableSizedField; begin return X; end; end;
-- RUN: %llvmgcc -S -O2 %s -I%p/Support -o - | grep 6899714 package body Element_Copy is function F return VariableSizedField is X : VariableSizedField; begin return X; end; end;
Add the permission in the documentation
----------------------------------------------------------------------- -- security -- Security -- Copyright (C) 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in co...
----------------------------------------------------------------------- -- security -- Security -- Copyright (C) 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in co...
Change the Definition function into a Register procedure
----------------------------------------------------------------------- -- widgets-factory -- Factory for widget Components -- Copyright (C) 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this f...
----------------------------------------------------------------------- -- widgets-factory -- Factory for widget Components -- Copyright (C) 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
11