id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
6,400 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-dh_generate_key.ads | <gh_stars>0
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;
|
6,401 | ada | 4 | faelys/gela-asis | contrib/ayacc/src/parse_table.adb | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were <NAME> and <NAME>.
-- Enhancements were made by <NAME>.
--
-- Send requests for ayacc information to <EMAIL>
-- Send bug reports for ayacc to <EMAIL>
--
-- Redistribution and use in... |
6,402 | ada | 0 | alire-project/sdlada | unit_tests/pixel_format_test_cases.ads | <filename>unit_tests/pixel_format_test_cases.ads
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2014-2015 <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be ... |
6,403 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1005b.ada | <reponame>best08618/asylo
-- CC1005B.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 contai... |
6,404 | ada | 2 | thorstel/Advent-of-Code-2018 | day18/day18.adb | 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... |
6,405 | ada | 3 | ytomino/boehmgc-ada | examples/try_gc_controlled.adb | <reponame>ytomino/boehmgc-ada
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);
... |
6,406 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl-error.ads |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- <NAME> ... |
6,407 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/i-vxinco.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
6,408 | ada | 0 | KLOC-Karsten/adaoled | src/gpio.ads |
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
package GPIO is
function Init return Unsigned_8;
pragma Import (C, Init, "bcm2835_init");
procedure Close;
pragma Import (C, Close, "bcm2835_close");
procedure Write(Pin: Unsigned_16; Value: Unsigned_8);
pragma Import (C, Write, "bcm... |
6,409 | ada | 0 | Fabien-Chouteau/ASFML | tests/clock/main.adb | <reponame>Fabien-Chouteau/ASFML
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Sf.System.Clock; use Sf.System, Sf.System.Clock;
with Sf.System.Sleep; use Sf.System.Sleep;
with Sf.System.Time; use Sf.System... |
6,410 | ada | 24 | svn2github/matreshka | tools/ayacc/src/actions_file.adb | <filename>tools/ayacc/src/actions_file.adb
-- $Header: /dc/uc/self/arcadia/ayacc/src/RCS/actions_file_body.a,v 1.2 1993/05/31 22:36:35 self Exp self $
-- $Header: /dc/uc/self/arcadia/ayacc/src/RCS/actions_file_body.a,v 1.2 1993/05/31 22:36:35 self Exp self $
-- Copyright (c) 1990 Regents of the University of Califor... |
6,411 | ada | 4 | davidkristola/vole | kv-avm-machines.ads | with Interfaces;
with kv.avm.Actor_References;
with kv.avm.Actor_References.Sets;
with kv.avm.Tuples;
with kv.avm.Registers;
with kv.avm.Memories;
with kv.avm.Executables;
with kv.avm.Processors;
with kv.avm.Control;
with kv.avm.Messages;
with kv.avm.Executable_Lists;
with kv.avm.Capabilities;
with kv.avm.Routers;
pa... |
6,412 | ada | 80 | thindil/steamsky | tests/combat-test_data-tests-guns_container.ads | package Combat.Test_Data.Tests.Guns_Container is
end Combat.Test_Data.Tests.Guns_Container;
|
6,413 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testtimer_sprogs.adb |
-- ----------------------------------------------------------------- --
-- --
-- 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 ... |
6,414 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Queue-Definition/Ada/queue-definition-4.ada | with Ada.Containers.Doubly_Linked_Lists;
generic
type Element_Type is private;
package Generic_Fifo is
type Fifo_Type is tagged private;
procedure Push(The_Fifo : in out Fifo_Type; Item : in Element_Type);
procedure Pop(The_Fifo : in out Fifo_Type; Item : out Element_Type);
Empty_Error : Exceptio... |
6,415 | ada | 0 | hfegran/efx32_ada_examples | ada-blinky-zfp/src/leds.ads | with Interfaces; use Interfaces;
with Interfaces.EFM32.CMU; use Interfaces.EFM32.CMU;
with Interfaces.EFM32.GPIO; use Interfaces.EFM32.GPIO;
package Leds is
type Bit is mod 2**1
with Size => 1;
type Color is (Blue, Green, Cyan, Red, Magenta, Yellow, White, Black);
type Pin_Type is (P0, P1, P2, P3, P4, ... |
6,416 | ada | 24 | svn2github/matreshka | testsuite/xml/TN-245/test_245_handlers.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
6,417 | ada | 2 | skordal/ada-regex | src/regex-debug.adb | -- Ada regular expression library
-- (c) <NAME> 2020 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Text_IO;
package body Regex.Debug is
procedure Print_Syntax_Tree (Root : in Regex.Syntax_Trees.Syntax_Tree_Node_Access) is
use Ada.Text_IO;
use Regex.Syntax_Tr... |
6,418 | ada | 0 | jquorning/CELLE | source/actions.adb | <reponame>jquorning/CELLE
--
-- 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.
--
-----------------... |
6,419 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-mpane.ads | <reponame>auzkok/libagar
with agar.gui.widget.box;
package agar.gui.widget.mpane is
use type c.unsigned;
type layout_t is (
MPANE1,
MPANE2V,
MPANE2H,
MPANE2L1R,
MPANE1L2R,
MPANE2T1B,
MPANE1T2B,
MPANE3L1R,
MPANE1L3R,
MPANE3T1B,
MPANE1T3B,
MPANE4
);
for layout_t ... |
6,420 | ada | 0 | gerr135/gnat_bugs | gb_03/src/bug_03.adb | <gh_stars>0
--
-- Short demo of the bug inducing code: tagged hierarchy as a field of discriminated record
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU Gener... |
6,421 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95093a.ada | <reponame>best08618/asylo
-- C95093A.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 contai... |
6,422 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/src/lib/gnat/i-c.ads | <reponame>fabiojna02/OpenCellular
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
6,423 | ada | 81 | fuzzysloth/ada-awa | awa/plugins/awa-workspaces/src/awa-workspaces-modules.ads | -----------------------------------------------------------------------
-- awa-workspaces-module -- Module workspaces
-- Copyright (C) 2011, 2012, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with ... |
6,424 | ada | 20 | charlie5/lace | 3-mid/opengl/source/demo/opengl-demo.ads | with
lumen.Window,
openGL.Model,
openGL.Visual,
openGL.Renderer.lean,
openGL.Camera,
openGL.Dolly,
openGL.frame_Counter;
package openGL.Demo
--
-- Provides a convenient method of setting up a simple openGL demo.
--
is
Window : lumen.Window.Window_handle;
Renderer ... |
6,425 | ada | 0 | leomlr/sudoku_ada-jewl | src/JEWL/jewl-simple_windows.ads | ------------------------------------------------------------------------------
-- --
-- J E W L . S I M P L E _ W I N D O W S --
-- --
... |
6,426 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/controlled7.ads | <reponame>best08618/asylo
with System.Storage_Elements; use System.Storage_Elements;
package Controlled7 is
procedure Proc (Offset : Storage_Offset);
end Controlled7;
|
6,427 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/s-objrea.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
6,428 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-dhfina.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
6,429 | ada | 2 | stcarrez/hestia | src/hestia-main.adb | <reponame>stcarrez/hestia<filename>src/hestia-main.adb
-----------------------------------------------------------------------
-- hestia-main -- Hestia main program
-- Copyright (C) 2016, 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
6,430 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/LU-decomposition/Ada/lu-decomposition-3.ada | with Ada.Numerics.Real_Arrays;
with Ada.Text_IO;
with Decomposition;
procedure Decompose_Example is
package Real_Decomposition is new Decomposition
(Matrix => Ada.Numerics.Real_Arrays);
package Real_IO is new Ada.Text_IO.Float_IO (Float);
procedure Print (M : Ada.Numerics.Real_Arrays.Real_Matrix) is
... |
6,431 | ada | 32 | robdaemon/AdaYaml | src/annotation_processor/implementation/yaml-transformator-annotation-identity.adb | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package body Yaml.Transformator.Annotation.Identity is
procedure Put (Object : in out Instance; E : Event) is
begin
if Object.Current_Exists then
raise Constraint_Error with
... |
6,432 | ada | 0 | Fabien-Chouteau/Renaissance-Ada | src/misc/Rejuvenation_Lib_Generator/src/generator-match_pattern_specific.ads | <gh_stars>0
with Ada.Containers.Vectors;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Strings.Hash;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Generator.Match_Pattern_Specific is
use Ada.Containers;
package List_String is new Vectors (Positive, Unbounded_String);
function Equival... |
6,433 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_9/problem_9.ads | with Test_Solution; use Test_Solution;
with Ada.Numerics.Elementary_Functions;
use Ada.Numerics.Elementary_Functions;
package Problem_9 is
type Int64 is range -2**63 .. 2**63 - 1;
function Solution_1 return Int64;
procedure Test_Solution_1;
function Get_Solutions return Solution_Case;
end Problem_... |
6,434 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simpleada-io.ads | <reponame>ouankou/rose<gh_stars>100-1000
package SimpleAda.IO is
procedure Put_Line(Item: in String);
end SimpleAda.IO;
|
6,435 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_usart_interrupts/src/peripherals.ads | <reponame>rocher/Ada_Drivers_Library<filename>arch/ARM/STM32/driver_demos/demo_usart_interrupts/src/peripherals.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, Ad... |
6,436 | ada | 1 | TNO/Rejuvenation-Ada | tests/src/test_text_rewrites.ads | <reponame>TNO/Rejuvenation-Ada<gh_stars>1-10
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package Test_Text_Rewrites is
type Text_Rewrite_Test_Case is
new Test_Case with null record;
overriding procedure Register_Tests
(T : in out Text_Rewrite_Test_Case);
-- Reg... |
6,437 | ada | 7 | jwhitham/x86determiniser | tests/ada/binary_heap.ads |
generic
type Element_Type is private;
with function ">" ( Left, Right: Element_Type ) return Boolean;
Min_Element : in Element_Type;
package Binary_Heap is
type Priority_Queue( Max_Size: Positive ) is limited private;
procedure Delete_Min ( X: out Ele... |
6,438 | ada | 25 | thierr26/ada-keystore | tools/akt-commands-edit.ads | -----------------------------------------------------------------------
-- akt-commands-edit -- Edit content in keystore
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Licen... |
6,439 | ada | 33 | ytomino/drake | source/nls/a-eeenst.adb | <gh_stars>10-100
package body Ada.Environment_Encoding.Encoding_Streams is
use type Streams.Stream_Element;
use type Streams.Stream_Element_Array;
use type System.Address;
subtype Stream_Element_Offset is Streams.Stream_Element_Offset;
procedure Adjust_Buffer (
Buffer : in out Buffer_Type;
... |
6,440 | ada | 10 | HeisenbugLtd/Saatana | tests/phelix/saatana-crypto-phelix-test_vectors.ads | ------------------------------------------------------------------------------
-- Copyright (C) 2017-2020 by Heisenbug Ltd. (<EMAIL>)
--
-- 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. Se... |
6,441 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Graphics/graphics_framerates.ads | --
-- Jan & <NAME>, Australia, July 2011
--
with Ada.Real_Time; use Ada.Real_Time;
with Real_Type; use Real_Type;
package Graphics_FrameRates is
Smoothing_Buffer_Size : constant Positive := 24;
subtype Hz is Real range 0.0 .. Real'Last;
function Measure_Interval return Time_Span;
function Average_F... |
6,442 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/io/opengl-io-lat_long_radius.ads | <gh_stars>10-100
package openGL.IO.lat_long_Radius
--
-- Provides a function to convert a model file containing longitude, latitude
-- and radius triplets (one triplet per line) to an openGL IO model.
--
is
function to_Model (model_File : in String) return IO.Model;
function to_Model (math_Mod... |
6,443 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/entry_declaration.ads | package Entry_Declaration is
task type Task_With_Entry is
entry First_Entry;
end Task_With_Entry;
end Entry_Declaration;
|
6,444 | ada | 1 | Vovanium/stm32-ada | source/stm32.ads | <filename>source/stm32.ads
package STM32 is
pragma Pure;
end STM32;
|
6,445 | ada | 7 | Fabien-Chouteau/Giza | src/giza-widget-scrolling.ads | ------------------------------------------------------------------------------
-- --
-- Giza --
-- --
-- ... |
6,446 | ada | 0 | BKambic/Chatbox | friends.adb | <gh_stars>0
with Ada.Text_IO;
with Ada.Strings.Unbounded;
with ada.Text_IO.Unbounded_IO;
with Ada.IO_Exceptions;
with Ada.Command_Line, Ada.Text_IO;
use Ada.Command_Line, Ada.Text_IO;
procedure Friends is
-- Initializing
Read_From : Ada.Strings.Unbounded.Unbounded_String;
Write_To : Ada.Strings.Unbou... |
6,447 | ada | 4 | faelys/gela-asis | source/libgela/gela-containers-caches.adb | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
6,448 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Model/sphere_p.ads | --
-- Jan & <NAME>, Australia, July 2011
--
with GLOBE_3D;
package Sphere_P is
procedure Create (object : in out GLOBE_3D.p_Object_3D;
Object_Scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D
);
end Sphere_P;
|
6,449 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Fast-Fourier-transform/Ada/fast-fourier-transform-1.ada | <gh_stars>1-10
with Ada.Numerics.Generic_Complex_Arrays;
generic
with package Complex_Arrays is
new Ada.Numerics.Generic_Complex_Arrays (<>);
use Complex_Arrays;
function Generic_FFT (X : Complex_Vector) return Complex_Vector;
|
6,450 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-wchwts.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
6,451 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/xml_to_y.adb | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
6,452 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-gnat_int.ads | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
6,453 | ada | 24 | svn2github/matreshka | source/amf/mof/amf-visitors-containment.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
6,454 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-box.ads | <filename>ada/original_2008/ada-gui/agar-gui-widget-box.ads
package agar.gui.widget.box is
use type c.unsigned;
type type_t is (BOX_HORIZ, BOX_VERT);
for type_t use (BOX_HORIZ => 0, BOX_VERT => 1);
for type_t'size use c.unsigned'size;
pragma convention (c, type_t);
type flags_t is new c.unsigned;
BOX... |
6,455 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cofuba.ads | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
6,456 | ada | 0 | csb6/libtcod-ada | src/libtcod-clipboard.adb | <filename>src/libtcod-clipboard.adb
with sys_h, Interfaces.C.Strings, Interfaces.C.Extensions;
use sys_h, Interfaces.C;
package body Libtcod.Clipboard is
use type Extensions.bool;
---------
-- set --
---------
procedure set(value : String) is
c_value : aliased char_array := To_C(value);
st... |
6,457 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_hints_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with SDL_stdinc_h;
with System;
package SDL_hints_h is
SDL_HINT_FRAMEBUFFER_ACCELERATION : aliased constant String := "SDL_FRAMEBUFFER_ACCELERATION" & ASCII.NUL; -- ..\SDL2_tmp\SDL_hints.h:65
SDL_HINT... |
6,458 | ada | 0 | theurt/PageRank | sources/google_creuse_lente.adb | <reponame>theurt/PageRank
with Ada.Unchecked_Deallocation;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
package body google_creuse_lente is
-- Permet de libérer des pointeurs
procedure Free is
new Ada.Unchecked_Deallocation (T_Cellule, T_Vecteur_Creux);
procedure I... |
6,459 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/t13.adb | <gh_stars>1-10
-- { dg-do run }
with Init13; use Init13;
with Ada.Numerics; use Ada.Numerics;
with Text_IO; use Text_IO;
with Dump;
procedure T13 is
Local_R1 : R1;
Local_R2 : R2;
begin
Local_R1.F := (My_R1.F.R + 1.0, My_R1.F.I + 1.0);
Put ("Local_R1 :");
Dump (Local_R1'Address, R1'Max_Size_In_Storage_Ele... |
6,460 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-nvmctrl.ads | <reponame>Fabien-Chouteau/samd51-hal<gh_stars>1-10
pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.NVMCTRL is
pragma Preelaborate;
---------------
-- Registers --
----------... |
6,461 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic7_1.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic7_1.adb
-- { dg-do run }
with Atomic7_Pkg2; use Atomic7_Pkg2;
procedure Atomic7_1 is
I : Integer := Stamp;
pragma Atomic (I);
J : Integer := Stamp;
begin
if I /= 1 then
raise Program_Error;
end if;
end;
|
6,462 | ada | 24 | svn2github/matreshka | source/web/spikedog/daemon/servlet-application.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
6,463 | ada | 0 | ytomino/gnat4drake | a-chzla1.ads | <filename>a-chzla1.ads
pragma License (Unrestricted);
with Ada.Wide_Wide_Characters.Latin_1;
package Ada.Characters.Wide_Wide_Latin_1
renames Ada.Wide_Wide_Characters.Latin_1;
|
6,464 | ada | 24 | svn2github/matreshka | tools/csmib/csmib-generator.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
6,465 | ada | 0 | Asier98/AdaCar | src/adacar-sensor_proximidad.ads | package AdaCar.Sensor_Proximidad is
function Leer_Entrada_Sensor return Unidades_Distancia;
end AdaCar.Sensor_Proximidad;
|
6,466 | ada | 12 | jquorning/ada-asf | src/asf-factory.ads | -----------------------------------------------------------------------
-- asf-factory -- Component and tag factory
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
6,467 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/5qosinte.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
6,468 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-jobs-executors.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<EMAIL>>
--
-- 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
-... |
6,469 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-registers.adb | --
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- 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.
--
-- ... |
6,470 | ada | 11 | reznikmm/ada_lsp | source/server/ada_lsp-completion_tokens.ads | <filename>source/server/ada_lsp-completion_tokens.ads
-- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with LSP.Messages;
with Ada_LSP.Completions;
limited with Ada_LSP.Contexts;
package Ada_LSP.Com... |
6,471 | ada | 1 | jweese/Ada_Vent_19 | lib/memory.ads | with Ada.Text_IO;
use Ada.Text_IO;
with Interfaces;
package Memory is
type Address is range 0 .. 2 ** 63 - 1;
type Value is new Interfaces.Integer_64;
type Block is array(Address range <>) of Value;
function Read_Comma_Separated(
From: File_Type := Standard_Input) return Block;
end Memory;
|
6,472 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/services/spark/afrl-cmasi-automationrequest-spark_boundary.ads | <gh_stars>10-100
with Common_Formal_Containers; use Common_Formal_Containers;
package AFRL.CMASI.AutomationRequest.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
function Get_EntityList
(Request : AutomationRequest) return Int64_Vect
with Global => null;
... |
6,473 | ada | 0 | charlie5/playAda | gasp/applet/solo/launch_solo_gasp.adb | with
mmi.Window.lumen,
mmi.Applet.gasp,
ada.Calendar,
ada.Exceptions,
ada.Text_IO;
procedure launch_solo_Gasp
--
-- Launches the solo version of the Gasp 'game'.
--
--
is
use ada.Calendar, ada.Exceptions, ada.Text_IO;
the_Window : constant mmi.Window.view
:= mmi.Window.vie... |
6,474 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/adv_170_multiple_inheritance/answers/solar_system.adb | <reponame>AdaCore/training_material
with Libm_Single; use Libm_Single;
package body Solar_System is
function Get_X(O : Body_Base_T) return Float is
begin
return O.X;
end Get_X;
function Get_Y(O : Body_Base_T) return Float is
begin
return O.Y;
end Get_Y;
functio... |
6,475 | ada | 286 | auzkok/libagar | ada/core/demo/myatexit.adb | with Ada.Text_IO;
package body myatexit is
procedure atexit is
begin
Ada.Text_IO.Put_Line("myatexit callback...");
end atexit;
end myatexit;
|
6,476 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/History-variables/Ada/history-variables-2.ada | package body History_Variables is
-- set and get
procedure Set(V: in out Variable; Item: Item_Type) is
begin
V.History.Prepend(Item);
end Set;
function Get(V: Variable) return Item_Type is
begin
return V.History.First_Element;
end Get;
-- number of items in history (including the ... |
6,477 | ada | 2 | morbos/Ada_Drivers_Library | boards/stm32l5_discovery_s/src/stm32-board.adb | with STM32.Setup;
with STM32_SVD.NVIC; use STM32_SVD.NVIC;
with STM32_SVD.EXTI; use STM32_SVD.EXTI;
with STM32_SVD.PWR; use STM32_SVD.PWR;
-- vvvv see utils.adb in WB55...
-- private with Ada.Interrupts;
-- private with Ada.Interrupts.Names;
package body STM32.Board is
---------------------
-- Initialize... |
6,478 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-stausa.adb | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
6,479 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array19.adb | <reponame>best08618/asylo
-- { dg-do compile }
package body Array19 is
function N return Integer is
begin
return 1;
end;
type Array_Type is array (1 .. N) of Float;
type Enum is (One, Two);
type Rec (D : Enum := Enum'First) is record
case D is
when One => null;
when ... |
6,480 | ada | 0 | bracke/Meaning | source/RASCAL-StrongHelp.adb | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
6,481 | ada | 20 | charlie5/lace | 4-high/gel/applet/demo/distributed/gel_demo_client.ads | <gh_stars>10-100
package gel_demo_Client
--
-- Provides a client.
--
is
task Item
is
entry start;
end Item;
end gel_demo_Client;
|
6,482 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-code_point_sets.adb | <filename>source/league/matreshka-internals-code_point_sets.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
6,483 | ada | 0 | xuedong/mini-ada | tests/syntax/bad/testfile-structure-3.adb | <reponame>xuedong/mini-ada<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin end Test;
|
6,484 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_prefetch.adb | <filename>memsim-master/src/parser-parse_prefetch.adb
with Memory.Prefetch;
with Util; use Util;
separate (Parser)
procedure Parse_Prefetch(parser : in out Parser_Type;
result : out Memory_Pointer) is
mem : Memory_Pointer := null;
stride : Address_Type := 1;
begin
whi... |
6,485 | ada | 0 | GLADORG/glad-cli | src/version.ads | <filename>src/version.ads
package Version with Preelaborate is
Current : constant String := "0.0.1";
private
end Version; |
6,486 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_1/src/stm32_svd-rng.ads | <filename>courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_1/src/stm32_svd-rng.ads
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.RNG is
pragma Preelaborate;
---------------
-- Registers --
... |
6,487 | ada | 0 | JCGobbi/Nucleo-STM32F334R8 | ADL/drivers/stm32f334/stm32-exti.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
6,488 | ada | 9 | jhumphry/SPARK_NORX | src/norx1641.ads | -- NORX1641
-- an Ada implementation of the NORX Authenticated Encryption Algorithm
-- created by <NAME>, <NAME> and <NAME>
-- This instantiation words on 16-bit words, with 4 rounds and a parallelism
-- degree of 1. Note that the Key_Position is 2 here, not 4 as it is in all
-- the other instantiations. This was a de... |
6,489 | ada | 2 | glencornell/ada-socketcan | examples/bcm_filtered_reader/bcm_filtered_reader.adb | -- MIT License
--
-- Copyright (c) 2021 <NAME> <<EMAIL>>
--
-- 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... |
6,490 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-utils-generic_event.ads | with System;
with ACO.Utils.Generic_Pubsub;
private with ACO.Utils.DS.Generic_Protected_Queue;
generic
type Item_Type is private;
Max_Nof_Subscribers : Positive;
Max_Nof_Queued_Events : Positive;
package ACO.Utils.Generic_Event is
pragma Preelaborate;
package PS is new ACO.Utils.Generic_Pubsub
... |
6,491 | ada | 24 | svn2github/matreshka | tools/configure/configure-tests-oci.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
6,492 | ada | 18 | jquorning/ada-wiki | regtests/wiki-tests.adb | -----------------------------------------------------------------------
-- Render Tests - Unit tests for AWA Wiki rendering
-- Copyright (C) 2013, 2016, 2020, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in comp... |
6,493 | ada | 33 | ytomino/drake | source/hash/a-stfiha.ads | <filename>source/hash/a-stfiha.ads
pragma License (Unrestricted);
with Ada.Containers;
with Ada.Strings.Hash;
function Ada.Strings.Fixed.Hash (Key : String) return Containers.Hash_Type
renames Strings.Hash;
pragma Pure (Ada.Strings.Fixed.Hash);
|
6,494 | ada | 20 | yannickmoy/spat | src/spat-proof_attempt-list.ads | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- 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... |
6,495 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/modify_a_constant.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/modify_a_constant.adb
-- { dg-do compile }
with text_io; use text_io;
procedure modify_a_constant is
type Outer;
type Inner (Outer_Ref : access Outer) is limited null record;
type Outer is limited record
Inner_Field : Inner (Outer_Re... |
6,496 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/rtsfind.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
6,497 | ada | 30 | jscparker/math_packages | linear_algebra/givens_qr.ads | <filename>linear_algebra/givens_qr.ads
--------------------------------------------------------------------------
-- package Givens_QR, QR decomposition using Givens rotations
-- Copyright (C) 2008-2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee... |
6,498 | ada | 0 | strenkml/EE368 | memsim-master/src/test.ads | <reponame>strenkml/EE368
with GNAT.Source_Info;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Memory; use Memory;
with Memory.Container; use Memory.Container;
with Util; use Util;
-- Base package for unit tests.
package Test is
-- Run the unit tests.
... |
6,499 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/task_name.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/task_name.ads
with Ada.Finalization;
package task_name is
type Base_Controller is
abstract new Ada.Finalization.Limited_Controlled with null record;
type Extended_Controller is
abstract new Base_Controller with private;
type Task_Object (Control... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.