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
28,300
ada
0
faelys/natools
src/natools-smaz_generic-tools.ads
------------------------------------------------------------------------------ -- Copyright (c) 2016-2017, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
28,301
ada
12
TUM-EI-RCS/StratoX
software/hal/boards/adaracer_v1/hil/hil-devices-timers.ads
<filename>software/hal/boards/adaracer_v1/hil/hil-devices-timers.ads -- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Software Configuration -- -- Authors: <NAME> (<EMAIL>) with STM32.Timers; with STm32.Device; -- @summary -- Tar...
28,302
ada
28
onox/json-ada
json/src/json-types.adb
<reponame>onox/json-ada -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 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.or...
28,303
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/a-reatim.adb
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
28,304
ada
0
Lucretia/net_time
src/net_times.ads
<reponame>Lucretia/net_time ------------------------------------------------------------------------------------------------------------------------ -- Copyright © 2019, <NAME> -- -- See LICENCE file. ---------------------------------------------------------------------------------------------------------------------...
28,305
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36204a.ada
-- C36204A.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...
28,306
ada
0
sourceryinstitute/rose-sourcery-institute
src/frontend/Experimental_Ada_ROSE_Connection/dot_asis/dot_asis_library/source/tool_2_wrapper_h.ads
with Interfaces.C.Strings; with a_nodes_h; package tool_2_wrapper_h is function tool_2_wrapper (target_file_in : in Interfaces.C.Strings.chars_ptr; gnat_home : in Interfaces.C.Strings.chars_ptr; output_dir : in Interfaces.C.Strings.chars_ptr) return a_nodes_h.Nodes_Struct; pragma...
28,307
ada
0
Fabien-Chouteau/bb_pico_bsp
src/ili9341-hack.adb
with ILI9341_Regs; package body ILI9341.Hack is --------------------- -- Prepare_For_DMA -- --------------------- procedure Prepare_For_DMA (This : in out ILI9341_Device; X1 : Width; Y1 : Height; X2 : Widt...
28,308
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
host/stm32gd-timer-peripheral.adb
<reponame>ekoeppen/STM32_Generic_Ada_Drivers with Ada.Real_Time; use Ada.Real_Time; with STM32_SVD; use STM32_SVD; with STM32_SVD.TIM; use STM32_SVD.TIM; with STM32_SVD.RCC; use STM32_SVD.RCC; package body STM32GD.Timer.Peripheral is Timer_Callback : Timer_Callback_Type := null; Frequency : constant Natural := ...
28,309
ada
0
theurt/PageRank
sources/tri_par_tas.ads
<filename>sources/tri_par_tas.ads --Ce module met en place les outils qui vont nous permettre de trier la matrice poids par valeur décroissante with Google_Naive; generic nb_ligne : Integer; nb_col : Integer; -- nombre de colonne dans le tas (qui sera représenté par un tableau et non un ABR) ty...
28,310
ada
0
reznikmm/gela
source/nodes/program-nodes-formal_object_declarations.adb
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Formal_Object_Declarations is function Create (Names : not null Program.Elements.Defining_Identifiers .Defining_Id...
28,311
ada
0
thierr26/ada-keystore
regtests/keystore-io-tests.adb
----------------------------------------------------------------------- -- keystore-io-tests -- Tests for keystore IO -- Copyright (C) 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License....
28,312
ada
17
WinterAlexander/Ada-IntelliJ
src/main/resources/project-templates/gtkada_minimal/src/@_main_name_@.adb
with Gtk.Box; use Gtk.Box; with Gtk.Label; use Gtk.Label; with Gtk.Widget; use Gtk.Widget; with Gtk.Main; with Gtk.Window; use Gtk.Window; procedure @_Main_Name_@ is Win : Gtk_Window; Label : Gtk_Label; Box : Gtk_Vbox; begin -- Initialize GtkAda. Gtk.Main.Init; -- Cre...
28,313
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pointer_variable_bounds.ads
with pointer_variable_bounds_q; use pointer_variable_bounds_q; package pointer_variable_bounds is type HALF_INTEGER is range -32768 .. 32767; subtype HALF_NATURAL is HALF_INTEGER range 0 .. 32767; MAX_COMPS : constant HALF_NATURAL := HALF_NATURAL(A_MAX_COMPS); subtype COMP_POINTER_TYPE is HALF_NATURAL range ...
28,314
ada
6
gerr135/ada_gems
mixins/src/oop_mixin_compositor.ads
-- -- This is a wrapper package for (non-generic) mixin. -- As in generic case, everything can be done explicitly in a few lines of code, -- as shown in main demo procedure. This module provides a somewhat clearer illustration by -- keeping all relevant code in one place as well as presenting inheritance in a more -- e...
28,315
ada
33
ytomino/drake
source/s-finall.ads
<gh_stars>10-100 pragma License (Unrestricted); -- runtime unit with Ada.Exceptions; package System.Finally is -- This unit will be linked if these subprograms are called from -- UNIT__finalize_spec, UNIT__finalize_body, or finalize_library -- generated by gnatbind. pragma Preelaborate; -- impl...
28,316
ada
0
Letractively/ada-awa
awa/src/awa-wikis-writers.ads
----------------------------------------------------------------------- -- awa-wikis-writers -- Wiki writers -- Copyright (C) 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the Licen...
28,317
ada
0
iyan22/AprendeAda
ejercicios1/lanzar_dado.adb
<reponame>iyan22/AprendeAda with Ada.Numerics.Discrete_Random; function lanzar_dado (dado: in out Integer) return Integer is subtype rango is Integer range 1..6; package miRango is new Ada.Numerics.Discrete_Random(rango); semilla : miRango.generator; begin miRango.reset(semilla); dado:= miRango.ran...
28,318
ada
33
ytomino/drake
source/s-spstpo.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- implementation unit with Ada.Tags; -- [gcc-5] is confused in C390004 if this line is "private with" package System.Storage_Pools.Standard_Pools is pragma Preelaborate; type Standard_Pool is limited new Storage_Pools.Root_Storage_Pool with null reco...
28,319
ada
4
faelys/gela-asis
.build/ada/asis-gela-parser-tokens.ads
<gh_stars>1-10 package Asis.Gela.Parser.Tokens is subtype YYSTYPE is Asis.Element; subtype T is YYSTYPE; YYLVal, YYVal : YYSType; type Token is (End_Of_Input, Error, New_Line_Token, Separator_Token, Comment_Token, Identifier_Token, Integer_Literal_Token, Real_Literal_To...
28,320
ada
2
persan/gprTools
src/gpr_tools-gprslaves-configuration.adb
<reponame>persan/gprTools with Ada.Text_IO; with GNAT.OS_Lib; package body GPR_Tools.Gprslaves.Configuration is HOME : GNAT.OS_Lib.String_Access := GNAT.OS_Lib.Getenv ("HOME"); Config_File_Path : constant String := Ada.Directories.Compose (HOME.all, Config_File_Name); --------------- -- Trace_L...
28,321
ada
3
stcarrez/ada-stemmer
regtests/stemmer-tests.adb
<reponame>stcarrez/ada-stemmer ----------------------------------------------------------------------- -- stemmer-stemmer-tests -- Tests for stemmer -- 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 ...
28,322
ada
0
orb-zhuchen/Orb
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-valdec.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
28,323
ada
192
rocher/Ada_Drivers_Library
components/src/motion/mpu9250/mpu9250.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
28,324
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b45c.ada
-- C87B45C.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...
28,325
ada
0
fintatarta/eugen
src/Projects/eu_projects-nodes-action_nodes-wps.adb
<reponame>fintatarta/eugen with Ada.Finalization; use Ada.Finalization; package body EU_Projects.Nodes.Action_Nodes.WPs is overriding function Next (Object : Deliverable_Iterator; Position : Deliverable_Cursor) return Deliverable_Cursor is pragma Unreferenced (Object); begin if Po...
28,326
ada
1
TNO/Rejuvenation-Ada
examples/src/examples-visitor.adb
with Ada.Text_IO; use Ada.Text_IO; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory; package body Examples.Visitor is procedure Demo_Visitor (Unit : Analysis_Unit); ...
28,327
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ike/tkmrpc-operation_handlers-ike-cc_set_user_certificate.adb
with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Cc_Set_User_Certificate.Convert; with Tkmrpc.Response.Ike.Cc_Set_User_Certificate.Convert; package body Tkmrpc.Operation_Handlers.Ike.Cc_Set_User_Certificate is ------------------------------------------------------------------------- proced...
28,328
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-widget-notebook.adb
<reponame>auzkok/libagar<filename>ada/original_2008/ada-gui/agar-gui-widget-notebook.adb package body agar.gui.widget.notebook is package cbinds is procedure set_padding (notebook : notebook_access_t; padding : c.int); pragma import (c, set_padding, "AG_NotebookSetPadding"); procedure set...
28,329
ada
60
RREE/ada-util
src/sys/os-windows/util-systems-os.adb
----------------------------------------------------------------------- -- util-system-os -- Windows system operations -- Copyright (C) 2011, 2012, 2015, 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in com...
28,330
ada
15
My-Colaborations/dynamo
src/gnat/mlib-utl.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
28,331
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32wl5x_cm0/stm32_svd-gpio.ads
<gh_stars>1-10 -- This spec has been automatically generated from STM32WL5x_CM0P.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.GPIO is pragma Preelaborate; --------------- -- Registers -- --------------- -- MODER...
28,332
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/md5_test.adb
-- { dg-do run } with GNAT.MD5; use GNAT.MD5; procedure md5_test is TEST7 : constant String := "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"; Expected : constant Message_Digest := "8215ef0796a20bcaaae116d3876c664a"; MD : Context; begin Update (MD, TEST7); if Digest (MD) /...
28,333
ada
5
Componolit/AZ3
z3_optimization_h.ads
<reponame>Componolit/AZ3<gh_stars>1-10 pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with z3_api_h; with System; package z3_optimization_h is function Z3_mk_optimize (c : z3_api_h.Z3_context) return z3_api_h.Z3_optimize -- z3/src/api/z3_optimization.h:38 with Import => True,...
28,334
ada
0
sebsgit/textproc
src/opencl/gpuinference.ads
<reponame>sebsgit/textproc<filename>src/opencl/gpuinference.ads with NeuralNet; with cl_objects; with opencl; with Ada.Finalization; with Ada.Containers.Vectors; with System; package GpuInference is pragma Elaborate_Body; type NNData is tagged limited private; function Create(ctx: cl_objects.Context_Access...
28,335
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/examples/sam4s-xplained/tetris/oled.adb
<reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- ...
28,336
ada
2
zenharris/ada-bbs
src/templates.adb
with Ada.Text_IO; use Ada.Text_IO; with Display_Warning; with Dbase.Scroller; -- with Dbase.DrackSpace; with Extools; use Extools; -- with Process_Menu; use Process_Menu; package body Templates is -- package Drack is new Dbase.DrackSpace; function CharPad(InStr : Unbounded_String; PadWidth : In...
28,337
ada
0
Letractively/ada-awa
awa/plugins/awa-changelogs/src/model/awa-changelogs-models.adb
----------------------------------------------------------------------- -- AWA.Changelogs.Models -- AWA.Changelogs.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://...
28,338
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr18_pkg.ads
<gh_stars>1-10 package Discr18_Pkg is subtype Length is Natural range 0..256; type Multiple_Discriminants (A, B : Length) is tagged record S1 : String (1..A); S2 : String (1..B); end record; procedure Do_Something (Rec : in out Multiple_Discriminants); type Multiple_Discrim...
28,339
ada
1
charlie5/lace-alire
4-high/gel/source/applet/distributed/gel-applet-server_world.ads
with gel.Camera, gel.World.server, gel.Window; package gel.Applet.server_world -- -- Provides a gel applet configured with a single window and a single server world. -- is type Item is new gel.Applet.item with private; type View is access all Item'Class; package Forge is function n...
28,340
ada
0
Statkus/json-ada
test/unit/src/test_parsers.adb
-- Copyright (c) 2016 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 -- -- Unless required by applicable law or ...
28,341
ada
0
persan/a-piextend
src/gen/pixtend-softpwm_h.ads
<gh_stars>0 pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package Pixtend.softPwm_h is function softPwmCreate (pin : int; value : int; c_range : int) return int -- softPwm.h:29 with Import => True, Convention => C, External_Name => "softPwm...
28,342
ada
0
mstewartgallus/linted
src/ada-libc/src/libc-unistd.ads
-- 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 required by applicable law or agreed to in ...
28,343
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/a-strfix.ads
<filename>gcc-gcc-7_3_0-release/gcc/ada/a-strfix.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
28,344
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/private_type_definition.ads
package Private_Type_Definition is type Type_1 is private; type Type_2 is tagged private; type Type_3 is abstract tagged limited private; type Parent_Type_1 is tagged record Component_1 : Integer; end record; type Type_4 is new Parent_Type_1 with private; private type Type_1 is new Integer;...
28,345
ada
20
charlie5/lace
4-high/gel/source/terrain/gel-terrain.ads
<gh_stars>10-100 with gel.Sprite, gel.World; package gel.Terrain -- -- Provides a constructor for heightmap terrain. -- is function new_Terrain (World : in gel.World.view; heights_File : in String; texture_File : in String := ""; ...
28,346
ada
5
amvb/GUCEF
dependencies/agar/ada-core/agar-core-object.adb
<reponame>amvb/GUCEF with C_String; with Interfaces.C; with Interfaces.C.Strings; package body Agar.Core.Object is package C renames Interfaces.C; package C_Strings renames Interfaces.C.Strings; use type C.int; function New_Object (Parent : in Object_Access_t; Name : in String;...
28,347
ada
236
jquorning/septum
src/common/sp-memory.adb
package body SP.Memory is function Make (Allocated : T_Access) return Arc is begin return Arc' (Ada.Finalization.Controlled with Block => new Control_Block' ( Value => Allocated, Count => Atomic_Integer.Init (1))); end Make; function Make_Null return ...
28,348
ada
0
aeszter/sharepoint2ics
src/debug.adb
<gh_stars>0 with Ada.Text_IO; with GNAT.Calendar; with Ada.Calendar; with GNAT.Calendar.Time_IO; with Ada.Calendar.Time_Zones; use Ada.Calendar; procedure Debug is Year, Month, Day, Hour, Minute, Second : Natural; Sub_Second, Seconds : Duration; begin Ada.Text_IO.Put_Line (GNAT.Calendar.Time_IO.Image (Ada.Ca...
28,349
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/s-veboop.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
28,350
ada
5
HeisenbugLtd/flac-ada
sources/spark_stream_io.ads
------------------------------------------------------------------------------ -- Copyright (C) 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...
28,351
ada
0
Holt59/Ada-SDL
include/game-display-draw.ads
-------------------------------------------- -- -- -- PACKAGE GAME - PARTIE ADA -- -- -- -- GAME-DISPLAY-DRAW.ADS -- -- -- -- Gestion du dessin sur surface -- -- ...
28,352
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-calend.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
28,353
ada
0
thierr26/ada-apsepp
src/_for_debug_purposes/apsepp-debug_trace_class-output.ads
<filename>src/_for_debug_purposes/apsepp-debug_trace_class-output.ads -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Apsepp.Debug_Trace_Class.Stub; use Apsepp.Debug_Trace_Class.Stub; package Apsepp.Debug_Trace_Class.Output is -- TODOC: Not implemented as a protected ...
28,354
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/i-os2lib.ads
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
28,355
ada
15
My-Colaborations/dynamo
src/asis/a4g-dda_aux.ads
<filename>src/asis/a4g-dda_aux.ads ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
28,356
ada
1
XMoose25X/Advanced-Dungeon-Assault
Source/save_load_game.ads
with player; use player; package save_load_game is procedure newGame(player: out Player_Type; dungeon: out Integer); procedure saveGame(player: in Player_Type; dungeon: in Integer; fileNum: in Integer); procedure loadGame(player: in out Player_Type; dungeon: in out Integer; fileNum: in Integer); end sa...
28,357
ada
30
jscparker/math_packages
polynomial/spline/tridiagonal_lu.adb
<reponame>jscparker/math_packages ----------------------------------------------------------------------- -- package body Tridiagonal_LU, LU decomposition for Tridiagonal matrices. -- Copyright (C) 2018 <NAME> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee...
28,358
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Graphics/graphics_data.ads
<reponame>ForYouEyesOnly/Space-Convoy<gh_stars>1-10 -- -- Jan & <NAME>, Australia, July 2011 -- with GLOBE_3D; with Graphics_Configuration; use Graphics_Configuration; with Graphics_Structures; use Graphics_Structures; with Models; use Models; with Rotations; use Rotations; ...
28,359
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c62003b.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c62003b.ada -- C62003B.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...
28,360
ada
0
jgrivera67/projects-with-amy
array_utils/tests/src/tests.adb
<reponame>jgrivera67/projects-with-amy with AUnit.Reporter.Text; with AUnit.Run; with Test_Suite; procedure Tests is procedure Run is new AUnit.Run.Test_Runner (Test_Suite.Create_Test_Suite); Reporter : AUnit.Reporter.Text.Text_Reporter; begin Run (Reporter); end Tests;
28,361
ada
0
Fabien-Chouteau/COBS
tests/src/testsuite-encode_decode.adb
<filename>tests/src/testsuite-encode_decode.adb with Testsuite.Encode_Decode.Random; package body Testsuite.Encode_Decode is E_Kind : Testsuite.Encode.Encoder_Kind; D_Kind : Testsuite.Decode.Decoder_Kind; --------------- -- Set_Kinds -- --------------- procedure Set_Kinds (E : Testsuite.Encode.Enc...
28,362
ada
1
LaudateCorpus1/RosettaCodeData
Task/XML-Input/Ada/xml-input-6.ada
with League.Strings; with XML.SAX.Attributes; with XML.SAX.Content_Handlers; package Handlers is type Handler is limited new XML.SAX.Content_Handlers.SAX_Content_Handler with null record; overriding procedure Start_Element (Self : in out Handler; Namespace_URI : League.Strings.Universa...
28,363
ada
33
ytomino/drake
source/required/s-assert.ads
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Assertions; package System.Assertions is pragma Pure; -- called from Ada.Assertions -- required by compiler ??? (s-assert.ads) Assert_Failure : exception renames Ada.Assertions.Assertion_Error; -- required for pra...
28,364
ada
1
mbirabhadra/RosettaCodeData
Task/Power-set/Ada/power-set.ada
with Ada.Text_IO, Ada.Command_Line; use Ada.Text_IO, Ada.Command_Line; procedure powerset is procedure print_subset (set : natural) is -- each i'th binary digit of "set" indicates if the i'th integer belongs to "set" or not. k : natural := set; first : boolean := true; begin Put ("{"); for i in 1.....
28,365
ada
2
zenharris/ada-bbs
src/formatter-get.adb
<reponame>zenharris/ada-bbs separate (Formatter) function Get (Format : in String; Value : in Values ) return String is -- ++ -- -- FUNCTIONAL DESCRIPTION: -- -- Returns a formatted string given a FORMAT string and a -- variable number of data values...
28,366
ada
33
ytomino/drake
source/image/required/s-widcha.adb
with System.Img_Char; package body System.Wid_Char is function Width_Character (Lo, Hi : Character) return Natural is begin if Lo > Hi then return 0; elsif Hi >= Character'Val (16#80#) then return 6; -- "Hex_XX" elsif Hi >= ' ' then -- including 7F return 3; -- "'X'" ...
28,367
ada
0
reznikmm/declarative-regions
source/regions/regions.ads
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Iterator_Interfaces; limited with Regions.Entities; limited with Regions.Symbols; package Regions is pragma Pure; type Region is limited interface; t...
28,368
ada
12
TUM-EI-RCS/StratoX
software/unittest/estimator/src/config.ads
<filename>software/unittest/estimator/src/config.ads with Units; use Units; with Units.Navigation; use Units.Navigation; package config is end config;
28,369
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-inputs-file.adb
with Interfaces.C.Strings, System; use type Interfaces.C.Strings.chars_ptr, System.Address; package body FLTK.Widgets.Inputs.File is procedure file_input_set_draw_hook (W, D : in System.Address); pragma Import (C, file_input_set_draw_hook, "file_input_set_draw_hook"); pra...
28,370
ada
20
charlie5/lace
3-mid/opengl/private/gl/source/gl_types.ads
<gh_stars>10-100 with Interfaces.C, System; package GL_Types -- -- Provides openGL types whose definitions may differ amongst platforms. -- -- This file is generated by the 'generate_GL_types_Spec' tool. -- is pragma Pure; use Interfaces; subtype GLenum is C.unsigned; subtype GLboolean is...
28,371
ada
2
charlie5/cBound
tier-2/festival/applet/demo/say_hello.adb
with speech_tools_c.Binding, festival.Binding, Interfaces.C.Strings, speech_tools_c.Pointers, Swig.Pointers; with Ada.Text_IO; use Ada.Text_IO; procedure say_Hello is use Festival, Festival.Binding, speech_tools_c.Binding, speech_tools_c.Pointers, Interfaces, ...
28,372
ada
10
LionelDraghi/smk
src/smk-files.adb
<reponame>LionelDraghi/smk -- ----------------------------------------------------------------------------- -- smk, the smart make (http://lionel.draghi.free.fr/smk/) -- © 2018, 2019 <NAME> <<EMAIL>> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- --...
28,373
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/representation_clause.ads
package REPRESENTATION_CLAUSE is type BITS is record Lower : INTEGER range 0..3; -- Middle : INTEGER range 0..1; -- High : INTEGER range 0..3; end record; for BITS use record at mod 8; Lower at 0 range 0..1; -- Middle at 0 range 2..2; -- High at 0 range 3..4; en...
28,374
ada
7
stcarrez/mat
mat/src/memory/mat-memory-tools.ads
----------------------------------------------------------------------- -- mat-memory-tools - Tools for memory maps -- Copyright (C) 2014 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -...
28,375
ada
24
svn2github/matreshka
source/sql/sql-databases.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
28,376
ada
1
LaudateCorpus1/RosettaCodeData
Task/Rendezvous/Ada/rendezvous-3.ada
with Ada.Text_IO; use Ada.Text_IO; procedure Rendezvous is Out_Of_Ink : exception; type Printer; type Printer_Ptr is access all Printer; task type Printer (ID : Natural; Backup : Printer_Ptr) is entry Print (Line : String); end Printer; task body Printer is Ink : Natural := 5; begin...
28,377
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/asynch.adb
<reponame>best08618/asylo -- { dg-do compile } package body asynch is function null_ctrl return t_ctrl is begin return (Ada.Finalization.Controlled with stuff => 0); end null_ctrl; procedure Proc (msg : String; c : t_ctrl := null_ctrl) is begin null; end Proc; task type tsk; ...
28,378
ada
1
fabiojna02/OpenCellular
firmware/coreboot/src/console/hw-debug_sink.adb
-- -- This file is part of the coreboot project. -- -- Copyright (C) 2015 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; version 2 of the License. -- -- This ...
28,379
ada
0
thierr26/ada-apsepp
src/_test/scenarios/apsepp_shared_instance_test_case.adb
<gh_stars>0 -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Ada.Tags, Apsepp.Generic_Shared_Instance.Access_Setter, Apsepp.Generic_Shared_Instance.Creator, Apsepp.Generic_Shared_Instance.Fallback_Switch, Apsepp_Shared_Instance_Test_Fixture, Apsepp....
28,380
ada
60
RREE/ada-util
src/sys/streams/util-streams-aes.adb
<filename>src/sys/streams/util-streams-aes.adb ----------------------------------------------------------------------- -- util-streams-aes -- AES encoding and decoding streams -- Copyright (C) 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
28,381
ada
0
oysteinlondal/Inverted-Pendulum
main.adb
<reponame>oysteinlondal/Inverted-Pendulum<gh_stars>0 -- Profiles --pragma Profile(Ravenscar); -- Safety-Critical Policy pragma Task_Dispatching_Policy (FIFO_Within_Priorities); -- Fixed Priority Scheduling pragma Locking_Policy (Ceiling_Locking); -- ICCP -- Standard Packages...
28,382
ada
52
onox/orka
orka/src/orka/interface/orka-ktx.ads
<filename>orka/src/orka/interface/orka-ktx.ads -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- ...
28,383
ada
0
shintakezou/adaplayground
src/iter/fibonacci.ads
<filename>src/iter/fibonacci.ads with Ada.Iterator_Interfaces; package Fibonacci is type Fibo_Cur is private; function Has_Element (Pos : Fibo_Cur) return Boolean; package Fibo is new Ada.Iterator_Interfaces (Fibo_Cur, Has_Element); type Fibo_Type is tagged private; type Fibo_List is...
28,384
ada
4
mgrojo/canberra-ada
src/canberra.adb
<filename>src/canberra.adb -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache...
28,385
ada
204
spr93/whitakers-words
src/tools/invert.adb
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired) -- -- Copyright <NAME> (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is Copyrighted -- (c). Permission i...
28,386
ada
1
annexi-strayline/ASAP-JSON
json-aura.ads
-- JSON AURA Configuration Manifest package JSON.AURA is package Configuration is Truncate_Floats: constant Boolean := False; -- If true, when deserializing a JSON objects, if the read value for the -- JSON_Float_Value type has too many decimal points, the deserialized -- value is trunc...
28,387
ada
0
wildeee/safADA
Exemplos ADA/Fatorial/Fatorial.adb
With Ada.Text_IO; Use Ada.Text_IO; Procedure Fatorial is numero: Integer; fatorial: Integer := 1; -- Leitura String function Get_String return String is Line : String (1 .. 1_000); Last : Natural; begin Get_Line (Line, Last); return Line (1 .. Last); end Get_String; -- Leitura Integer function Get_In...
28,388
ada
6
gerr135/ada_gems
mixins/src/generic_mixin_compositor.ads
-- -- This is a very basic wrapper package performing proper instantiations and defining types. -- Everything can be done explicitly in a few lines of code, as shown in main demo procedure. -- However this is shown for completeness and also to demonstrate how partial view can -- present inheritance in a much more evide...
28,389
ada
52
onox/orka
orka/src/gl/implementation/gl-enums-getter.ads
<reponame>onox/orka -- 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/...
28,390
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/delta_small.ads
-- { dg-do compile } -- { dg-options "-gnatws" } package Delta_Small is type T is delta 0.1 range -0.8 .. 0.8; for T'Small use 0.1; for T'Size use 4; type T2 is new T range -0.4 .. 0.4; for T2'Small use 0.0625; end Delta_Small;
28,391
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca5004a.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca5004a.ada -- CA5004A.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...
28,392
ada
0
Fabien-Chouteau/GESTE-Numworks-examples
src/keyboard.adb
with Numworks.Keyboard; use Numworks.Keyboard; package body Keyboard is ------------ -- Update -- ------------ procedure Update is begin Numworks.Keyboard.Scan; end Update; ------------- -- Pressed -- ------------- function Pressed (Key : Key_Kind) return Boolean is begin ...
28,393
ada
6
HeisenbugLtd/si_units
src/si_units-float_io.ads
<filename>src/si_units-float_io.ads -------------------------------------------------------------------------------- -- Copyright (C) 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, --...
28,394
ada
1
greyblue9/binutils-gdb
gdb/testsuite/gdb.ada/operator_call/twovecs.adb
<gh_stars>1-10 -- Copyright 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 Foundation; either version 3 of the License, or -- (at your option) any later versi...
28,395
ada
24
svn2github/matreshka
source/league/matreshka-internals-calendars-clocks__posix.adb
<filename>source/league/matreshka-internals-calendars-clocks__posix.adb ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
28,396
ada
0
kkirstein/proglang-playground
Ada/Benchmark/src/primes.ads
<reponame>kkirstein/proglang-playground with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers; with Ada.Containers.Vectors; package Primes is function Is_Prime (N : Natural) return Boolean; function Is_Prime (N : Big_Natural) return Boolean; package Prime_Vectors is new Ada.C...
28,397
ada
0
reznikmm/markdown
sources/md/markdown-paragraphs.adb
<filename>sources/md/markdown-paragraphs.adb -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Markdown.Visitors; with League.Regexps; with League.Strings; package body Markdown.Paragraphs is Blank_Pattern :...
28,398
ada
0
rtoal/enhanced-dining-philosophers
ada/waiters.ads
------------------------------------------------------------------------------ -- waiters.ads -- -- This package supplies a task type for the Waiters in the Enhanced Dining -- Philosophers simulation, and an array of waiters. -- -- Entries: -- -- Here_Is_Your_Name (Name) assigns the name Name to the wait...
28,399
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/sinput-p.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...