CombinedText
stringlengths
4
3.42M
-- Copyright 2008-2017 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. -- -- ...
separate (Numerics.Sparse_Matrices) function Permute (Mat : in Sparse_Matrix; P : in Int_Array; By : in Permute_By_Type := Column) return Sparse_Matrix is begin pragma Assert (Mat.Format = CSC); case By is when Column => return Permute_By_Col (Mat, P); when Row => return Transpose...
-- -- 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...
-- 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 = "ThreatBook" type = "api" function start() setratelimit(5) end function check() local c local cfg = datasrc_config() ...
-- { dg-do compile } -- { dg-options "-O -gnatws" } package body Opt1 is function De_Linear_Index (Index : Natural; D : Natural; Ind_Lengths : Dimention_Length) return Dimension_Indexes is Len : Natural := 1; Tmp_Ind : Natural := Index; Tmp_Res...
pragma Ada_95; with System; package ada_main is pragma Warnings (Off); gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_exit_status : Integer; pragma Imp...
------------------------------------------------------------------------------- -- 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...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Fakedsp.Card; with Fakedsp.Data_Streams.Files; with Notch_Example.Filters; procedure Notch_Example.Main is -- -- This example processes the input using a notch filter that remove -- a specified frequency F0 pla...
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- 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, cop...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2020,2021 Protean Code Limited -- All rights reserved. -- -- "Simplified" (2-Clause) BSD Licence -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do compile } package body Enclosing_Record_Reference is R: aliased T; function F1 (x: integer) return T is begin return R; end; function F2 (x: T) return integer is begin return 0; end; function F3 (x: T) return T is begin return R; end; function F4 (x: intege...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2008-2017 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
--------------------------------- -- GID - Generic Image Decoder -- --------------------------------- -- -- Copyright (c) Gautier de Montmollin 2010 .. 2019 -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to d...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body Ada.Containers.Murmur_Hash_3 is -- use MurmurHash3_x86_32 procedure Step (h1 : in out Hash_Type; Item : Hash_Type); procedure Step (h1 : in out Hash_Type; Item : Hash_Type) is c1 : constant := 16#cc9e2d51#; c2 : constant := 16#1b873593#; k1 : Hash_Type := Item; begin k...
-- MP: a Music Player -- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved. -- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses -- -- 2021-06-01 Use new Enpty_Options procedure from Gnoga 1.6a to clear Sel -- 2021-04-01 Adapted to Ada-12 version o...
----------------------------------------------------------------------- -- escape -- Text Transformations -- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
with System.Storage_Elements; package body System.Bit_Ops is pragma Suppress (All_Checks); use type Storage_Elements.Storage_Element; use type Storage_Elements.Storage_Offset; function Bit_Eq ( Left : Address; Llen : Natural; Right : Address; Rlen : Natural) return Boolean is ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2008-2014 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. -- -- ...
----------------------------------------------------------------------- -- babel-commands -- Commands for Babel -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
<?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="...
package body System.Assertions is procedure Ewok_Debug_Alert (S : String) with Convention => Ada, Import => True, External_name => "ewok_debug_alert"; procedure Ewok_Debug_Newline with Convention => Ada, Import => True, External_name => "ewok_d...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-wikis-beans -- Beans for module wikis -- Copyright (C) 2015, 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fi...
-------------------------------------------------------------------------------------------------------------------- -- 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 body Utilities is function LeftPad (Str: String; Level : Natural) return String is Padding: constant String (1 .. Width * Level) := (others => ' '); begin return Padding & Str; end LeftPad; end Utilities;
with AZ3_Suite; with AUnit.Run; with AUnit.Reporter.Text; with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; procedure Tests is function Run is new AUnit.Run.Test_Runner_With_Status (AZ3_Suite.Suite); Reporter : AUnit.Reporter.Text.Text_Reporter; use AUnit; S : Status; begin Put_Line ("Running AZ...
with Ada.Containers.Indefinite_Ordered_Maps; with Ada.Containers.Vectors; with Ada.Strings.Bounded; with Line_Arrays; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; -- -- This package parses a file as a list of "nodes." Basically, -- a "node" has the following properties -- -- * A node "class" -- * A li...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C74406A.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) 2015-2016, AdaCore -- -- -- -- ...
with Generator.Match_Pattern_Specific; procedure Main_Generator is begin Generator.Match_Pattern_Specific.Main; end Main_Generator;
generic type elem is private; package dcola is type cola is limited private; mal_uso: exception; espacio_desbordado: exception; procedure cvacia(qu: out cola); procedure poner (qu: in out cola; x: in elem); procedure borrar_primero (qu: in out cola); function coger_primero(qu: in cola) return ...
----------------------------------------------------------------------- -- AWA tests - AWA Tests Framework -- Copyright (C) 2011, 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 not use this ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
date Span1 Span2 Span3 Span4 Max_%_DIFF ------ ----------------------- ----------------------- ----------------------- ----------------------- ----------------------- 200701 +0.406750291563971E+01 -0.999000000000000E+03 -0.999000000000000E+03 -0.999000000000000E+03 -0.999000000000000E+03 200702 +0.409107436600541E+01 -...
with Ada.Text_IO; use Ada.Text_IO; package body NewLineExamples is function Text_New_Lines (Text : String) return String is begin return Text & ASCII.CR & ASCII.LF & ASCII.CR & ASCII.LF; end Text_New_Lines; function Twice_Text_New_Line (Text : String) return String is begin return Te...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Alea; -- Évaluer la qualité du générateur aléatoire dans plusieurs -- configurations. procedure Evaluer_Alea is Capacity : Constant Integer := 10000; Type T_List is array(1..Capacity) of Integer; Type T_Generator is reco...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with WebIDL.Arguments; with WebIDL.Interface_Members; package WebIDL.Constructors is pragma Preelaborate; type Constructor is limited interface ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from STM32F429x.svd pragma Ada_2012; pragma Style_Checks (Off); with System; package Interfaces.STM32.GPIO is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Main is begin -- Say hello! Put_Line("Hello, World!"); end Main;
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package GL.Objects.Vertex_Arrays is type Vertex_Array_Object is new GL_Object with private; procedure Bind (Object : Vertex_Array_Object); procedure Draw_Arrays (Mode : Connection_Mode; Firs...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Real_Time; use Ada.Real_Time; with STM32GD.Board; use STM32GD.Board; procedure Main is Next_Release : Time := Clock; Period : constant Time_Span := Milliseconds (500); begin Init; LED.Set; Text_IO.Put_Line ("Starting"); loop Text_IO.Put_Line ("Waiting"); Next_Release := N...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with System; package SDL_assert_h is SDL_ASSERT_LEVEL : constant := 2; -- ..\SDL2_tmp\SDL_assert.h:38 -- arg-macro: procedure SDL_TriggerBreakpoint () -- __asm__ __volatile__ ( "int $3" & ASCII....
with Symbolic_Expressions; package EU_Projects.Times.Time_Expressions is type Symbolic_Duration is private; type Symbolic_Instant is private; type Symbolic_Instant_Array is array (Positive range <>) of Symbolic_Instant; function Min (L, R : Symbolic_Instant) return Symbolic_Instant; function Max (L, R...
-- This spec has been automatically generated from STM32L0x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.LCD is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_DUTY_Field is HAL.U...
----------------------------------------------------------------------- -- hestia-config -- Hestia configuration -- 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 ...
-- Copyright 2010, 2011 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. -- --...
-- CD5012F.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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 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 fr...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma SPARK_Mode(On); generic type Thing is private; Basic:in Thing; package Stack is subtype Count is Natural; subtype Index is Count range 1 .. Count'Last; type Stack (Max_Capacity : Count) is private; type Store is array (Index range<>) of Thing; -- "Models": For pee...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Incomplete5_Pkg; package Incomplete5 is type Rec1 is private; type Rec2 is private; package My_G is new Incomplete5_Pkg (Rec1); use My_G; function Get (O: Base_Object) return Integer; private type Rec1 is record I : Integer; end record; type Rec2 is record A : Access_Ty...
with Ada.Strings.Fixed; with TCG.Utils; use TCG.Utils; with DOM.Core; use DOM.Core; with DOM.Core.Elements; use DOM.Core.Elements; with DOM.Core.Nodes; use DOM.Core.Nodes; package body TCG.Collision_Objects is type Polygon_Access is access all Polygon; function To_Float (Str : String) return Floa...
with System; package body CBOR_Codec is subtype Additional_Value_Type is Integer range 0 .. 31; Additional_8Bit : constant Additional_Value_Type := 24; Additional_16Bit : constant Additional_Value_Type := 25; Additional_32Bit : constant Additional_Value_Type := 26; Additional_64Bit : constant Addi...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2020, AdaCore -- -- -- -- ...
package CSS.Parser.Parser_Goto is type Rule is new Natural; type Nonterminal is new Integer; type Small_Integer is range -32_000 .. 32_000; subtype Small_Nonterminal is Nonterminal range -32_000 .. 32_000; type Goto_Entry is record Nonterm : Small_Nonterminal; Newstate : Small_Int...
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with ZMQ.Sockets; with ZMQ.Contexts; with ZMQ.Messages; with Ada.Text_IO; use Ada.Text_IO; procedure ZMQ.examples.Client is ctx : ZMQ.Contexts.Context; s : ZMQ.Sockets.Socket; begin -- Initialise 0MQ context, requesting a single application thread -- and a single I/O thread ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with processor_hpp; with memory_hpp; with lcd_hpp; with timer_handler_hpp; with Interfaces.C.Extensions; with word_operations_hpp; package gameboy_hpp is package Class_Gameboy is type Gameboy is limited record p : alia...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- 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...
with Ada.Exception_Identification.From_Here; with System.Address_To_Named_Access_Conversions; with System.Standard_Allocators; with System.Storage_Elements; with System.Zero_Terminated_WStrings; with C.string; with C.winerror; package body System.Native_Directories.Volumes is use Ada.Exception_Identification.From_He...
-- //////////////////////////////////////////////////////////// -- // -- // 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...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- 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...
with Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; with Ada.Text_IO; Use Ada.Text_IO; package inventory_list is -- inventory system that stores items from items.dat in a linked-list -- alphabetically. KEY_ERROR : exception; OVERFLOW : exception; type List_Type is private; type Node_Ptr is private; type v...
with System.Multiprocessors.Dispatching_Domains; use System.Multiprocessors.Dispatching_Domains; package Dispatch is My_Domain : Dispatching_Domain := Create(2,2); task My_Task with Dispatching_Domain => My_Domain; end Dispatch;
with System.Storage_Elements; private with Ada.Unchecked_Conversion; package Posix is type File; type File_Status; type Memory_Map; -- subtype unsigned_long is Interfaces.C.unsigned_long; -- subtype unsigned is Interfaces.C.unsigned; -- subtype int is Interfaces.C.int; -- subtype long is I...
pragma SPARK_Mode; with Sparkduino; use Sparkduino; with Interfaces.C; use Interfaces.C; package body Wire is Timeout : constant unsigned_long := 1; function RequestFrom (Addr : Byte; Quant : Byte; Stop : Boolean) return Byte is ...
-- This spec has been automatically generated from STM32F072x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.USART is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_UE_Field is STM32_SVD.Bit...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Basic_Subprogram_Calls.Child; with Other_Basic_Subprogram_Calls; with Subprogram_Unit; with Subprogram_Unit_2; package body Basic_Subprogram_Calls is function F7 return Integer; function F8 return Integer is begin return 42; end F8; function F9 return Integer; function F9 retu...
-- C45251A.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 openGL.Geometry; package openGL.Model.capsule.lit_colored_textured -- -- Models a lit, colored and textured capsule. -- is type Item is new Model.capsule.item with record Radius : Real; Height : Real; Color : lucid_Color; Image : asset_Name := null_Asset; ...