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,400 | ada | 0 | csb6/libtcod-ada | src/generated/console_drawing_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with console_h;
with Interfaces.C.Extensions;
limited with color_h;
with error_h;
package console_drawing_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.... |
5,401 | ada | 12 | mgrojo/protobuf | source/runtime/generated/google-protobuf-field_mask.adb | with Ada.Unchecked_Deallocation;
with PB_Support.IO;
with PB_Support.Internal;
package body Google.Protobuf.Field_Mask is
function Length (Self : Field_Mask_Vector) return Natural is
begin
return Self.Length;
end Length;
procedure Clear (Self : in out Field_Mask_Vector) is
begin
Self.Lengt... |
5,402 | ada | 3 | rogermc2/GA_Ada | ga_lib/src/gl_util.ads | <gh_stars>1-10
with GL.Types; use GL.Types;
with GA_Maths;
with Multivectors;
package GL_Util is
subtype Pick_Window is Singles.Vector4;
type GL_Pick is private;
-- function From_GL (V3 : GL.Types.Singles.Vector3) return C3GA.Vector_E3;
-- procedure GL_Color_3fm (R, G, B : GL.Types.Single);
... |
5,403 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/History-variables/Ada/history-variables-3.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO, History_Variables;
procedure Test_History is
package Int_With_Hist is new History_Variables(Integer);
-- define a history variable
I: Int_With_Hist.Variable;
Sum: Integer := 0;
begin
-- assign three values
I.Set(3);
I.Set(I.Get + 4);
... |
5,404 | ada | 4 | davidkristola/vole | kv-avm-warrants.ads | with Ada.Finalization;
with kv.avm.Control;
limited with kv.avm.Instances;
package kv.avm.Warrants is
type Warrant_Type is new Ada.Finalization.Controlled with private;
overriding procedure Initialize (Self : in out Warrant_Type);
overriding procedure Adjust (Self : in out Warrant_Type);
overriding ... |
5,405 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Bitmap-Midpoint-circle-algorithm/Ada/bitmap-midpoint-circle-algorithm-1.ada | procedure Circle
( Picture : in out Image;
Center : Point;
Radius : Natural;
Color : Pixel
) is
F : Integer := 1 - Radius;
ddF_X : Integer := 0;
ddF_Y : Integer := -2 * Radius;
X : Integer := 0;
Y : Integer := Radius;
begin
P... |
5,406 | ada | 1 | alvaromb/Compilemon | lib/ayacc/ayacc_file_names.adb | with STR_Pack;
use STR_Pack;
with String_Pkg;
package body Ayacc_File_Names is
SCCS_ID : constant String := "@(#) file_names.ada, Version 1.2";
Rcs_ID : constant String := "$Header: /cf/ua/arcadia/alex-ayacc/ayacc/src/RCS/file_names.a,v 1.2 88/11/28 13:38:59 arcadia Exp $";
Max_Name_Length : constant := ... |
5,407 | ada | 1 | djgoku/RosettaCodeData | Task/Echo-server/Ada/echo-server.ada | with Ada.Text_IO;
with Ada.IO_Exceptions;
with GNAT.Sockets;
procedure Echo_Server is
Receiver : GNAT.Sockets.Socket_Type;
Connection : GNAT.Sockets.Socket_Type;
Client : GNAT.Sockets.Sock_Addr_Type;
Channel : GNAT.Sockets.Stream_Access;
begin
GNAT.Sockets.Create_Socket (Socket => Receiver);
... |
5,408 | ada | 24 | svn2github/matreshka | testsuite/xml/xmlcatconf-testsuite_handlers.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,409 | ada | 60 | RREE/ada-util | src/sys/lzma/util-encoders-lzma.ads | <filename>src/sys/lzma/util-encoders-lzma.ads
-----------------------------------------------------------------------
-- util-encoders-lzma -- LZMA compression and decompression
-- Copyright (C) 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ... |
5,410 | ada | 20 | charlie5/lace | 3-mid/opengl/source/demo/opengl-demo.adb | with
openGL.Palette,
openGL.Font,
openGL.IO,
openGL.Model.arrow .colored,
openGL.Model.billboard. textured,
openGL.Model.billboard.colored_textured,
openGL.Model.box .colored,
openGL.Model.box .textured,
openGL.Model.box .lit_colored_textured,
o... |
5,411 | ada | 9 | SALLYPEMDAS/DW1000 | src/dw1000-system_time.ads | <filename>src/dw1000-system_time.ads<gh_stars>1-10
-------------------------------------------------------------------------------
-- 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"),
-... |
5,412 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso3.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso3.adb<gh_stars>1-10
-- { dg-do run }
with System; use System;
procedure SSO3 is
Rev_SSO : constant Bit_Order
:= Bit_Order'Val (1 - Bit_Order'Pos (Default_Bit_Order));
type R (D : Integer) is record
Common : Integer;
case D is
wh... |
5,413 | ada | 1 | mjtamlyn/django-braces | docs/build/Pygments/tests/examplefiles/output/test.adb | (lp1
(ccopy_reg
_reconstructor
p2
(cpygments.token
_TokenType
p3
c__builtin__
tuple
p4
(S'Comment'
p5
S'Single'
p6
ttRp7
(dp8
S'subtypes'
p9
c__builtin__
set
p10
((ltRp11
sS'parent'
p12
g2
(g3
g4
(g5
ttRp13
(dp14
g12
g2
(g3
g4
(ttRp15
(dp16
g5
g13
sS'Name'
p17
g2
(g3
g4
(g17
ttRp18
(dp19
S'Function'
p20
g2
(g3
g4
(g17
... |
5,414 | ada | 1 | io7m/coreland-openal-ada | openal-listener.adb | <filename>openal-listener.adb<gh_stars>1-10
with OpenAL.Thin;
package body OpenAL.Listener is
--
-- Get_*
--
procedure Get_Gain (Gain : out Types.Float_t) is
Value : aliased Types.Float_t;
begin
Thin.Get_Listenerf
(Parameter => Thin.AL_GAIN,
Value => Value'Address);
Gain := Val... |
5,415 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_super.adb | <filename>memsim-master/src/parser-parse_super.adb
with Memory.Super_Time;
with Memory.Super_Writes;
with Memory.Super_None;
with Util; use Util;
separate (Parser)
procedure Parse_Super(parser : in out Parser_Type;
result : out Memory_Pointer) is
type Opt_Type is (Opt_Time, Opt_Writes, Opt... |
5,416 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/sam4s/svd/a-intnam.ads | --
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAM4SD32C.svd
-- This is a version for the Atmel ATSAM4SD32C device: Cortex-M4
-- Microcontroller with 2MB dual-bank Flash, 160KB SRAM, USB, 100 Pins (refer
-- to http://www.atmel.com/devices/SAM4SD32C.aspx for more) MCU
pa... |
5,417 | ada | 0 | Tim-Tom/project-euler | Ada/inc/PrimeInstances.ads | <filename>Ada/inc/PrimeInstances.ads<gh_stars>0
with PrimeUtilities;
package PrimeInstances is
package Long_Long_Primes is new PrimeUtilities(Num => Long_Long_Integer);
package Integer_Primes is new PrimeUtilities(Num => Integer);
package Positive_Primes is new PrimeUtilities(Num => Positive);
end PrimeInstan... |
5,418 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_instantiation.adb | <reponame>ouankou/rose<filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_instantiation.adb
procedure function_instantiation is
begin
begin
declare
generic function func(pfp:in integer) return integer;
function func(pfp:in integer) return integer is
be... |
5,419 | ada | 52 | onox/orka | orka/src/orka/interface/orka-timers.ads | <filename>orka/src/orka/interface/orka-timers.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
--
--... |
5,420 | ada | 0 | strenkml/EE368 | memsim-master/src/benchmark-heap.ads |
package Benchmark.Heap is
type Heap_Type is new Benchmark_Type with private;
function Create_Heap return Benchmark_Pointer;
overriding
procedure Set_Argument(benchmark : in out Heap_Type;
arg : in String);
overriding
procedure Run(benchmark : in Heap_Type);
privat... |
5,421 | ada | 7 | stcarrez/mat | mat/src/mat-types.ads | <reponame>stcarrez/mat
-----------------------------------------------------------------------
-- mat-types -- Global types
-- Copyright (C) 2014, 2015, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance... |
5,422 | ada | 0 | skill-lang/adaCommon | src/skill-field_types.ads | <reponame>skill-lang/adaCommon
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ type handling in skill --
-- |___/_|\_\_|_|____| by: <NAME> ... |
5,423 | ada | 0 | Roldak/OpenGLAda | src/glfw/v2/glfw-display.ads | <filename>src/glfw/v2/glfw-display.ads
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
package Glfw.Display is
type Display_Mode is (Window, Fullscreen);
type OpenGL_Profile_Kind is (System_Default, Core_Profile, Compat_Profile);
-- return Fals... |
5,424 | ada | 22 | FardaleM/metalang | out/euler06.adb | <gh_stars>10-100
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure euler06 is
type stringptr is access all char_array;
procedure PInt(i : in Integer) is
begin
String'Write ... |
5,425 | ada | 33 | ytomino/drake | source/image/required/s-imglld.adb | with System.Formatting.Decimal;
package body System.Img_LLD is
procedure Image_Long_Long_Decimal (
V : Long_Long_Integer;
S : in out String;
P : out Natural;
Scale : Integer)
is
Fore_Last : Natural;
begin
Formatting.Decimal.Image (
V,
S,
Fore_Last... |
5,426 | ada | 30 | jrmarino/AdaBase | src/loggers/adabase-logger-base.adb | --- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Calendar.Formatting;
package body AdaBase.Logger.Base is
package ACF renames Ada.Calendar.Formatting;
-----------------------
-- set_information --
-----------------------
procedur... |
5,427 | ada | 0 | thierr26/ada-apsepp | src/_test/scenarios/apsepp_test_reporter_class_struct_builder_early_test_case.adb | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags,
Ada.Characters.Handling,
Ada.Assertions,
Apsepp_Testing_System_Test_Fixture,
Apsepp.Generic_Fixture.Creator,
Apsepp.Tags,
Apsepp_Test_Node_Barrier,
Ap... |
5,428 | ada | 0 | Jellix/virtual_clocks | src/clocks.adb | <reponame>Jellix/virtual_clocks<gh_stars>0
------------------------------------------------------------------------
-- Copyright (C) 2010-2020 by <<EMAIL>> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
... |
5,429 | ada | 0 | fintatarta/pulsada | src/pulse/pulse_simple_h.ads | <gh_stars>0
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with pulse_def_h;
with pulse_sample_h;
limited with pulse_channelmap_h;
with System;
package pulse_simple_h is
--**
-- This file is part of PulseAudio.
-- Copyright 2004-2006 <NAME>
-- Copyright 2006 <NA... |
5,430 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bip_aggregate_bug.adb | <reponame>best08618/asylo
-- { dg-do run }
procedure BIP_Aggregate_Bug is
package Limited_Types is
type Lim_Tagged is tagged limited record
Root_Comp : Integer;
end record;
type Lim_Ext is new Lim_Tagged with record
Ext_Comp : Integer;
end record;
function Func_L... |
5,431 | ada | 1 | TNO/Rejuvenation-Ada | src/rejuvenation-string_utils.adb | <gh_stars>1-10
package body Rejuvenation.String_Utils
with SPARK_Mode => On
is
function Replace_Prefix
(String_With_Prefix : String; Prefix, New_Prefix : String) return String
is
begin
return New_Prefix
& Tail (String_With_Prefix, String_With_Prefix'Length - Prefix'Length);
end Replace_P... |
5,432 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/i-arm_v7ar.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
5,433 | ada | 20 | charlie5/lace | 4-high/gel/applet/test/single/add_rid_sprite/launch_add_rid_sprite_test.adb | <filename>4-high/gel/applet/test/single/add_rid_sprite/launch_add_rid_sprite_test.adb
with
ada.Streams.stream_IO;
with mmi.Forge,
mmi.Window.lumen,
mmi.Applet.gui_world,
mmi.Camera;
with mmi.Sprite,
openGL.Model.box.lit_colored_textured,
openGL.Model.sphere;
with opengl.Palette,
fl... |
5,434 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32wb55x/stm32_svd-usb_fs.ads | <reponame>morbos/Ada_Drivers_Library
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.USB_FS is
pragma Preelaborate;
---------------
-- Registers --
---------... |
5,435 | ada | 0 | SKNZ/BezierToSTL | src/util/helper.ads | with Iterateur_Mots; use Iterateur_Mots;
with Vecteurs; use Vecteurs;
package Helper is
Erreur_Lecture : Exception;
-- Cherche dans un fichier une ligne
-- qui commence par la chaine donnée
-- Renvoie la chaine trouvée SANS MARQUEUR
-- avec un car. en moins à la fin (double quote)
function Fic... |
5,436 | ada | 1 | JeremyGrosser/sensors | src/seven.ads | <reponame>JeremyGrosser/sensors
--
-- Copyright (C) 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Adafruit 16x8 LED Matrix Driver Backpack - HT16K33 Breakout
-- https://www.adafruit.com/product/1427
--
with HAL; use HAL;
with HT16K33;
package Seven is
type Device is new HT16K33.Device ... |
5,437 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-frame_graphs.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,438 | ada | 0 | fintatarta/protypo | src/API/protypo-api-engine_values-parameter_lists.adb | pragma Ada_2012;
package body Protypo.Api.Engine_Values.Parameter_Lists is
function Is_Optional (Item : Parameter_Spec) return Boolean
is (Item.Class = Optional_Class);
function Default_Value (Item : Parameter_Spec) return Engine_Value
is (if Is_Optional (Item) then
Item.Default.Element
e... |
5,439 | ada | 33 | persan/zeromq-Ada | examples/zmq-examples-client.adb | -------------------------------------------------------------------------------
-- Copyright (C) 2020-2030, <EMAIL> --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this s... |
5,440 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-tpoben.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,441 | ada | 0 | Tim-Tom/scratch | table-sorting/src/TableSorting.adb | <filename>table-sorting/src/TableSorting.adb
with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure TableSorting is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
Num_Elements : constant := 14;
type Extended_Index is new Integer range 1 .. Num_Elements + 1;
subtype Index is Ex... |
5,442 | ada | 5 | docandrew/troodon | include/khr_khrplatform_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_stdint_intn_h;
with bits_stdint_uintn_h;
package KHR_khrplatform_h is
-- unsupported macro: KHRONOS_APICALL __attribute__((visibility("default")))
KHRONOS_SUPPORT_INT64 : constant := 1; -- /usr/include/KHR/khrplatform... |
5,443 | ada | 4 | davidkristola/vole | kv-avm-processors.adb | with Interfaces; use Interfaces;
with Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Memories;
with kv.avm.Tuples;
with kv.avm.Actor_References;
with kv.avm.Messages;
with kv.avm.Control; use kv.avm.Control;
with kv.avm.Executables;
with kv.avm.actor_pool;
package b... |
5,444 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_codecparsers_gstmpeg4parser_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with glib;
with glib.Values;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_codecparsers_gstmpeg4parser_h is
-- * GStreamer
-- * Copyr... |
5,445 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-case_paths.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Case_Paths is
function Create
(When_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Choices : not null Progr... |
5,446 | ada | 0 | Fabien-Chouteau/COBS | src/cobs-stream-encoder.adb | package body COBS.Stream.Encoder is
subtype Dispatch is Instance'Class;
procedure Do_Flush (This : in out Instance);
procedure Do_Flush (This : in out Instance) is
begin
Dispatch (This).Flush
(This.Buffer (This.Buffer'First .. This.Encode_Pointer - 1));
This.Code_Pointer := This.Buff... |
5,447 | ada | 0 | gabemgem/LITEC | Lab1-1/lab1-1.adb | <gh_stars>0
M:lab1_1
F:G$SYSCLK_Init$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$UART0_Init$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$Sys_Init$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$putchar$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$getchar$0$0({2}DF,SC:U),C,0,0,0,0,0
F:G$getchar_nw$0$0({2}DF,SC:U),C,0,0,0,0,0
F:G$main$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$Port_In... |
5,448 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP10/test_th.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with SDA_Exceptions; use SDA_Exceptions;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
--! Les Unbounded_String ont une capacité variable, contrairement au String
--! pour lesquelles une capacité doit être fix... |
5,449 | ada | 286 | auzkok/libagar | ada/core/agar-event.adb | <reponame>auzkok/libagar
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . E V E N T --
-- B o d y ... |
5,450 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-signed_integer_types.adb | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Signed_Integer_Types is
function Create
(Range_Token : not null Program.Lexical_Elements
.Lexical_... |
5,451 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-tasinf__solaris.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,452 | ada | 24 | svn2github/matreshka | source/web/tools/a2js/properties-expressions-integer_literal.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
5,453 | ada | 1 | danva994/ASFML-1.6 | include/sf-audio-sound.ads | <reponame>danva994/ASFML-1.6
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be ... |
5,454 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-secsta.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,455 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/renaming2_pkg2.ads | package Renaming2_Pkg2 is
type Root is private;
private
type Root (D : Boolean := False) is record
case D is
when True => N : Natural;
when False => null;
end case;
end record;
end Renaming2_Pkg2;
|
5,456 | ada | 3 | pyjarrett/archaic_terminal | tests/src/trendy_terminal-histories-tests.ads | with Trendy_Test;
package Trendy_Terminal.Histories.Tests is
function All_Tests return Trendy_Test.Test_Group;
end Trendy_Terminal.Histories.Tests;
|
5,457 | ada | 30 | Componolit/libsparkcrypto | tests/lsc_internal_test_hmac.adb | <reponame>Componolit/libsparkcrypto
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2010, <NAME>
-- Copyright (C) 2010, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and b... |
5,458 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/a-elchha.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,459 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-english.adb | -- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.English is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "*formal parameter.*is not modified*");
... |
5,460 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-parse-lr-mckenzie_recover-parse.ads | <reponame>caqg/linux-home<filename>.emacs.d/elpa/wisi-3.1.3/wisitoken-parse-lr-mckenzie_recover-parse.ads
-- Abstract :
--
-- Config parsing subprograms.
--
-- Copyright (C) 2018 - 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of t... |
5,461 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-sphere-lit_colored_textured.adb | with
openGL.Palette,
openGL.Geometry.lit_colored_textured,
openGL.Texture,
openGL.IO,
openGL.Primitive.indexed;
package body openGL.Model.sphere.lit_colored_textured
is
---------
--- Forge
--
function new_Sphere (Radius : in Real;
lat_Count : in Posit... |
5,462 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83024e0.ada | -- C83024E0.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.
-- Unlimi... |
5,463 | ada | 0 | Letractively/ada-util | src/util-dates-formats.ads | <gh_stars>0
-----------------------------------------------------------------------
-- util-dates-formats -- Date Format ala strftime
-- Copyright (C) 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance w... |
5,464 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/boolean_conv.adb | -- { dg-do run }
with System; use System;
procedure Boolean_Conv is
subtype B1 is Boolean;
subtype B2 is Boolean;
A0, A1, A2 : Address;
B : aliased B1;
procedure P2 (X2 : access B2) is
begin
A2 := X2.all'Address;
end P2;
procedure P1 (X1 : access B1) is
begin
A1 := X1.all'Address;
... |
5,465 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c93004c.ada | <reponame>best08618/asylo<gh_stars>1-10
-- C93004C.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 docume... |
5,466 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/orbs/collision/impact-d2-orbs-collision.adb | <reponame>charlie5/lace<filename>3-mid/impact/source/2d/orbs/collision/impact-d2-orbs-collision.adb
with impact.d2.orbs.Distance;
package body impact.d2.orbs.Collision
is
procedure dummy is begin null; end dummy;
function IsValid (Self : in b2AABB) return Boolean
is
d : b2Vec2 := Self.uppe... |
5,467 | ada | 3 | daveshields/AdaEd | bugs/bug06b.ada | <reponame>daveshields/AdaEd<gh_stars>1-10
with u1;
package u2 is
subtype t is u1.t;
end u2;
|
5,468 | ada | 13 | annexi-strayline/AURA | specification_scanner-scan_subprogram.adb | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
5,469 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/timer/peripherals.ads | with STM32GD.Timer;
with STM32GD.Timer.Peripheral;
with STM32_SVD.Interrupts;
package Peripherals is
package Timer is new STM32GD.Timer.Peripheral;
end Peripherals;
|
5,470 | ada | 20 | charlie5/lace | 3-mid/physics/implement/bullet/source/thin/bullet_c-ray_collision.ads | <gh_stars>10-100
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with c_math_c;
with c_math_c.Vector_3;
with Interfaces.C;
package bullet_c.ray_Collision is
-- Item
--
type Item is record
near_Object : access bullet_c.Object;
hit_Fraction : aliased c_math_c.Real;
Nor... |
5,471 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/parse_goto.ads | package Parse_Goto is
type Small_Integer is range -32_000 .. 32_000;
type Goto_Entry is record
Nonterm : Small_Integer;
Newstate : Small_Integer;
end record;
--pragma suppress(index_check);
subtype Row is Integer range -1 .. Integer'Last;
type Goto_Parse_Table is array (Row r... |
5,472 | ada | 1 | mbirabhadra/RosettaCodeData | Task/Sorting-algorithms-Quicksort/Ada/sorting-algorithms-quicksort-2.ada | -----------------------------------------------------------------------
-- Generic Quicksort procedure
-----------------------------------------------------------------------
procedure Sort (Item : in out Element_Array) is
procedure Swap(Left, Right : in out Element_Type) is
Temp : Element_Type := Left;
b... |
5,473 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/tkmrpc-contexts-dh.ads | <gh_stars>0
with Tkmrpc.Types;
package Tkmrpc.Contexts.dh
is
type dh_State_Type is
(clean,
-- Initial clean state.
invalid,
-- Error state.
stale,
-- DH context is stale.
created,
-- Waiting for remote pubvalue.
generated
-- Diffie-Hellman s... |
5,474 | ada | 0 | erwinchang/minicom | src/ncurses-5.5/Ada95/samples/ncurses2-demo_panels.adb | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
5,475 | ada | 12 | jquorning/ada-asf | src/asf-components-root.ads | <filename>src/asf-components-root.ads
-----------------------------------------------------------------------
-- components-root -- ASF Root View Component
-- Copyright (C) 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
5,476 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-information_flows.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,477 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-suewst.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,478 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/devices/stm32wl5x/stm32-device.adb | <reponame>morbos/Ada_Drivers_Library
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
5,479 | ada | 0 | DerickEddington/tarmi | tarmi-symbols.adb | -- TODO: Think about memory management issues w.r.t. strings
-- and symbols used in the symbol table. What about string
-- pointers given as arguments to Interned?
-- Newly-allocated strings in other version of Interned?
-- Newly-allocated symbols when a name not already
-- interned? What is the portable semanti... |
5,480 | ada | 52 | onox/orka | orka/src/gl/interface/gl-objects-buffers.ads | <gh_stars>10-100
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 <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/lic... |
5,481 | ada | 3 | pyjarrett/archaic_terminal | src/common/trendy_terminal-histories.ads | -------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- 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 Lic... |
5,482 | ada | 24 | svn2github/matreshka | source/amf/ocl/amf-internals-modules-ocl_module.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,483 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/checkkeys.adb |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
5,484 | ada | 1 | ytomino/vampire | source/tabula-users.adb | -- The Village of Vampire by YT, このソースコードはNYSLです
with Crypto.MD5;
package body Tabula.Users is
pragma Compile_Time_Error (
Password_Digest'Length /= Crypto.MD5.Fingerprint'Length,
"length of MD5 /= 16");
pragma Compile_Time_Error (
Password_Digest_Image'Length /= Crypto.MD5.Message_Digest'Length,
"image l... |
5,485 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-slcain.adb | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-slcain.adb
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
5,486 | ada | 0 | My-Colaborations/dynamo | src/gen-model-xmi.ads | <reponame>My-Colaborations/dynamo
-----------------------------------------------------------------------
-- gen-model-xmi -- UML-XMI model
-- Copyright (C) 2012, 2013, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
5,487 | ada | 3 | stcarrez/ada-css | tools/css-analysis-rules-types.adb | <filename>tools/css-analysis-rules-types.adb
-----------------------------------------------------------------------
-- css-analysis-rules-types -- Rules for CSS pre-defined value types
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
5,488 | ada | 60 | Letractively/ada-util | testutil/util-tests-servers.adb | -----------------------------------------------------------------------
-- util-tests-server - A small non-compliant-inefficient HTTP server used for unit tests
-- Copyright (C) 2012, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
5,489 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto1.adb | <reponame>best08618/asylo
-- PR ada/43106
-- Testcase by <NAME> <<EMAIL>>
-- { dg-do run }
-- { dg-options "-O2 -flto" { target lto } }
with Lto1_Pkg; use Lto1_Pkg;
procedure Lto1 is
Radar : Radar_T;
begin
Radar.Sensor_Type := radcmb;
Initialize (Radar);
end;
|
5,490 | ada | 0 | strenkml/EE368 | memsim-master/src/benchmark.ads | <gh_stars>0
with Ada.Numerics.Discrete_Random;
with Ada.Containers.Vectors;
with Ada.Finalization;
use Ada.Containers;
use Ada.Finalization;
with Memory; use Memory;
with Util; use Util;
-- Base package for benchmarks.
package Benchmark is
-- An exception that is raised when an invalid argument is
-- pr... |
5,491 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-wchstw.adb | <reponame>best08618/asylo<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,492 | ada | 0 | sonneveld/adazmq | examples/src/mspoller.adb | <filename>examples/src/mspoller.adb
-- Reading from multiple sockets
-- This version uses zmq_poll()
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with Ada.Calendar;
with ZMQ;
procedure MSPoller is
use type Ada.Calendar.Time;
use type GNAT.Formatted_String.Formatted_String;
functi... |
5,493 | ada | 0 | bkold/Terminal-Chess | Source/chess.adb | <reponame>bkold/Terminal-Chess
with NCurses; use NCurses;
with Board; use Board;
with Ada.exceptions;
with Ada.Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with GNAT.Command_Line; use GNAT.Command_Line;
with GNAT.Sockets; use GNAT.Sockets;
procedure Chess is
-- pragma Suppress(All_Checks);
type Game_Opti... |
5,494 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Factorial/Ada/factorial-2.ada | <filename>Task/Factorial/Ada/factorial-2.ada
function Factorial(N : Positive) return Positive is
Result : Positive := 1;
begin
if N > 1 then
Result := N * Factorial(N - 1);
end if;
return Result;
end Factorial;
|
5,495 | ada | 3 | UdayanSinha/Code_Blocks | Ada/mixedscheduling.adb | pragma Priority_Specific_Dispatching(FIFO_Within_Priorities, 2, 30); --high priority tasks
pragma Priority_Specific_Dispatching(Round_Robin_Within_Priorities, 1, 1); --low priority tasks
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Real_Time; use Ada.Real_Time;
procedure mixedscheduling is
package Dura... |
5,496 | ada | 11 | charlie5/aShell | test/iterate_directory/test_iterate_directory.adb | with
Shell.Directory_Iteration,
Ada.Directories,
Ada.Text_IO;
procedure Test_Iterate_Directory
is
use Ada.Text_IO;
begin
Put_Line ("Begin 'Iterate_Directory' test.");
New_Line (2);
declare
use Shell.Directory_Iteration,
Ada .Directories;
begin
for Each of To_Direc... |
5,497 | ada | 0 | shintakezou/adaplayground | src/represent2.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Wide_Text_IO; use Ada.Wide_Text_IO;
with Interfaces; use Interfaces;
with System;
with Ada.Unchecked_Conversion;
use Ada;
-- Play with UTF8
pragma Wide_Character_Encoding (UTF8);
procedure represent2 is
type Action_Type is (Load,
Store,
Copy,
... |
5,498 | ada | 89 | Fabien-Chouteau/sdlada | src/sdl-video-windows-makers.adb | <reponame>Fabien-Chouteau/sdlada
--------------------------------------------------------------------------------------------------------------------
-- 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... |
5,499 | ada | 60 | RREE/ada-util | src/sys/os-macos64/util-systems-types.ads | -- Generated by utildgen.c from system includes
with Interfaces.C;
package Util.Systems.Types is
subtype dev_t is Interfaces.C.unsigned;
subtype ino_t is Long_Long_Integer;
subtype off_t is Long_Long_Integer;
subtype blksize_t is Interfaces.C.int;
subtype blkcnt_t is Long_Long_Integer;
subtype uid_t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.