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 |
|---|---|---|---|---|---|
5,700 | ada | 7 | stcarrez/mat | mat/src/mat-readers-marshaller.ads | <reponame>stcarrez/mat<filename>mat/src/mat-readers-marshaller.ads<gh_stars>1-10
-----------------------------------------------------------------------
-- mat-readers-marshaller -- Marshalling of data in communication buffer
-- Copyright (C) 2014, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the... |
5,701 | ada | 33 | ytomino/drake | source/numerics/a-nsrear.ads | <gh_stars>10-100
pragma License (Unrestricted);
with Ada.Numerics.Generic_Real_Arrays;
package Ada.Numerics.Short_Real_Arrays is
new Generic_Real_Arrays (Short_Float);
pragma Pure (Ada.Numerics.Short_Real_Arrays);
|
5,702 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Problem-of-Apollonius/Ada/problem-of-apollonius-3.ada | with Ada.Text_IO;
with Apollonius;
procedure Test_Apollonius is
use Apollonius;
package Long_Float_IO is new Ada.Text_IO.Float_IO (Long_Float);
C1 : constant Circle := (Center => (X => 0.0, Y => 0.0), Radius => 1.0);
C2 : constant Circle := (Center => (X => 4.0, Y => 0.0), Radius => 1.0);
C3 : constant... |
5,703 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/warn4.adb | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-options "-O2" }
with Unchecked_Conversion;
procedure Warn4 is
type POSIX_Character is new Standard.Character;
type POSIX_String is array (Positive range <>) of aliased POSIX_Character;
type String_Ptr is access all String;
type POSIX_String_Ptr is a... |
5,704 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | bb-runtimes/runtimes/ravenscar-sfp-stm32h743/gnarl/a-intnam.ads | --
-- Copyright (C) 2021, AdaCore
--
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
-- This is a version for the STM32H743x MCU
package Ada.Interrupts.Names is
-- All identifiers in this unit are implementation defined
pragma Implementation_Defined;
-----... |
5,705 | ada | 12 | jquorning/ada-asf | asfunit/asf-tests.ads | -----------------------------------------------------------------------
-- ASF tests - ASF Tests Framework
-- Copyright (C) 2011, 2012, 2015, 2020 <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 L... |
5,706 | ada | 9 | SALLYPEMDAS/DW1000 | bsp-examples/dwm1001/dw1000-bsp.adb | <filename>bsp-examples/dwm1001/dw1000-bsp.adb<gh_stars>1-10
-------------------------------------------------------------------------------
-- Copyright (c) 2019 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Softwar... |
5,707 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_pbutils_install_plugins_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with System;
with glib;
with glib.Values;
with System;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_pbutils_install_plugins_h is
-- unsupported macro: GST_TYPE_INSTALL_PLUGINS_CONTEXT (gst_ins... |
5,708 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2b15c.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2b15c.ada
-- CD2B15C.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... |
5,709 | ada | 60 | RREE/ada-util | src/base/beans/util-beans-objects-records.adb | -----------------------------------------------------------------------
-- Util.Beans.Objects.Records -- Generic Typed Data Representation
-- Copyright (C) 2011, 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in c... |
5,710 | ada | 9 | ajnavarro/language-dataset | data/github.com/OpenAADL/ocarina/121766ca577b01853354ff5991f73d22f5675a5c/src/core/model/ocarina-analyzer-aadl_ema-naming_rules.ads | <filename>data/github.com/OpenAADL/ocarina/121766ca577b01853354ff5991f73d22f5675a5c/src/core/model/ocarina-analyzer-aadl_ema-naming_rules.ads
------------------------------------------------------------------------------
-- --
-- ... |
5,711 | ada | 0 | strenkml/EE368 | memsim-master/src/util.adb | <reponame>strenkml/EE368
package body Util is
function "+"(a, b : Cost_Type) return Cost_Type is
begin
if a > Cost_Type'Last - b then
return Cost_Type'Last;
else
return Cost_Type(Long_Integer(a) + Long_Integer(b));
end if;
end "+";
function Log2(n : Natural) return Nat... |
5,712 | ada | 0 | My-Colaborations/ada-ado | regtests/ado-drivers-tests.adb | -----------------------------------------------------------------------
-- ado-drivers-tests -- Unit tests for database drivers
-- Copyright (C) 2014, 2015, 2016, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
5,713 | ada | 1 | faelys/lithium3 | src/lithium-photo_posts.adb | <reponame>faelys/lithium3<gh_stars>1-10
------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute... |
5,714 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl/src/sdl_sdl_stdinc_h.adb | ------------------------------------------------------------------------------
-- Copyright (C) 1995-2014, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- t... |
5,715 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Averages-Pythagorean-means/Ada/averages-pythagorean-means-2.ada | with Ada.Numerics.Generic_Elementary_Functions;
package body Pythagorean_Means is
package Math is new Ada.Numerics.Generic_Elementary_Functions (Float);
function "**" (Left, Right : Float) return Float renames Math."**";
function Arithmetic_Mean (Data : Set) return Float is
Sum : Float := 0.0;
begin
... |
5,716 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_65.ads | package Problem_65 is
-- The square root of 2 can be written as an infinite continued fraction.
-- The infinite continued fraction can be written, √2 = [1;(2)], (2) indicates that 2 repeats ad infinitum. In a similar way, √23 = [4;(1,3,1,8)].
-- It turns out that the sequence of partial values of continued fra... |
5,717 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/tlsf-block-operations.ads | with TLSF.Config;
with TLSF.Block.Types;
with TLSF.Context;
with TLSF.Proof.Model.Context;
with TLSF.Proof.Model.Block;
package TLSF.Block.Operations with SPARK_Mode is
use TLSF.Config;
package BT renames TLSF.Block.Types;
package TC renames TLSF.Context;
package MB renames TLSF.Proof.Model.Block;
... |
5,718 | ada | 1 | faelys/natools-web | src/natools-web-comments.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
5,719 | ada | 1 | faelys/simple-webapps | generated/simple_webapps-commands-upload_servers-config.ads | <reponame>faelys/simple-webapps<filename>generated/simple_webapps-commands-upload_servers-config.ads
package Simple_Webapps.Commands.Upload_Servers.Config is
pragma Pure;
function Hash (S : String) return Natural;
end Simple_Webapps.Commands.Upload_Servers.Config;
|
5,720 | ada | 1 | TNO/Rejuvenation-Ada | src/rejuvenation-factory.adb | with GNATCOLL.Projects; use GNATCOLL.Projects;
with GNATCOLL.VFS; use GNATCOLL.VFS;
with Libadalang.Project_Provider; use Libadalang.Project_Provider;
package body Rejuvenation.Factory is
-- Project methods --------
function Create_Context return Project_Context is
(Context => Cre... |
5,721 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-data_decomposition.ads | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- --
-- ... |
5,722 | ada | 0 | Fabien-Chouteau/offmt-tool | src/offmt_lib-detection.adb | <reponame>Fabien-Chouteau/offmt-tool<filename>src/offmt_lib-detection.adb<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Conversions; use Ada.Characters.Conversions;
with Langkit_Support.Text;
package body Offmt_Lib.Detection is
--------------------------
-- Check_Defmt_Log_Call --
------... |
5,723 | ada | 33 | ytomino/drake | source/strings/a-stwifu.ads | pragma License (Unrestricted);
-- extended unit
with Ada.Strings.Generic_Functions;
package Ada.Strings.Wide_Functions is
new Generic_Functions (
Character_Type => Wide_Character,
String_Type => Wide_String,
Space => Wide_Space);
pragma Preelaborate (Ada.Strings.Wide_Functions);
|
5,724 | ada | 13 | Fabien-Chouteau/GESTE | tests/src/simple_text.adb |
with GESTE;
with GESTE.Text;
with Ada.Text_IO;
with Console_Char_Screen;
with GESTE_Fonts.FreeMono6pt7b;
procedure Simple_Text is
package Font_A renames GESTE_Fonts.FreeMono6pt7b;
package Console_Screen is new Console_Char_Screen
(Width => 42,
Height => 35,
Buffer_Size => 256,
... |
5,725 | ada | 12 | mgrojo/protobuf | source/compiler/generated/google-protobuf-descriptor.ads | <gh_stars>10-100
with Ada.Finalization;
with Ada.Streams;
with League.String_Vectors;
with League.Strings;
with PB_Support.Boolean_Vectors;
with PB_Support.IEEE_Float_64_Vectors;
with PB_Support.Integer_32_Vectors;
with PB_Support.Integer_64_Vectors;
with PB_Support.Stream_Element_Vector_Vectors;
with PB_Support.Univer... |
5,726 | ada | 30 | jscparker/math_packages | polynomial/clenshaw/chebychev.adb | <reponame>jscparker/math_packages
-----------------------------------------------------------------------
-- package body Chebychev. Data structure for generating Chebychev functions.
-- Copyright (C) 2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without ... |
5,727 | ada | 4 | reznikmm/torrent | source/torrent-logs.adb | -- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
package body Torrent.Logs is
Output : Ada.Text_IO.File_Type;
----------------
-- Initialize --
----------------
pr... |
5,728 | ada | 0 | reznikmm/gps-tracker | source/receiver/main/main.adb | -- SPDX-FileCopyrightText: 2021-2022 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
---------------------------------------------------------------------
with Ada.Real_Time;
with Ada.Streams;
with Ada.Unchecked_Conversion;
with Interfaces;
with System;
with ESP32.GPIO;
with ESP32.DPort;
with ESP32.SPI;
with L... |
5,729 | ada | 24 | svn2github/matreshka | source/web/servlet/http/servlet-http_parameters.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,730 | ada | 0 | reznikmm/gela | source/oasis/program-elements-pragmas.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Identifiers;
with Program.Elements.Parameter_Associations;
package Program.Elements.Pragmas is
pragma Pure (Progr... |
5,731 | ada | 1 | doug16rogers/solitaire | key_decrypt.adb | with Get_Line;
with Solitaire_Operations.Text_Representation;
with Ada.Text_IO;
use Ada;
procedure Key_Decrypt is
Passphrase : constant String := Get_Line;
Crypto : constant String := Get_Line;
Deck : Solitaire_Operations.Deck_List;
Plain : String (Crypto'range);
begin -- Key_Decrypt
Solitaire_Ope... |
5,732 | ada | 0 | irieger/Sarge | ada/test/sarge_test.adb | <filename>ada/test/sarge_test.adb
-- sarge_test.adb - Implementation file for the Sarge command line argument parser test.
-- Revision 0
-- Features:
-- -
-- Notes:
-- -
-- 2019/04/10, <NAME>
with Sarge;
with Ada.Text_IO;
use Ada.Text_IO;
procedure Sarge_test is
begin
-- Create Sarge instance, set s... |
5,733 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt28.adb | with Opt28_Pkg; use Opt28_Pkg;
package body Opt28 is
function Full_Filename (Filename : String) return String is
Path : constant String := "PATH";
Posix_Path : constant Posix_String := To_Posix (Path);
begin
declare
M : constant Posix_String := Value_Of (Posix_Path);
N : constant Posix_St... |
5,734 | ada | 0 | Arles96/PCompiladores | Pruebas/prueba2.adb | <filename>Pruebas/prueba2.adb<gh_stars>0
procedure prueba2 is
x:Integer := 0;
procedure Minimo2 () is
y:Integer;
function Minimo (a, b: Integer) return Integer is
yy:Integer;
begin
az := 12;
end Minimo;
begin
az := 12;
end Minimo2;
procedure Minimo4 () is
yt:Integer;
begin
... |
5,735 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/tkmrpc-contexts-ae.ads | <filename>specs/ada/server/tkmrpc-contexts-ae.ads<gh_stars>0
with Tkmrpc.Types;
package Tkmrpc.Contexts.ae
is
type ae_State_Type is
(clean,
-- Initial clean state.
invalid,
-- Error state.
stale,
-- AE context is stale.
unauth,
-- AE context is unauthentic... |
5,736 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/unzip/unzip-decompress.adb | with Zip.CRC, UnZip.Decompress.Huffman, BZip2;
with Ada.Text_IO, Interfaces;
with Ada.Streams.Stream_IO;
package body UnZip.Decompress is
procedure Decompress_data (
zip_file : Zip_Streams.Zipstream_Class;
format : PKZip_... |
5,737 | ada | 0 | My-Colaborations/ada-el | src/el-contexts-properties.ads | <filename>src/el-contexts-properties.ads<gh_stars>0
-----------------------------------------------------------------------
-- EL.Contexts.Properties -- EL Resolver using util properties
-- Copyright (C) 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");... |
5,738 | ada | 60 | RREE/ada-util | src/sys/serialize/util-serialize-tools.adb | <filename>src/sys/serialize/util-serialize-tools.adb
-----------------------------------------------------------------------
-- util-serialize-tools -- Tools to Serialize objects in various formats
-- Copyright (C) 2012, 2016, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Versi... |
5,739 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/a-calfor.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,740 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/raise_from_pure.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/raise_from_pure.adb<gh_stars>1-10
package body raise_from_pure is
function Raise_CE_If_0 (P : Integer) return Integer is
begin
if P = 0 then
raise Constraint_error;
end if;
return 1;
end;
end;
|
5,741 | ada | 7 | 98devin/ada-gba-dev | demo/src/Timer_Test.ads | <reponame>98devin/ada-gba-dev<filename>demo/src/Timer_Test.ads
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
procedure Timer_Test
with Linker_Section => ".iwram", No_Inline;
pragma Machine_Attribute (Timer_Test, "target", "arm"); |
5,742 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-objects-renderbuffers.adb | <filename>src/gl/implementation/gl-objects-renderbuffers.adb
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Unchecked_Conversion;
with GL.API;
with GL.Enums.Getter;
package body GL.Objects.Renderbuffe... |
5,743 | ada | 0 | twdroeger/ada-awa | awa/plugins/awa-mail/src/awa-mail-modules.ads | -----------------------------------------------------------------------
-- awa-mail -- Mail module
-- Copyright (C) 2011, 2012, 2017, 2018 <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 License.
... |
5,744 | ada | 24 | reznikmm/matreshka | source/web/spikedog/aws/matreshka-servlet_aws_responses.adb | <reponame>reznikmm/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
5,745 | ada | 5 | docandrew/troodon | include/gid/gid-color_tables.ads | <reponame>docandrew/troodon
--
-- Color tables, known as "palettes"
--
private package GID.Color_tables is
-- Load a palette on its defined range, according to
-- the format and subformats loaded by initial
-- steps in GID.Load_image_header
procedure Load_palette (image: in out Image_descriptor);
-- if... |
5,746 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/par-util.adb | <filename>tools-src/gnu/gcc/gcc/ada/par-util.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,747 | ada | 33 | ytomino/drake | source/s-finmas.adb | <gh_stars>10-100
with Ada.Exceptions;
with Ada.Unchecked_Deallocation;
with System.Address_To_Named_Access_Conversions;
with System.Shared_Locking;
package body System.Finalization_Masters is
pragma Suppress (All_Checks);
use type Storage_Barriers.Flag;
procedure Free is new Ada.Unchecked_Deallocation (FM_Lis... |
5,748 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-sfp-stm32g474/gnarl/a-exetim.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,749 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-isa_create_child.ads | with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Operation_Handlers.Ike.Isa_Create_Child is
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type);
-- Handler for the isa_create_child operation.
end Tkmrpc.Operation_Handlers.Ike.Isa_Create_Child;
|
5,750 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Subtractive-generator/Ada/subtractive-generator-2.ada | <reponame>LaudateCorpus1/RosettaCodeData
package body Subtractive_Generator is
procedure Initialize (Generator : in out State; Seed : Natural) is
S : Number_Array (0 .. 1);
I : Natural := 0;
J : Natural := 1;
begin
S (0) := Seed;
S (1) := 1;
Generator.R (54) := S (0);
Ge... |
5,751 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sem_type.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,752 | ada | 0 | cborao/Ada-P3 | maps_g_dyn/maps_g.ads | <gh_stars>0
--PRÁCTICA 3: <NAME> (Maps_G_Dyn.ads)
with Ada.Text_IO;
generic
type Key_Type is private;
type Value_Type is private;
Max_Clients: Natural;
with function "=" (K1, K2: Key_Type) return Boolean;
package Maps_G is
type Map is limited private;
procedure Get (M: Map;
Key: in Key_Type;
Value:... |
5,753 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aliasing2.ads | <reponame>best08618/asylo
package Aliasing2 is
type Arr is Array (1..4) of Integer;
type Ptr is access all Integer;
A : Arr;
function F (P : Ptr) return Integer;
end Aliasing2;
|
5,754 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/g-string.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,755 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/math/impact-d3-aabb_util.adb | with impact.d3.Transform,
impact.d3.Matrix,
impact.d3.Vector;
with impact.d3.min_max;
package body impact.d3.aabb_Util
is
procedure Transform_Aabb (halfExtents : in math.Vector_3;
margin : in math.Real;
t : in Tran... |
5,756 | ada | 2 | egustafson/sandbox | Ada/DataStructures/Containers/generic_stack.ads | <filename>Ada/DataStructures/Containers/generic_stack.ads
generic
type Element_Type is private;
package Generic_Stack is
type T is limited private;
procedure Push( Stack: in out T; Element: in Element_Type );
procedure Pop( Stack: in out T; Element: out Element_Type );
procedure Peek( Stack: in o... |
5,757 | ada | 0 | jhumphry/Ada_BinToAsc | src/tests/bintoasc_suite-base32_tests.ads | <reponame>jhumphry/Ada_BinToAsc
-- BinToAsc_Suite.Base32_Tests
-- Unit tests for BinToAsc
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
with RFC4648;
with BinToAsc_Suite.Utils;
package BinToAsc_Suite.Base32_Tests is
Base32_Test_... |
5,758 | ada | 4 | faelys/gela-asis | source/asis/asis-extensions.adb | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
5,759 | ada | 24 | svn2github/matreshka | tools/ayacc/src/lists.adb | <reponame>svn2github/matreshka
with Unchecked_Deallocation;
package body Lists is
procedure Free is
new Unchecked_Deallocation (Element_Type, Element_Pointer);
--------------------------------------------------------------------------
procedure Attach (List1 : in out List;
... |
5,760 | ada | 1 | mullikine/RosettaCodeData | Task/Pig-the-dice-game/Ada/pig-the-dice-game-1.ada | package Pig is
type Dice_Score is range 1 .. 6;
type Player is tagged private;
function Recent(P: Player) return Natural;
function All_Recent(P: Player) return Natural;
function Score(P: Player) return Natural;
type Actor is abstract tagged null record;
function Roll_More(A: Actor; Self, Opponen... |
5,761 | ada | 33 | ytomino/drake | source/interfaces/i-cpoint.adb | with System.Storage_Elements;
package body Interfaces.C.Pointers is
use type System.Storage_Elements.Storage_Offset;
-- no System.Address_To_Access_Conversions for modifying to Pure
function To_Pointer (Value : System.Address) return access Element
with Import, Convention => Intrinsic;
function To_A... |
5,762 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1009z.ada | -- CD1009Z.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... |
5,763 | ada | 5 | ianloic/unladen-swallow | Util/llvm/bindings/ada/target/llvm_target.ads | <reponame>ianloic/unladen-swallow
-- This file is generated by SWIG. Do *not* modify by hand.
--
with Interfaces.C.Extensions;
package LLVM_Target is
-- LLVMOpaqueTargetData
--
type LLVMOpaqueTargetData is new
Interfaces.C.Extensions.opaque_structure_def;
type LLVMOpaqueTargetData_array is
ar... |
5,764 | ada | 0 | TimBo93/AdventOfCode2021 | Day 06/src/main.adb | <filename>Day 06/src/main.adb
with Ada.Directories; use Ada.Directories;
with Ada.Strings.Unbounded;
with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO ;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
use Ada.Containers;
procedure Main is
nameOk : boolean :... |
5,765 | ada | 89 | treggit/sdlada | unit_tests/colour_test_cases.adb | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- 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 from the... |
5,766 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/RP/svd/rp2040/rp_svd-pwm.ads | -- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Simple PWM
package RP_SVD.PWM is
pragma ... |
5,767 | ada | 70 | Lucretia/bare_bones | build/gnat/rts/4.9/adainclude/interfac.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,768 | ada | 1 | skill-lang/skillAdaTestSuite | test/floats/test_floats-read.ads | with Ada.Numerics.Generic_Elementary_Functions;
with Ahven.Framework;
with Floats.Api;
package Test_Floats.Read is
use Floats;
use Floats.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure Float;
procedure Double;
end Test_Floats.R... |
5,769 | ada | 33 | ytomino/drake | source/machine-pc-linux-gnu/s-stomap.ads | pragma License (Unrestricted);
-- runtime unit specialized for Linux
package System.Storage_Map is
pragma Preelaborate;
function Load_Address return Address;
Growing_Down_Is_Preferred : constant Boolean := True; -- bias of mmap
end System.Storage_Map;
|
5,770 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f0/i2c/peripherals.ads | <gh_stars>1-10
with STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.I2C;
with STM32GD.I2C.Peripheral;
with Drivers.Si7006;
package Peripherals is
package GPIO renames STM32GD.GPIO;
package SCL is new GPIO.Pin (Pin => GPIO.Pin_6, Port => GPIO.Port_B,
Mode => GPIO.Mode_AF, Alternate_Function => 1);
pa... |
5,771 | ada | 12 | jquorning/ada-asf | samples/render.adb | -----------------------------------------------------------------------
-- render -- XHTML Rendering example
-- Copyright (C) 2010, 2017, 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 compliance with the... |
5,772 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/g45/hw-gfx-gma-gmch.ads | <reponame>fabiojna02/OpenCellular
with HW.GFX.GMA.Config;
private package HW.GFX.GMA.GMCH is
GMCH_PORT_PIPE_SELECT_SHIFT : constant := 30;
GMCH_PORT_PIPE_SELECT_MASK : constant := 1 * 2 ** 30;
type GMCH_PORT_PIPE_SELECT_Array is array (Pipe_Index) of Word32;
GMCH_PORT_PIPE_SELECT : constant GMCH_PO... |
5,773 | ada | 0 | JCGobbi/Nucleo-STM32F334R8 | ADL/drivers/stm32f334/stm32-can.adb | <reponame>JCGobbi/Nucleo-STM32F334R8
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2018, AdaCore --
-- ... |
5,774 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/s-bbprot.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,775 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-busorg.ads | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,776 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Student_Packages/vehicle_message_type.ads | <reponame>ForYouEyesOnly/Space-Convoy
-- Suggestions for packages which might be useful:
with Ada.Real_Time; use Ada.Real_Time;
with Vectors_3D; use Vectors_3D;
with Swarm_Structures_Base; use Swarm_Structures_Base;
with Vehicle_Task_Type; use Vehicle_Task_Type;
-- Author : <NAME>
-- u_id : u625184... |
5,777 | ada | 15 | mgrojo/adalib | system-address_to_access_conversions.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-... |
5,778 | ada | 0 | reznikmm/gela | source/units/program-units-subunits.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Units.Bodies;
package body Program.Units.Subunits is
--------------------
-- Append_Subunit --
--------------------
procedure Append_Subunit
... |
5,779 | ada | 5 | jhumphry/auto_counters | src/flyweights/flyweights-refcounted_ptrs.ads | -- flyweights-refcounted_ptrs.ads
-- A package of reference-counting generalised references which point to
-- resources inside a Flyweight
-- Copyright (c) 2016, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the abo... |
5,780 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/g-speche.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
5,781 | ada | 1 | Kurinkitos/Twizy-Security | src/converters.ads | with Interfaces.C; use Interfaces.C;
with common_data_h; use common_data_h;
with speed_data_h; use speed_data_h;
with types;
package converters with SPARK_Mode is
use Types;
function double_to_speed (d : double) return Types.speed with
Pre => d > Double(-80.0) and d < Double(80.0),
Post => double_... |
5,782 | ada | 0 | Fabien-Chouteau/bb_pico_bsp | src/bb_pico_bsp-touch.adb | with BB_Pico_Bsp.STMPE811;
with BB_Pico_Bsp.SPI;
with BB_Pico_Bsp.LCD;
with RP.Device;
with RP.GPIO;
with Pico;
package body BB_Pico_Bsp.Touch is
Touch_CS : RP.GPIO.GPIO_Point renames Pico.GP7;
Device : BB_Pico_Bsp.STMPE811.STMPE811_Device
(Port => BB_Pico_Bsp.SPI.Port,
Chip_Select => Touch... |
5,783 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/cortex_m/src/cm7/cortex_m_svd-cache.ads | <reponame>rocher/Ada_Drivers_Library<filename>arch/ARM/cortex_m/src/cm7/cortex_m_svd-cache.ads
-- This spec has been automatically generated from cm7.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Cache maintenance operations
package Cortex_M_SV... |
5,784 | ada | 52 | onox/orka | orka_egl/src/egl-debug.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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
-... |
5,785 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto9.adb | -- { dg-do run }
-- { dg-options "-flto" { target lto } }
with Lto9_Pkg1; use Lto9_Pkg1;
procedure Lto9 is
begin
District_Subscription_Lists.Put
(List => District_01_Subscribers,
Elem_Ptr => New_Subscriber_01'Access,
Location => 1);
end;
|
5,786 | ada | 0 | luk9400/nsi | list3/task3/a/src/bubble.ads | <gh_stars>0
package Bubble with SPARK_Mode is
type Arr is array (Integer range <>) of Integer;
function Sorted (A : Arr) return Boolean is
(for all I in A'First .. A'Last - 1 => A(I) <= A(I + 1))
with
Ghost,
Pre => A'Last > Integer'First,
Post => Sorted'Result = (for a... |
5,787 | ada | 0 | persan/dds-requestreply | examples/hello_world_request_reply/src/primes-replier_main.adb | with Ada.Command_Line;
with Ada.Numerics.Long_Elementary_Functions;
with Ada.Text_IO;
with DDS.DomainParticipant;
with DDS.DomainParticipantFactory;
with Primes.PrimeNumberReplier;
with Primes.PrimeNumberRequest_TypeSupport;
with RTIDDS.Config;
procedure Primes.Replier_Main is
use Ada.Numerics.Long_Elementary_Fun... |
5,788 | ada | 80 | thindil/steamsky | src/game-saveload.ads | <reponame>thindil/steamsky<gh_stars>10-100
-- Copyright 2017-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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 ... |
5,789 | ada | 20 | charlie5/lace | 3-mid/opengl/source/platform/egl/private/opengl-surface_profile-privvy.adb | <reponame>charlie5/lace<filename>3-mid/opengl/source/platform/egl/private/opengl-surface_profile-privvy.adb
package body opengl.surface_Profile.privvy
is
function to_eGL (Self : in Item'Class) return egl.EGLConfig
is
begin
return Self.egl_Config;
end to_eGL;
end opengl.surface_Profile.privvy;
|
5,790 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-any.ads | <reponame>charlie5/lace-alire<gh_stars>1-10
with
openGL.Geometry;
package openGL.Model.any
--
-- Provides a general 3D model.
--
-- This model is largely used by the IO importers of various model formats (ie collada, wavefront, etc).
--
is
type Item is new Model.item with private;
type View is access all... |
5,791 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | src/extraction-project_files.ads | with Extraction.Graph_Operations;
private package Extraction.Project_Files is
procedure Extract_Nodes
(Project : GPR.Project_Type;
Graph : Graph_Operations.Graph_Context);
procedure Extract_Edges
(Project : GPR.Project_Type;
Recurse_Projects : Boolean;
Graph : ... |
5,792 | ada | 0 | optikos/oasis | source/nodes/program-nodes-if_expressions.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.If_Expressions is
function Create
(If_Token : not null Program.Lexical_Elements
.Lexical_Element_Acc... |
5,793 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/overflow_sum.adb | <gh_stars>1-10
-- { dg-do run }
-- { dg-options "-gnato" }
procedure Overflow_Sum is
function sum (a, b, c, d, e, f, g, h, i, j, k, l, m,
n, o, p, q, r, s, t, u, v, w, x, y, z : Integer)
return Integer
is
begin
return a + b + c + d + e + f + g + h + i + j + k + l + m... |
5,794 | ada | 10 | LionelDraghi/smk | src/file_utilities.ads | -- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache ... |
5,795 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-tamp.ads | -- This spec has been automatically generated from STM32WL5x_CM4.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.TAMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- control register 1
... |
5,796 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-calcon.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,797 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-imgdec.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
5,798 | ada | 3 | jwarwick/aoc_2020 | day16/src/day.ads | <filename>day16/src/day.ads
-- AOC 2020, Day 16
with Ada.Containers.Vectors;
with Ada.Containers; use Ada.Containers;
package Day is
type Tickets is private;
function load_file(filename : in String) return Tickets;
function sum_error_rate(t : in Tickets) return Natural;
function departure_fields(t : in Ticket... |
5,799 | ada | 33 | ytomino/drake | source/numerics/i386/sse2/a-nudsge.adb | with Ada.Unchecked_Conversion;
package body Ada.Numerics.dSFMT.Generating is
-- SSE2 version
use type Interfaces.Unsigned_64;
type v2df is array (0 .. 1) of Long_Float;
for v2df'Alignment use 16;
pragma Machine_Attribute (v2df, "vector_type");
pragma Machine_Attribute (v2df, "may_alias");
pragma ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.