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,800 | ada | 0 | Black-Photon/Programming-Language-of-the-Month | April/signal.ads | <gh_stars>0
with Ada.Interrupts; use Ada.Interrupts;
with Ada.Interrupts.Names; use Ada.Interrupts.Names;
package signal is
protected Handler is
entry Wait;
procedure Handle;
pragma Interrupt_Handler(Handle);
pragma Attach_Handler(Handle, Sigint);
private
Call_Count : Natural :=... |
5,801 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/lib-load.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,802 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Call-a-function/Ada/call-a-function-3.ada | type Integer_Array is array (Positive range <>) of Integer;
function Sum(A: Integer_Array) return Integer is
S: Integer := 0;
begin
for I in A'Range loop
S := S + A(I);
end loop;
return S;
end Sum;
...
A := Sum((1,2,3)); -- A = 6
B := Sum((1,2,3,4)); -- B = 10
|
5,803 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-transform_parser.ads | <gh_stars>0
with Memory.Transform; use Memory.Transform;
generic
type T_Type (<>) is new Transform_Type with private;
type T_Pointer is access all T_Type'Class;
with function Create_Transform return T_Pointer;
package Parser.Transform_Parser is
procedure Parse(parser : in out Parser_Type;
... |
5,804 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/radar/030_basic_types/util/radar_internals.ads | package Radar_Internals is
procedure Time_Step (Radar_Angle : Float;
Time_To_Arrival : Float;
John_Connor_Status : String);
end Radar_Internals;
|
5,805 | ada | 1 | mapcode-foundation/mapcode-ada | src/mapcode_utils-as_u.ads | -- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a... |
5,806 | ada | 0 | reznikmm/gela | examples/dump_tree/dump_elements.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with Program.Element_Iterators;
with Program.Element_Visitors;
with Program.Elements.Pragmas;
with Program.Elements.Defining_Identifiers;
wit... |
5,807 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-sothco.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,808 | ada | 2 | thindil/tashy2 | tests/tcl-lists-test_data-tests.adb | <filename>tests/tcl-lists-test_data-tests.adb
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-... |
5,809 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l5x2/stm32_svd-gtzc.ads | <reponame>morbos/Ada_Drivers_Library
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.GTZC is
pragma Preelaborate;
---------------
-- Registers --
------------... |
5,810 | ada | 1 | meowthsli/veriflight_boards | cc3df4revo/cfg/disco/spi_accel.adb | <filename>cc3df4revo/cfg/disco/spi_accel.adb
with STM32.GPIO; use STM32.GPIO;
with STM32.Device; use STM32.Device;
with STM32.SPI; use STM32.SPI;
with HAL.SPI; use HAL.SPI;
with cc3df4revo.Board;
package body spi_accel is
package GPIO renames STM32.GPIO;
--
-- SPI connection initialization
--
procedure... |
5,811 | ada | 12 | TUM-EI-RCS/StratoX | software/modules/buzzer_manager.adb | -- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
with HIL.Buzzer;
with Ada.Real_Time; use Ada.Real_Time;
with Types;
-- @summary
-- Interface to use a buzzer/beeper.
package body Buzzer_Manager with SPARK_Mode... |
5,812 | ada | 0 | wookey-project/ewok-legacy | src/arch/socs/stm32f429/Ada/soc-gpio.ads | <reponame>wookey-project/ewok-legacy
--
-- 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 ... |
5,813 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f1/gpio_null/main.adb | <gh_stars>1-10
with STM32GD.Board; use STM32GD.Board;
procedure Main is
begin
Init;
LED2.Clear;
LED.Set;
loop
if BUTTON.Is_Set then
LED2.Toggle;
LED.Toggle;
end if;
end loop;
end Main;
|
5,814 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f3/stm32f303xe/svd/stm32_svd-opamp.ads | <reponame>ekoeppen/STM32_Generic_Ada_Drivers<gh_stars>1-10
-- This spec has been automatically generated from STM32F303xE.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.OPAMP is
pragma Preelaborate;
---------------
-- Registers --
... |
5,815 | ada | 0 | JeremyGrosser/the_grid | src/sound.ads | <filename>src/sound.ads
with RP.PWM;
package Sound is
type Octaves is range 0 .. 11;
type Notes is (C, Cs, D, Ds, E, F, Fs, G, Gs, A, As, B);
subtype Milliseconds is Natural;
procedure Initialize;
procedure Update;
procedure Play
(Note : Notes;
Octave : Octaves;
Length : Mill... |
5,816 | ada | 7 | 98devin/ada-gba-dev | src/GBA.Numerics.adb | <reponame>98devin/ada-gba-dev
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with Ada.Unchecked_Conversion;
package body GBA.Numerics is
--
-- Helpers for extracting upper and lower 32 bits
-- of signed and unsigned 64-bit integer types.
--
type LL_Parts is
record
Lowe... |
5,817 | ada | 0 | optikos/oasis | source/oasis/program-elements-formal_procedure_access_types.ads | <filename>source/oasis/program-elements-formal_procedure_access_types.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Formal_Access_Types;
with Program.Lexical_Elements;
wit... |
5,818 | ada | 80 | thindil/steamsky | src/mobs.ads | -- 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 of the License, or
-- (at your option) a... |
5,819 | ada | 7 | 98devin/ada-gba-dev | src/GBA.BIOS.Raw.Thumb.ads | -- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with GBA.Interrupts;
use GBA.Interrupts;
with GBA.Memory;
use GBA.Memory;
with GBA.BIOS.Generic_Interface;
package GBA.BIOS.Raw.Thumb is
IMPORT_PREFIX : constant String := "bios_thumb__";
procedure Soft_Reset
with Import, External... |
5,820 | ada | 33 | ytomino/drake | source/tasking/machine-apple-darwin/s-multip.adb | with C.unistd;
package body System.Multiprocessors is
use type C.signed_long;
function Number_Of_CPUs return CPU is
Result : C.signed_long;
begin
Result := C.unistd.sysconf (C.unistd.SC_NPROCESSORS_ONLN);
if Result < 0 then
raise Program_Error;
end if;
return CPU (Result... |
5,821 | ada | 2 | Stykk-Gruppen/rts-project | project/src/vehicle_controller.ads | <reponame>Stykk-Gruppen/rts-project
package Vehicle_Controller is
type Colour is (Red, Green, Blue, Yellow);
type Direction is (Forward, Backward, Stop, Braking);
task Compute with Priority => 3;
task Status_Light with Priority => 1;
procedure Change_Direction;
private
Status_Light_Colour : Colour ... |
5,822 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-deployment_specifications.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,823 | ada | 1 | Hathoute/ENSEEIHT | PIM/TD1_Algorithmique/drone.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Piloter un drone au moyen d'un menu textuel.
procedure Drone is
Demarrage: Boolean; -- True si le drone est demarré
Altitude: Integer; -- Valeur de l'altitude
Choix: Character; --... |
5,824 | ada | 4 | jerry-sky/academic-notebook | electives/pw/lab/lista-3/ada/external.ads | <filename>electives/pw/lab/lista-3/ada/external.ads
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO;
with Ada.Text_IO;
with Ada.Command_Line;
with Ada.Numerics.Float_Random;
package External is
package STR renames Ada.Strings.Unbounded;
package IO renames Ada.Strings.Unbounded.Text_IO;
pack... |
5,825 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3413b.ada | -- CE3413B.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,826 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/exp_dist.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,827 | ada | 18 | kraileth/ravenadm | src/display-curses.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Terminal_Interface.Curses;
package Display.Curses is
package TIC renames Terminal_Interface.Curses;
-- Initialize the curses screen.
-- Returns False if no color support (curses not used at all)
... |
5,828 | ada | 1 | alvaromb/Compilemon | src/semantica-gci.ads | <reponame>alvaromb/Compilemon
with Semantica.Declsc3a,
Pilas,
Decls.Dgenerals;
use Semantica.Declsc3a;
package Semantica.gci is
Camp_Nul : constant Camp := (Const, Var_Nul);
type T_Param is record
Base, Despl : num_Var;
end record;
procedure Genera
(Instr : in tInstruccio;
C1 : ... |
5,829 | ada | 2 | Spohn/LegendOfZelba | w_gen.ads | PACKAGE w_gen IS
-------------------------------
-- Name: <NAME>
-- <NAME>
-- w_gen package specification
-------------------------------
---------------------------------------------------------
-- declaration of data types and structures
row_range : CONSTANT Integer := 50;
col_... |
5,830 | ada | 3 | rogermc2/GA_Ada | ga_ref_impl/src/multivector_utilities.adb |
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces;
with Bits;
with Blade;
with Blade_Types;
-- with GA_Utilities;
with Metric;
with Multivector_Type;
package body Multivector_Utilities is
-- Factorize_Blades returns the k unit factors of the blade and
-- the scale of the blade
function Factorize_Bl... |
5,831 | ada | 0 | persan/advent-of-code-2020 | src/day-13/adventofcode-day_13.ads | package Adventofcode.Day_13 is
end Adventofcode.Day_13;
|
5,832 | ada | 0 | Arles96/PCompiladores | Pruebas/test.adb | procedure Numbers is
Mike, Alice: Integer;
John_Smith: Integer;
F: Float := 1.0;
procedure x2 (x3:Integer) is
x: Integer := 1;
begin
Mike := 1;
end x2;
begin
x2(Alice, 2, 3);
end Numbers; |
5,833 | ada | 0 | skill-lang/adaCommon | src/skill-streams-writer.adb | <reponame>skill-lang/adaCommon
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ stream to skill tokens --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> ... |
5,834 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Singly-linked-list-Element-insertion/Ada/singly-linked-list-element-insertion.ada | with Ada.Unchecked_Deallocation;
-- Define the link type
procedure Singly_Linked is
type Link;
type Link_Access is access Link;
type Link is record
Data : Integer;
Next : Link_Access := null;
end record;
-- Instantiate the generic deallocator for the link type
procedure Free is new Ada.Un... |
5,835 | ada | 1 | ScottWLoyd/ada_dynamic_libs | obj/b__main.ads | <gh_stars>1-10
pragma Ada_95;
pragma Warnings (Off);
with System;
package ada_main is
gnat_argc : Integer;
gnat_argv : System.Address;
gnat_envp : System.Address;
pragma Import (C, gnat_argc);
pragma Import (C, gnat_argv);
pragma Import (C, gnat_envp);
gnat_exit_status : Integer;
pragma Impor... |
5,836 | ada | 0 | thomas070605/shoot-n-loot | src/monsters.ads | <filename>src/monsters.ads
-- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with Game_Assets; use Game_Assets;
with GESTE;
package Monsters is
Max_Nbr_Of_Monsters : constant := 5;
procedure Init (Objects : Object_Array)
with Pre => Objects'Length <= Max_Nbr_Of_Monsters;
function Check_Hit (Pt : GE... |
5,837 | ada | 0 | honno/code-solutions | university/language-concepts-labs/8/ada/flow.adb | <reponame>honno/code-solutions<gh_stars>0
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;
with Text_IO;
use Text_IO;
procedure Flow
is
function Distance(Flow1 : Float; Flow2 : Float)
return Float
is
begin
return abs(Flow1 - Flow2);
end ... |
5,838 | ada | 0 | M1nified/Ada-Samples | pmap_demo.adb | <filename>pmap_demo.adb
-- przykłady: pakiet, select w zasdaniu, access do zadania jako parametr wywołania
with PMap;
with Ada.Text_Io;
use PMap,Ada.Text_Io;
procedure pmap_demo is
Arr1 : vector := (1,6,2,67,3);
Arr1_ptr : vector_ptr;
Arr2_ptr : vector_ptr;
begin
Arr1_ptr := new vector(Arr1'range);
Put_Lin... |
5,839 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_27.ads | <filename>Ada/inc/Problem_27.ads
package Problem_27 is
procedure Solve;
end Problem_27;
|
5,840 | ada | 4 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-partial-type.d/input.ads | <filename>third_party/universal-ctags/ctags/Units/parser-ada.r/ada-partial-type.d/input.ads
package P is
type T;
type T is record
One: access T;
-- Missing semicolon used to choke the Ada parser
Two: access T
end record;
end P;
|
5,841 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-window-event.ads | --//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <NAME> (<EMAIL>)
-- 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 use of this... |
5,842 | ada | 1 | stcarrez/babel | src/babel-base-text.ads | -----------------------------------------------------------------------
-- babel-base -- Database for files
-- Copyright (C) 2014, 2015, 2016 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
5,843 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-memmov.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,844 | ada | 1 | io7m/coreland-opengl-ada | opengl-light.ads | package OpenGL.Light is
type Light_Index_t is
(Light_0,
Light_1,
Light_2,
Light_3,
Light_4,
Light_5,
Light_6,
Light_7);
-- proc_map : glEnable
procedure Enable (Index : in Light_Index_t);
pragma Inline (Enable);
-- proc_map : glDisable
procedure Disable (Index : in ... |
5,845 | ada | 22 | FardaleM/metalang | out/euler50.adb | <reponame>FardaleM/metalang
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 euler50 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
... |
5,846 | ada | 4 | faelys/gela-asis | source/libgela/gela-repository-dictionary.ads | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
5,847 | ada | 0 | iyan22/AprendeAda | ejercicios6/prueba_longitud.adb | <filename>ejercicios6/prueba_longitud.adb
with Ada.Text_Io, Ada.Integer_Text_Io, Datos;
with Crear_Lista_Vacia, Ins, Esc, Longitud;
use Datos;
use Ada.Text_Io, Ada.Integer_Text_Io;
procedure Prueba_Longitud is
Lis : Lista; -- variable del programa principal
procedure Pedir_Return is
begin
Put_Lin... |
5,848 | ada | 52 | onox/orka | orka_plugin_sdl/src/orka-inputs-sdl.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
-... |
5,849 | ada | 1 | JeremyGrosser/sensors | src/adxl345_spi.adb | <filename>src/adxl345_spi.adb
--
-- Copyright (C) 2022 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Unchecked_Conversion;
package body ADXL345_SPI is
package body Register is
use HAL.SPI;
use HAL;
subtype Data_Array is SPI_Data_8b (1 .. Register_Type'Size / 8);
... |
5,850 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3225a.ada | <gh_stars>1-10
-- CC3225A.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.... |
5,851 | ada | 12 | TUM-EI-RCS/StratoX | software/libsparklemma/src/spark-constrained_array_lemmas.adb | <filename>software/libsparklemma/src/spark-constrained_array_lemmas.adb
------------------------------------------------------------------------------
-- --
-- SPARK LIBRARY COMPONENTS --
-- ... |
5,852 | ada | 52 | onox/orka | orka/src/orka/interface/orka-contexts.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... |
5,853 | ada | 0 | JeremyGrosser/the_grid | src/bitmaps.ads | <filename>src/bitmaps.ads
--
-- Copyright (C) 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Graphics;
package Bitmaps is
Width : constant := 8;
Height : constant := 8;
-- All bitmaps are stored as row-major, 2-bit per pixel color value. The
-- actual display color is dete... |
5,854 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/HTTPS/Ada/https.ada | with AWS.Client;
with AWS.Response;
with Ada.Text_IO; use Ada.Text_IO;
procedure GetHttps is
begin
Put_Line (AWS.Response.Message_Body (AWS.Client.Get (
URL => "https://sourceforge.net/")));
end GetHttps;
|
5,855 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbbosu__m1agl.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
5,856 | ada | 33 | ytomino/drake | source/s-forfix.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- implementation unit
package System.Formatting.Fixed is
pragma Pure;
procedure Image (
Value : Long_Long_Float;
Item : out String; -- To'Length >= T'Fore + T'Aft + 5 (16#.#)
Fore_Last, Last : out Natural;
Signs : Sign_Marks := ('-', ' ', ... |
5,857 | ada | 81 | fuzzysloth/ada-awa | awa/src/awa-permissions-services.ads | -----------------------------------------------------------------------
-- awa-permissions-services -- Permissions controller
-- Copyright (C) 2011, 2012, 2013, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in co... |
5,858 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-flash_cmpa.ads | <reponame>morbos/Ada_Drivers_Library
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_S... |
5,859 | ada | 1 | sourceryinstitute/rose-sourcery-institute | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/package_with_body.adb | <filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/package_with_body.adb
package body Package_With_Body is
procedure Procedure_To_Require_Body is
begin
null;
end Procedure_To_Require_Body;
end Package_With_Body;
|
5,860 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/generic_function_declaration.ads | package generic_function_declaration is
generic
function test(X : Integer) return Integer;
end generic_function_declaration;
|
5,861 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_check_internal_check_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with System;
-- with GStreamer.GST_Low_Level.time_h;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_check_internal_check_h is
-- unsupported macro: CK_CPPSTART extern "C" {
-... |
5,862 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-buttons.ads | <filename>src/fltk-widgets-buttons.ads
package FLTK.Widgets.Buttons is
type Button is new Widget with private;
type Button_Reference (Data : not null access Button'Class) is limited null record
with Implicit_Dereference => Data;
type State is (Off, On);
package Forge is
functi... |
5,863 | ada | 33 | ytomino/drake | examples/bindtimevars.adb | with Ada.Bind_Time_Variables;
procedure bindtimevars is
begin
for I in Ada.Bind_Time_Variables.Iterate loop
Ada.Debug.Put (
Ada.Bind_Time_Variables.Name (I)
& " = "
& Ada.Bind_Time_Variables.Value (I));
end loop;
pragma Assert (Ada.Bind_Time_Variables.Exists ("KEY1"));
pragma Assert (Ada.Bind_Time_Variab... |
5,864 | ada | 192 | rocher/Ada_Drivers_Library | examples/shared/common/lch_full/lcd/last_chance_handler.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
5,865 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/afrl-impact-angledareasearchtask-spark_boundary.adb | package body afrl.impact.AngledAreaSearchTask.SPARK_Boundary with SPARK_Mode => Off is
function Get_SearchAreaID (X : AngledAreaSearchTask) return Int64 renames
getSearchAreaID;
end afrl.impact.AngledAreaSearchTask.SPARK_Boundary;
|
5,866 | ada | 1 | jquorning/WeDo | source/database-jobs.adb | pragma License (Restricted);
--
-- Copyright (C) 2020 <NAME> All Rights Reserved.
--
-- 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 fr... |
5,867 | ada | 15 | mgrojo/adalib | ada-strings-utf_encoding-conversions.ads | <gh_stars>10-100
-- Standard Ada library specification
-- 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-Identifier: BSD-3-Clause and... |
5,868 | ada | 0 | alexcamposruiz/dds-requestreply | src/dds-patches/dds-domainparticipant_impl.ads | -- (c) Copyright, Real-Time Innovations, $Date:: 2012-02-16 #$
-- All rights reserved.
--
-- No duplications, whole or partial, manual or electronic, may be made
-- without express written permission. Any such copies, or
-- revisions thereof, must display this notice unaltered.
-- This code contains trade secret... |
5,869 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/dynamics/contacts/impact-d2-contact-polygon_circle.adb | with impact.d2.Colliders,
impact.d2.Shape.polygon,
impact.d2.Shape.circle;
package body impact.d2.Contact.polygon_circle
is
function to_b2PolygonAndCircleContact (fixtureA, fixtureB : access fixture.b2Fixture'Class) return b2PolygonAndCircleContact
is
use type shape.Kind;
new_Contact : ... |
5,870 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto11.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto11.adb<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-flto" { target lto } }
with Ada.Streams; use Ada.Streams;
package body Lto11 is
procedure Write
(S : not null access Root_Stream_Type'Class;
V : Vector)
is
subtype M_SEA is Stre... |
5,871 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-valuators-dials-line.adb | <reponame>micahwelf/FLTK-Ada<filename>src/fltk-widgets-valuators-dials-line.adb<gh_stars>1-10
with
Interfaces.C.Strings,
System;
use type
System.Address;
package body FLTK.Widgets.Valuators.Dials.Line is
procedure line_dial_set_draw_hook
(W, D : in System.Address);
pragma Import ... |
5,872 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/g-enblsp-vms-ia64.adb | <reponame>vidkidz/crossbridge<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,873 | ada | 0 | persan/midnightsun-ctf-LoveLacedLetter | src/hide-value.ads | <reponame>persan/midnightsun-ctf-LoveLacedLetter<gh_stars>0
function Hide.Value (Data : String ) return Integer with
Pre => (for all I in Data'Range => Data (I) in '0' .. '9');
|
5,874 | ada | 0 | Tim-Tom/project-euler | Ada/src/Problem_60.adb | <filename>Ada/src/Problem_60.adb
with Ada.Text_IO;
with PrimeInstances;
with Ada.Containers.Vectors;
package body Problem_60 is
package IO renames Ada.Text_IO;
package Positive_Primes renames PrimeInstances.Positive_Primes;
type PrimePair is record
first, second : Positive;
end record;
type PrimeTr... |
5,875 | ada | 1 | ForYouEyesOnly/Space-Convoy | bindings/glu.adb | <gh_stars>1-10
with Ada.Unchecked_Conversion, System;
package body GLU is
type loc_DoublePtr is new GL.doublePtr;
pragma No_Strict_Aliasing (Matrix_Double_Ptr);
pragma No_Strict_Aliasing (Viewport_Ptr);
pragma No_Strict_Aliasing (loc_DoublePtr);
-- recommended by GNAT 2005
procedure Get (pnam... |
5,876 | ada | 2 | thindil/tashy2 | tests/tk-ttklabel-ttk_label_options_test_data-ttk_label_options_tests.ads | -- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with GNATtest_Generated;
package Tk.TtkLabel.Ttk_Label_Options_Test_Data.Ttk_Label_Options_Tests is
type Test_Ttk_Label_Options is new GNATtest_Generated.... |
5,877 | ada | 2 | stcarrez/ada-libsecret | src/secret-attributes.adb | <reponame>stcarrez/ada-libsecret<gh_stars>1-10
-----------------------------------------------------------------------
-- secret-attributes -- Attribute list representation
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
5,878 | ada | 24 | svn2github/matreshka | source/league/codecs/matreshka-internals-text_codecs-koi8r.adb | <filename>source/league/codecs/matreshka-internals-text_codecs-koi8r.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
5,879 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/root-level_2.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/root-level_2.ads
with Root.Level_1;
package Root.Level_2 is
type Level_2_Type (First : Natural;
Second : Natural) is new
Level_1.Level_1_Type (First => First, Second => Second) with null record;
end Root.Level_2;
|
5,880 | ada | 9 | Kidev/AdaPhysics2D | vectors2d.ads | package Vectors2D with SPARK_Mode => On is
type Vec2D is tagged record
x : Float := 0.0;
y : Float := 0.0;
end record;
function "=" (Left, Right : Vec2D) return Boolean;
function "+" (Left, Right : Vec2D) return Vec2D;
function "-" (Left, Right : Vec2D) return Vec2D;
-- unary minus
... |
5,881 | ada | 80 | thindil/steamsky | src/ui/bases-schoolui.adb | <reponame>thindil/steamsky<filename>src/ui/bases-schoolui.adb
-- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, o... |
5,882 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_000a.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,883 | ada | 1 | Vovanium/stm32-ada | examples/led_flasher/source/led_flasher.adb | with STM32.F407Z; use STM32.F407Z;
use STM32.F407Z.Modules.GPIO;
with STM32.F4.GPIO.Ports; use STM32.F4.GPIO.Ports;
with Ada.Real_Time; use Ada.Real_Time;
procedure LED_Flasher is
Period: constant Time_Span := Milliseconds(250);
On_Time: constant Time_Span := Milliseconds(10);
Now: Time := Clock;
... |
5,884 | ada | 0 | mstewartgallus/linted | src/ada-libc/src/libc-errno.ads | <reponame>mstewartgallus/linted<gh_stars>0
-- Copyright 2015, 2017 <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://www.apache.org/licenses/LICENSE-2.0
--
-- Unless... |
5,885 | ada | 2 | thorstel/Advent-of-Code-2018 | day24/day24.adb | with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Generic_Array_Sort;
with Ada.Containers.Ordered_Sets;
procedure Day24 is
type Damage_Type is (Radiation, Fire, Cold, Slashing, Bludgeoning);
type Army_Type is (Immune_System, Infection);
package DS is new Ada.... |
5,886 | ada | 20 | charlie5/lace | 4-high/gel/applet/demo/skinning/rig/attic/my_box.ads | <reponame>charlie5/lace
with openGL.Model,
mmi.Sprite,
mmi.Joint,
mmi.World,
openGL,
opengl.Variable.uniform,
openGL.Program,
float_Math;
private
with collada.Library.visual_scenes;
package my_Box
--
-- Provides access to and control of 'my_Box', a simply rigged collada model w... |
5,887 | ada | 0 | wookey-project/ewok-legacy | src/Ada/ewok-isr.adb | <filename>src/Ada/ewok-isr.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 o... |
5,888 | ada | 0 | thomas070605/shoot-n-loot | src/music_2.ads | -- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with VirtAPU; use VirtAPU;
package Music_2 is
C_32nd : constant Command := (Wait_Ticks, 1);
C_16th : constant Command := (Wait_Ticks, C_32nd.Ticks * 2);
C_8th : constant Command := (Wait_Ticks, C_16th.Ticks * 2);
C_Quarter : constant Command := (... |
5,889 | ada | 60 | RREE/ada-util | src/base/beans/util-beans-objects-vectors.adb | <filename>src/base/beans/util-beans-objects-vectors.adb
-----------------------------------------------------------------------
-- util-beans-vectors -- Object vectors
-- Copyright (C) 2011, 2017, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
5,890 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/osint.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,891 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/e500v2/info.adb | ------------------------------------------------------------------------------
-- --
-- BAREBOARD EXAMPLE --
-- --
-- ... |
5,892 | ada | 33 | ytomino/drake | examples/init.adb | with Ada.Finalization;
with System.Initialization;
with System.Storage_Elements;
procedure init is
use type System.Address;
begin
-- controlled type
declare
type Phase_Type is (Uninitialized, Initialized, Finalized);
Phase : Phase_Type := Uninitialized;
The_Address : System.Address;
Adjust_Count : Natural :=... |
5,893 | ada | 3 | jwarwick/aoc_2020 | day20/src/day.adb | <reponame>jwarwick/aoc_2020
-- AoC 2020, Day 20
with Ada.Text_IO;
with Ada.Numerics.Elementary_Functions;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Ordered_Sets;
with Ada.Containers.Hashed_Sets;
with Ada.Containers.Vectors;
use Ada.Containers;
with Ada.Strings.Maps;
with Ada.Strings.Fixed; use Ada... |
5,894 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bug_elaboration_code.ads | package Bug_Elaboration_Code is
pragma Elaborate_Body;
I : Integer;
J : Integer;
end Bug_Elaboration_Code;
|
5,895 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-osinte__linux.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
5,896 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-uml_primitive_types.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,897 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-gui-element.ads | <gh_stars>10-100
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- ... |
5,898 | ada | 0 | My-Colaborations/ada-ado | src/mysql/mysql-my_list.ads | <reponame>My-Colaborations/ada-ado<filename>src/mysql/mysql-my_list.ads<gh_stars>0
with Interfaces.C; use Interfaces.C;
with System;
package Mysql.My_list is
pragma Preelaborate;
-- arg-macro: function list_rest (a)
-- return (a).next;
-- arg-macro: function list_push (a, b)
-- return a):=list... |
5,899 | ada | 24 | svn2github/matreshka | source/web/tools/a2js/properties-expressions-identifiers.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.