content stringlengths 23 1.05M |
|---|
with ACO.Protocols.Service_Data;
package body ACO.Nodes.Remotes is
overriding
procedure Set_State
(This : in out Remote;
State : in ACO.States.State)
is
begin
This.NMT.Request_State (State);
-- If there is no heartbeat or node guarding, just assume the requested
-- s... |
pragma SPARK_Mode;
with System;
with Proc_Types; use Proc_Types;
package body Pwm is
TCCR1A : Register
with Address => System'To_Address (16#80#);
TCCR1B : Register
with Address => System'To_Address (16#81#);
ICR1 : Double_Register
with Address => System'To_Address (16#86#);
OCR1A : Doub... |
pragma License (Unrestricted);
-- extended unit
with Interfaces.C.Generic_Strings;
with Interfaces.C.WChar_Pointers;
package Interfaces.C.Wide_WStrings is
new Generic_Strings (
Character_Type => Wide_Character,
String_Type => Wide_String,
Element => wchar_t,
Element_Array => wchar_array,
... |
with Ada.Integer_Text_IO;
with Ada.Text_IO;
package body Problem_11 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
type Row is new Positive range 1 .. 20;
type Column is new Positive range 1 .. 20;
type Grid is Array(Row range <>, Column range ... |
package body ACO.Events is
procedure Process
(This : in out Node_Event_Manager)
is
begin
This.Node_Events.Process;
end Process;
overriding
procedure Update
(This : access Handler_Event_Listener;
Data : in Handler_Event_Data)
is
type Ref is access all Handler_Eve... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags; use Ada.Tags;
with Apsepp.Test_Node_Class.Testing; use Apsepp.Test_Node_Class.Testing;
with Apsepp.Abstract_Early_Test_Case; use Apsepp.Abstract_Early_Test_Case;
package Aps... |
with System.Storage_Elements;
package body GNAT.Debug_Utilities is
function Value (S : String) return System.Address is
begin
return System.Storage_Elements.To_Address (
System.Storage_Elements.Integer_Address'Value (S));
end Value;
end GNAT.Debug_Utilities;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Players;
with League.String_Vectors;
with League.Strings;
package Slim.Menu_Commands.Play_File_Commands is
type Play_Fi... |
-- convert UCD/extracted/DerivedEastAsianWidth.txt
-- bin/ucd_eastasianwidth $UCD/extracted/DerivedEastAsianWidth.txt > ../source/strings/a-ueaswi.ads
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Containers.Ordered_Maps;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings; use Ada.Strings;
with... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
package openGL.Viewport
--
-- Models an opendGL viewport.
--
is
function Extent return Extent_2d;
procedure Extent_is (Now : in Extent_2d);
end openGL.Viewport;
|
--===========================================================================
--
-- This is the main master program for the Tiny as an SPI Master
--
--===========================================================================
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
w... |
with Ada.Command_Line;
with Ada.Exceptions;
with Ada.Text_IO;
with OpenAL.Context;
with OpenAL.Global;
with OpenAL.List;
package body OpenAL_Info is
package AL_Context renames OpenAL.Context;
package AL_Global renames OpenAL.Global;
package AL_String_Vectors renames OpenAL.List.String_Vectors;
p... |
-- Import tests and sub-suites to run
with Dl.Test_Basics;
package body Dl.Test_All_Suit is
use AUnit.Test_Suites;
-- Statically allocate test suite:
Result : aliased Test_Suite;
-- Statically allocate test cases:
Test_1 : aliased Dl.Test_Basics.Test_Case;
-----------
-- Suite --
-----... |
with Ada.Text_IO;
package body RAII is
overriding procedure Finalize (This : in out Controlled_File) is
begin
if Ada.Text_IO.Is_Open (This.File) then
Ada.Text_IO.Close (This.File);
end if;
end Finalize;
end RAII;
|
with
lace.Environ.Paths,
ada.Text_IO;
procedure test_Environ_Paths
is
use lace.Environ.Paths,
ada.Text_IO;
Error : exception;
begin
put_Line ("Begin");
-- Test load of an empty file.
--
declare
Output : constant String := to_File ("data/empty.txt").load;
begin
if Out... |
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Ordered_Maps;
with Ada.Finalization;
generic
type Symbol_Type is private;
with function "<" (Left, Right : Symbol_Type) return Boolean is <>;
with procedure Put (Item : Symbol_Type);
type Symbol_Sequence is array (Positive range <>) of Symbol_... |
with Ada.Containers.Vectors;
with Ada.Iterator_Interfaces;
with EU_Projects.Nodes.Action_Nodes;
with EU_Projects.Nodes.Timed_Nodes.Deliverables;
with EU_Projects.Nodes.Action_Nodes.Tasks;
with EU_Projects.Nodes.Partners;
with EU_Projects.Node_Tables;
package EU_Projects.Nodes.Action_Nodes.WPs is
type Project_W... |
-- { dg-do run }
procedure Abstract_With_Anonymous_Result is
package Pkg is
type I is abstract tagged null record;
type Acc_I_Class is access all I'Class;
function Func (V : I) return access I'Class is abstract;
procedure Proc (V : access I'Class);
type New_I is new I with null record... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure pascal is
ordre : Integer;
begin
--Put_Line(for all I in 1..10 => I > 0);
Get(ordre);
declare
tab : array(0..ordre) of Integer := (1, others => 0);
begin
for i in 0..(ordre) loop
... |
pragma Check_Policy (Trace => Ignore);
with Ada; -- assertions
with System.Address_To_Named_Access_Conversions;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Storage_Elements;
with System.Termination;
package body System.Unwind.Occurrences is
pragma Suppress (All_Checks);
use type Stora... |
-- package pc_1_coeff_16
--
-- Predictor_Rule : Integration_Rule renames Predictor_32_16;
--
-- Corrector_Rule : Integration_Rule renames Corrector_33_16;
--
-- Final_Step_Corrector : Real renames Final_Step_Corrector_33_16;
--
generic
type Real is digits <>;
package pc_1_coeff_16 is
subtype... |
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Library General Public License as
-- published by the Free Software Foundation; either version 3 of the
-- License; or (at your option) any later version.
with Ada.Unchecked_Deallocation;
package body U... |
with
ada.Strings.Hash;
package body any_Math.any_Geometry.any_d3.any_Modeller
is
use ada.Containers;
function Hash (Site : in my_Vertex) return ada.Containers.Hash_type
is
use ada.Strings;
begin
return Hash ( Site (1)'Image
& Site (2)'Image
& Site (... |
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Vectors;
procedure Server is
Address : Sock_Addr_Type;
Server : Socket_Type;
Client_Socket : Socket_Type;
package Client_Vectors is new Ada.Containers.Vectors
(Element_Type => Socket_Type, ... |
with Ada.Text_IO;
package body MyString is
function To_String(M : MyString) return String is
Result : String(1..M.Length);
begin
Result := String(M.Str(M.Str'First..M.Length)) ;
return Result;
end To_String;
function From_String(S : String) return MyString is
M : MyString := (Leng... |
with Arduino_Nano_33_Ble_Sense.IOs;
package Distance_Sensor_Controller is
task Measure with Priority => 2;
type Distance_Sensor is record
TrigPin : Arduino_Nano_33_Ble_Sense.IOs.Pin_Id;
EchoPin : Arduino_Nano_33_Ble_Sense.IOs.Pin_Id;
Value : Float;
end record;
Front : Distance_Senso... |
with ACO.SDO_Sessions;
private with Ada.Synchronous_Task_Control;
private with ACO.Protocols.Network_Management.Masters;
private with ACO.Protocols.Error_Control.Slaves;
private with ACO.Protocols.Service_Data.Clients;
package ACO.Nodes.Remotes is
type Remote
(Id : ACO.Messages.Node_Nr;
Handler ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Coroutines.Timeouts;
with CR_Test_Proc;
procedure CR_Test is
begin
Coroutines.Initialize;
Coroutines.Timeouts.Initialize;... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A039 is
use Ada.Integer_Text_IO;
P_Max_Solutions : Integer := 0;
N_Max_Solutions : Integer := 0;
B, N : Integer;
A, B2, P2 : Float;
begin
for P in reverse 500 .. 1000 loop
B := 1;
N := 0;
... |
with Ada.Command_Line;
with Ada.Directories;
with Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
package body Helpers is
Program_Abspath : constant Pathname := Native.Filesystem.Join
(Ada.Directories.Current_Directory, Ada.Command_Line.Command_Name, False);
Test_Dir : constant Pathname := Ada.Di... |
-- CE3601A.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 Ada.Text_IO; use Ada.Text_IO;
procedure Test_Age_Madness is
subtype Age_Type is Natural range 0 .. 140;
subtype Age_Distance is Integer;
-- the following subtype is better
--subtype Age_Distance is Integer range -Age_Type'Last .. Age_Type'Last;
Adult_Age : constant Age_Type := 18;
--... |
with Ada.Wide_Wide_Text_IO;
with League.Application;
with League.Strings;
procedure Main is
begin
for J in 1 .. League.Application.Arguments.Length loop
Ada.Wide_Wide_Text_IO.Put_Line
(League.Application.Arguments.Element (J).To_Wide_Wide_String);
end loop;
end Main;
|
-- Euler1 in Ada
with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure Euler1_1 is
function Euler(size : in Integer) return Integer is
result: Integer;
begin
result := 0;
for i in 1..size-1 loop
if i mod 3 = 0 or i mod 5 = 0 then
result := result + i;
... |
pragma License (Unrestricted);
with Ada.Containers;
with Ada.Strings.Wide_Wide_Hash;
function Ada.Strings.Wide_Wide_Fixed.Wide_Wide_Hash (Key : Wide_Wide_String)
return Containers.Hash_Type
renames Strings.Wide_Wide_Hash;
pragma Pure (Ada.Strings.Wide_Wide_Fixed.Wide_Wide_Hash);
|
-- Generated at 2014-06-02 19:12:04 +0000 by Natools.Static_Hash_Maps
-- from ../src/natools-s_expressions-printers-pretty-config-commands.sx
private package Natools.S_Expressions.Printers.Pretty.Config.Commands is
pragma Preelaborate;
type Main_Command is
(Set_Char_Encoding,
Set_Fallback,
Se... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- util-dates-formats-tests - Test for date formats
-- Copyright (C) 2011, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
package body Pack10_Pkg is
procedure Proc is begin null; end;
end Pack10_Pkg;
|
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hoc... |
-- MIT License
-- Copyright (c) 2021 Stephen 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,... |
with DDS.Request_Reply.Tests.Simple.Octets_Replier;
with DDS.Request_Reply.Tests.Simple.String_Replier;
with DDS.Request_Reply.Replier.Typed_Replier_Generic.Passive_Replier_Generic;
package DDS.Request_Reply.Tests.Simple.Server is
type Ref_Base is limited interface;
package Octets_Srv is new Octets_Replier.Passi... |
with
Risi_Script.Types.Internals;
Separate(Risi_Script.Types.Implementation)
Function Convert( Item : Representation; To : Enumeration ) return Representation is
use Risi_Script.Types.Internals, Risi_Script.Types.Implementation.Conversions;
Source : Enumeration renames Get_Enumeration(Item);
Generic
T... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held li... |
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Widgets.Groups.Windows.Double is
procedure double_window_set_draw_hook
(W, D : in System.Address);
pragma Import (C, double_window_set_draw_hook, "double_window_set_draw_hook");
pragma Inline (double_window... |
-- Generated by utildgen.c from system includes
private package Util.Http.Clients.Curl.Constants is
CURLOPT_URL : constant Curl_Option := 10002;
CURLOPT_HTTPGET : constant Curl_Option := 80;
CURLOPT_POST : constant Curl_Option := 47;
CURLOPT_CUSTOMREQUEST : constant Curl_Optio... |
-----------------------------------------------------------------------
--
-- File: nt_console.ads
-- Description: Win95/NT console support
-- Rev: 0.2
-- Date: 08-june-1999
-- Author: Jerry van Dijk
-- Mail: jdijk@acm.org
--
-- Copyright (c) Jerry van Dijk, 1997, 1998, 1999
-- ... |
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.I2C is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_DNF_Field is HAL.... |
package openGL.Texture.Coordinates
--
-- Provides openGL texture co-ordinates.
--
is
------
--- 2D
--
type coordinate_Generator is abstract tagged null record;
function to_Coordinates (Self : in coordinate_Generator; the_Vertices : access Sites) return Coordinates_2D
is a... |
with Ada.Strings.Fixed;
with Ada.Text_IO;
with Templates_Parser;
procedure Csv2Html is
use type Templates_Parser.Vector_Tag;
Chars : Templates_Parser.Vector_Tag;
Speeches : Templates_Parser.Vector_Tag;
CSV_File : Ada.Text_IO.File_Type;
begin
-- read the csv data
Ada.Text_IO.Open (File => CSV_File,
... |
------------------------------------------------------------------------------
-- Copyright (c) 2011, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package BSSNBase.Data_IO is
procedure read_data (file_name : String := "data.txt");
procedure read_grid (file_name : String := "grid.txt");
procedure write_data (file_name : String := "data.txt");
procedure write_grid (file_name : String := "grid.txt");
procedure read_data_fmt (file_name : String := "d... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
with Ada.Integer_Text_IO, tools;
use Ada.Integer_Text_IO, tools;
package body Garden_Pkg is
package Position_Generator is new Random_Generator(Position);
function GetRandPos return Position is
begin
return Position_Generator.GetRandom;
end GetRandPos;
function GetField(pos : Position) return Boolean i... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Finalization;
with Adabots_Lua_Dispatcher;
package Adabots is
type Turtle is new Ada.Finalization.Limited_Controlled with private;
type Turtle_Inventory_Slot is range 1 .. 16;
type Stack_Count is range 0 .. 64;
type Item_Detail is record
... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Containers.Indefinite_Vectors; use Ada.Containers;
-- XML includes libraries
with Input_Sources.File; use Input_Sources.File;
with Sax.Readers; use Sax.Readers;
with DOM.Readers; use DOM.Readers;
with DOM.Core; use DOM.Core;
with DO... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- CB4008A.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... |
#ifndef __OCARINA_GENERATED_MARSHALLERS_H_
#define __OCARINA_GENERATED_MARSHALLERS_H_
/*****************************************************/
/* This file was automatically generated by Ocarina */
/* Do NOT hand-modify this file, as your */
/* changes will be lost when you re-run Ocarina */
/****... |
-- $Id: Sort.md,v 1.0 1992/08/07 14:42:01 grosch rel $
-- $Log: Sort.md,v $
-- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994
generic
with function IsLess (X, Y: Integer) return Boolean;
with procedure Swap (X, Y: Integer);
package Sort is
procedure QuickSort (Lwb, Upb: Integer);
-- Sort data from the... |
package Warn10_Pkg is
Size : constant Natural := 100;
type My_Array is array(1..Size, 1..Size) of Float;
type Root is tagged record
Input_Values : My_Array;
end record;
function Get_Input_Value( Driver : Root; I, J : Natural) return Float;
end Warn10_Pkg;
|
with
ada.unchecked_Deallocation;
package body XML.Writer
is
Depth: Natural;
procedure Free is new ada.Unchecked_Deallocation (Attributes_t,
Attributes_view);
procedure Start_Document (F: in ada.Text_IO.File_Type)
is
begin
ada.Text_... |
-- { dg-do run }
procedure Boolean_Expr2 is
function Ident_Bool (B : Boolean) return Boolean is
begin
return B;
end;
begin
if Boolean'Succ (Ident_Bool(False)) /= True then
raise Program_Error;
end if;
if Boolean'Pred (Ident_Bool(True)) /= False then
raise Program_Error;
end if;
end;
|
with
opengl.surface_Profile.privvy,
opengl.Display .privvy,
eGL.Binding,
interfaces.c.Strings,
System;
package body opengl.Surface
is
use eGL.Binding;
-- Forge
--
procedure define (Self : in out Item; surface_Profile : in opengl.surface_Profile.item'Class;
... |
-- { dg-do compile }
with Discr23_Pkg; use Discr23_Pkg;
package body Discr23 is
N : constant Text := Get;
function Try (A : in Text) return Text is
begin
return A;
exception
when others => return N;
end;
procedure Dummy is begin null; end;
end Discr23;
|
------------------------------------------------------------------------------
-- Copyright (c) 2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
pragma Warnings (Off);
pragma Style_Checks (Off);
-------------------------------------------------------------------------
-- GLOBE_3D.Collision_detection
--
-- Copyright (c) Gautier de Montmollin 1999 .. 2008
-- SWITZERLAND
--
-- Permission is hereby granted, free of charge, to any person obtainin... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package VFA1_Pkg is
type Int8_t is mod 2**8;
type Int is new Integer;
pragma Volatile_Full_Access (Int);
Counter1 : Int;
Counter2 : Integer;
pragma Volatile_Full_Access (Counter2);
type Arr is array (1 .. 4) of Int8_t;
for Arr'Alignment use 4;
pragma Volatile_Full_Access (Arr);
Timer1 : Arr;
... |
with AUnit.Assertions; use AUnit.Assertions;
with NeuralNet;
with NeuralNet.IO;
with MathUtils;
with Ada.Text_IO;
package body NeuralNetIOTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases.Registration;
begin
Register_Routine (T, testCreateNNFile'Access, "Neural Net IO:... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- 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 = "IPdata"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datasrc_config()
... |
-- --- Day 7: Handy Haversacks ---
--
-- You land at the regional airport in time for your next flight. In fact,
-- it looks like you'll even have time to grab some food:
-- all flights are currently delayed due to issues in luggage processing.
--
-- Due to recent aviation regulations,
-- many rules (your puzzle... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
--
-- Coroutine is a basic components for non-preemptive multitasking.
--
with System.Storage_Elements;
private with Ada.Containers.V... |
-- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- USI
package MSP430_SVD.USI is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- USICTL0_USIPE array
type USICT... |
package Linear_Search
with SPARK_Mode
is
type T is range 0 .. 10;
subtype U is T range 1 .. 10;
type Ar is array (U) of Integer;
function Search (A : Ar; I : Integer) return T with
-- If I exists in A, then Search'Result indicates its position
Post => (if Search'Result in A'Range then A (Search... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Vampire.Forms;
with Vampire.Villages;
package Vampire.Configurations is
Temporary_Directory : constant String := "_data/tmp";
-- locking
Lock_Name : aliased constant String := "_data/tmp/lock-vampire";
-- for debug
Debug_Log_File_Name : aliased constant S... |
-----------------------------------------------------------------------
-- gen-artifacts-docs -- Artifact for documentation
-- Copyright (C) 2012, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
-----------------------------------------------------------------------
-- asf.server -- ASF Server
-- 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 ex... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
package Some_Interface is
type The_Interface is limited interface;
function f1(Self : The_Interface) return Integer is abstract;
function f2(Self : The_Interface) return Integer is abstract;
function f3(Self : The_Interface) re... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
with
physics.Model,
Physics,
openGL.Model.terrain,
openGL.IO,
ada.unchecked_Deallocation,
ada.unchecked_Conversion;
package body gel.Terrain
is
type Heightfield_view is access all physics.Heightfield;
type height_Map_view is access all opengl.height_Map;
type height_map_Grid i... |
-- REST API Validation
-- API to validate
--
-- The version of the OpenAPI document: 1.0.0
-- Contact: Stephane.Carrez@gmail.com
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1-SNAPSHOT.
-- https://openapi-generator.tech
-- Do not edit the class manually.
with Swagger.Streams;
with Ada.Con... |
with Ada.Text_IO;
with XML;
procedure version is
begin
Ada.Text_IO.Put_Line (XML.Version);
end version;
|
pragma License (Unrestricted);
with Ada.Strings.Maps.Constants;
private with Ada.Strings.Maps.Naked;
private with Ada.Strings.Naked_Maps.Set_Constants;
package Ada.Strings.Wide_Wide_Maps.Wide_Wide_Constants is
pragma Preelaborate;
-- extended
-- There are sets of unicode category.
function Unassigned_Set... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with issue;
with wa1;
with wa2;
procedure run_gb_03 is
B1 : wa1.Base;
B2 : wa2.Base;
BI : issue.Base;
begin
Put_Line("started main");
Put_Line("starting workaround 1");
B1.Set_Smth(1);
Put_Line("workaround 1 done");
New_Line;
Put_Line("starting w... |
with Ada.Text_IO;
package body Problem_68 is
package IO renames Ada.Text_IO;
-- They want 16 digit strings, so we know that every solution will
-- have a 10 on the outside edge of one of the flanges, so we can
-- always start there.
subtype Digit is Positive range 1 .. 10;
subtype Position is Pos... |
with Interfaces; use Interfaces;
package body Natools.Smaz_Test_Base_64_Hash is
P : constant array (0 .. 3) of Natural :=
(1, 2, 3, 4);
T1 : constant array (0 .. 3) of Unsigned_8 :=
(97, 46, 76, 56);
T2 : constant array (0 .. 3) of Unsigned_8 :=
(81, 17, 92, 120);
G : constant array (0 .... |
with Ada.Text_IO;
procedure Euler17 is
Word_Lengths : array(Natural range <>) of Natural :=
(
String'("")'Length,
String'("one")'Length,
String'("two")'Length,
String'("three")'Length,
String'("four")'Length,
String'("five")'Length,
String'("six")'Length,
String'... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package gel_demo_Client
--
-- Provides a client.
--
is
task Item
is
entry start;
end Item;
end gel_demo_Client;
|
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with STL; use STL;
with Parser_Svg; use Parser_Svg;
with Normalisation; use Normalisation;
with Courbes; use Courbes;
with Interpolations_Lineaires; use Interpolations_Lineaires;
with Vecteurs; use ... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Val_Bool is
pragma Pure;
-- required for Boolean'Value by compiler (s-valboo.ads)
function Value_Boolean (Str : String) return Boolean;
end System.Val_Bool;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.