content stringlengths 23 1.05M |
|---|
-----------------------------------------------------------------------
-- mat-readers-sockets -- Reader for TCP/IP sockets
-- Copyright (C) 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 f... |
-- This spec has been automatically generated from cm0.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Cortex_M_SVD is
pragma Preelaborate;
--------------------
-- Base addresses --
--------------------
NVIC_Base : constant System.Addr... |
-- Generated at 2014-11-09 20:46:38 +0000 by Natools.Static_Hash_Maps
-- from src/natools-static_hash_maps-s_expressions-hash_maps.sx
private package Natools.Static_Hash_Maps.S_Expressions.Command_Maps is
function To_Package_Command (Key : String) return Package_Command;
function To_Map_Command (Key : String)... |
-- This spec has been automatically generated from cm7.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Cache maintenance operations
package Cortex_M_SVD.Cache is
pragma Preelaborate;
---------------
-- Registers --
---------------
... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.USART; use STM32_SVD.USART;
with STM32GD.USART; use STM32GD.USART;
with STM32GD.Board;
with Peripherals;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Interrupts;
with Ada.Interrupts.Names;
with Ada.Synchronous... |
with Text_IO;
procedure Main
with SPARK_Mode
is
-- The function below is intended to determine whether a given triangle
-- (specified by the lengths of its three sides) is a right-angle triangle.
-- The postcondition and the code have been made simpler by making a
-- precondition on the caller that ... |
--
-- 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 (c) 2017-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.JSON.Values;
separate (WebDriver.Remote)
package body Drivers is
function "+"
(Text : Wide_Wide_String) ret... |
-----------------------------------------------------------------------
-- EL.Methods.Func_1 -- Function Bindings with 1 argument
-- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
package MD5 is
type Int32 is mod 2 ** 32;
type MD5_Hash is array (1 .. 4) of Int32;
function MD5 (Input : String) return MD5_Hash;
-- 32 hexadecimal characters + '0x' prefix
subtype MD5_String is String (1 .. 34);
function To_String (Item : MD5_Hash) return MD5_String;
end MD5;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package Memory.DRAM is
type DRAM_Type is new Memory_Type with private;
type DRAM_Pointer is access all DRAM_Type'Class;
function Create_DRAM(cas_cycles : Time_Type; -- CAS latency
rcd_cycles : Time_Type; -- RCD latency
rp_cycles : Time_Type; ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Ada.Containers.Vectors;
with Ada.Numerics.Discrete_Random;
procedure Bulls_Player is
-- package for In-/Output of natural numbers
package Nat_IO is new Ada.Text_IO.Integer_IO (Natural);
-- for comparing length of the vectors
use type Ada.Containers.Count_Type;
-- number of digi... |
-- -*- Mode: Ada -*-
-- Filename : crash.ads
-- Description : Provides access to the multiboot information from GRUB
-- Legacy and GRUB 2.
-- Author : Luke A. Guest
-- Created On : Thur Nov 17 16:52:05 2016
-- Licence : See LICENCE in... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package avx512vlbwintrin_h is
-- Copyright (C) 2014-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General P... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package x86_64_linux_gnu_asm_ptrace_h is
-- SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
-- For
-- this struct defines the way the registers are stored on the
-- stack during a system call.
-- * C ABI says... |
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
with Ada.Wide_Wide_Text_IO;
with AWS.Client;
with AWS.Headers;
with AWS.Messages;
with AWS.Response;
with League.S... |
with text_io; use text_io;
procedure main is
begin
put_line("It works!");
end main;
|
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
-- 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... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Assertions; use Ada.Assertions;
with Ada.Numerics.Discrete_Random;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Calendar; use Ada.Calendar;
with Ada.Directories; use Ada.Directories;
procedure Sc... |
with UxAS.Comms.Transport.Socket_Configurations;
use UxAS.Comms.Transport.Socket_Configurations;
with ZMQ.Sockets;
package UxAS.Comms.Transport.ZeroMQ_Socket_Configurations is
type ZeroMq_Socket_Configuration is new Socket_Configuration with record
Zmq_Socket_Type : ZMQ.Sockets.Socket_Type;
Is... |
-----------------------------------------------------------------------
-- util-encoders -- Encode/Decode streams and strings from one format to another
-- Copyright (C) 2009, 2010, 2011, 2016, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache... |
package Problem_58 is
-- Starting with 1 and spiralling anticlockwise in the following way, a
-- square spiral with side length 7 is formed.
--
-- 37 36 35 34 33 32 31
-- 38 17 16 15 14 13 30
-- 39 18 5 4 3 12 29
-- 40 19 6 1 2 11 28
-- 41 20 7 8 9 10 27
-- 42 21 22 23 24 25 26
--... |
with HAL; use HAL;
with HAL.Framebuffer; use HAL.Framebuffer;
with HAL.Bitmap;
private with STM32.Device;
private with STM32.DMA2D_Bitmap;
private with STM32.LTDC;
private with OTM8009A;
private with HAL.DSI;
package Framebuffer_OTM8009A is
LCD_Natural_Width : constant := 800;
LCD_Natural_Height :... |
-- 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... |
with fann_c.Binding;
with fann_c.Fann;
with fann_c.Pointers;
with Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test
is
use Interfaces, interfaces.C,
fann_c, fann_c.Binding, fann_c.Pointers;
calc_out : fann_type_Pointer;
input : a... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package OCONST5 is
type u1 is mod 2**1;
type u8 is mod 2**8;
type HI_Record is record
A, B : U8;
end record;
pragma Suppress_Initialization (HI_Record);
type R is record
Bit : U1;
Agg : HI_Record;
end record;
pragma Suppress_Initialization (R);
for R use record
Bit at 0 range 0... |
pragma License (Unrestricted);
with Ada.Numerics.Generic_Real_Arrays;
package Ada.Numerics.Long_Long_Real_Arrays is
new Generic_Real_Arrays (Long_Long_Float);
pragma Pure (Ada.Numerics.Long_Long_Real_Arrays);
|
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tk.Image.Photo.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Image.Photo
.Test_Data
... |
------------------------------------------------------
--| Semaphores |
------------------------------------------------------
--| Author | Jack (Yevhenii) Shendrikov |
--| Group | IO-82 |
--| Variant | #25 ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_2012;
package body Adventofcode.Day_6 is
-----------
-- Value --
-----------
function Value (Item : String) return Reply_Type is
begin
return Ret : Reply_Type do
for C of Item loop
Ret (Question_Id (C)) := True;
end loop;
end return;
end Value;
... |
with Prime_Numbers;
procedure Test_Prime is
package Integer_Numbers is new
Prime_Numbers (Natural, 0, 1, 2);
use Integer_Numbers;
begin
if Is_Prime(12) or (not Is_Prime(13)) then
raise Program_Error with "Test_Prime failed!";
end if;
end Test_Prime;
|
with System;
with System.Storage_Pools;
package GC.Pools is
type GC_Storage_Pool is new System.Storage_Pools.Root_Storage_Pool
with null record;
overriding procedure Allocate (
Pool : in out GC_Storage_Pool;
Storage_Address : out System.Address;
Size_In_Storage_Elements : in System.Storage_Elements.Storag... |
-- { dg-do compile }
-- { dg-options "-gnatct" }
package Task1 is
type Cable_Task_1 (C : Boolean) is limited private;
type Cable_Rec is limited record
Tsk_1 : Cable_Task_1 (C => False);
end record;
private
task type Cable_Task_1 (C : Boolean) is
end Cable_Task_1;
end Task1;
|
--
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- The version of the OpenAPI document: 20220523
--
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.4.0.
-- https://openapi-generator.tech
-- Do not edit the class manually.
prag... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
--------------------------------------------------------------------------
-- Arbitrary Precision Math Library
-- Joe Wingbermuehle 20020320 <> 20020327
--------------------------------------------------------------------------
with Ada.Finalization;
package Arbitrary is
-- Set to false for increased speed
DEBUG_C... |
with Numerics, Ada.Text_IO, Auto_Differentiation.Integrator, Chebyshev;
use Numerics, Ada.Text_IO, Auto_Differentiation.Integrator, Chebyshev;
procedure Auto_Differentiation.Lagrangian is
-- Set Up Parameters -----------------
Control : Control_Type
:= (N => 2, Dt => 0.01, Eps => 1.0e-10, Err => 1.0, K =... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Bases.Trade.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Bases.Trade.Test_Data
.Test wit... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Parsers.Multiline_Source Luebeck --
-- Interface Winter, 2004 --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- File : Game_control.ads
-- Description : Command set for games, based on GLUT
-- Copyright (c) Gautier de Montmollin 2002, 2005 .. 2008
----------------------------------------------------------------------------... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
with Ada.Streams.Stream_IO.Naked;
with System.Native_IO;
package body Ada.Streams.Stream_IO.Pipes is
procedure Create (Reading, Writing : out File_Type) is
Handles : array (0 .. 1) of aliased System.Native_IO.Handle_Type;
begin
System.Native_IO.Open_Pipe (Handles (0), Handles (1));
Naked.Open (... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Definitions;
package Program.Elements.Discrete_Ranges is
pragma Pure (Program.Elements.Discrete_Ran... |
with Module_IO;
with Google_Naive;
with Google_Creuse;
with Types; use Types;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure PageRank i... |
with
lace.Environ.Paths;
package lace.Environ.OS_Commands
--
-- Allows running of operating system commands.
--
is
function Path_to (Command : in String) return Paths.Folder;
procedure run_OS (command_Line : in String;
Input : in String := "");
--
-- Discards any outpu... |
--- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package AdaBase.Results.Field is
type Std_Field is tagged private;
type Field_Access is access Std_Field;
type Variant (datatype : field_types := ft_nbyte8) is
record
case datatype is
... |
with Deferred_Const4_Pkg;
package Deferred_Const4 is
type R1 is tagged record
I1 : Integer;
end record;
type R2 is new R1 with record
I2 : Integer;
end record;
package My_Q is new Deferred_Const4_Pkg (R2);
function F return My_Q.T;
end Deferred_Const4;
|
-- C37003A.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 Giza.Widget.Frame; use Giza.Widget.Frame;
with Giza.Widget.Button; use Giza.Widget.Button;
with Giza.Widget.Composite; use Giza.Widget.Composite;
with Ada.Real_Time; use Ada.Real_Time;
package Giza.Widget.Number_Selection is
subtype Parent is Frame.Instance;
type Instance is new Parent with private;
sub... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with AUnit.Run;
with AUnit.Reporter.Text;
with Regex_Test_Suite;
with Utilities_Test_Suite;
procedure Regex_Test is
procedure Regex_Test_... |
package NullRecord is
type Null_Record_1 is null record;
type Null_Record_2 is record
null;
end record;
end NullRecord;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Recursion_Depth is
function Recursion (Depth : Positive) return Positive is
begin
return Recursion (Depth + 1);
exception
when Storage_Error =>
return Depth;
end Recursion;
begin
Put_Line ("Recursion depth on this system is" & Integ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-votes -- Module votes
-- 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 complianc... |
separate (Numerics.Sparse_Matrices)
procedure Remove_Duplicates (Mat : in out Sparse_Matrix) is
N, Iter : Pos := 0;
J : Int_Array (1 .. Nat (Mat.P.Length)) := (others => 0);
I : Int_Array (1 .. Pos (Mat.I.Length));
X : Real_Vector (1 .. Pos (Mat.X.Length));
begin
for K in 1 .. Nat (Mat.P.Length) - 1 l... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER 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 li... |
with Ada.Directories;
with Ahven.Framework;
with Annotation.Api;
package Test_Annotation.Write is
package Skill renames Annotation.Api;
use Annotation;
use Annotation.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure Set_Up (T : in... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Scripts;
procedure Show_Script is
begin
Ada.Text_IO.Put ("Create SQLite");
Ada.Text_IO.Put (Natural'Image (Scripts.create_database'Length));
Ada.Text_IO.Put_Line (" lines");
for Line of Scripts.create_database loop
Ada.Text_IO.Put_Line (Line.all);
end loop;
Ada.Text_IO.Pu... |
select
accept Wake_Up (Parameters : Work_Item) do
Current_Work_Item := Parameters;
end;
Process (Current_Work_Item);
or accept Shut_Down;
exit; -- Shut down requested
end select;
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
generic
type Base (<>) is new Texture_Proxy with private;
package GL.Objects.Textures.With_2D_Loader is
pragma Preelaborate;
type Target is new Base with null record;
procedure Load_Empty_... |
pragma License (Unrestricted);
-- runtime unit specialized for Darwin
package System.Storage_Map is
pragma Preelaborate;
function Load_Address return Address;
pragma Inline (Load_Address);
Growing_Down_Is_Preferred : constant Boolean := False;
end System.Storage_Map;
|
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Strings_Edit.UTF8.Handling Luebeck --
-- Implementation Spring, 2005 --
-- ... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
with Ada.Text_IO;
with Ada.Text_IO.Complex_IO;
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics.Generic_Complex_Types;
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada_Lapack;
use Ada.Text_IO;
procedure ... |
-- C32112B.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... |
private with Ada.Streams;
package Crypto is
pragma Pure;
pragma Linker_Options ("-lcrypto");
private
procedure Value (
Image : String;
Result : out Ada.Streams.Stream_Element_Array);
procedure Image (
Value : Ada.Streams.Stream_Element_Array;
Result : out String);
end Crypto;
|
with Ada.Processes;
with Ada.Text_IO;
with System.Program;
with System.Storage_Elements.Formatting;
with System.Unwind.Occurrences;
procedure btsym is
procedure Report (
X : System.Unwind.Exception_Occurrence;
Where : String) is
begin
System.Unwind.Occurrences.Default_Report (X, Where);
if X.Num_Tracebacks > ... |
--with Ada.Text_IO;
with Ada.Numerics.Elementary_Functions;
--use Ada.Text_IO;
use Ada.Numerics.Elementary_Functions;
--procedure call_recur is
--function fac(n: Natural) is
--begin
-- if n = 1 then
-- return 1;
-- else
-- return n * fac(n - 1);
-- end if;
-- return;
--end fac;
functio... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- Redis... |
with VisitFailurePackage, VisitablePackage, EnvironmentPackage;
use VisitFailurePackage, VisitablePackage, EnvironmentPackage;
with Ada.Text_IO; use Ada.Text_IO;
package body ChoiceIdStrategy is
----------------------------------------------------------------------------
-- Object implementation
-----------------... |
with
lace.make_Observer.deferred,
lace.Any;
private
with
ada.Strings.unbounded;
package lace.Observer.deferred
--
-- Provides a concrete deferred event observer.
--
is
type Item is limited new Any.limited_item
and Observer .item with private;
type View is access all It... |
with Ada.Text_IO;
procedure Value_Capture is
protected type Fun is -- declaration of the type of a protected object
entry Init(Index: Natural);
function Result return Natural;
private
N: Natural := 0;
end Fun;
protected body Fun is -- the implementation of a protected object
entry... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- ________ ___ ______ ______ ___
-- /___ .. ._/ |.| |.___.\ /. __ .\ __|.| ____
-- / .. / |.| |.____/ |.|__|.| / .. ..| __\ .. \
-- _/ .. /___ |.| |.| === | .. __ .. ||. = .| | = .. |
-- /_______/ |_| /__| /__| |_| \__\_| \__\_|
-- This package provides:
-... |
with Ada.Streams; use Ada.Streams;
with GNAT.Sockets.MQTT; use GNAT.Sockets.MQTT;
package MQTT_Clients is
type MQTT_Client is new MQTT_Pier with private;
overriding
procedure On_Connect_Accepted (Pier : in out MQTT_Client;
Session_Present : Boolean);
... |
with System;
with lvgl_ada_Config;
with HAL;
package BB_Pico_Bsp.LCD is
Width : constant := lvgl_ada_Config.Horizontal_Resolution;
Height : constant := lvgl_ada_Config.Vertical_Resolution;
procedure Send_Pixels (X1, Y1, X2, Y2 : Natural;
Addr : System.Address;
... |
-- Generated at 2014-11-09 20:46:38 +0000 by Natools.Static_Hash_Maps
-- from src/natools-static_hash_maps-s_expressions-hash_maps.sx
function Natools.Static_Hash_Maps.S_Expressions.Command_Maps.Test
return Boolean;
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
generic
type Parent is abstract new Test_Event_Base with private;
package Apsepp.Test_Event_Class.Generic_Timestamp_Mixin is
type Child_W_Timestamp is new Parent with private
with Type_Invariant'Class... |
with Colors; use Colors;
with Vectors; use Vectors;
-- @summary Lights that shine onto a Scene
package Lights is
type Light_Type is private;
-- Light_Type has a position and a color
type Light_Array is array( Positive range <> ) of Light_Type;
function Create_Light(Position: Vector; Color: Color_Type) re... |
-- BinToAsc.Testable
-- Expose some private internals of BinToAsc for unit testing
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
generic
package BinToAsc.Testable is
procedure Check_Make_Reverse_Alphabet (T : in out Test_Ca... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Ordered_Sets;
procedure Test_Happy_Digits is
function Is_Happy (N : Positive) return Boolean is
package Sets_Of_Positive is new Ada.Containers.Ordered_Sets (Positive);
use Sets_Of_Positive;
function Next (N : Positive) return Natural is
... |
-----------------------------------------------------------------------
-- util-dates-rfc7231-- RFC7231 date format utilities
-- Copyright (C) 2015, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with Interfaces;
use Interfaces;
with GBA.Memory.IO_Registers;
use GBA.Memory.IO_Registers;
package GBA.Timers is
subtype Timer_Value is Unsigned_16;
type Timer_Scale is
( x1
, x64
, x256
, x1024
);
for Timer... |
with text_io;
procedure rank_distr is
type Real is digits 15;
L : constant Integer := 61; -- length of vector in bits
k : constant Integer := L; -- no of vectors in matrix whose rank is to be calculated.
Sum, Product : Real;
Prob : array(1..k) of Real := (others => 0.0);
begin
for x in k-7 .. k loop
... |
<?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/>
<cdfg class_id="1" tracking_level="1" version="0... |
-------------------------------------------------------------------------------
-- package Disorderly.Random, Non-linear Random Number Generator
-- Copyright (C) 1995-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted,... |
package FLTK.Images.RGB.PNG is
type PNG_Image is new RGB_Image with private;
type PNG_Image_Reference (Data : not null access PNG_Image'Class) is limited null record
with Implicit_Dereference => Data;
package Forge is
function Create
(Filename : in String)
... |
package Bubble with SPARK_Mode is
type Arr is array (Integer range <>) of Integer;
function Sorted (A : Arr) return Boolean is
(for all I in A'First .. A'Last - 1 => A(I) <= A(I + 1))
with
Ghost,
Pre => A'Last > Integer'First,
Post => Sorted'Result = (for all I in A'Fi... |
with Histograms;
with Memory.Container; use Memory.Container;
package Memory.Stats is
type Stats_Type is new Container_Type with private;
type Stats_Pointer is access all Stats_Type'Class;
function Create_Stats(mem : access Memory_Type'Class) return Stats_Pointer;
overriding
function Clone(mem : St... |
---------------------------------
-- GID - Generic Image Decoder --
---------------------------------
--
-- Purpose:
--
-- The Generic Image Decoder is a package for decoding a broad
-- variety of image formats, from any data stream, to any kind
-- of medium, be it an in-memory bitmap, a GUI object,
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.