content
stringlengths
23
1.05M
with Interfaces; with Ada.Containers.Vectors; with Ada.Strings.Unbounded; with Blade; with Blade_Types; use Blade_Types; with GA_Maths; with Metric; use Metric; package Multivectors is type Geometry_Type is (Geometry_Not_Set, E1_Geometry, E2_Geometry, E3_Geometry, H3_Geometry, C3_Geometr...
with HAL; with HAL.UART; with RP.Device; with RP.GPIO; with RP.UART; with Tiny; procedure UART is -------------------------------------------------------------------------- -- Definitions of the UART ports to use for the communication. -----------------------------------------------------------------------...
package Employee is type Person_T is tagged private; -- create primitive subprograms to set/get attributes for Person_T and -- to print the contents of Person_T procedure Set_Attribute (O : in out Person_T; Value : String); function Get_Attribute (O : Person_T) return St...
package physics.Remote -- -- Provide a namespace for remote (DSA) physics classes. -- is pragma Pure; end physics.Remote;
package Forward_Declaration is X : constant Integer; procedure P; type T is private; private X : constant Integer := 5; type T is new Integer; end Forward_Declaration;
with Slice8_Pkg2; package Slice8_Pkg1 is new Slice8_Pkg2 (Line_Length => 132, Max_Lines => 1000);
with LIST_PACKAGE; with TEXT_IO; use TEXT_IO; procedure TOP_SORT is package INT_IO is new INTEGER_IO(INTEGER); use INT_IO; package LIST_PACK is new LIST_PACKAGE(NATURAL); use LIST_PACK; type PO_ITEM is record COUNT : INTEGER := 0; SUCC : LIST := EMPTY_LIST; end record; type P...
-- Copyright (c) 2015-2019 Marcel Schneider -- for details see License.txt with Lexer_Base; use Lexer_Base; with TokenValue; use TokenValue; with TokenReading; use TokenReading; package Lexer is type Object is new Lexer_Base.Object and TokenReading.Object with private; overriding function ReadToken (O : Objec...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising f...
package Records is type RecordA is record a: Character; b: Integer; end record; type RecordB is record a: String(1..100); end record; type RecordC is record a: String(0..100); end record; type RecordD is record a: String(10..100); end record; ...
private with SocketCAN; -- Requires GNAT... package ACO.Drivers.Socket is type CAN_Driver is new Driver with private; CAN_If_Name : constant String := "vcan0"; overriding procedure Receive_Message_Blocking (This : in out CAN_Driver; Msg : out ACO.Messages.Message); overriding pro...
----------------------------------------------------------------------- -- mat-symbols-targets - Symbol files management -- Copyright (C) 2014, 2015, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
package AOC.AOC_2019.Day06 is type Day_06 is new Day.Day with null record; overriding procedure Init (D : in out Day_06; Root : String); overriding function Part_1 (D : Day_06) return String; overriding function Part_2 (D : Day_06) return String; end AOC.AOC_2019.Day06;
with GA_Maths; with Multivectors; use Multivectors; package E3GA_Utilities is -- special exp() for 3D bivectors function exp (BV : Bivector) return Rotor; -- special log() for 3D rotors function log (R : Rotor) return Bivector; procedure Print_Rotor (Name : String; R : Rotor); -- procedure Print...
with Ada.Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A079 is use Ada.Text_IO; FT : File_Type; Last_Index : Natural; Passcode_Attempt_Str : String (1 .. 10); File_Name : constant String := "problems/079/p079_keylog.txt"; Passcode : String (1 .....
with STM32GD.Board; use STM32GD.Board; package body Tasks is protected body Protect is procedure Go is begin Active := True; end Go; entry Wait when Active is begin Active := False; end Wait; end Protect; task body T is begin loop ...
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Calendar; use Ada.Calendar; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; --with Ada.Strings.M...
-- @(#)File: properties_test.adb -- @(#)Last changed: Mar 18 2015 10:30:00 -- @(#)Purpose: Java properties file support -- @(#)Author: Marc Bejerano <marcbejerano@gmail.com> -- @(#)Copyright: Copyright (C) 2015, Marc Bejerano, All Rights Reserved -- @(#)Product: None -- @(#)...
with HAL; use HAL; with NXP.Device; use NXP.Device; with NXP_SVD; use NXP_SVD; with NXP_SVD.SYSCON; use NXP_SVD.SYSCON; with NXP_SVD.PINT; use NXP_SVD.PINT; with System; use System; package body NXP.Pint is PINT : aliased PINT_Peripheral with Import, Address =...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2004 Dmitriy Anisimkov -- -- ...
with Ada.Text_IO; use Ada.Text_IO; -- Demander confirmation par 'o' ou 'n'. procedure Demander_Confirmation is Reponse: Character; -- la réponse de l'utilisateur begin -- Demander la réponse Put("Confirmation (o/n) ? "); Get(Reponse); while Reponse /= 'o' and Reponse /= 'n' loop Put_Lin...
with Ada.Text_IO; with PrimeUtilities; package body Problem_26 is package IO renames Ada.Text_IO; procedure Solve is type one_thousand is new Integer range 1 .. 1_000; package Primes is new PrimeUtilities(one_thousand); type cycle is new Integer range 0 .. 999; type last_seen is new Intege...
with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.strings.Hash; -- Basic support for .env files in Ada everyone was waiting for package Aids.Env is Syntax_Error : exception; -- Indefinite hashed map can have unconstrained strinfs as keys or elements. ...
with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Exceptions; use Ada.Exceptions; with Ada.Strings.Fixed; with POSIX; with DOM.Core; with DOM.Core.Documents; with DOM.Readers; with Sax.Readers; with CGI; with Convert; with Pipe_Streams; use Pipe_...
function Order(Left, Right: Natural) return Boolean is ( (Img(Left) & Img(Right)) > (Img(Right) & Img(Left)) );
-- part of ParserTools, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package Text.Pool is type Reference is tagged private; Default_Size : constant Pool_Offset; -- must be called once before the string pool can be used. if called again, -- the strin...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with CommonText; with Spatial_Data.Well_Known_Binary; with Ada.Calendar.Formatting; with Ada.Strings.Wide_Unbounded; with Ada.Strings.Wide_Wide_Unbounded; with Ada.Strings.UTF_Encoding; package AdaBase.Results ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Mult; procedure Main is begin Ada.Text_IO.Put_Line(Mult.Mult(15, 15)'Image); end Main;
with Ahven.Framework; package Gilded_Rose_Tests is type Test is new Ahven.Framework.Test_Case with null record; procedure Initialize(T : in out Test); private procedure Test_Gilded_Rose; end Gilded_Rose_Tests;
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the t...
with Ada.Text_Io; use Ada.Text_Io; procedure Mod_Ints is begin for I in Integer range 0 .. 100 loop if I mod 3 = 0 then Put_Line(I'img); end if; end loop; end Mod_Ints;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with AFRL.CMASI.AutomationRequest; use AFRL.CMASI.AutomationRequest; with AFRL.CMASI.EntityConfiguration; use AFRL.CMASI.EntityConfiguration; with AFRL.CMASI.EntityState; use AFRL.CMASI.EntityState; with AFRL.CMASI.KeepInZone; use AFRL.CMASI...
package impact.d2.orbs.Joint.revolute -- -- -- is -- #ifndef B2_REVOLUTE_JOINT_H -- #define B2_REVOLUTE_JOINT_H -- -- #include <Box2D/Dynamics/Joints/b2Joint.h> -- -- /// Revolute joint definition. This requires defining an -- /// anchor point where the bodies are joined. The definition -- /// uses local anchor ...
----------------------------------------------------------------------- -- asf-servlets-faces-mappers -- Read faces specific configuration files -- Copyright (C) 2015, 2016, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2....
with System.Storage_Elements; with C.stdint; with C.string; package body GMP.Z is use type System.Storage_Elements.Storage_Element; use type System.Storage_Elements.Storage_Offset; use type C.signed_int; use type C.size_t; use type C.gmp.mp_size_t; procedure memcpy (dst, src : System.Address; n : C.size_t) wi...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- 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/L...
with C.wincon; with C.windef; package body System.Native_Text_IO.Terminal_Colors is use type C.windef.WORD; Initial_Attributes_Assigned : Boolean := False; Initial_Attributes : C.windef.WORD; -- implementation function RGB_To_Color (Item : Ada.Colors.RGB) return Color is subtype B is Ada.Colors...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- 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/L...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Unchecked_Conversion; with Interfaces.C; with GL.API; with GL.Enums; package body GL.Objects.Programs is procedure Attach (Subject : Program; Shader : Shaders.Shader) is begin API...
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, in...
private with Ada.Containers.Indefinite_Vectors; generic type Index_Type_With_Null is new Natural; package Set_Of_Names is subtype Index_Type is Index_Type_With_Null range 1 .. Index_Type_With_Null'Last; -- manage a set of strings; -- each string in the set is assigned a unique index of type Index_Ty...
------------------------------------------------------------------------------ -- -- -- Modular Hash Infrastructure -- -- -- -- -...
-- AOC 2020, Day 12 with Ada.Containers.Vectors; package Day is type Ferry is private; Instruction_Exception : exception; function load_file(filename : in String) return Ferry; function distance(f : in Ferry) return Natural; function waypoint_distance(f : in Ferry) return Natural; private type Action_T...
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "ONYPHE" type = "api" function start() set_rate_limit(1) end function check() local c local cfg = datasrc_config() ...
-- C74402A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with EU_Projects.Identifiers; package body EU_Projects.Event_Names is use Identifiers; function Event_Label (E : Event_Class) return String is begin case E is when Start_Time => return "start"; when End_Time => return "end"; ...
----------------------------------------------------------------------- -- druss-commands-wifi -- Wifi related commands -- Copyright (C) 2017, 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions...
-- { dg-do compile } -- { dg-options "-O" } package body Discr41 is function F return Rec is Ret : Rec (0); begin return Ret; end; end Discr41;
-- Copyright ©2022 Steve Merrony -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, dist...
-- SPDX-FileCopyrightText: 2019-2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Compilation_Unit_Vectors; with Program.Contexts; with Program.Error_Listeners; with Program.Source_Buffers; with Program.Symbols; with Pro...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- 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/L...
package Vect13 is -- Constrained array types are vectorizable type Sarray is array (1 .. 4) of Float; for Sarray'Alignment use 16; function "+" (X, Y : Sarray) return Sarray; procedure Add (X, Y : Sarray; R : out Sarray); end Vect13;
with Units; use Units; generic type Unit is new Unit_Type'Base; package Generic_Unit_Vectors with SPARK_Mode is type Unit_Comp_Type is new Unit'Base; --subtype Unit_X is Unit_Comp_Type with Dimension => (Symbol => 'm', Meter => 1, others => 0); -- subtype Unit_X_Type is Unit; -- subtype Unit_Y_Type is Un...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O G A . G U I . E L...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; package body GL.Raster is procedure Set_Pos (Position : Vector2) is begin API.Raster_Pos2 (Position); end Set_Pos; procedure Set_Pos (Position : Vector3) is begin ...
with Memory.Transform.Shift; use Memory.Transform.Shift; with Parser.Transform_Parser; separate (Parser) procedure Parse_Shift(parser : in out Parser_Type; result : out Memory_Pointer) is package Shift_Parser is new Transform_Parser( T_Type => Memory.Transform.Shift.Shift...
with lace.fast_Pool; package body impact.d3.solver_Constraint is package Pool is new lace.fast_Pool (Item, View, 20_000); function new_solver_Constraint return View is Self : constant View := Pool.new_Item; begin -- Self.all := null_Constraint; return Self; end new_solver_Con...
-- -- package Four_Body -- -- The package defines a data structure for the N-Body -- gravitational problem in two dimensions. -- -- N = 4, but can be set to anything. -- -- N-Body equation: -- Acceleration(Body_j) -- = SumOver(Body_k) { Mass(Body_k) * G * Delta_R / NORM(Delta_R)**3 } -- -- where Delta_R = (X(Body_...
-- { dg-do run } -- { dg-options "-gnatws" } with Discr32_Pkg; use Discr32_Pkg; procedure Discr32 is begin if R1'Object_Size /= 32 then raise Program_Error; end if; if R2'Object_Size /= R'Object_Size then raise Program_Error; end if; if R3'Object_Size /= 64 then raise Program_Error; end if;...
----------------------------------------------------------------------- -- wiki-nodes -- Wiki Document Internal representation -- Copyright (C) 2016, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
--------------------------------------------------------------------------- -- package Golub_SVD, Singular Value Decomposition -- Copyright (C) 2018 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the abo...
------------------------------------------------------------------------------- -- package body Disorderly.Random.Deviates, Floating point random deviates. -- Copyright (C) 1995-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is here...
----------------------------------------------------------------------- -- net-ntp -- NTP Network utilities -- 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 this file except in co...
----------------------------------------------------------------------- -- awa-tests-helpers - Helpers for AWA unit tests -- Copyright (C) 2011, 2017, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2021, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Representation_Clauses; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Attribute_Definiti...
with Ada.Characters.Handling; use Ada.Characters.Handling; package body Plugin_Management is function Get_Command (Message : IRC.Message) return Unbounded_String is Command : Unbounded_String; begin for I in 1 .. Length (Message.Content) loop if Element (Message.Content, I) /= ' ' then ...
with Ada.Assertions; use Ada.Assertions; with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers.Generic_Array_Sort; with Ada.Containers.Ordered_Sets; procedure Day24 is type Damage_Type is (Radiation, Fire, Cold, Slashing, Bludgeoning); type Army_Type is (Immune_System, Infection); package DS is new Ada....
-- { dg-do compile } package body asynch is function null_ctrl return t_ctrl is begin return (Ada.Finalization.Controlled with stuff => 0); end null_ctrl; procedure Proc (msg : String; c : t_ctrl := null_ctrl) is begin null; end Proc; task type tsk; task body tsk is begi...
with Libadalang.Common; use Libadalang.Common; package Assert_AST is procedure Assert_Equal_AST (Expected_String, Actual_String : String; Rule : Grammar_Rule; Message : String); end Assert_AST;
with aIDE.Palette.of_packages, aIDE.Editor, AdaM.Entity, AdaM.a_Package, AdaM.a_Pragma, AdaM.context_Line, AdaM.exception_Handler, AdaM.a_Type.a_subtype, -- AdaM.Source, gtk.Button; package aIDE.GUI is procedure open; procedure clear_Log; procedure log (th...
with Message.Reader; use Message.Reader; Package body Message.Login is procedure Read_Config (FileName : in String; UserName : out Unbounded_String; FullName : out Unbounded_String; Password : out Unbounded_String) is HeaderType...
--C37404A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimite...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstdebugutils_h is -- arg-macro: procedure GST_DEBUG_BIN_TO_DOT_FILE (bin, details, file_name) -- _gst_debug_bin_to_dot_file (bin, details, file_name) ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- 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/L...
pragma Ada_2012; with Interfaces.C; use type Interfaces.C.int; package body Crypto with SPARK_Mode, Refined_State => (key_store => null) is ------------- -- loadkey -- ------------- procedure loadkey (keyslot : in Key_Slot; the_key : in Key; result : out Boolean) is function c_loadkey ...
with mmi.Window.setup, mmi.Applet.gui_world, mmi.Forge, mmi.World, mmi.Camera, Physics; pragma Unreferenced (mmi.Window.setup); procedure launch_Pong_Tute -- -- Basic pong game. -- is use mmi.Applet, mmi.Applet.gui_world, mmi.Math; --- Applet -- the_Applet :...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with Ada.Text_IO, Ada.Integer_Text_IO; use Ada; procedure loop_test is begin for number in 0..10 loop Integer_Text_IO.put(number); Text_IO.New_Line; end loop; end loop_test;
-- MIT License -- -- Copyright (c) 2020 Max Reznik -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, mo...
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the t...
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- c...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ iterator over types -- -- |___/_|\_\_|_|____| by: Timm Felden ...
with Generic_Sensor; with Units; use Units; with Units.Vectors; use Units.Vectors; package Magnetometer with SPARK_Mode is subtype Magnetometer_Data_Type is Magnetic_Flux_Density_Vector; -- is record -- heading : Heading_Type; -- magnetic_vector : Magnetic_Flux_Density_Vector; -- orientat...
package body Console is procedure Transmit (Data : in Byte) is begin null; end Transmit; end Console;
pragma License (Unrestricted); package Ada.IO_Exceptions is pragma Pure; Status_Error : exception; Mode_Error : exception; Name_Error : exception; Use_Error : exception; Device_Error : exception; End_Error : exception; Data_Error : exception; Layout_Error : exception; end Ada.IO_Exceptions;...
M:main F:G$Delay1ms$0_0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$delay_ms$0_0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$EEPROM_read$0_0$0({2}DF,SC:U),C,0,0,0,0,0 F:G$EEPROM_write$0_0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$EEPROM_clean$0_0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$Data_change$0_0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$DATA_read1$0_0$0({2}DF,SV:S),C,0,0,0,...
with Ada.Text_IO; package body NNClassifier is function create(config: NeuralNet.Config; numberOfClasses: Positive) return DNN is result: DNN(config.size + 1); configWithLogits: NeuralNet.Config(config.size + 1); begin configWithLogits.act := config.act; configWithLogits.lr := config.lr; ...
pragma Ada_2012; package body Protypo.Api.Engine_Values.Array_Wrappers is type Wrapper_Access is access Array_Wrapper; ------------------ -- Make_Wrapper -- ------------------ function Make_Wrapper (Init : Array_Type) return Handlers.Ambivalent_Interface_Access is Res...
WITH P_StepHandler; USE P_StepHandler; WITH P_StructuralTypes; USE P_StructuralTypes; package P_StepHandler.KeyHandler is type KeyHandler is new T_StepHandler with private; type Ptr_KeyHandler is access KeyHandler; --- CONSTRUCTOR --- function Make (Self : in out KeyHandler) return KeyHandler; ...
package Rejuvenation.Navigation is function Is_Ancestor (Node1, Node2 : Ada_Node'Class) return Boolean; -- Is the first node an ancestor of the second node (but not the node itself)? function Is_Reflexive_Ancestor (Node1, Node2 : Ada_Node'Class) return Boolean; -- Is the first node an ancestor of the ...
-- Uses a giant array, so may need to set stacksize large at (eg) Linux -- prompt, as in: ulimit -s unlimited with Text_io; Use Text_io; with Ada.Numerics.Generic_Elementary_Functions; with Disorderly.Random; use Disorderly.Random; with Disorderly.Random.Clock_Entropy; with Disorderly.Random.Deviates; -- To use R...
package equal1 is type Basic_Connection_Status_T is (Connected, Temporary_Disconnected, Disconnected); for Basic_Connection_Status_T'Size use 8; type Application_Connection_Status_T is (Connected, Disconnected); for Application_Connection_Status_T'Size use 8; end equal1;