content stringlengths 23 1.05M |
|---|
with DOM.Core;
package XML_Utilities is
function Parse_String (Item : String) return DOM.Core.Document;
--
-- If node N has the given attribute, return its value otherwise raise
-- No_such_Attribute
--
function Expect_Attribute (N : DOM.Core.Node; Name : String) return String;
--
-- Return Tr... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with System;
with Yaml.C;
package Lexer.Source.C_Handler is
type Instance is new Source.Instance with private;
overriding procedure Read_Data (S : in out Instance; Buffer : out String;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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 body ACO.Utils.Generic_Event is
function Events_Waiting
(This : Queued_Event_Publisher)
return Natural
is
begin
return This.Queue.Count;
end Events_Waiting;
procedure Put
(This : in out Queued_Event_Publisher;
Data : in Item_Type)
is
Success : Boolea... |
with vole_lex_dfa; use vole_lex_dfa;
package body vole_lex_dfa is
function YYText return string is
i : integer;
str_loc : integer := 1;
buffer : string(1..1024);
EMPTY_STRING : constant string := "";
begin
-- find end of buffer
i := yytext_ptr;
while ( yy_ch_buf(i) /= ASCII.NUL ) loop
... |
-- ROUTER-to-REQ example
with Ada.Command_Line;
with Ada.Real_Time;
with Ada.Text_IO;
with GNAT.Formatted_String;
with ZMQ;
with ZHelper;
use type GNAT.Formatted_String.Formatted_String;
use type Ada.Real_Time.Time_Span;
procedure RTReq is
Nbr_Workers : constant := 10;
Work_Time_Span : constant := 5;
ta... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO;
use Ada.Strings.Unbounded.Text_IO;
with Ada.Containers.Doubly_Linked_Lists;
with GNAT.Regpat;
use GNAT.Regpat;
procedure Main is
type... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
limited with CUPS.stdio_h;
with Interfaces.C_Streams;
with System;
with CUPS.cups_cups_h;
private package CUPS.cups_adminutil_h is
CUPS_SERVER_DEBUG_LOGGING : aliased constant String := "_debug_logging" & A... |
with Ada.Text_IO; use Ada.Text_IO;
package body Radar_Internals is
T : Natural := 0;
type Angle_Degrees_T is mod 360;
Antenna_Angle : Angle_Degrees_T := 120;
type Object_Type_T is (Sarah_Connor, Peon, John_Connor);
Active_Object_Type : Object_Type_T := Sarah_Connor;
Active_Object_Status : O... |
package body agar.gui.types is
function widget_icon_widget (icon : widget_icon_access_t)
return agar.gui.widget.widget_access_t is
begin
return icon.widget'access;
end widget_icon_widget;
function window_widget (window : window_access_t)
return agar.gui.widget.widget_access_t is
begin
return... |
-- Copyright 2016-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (a... |
------------------------------------------------------------------------------
-- EMAIL: <darkestkhan@gmail.com> --
-- License: ISC License (see COPYING file) --
-- --
-- ... |
-- AoC 2020, Day 8
with VM; use VM;
with Ada.Text_IO;
with Ada.Containers.Ordered_Sets;
with Ada.Containers; use Ada.Containers;
package body Day is
package TIO renames Ada.Text_IO;
package PC_Sets is new Ada.Containers.Ordered_Sets (Element_Type => Instruction_Index);
use PC_Sets;
function acc_before_repeat... |
-----------------------------------------------------------------------
-- AWA.Blogs.Models -- AWA.Blogs.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-gen.go... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Error_Listeners;
package Errors is
type Error_Listener is new Program.Error_Listeners.Error_Listener
with null record;
overriding... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
--//////////////////////////////////////////////////////////
-- //
-- // 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 liabl... |
-----------------------------------------------------------------------
-- awa-tags -- Tags management
-- 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 file except in complia... |
-- Handle Foreign Command
--
-- This procedure supports the use of the VAX/VMS Foreign Command facility
-- in a way similar to that used by the VAX C runtime argc/argv mechanism.
--
-- The program is to be 'installed as a foreign command':
--
-- $ foo :== $disk:[directories]foo
--
-- after which the parameters to a ... |
with Ada.Containers.Array_Sorting;
with System.Long_Long_Integer_Types;
procedure Ada.Containers.Generic_Sort (First, Last : Index_Type'Base) is
subtype Word_Integer is System.Long_Long_Integer_Types.Word_Integer;
begin
if Index_Type'Pos (Index_Type'First) in
Long_Long_Integer (Word_Integer'First) ..
... |
with Ada.Characters.Handling, Ada.Text_IO;
use Ada.Characters.Handling, Ada.Text_IO;
procedure Upper_Case_String is
S : constant String := "alphaBETA";
begin
Put_Line (To_Upper (S));
Put_Line (To_Lower (S));
end Upper_Case_String;
|
--
-- Copyright (C) 2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This ... |
------------------------------------------------------------------------------
-- --
-- GESTE --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-O -gnatp" }
package body Invariant_Index is
procedure Proc (S : String) is
N : constant Integer := S'Length;
begin
Name_Buffer (1 + N .. Name_Len + N) := Name_Buffer (1 .. Name_Len);
Name_Buffer (1 .. N) := S;
Name_Len := Name_Len + N;
end;
end ... |
-- C55B06A.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;
with Ada.Directories;
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO;
use Ada;
use Ada.Strings.Unbounded;
procedure file_exists is
File_Path : Unbounded_String;
Found_File : Boolean;
begin
Ada.Text_IO.Put("path: ");
Strings.Unbounded.Text_IO.Get_Line(File_Path);
Found_F... |
with Interfaces; use Interfaces;
generic
with procedure Write (Data : Unsigned_8);
with function Read return Unsigned_8;
package CBOR_Codec is
pragma Preelaborate;
type Major_Type is (Unsigned_Integer, Negative_Integer, Byte_String,
UTF8_String, Item_Array, Item_Map, Tag, Simple_Or_Float)
w... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with System.Allocation.Memory;
with System.Allocation.Arenas;
use System.Allocation.Arenas;
package GBA.Memory.Default_Heaps is
IWRAM_Heap_Start : constant Character
with Import, External_Name => "__iheap_start";
IWRAM_Heap : He... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- 21 package Asis.Ids
-------------------------------------------------------------------------------
-------------------------------------------------------... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Real_Ra... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with stddef_h;
package malloc_h is
-- arg-macro: procedure alloca (x)
-- __builtin_alloca((x))
--*
-- * This file has no copyright assigned and is placed in the Public Domain.
-- * This file is part of the mingw-w64 runt... |
with Lv.Objx;
private with System;
package Lv.Group is
type Instance is private;
function Create return Instance;
procedure Del (Group : Instance);
procedure Add_Obj (Group : Instance; Obj : Lv.Objx.Obj_T);
procedure Remove_Obj (Obj : Lv.Objx.Obj_T);
procedure Focus_Obj (Obj : Lv.Objx.Obj_T);
... |
-- TODO: maybe add examples of Ada with contracts
-- @see https://learn.adacore.com/ |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Unit_Naming;
private with Ada.Strings.Wide_Wide_Unbounded;
package Program.Directory_Unit_Schemas is
pragma Preelaborate;
type Directo... |
package body Aggr19_Pkg is
procedure Proc (Pool : in out Rec5) is
begin
Pool.Ent := (Kind => Two, Node => Pool.Ent.Node, I => 0);
end;
end ;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 The progress_indicators authors
--
-- 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/licen... |
-- { dg-do run }
procedure kill_value is
type Struct;
type Pstruct is access all Struct;
type Struct is record Next : Pstruct; end record;
Vap : Pstruct := new Struct;
begin
for J in 1 .. 10 loop
if Vap /= null then
while Vap /= null
loop
Vap := Vap.Next;
... |
with Ada.Strings.Unbounded;
package Unit_2 is
type Range_Type is new Integer range 1 .. 10;
procedure Do_It (This : in Range_Type);
Dont_Like_5 : Exception;
private
package Parent_Class is
type Object is abstract tagged record
Component_1 : Integer := 2;
end record;
proced... |
with Ada.Exception_Identification.From_Here;
with System.Storage_Elements;
with System.UTF_Conversions;
package body Ada.Strings.UTF_Encoding.Conversions is
use Exception_Identification.From_Here;
use type System.Storage_Elements.Storage_Offset;
use type System.UTF_Conversions.From_Status_Type;
use type Sys... |
-----------------------------------------------------------------------
-- Gen -- Code Generator
-- Copyright (C) 2009 - 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 except in compli... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Containers;
procedure Euler is
package Long_Integer_Vectors is new Vectors(Natural, Long_Integer);
package Long_IO is new Ada.Text_IO.Integer_IO(Long_Integer);
use Long_IO;
fun... |
with Ada.Unchecked_Deallocation;
with PB_Support.IO;
with PB_Support.Internal;
package body Google.Protobuf.Any is
function Length (Self : Any_Vector) return Natural is
begin
return Self.Length;
end Length;
procedure Clear (Self : in out Any_Vector) is
begin
Self.Length := 0;
end Clear;... |
-- Copyright (c) 2021 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with League.Strings;
with League.Application;
with Network.Addresses;
with Network.Connection_Promises;
... |
-- This spec has been automatically generated from msp430g2553.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces; use Interfaces;
with System;
package MSP430_SVD is
pragma Preelaborate;
---------------
-- Base type --
---------------
type UI... |
--------------------------------------------------------------------------
-- package Givens_QR, QR decomposition using Givens rotations
-- Copyright (C) 2008-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provide... |
with Ada.Numerics.Discrete_Random;
with Ada.Containers.Vectors;
use Ada.Containers;
with Applicative; use Applicative;
with Util; use Util;
-- Package containing functions for generating random numbers.
package Distribution is
-- Type to represent a random distribution.
type Distribution_Type is limite... |
-- { dg-do compile }
package body Parent_Ltd_With.Child_Full_View is
function New_Child_Symbol return Child_Symbol_Access is
Sym : constant Child_Symbol_Access := new Child_Symbol'(Comp => 10);
begin
return Sym;
end New_Child_Symbol;
end Parent_Ltd_With.Child_Full_View;
|
with NRF52_DK; use NRF52_DK;
with NRF52_DK.IOs; use NRF52_DK.IOs;
package sensor is
function Distance(TrigPin, EchoPin : NRF52_DK.IOs.Pin_Id) return Float;
end sensor;
|
-- { dg-do compile }
procedure Discr19 is
type Arr_Int_T is array (Integer range <>) of Integer;
type Abs_Tag_Rec_T (N : Integer; M : Integer) is abstract tagged record
Arr_Int : Arr_Int_T (1..M);
end record;
type Tag_Rec_T (M : Integer)
is new Abs_Tag_Rec_T (N => 1, M => M) with null record;... |
-- See LICENSE file for cc0 license details
with Ada.Command_Line;
with Ada.Directories;
with Ada.Exceptions; use Ada.Exceptions; -- TODO remove
with Ada.Strings.Unbounded;
with Ada.Text_Io;
with Ch_Conn;
with Posix.Io;
with Posix.Process_Identification;
with Posix.User_Database;
with Srv_Conn;
with Srv_Quit;
with Util... |
-- * Output of max2ada.ms, a GMax / 3D Studio Max script for exporting to GLOBE_3D
--
-- * Copy and paste these lines from the Listener into a
-- text editor, and save the package as an .ada file.
-- * Alternatively, use the GMaxSLGRAB.exe tool.
-- * For GNAT, you must save the specification as an .ads file... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
with pointer_protected_p;
procedure pointer_protected is
Pointer : pointer_protected_p.Ptr := null;
Data : pointer_protected_p.T;
begin
Pointer.all (Data);
end pointer_protected;
|
procedure Real_To_Rational (R: Real;
Bound: Positive;
Nominator: out Integer;
Denominator: out Positive) is
Error: Real;
Best: Positive := 1;
Best_Error: Real := Real'Last;
begin
if R = 0.0 then
Nominator := 0;
... |
-- C49022C.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... |
-- Copyright 2016, 2017 Steven Stewart-Gallus
--
-- 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 applicable law ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Protypo.Api.Engine_Values.Handlers;
with Protypo.Api.Engine_Values.Parameter_Lists;
private package Protypo.Code_Trees.Interpreter.Compiled_Functions is
-- type Compiled_Function is
-- new Api.Engine_Values.Function_Interface
-- with
-- private;
type Compiled_Function is
ne... |
with STM32.Board; use STM32.Board;
with HAL.Touch_Panel; use HAL.Touch_Panel;
package body Inputs is
procedure Update_Pressed_Keys(Keys : in out Keys_List) is
State : constant TP_State := Touch_Panel.Get_All_Touch_Points;
begin
for I in State'First .. State'Last loop
if State(I).X >= Positi... |
-------------------------------------------------------------------------------
-- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
... |
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada;
procedure Solution is
begin
Ada.Text_IO.Put_Line("Hello-world");
end Solution;
--thank in advance for hackerank XD |
with ZMQ.Sockets;
with AVTAS.LMCP.Factory;
with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
use UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
with UxAS.Comms.Transport.Network_Name;
with UxAS.Common.String_Constant.Lmcp_Network_Socket_Address;
use UxAS.Common.String_Constant.Lmcp_Network_Socket_Address... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- MIT License
--
-- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com>
--
-- 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 rig... |
-- The Village of Vampire by YT, このソースコードはNYSLです
package Vampire.Villages.Text is
-- 配役
function Name (Person : Tabula.Villages.Person_Type'Class) return String;
function Image (Role : Requested_Role) return String;
function Image (Role : Person_Role) return String;
function Short_Image (Role : Person_Role... |
------------------------------------------------------------------------
-- Copyright (C) 2005-2020 by <ada.rocks@jlfencey.com> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- the terms of the Do What... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package linux_posix_types_h is
-- SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
-- * This allows for 1024 file descriptors: if NR_OPEN is ever grown
-- * beyond that you'll have to change this too. But 1024 fd's seem ... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ file writer implementation --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC;
with STM32_SVD.NVIC;
with STM32_SVD.GPIO;
with STM32_SVD.USB; use STM32_SVD.USB;
package body STM32GD.Board is
procedure Init is
begin
STM32_SVD.RCC.RCC_Periph.APB2ENR.AFIOEN := 1;
STM32_SVD.RCC.RCC_Periph.APB2ENR.IOPAEN := 1;
STM32_SVD.RCC.RC... |
-- This spec has been automatically generated from STM32L0x1.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.MPU is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- MPU type register
type MPU_TYPER_... |
-- { dg-do compile }
-- { dg-final { scan-assembler-not "elabs" } }
package body OCONST4 is
procedure check (arg : R) is
begin
if arg.u /= 1
or else arg.d.f1 /= 17
or else arg.d.b.f1 /= one
or else arg.d.b.f2 /= 2
or else arg.d.b.f3 /= 17
or else arg.d.b.f4 /= 42
or e... |
pragma License (Restricted);
--
-- Copyright (C) 2020 Jesper Quorning All Rights Reserved.
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you... |
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Controls time and alarms\n
-- time... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-mail-clients-files -- Mail client dump/file implementation
-- Copyright (C) 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
--with HWIF;
package body Tasks is
--Pressed Button Task
task ButtonPressed (this: in Direction) is
end ButtonPressed;
task body ButtonPressed is
(this: in Direction)
begin
Traffic_Light(this) := 4;
delay 1.0;
Traffic_Light(this) := 2;
delay 1.0;
Traffic_Light(... |
-- Spécification du module Arbre_binaire
generic
Type T_Cle is private;
with procedure Afficher_Cle (Cle : in T_Cle);
package Arbre_Binaire is
Cle_Absente_Exception : Exception;
Cle_Existe_Exception : Exception;
Existe_Fils_Droit : Exception ;
Existe_Fils_Gauche : Exception ;
Type... |
with Ada.Finalization;
with Ada.Iterator_Interfaces;
generic
type Element_Type is private;
with function "=" (Left, Right : Element_Type) return Boolean is <>;
with procedure Destroy (Value : in out Element_Type) is null;
package Regions.Shared_Lists is
pragma Preelaborate;
type List is tagged privat... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
--with Ada.Text_IO;
--use Ada.Text_IO;
with xample1;
use xample1;
procedure xercise is
begin
SayWelcome(6);
end xercise;
|
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "From Russia with love.";
cipherlen : constant Positive := Symmetric_Cipher_Length (message);
begin
if not initialize_sodium_library then
Put_Line ("Initialization faile... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with AWS.Client;
with League.JSON.Objects;
with League.JSON.Values;
with League.String_Vectors;
with WebDriver.Elements;
with WebDri... |
-----------------------------------------------------------------------
-- awa-storages-beans -- Storage Ada Beans
-- Copyright (C) 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 excep... |
package body Generic_Inverted_Index is
-- uses some of the new Ada 2012 syntax
use Source_Vecs;
procedure Store(Storage: in out Storage_Type;
Source: Source_Type;
Item: Item_Type) is
use type Maps.Cursor;
begin
if (Storage.Find(Item) = Maps.No_Ele... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: PID controller
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: PID Controller based on the Ada firmware for crazyflie
-- See https://github.com/AnthonyLeon... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2021, AdaCore --
-- --
-- ... |
--
-- Copyright (C) 2015-2018 secunet Security Networks AG
-- Copyright (C) 2017 Nico Huber <nico.h@gmx.de>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License,... |
with Aggr9_Pkg; use Aggr9_Pkg;
package Aggr9 is
procedure Proc (X : R1);
end Aggr9;
|
package body Types is
function "<"(Gauche: T_Rank; Droit: T_Rank) return Boolean is
begin
return Gauche.Poid < Droit.Poid;
end "<";
function Hachage(Indice: in T_Indice) return Integer is
begin
return Indice.X;
end Hachage;
end Types; |
with Ada.Text_IO;
--use Ada.Text_IO;
with Ada.Numerics.Elementary_Functions;
with Ada.Float_Text_IO;
procedure adaDemo2 is
type Day_type is range 1 .. 31;
type Month_type is range 1 .. 12;
type Year_type is range 1800 .. 2100;
type Hours is mod 24;
type Weekday is (Monday, Tuesday, Wednesday, Thursday, F... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
package body Graphics_FrameRates is
type Ring_Ix is mod Smoothing_Buffer_Size;
Smoothing_Buffer : array (Ring_Ix) of Time_Span := (others => Seconds (1));
Smoothing_Buffer_Ix : Ring_Ix := Ring_Ix'First;
Last_Call_To_Limiter : Time := Clock;
... |
with PrimeUtilities;
package PrimeInstances is
package Long_Long_Primes is new PrimeUtilities(Num => Long_Long_Integer);
package Integer_Primes is new PrimeUtilities(Num => Integer);
package Positive_Primes is new PrimeUtilities(Num => Positive);
end PrimeInstances;
|
with Ada.Text_IO;
with Ada.Directories;
with AAA.Strings;
with AAA.Directories;
with CLIC.Config.Load;
with Simple_Logging;
with TOML;
package body CLIC.Config.Edit is
package Trace renames Simple_Logging;
use TOML;
procedure Write_Config_File (Table : TOML_Value; Path : String)
with Pre => Table.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.