CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Assertion_Policy (Check); with Libadalang.Analysis; with Extraction.Node_Edge_Types; with Extraction.Utilities; package body Extraction.Direct_Calls is use type LALCO.Ada_Node_Kind_Type; function Is_Duplicate_Callsite (Name : LAL.Name) return Boolean; function Is_Duplicate_Callsite (Name : LAL.Name)...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2017 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 = "SecurityTrails" type = "api" function start() setratelimit(1) end function check() if (api ~= nil and api.key ~= nil and a...
with Interfaces; use Interfaces; with Ada.Real_Time; use Ada.Real_Time; with Ada_Voxel; with SDL_Display; with Color_Map; with Height_Map; with Keyboard; with Ada.Numerics.Generic_Elementary_Functions; procedure Main is Screen_Width : constant := 800; Screen_Height : constant := 600; package Float_Fun...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Definitions; package Program.Elements.Formal_Type_Definitions is pragma Pure (Program.Elements.Formal_Type_...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with NeuralNet; with cl_objects; with opencl; with Ada.Finalization; with Ada.Containers.Vectors; with System; package GpuInference is pragma Elaborate_Body; type NNData is tagged limited private; function Create(ctx: cl_objects.Context_Access; nn: in NeuralNet.Net; cl_code: out opencl.Status) return NNDat...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Meta is pragma Pure; end Meta;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with POSIX.File_Status, Ada.Unchecked_Deallocation, Ada.IO_Exceptions; package body Shell.Directory_Iteration is -- Cursor -- function Has_Element (Pos : in Cursor) return Boolean is begin return Pos.Directory_Entry /= null; end Has_Element; -- Directory -- functio...
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. ------------------------------------------------------------...
with Ada.Text_IO; package body Eval is procedure Show (E : in Expr) is begin case E.Kind is when Add => Ada.Text_IO.Put ("Add("); when Sub => Ada.Text_IO.Put ("Sub("); when Mul => Ada.Text_IO.Put ("Mul("); when Div => Ada.T...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with HAL.UART; with Cortex_M.NVIC; with RP2040_SVD.Interrupts; with RP.Clock; with RP.Device; with RP.GPIO; with RP.UART; with ItsyBitsy; with ItsyBitsy_UART_Interrupt_Handlers; procedure ItsyBitsy_Slave_Interrupt_Main is subtype Buffer_Range is Integer range 1 .. 1; UART : RP.UART.UART_Port r...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; with Interfaces.C.Strings; with SDL_stdinc_h; package SDL_main_h is C_LINKAGE : aliased constant String := "C" & ASCII.NUL; -- ..\SDL2_tmp\SDL_main.h:86 -- unsupported macro: main SDL_main -- Simple DirectMedia...
with Ada.Assertions; use Ada.Assertions; with Ada.Containers.Hashed_Maps; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Hash; procedure Day18 is subtype Input_String is String (1 .. 50); type String_Array is array (Input_String'Range) of Input_String; fu...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Function_Body_Stubs is function Create (Not_Token : Program.Lexical_Elements.Lexical_Element_Access; Overr...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
With Ada.Text_IO; Procedure INI.Print(Object : Instance) is Procedure DEBUG_Print( Object : Value_Object ) is Begin Ada.Text_IO.Put_Line(if Object.Kind = vt_String then Object.String_Value else ABS Object ); End DEBUG_Print; Procedure D...
----------------------------------------------------------------------- -- streams.files.tests -- Unit tests for buffered streams -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
with Gtk.Window; use Gtk.Window; with Gtk.Widget; use Gtk.Widget; with Gtk.Handlers; with Gtk.Main; procedure Windowed_Application is Window : Gtk_Window; package Handlers is new Gtk.Handlers.Callback (Gtk_Widget_Record); package Return_Handlers is new Gtk.Handlers.Return_Callback (Gtk_Widget_Record...
with Ada.Directories; with Xmlhelpers; with Ada.Characters.Conversions; package body Generator.Sitemap is use Ada.Characters.Conversions; package DIR renames Ada.Directories; function Create ( Posts : Document_Container.List; Documents : Document_Container.List; Targetpath : Strin...
-- Copyright 2011-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. -- -- ...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; with League.String_Vectors; with League.Strings; package body LSP_Documents is function "...
-- Copyright 2016 Steven Stewart-Gallus -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agr...
-- -- This implementation encapsulates Ada.Containers.Vectors.Vector as a record entry. -- This is a common way to compose enveloping type, requiring glue code to implement all -- declared methods. SImple to understand, but only explicitly declared methods are available. -- -- Copyright (C) 2018 George SHapovalov <gsha...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with System; with Interfaces.C.Strings; package Sodium.Thin_Binding is package IC renames Interfaces.C; package ICS renames Interfaces.C.Strings; ------------------ -- Data Types -- -----------...
-- CE3806E.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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright 2017-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. -- -- ...
-*- Text -*- See https://pdc-svpaap1.umd.edu/policies/apt_forms.html for the CVTemplate.docx. I had issues with this, perhaps MS-Word/LibreOffice, perhaps my inability to work with WYSIWYG programs: For example, in II I would try and add an item in II.A.3 and it doesn't get the indent, but the one before. The TAB ke...
---------------------------------------- -- Copyright (C) 2019 Dmitriy Shadrin -- -- All rights reserved. -- ---------------------------------------- with Pal; with Ada.Finalization; with Ada.Strings.Unbounded; --use Ada.Strings.Unbounded; ----------------------------------------------------------------...
-- Copyright 2016-2019 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 Lto18_Pkg; use Lto18_Pkg; package Lto18 is procedure Proc (Driver : Rec); end Lto18;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package body Hello_World_CB is function HW_CB(Request : AWS.Status.Data) return AWS.Response.Data is begin return AWS.Response.Build("text/html", "<p>Hello World</p>"); end; end Hello_World_CB;
package body impact.d3.collision.point_Collector is overriding procedure addContactPoint (Self : in out Item; normalOnBInWorld : in math.Vector_3; pointInWorld : in math.Vector_3; depth : in ma...
with Memory.DRAM; use Memory.DRAM; package body Test.DRAM is procedure Test_Open is mem : DRAM_Pointer := Create_DRAM(cas_cycles => 2, rcd_cycles => 3, rp_cycles => 4, ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with openGL.Geometry; package openGL.Model.sphere.colored -- -- Models a colored sphere. -- is type Item is new openGL.Model.sphere.item with -- TODO: Make private. record Color : lucid_Color; end record; type View is access all Item'Class; --------- --- Forge -- f...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- package pc_1_coeff_17 -- -- Predictor_Rule : Integration_Rule renames Predictor_32_17; -- -- Corrector_Rule : Integration_Rule renames Corrector_33_17; -- -- Final_Step_Corrector : Real renames Final_Step_Corrector_33_17; -- generic type Real is digits <>; package pc_1_coeff_17 is subtyp...
-- CC3234A.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...
<?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...
-------------------------------------------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------------- -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Ada.Assertions; use Ada.Assertions; with Rejuvenation.String_Utils; use Rejuvenation.String_Utils; with Rejuvenation.Utils; use Rejuvenation.Utils; package body Predefined_Rewriters is -- Localize Ada Nodes in defining files Standard_Unit_Filename : constant String := "__standard"; -...
-- 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.IWDG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype KR_KEY_Field is STM32_SVD.UInt...
-- { dg-do compile } -- { dg-options "-O2" } package Opt28 is function Full_Filename (Filename : String) return String; end Opt28;
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x2.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....
-------------------------------------------------------- -- E n c o d i n g s -- -- -- -- Tools for convertion strings between Unicode and -- -- national/vendor character sets. -- -- - - - - - - - - -...
----------------------------------------------------------------------- -- el-contexts-tests - Tests the EL contexts -- Copyright (C) 2011 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 exc...
------------------------------------------------------------------------------- -- 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...
function Factorial(N : Positive) return Positive is Result : Positive := 1; begin if N > 1 then Result := N * Factorial(N - 1); end if; return Result; end Factorial;
with gel.Window.setup, gel.Applet.gui_world, gel.Camera, gel.Mouse, gel.Sprite, gel.Events, gel.Forge, Physics, float_Math, lace.Response, lace.Event.utility, Ada.Calendar, Ada.Text_IO, Ada.Exceptions; pragma unreferenced (gel.Window.setup); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
package Missile is type Missile_State is (ALIVE, TOUCHED, DEAD); type Missile is record State : Missile_State := DEAD; X : Integer; Y : Integer; Max_Y: Integer; Speed : Integer; end record; procedure appear_mis(s : in out Missile; X : Integer; Y : Integer; Max_Y : Integer)...
----------------------------------------------------------------------- -- util-log-appenders-consoles -- Console log appenders -- 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 m...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C.Pointers; package xcb.Pointers is -- xcb_connection_t_Pointer -- package C_xcb_connection_t_Pointers is new interfaces.c.Pointers (Index => interfaces.c.size_t, Element ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- An Ada source file which is supposed to be Ada95 only, but has -- some Ada 2005 code in it. procedure Has_05 is begin -- Introduce a deliberate Ada 2005 construct to verify that -- the style_checker uses -gnat05, and that the compiler -- therefore flags this as a violation. raise Constraint_Error wi...
-- C39006G.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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- PACKAGE Extended_Real.Elementary_Functions -- -- Taylor series are used to get Exp, Sin and Cos. Once these are calculated, -- Newton-Raphson iteration gives inverse functions: Log, Arccos, and Arcsin, -- Arctan. Similarly, starting with the function G(Y) = Y**(-N), -- Newton-Raphson iteration gives the inverse: ...
package Test_Subtypes is end Test_Subtypes;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2017 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 url = require("url") local json = require("json") name = "CertSpotter" type = "cert" function start() setratelimit(2) end function vertical(ctx, domain) ...
with Ada.Text_IO; use Ada.Text_IO; with Command_Line; procedure TC_CMD_Builtins is Cmd_1 : aliased constant String := "help"; Cmd_2 : aliased constant String := "help echo"; Cmd_3 : aliased constant String := "echo -n test"; Cmd_4 : aliased constant String := "echo test"; begin Ada.Text_IO.Put_Line ("...
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
-- This spec has been automatically generated from STM32F427x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; with HAL; package STM32_SVD.SYSCFG is pragma Preelaborate; --------------- -- Registers -- --------------- -------------------- -- MEMRM_Register -- -----...
----------------------------------------------------------------------- -- util-strings-transforms -- Various Text Transformation Utilities -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Ver...
with System; package Init2 is type Small is mod 2**2; for Small'Size use 2; type Count is mod 2**9; for Count'Size use 9; type Arr1 is array (1 .. 3) of Count; pragma Pack (Arr1); for Arr1'Size use 27; for Arr1'Scalar_Storage_Order use System.Low_Order_First; type R1 is record S1 : Small; ...
-- C64109F.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with Ada.Assertions; use Ada.Assertions; package body Memory.Perfect_Prefetch is function Create_Perfect_Prefetch(mem : access Memory_Type'Class) return Perfect_Prefetch_Pointer is result : constant Perfect_Prefetch_Pointer := new Perfect_Prefetch_Type; begin S...
No-one has translated the rtdealer example into Ada yet. Be the first to create rtdealer in Ada and get one free Internet! If you're the author of the Ada binding, this is a great way to get people to use 0MQ in Ada. To submit a new translation email it to zeromq-dev@lists.zeromq.org. Please: * Stick to identical ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package MIDI is procedure Initialize; procedure Update; end MIDI;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Common_Formal_Containers; use Common_Formal_Containers; package AFRL.CMASI.OperatingRegion.SPARK_Boundary with SPARK_Mode is pragma Annotate (GNATprove, Terminating, SPARK_Boundary); type OperatingRegionAreas is record KeepInAreas : Int64_Vect; KeepOutAreas : Int64_Vect; end record; fun...
------------------------------------------------------------------------------ -- -- -- 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="...
--- src/anet-sockets-inet.adb.orig 2019-10-30 14:36:44 UTC +++ src/anet-sockets-inet.adb @@ -69,7 +69,7 @@ package body Anet.Sockets.Inet is Res : C.int; Sock : Thin.Inet.Sockaddr_In_Type (Family => Socket_Families.Family_Inet); - Len : aliased C.int := Sock'Size / 8; + Len : aliased...
-<include_all_series_headers>- with Ada.Unchecked_Conversion; package body -<full_series_name_dots>-.Factory is procedure PutObject (Object : in Avtas.Lmcp.Object.Object_Any; Buffer : in out ByteBuffer); function PackMessage (RootObject : in Avtas.Lmcp.Object.Object_Any; EnableChecksum : in Boolean) return ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
with impact.d3.Shape.convex.internal; -- #include "impact.d3.Shape.convex.internal.polyhedral.box.h" -- #include "BulletCollision/BroadphaseCollision/impact.d3.collision.Proxy.h" // for the types -- #include "LinearMath/impact.d3.Vector.h" package impact.d3.Shape.convex.internal.cylinder -- -- The impact.d3.Sha...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...