CombinedText
stringlengths
4
3.42M
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Cross_Reference_Updaters; with Program.Elements.Call_Statements; with Program.Interpretations; package Program.Complete_Contexts.Call_Statemen...
package I_Am_Ada is procedure Ada_Procedure; pragma Export (C, Ada_Procedure, "ada_proc"); end I_Am_Ada;
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
-- Copyright 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. -- -- This...
with gel.Window.lumen, gel.Applet.gui_world, gel.Forge, gel.Sprite, gel.Joint, physics.Forge, opengl.Palette, float_math.Algebra.linear.d3; pragma Unreferenced (gel.Window.lumen); with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; procedure launch_add_rid -- -- Create...
with -- AdaM.Source, AdaM.Entity, gtk.Widget; package aIDE.Editor is type Item is abstract tagged private; type View is access all Item'Class; -- function to_Editor (Target : in AdaM.Source.Entity_view) return Editor.view; function to_Editor (Target : in AdaM.Entity.view) return Ed...
----------------------------------------------------------------------- -- ado-utils-serialize -- Utility operations for JSON/XML serialization -- Copyright (C) 2016, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Ada Web Server -- -- -- -- Copyright (C) 2005-2017, 2020, AdaCore -...
with Ada.Text_IO; procedure Integers_In_English is type Spellable is range -999_999_999_999_999_999..999_999_999_999_999_999; function Spell (N : Spellable) return String is function Twenty (N : Spellable) return String is begin case N mod 20 is when 0 => return "zero"; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Core; use SPARKNaCl.Core; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox; with SPARKNaCl.Stream; with Ada.Text_IO; use Ada.Text_IO; with System.Assertions; use System.Assertions; procedure Secretbox3 ...
-- -- 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...
pragma License (Unrestricted); -- implementation unit required by compiler with System.Wid_Char; package System.WWd_Char is pragma Pure; -- required for Character'Wide_Width by compiler (s-wwwdcha.ads) function Wide_Width_Character (Lo, Hi : Character) return Natural renames Wid_Char.Width_Character; ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <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; 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 ...
----------------------------------------------------------------------- -- util-http-clients-mockups -- HTTP Clients -- Copyright (C) 2011, 2012, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2017-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. name = "Wayback" type = "archive" function start() set_rate_limit(5) end function vertical(ctx, domain) scrape(ctx, {['url']=build_url(domain)}) end funct...
with Ada.Exceptions.Traceback, System.Address_Image, Gnoga.Application.Multi_Connect, Gnoga.Gui.Base, Gnoga.Gui.Window, Gnoga.Gui.View, Gnoga.Gui.Element.Common, Gnoga.Gui.Element.Form, Gnoga.Types, Gnoga.Gui.Document, Gnoga.Gui.Element.Table, NSO.JSON.Gnoga_Object, NSO.Types, INI.Parameters, -- INI.Print, INI.Sec...
with Ada.Calendar; with Fmt.Time_Argument; with Fmt.String_Argument; with Fmt.Integer_Argument; with Fmt.Duration_Argument; package Fmt.Stdtypes is -- integer support -- edit format (control_char=control_value;...) -- "w=" width -- "a=" align -- "f=" fillchar -- "b=" base (use lowercase extended di...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore -- -- -- -- ...
package Vect13 is -- Constrained array types are vectorizable type Sarray is array (1 .. 4) of Float; for Sarray'Alignment use 16; function "+" (X, Y : Sarray) return Sarray; procedure Add (X, Y : Sarray; R : out Sarray); end Vect13;
-- C87B31A.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...
pragma Ada_2012; with Interfaces.C.Strings; with Interfaces.C; use Interfaces.C; package body taglib is -- unsupported macro: TAGLIB_C_EXPORT __attribute__ ((visibility("default"))) -- unsupported macro: BOOL int type TagLib_File is record Dummy : aliased Int; -- /usr/include/taglib/tag_c.h:65 end reco...
with Ada.Tags; with Generic_Logging; with Langkit_Support.Slocs; with Langkit_Support.Text; With System.Address_Image; package body Lal_Adapter.Node is package Slocs renames Langkit_Support.Slocs; package Text renames Langkit_Support.Text; --------------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="17"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- AWA.Jobs.Models -- AWA.Jobs.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen.goog...
-- implementation of package Bubble -- see bubble.ads for a specification -- which gives a brief overview of the package with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; package body Bubble is protected body State is procedure Set_All(a, b, c, d : Integer) is ...
-- { dg-do compile } pragma Restrictions(No_Elaboration_Code); package Elab3 is type T_List is array (Positive range <>) of Integer; type T_List_Access is access constant T_List; type R is record A : T_List_Access; end record; C : constant R := (A => null); end Elab3;
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with League.Strings; with WebIDL.Arguments; with WebIDL.Constructors; with WebIDL.Definitions; with WebIDL.Enumerations; with WebIDL.Interface_Members; wit...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-log-appenders-formatters -- Log appenders -- Copyright (C) 2001 - 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 t...
------------------------------------------------------------------------------ -- Copyright (C) 2012-2020 by Heisenbug Ltd. -- -- 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 Hocevar. See the LICE...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- @author Alexander Senier -- @date 2019-01-21 -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without...
with Animals.Humans; with Animals.Flying_Horses; use Animals; with Ada.Text_IO; use Ada.Text_IO; procedure Test_Humans_Horses is Rider : Humans.Human := Humans.Make ("Knight Rider", Humans.Male); Pegasus : Flying_Horses.Flying_Horse := Flying_Horses.Make (Flying_Horses.Snow_White);...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
type Link; type Link_Access is access Link; type Link is record Next : Link_Access := null; Data : Integer; end record;
package body OpenGL.Texture is -- -- Mappings between enumeration types and OpenGL constants. -- function Environment_Target_To_Constant (Target : in Environment_Target_t) return Thin.Enumeration_t is begin case Target is when Texture_Environment => return Thin.GL_TEXTURE_ENV; when Te...
<?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 AdaM.Assist is function Tail_of (the_full_Name : in Identifier) return Identifier; function strip_Tail_of (the_full_Name : in Identifier) return Identifier; function type_button_Name_of (the_full_Name : in Identifier) return String; -- function Split (the_Text : in String) ...
-- part of ParserTools, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package body Lexer.Source.File is overriding procedure Read_Data (S : in out Instance; Buffer : out String; Length : out Natural) is use type Ada.Direc...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2021, AdaCore -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- 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 openGL.Tasks, GL.Binding, ada.unchecked_Deallocation; package body openGL.Primitive is --------- -- Forge -- procedure define (Self : in out Item; Kind : in facet_Kind) is begin Self.facet_Kind := Kind; end define; procedure free (Self : in out View) is ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
F1, F2 : File_Type; begin Open (F1, In_File, "city.ppm"); declare X : Image := Get_PPM (F1); begin Close (F1); Create (F2, Out_File, "city_sharpen.ppm"); Filter (X, ((-1.0, -1.0, -1.0), (-1.0, 9.0, -1.0), (-1.0, -1.0, -1.0))); Put_PPM (F2, X); end; Close (F2);
-- -- PQueue -- Generic protected queue package -- -- This code was adapted from two different chunks of code in Norman -- H. Cohen's excellent book Ada as a Second Language. It implements a simple -- protected generic queue type. generic type Data_Type is private; package PQueue is pragma Preelaborate; -----...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from ATSAMG55J19.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- Power Management Controller package Interfaces.SAM.PMC is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Regist...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright 2018-2020 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. -- -- ...
with Blueprint; use Blueprint; package Init_Project is procedure Init (Path : String; Blueprint : String; ToDo : Action); private end Init_Project;
pragma SPARK_Mode(On); package body Stack is function Top (S : in Stack) return Thing is (S.Elements (S.Quantity)); procedure Pop (S : in out Stack) is begin S.Quantity := S.Quantity - 1; end Pop; procedure Put (S : in out Stack; E : Thing) is begin S.Quantity := S.Quantity + 1; S.Elements (...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package Mission with SPARK_Mode is -- the mission can only go forward type Mission_State_Type is ( UNKNOWN, INITIALIZING, SELF_TESTING, ASCENDING); procedure run_Mission; end Mission;
-- 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...
package body agar.gui.widget.icon is package cbinds is function allocate_from_bitmap (filename : cs.chars_ptr) return icon_access_t; pragma import (c, allocate_from_bitmap, "AG_IconFromBMP"); procedure set_text (icon : icon_access_t; str : cs.chars_ptr); pragma import (c, set_tex...
Package body Dbase.Login is CIB : Direct_Cursor; function If_Exists (Usrnme : Unbounded_String) return Boolean is Stmt : Prepared_Statement; SQLstatement : Unbounded_String; begin SQLstatement := "SELECT * FROM users WHERE username = '"& Usrnme & "'"; Add (Standard_Window, ...
with Ada.Containers.Vectors, Ada.Streams; private with AdaM.Declaration.of_renaming.a_subprogram, AdaM.Declaration.of_renaming.a_package, AdaM.Declaration.of_renaming.a_generic; package AdaM.library_Unit.renaming_declaration is type Item is new library_Unit.item with private; -- Vie...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Bases.Test_Data.Tests.Recruit_Container is end Bases.Test_Data.Tests.Recruit_Container;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2004 Dmitriy Anisimkov -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- C25001A.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-2017, AdaCore -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x5.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.PWR is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_LPMS_Field is HAL....
with Ada.Unchecked_Conversion; with Ada.Command_Line; with Ada.Finalization; package body GLUT is -- finalization - free Argv strings -- -- RK 23 - Oct - 2006, to remove the memory leak in question. -- type Argvz is array (0 .. 500) of aliased Interfaces.C.Strings.chars_ptr; type Arg_...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_set_client_info_arb_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interface...
with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; package ShapeMatchingTests is type TestCase is new AUnit.Test_Cases.Test_Case with null record; procedure Register_Tests(T: in out TestCase); function Name(T: TestCase) return Message_String; procedure testBasicShapes(T : in out Test_Ca...
----------------------------------------------------------------------- -- util-nullables -- Basic types that can hold a null value -- 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 us...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- asf-views -- Views -- Copyright (C) 2011, 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 in compliance...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- Fichier : display_shell.adb -- Auteur : MOUDDENE Hamza & CAZES Noa -- Objectif : Spécification du package Display_Shell -- Crée : Dimanche Nov 25 2019 ---------------------------------------------------------------------------...
-- Copyright 2012-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Main is -- type Number_Of_Tests_T is ? -- type Test_Score_Total_T is ? -- Number_Of_Tests : Number_Of_Tests_T; -- Test_Score_Total : Test_Score_Total_T; -- type Degrees_T is ? -- Angle : Degrees_T; -- type Cymk_T is ? -- Color : Cymk_T; b...
generic Max_Elements : Positive; type Number is digits <>; package Moving is procedure Add_Number (N : Number); function Moving_Average (N : Number) return Number; function Get_Average return Number; end Moving;
with Ada.Numerics.Discrete_Random; with Ada.Streams.Stream_IO; with Ada.Text_IO; with Ada.Unchecked_Deallocation; with Hashing; with Ada.Containers.Vectors; package body Benchmark_S_Graph_2 is package Skill renames Graph_2.Api; use Graph_2; use Skill; type State_Type is access Skill_State; State : Sta...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Types; package GL.Tessellation is pragma Preelaborate; use GL.Types; procedure Set_Patch_Vertices (Value : Int); procedure Set_Patch_Default_Inner_Level (Values : Single_Array); ...
pragma License (Unrestricted); -- extended unit package Ada.Numerics.Distributions is -- Some kinds of distributions of random numers. pragma Pure; -- Simple distributions generic type Source is mod <>; type Target is (<>); function Linear_Discrete (X : Source) return Target; -- [0,...
----------------------------------------------------------------------- -- views.nodes.jsf -- JSF Core Tag Library -- Copyright (C) 2010, 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...
with Ada.Text_IO; with Ada.Long_Long_Integer_Text_IO; with PrimeInstances; package body Problem_15 is package IO renames Ada.Text_IO; procedure Solve is package Positive_Primes renames PrimeInstances.Positive_Primes; primes : constant Positive_Primes.Sieve := Positive_Primes.Generate_Sieve(40); ...
-- -- 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...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ skills vector container implementation -- -- |___/_|\_\_|_|____| by: Dennis Przytarski, Timm Felden ...