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 |
|---|---|---|---|---|---|
29,600 | ada | 7 | 98devin/ada-gba-dev | demo/src/Sprites.ads | -- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
procedure Sprites
with Linker_Section => ".iwram", No_Inline;
pragma Machine_Attribute (Sprites, "target", "arm"); |
29,601 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43004c.ada | -- C43004C.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... |
29,602 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/debug_a.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
29,603 | ada | 0 | Tim-Tom/scratch | random-bet/ada/src/RandomBet.adb | <gh_stars>0
with Ada.Text_IO;
procedure RandomBet is
package IO renames Ada.Text_IO;
Max_Starting_Bet : constant := 255;
Max_Bet_Pool : constant := Max_Starting_Bet * 3;
type Offset_Array is Array (1 .. Max_Starting_Bet, 1 .. (Max_Bet_Pool - 1) / 2) of Natural;
type Memory_Record is record
Predeces... |
29,604 | ada | 192 | rocher/Ada_Drivers_Library | examples/STM32F4_DISCO/accelerometer/src/main.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
29,605 | ada | 32 | robdaemon/AdaYaml | src/interface/yaml-events.ads | <reponame>robdaemon/AdaYaml
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package Yaml.Events is
-- parent of several event-holding collection types
-- raised when trying to manipulate an event holder object while a
-- Stream_Instance base... |
29,606 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr12.ads | <reponame>best08618/asylo
package Aggr12 is
type Hair_Color_Type is (Black, Brown, Blonde, Grey, White, Red);
type Rec is record
I1, I2 : Hair_Color_Type;
end record;
A : constant Rec := (Black, Blonde);
procedure Print (Data : String);
procedure Test;
end Aggr12;
|
29,607 | ada | 2 | stcarrez/wi2wic | src/wi2wic-rest.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- wi2wic-rest -- REST entry points
-- Copyright (C) 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 Lic... |
29,608 | ada | 60 | Letractively/ada-util | samples/properties.adb | <reponame>Letractively/ada-util
-----------------------------------------------------------------------
-- properties -- Example of properties
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
29,609 | ada | 10 | jrmarino/libsodium-ada | examples/encryption/demo_ada.adb | <reponame>jrmarino/libsodium-ada
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "JRM wrote this note.";
message2 : constant String := "1972 <NAME>";
cipherlen : constant Positive := Cipher_Length (message);
cipher2len... |
29,610 | ada | 92 | RomanWlm/lib-ledger-core | core/lib/soci/languages/ada/soci.ads | --
-- Thin wrapper for the simple interface of the SOCI database access library.
--
-- Copyright (C) 2008-2011 <NAME>
-- Distributed under the Boost Software License, Version 1.0.
-- (See accompanying file LICENSE_1_0.txt or copy at
-- http://www.boost.org/LICENSE_1_0.txt)
with Ada.Calendar;
with Interfa... |
29,611 | ada | 0 | morellam-dev/cs-4308-concepts-of-programming-languages | module-06/src/oedipus.ads | -- FILE: oedipus.ads
-- LICENSE: MIT © 2021 <NAME>
with Ada.Exceptions; use Ada.Exceptions;
package Oedipus is
-- defines the Complex type, which represents a complex number A + Bi
type Complex is private;
function Create_Complex (A, B : in Float) return Complex;
-- PRECOND: none
-- POSTCOND: Complex... |
29,612 | ada | 0 | optikos/oasis | source/nodes/program-nodes-elsif_paths.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Element_Vectors;
with Program.Elements.Elsif_Paths;
with Program.Element... |
29,613 | ada | 20 | charlie5/lace | 2-low/collada/source/collada-library-controllers.adb | <reponame>charlie5/lace
package body collada.Library.controllers
is
-----------
--- Utility
--
function "+" (From : in ada.Strings.unbounded.unbounded_String) return String
renames ada.Strings.unbounded.to_String;
------------------
--- vertex weights
--
function joint_Offset_of (Self ... |
29,614 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-wchwts.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
29,615 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/complex1_pkg.ads | package Complex1_Pkg is
procedure Coord (x,y : out Float);
end Complex1_Pkg;
|
29,616 | ada | 1 | greyblue9/binutils-gdb | gdb/testsuite/gdb.ada/enum_idx_packed/pck.adb | <reponame>greyblue9/binutils-gdb<filename>gdb/testsuite/gdb.ada/enum_idx_packed/pck.adb
-- Copyright 2012-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Founda... |
29,617 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f3/nested_generics/peripherals.ads | with STM32GD.GPIO.Pin;
generic
with package Input is new STM32GD.GPIO.Pin (<>);
with package Output is new STM32GD.GPIO.Pin (<>);
package Peripherals is
procedure Init;
procedure Run;
end Peripherals;
|
29,618 | ada | 0 | bracke/Meaning | source/Controller_Choices.ads | with RASCAL.ConfiX; use RASCAL.ConfiX;
with RASCAL.OS; use RASCAL.OS;
package Controller_Choices is
type TEL_ViewChoices_Type is new Toolbox_UserEventListener(16#10#,-1,-1) with null record;
type MEL_Message_ConfiX is new AMEL_Message_ConfiX with null record;
--
... |
29,619 | ada | 4 | faelys/gela-asis | tools/uaflex/read_unicode.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 ... |
29,620 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL-from-glut/examples/abgr.adb | -- Copyright (c) <NAME>, 1994.
-- Ported to Ada by <NAME>
-- http://www.adapower.net/~avargas
-- mailto: <EMAIL>
-- /**
-- * (c) Copyright 1993, Silicon Graphics, Inc.
-- * ALL RIGHTS RESERVED
-- * Permission to use, copy, modify, and distribute this software for
-- * any purpose and without fee is hereby gran... |
29,621 | ada | 52 | onox/orka | orka_egl/src/egl.adb | <reponame>onox/orka<gh_stars>10-100
-- 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://w... |
29,622 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr11_pkg.ads | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr11_pkg.ads
package Aggr11_Pkg is
type Error_Type is (No_Error, Error);
type Rec (Kind : Error_Type := No_Error) is record
case Kind is
when Error => null;
when others => B : Boolean;
end case;
end recor... |
29,623 | ada | 33 | ytomino/drake | source/environment/a-locale.adb | <reponame>ytomino/drake<gh_stars>10-100
-- reference:
-- http://www.loc.gov/standards/iso639-2/php/code_list.php
pragma Check_Policy (Validate => Ignore);
with System.Native_Locales;
with System.Once;
package body Ada.Locales is
type Long_Boolean is new Boolean;
for Long_Boolean'Size use Long_Integer'Size;
... |
29,624 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-textio__leon.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
29,625 | ada | 4 | faelys/gela-asis | source/asis/spec/ada-strings-wide_wide_maps.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
29,626 | ada | 0 | skill-lang/adaCommon | src/skill-tasks.ads | <gh_stars>0
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ tasks package --
-- |___/_|\_\_|_|____| by: <NAME> ... |
29,627 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37305a.ada | -- C37305A.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... |
29,628 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/sal-gen_unbounded_definite_vectors_sorted.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your option) any lat... |
29,629 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp6/illustrer_affectation_pile.adb | <gh_stars>1-10
with Piles;
with Ada.Text_IO; use Ada.Text_IO;
-- Montrer le risque d'autoriser l'affectation entre variables dont le type
-- est une structure chaînée.
procedure Illustrer_Affectation_Pile is
package Pile is
new Piles (Character);
use Pile;
procedure Afficher is
new Pile.Afficher (Pu... |
29,630 | ada | 0 | xeenta/learning-ada | src/003/test_age_madness.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Age_Madness is
subtype Age_Type is Natural range 0 .. 140;
subtype Age_Distance is Integer;
-- the following subtype is better
--subtype Age_Distance is Integer range -Age_Type'Last .. Age_Type'Last;
Adult_Age : constant Age_Type := 18;
--... |
29,631 | ada | 13 | annexi-strayline/AURA | configuration-step_4.adb | <filename>configuration-step_4.adb
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Imp... |
29,632 | ada | 52 | onox/orka | orka/src/gl/interface/gl-blending.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 <NAME> <<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... |
29,633 | ada | 33 | ytomino/drake | source/tasking/machine-w64-mingw32/s-natint.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- implementation unit specialized for Windows
with C;
package System.Native_Interrupts is
pragma Preelaborate;
subtype Interrupt_Id is C.signed_int;
function Is_Blocked (Interrupt : Interrupt_Id) return Boolean is (False);
procedure Block (Interrupt : Int... |
29,634 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-pch.ads | <reponame>fabiojna02/OpenCellular
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your... |
29,635 | ada | 0 | cborao/Ada-P2 | chat_server.adb |
--PRÁCTICA 2: <NAME> (chat_server)
with Ada.Text_IO;
with Chat_Messages;
with Lower_Layer_UDP;
with Ada.Command_Line;
with Client_Collections;
with Ada.Strings.Unbounded;
procedure Chat_Server is
package ATI renames Ada.Text_IO;
package CM renames Chat_Messages;
package LLU renames Lower_Layer_UDP;
pa... |
29,636 | ada | 17 | WinterAlexander/Ada-IntelliJ | src/main/resources/project-templates/aws_web_server_blocks/src/@_project_name_@-web_blocks.ads | <gh_stars>10-100
with AWS.Status;
with AWS.Templates;
with AWS.Services.Web_Block.Context;
package @_Project_Name_@.Web_Blocks is
use AWS;
use AWS.Services;
procedure Widget_Counter
(Request : in Status.Data;
Context : not null access Web_Block.Context.Object;
Transl... |
29,637 | ada | 3 | jwarwick/aoc_2020 | day23/src/day.ads | -- AOC 2020, Day 23
package Day is
type Cup_Number is range 1..9;
type Cup_Number_Mod is mod Cup_Number'Last + 1;
type Cup_Index is range 0..8;
type Cup_Index_Mod is mod Cup_Index'Last + 1;
type Cup_Array is array(Cup_Index) of Cup_Number;
function play(c : in Cup_Array; steps : in Natural) return Stri... |
29,638 | ada | 0 | twinbee/dekkerAda | as1.ads | ---------------------------------------------------------------
-- SPECIFICATIONS FILE
---------------------------------------------------------------
-- Author: <NAME> ---
-- Class: CSC410 Burgess ---
-- Date: 09-01-04 Modified: 9-02-04 ---
-- Desc: Assignment 1:DEKKER's A... |
29,639 | ada | 0 | HeisenbugLtd/msg_passing | sources/mailbox_sharing.ads | ------------------------------------------------------------------------
-- Copyright (C) 2010-2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under
-- the terms of the Do What The Fuck You Want To Public License,
-- Version 2, as published by Sam Hocevar. See the ... |
29,640 | ada | 1 | ShiroixD/pag_zad_2 | thirdparty/glut/progs/ada/fog_procs.adb | --
-- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc.
-- ALL RIGHTS RESERVED
-- Permission to use, copy, modify, and distribute this software for
-- any purpose and without fee is hereby granted, provided that the above
-- copyright notice appear in all copies and that both the copyright notice
-- and th... |
29,641 | ada | 3 | Heziode/aoc-ada-2021 | 10/2/src/main.adb | <filename>10/2/src/main.adb
with Ada.Characters,
Ada.Containers.Hashed_Maps,
Ada.Containers.Vectors,
Ada.Execution_Time,
Ada.Long_Long_Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Ut... |
29,642 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada83/io_exceptions.ads | <reponame>brucegua/moocos
--******************************************************************************
--
-- package IO_EXCEPTIONS
--
--******************************************************************************
package IO_EXCEPTIONS is
STATUS_ERROR : exception;
MODE_ERROR : exception;
NAME_ERRO... |
29,643 | ada | 4 | faelys/gela-asis | source/libgela/gela-hash-crc-b32.ads | <filename>source/libgela/gela-hash-crc-b32.ads
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://g... |
29,644 | ada | 0 | reznikmm/gela | source/visibility/program-visibility.adb | -- SPDX-FileCopyrightText: 2019-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with System.Storage_Elements;
with Program.Elements.Defining_Identifiers;
with Program.Elements.Identifiers;
with Program.Safe_Element_Visitors;
package body Progra... |
29,645 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-factories-primitive_types_factories.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
29,646 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 02/P02_Lista_Alumnos/src/lista_alumnos.adb | <reponame>dpr1005/Tiempo-Real-Ejercicios<gh_stars>0
with Menu,Alumnos,Clases;
procedure Lista_Alumnos is
Tercero_B : Clases.Clase;
Eleccion : Menu.Opcion;
Alu : Alumnos.Alumno;
Num : Clases.Num_Alumno;
begin
loop
Menu.Pide_Opcion (Eleccion);
case Eleccion is
when Menu.Insertar =>
... |
29,647 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl-timer.ads | <filename>thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl-timer.ads
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 20... |
29,648 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/scans.adb | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
29,649 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Swarm/swarm_control_concurrent_generic.adb | <filename>Sources/Swarm/swarm_control_concurrent_generic.adb
--
-- Jan & <NAME>, Australia, July 2011
--
with Exceptions; use Exceptions;
with Swarm_Control; use Swarm_Control;
with Swarm_Data; use Swarm_Data;
with Swarm_Structures; use Swarm_Structures;
with Swarm_Structures_Base; u... |
29,650 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl.ads | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C;
package GL is
pragma Preelaborate;
package C renames Interfaces.C;
-----------------------------------------------------------------------------
-- ... |
29,651 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Morse-code/Ada/morse-code-2.ada | with Ada.Strings.Maps, Ada.Characters.Handling, Interfaces.C;
use Ada, Ada.Strings, Ada.Strings.Maps, Interfaces;
package body Morse is
Dit, Dah, Lettergap, Wordgap : Duration; -- in seconds
Dit_ms, Dah_ms : C.unsigned; -- durations expressed in ms
Freq : constant C.unsigned := 1280; -- in Herz
Morse_Se... |
29,652 | ada | 2 | sinkinben/pok | examples/arinc653-threads/sample-ada/cpu/part1/main.ads | pragma No_Run_Time;
with Interfaces.C;
with APEX;
use APEX;
with APEX.Processes;
use APEX.Processes;
with APEX.Partitions;
use APEX.Partitions;
with Activity;
package Main is
procedure Compute;
procedure Main;
pragma Export (C, Main, "main");
end Main;
|
29,653 | ada | 9 | SALLYPEMDAS/DW1000 | src/dw1000-register_types.ads | <reponame>SALLYPEMDAS/DW1000
-------------------------------------------------------------------------------
-- Copyright (c) 2016 <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 Soft... |
29,654 | ada | 33 | ytomino/drake | source/containers/a-cogeso.ads | pragma License (Unrestricted);
-- Ada 2012
generic
type Index_Type is (<>);
with function Before (Left, Right : Index_Type) return Boolean;
with procedure Swap (Left, Right : Index_Type);
procedure Ada.Containers.Generic_Sort (First, Last : Index_Type'Base);
pragma Pure (Ada.Containers.Generic_Sort);
|
29,655 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-relational.adb | --------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 <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 r... |
29,656 | ada | 24 | svn2github/matreshka | source/uaflex/debug.adb | <filename>source/uaflex/debug.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
29,657 | ada | 0 | VitalijBondarenko/Formatted_Output_NG | src/formatted_output-enumeration_output.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (c) 2016-2021 <NAME> <<EMAIL>> --
-- --
----------------------------... |
29,658 | ada | 33 | ytomino/drake | source/numerics/a-nugear.adb | <gh_stars>10-100
-- reference: Netgen's Eigensystem routine.
package body Ada.Numerics.Generic_Arrays is
-- vector selection, conversion, and composition operations
procedure Apply_Vector (X : in out Vector; Param : Parameter_Vector) is
Length : constant Integer := X'Length;
begin
for I in 0 ..... |
29,659 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sem_elab.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
29,660 | ada | 10 | astyl/AcrobatomaticBuildSystem | sampleprj/adalib/src/exemple.adb | <reponame>astyl/AcrobatomaticBuildSystem
package body Example is
function Hello(i: in Integer) return Integer is
begin
return i+1;
end Hello;
end Example;
|
29,661 | ada | 24 | svn2github/matreshka | tools/ayacc/src/symbol_table.adb | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were <NAME> and <NAME>.
-- Enhancements were made by <NAME>.
--
-- Send requests for ayacc information to <EMAIL>
-- Send bug reports for ayacc to <EMAIL>
--
-- Redistribution and use in... |
29,662 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/main.adb | with Interfaces;
with Bits;
-- with Bit_Vectors_Prove;
-- with BitOperations.Search.Axiom;
-- with BitOperations.Search.Axiom.Most_Significant_Bit;
-- with BitOperations.Shift.Axiom;
-- with BitOperations.Shift.Axiom.Logic_Left;
-- with BitOperations.Shift.Axiom.Logic_Right;
with TLSF;
with System.Storage_Element... |
29,663 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f0/rfm69_moter/modem/controller.ads | with Ada.Real_Time; use Ada.Real_Time;
package Controller is
Period : constant Time_Span := Milliseconds (200);
procedure Periodic_Tasks;
procedure Handle_Host_Data;
procedure Handle_RF_Data;
procedure Send_Log_Message (Message : String);
end Controller;
|
29,664 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Maze-generation/Ada/maze-generation-3.ada | with Mazes;
procedure Main is
package Small_Mazes is new Mazes (Height => 8, Width => 11);
My_Maze : Small_Mazes.Maze_Grid;
begin
Small_Mazes.Initialize (My_Maze);
Small_Mazes.Put (My_Maze);
end Main;
|
29,665 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-static.adb | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
29,666 | ada | 52 | onox/orka | orka/src/orka/interface/orka-loggers-terminal.ads | -- 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
-... |
29,667 | ada | 0 | hannesb0/rtpl18 | src/test01/src/calculate.adb | <gh_stars>0
-- Task 2 of RTPL WS17/18
-- Team members: <NAME>. and <NAME>.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; -- For float input
-- with Ada.Numerics.Generic_Elementary_Functions;
package body calculate with SPARK_Mode is
-- Procedure for option 4
procedure opt4 is
begin
... |
29,668 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c72001b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c72001b.ada
-- C72001B.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... |
29,669 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/itype.adb | <reponame>best08618/asylo<gh_stars>1-10
package body itype is
function G return not null access constant T is
X : aliased T;
begin
return X'Unchecked_Access;
end G;
end itype;
|
29,670 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/math/impact-d3-min_max.adb | <filename>3-mid/impact/source/3d/math/impact-d3-min_max.adb
package body impact.d3.min_max
is
function btClamped (a : in Real; lower_Bound, upper_Bound : in Real) return Real
is
begin
if a < lower_Bound then
return lower_Bound;
elsif upper_Bound < a then
return upper_Bound... |
29,671 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3601c.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3601c.ada
-- CC3601C.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... |
29,672 | ada | 5 | onox/dcf-ada | dcf/src/dcf-zip.ads | <filename>dcf/src/dcf-zip.ads
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 1999 - 2019 <NAME>
-- SWITZERLAND
--
-- 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 restric... |
29,673 | ada | 0 | Lucretia/interview-questions | ada/src/nearest_coin.adb | -- From https://www.youtube.com/watch?v=xC8CGv1CyFk
with Ada.Text_IO; use Ada.Text_IO;
-- In the C++ above, the coins are at coords:
-- (1, 0), (1, 3), (0, 3), (5, 5)
-- Map is 0 based.
-- distance ( (2, 1) => (1, 3) => 3 (1 left + 2 down))
-- distance ( (2, 1) => (4, 2) => 5 (2 right + 1 down))
-- distance... |
29,674 | ada | 1 | OneWingedShark/Risi | src/risi_script-types-identifier.ads | Pragma Ada_2012;
Pragma Wide_Character_Encoding( UTF8 );
with
Ada.Characters.Handling;
-- Ada.Containers.Indefinite_Vectors;
Package Risi_Script.Types.Identifier is
SubType Identifier is String
with Dynamic_Predicate => Is_Valid( Identifier )
or else raise Parse_Error with "Invalid identifier: """ & Iden... |
29,675 | ada | 10 | persan/gdnative_ada | examples/adventure_game/src/engine_hooks.ads | with GDNative; use GDNative;
with GDNative.Thin;
package Engine_Hooks is
procedure On_GDNative_Init (p_options : access Thin.godot_gdnative_init_options)
with Export => True, Convention => C, External_Name => "adventure_gdnative_init";
procedure On_GDNative_Terminate (p_options : access Thin.godot_gdnative... |
29,676 | ada | 1 | io7m/coreland-openal-ada | openal-extension-efx_thin.adb | -- Automatically generated, do not edit.
with OpenAL.Load;
package body OpenAL.Extension.EFX_Thin is
--
-- Load function for API pointers
--
function Load_API return API_t is
function Load_Function is new Load.Load_Subprogram
(Subprogram_Access_Type => Auxiliary_Effect_Slotf_t);
function Load... |
29,677 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0013.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
29,678 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Zig-zag-matrix/Ada/zig-zag-matrix.ada | with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Zig_Zag is
type Matrix is array (Positive range <>, Positive range <>) of Natural;
function Zig_Zag (Size : Positive) return Matrix is
Data : Matrix (1..Size, 1..Size);
I, J : Integer := 1;
begin
Data (1, 1) := 0;
for Element in 1..Si... |
29,679 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-definitions.adb | <filename>src/asis/asis-definitions.adb
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
29,680 | ada | 0 | fintatarta/fakedsp | Ada/src/fakelib/utilities-task_reaper.ads | --
-- A characteristic of Ada task is that if an exception happens they
-- silently die. This can make debugging difficult. The procedure
-- Install_Reaper installs a handler that print some useful information
-- to standard error when a task dies.
--
package Utilities.Task_Reaper is
type Verbosity_Level is (Ex... |
29,681 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/wide_boolean_pkg.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/wide_boolean_pkg.ads
package Wide_Boolean_Pkg is
type TBOOL is new BOOLEAN;
for TBOOL use (FALSE => 0, TRUE => 1);
for TBOOL'SIZE use 8;
type TUINT32 is mod (2 ** 32);
for TUINT32'SIZE use 32;
type TREC is
record
H : TUINT32;
... |
29,682 | ada | 10 | sveljko/goertzel | ada/src/goertzel.adb | <gh_stars>1-10
with Ada.Numerics.Generic_Elementary_Functions;
package body goertzel with
SPARK_Mode => On
is
package Ef is new Ada.Numerics.Generic_Elementary_Functions(Value);
use Ef;
function Calc_Koef(F, Fs: Value) return Value is (2.0 * Cos(2.0 * Ada.Numerics.Pi * F / Fs))
with
Pre => (F... |
29,683 | ada | 5 | jhumphry/SPARK_SipHash | src/tests/siphash24_c.ads | <filename>src/tests/siphash24_c.ads
-- SipHash24_C
-- an Ada specification for the reference C implementation of SipHash and
-- Half Siphash
-- Copyright (c) 2015-2016, <NAME> - see LICENSE file for details
with Ada.Unchecked_Conversion;
with Interfaces, Interfaces.C, Interfaces.C.Strings;
use Interfaces;
package S... |
29,684 | ada | 0 | Tim-Tom/scratch | single-substitution-cipher/ada/src/Word_List.adb | <reponame>Tim-Tom/scratch
with Ada.Text_IO;
package body Word_List is
package IO renames Ada.Text_IO;
use Word_Lists;
use Pattern_Sets;
function "<"(a, b: pattern) return Boolean is
begin
return String(a) < String(b);
end "<";
function "="(a, b: pattern) return Boolean is
begin
... |
29,685 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/impact-d2-types.ads | <filename>3-mid/impact/source/2d/impact-d2-types.ads
with
impact.d2.Math;
package Impact.d2.Types
--
-- Internal types.
--
is
use impact.d2.Math;
-- This is an internal structure.
--
type b2Position is
record
c : b2Vec2;
a : float32;
end record;
-- This is a... |
29,686 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52104k.ada | -- C52104K.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... |
29,687 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/prj-attr.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
29,688 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | ADL/drivers/stm32g474/stm32-timers.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- ... |
29,689 | ada | 0 | charlesincharge/Intro_to_Ada | prime.adb | -- Taken from Ada Crash Course by <NAME>)
-- Context clause specifies packages that will be used.
-- `use` includes that package in the namespace
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Our main function is "Prime"
procedure Prime is
-- Declare local variab... |
29,690 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/env_compile_capacity.adb | <reponame>best08618/asylo
-- { dg-do compile }
with My_Env_Versioned_Value_Set_G;
package body Env_Compile_Capacity is
generic
with package Env_Obj_Set_Instance is
new My_Env_Versioned_Value_Set_G(<>);
with function Updated_Entity (Value : Env_Obj_Set_Instance.Value_T)
return Boolean is <>;
... |
29,691 | ada | 0 | reznikmm/cvsweb2git | source/cvsweb-http.adb | <filename>source/cvsweb-http.adb
-- BSD 3-Clause License
--
-- Copyright (c) 2017, <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 source code must reta... |
29,692 | ada | 0 | fintatarta/protypo | src/Internals/protypo-match_data_wrappers.ads | with Ada.Strings.Unbounded;
with Gnat.Regpat;
with Protypo.Api.Engine_Values.Handlers;
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
use Protypo.Api.Engine_Values;
package Protypo.Match_Data_Wrappers is
type Match_Data_Wrapper (<>) is
new Handlers.Ambivalent_Interface
with
private;
type M... |
29,693 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr19_pkg.adb | package body Aggr19_Pkg is
procedure Proc (Pool : in out Rec5) is
begin
Pool.Ent := (Kind => Two, Node => Pool.Ent.Node, I => 0);
end;
end ;
|
29,694 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr8.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr8.adb
-- { dg-do compile }
package body Addr8 is
procedure Proc (B: Bytes) is
O: Integer;
for O'Address use B'Address;
begin
null;
end;
end Addr8;
|
29,695 | ada | 12 | TUM-EI-RCS/StratoX | tests/assert_cut/src/calc.ads | package calc with SPARK_Mode is
procedure Forgetful_Assert (X, Y : out Integer);
end calc;
|
29,696 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/formal_type.ads | -- { dg-do compile }
with Ada.Strings.Bounded;
package formal_type is
generic
with package BI is
new Ada.Strings.Bounded.Generic_Bounded_Length (<>);
type NB is new BI.Bounded_String;
package G is end;
package BI is new Ada.Strings.Bounded.Generic_Bounded_Length (30);
type NB is new ... |
29,697 | ada | 5 | docandrew/troodon | include/bits_pthreadtypes_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_struct_mutex_h;
with bits_thread_shared_types_h;
with bits_struct_rwlock_h;
package bits_pthreadtypes_h is
-- Declaration of common pthread types for all architectures.
-- Copyright (C) 2017-2021 Free Software Foundation... |
29,698 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/stm32l031_rfm69/stm32gd-board.adb | with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.SCB; use STM32_SVD.SCB;
with STM32_SVD.Flash; use STM32_SVD.Flash;
with STM32GD.Startup;
package body STM32GD.Board is
procedure Init is
begin
... |
29,699 | ada | 2 | kanigsson/base58 | src/base.ads | <gh_stars>1-10
package Base with SPARK_Mode is
type Number is array (Positive range <>) of Character;
function Encode (S : String) return Number
-- length of result will be longer than input, so need to guard against
-- too large input. Selecting some very restricted value, we could
-- probabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.