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 |
|---|---|---|---|---|---|
1,600 | ada | 23 | SMerrony/dashera | Src/terminal.ads | -- Copyright (C)2021,2022 <NAME>
-- 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, merge, publish, dist... |
1,601 | ada | 16 | stcarrez/ada-enet | demos/echo/echo_server.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- echo_server -- A simple UDP echo server
-- Copyright (C) 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wit... |
1,602 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-buttons-light.adb | <reponame>micahwelf/FLTK-Ada
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Widgets.Buttons.Light is
procedure light_button_set_draw_hook
(W, D : in System.Address);
pragma Import (C, light_button_set_draw_hook, "light_button_set_draw_hook");
pragma Inl... |
1,603 | ada | 3 | daveshields/AdaEd | demos/pi.ada | generic
type real is digits <>;
function sqrt(y : real) return real;
function sqrt(y : real) return real is
x, t : real := y;
begin
if y < 0.0 then
raise NUMERIC_ERROR;
else
loop
t := (x + y / x)/ 2.0;
exit when abs(x - t) <= real'epsilon;
x := t;
end loop;
return x;
end i... |
1,604 | ada | 34 | sergev/vak-opensource | languages/dynlink/ada-interfaces/pkg.ads | <gh_stars>10-100
with System;
package Pkg is
type Generic_Interface is interface;
function "=" (x, y: Generic_Interface) return Boolean is abstract;
function Type_Name (x: Generic_Interface) return String is abstract;
function Cast (x: Generic_Interface; iface: String) return System.Address is abstract;
type Sequenc... |
1,605 | ada | 0 | optikos/oasis | source/nodes/program-nodes-requeue_statements.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Requeue_Statements;
with Program.Element_Visitors;
package Pro... |
1,606 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/g-comlin.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,607 | ada | 13 | Fabien-Chouteau/GESTE | examples/utils/sdl_display.adb | with Interfaces.C; use Interfaces.C;
with SDL_SDL_h; use SDL_SDL_h;
with SDL_SDL_video_h; use SDL_SDL_video_h;
package body SDL_Display is
Display : access SDL_Surface;
Screen_Offset : GESTE.Pix_Point := (0, 0);
XS, XE, YS, YE : Natural := 0;
X, Y : Natural := 0;
----------------
-- Init... |
1,608 | ada | 30 | jscparker/math_packages | disorderly/disorderly-random.adb |
-------------------------------------------------------------------------------
-- package body Disorderly.Random, Non-linear Random Number Generator
-- Copyright (C) 1995-2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provid... |
1,609 | ada | 7 | TUDSSL/TICS | msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/volatile11_pkg.ads | <filename>msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/volatile11_pkg.ads
package Volatile11_Pkg is
procedure Bit_Test(Input : in Integer;
Output1 : out Boolean; Output2 : out Boolean;
Output3 : out Boolean; Output4 : out Boolean;
... |
1,610 | ada | 52 | onox/orka | orka_tools/src/orka_package_ktx.ads | <reponame>onox/orka
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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/li... |
1,611 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c86007a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c86007a.ada
-- C86007A.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
-- unlimi... |
1,612 | ada | 33 | ytomino/drake | source/s-stelfo.ads | pragma License (Unrestricted);
-- extended unit
package System.Storage_Elements.Formatting is
-- The formatting functions Image and Value for System.Address.
pragma Pure;
subtype Address_String is String (1 .. (Standard'Address_Size + 3) / 4);
function Image (Value : Address) return Address_String;
f... |
1,613 | ada | 7 | stcarrez/mat | mat/src/events/mat-events.ads | <reponame>stcarrez/mat
-----------------------------------------------------------------------
-- gprofiler-events - Profiler Events Description
-- Copyright (C) 2014, 2015, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
1,614 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | ADL/drivers/stm32g474/stm32-rng-polling.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- ... |
1,615 | ada | 8 | flyx/OpenCLAda | src/interface/cl-vectors.ads | <reponame>flyx/OpenCLAda<gh_stars>1-10
--------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copy... |
1,616 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/compose.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/compose.adb
-- { dg-do run }
with Ada.Directories;
with Ada.Text_IO;
procedure Compose is
Result : constant String := Ada.Directories.Compose (Name => "foo",
Extension => "txt");
pragma Unreferenced... |
1,617 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbcppr__ppc.adb | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
1,618 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-hsem.ads | <filename>SVD2ada/svd/stm32_svd-hsem.ads
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.HSEM is
pragma Preelaborate;
---------------
-- Registers --
---------------
sub... |
1,619 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_16/problem_16.adb | package body problem_16 is
function Solution_1( I : Integer) return Integer is
Length : constant Integer := 1 + Integer(Float(I)*0.30103);
Arr : array( Natural range 0 .. Length) of Natural :=
(0 => 1, others => 0);
Carry : Integer := 0;
Sum : Integer := 0;
begin
... |
1,620 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-memory.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
1,621 | ada | 30 | jscparker/math_packages | disorderly/disorderly-random.ads |
-------------------------------------------------------------------------------
-- package Disorderly.Random, Non-linear Random Number Generator
-- Copyright (C) 1995-2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided th... |
1,622 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1c04a.ada | <reponame>best08618/asylo
-- CD1C04A.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... |
1,623 | ada | 33 | ytomino/drake | source/streams/machine-w64-mingw32/s-natiio.adb | with Ada.Exception_Identification.From_Here;
with System.Address_To_Named_Access_Conversions;
with System.Standard_Allocators;
with System.System_Allocators;
with C.basetsd;
with C.string;
with C.wincon;
with C.winerror;
package body System.Native_IO is
use Ada.Exception_Identification.From_Here;
use type Ada.IO_... |
1,624 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/gnatg.adb | -- { dg-do compile }
-- { dg-options "-gnatD" }
with System;
with Ada.Unchecked_Conversion;
procedure gnatg is
subtype Address is System.Address;
type T is access procedure;
function Cvt is new Ada.Unchecked_Conversion (Address, T);
X : T;
begin
X := Cvt (Gnatg'Address);
end gnatg;
|
1,625 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_res.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_res.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,626 | ada | 0 | iyan22/AprendeAda | ejercicios6/prueba_eliminar_primera_aparicion.adb | with Ada.Text_Io, Datos;
with Crear_Lista_Vacia, Ins, Esc,
Eliminar_Primera_Aparicion;
use Datos;
use Ada.Text_Io;
procedure Prueba_Eliminar_Primera_Aparicion is
Lis : Lista; -- variable del programa principal
procedure Pedir_Return is
begin
Put_Line("pulsa return para continuar ");
... |
1,627 | ada | 0 | Sawchord/Ada_Drivers_Library | examples/demo_bmp280/src/demo_bmp280.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2017, AdaCore --
-- ... |
1,628 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-fmc.ads | pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.FMC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype BCR_MTYP_Field is HAL.UInt2;
subty... |
1,629 | ada | 1 | faelys/simple-webapps | generated/simple_webapps-commands-upload_servers-file.ads | <reponame>faelys/simple-webapps
package Simple_Webapps.Commands.Upload_Servers.File is
pragma Pure;
function Hash (S : String) return Natural;
end Simple_Webapps.Commands.Upload_Servers.File;
|
1,630 | ada | 0 | optikos/oasis | source/contexts/plain/program-plain_compilations.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Handlers;
with Program.Scanner_Destinations;
with Program.Scanners;
with Program.Symbols;
package body Program.Plain_Compilations... |
1,631 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-loggers-formatting.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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
-... |
1,632 | ada | 192 | rocher/Ada_Drivers_Library | components/src/io_expander/ht16k33/ht16k33.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
1,633 | ada | 0 | JeremyGrosser/arm_cmsis_dsp | src/distance_functions_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with arm_math_types_h;
with sys_ustdint_h;
package distance_functions_h is
function arm_euclidean_distance_f32
(pA : access arm_math_types_h.float32_t;
pB : access arm_math_types_h.float32_t;
b... |
1,634 | ada | 1 | meowthsli/veriflight_boards | cc3df4revo/cfg/cc3d/mpu6000_spi.adb | <reponame>meowthsli/veriflight_boards
with HAL; use HAL;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Unchecked_Conversion;
package body mpu6000_spi is
--
-- Types
--
type Register_Address is new HAL.UInt8;
subtype Read_Buffer is SPI_Data_8b (1 .. 6);
--
-- Constants
--
MPU_RA_ACCEL_... |
1,635 | ada | 0 | fintatarta/protypo | test/examples/string_sequences_test.adb | with Ada.Text_IO; use Ada.Text_IO;
with Readable_Sequences.String_Sequences;
procedure String_Sequences_Test is
use Readable_Sequences.String_Sequences;
S : Sequence := Empty_Sequence;
A : constant String := "pippo pluto e paperino";
b : constant string := " al<NAME> e giacomo";
begin
S.Append (A);
... |
1,636 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-classes.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
1,637 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/sam4s-xplained/tetris/oled.ads | <filename>bb-runtimes/examples/sam4s-xplained/tetris/oled.ads
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
1,638 | ada | 0 | jacksonchen07/HelloAda | hello.adb | <reponame>jacksonchen07/HelloAda<gh_stars>0
with Ada.Text_IO;
with Ada.Strings.Unbounded;
with Ada.Text_IO.Unbounded_IO;
procedure Hello is
use Ada.Text_IO;
use Ada.Strings.Unbounded;
use Ada.Text_IO.Unbounded_IO;
Name : Unbounded_String;
begin
-- Using full package name because it would be ambigou... |
1,639 | ada | 6 | jonashaggstrom/ada-canopen | tests/generic_collection_test.ads | <filename>tests/generic_collection_test.ads
with AUnit;
with AUnit.Simple_Test_Cases;
package Generic_Collection_Test is
type Test is new AUnit.Simple_Test_Cases.Test_Case with null record;
function Name (T : Test) return AUnit.Message_String;
procedure Run_Test (T : in out Test);
end Generic_Collection_T... |
1,640 | ada | 0 | djgoku/RosettaCodeData | Task/Bitmap/Ada/bitmap-1.ada | <filename>Task/Bitmap/Ada/bitmap-1.ada
package Bitmap_Store is
type Luminance is mod 2**8;
type Pixel is record
R, G, B : Luminance;
end record;
Black : constant Pixel := (others => 0);
White : constant Pixel := (others => 255);
type Image is array (Positive range <>, Positive range <>) of Pixel... |
1,641 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_trace.adb | <filename>memsim-master/src/parser-parse_trace.adb
with Memory.Trace;
separate (Parser)
procedure Parse_Trace(parser : in out Parser_Type;
result : out Memory_Pointer) is
mem : Memory_Pointer := null;
begin
if Get_Type(parser) = Open then
Parse_Memory(parser, mem);
end if;
... |
1,642 | ada | 81 | fuzzysloth/ada-awa | awa/src/awa-helpers-requests.adb | -----------------------------------------------------------------------
-- awa-helpers-requests -- Helpers for AWA applications
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compli... |
1,643 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-gloloc.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,644 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt38_pkg.adb | package body Opt38_Pkg is
procedure Proc (I : Integer);
pragma Inline (Proc);
procedure Proc (I : Integer) is
procedure Inner;
pragma No_Inline (Inner);
procedure Inner is
begin
if I /= 110 then
raise Program_Error;
end if;
end;
begin
if I > 0 then
Inner;
... |
1,645 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-raster.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
package body GL.Raster is
procedure Set_Pos (Position : Vector2) is
begin
API.Raster_Pos2 (Position);
end Set_Pos;
procedure Set_Pos (Position : Vector3) is
begin
API... |
1,646 | ada | 2 | SMerrony/dgemua | aosvs/aosvs.ads | <reponame>SMerrony/dgemua
-- MIT License
-- Copyright (c) 2021 <NAME>
-- 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 u... |
1,647 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32wb55x/stm32_svd-usart1.ads | -- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.USART1 is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_DEDT_Field is ... |
1,648 | ada | 7 | Letractively/ada-awa | awa/samples/src/atlas-reviews-modules.adb | <filename>awa/samples/src/atlas-reviews-modules.adb
-----------------------------------------------------------------------
-- atlas-reviews-modules -- Module reviews
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
1,649 | ada | 24 | svn2github/matreshka | source/xml/sax/matreshka-internals-xml-element_tables.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
1,650 | ada | 3 | Heziode/aoc-ada-2021 | utils/src/dijkstra.ads | <filename>utils/src/dijkstra.ads
with Ada.Containers.Doubly_Linked_Lists,
Ada.Containers.Hashed_Maps,
Ada.Containers.Vectors;
with Utils; -- For Long_Long_Natural type
generic
type Node is private;
with function Hash (Coord : Node) return Ada.Containers.Hash_Type is <>;
with function Equivalent_... |
1,651 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simple_use_type.ads | <gh_stars>100-1000
with SimpleAda;
package Simple_Use_Type is
use type SimpleAda.Device;
stdcout : constant SimpleAda.Device := 0;
stdcerr : constant SimpleAda.Device := 1;
stdcurr : SimpleAda.Device := stdcerr;
end Simple_Use_Type;
|
1,652 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr7.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr7.adb
-- { dg-do compile }
package body Addr7 is
procedure Proc (B: aliased Bytes) is
O: Integer;
for O'Address use B'Address;
begin
null;
end;
end Addr7;
|
1,653 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-textio__rpi2-pl011.adb | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,654 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0101.ads | <filename>source/league/ucd/matreshka-internals-unicode-ucd-core_0101.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
1,655 | ada | 2 | mgrojo/lsystem-editor | src/presenter/lse-presenter-presenter.ads | -------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 <NAME> (Heziode) <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and... |
1,656 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_sponge.adb | -------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of s... |
1,657 | ada | 0 | btmalone/alog | aunit/aunit-reporter-text.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,658 | ada | 15 | mgrojo/adalib | ada-streams.ads | -- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- 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.
-- SPDX-License-... |
1,659 | ada | 65 | PThierry/ewok-kernel | src/arch/Ada/types-unsafe.ads | <reponame>PThierry/ewok-kernel
pragma restrictions (no_secondary_stack);
pragma restrictions (no_elaboration_code);
pragma restrictions (no_finalization);
pragma restrictions (no_exception_handlers);
-- These types are not SPARK compliant
package types.unsafe
with spark_mode => off
is
type string_access is acc... |
1,660 | ada | 1 | selroc/Renaissance-Ada | src/examples/Rejuvenation_Workshop/src/parentpackage-childpackage.adb | <filename>src/examples/Rejuvenation_Workshop/src/parentpackage-childpackage.adb
with Ada.Calendar;
package body ParentPackage.ChildPackage is
end ParentPackage.ChildPackage;
|
1,661 | ada | 4 | davidkristola/vole | kv-avm-transactions-basic.ads | with Ada.Streams;
with Ada.Strings.Unbounded;
with Interfaces;
with kv.avm.Actor_References;
with kv.avm.Tuples;
with kv.avm.Messages;
package kv.avm.Transactions.Basic is
-- Responsibility: represent an inter-VM transaction to close the transporting connection.
type Close_Connections_Type is new Transactions_... |
1,662 | ada | 23 | SMerrony/dashera | Src/mini_expect.adb | -- Copyright ©2022 <NAME>
-- 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, merge, publish, distribute,... |
1,663 | ada | 4 | FrankBuss/Ada_Synth | ada/common/midi_synthesizer.ads | <filename>ada/common/midi_synthesizer.ads
with Interfaces; use Interfaces;
with MIDI; use MIDI;
package MIDI_Synthesizer is
Samplerate : constant Float := 44100.0;
type Freq_Table is array (0 .. 127) of Float;
type Generator is record
PhaseIncrement : Float := 0.0;
PhaseAccumulator : Flo... |
1,664 | ada | 33 | ytomino/drake | source/required/s-carsi8.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Compare_Array_Signed_8 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Integer_8 is range -(2 ** 7) .. 2 ** 7 - 1;
for Integer_8'Siz... |
1,665 | ada | 1 | TNO/Rejuvenation-Ada | examples/src/examples-ast.adb | with Ada.Text_IO; use Ada.Text_IO;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Factory; use Rejuvenation.Factory;
with Rejuvenation.Finder; use Rejuvenation.Finder;
package body Examples.A... |
1,666 | ada | 3 | albinjal/ada_basic | Lab5/person_sorted_list.ads | with Person_Handling; use Person_Handling;
package Person_Sorted_List is
CANTFIND_ERROR: exception;
type List_Type is private;
function Empty(List: List_Type)
return Boolean;
function Member(List: List_Type; Search: Person)
return Boolean;
function Find(List: List_Type; Search: Person)
retu... |
1,667 | ada | 70 | Lucretia/bare_bones | build/gnat/rts/common/adainclude/s-secsta.ads | -- -*- Mode: Ada -*-
-- Filename : s-secsta.ads
-- Description : Secondary stack
-- Author : <NAME>
-- Created On : Wed Nov 16 17:06:11 2016
-- Licence : See LICENCE in the root directory.
with System.Storage_Elements;
package System.Secondary_Stack is... |
1,668 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64105d.ada | <gh_stars>1-10
-- C64105D.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.... |
1,669 | ada | 0 | faelys/natools | src/natools-chunked_strings.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2011, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
1,670 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-expint.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
1,671 | ada | 1 | KipodAfterFree/KAF-2019-FireHog | firehog/ncurses/Ada95/ada_include/terminal_interface-curses-forms-field_types-enumeration-ada.ads | <filename>firehog/ncurses/Ada95/ada_include/terminal_interface-curses-forms-field_types-enumeration-ada.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT ncurse... |
1,672 | ada | 15 | mgrojo/adalib | ada-wide_text_io.ads | <reponame>mgrojo/adalib<filename>ada-wide_text_io.ads<gh_stars>10-100
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Cop... |
1,673 | ada | 2 | persan/gprTools | src/gpr_tools-gpradd.adb | <reponame>persan/gprTools<gh_stars>1-10
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.OS_Lib;
with GNAT.Strings;
with GNATCOLL.Projects;
with GNATCOLL.VFS;
with Ada.Directories;
procedure GPR_Tools.Gpradd is
use GNATCOLL.VFS;
use GNAT.Strings;
use GNATCOLL.Projects;
use Ada.Directories;
Env ... |
1,674 | ada | 33 | ytomino/drake | source/tasking/required/s-interr.adb | <reponame>ytomino/drake<gh_stars>10-100
package body System.Interrupts is
procedure Install_Handlers (
Object : not null access Static_Interrupt_Protection;
New_Handlers : New_Handler_Array)
is
Length : constant Natural := New_Handlers'Length;
begin
for I in 0 .. Length - 1 loop
... |
1,675 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-memcom.ads | <filename>bb-runtimes/runtimes/zfp-stm32g474/gnat/s-memcom.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,676 | ada | 22 | FardaleM/metalang | out/vigenere.adb | <gh_stars>10-100
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure vigenere is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Wri... |
1,677 | ada | 0 | skill-lang/adaCommon | src/skill-streams-reader.adb | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ stream to skill tokens --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> --
-- ... |
1,678 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_timer_quad_encoder/src/motor.adb | <reponame>rocher/Ada_Drivers_Library<gh_stars>100-1000
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- ... |
1,679 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-chahan.adb | <filename>tools-src/gnu/gcc/gcc/ada/a-chahan.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,680 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Multiple-distinct-objects/Ada/multiple-distinct-objects-3.ada | <filename>Task/Multiple-distinct-objects/Ada/multiple-distinct-objects-3.ada
(1..N => V)
|
1,681 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sinput.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,682 | ada | 52 | onox/orka | orka/src/orka/interface/orka-rendering-fences.ads | <reponame>onox/orka<filename>orka/src/orka/interface/orka-rendering-fences.ads
-- 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... |
1,683 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/g-sehash.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
1,684 | ada | 1 | mullikine/RosettaCodeData | Task/Read-entire-file/Ada/read-entire-file-1.ada | with Ada.Directories,
Ada.Direct_IO,
Ada.Text_IO;
procedure Whole_File is
File_Name : String := "whole_file.adb";
File_Size : Natural := Natural (Ada.Directories.Size (File_Name));
subtype File_String is String (1 .. File_Size);
package File_String_IO is new Ada.Direct_IO (File_String);
... |
1,685 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-osinte-gnu.ads | <reponame>best08618/asylo<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
1,686 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-geveop.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
1,687 | ada | 33 | ytomino/drake | source/calendar/machine-w64-mingw32/s-nattim.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
-- implementation unit specialized for Windows
with C.windef;
package System.Native_Time is
pragma Preelaborate;
-- representation
type Nanosecond_Number is
range -(2 ** (Duration'Size - 1)) .. 2 ** (Duration'Size - 1) - 1;
for Nanosecond_Numb... |
1,688 | ada | 1 | faelys/natools-web | src/natools-web-comment_cookies-base_64.adb | <filename>src/natools-web-comment_cookies-base_64.adb
------------------------------------------------------------------------------
-- Copyright (c) 2017, <NAME> --
-- --
-- Permission to use, copy, modify, ... |
1,689 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-esa_reset.ads | with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Operation_Handlers.Ike.Esa_Reset is
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type);
-- Handler for the esa_reset operation.
end Tkmrpc.Operation_Handlers.Ike.Esa_Reset;
|
1,690 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41323a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41323a.ada
-- C41323A.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
-- unlimi... |
1,691 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/noreturn1.adb | -- { dg-do compile }
package body Noreturn1 is
procedure Error (E : in Exception_Occurrence) is
Occurrence_Message : constant String := Exception_Message (E);
begin
if Occurrence_Message = "$" then
raise Program_Error;
else
raise Constraint_Error;
end if;
end;
end N... |
1,692 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c46054a.ada | -- C46054A.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... |
1,693 | ada | 0 | Ausbxuse/latin-dict | src/commands/banner.adb | -- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (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 Copyrighted
-- (c). Permission i... |
1,694 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/xml_io/xml_io-internals.ads | <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 ... |
1,695 | ada | 65 | mfkiwl/ewok-kernel-security-OS | src/arch/cores/armv7-m/m4-mpu.adb | --
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- 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... |
1,696 | ada | 2 | thindil/tashy2 | tests/tcl-commands-test_data-tests-argv_pointer-test_data.ads | -- 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 Interfaces.C.Pointers.Test_Data;
with ... |
1,697 | ada | 1 | Vovanium/stm32-ada | examples/led_flasher/source/led_flasher_429disco.adb | with STM32.F429Z; use STM32.F429Z;
use STM32.F429Z.Modules.GPIO;
with STM32.F4.GPIO.Ports; use STM32.F4.GPIO.Ports;
with Ada.Real_Time; use Ada.Real_Time;
procedure LED_Flasher_429disco is
Period: constant Time_Span := Milliseconds(250);
On_Time: constant Time_Span := Milliseconds(10);
Now: Time :=... |
1,698 | ada | 0 | reznikmm/clic | example/src/clic_ex-commands-user_input.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with AAA.Strings;
with CLIC.User_Input; use CLIC.User_Input;
with GNAT.OS_Lib;
package body CLIC_Ex.Commands.User_Input is
function Valid_Number (Str : String) return Boolean
is (for all C of Str => C in '0' .. '9');
-------------
-- Execute --
--------... |
1,699 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-nudira.adb | <reponame>vidkidz/crossbridge<filename>llvm-gcc-4.2-2.9/gcc/ada/a-nudira.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.