text
stringlengths
4
1.04M
-- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. name = "IPv4Info" type = "scrape" function start() setratelimit(1) end function vertical(ctx, domain) local path = getpath(ctx, domain) if path == "" then ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Anagram.Grammars; with Program.Parsers.Nodes; private procedure Program.Parsers.On_Reduce_1 (Self : access Parse_Context; Prod : Anagram.Grammars.Production_Index; Nodes : in out Program.Parsers.Nodes.Node_Array); pragma Preelaborate (Program.Parsers.On_Reduce_1);
with Sf.System.Time; package body Sf.System.Sleep is procedure sfDelay (Seconds : Duration) is begin sfSleep (Duration => Time.sfSeconds (Float (Seconds))); end sfDelay; end Sf.System.Sleep;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Modular_Types; with Program.Element_Visitors; ...
package Problem_23 is procedure Solve; end Problem_23;
<?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="...
----------------------------------------------------------------------- -- date -- Print the date -- 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 except in compliance w...
with Ada.Text_IO; with Ada.Numerics; with Ada.Numerics.Generic_Elementary_Functions; package body NeuralNet is function activate(n: in Neuron; val: in Float) return Float is begin case n.act is when RELU => return Float'Max(0.0, val); when LOGISTIC => return 1.0 / ...
-- Example based on http://www.embedded.com/design/prototyping-and-development/4025713/Programming-real-time-with-Ada-2005, and -- https://en.wikibooks.org/wiki/Ada_Style_Guide/Concurrency package Threadsafe_Containers is type IntegerArray is array (Positive range<>) of Integer; -- Interface -- protected Th...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising fr...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Containers.Vectors; with Program.Compilation_Unit_Vectors; package Program.Units.Vectors is pragma Preelaborate; type Unit_Vector is limit...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- { dg-do run } with Interfaces.C; use Interfaces.C; procedure Sizetype1 is TC_String : String(1..8) := "abcdefgh"; TC_No_nul : constant char_array := To_C(TC_String, False); begin if TC_No_nul(0) /= To_C('a') then raise Program_Error; end if; end;
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, including without limitation the -- rights to use, cop...
procedure hola is I, X : Integer; begin I := 1; X := 4; while I <= 6 AND X = 4 loop put(I); I := I + 1; end loop; X := 4 + 4; put("Fin del programa \n"); end hola;
-- Copyright 2016-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. -- -- ...
with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Operation_Handlers.Ike.Dh_Generate_Key is procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type); -- Handler for the dh_generate_key operation. end Tkmrpc.Operation_Handlers.Ike.Dh_Generate_Key;
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. with Ada.Containers.Indefinite_Vectors.Test...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.SYSCTL is pragma Preelaborate; ...
<?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="...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package FLTK.Widgets.Valuators.Rollers is type Roller is new Valuator with private; type Roller_Reference (Data : not null access Roller'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (X, Y, W, H : in Integer; ...
----------------------------------------------------------------------- -- mat-formats - Format various types for the console or GUI interface -- Copyright (C) 2015, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
-- CA1020E1.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...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- EL.Objects.Time.Tests - Testsuite time objects -- Copyright (C) 2010, 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 th...
pragma Warnings (Off); pragma Ada_95; with System; with System.Parameters; with System.Secondary_Stack; package ada_main is gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_env...
with Ada.Text_IO, Ada.Integer_Text_IO; use Ada; procedure fizz_buzz is begin for i in 1..100 loop if i mod 15 = 0 then Text_IO.Put_Line("fizz buzz"); elsif i mod 5 = 0 then Text_IO.Put_Line("buzz"); elsif i mod 3 = 0 then Text_IO.Put_Line("fizz"...
-- Abstract : -- -- Config parsing subprograms. -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or ...
package Tkmrpc.Contexts is end Tkmrpc.Contexts;
package body Basic_Subprogram_Calls.Child is function Child_F1 return Integer is begin return 42; end Child_F1; procedure Child_P1 is begin null; end Child_P1; end Basic_Subprogram_Calls.Child;
with SiFive.SPI; use SiFive.SPI; with SiFive.PWM; use SiFive.PWM; with System; use System; with SiFive.GPIO; use SiFive.GPIO; with SiFive.UART; use SiFive.UART; package SiFive.Device is -- GPIO0 -- GPIO0 : aliased GPIO_Controller (268828672); P00 : aliased GPIO_Point (GPIO0'Access, 0); P01 : aliased GPI...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit package Ada.Strings.Naked_Maps.Case_Folding is pragma Preelaborate; function Case_Folding_Map return not null Character_Mapping_Access; end Ada.Strings.Naked_Maps.Case_Folding;
with STM32.Device; with STM32.GPIO; with STM32.I2C; with Ravenscar_Time; with VL53L1X; package VL53L1X_Demo.Hardware is Sensor_Port : STM32.I2C.I2C_Port renames STM32.Device.I2C_1; -- These are my two VL53L1X devices, named for their supplier. -- Only the Polulu breakout has XSHUT exported (disables the ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
<?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="...
------------------------------------------------------------------------------ -- 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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma Ada_2012; with Ada.Finalization; use Ada.Finalization; with Ada.Text_IO; use Ada.Text_IO; package body Eu_Projects.Nodes.Timed_Nodes.Project_Infos is ------------ -- Create -- ------------ function Create (Label : Node_Label; Name : String; Sho...
package I_Am_Ada_Too is procedure Ada_Procedure_Too; pragma Export (C, Ada_Procedure_Too, "ada_procedure_too"); end I_Am_Ada_Too;
-- remote_server.adb - Main package for use by NymphRPC clients. -- -- 2017/07/01, Maya Posch -- (c) Nyanko.ws package body NymphRemoteServer is function init(logger : in <?>, level : in integer, timeout: in integer) return Boolean is begin -- end init; end NymphRemoteServer;
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
-- MIT License -- -- Copyright (c) 2020 Max Reznik -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, mo...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
pragma Ada_95; with System; package ada_main is pragma Warnings (Off); gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_exit_status : Integer; pragma Import (C, gnat_e...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
I : Integer; J : Integer; for I'Address use J'Address;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2014-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. -- -- ...
-- This spec has been automatically generated from STM32F411xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.RTC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype TR_SU_Field is STM32_SVD.UInt4...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Incr.Lexers.Batch_Lexers.Generic_Lexers; with Matreshka.Internals.Unicode; package Incr.Ada_Lexers is subtype Token is ...
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2013, AdaCore -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Nodes.Generic_Vectors; with Program.Elements.Variants; package Program.Nodes.Variant_Vectors is new Program.Nodes.Gene...
-- This file was generated by bmp2ada with Giza.Image; with Giza.Image.DMA2D; use Giza.Image.DMA2D; package cancel_80x80 is pragma Style_Checks (Off); CLUT : aliased constant L4_CLUT_T := ( (R => 255, G => 0, B => 0), (R => 255, G => 255, B => 255), others => (0, 0, 0)); Data : aliased constant L4_Data_T :...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistr...
-- $Id: scanner.ads,v 1.5 2000/09/04 11:17:27 grosch rel $ with Position, Strings; use Position, Strings; $- user import declarations $@ package @ is $E[ user export declarations type tScanAttribute is record Position: tPosition; end record; procedure ErrorAttribute (Token: Integer; Attribute: out tScanAttribute);...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package Program.Elements.Statements is pragma Pure (Program.Elements.Statements); type Statement is limited interface and Program.Elements.Element; ...
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); with Risi_Script.Types.Implementation, Ada.Characters.Handling; Package Risi_Script.Types.Patterns is Use Risi_Script.Types.Implementation; --------------------- -- PATTERN TYPES -- --------------------- --#TODO: Implement the pattern-types;...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma Ada_95; with System; package ada_main is pragma Warnings (Off); gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_exit_status : Integer; pragma Import (C, gnat_e...
with Spark_Unbound.Arrays; with AUnit.Assertions; use AUnit.Assertions; package body UA_Append_Tests is use Spark_Unbound; procedure Set_Up (T : in out Test_Fixture) is begin T.V1 := 1; T.V2 := 2; T.V3 := 3; T.V4 := 4; end; procedure TestAppend_WithEnoughCapac...
-- This test shows the usage of various alinment and size clauses. -- It was taken from an online example, but heavily modified. with System; procedure Alignment_Component_Clause is Word : constant := 4; -- storage element is byte, 4 bytes per word type State is (A,M,W,P); type Mode is (Fi...
-- 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_get_mapfv_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsigned_8...
------------------------------------------------------------------------ -- Copyright (C) 2010-2020 by <ada.rocks@jlfencey.com> -- -- -- -- This work is free. You can redistribute it and/or modify it under -- -- the terms of the Do What...
with Ada.Streams; use Ada.Streams; with Ada.Finalization; package Bit_Streams is type Bit is range 0..1; type Bit_Array is array (Positive range <>) of Bit; type Bit_Stream (Channel : not null access Root_Stream_Type'Class) is limited private; procedure Read (Stream : in out Bit_Stream; Data : out Bit_Arr...
-- 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_get_histogram_parameterfv_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Inter...
----------------------------------------------------------------------- -- search-indexers -- Search engine indexer -- Copyright (C) 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 exce...
with impact.d3.collision.Algorithm.activating, impact.d3.Dispatcher, impact.d3.collision.manifold_Result, impact.d3.collision.create_Func; with impact.d3.Manifold; with impact.d3.collision.Algorithm; with impact.d3.Object; package impact.d3.collision.Algorithm.activating.sphere_sphere -- -- impact.d3...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body problem_18 is function Solution_1 return Integer is Triangle : array (Natural range 1 .. 15, Natural range 1 .. 15) of Natural := ( (75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (95, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (17, 47, 82, 0, 0...
with Ada.Containers.Vectors; generic type Element_Type is private; type Element_Array is array (Positive range <>) of Element_Type; package Readable_Sequences.Generic_Sequences is type Sequence is tagged private; Empty_Sequence : constant Sequence; type Cursor is private; Beginning : constant Curs...
-- 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 Stories.Test_Data.Tests.FinishedStories_Container.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standar...
with Interfaces.C.Strings, System; use type Interfaces.C.int, System.Address; package body FLTK.Widgets.Valuators.Adjusters is procedure adjuster_set_draw_hook (W, D : in System.Address); pragma Import (C, adjuster_set_draw_hook, "adjuster_set_draw_hook"); pragma Inline (...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; procedure Goodbye_World is begin Ada.Text_IO.Put("Goodbye, World!"); end Goodbye_World;
-- { dg-do run } -- { dg-options "-O -gnatp" } -- This test requires architecture- and OS-specific support code for unwinding -- through signal frames (typically located in *-unwind.h) to pass. Feel free -- to disable it if this code hasn't been implemented yet. procedure Null_Pointer_Deref3 is procedure Leaf is...
-- -- 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...
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. with Tk.TtkWidget.Ttk_Widget_Options_Test_D...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Error in samples has been corrcted with Kernel.Serial_Output; use Kernel.Serial_Output; with ada.strings.unbounded; use ada.strings.unbounded; with ada.strings.unbounded.text_io; use ada.strings.unbounded.text_io; with System; use System; with tools; use tools; package body devices1 is EYES_REACTION...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
--////////////////////////////////////////////////////////// -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT SYSTEM UTILITIES -- -- -- -- ...
with impact.d2.Collision, impact.d2.contact.Manager, impact.d2.world_Callbacks, impact.d2.Solid, impact.d2.Joint, impact.d2.Math; package impact.d2.World -- -- The world class manages all physics entities, dynamic simulation, -- and asynchronous queries. The world also contains efficie...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...