CombinedText
stringlengths
4
3.42M
with AUnit.Test_Fixtures; with AUnit.Test_Suites; package HMAC_SHA1_Streams_Tests is function Suite return AUnit.Test_Suites.Access_Test_Suite; private type Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record; procedure HMAC_SHA1_RFC2202_Test (Object : in out Fixture); end HMAC_SHA1_Streams_Test...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2015,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 ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; with Interfaces.C.Strings; with CUPS.stdio_h; with Interfaces.C_Streams; private package CUPS.cups_file_h is CUPS_FILE_NONE : constant := 0; -- cups/file.h:54 CUPS_FILE_GZIP : constant := 1; -- cups/file.h:55 ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Euler10 Is function Sum_Prime_Under(N: Integer) return Long_Long_Integer is Is_Prime : array (2 .. N - 1) of Boolean := (others => True); Sum : Long_Long_Integer := 0; begin for I in Is_Prime'Range loop if Is_Prime(I) then Sum :=...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Interfaces; with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; with System; package Littlefs is VERSION : constant := 16#00020003#; -- Software library version -- Major (top-nibble), incremented on backwards incompatible changes -- Minor (bottom-nibble), incremented on feature addi...
----------------------------------------------------------------------- -- Util-strings -- Various String Utility -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package body System.Storage_Pools.Subpools.Unbounded is type Unbounded_Subpool_Access is access all Unbounded_Subpool; -- implementation overriding function Create_Subpool ( Pool : in out Unbounded_Pool_With_Subpools) return not null Subpool_Handle is Subpool : constant not null Unboun...
------------------------------------------------------ --| Labwork #5 | --| Ada. Rendezvous | ------------------------------------------------------ --| Author | Jack (Yevhenii) Shendrikov | --| Group | IO-82 ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is begin for i in 1 .. 10 loop p; end loop end;
-- See LICENSE file for cc0 license details with Ada.Directories; with Ada.Exceptions; use Ada.Exceptions; -- TODO remove with Ada.Strings; with Ada.Strings.Maps.Constants; with Ada.Strings.Unbounded; -- TODO needed? with Ada.Text_Io; with Iictl; -- TODO unecessary? with Posix.Io; with Posix.Process_Identification; wit...
-- This spec has been automatically generated from STM32L0x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- STM32L0x3 package STM32_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- AES_Base : cons...
-- -- Radoslaw Kowalski 221454 -- with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Calendar; with Rails; use Rails; package Trains is package Calendar renames Ada.Calendar; type Train (Route_Length: Integer) ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
with HAL; generic with package I2C is new HAL.I2C (<>); Address : I2C.I2C_Address; package Drivers.Si7060 is subtype Temperature_Type is Integer range -10000 .. 10000; function Init return Boolean; function Temperature_x100 (R : out Temperature_Type) return Boolean; end Drivers.Si7060;
-- A74106C.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...
------------------------------------------------------------------------------ -- AGAR GUI LIBRARY -- -- A G A R . S U R F A C E -- -- S p e c -- ----...
with Ada.Text_IO; use Ada.Text_IO; package body HTTP.Request is package body Parse is procedure Debug (Ctx : in Context; Str : in String) is function Slice (Idx: in HTTP.Indexes; Str : in String) return String is (Str (Idx.First .. Idx.Last)); begin Put_Line ("KIND: " & Slice (Ctx.Split.Line.K...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" private with Glfw.Enums; package Glfw.Input.Joysticks is use type Interfaces.C.C_float; -- GLFW supports up to 16 joysticks; they are indexed from 1 to 16. type Joystick_Index is range 1 .. 1...
with Ada.Text_IO; use Ada.Text_IO; package body EU_Projects.Node_Tables is procedure Dump (T : Node_Table) is use Node_Maps; begin for Pos in T.Table.Iterate loop Put_Line (EU_Projects.Nodes.To_String(Key (Pos)) & ":"); end loop; end Dump; ------------ -- Insert -- -------...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
-- This spec has been automatically generated from STM32F411xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.DMA is pragma Preelaborate; --------------- -- Registers -- --------------- subtype LISR_FEIF0_Field is STM32_SVD....
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- ...
----------------------------------------------------------------------- -- util-tests-server - A small non-compliant-inefficient HTTP server used for unit tests -- Copyright (C) 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, V...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_list_installed_colormaps_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- C O D E P E E R / S P A R K -- -- -- -- Copyright (C) 2015-2020, AdaCore -- -- ...
-- Copyright 2010-2015 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with League.Strings; with League.Base_Codecs; with JWS; with JWS.RS256; pragma Unreferenced (JWS.RS256); procedur...
-- //////////////////////////////////////////////////////////// -- // -- // 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...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Definitions; with Program.Element_Vectors; with Program.Lexical_Elements; with Program.Elements.Identifiers; pa...
package body Q_Csv is --================================================================== function F_Line (V_Line : String; V_Separator : Character := ';') return T_Row is (V_Length => V_Line'Length, R_Str => V_Line, R_First => V_Line'First, R_Last => V_Line'Last...
with Ada.Containers.Vectors; package EU_Projects.Identifiers.Full is use type Ada.Containers.Count_Type; type Segment_Index is range 1 .. Integer'Last; type Full_ID is private; Empty_Path : constant Full_ID; function "=" (X, Y : Full_ID) return Boolean; function "<" (X, Y : Full_ID) return Boolea...
----------------------------------------------------------------------- -- awa-blogs-module -- Blog and post management module -- Copyright (C) 2011, 2012, 2013, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with GL.Types; -- with Multivector_Analyze_E2GA; with Multivector_Analyze_C3GA; with Utilities; package body Multivector_Analyze is -- -------------------------------------------------------------------------- -- procedure Analyze (theAnalysis : in out MV_Analysis...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
with Ada.Text_IO; use Ada.Text_IO; procedure Hello is begin Put_Line ("Hello, World!"); end Hello;
-- 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,...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2010, Alexander Senier -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or withou...
with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Operation_Handlers.Ike.Isa_Sign is procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type); -- Handler for the isa_sign operation. end Tkmrpc.Operation_Handlers.Ike.Isa_Sign;
-- -- 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 share freely, not taking more than you give. -- with Ada.Text_IO; with Ada.Strings.Unbound...
with Anagram.Grammars; with Anagram.Grammars.LR_Parsers; package Program.Parsers.Data is pragma Preelaborate; procedure Next_Action (State : Anagram.Grammars.LR_Parsers.State_Index; Token : Anagram.Grammars.Terminal_Count; Value : out Anagram.Grammars.LR_Parsers.Action); function Go_To ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with AUnit.Test_Fixtures; with AUnit.Test_Suites; package Tests is function Suite return AUnit.Test_Suites.Access_Test_Suite; private type Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record; procedure Swap_Endian_Test (Object : in out Fixture); procedure Native_To_Big_Endian_And_Back_Test (O...
with Ada.Text_IO; use Ada.Text_IO; procedure Day06 is type Coordinate is record X : Integer; Y : Integer; end record; function Manhattan_Distance (A : Coordinate; B : Coordinate) return Integer is (abs (B.X - A.X) + abs (B.Y - A.Y)); -- Input coordinates Coordinates : constant array (P...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with System; -- ============================================================================= -- Package AVR.TWI -- -- Implements TWI communication for the MCU micro-controller. -- ============================================================================= package AVR.TWI is type TWI_Status_Register_Type is ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package body GBA.DMA.Generic_Interfaces is Use_Full_Word : constant Boolean := (Element_Type'Size >= 32 and then Element_Type'Size mod 32 = 0); function Memset_Info ( Count : Transfer_Count_Type ) return Transfer_Info is (( Des...
with ada.Numerics.discrete_Random; package body openGL.Palette is package random_Colors is new ada.Numerics.discrete_Random (Color_Value); use random_Colors; the_Generator : random_Colors.Generator; function random_Color return Color is begin return (random (the_Generator), ...
------------------------------------------------------------------------ -- Copyright (C) 2010-2020 by Heisenbug Ltd. (github@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 Hocev...
----------------------------------------------------------------------- -- log.tests -- Unit tests for loggers -- Copyright (C) 2009, 2010, 2011, 2013, 2015, 2018, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
package Aggr21_Pkg is type Rec is record A : Integer; S : String (1 .. 120); N : Natural; end record; procedure Init (R : out Rec); end Aggr21_Pkg;
----------------------------------------------------------------------- -- el-functions-default -- Default function mapper -- Copyright (C) 2009, 2010, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Statements; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Requeue_...
----------------------------------------------------------------------- -- util-streams-base16 -- Base16 encoding and decoding streams -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Ada.Numerics.Generic_Real_Arrays; procedure Gaussian_Eliminations is type Real is new Float; package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real); use Real_Arrays; function Gaussian_Elimination (A : in Real_Matrix; B : in Real_...
with Ada.Unchecked_Deallocation; with Test_Utils.Abstract_Encoder.COBS_Simple; with Test_Utils.Abstract_Encoder.COBS_Stream; with Test_Utils.Abstract_Encoder.COBS_Queue; with Testsuite.Encode.Basic_Tests; with Testsuite.Encode.Multiframe_Tests; package body Testsuite.Encode is Kind : Encoder_Kind := Encoder_Kind...
----------------------------------------------------------------------- -- util-log-loggers -- Utility Log Package -- Copyright (C) 2001 - 2019, 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 th...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- -- procedure Copyright (c) Dmitry A. Kazakov -- -- Parsers.Generic_Source.Keywords Luebeck -- -- Interface Summer, 2005 -- -- ...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This file only exists because of circular type dependencies in the C -- library. Types must therefore be collected here, imported and renamed -- in each package to prevent loops. with agar.core.tail_queue; with agar.core.types; with agar.gui.rect; with agar.gui.widget.box; with agar.gui.widget.button; with agar.gui...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GESTE -- -- -- -- ...
----------------------------------------------------------------------- -- gen-model-beans -- Ada Bean declarations -- Copyright (C) 2012, 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 th...
package Unchecked_Convert8 is procedure Dummy; end Unchecked_Convert8;
with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Strings.Unbounded; with Ada.Strings.Fixed; with Ada.Command_Line; procedure Main is generator: Natural; prime : Natural; alicePrivateKey : Natural; bobPrivateKey : Natural; --------------------- -- DecimalToBinary -- --------------------- ...
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2015-2016 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright 2015-2021 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...
-- A83C01I.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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32F3x4.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.USART is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_DEDT_Field is HAL.UInt5; subt...
with lace.Event, lace.Subject, lace.Observer; private with ada.Containers.Vectors, ada.Containers.indefinite_hashed_Maps; generic type T is abstract tagged limited private; package lace.make_Subject -- -- Makes a user class T into an event Subject. -- is pragma remote_Types; type...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Containers.Generic_Constrained_Array_Sort; with Alea; with tri_par_tas; with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Google_Naive; procedure test_Tri_par_tas is taille_vecteur : constant Integer := ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C93001A.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 (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.USBPHY is pragma Preelaborate; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- extended unit with Ada.Strings.Generic_Functions; package Ada.Strings.Functions is new Generic_Functions ( Character_Type => Character, String_Type => String, Space => Space); pragma Preelaborate (Ada.Strings.Functions);
with ada.Containers.Vectors, ada.Unchecked_Deallocation, interfaces.c.Pointers; -- for debug package body impact.d2.dynamic_Tree is use type int32; ------- -- Node -- procedure free is new ada.Unchecked_Deallocation (b2DynamicTreeNodes, ...