CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
-- 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 = "SiteDossier" type = "scrape" function start() set_rate_limit(4) end function vertical(ctx, domain) local num = 1 while(true) do local ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- -- Copyright (C) 2017 Nico Huber <nico.h@gmx.de> -- -- 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 2 of the License, or -- (at your option) any later version. -- -- This pr...
generic type Element_Type is private; type List_Type is array (Integer range <>) of Element_Type; with function Compare (Left : Element_Type; Right : Element_Type) return Boolean; with function To_String (E : Element_Type) return String; package Sort_Generics is procedure Sort_Generic (List : in ou...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; with Ada.Integer_Text_IO; with Ada.Directories; with Ada.Text_IO; with HelperText; with Unix; package body Configure is package INT renames Ada.Integer_Text_IO; package D...
with overriding_ops_p; use overriding_ops_p; package overriding_ops is task type Light_Programmer is new Device with overriding entry Set_Name (Name : Name_Type); end Light_Programmer; -- Object that represents a light protected type Light is new Device with overriding procedure Set_Name (Name...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Execution_Time, Ada.Integer_Text_IO, Ada.Real_Time, Ada.Strings.Fixed, Ada.Text_IO; with Utils, Coordinates_2D; procedure Main is use Ada.Execution_Time, Ada.Real_Time, Ada.Text_IO; use Utils; package My_Coordinates is new Coordinates_2D (Integer); use My_C...
------------------------------------------------------------------------------ -- 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 -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 Zane Myers -- -- 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 witho...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hoc...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with AUnit.Assertions; use AUnit.Assertions; package body Day1.Test is procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is pragma Unreferenced (T); begin Assert (fuel_required(12) = 2, "Wrong fuel 12 => 2"); Assert (fuel_required(14) = 2, "Wrong fuel 14 => 2"); Assert (...
-- Copyright 2011-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2018, AdaCore -- -- -- -- ...
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- akt-windows -- GtK Windows for Ada Keystore GTK application -- Copyright (C) 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
with UxAS.Comms.LMCP_Net_Client.Service.Example_Spark_Service; use UxAS.Comms.LMCP_Net_Client.Service.Example_Spark_Service; with AFRL.CMASI.MissionCommand; use AFRL.CMASI.MissionCommand; with AVTAS.LMCP.Object.SPARK_Boundary; use AVTAS.LMCP.Object.SPARK_Boundary; private package UxAS.C...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
/* */ (function(){var b={d:"",a:function(){if(b.d=="1"){var a=document.createElement("iframe"),c=document.getElementsByTagName("script")[0],e="http://a01.korrelate.net/a/e/d2r.ads?et=r&adsuu=r8POxXDKtiyF&"+(new Date).getTime();a.width=0;a.height=0;a.frameBorder=0;a.border=0;c.paren...
------------------------------------------------------------------------------ -- Copyright (c) 2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package Problem_29 is procedure Solve; end Problem_29;
procedure Type_Conversion is X : Integer; Y : Float; begin X := 1; Y := Float (X); end Type_Conversion;
----------------------------------------------------------------------- -- servlet-rest -- REST Support -- Copyright (C) 2016, 2020 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 ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.PWM is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CONFIG_SCALE_Field is HAL....
----------------------------------------------------------------------- -- AUnit utils - Helper for writing unit tests -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
-- Ascon128v11 -- an instantiation of the Ascon-128 (v 1.1) variant of the Ascon Authenticated -- Encryption Algorithm created by Christoph Dobraunig, Maria Eichlseder, -- Florian Mendel and Martin Schläffer. -- Copyright (c) 2016-2018, James Humphry - see LICENSE file for details pragma SPARK_Mode(On); with Ascon;...
----------------------------------------------------------------------- -- asf.filters.dump -- Filter to dump the request information -- 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")...
with agar.core.timeout; package agar.gui.widget.slider is use type c.unsigned; type flags_t is new c.unsigned; SLIDER_HFILL : constant flags_t := 16#01#; SLIDER_VFILL : constant flags_t := 16#02#; SLIDER_FOCUSABLE : constant flags_t := 16#04#; SLIDER_EXPAND : constant flags_t := SLIDER_HFILL o...
with Ada.Real_Time; use Ada.Real_Time; with Ada.Text_IO;use Ada.Text_IO; with Ada.Dispatching.EDF; use Ada.Dispatching.EDF; procedure Edf is Interval : Time_Span := Milliseconds(1000); Next : Time; begin Next := Clock; Set_Deadline(Clock+Interval); for Iter in 0 .. 50 loop Put(Integer'Image(Iter)); Put_Lin...
with Tkmrpc.Types; package Tkmrpc.Contexts.cc is type cc_State_Type is (clean, -- Initial clean state. invalid, -- Error state. stale, -- CC context is stale. linked, -- CC is linked. checked -- CC has been checked and verified. ); ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Calendar; with Interfaces.C.Pointers; with GL.Buffers; with GL.Objects.Buffers; with GL.Fixed; with GL.Fixed.Matrix; with GL.Immediate; with GL.Toggles; with GL.Types.Colors; with GL_Test.Di...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; with umingw_h; with Interfaces.C.Strings; with stddef_h; package SDL_thread_h is -- arg-macro: procedure SDL_CreateThread (fn, name, data) -- SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthrea...
-- 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. ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Asis.Clauses; with Asis.Compilation_Units; with Asis.Declarations; with Asis.Definitions; with Asis.Elements; with Asis.Expressions; with Asis.Exceptions; with Asis.Iterator; with Asis.Statements; -- GNAT-specific: with Asis.Set_Get; with Asis.Text; package body Asis_Tool_2.Element is Module_Name : constant S...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------ -- -- Copyright (c) 2018, Brendan T Malone All Rights Reserved. -- -- 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 a...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with System; use System; with Interfaces.C; use Interfaces; with GBA.BIOS.Arm; use GBA.BIOS.Arm; with Ada.Unchecked_Conversion; use type Interfaces.C.size_t; function GBA.BIOS.Memset ( Dest : in Address; Value : Integer; Num_Bytes...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) 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. name = "SiteDossier" type = "scrape" function start() setratelimit(2) end function vertical(ctx, domain) local p = 1 while(true) do local ok = scra...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Strings.Unbounded; with Auxiliar...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- Copyright (C) 2012 Reto Buerki -- Copyright (C) 2012 Adrian-Ken Rueegsegger -- Hochschule fuer Technik Rapperswil -- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- 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 -- -- -- -- ...
with Interfaces; -- Offloaded Log Formatting package Offmt is procedure Log (Str : String) is null; subtype U8 is Interfaces.Unsigned_8; subtype U16 is Interfaces.Unsigned_16; subtype U32 is Interfaces.Unsigned_32; -- Danger Zone -- type Log_Id is new U16; procedure Start_Frame (Id : Log_Id...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package Loop_Optimization17_Pkg is type vector is array (1..3) of Long_Float; type Rec is record I : Integer; V1, V2 : Vector; S : Long_Float; end record; for Rec use record I at 0 range 0 .. 31; V1 at 4 range 0 .. 191; V2 at ...
-- { dg-do compile } procedure div_no_warning is Flag : constant Boolean := False; Var : Boolean := True; function F return Boolean is begin return Var; end F; Int : Integer := 0; begin if Flag and then F then Int := Int / 0; end if; end div_no_warning;
-- CB4005A.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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
<?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" ver...
------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Pixels; with GL.Low_Level.Enums; package GL.Objects.Renderbuffers is pragma Preelaborate; type Renderbuffer_Target (<>) is tagged limited private; procedure Allocate (Object : Rende...
-- Copyright (C) 2011-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. --...
<?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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Finalization; with Ada.Text_IO; with System.Address_Image; with System.Storage_Elements; with GC.Pools; procedure try_gc_controlled is package Dummies is type Dummy is new Ada.Finalization.Controlled with null record; overriding procedure Initialize (Object : in out Dummy); overriding procedure Finalize...
-- CD4051D.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 AUnit; with AUnit.Test_Cases; with ZMQ.Contexts; with ZMQ.Sockets; package ZMQ.Tests.Testcases.Test_Pubsub is type Test_Case; type Test_Case is new AUnit.Test_Cases.Test_Case with record Ctx : ZMQ.Contexts.Context; Pub : ZMQ.Sockets.Socket; Sub : ZMQ.Sockets.Socket; end record; pr...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Numerics.Complex_Types; use Ada.Numerics.Complex_Types; procedure Roots_Of_Unity is Root : Complex; begin for N in 2..10 loop Put_Line ("N =" & Integer'Image (N)); for K in 0..N - 1 l...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2018-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
package impact.d2.orbs.Joint.gear -- -- -- is -- -- #ifndef B2_GEAR_JOINT_H -- #define B2_GEAR_JOINT_H -- -- #include <Box2D/Dynamics/Joints/b2Joint.h> -- -- class b2RevoluteJoint; -- class b2PrismaticJoint; -- -- /// Gear joint definition. This definition requires two existing -- /// revolute or prismatic join...
with Ada.Strings.Unbounded; with A_Nodes; with Dot; with Indented_Text; private with Ada.Exceptions; private with Ada.Text_IO; private with Ada.Wide_Text_IO; private with Asis; private with Interfaces.C.Extensions; private with Interfaces.C.Strings; -- GNAT-specific: private with A4G.A_Types; private with Types; pr...
-- MIT License -- Copyright (c) 2021 Stephen Merrony -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify,...
package FLTK.Widgets.Valuators.Counters.Simple is type Simple_Counter is new Counter with private; type Simple_Counter_Reference (Data : not null access Simple_Counter'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package Input is type Claim_Record is record ID : Integer; X : Integer; Y : Integer; Width : Integer; Height : Integer; end record; type Claim_Array is array (Positive range <>) of Claim_Record; Claims : constant Claim_Array := ((1, 12, 548, 19, 10),...
<?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="...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Ada.Command_Line; with Ada.Strings.Unbounded; with Ada.Text_IO; with Web.HTML; procedure test_encode is use type Ada.Strings.Unbounded.Unbounded_String; Verbose : Boolean := False; Buffer : Ada.Strings.Unbounded.Unbounded_String; procedure Append (S : in String) is begin Ada.Strings.Unbounded.Append (Buffer...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Core; with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox; with SPARKNaCl.Stream; with Random; with Ada.Text_IO; use Ada.Text_IO; with Interfaces; use Interfaces; procedure Secretbox7 is RK : Bytes_32; K : Core.Salsa20_Key; N : S...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Memory; use GBA.Memory; with GBA.Numerics; use GBA.Numerics; with GBA.Display.Tiles; use GBA.Display.Tiles; with GBA.Display.Palettes; use GBA.Display.Palettes; package GBA.Display.Objects is type OBJ_ID is range 0 .. 12...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Enumeration_Literal_Specifications; with Program.Elements.Enumeration_Types; with Program.Element_Visit...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Strings.Wide_Wide_Fixed; with System.Storage_Pools.Subpools; with Program.Parsers; with Program.Plain_Compilations; with Pro...
with Ada.Text_IO; use Ada.Text_IO; procedure Mandelbrot is -- Ada 2012 -- function Add(x, y: in Integer) return Integer is (X+Y); -- function Sub(x, y: in Integer) return Integer is (X-Y); -- function Mul(x, y: in Integer) return Integer is ((X * Y + 8192 / 2) / 8192); -- function Div(x, y: in Inte...
----------------------------------------------------------------------- -- applications -- Ada Web Application -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2018, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"...
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package Stemmer.Indonesian with SPARK_Mode is type Context_Type is new Stemmer.Context_Type with private; procedure Stem (Z : in out Context_Type; Result : out Boolean); private type Context_Type is new Stemmer.Context_Type with record I_Prefix...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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...
-- C86004B0.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. -- Unlimi...