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
2,400
ada
0
AdaForge/Advent_of_Code_2020
puzzle_07/src/puzzle_07.adb
<gh_stars>0 procedure Puzzle_07 is begin null; end Puzzle_07;
2,401
ada
0
fintatarta/protypo
src/Internals/protypo-code_trees-interpreter-symbol_table_references.adb
pragma Ada_2012; package body Protypo.Code_Trees.Interpreter.Symbol_Table_References is use Api.Symbols.Protypo_Tables; ---------- -- Read -- ---------- function Read (X : Symbol_Reference) return Engine_Value is begin return Value (X.Position); end Read; ----------- -- Write -- -...
2,402
ada
4
ytomino/yaml-ada
source/yaml.adb
<gh_stars>1-10 with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with System; with C.stdlib; with C.string; package body YAML is use type C.signed_int; use type C.ptrdiff_t; use type C.size_t; use type C.yaml.yaml_char_t_ptr; use type C.yaml.yaml_emitter_state_t; use type C.yaml.yaml_event_type_t; ...
2,403
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.0.1/sal-gen_bounded_definite_vectors_sorted.adb
<gh_stars>0 -- Abstract : -- -- See spec. -- -- Copyright (C) 2018 - 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 yo...
2,404
ada
81
twdroeger/ada-awa
awa/plugins/awa-sysadmin/src/awa-sysadmin-modules.ads
<gh_stars>10-100 ----------------------------------------------------------------------- -- awa-sysadmin-modules -- Module sysadmin -- 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 wit...
2,405
ada
192
rocher/Ada_Drivers_Library
arch/ARM/cortex_m/src/cm7/cortex_m_svd-fpu.ads
-- This spec has been automatically generated from cm7.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; -- Floating Point Unit package Cortex_M_SVD.FPU is pragma Preelaborate; --------------- -- Registers -- --------------- -- Acces...
2,406
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32f0/stm32gd-clock-timer.ads
with STM32GD.Clock; with STM32GD.Clock.Tree; generic Input : Clock_Type; with package Clock_Tree is new STM32GD.Clock.Tree (<>); package STM32GD.Clock.Timer is pragma Preelaborate; procedure Init; procedure Delay_us (us : Natural); procedure Delay_ms (ms : Natural); procedure Delay_s (s : Natu...
2,407
ada
33
ytomino/drake
source/tasking/required/s-tadert.ads
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Real_Time; function System.Tasking.Async_Delays.Enqueue_RT ( T : Ada.Real_Time.Time; D : not null access Delay_Block) return Boolean;
2,408
ada
0
gerr135/gnat_bugs
gb_01/src_wa1/root.ads
generic type Real is digits <>; package root is type Base_Interface is limited interface; procedure Primitive1 (B : in out Base_Interface) is abstract; -- builds procedure Primitive2 (B : in out Base_Interface) is null; -- causes bug type Derived_Interface is limited interface and Base_In...
2,409
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/repinfo-input.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
2,410
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-nashfl.ads
<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-nashfl.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
2,411
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt16.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt16.adb -- { dg-do compile } -- { dg-options "-O2 -gnatws" } procedure Opt16 is generic type T (<>) is private; V, V1 : T; with function F1 (X : T) return T; package GP is R : Boolean := F1 (V) = V1; end GP; type AB is array ...
2,412
ada
1
LaudateCorpus1/RosettaCodeData
Task/Address-of-a-variable/Ada/address-of-a-variable-2.ada
<gh_stars>1-10 I : Integer; for I'Address use 16#A100#;
2,413
ada
0
druzzt/NIEZAWODNE_SYSTEMY_INFORMATYCZNE
LISTA3/railway.adb
<gh_stars>0 --@Author <NAME> --@LICENSING: MIT --@DESCRIPTION: Railway package body for FORMAL VERIFICATION in ADA|SPARK -- Train cannot move if his next step could potentialy be a crash -- Open_Route is procedure which establishes availability of a route and sets signalisation -- into proper colors. -- Move_Train is p...
2,414
ada
4
faelys/gela-asis
source/asis/spec/annex_d/ada-real_time.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 -- -- ...
2,415
ada
6
joffreyhuguet/LmcpGen
src/templates/ada/namespace.ads
-<descending_namespace_spec>-
2,416
ada
79
Roldak/OpenGLAda
src/glfw/v3/glfw-monitors.ads
<filename>src/glfw/v3/glfw-monitors.ads<gh_stars>10-100 -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with System; package Glfw.Monitors is type Event is (Connected, Disconnected); type Video_Mode is record Width, Height : Interfaces.C.int...
2,417
ada
0
mgrojo/protobuf
testsuite/import_name_clash/test_c.ads
package Test_C is end;
2,418
ada
1
LaudateCorpus1/RosettaCodeData
Task/Object-serialization/Ada/object-serialization-3.ada
with Messages; use Messages; with Ada.Streams.Stream_Io; use Ada.Streams.Stream_Io; with Ada.Calendar; use Ada.Calendar; with Ada.Text_Io; procedure Streams_Example is S1 : Sensor_Message; M1 : Message; C1 : Control_Message; Now : Time := Clock; The_File : Ada.Streams.Stream_Io.File_Type; The_Stream ...
2,419
ada
20
charlie5/lace
3-mid/opengl/source/lean/opengl-texture.adb
<gh_stars>10-100 with openGL.Errors, openGL.Tasks, openGL.IO, GL.Binding, GL.lean, GL.Pointers, ada.unchecked_Deallocation; package body openGL.Texture is use GL, GL.lean, GL.Pointers; ---------------- -- Texture Name -- function new_texture_Name re...
2,420
ada
0
reznikmm/webidl
source/parser/webidl-factories.ads
<gh_stars>0 -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with League.Strings; with League.String_Vectors; with WebIDL.Arguments; with WebIDL.Constructors; with WebIDL.Enumerations; with WebIDL.Interfaces; with WebID...
2,421
ada
76
rod-chapman/SPARKNaCl
src/sparknacl-sign.adb
<filename>src/sparknacl-sign.adb with SPARKNaCl.Utils; with SPARKNaCl.Hashing; package body SPARKNaCl.Sign with SPARK_Mode => On is pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)"); --============================================ -- Local constants and types --====================...
2,422
ada
10
persan/gdnative_ada
src/gdnative-context.ads
with GDNative.Thin; package GDNative.Context is procedure GDNative_Initialize (p_options : access Thin.godot_gdnative_init_options); procedure GDNative_Finalize (p_options : access Thin.godot_gdnative_terminate_options); procedure Nativescript_Initialize (p_handle : in Thin.Nativescript_Handle); ...
2,423
ada
33
ytomino/drake
source/textio/a-teiote.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- extended unit private with System.Native_Text_IO; package Ada.Text_IO.Terminal is -- Additional terminal handling subprograms. function Is_Terminal ( File : File_Type) -- Open_File_Type return Boolean; pragma Inline (Is_Terminal); -- ...
2,424
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_video_video_enumtypes_h.ads
<reponame>persan/A-gst pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_video_video_enumtypes_h is -- unsupported macro: GST_TYPE_VIDEO_FORMAT (gst_video_format_get_type()) -- enumerations from ...
2,425
ada
0
Letractively/ada-awa
awa/samples/src/model/atlas-applications-models.ads
<filename>awa/samples/src/model/atlas-applications-models.ads ----------------------------------------------------------------------- -- Atlas.Applications.Models -- Atlas.Applications.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Templat...
2,426
ada
3
albinjal/ada_basic
Lab3/lab3.adb
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Numerics.Discrete_Random; with Ada.Command_Line; use Ada.Command_Line; procedure Lab3 is type Integer_Array is array (1..20) of Integer; Array_20 : Integer_Array; -------------------------...
2,427
ada
1
mullikine/RosettaCodeData
Task/Entropy/Ada/entropy.ada
<reponame>mullikine/RosettaCodeData<filename>Task/Entropy/Ada/entropy.ada with Ada.Text_IO, Ada.Float_Text_IO, Ada.Numerics.Elementary_Functions; procedure Count_Entropy is package TIO renames Ada.Text_IO; Count: array(Character) of Natural := (others => 0); Sum: Natural := 0; Line: String := "12233344...
2,428
ada
24
svn2github/matreshka
source/amf/uml/amf-internals-uml_pseudostates.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
2,429
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack19.adb
-- { dg-do run } procedure Pack19 is subtype Always_False is Boolean range False .. False; type Rec1 is record B1 : Boolean; B2 : Boolean; B3 : Boolean; B4 : Boolean; B5 : Boolean; B6 : Boolean; B7 : Always_False; B8 : Boolean; end record; pragma Pack (Rec1...
2,430
ada
0
reznikmm/slimp
source/slim-players-common_play_visiters.adb
<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Calendar; with Slim.Messages.strm; with Slim.Players.Displays; package body Slim.Players.Common_Play_Visiters is function I...
2,431
ada
0
djgoku/RosettaCodeData
Task/Loops-Continue/Ada/loops-continue.ada
with Ada.Text_IO; use Ada.Text_IO; procedure Loop_Continue is begin for I in 1..10 loop Put (Integer'Image(I)); if I = 5 or I = 10 then New_Line; goto Continue; end if; Put (","); -- ...
2,432
ada
0
Roldak/OpenGLAda
src/glfw/v2/glfw-events-keys.adb
<gh_stars>0 -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; with Glfw.Enums; package body Glfw.Events.Keys is function Name (Query : Key) return String is begin case Query is when 32 .. 256 => return (1 => Character'Va...
2,433
ada
0
cortlandstarrett/mcada
model/mcada/templates/package/t.structure_begin.ada
<filename>model/mcada/templates/package/t.structure_begin.ada new Domain_Structure with record
2,434
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Globe_3d/gl/gl-skinned_geometry.ads
<filename>Sources/Globe_3d/gl/gl-skinned_geometry.ads ------------------------------------------------------------------------- -- GL.skinned_Geometry - an association of a skin with a geometry primitive. -- -- Copyright (c) <NAME> 2007 -- AUSTRALIA -- Permission granted to use this software, without any ...
2,435
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo-builders.ads
<reponame>djamal2727/Main-Bearing-Analytical-Model ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
2,436
ada
10
HeisenbugLtd/Saatana
tests/phelix/test_phelix.adb
------------------------------------------------------------------------------ -- Copyright (C) 2017-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. Se...
2,437
ada
1
charlie5/lace-alire
3-mid/opengl/source/lean/shader/opengl-program.ads
<reponame>charlie5/lace-alire with openGL.Shader, openGL.Variable.uniform, openGL.Attribute, openGL.Light; private with GL; package openGL.Program -- -- Models an openGL program. -- is type Item is tagged limited private; type View is access all Item'Class; --------- --- Forge...
2,438
ada
192
rocher/Ada_Drivers_Library
arch/ARM/Nordic/svd/nrf52/nrf_svd-aar.ads
<reponame>rocher/Ada_Drivers_Library -- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must...
2,439
ada
0
xuedong/mini-ada
tests/exec/record2.adb
<reponame>xuedong/mini-ada<filename>tests/exec/record2.adb with Ada.Text_IO; use Ada.Text_IO; procedure Test is type R is record A, B: Integer; end record; procedure P1(X, Y: in out R) is begin X.A := 0; X.B := 1; Y.A := 2; Y.B := 3; if X.A = Y.A and X.B = Y.B then Put('a'); en...
2,440
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/g-os_lib.adb
<filename>tools-src/gnu/gcc/gcc/ada/g-os_lib.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
2,441
ada
1
mimo/Tracker
surface-elements.adb
package body surface.elements is procedure quad (X,Y, Width, Height : Integer ; Border : Boolean := False) is use raylib; begin raylib.shapes.draw_rectangle ( posX => int(X), posY => int(Y), width => int(Width), height => int(Height), c => raylib...
2,442
ada
5
ianloic/unladen-swallow
Util/llvm/bindings/ada/analysis/llvm_analysis-binding.ads
<reponame>ianloic/unladen-swallow<gh_stars>1-10 -- This file is generated by SWIG. Do *not* modify by hand. -- with llvm; with Interfaces.C.Strings; package LLVM_Analysis.Binding is function LLVMVerifyModule (M : in llvm.LLVMModuleRef; Action : in LLVM_Analysis.LLVMVerifierFailureAction; ...
2,443
ada
2
thorstel/Advent-of-Code-2018
day12/day12.adb
<reponame>thorstel/Advent-of-Code-2018 with Ada.Containers.Ordered_Maps; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Input12; use Input12; procedure Day12 is package String_Maps is new Ordered_Maps ...
2,444
ada
1
jrcarter/MP
mp-ui.ads
-- MP: a Music Player -- Copyright (C) 2020 by PragmAda Software Engineering. All rights reserved. -- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses -- -- 2020-09-15 Initial version -- package MP.UI is pragma Elaborate_Body; end MP.UI;
2,445
ada
0
Letractively/ada-util
src/util-serialize-io.ads
----------------------------------------------------------------------- -- util-serialize-io -- IO Drivers for serialization -- Copyright (C) 2010, 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 with...
2,446
ada
0
JeremyGrosser/synack_misc
src/crc.ads
-- -- Copyright (C) 2022 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: BSD-3-Clause -- generic type Word is mod <>; type Word_Array is array (Natural range <>) of Word; package CRC with Preelaborate is Poly : Word; Sum : Word := 0; procedure Update (Data : Word); procedure Update ...
2,447
ada
5
jhumphry/auto_counters
src/kvflyweights/kvflyweights-untracked_ptrs.adb
<gh_stars>1-10 -- kvflyweights-untracked_ptrs.adb -- A package of generalised references which point to resources inside a -- KVFlyweight. Resources are associated with a key that can be used to -- create them if they have not already been created. -- Copyright (c) 2016, <NAME> -- -- Permission to use, copy, modify, a...
2,448
ada
0
VMika/Des_Ada
Des_Ada/src/p_deshandler.adb
<reponame>VMika/Des_Ada<filename>Des_Ada/src/p_deshandler.adb<gh_stars>0 with P_StructuralTypes; use P_StructuralTypes; with Ada.Text_IO; use Ada.Text_IO; with Ada.Sequential_IO; with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Strings.Unbounded.Text_IO; with Ada.Streams; use Ada.Streams; with Ada.In...
2,449
ada
4
MOUDDENEHamza/ENSEEIHT
1A/S5/PIM/tps/tp7/test_vecteurs_creux.adb
with Ada.Text_IO; use Ada.Text_IO; with Vecteurs_Creux; use Vecteurs_Creux; procedure Test_Vecteurs_Creux is procedure Initialiser (VC0, VC1, VC2 : out T_Vecteur_Creux) is begin -- VC0 est un vecteur nul Initialiser (VC0); -- VC1 est un vecteur à deux composante Initialiser (VC1); Modifier (VC...
2,450
ada
0
ytomino/gnat4drake
g-casuti.ads
pragma License (Unrestricted); with Ada.Characters.Handling; package GNAT.Case_Util is pragma Preelaborate; -- Ada.Characters.Handling is not pure. function To_Lower (A : Character) return Character renames Ada.Characters.Handling.To_Lower; procedure To_Lower (A : in out String); end GNAT.Case_Util;
2,451
ada
24
svn2github/matreshka
source/league/codecs/matreshka-internals-text_codecs-iso88591.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
2,452
ada
33
ytomino/drake
source/strings/a-stgebo.ads
<filename>source/strings/a-stgebo.ads pragma License (Unrestricted); -- generalized unit of Ada.Strings.Bounded with Ada.References; with Ada.Streams; generic type Character_Type is (<>); type String_Type is array (Positive range <>) of Character_Type; with procedure Read ( Stream : not null access Stre...
2,453
ada
33
ytomino/drake
source/directories/a-defina.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- extended unit with Ada.Directories.Volumes; function Ada.Directories.Equal_File_Names ( FS : Volumes.File_System; Left, Right : String) return Boolean; -- This function compare two file names by the method of the file system. -- For example, it uses ...
2,454
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-groups-text_displays.adb
with Interfaces.C, System, FLTK.Text_Buffers; use type Interfaces.C.int, System.Address; package body FLTK.Widgets.Groups.Text_Displays is procedure text_display_set_draw_hook (W, D : in System.Address); pragma Import (C, text_display_set_draw_hook, "text_display_set_draw...
2,455
ada
3
rogermc2/GA_Ada
ga_lib/src/multivector_analyze.ads
with Blade_Types; with C3GA; with E3GA; with GA_Maths; with Multivectors; with Multivector_Type; with Multivector_Type_Base; package Multivector_Analyze is Flag_Invalid : constant boolean := false; Flag_Valid : constant boolean := true; Max_Points : constant integer := 3; Max_Scalars : c...
2,456
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstregistry_h.ads
<filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstregistry_h.ads pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h; -- limited with GStreamer.GST_Lo...
2,457
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack14.adb
<reponame>best08618/asylo<gh_stars>1-10 -- { dg-do compile } procedure Pack14 is subtype False_T is Boolean range False .. False; type Rec is record F : False_T; end record; pragma Pack (Rec); A : Rec := (F => False); begin null; end;
2,458
ada
1
LaudateCorpus1/RosettaCodeData
Task/Knights-tour/Ada/knights-tour-1.ada
<filename>Task/Knights-tour/Ada/knights-tour-1.ada generic Size: Integer; package Knights_Tour is subtype Index is Integer range 1 .. Size; type Tour is array (Index, Index) of Natural; Empty: Tour := (others => (others => 0)); function Get_Tour(Start_X, Start_Y: Index; Scene: Tour := Empty) return To...
2,459
ada
0
hbarrientosg/cs-mp
03_types/practica_3-mayor.adb
separate(practica_3) function Mayor(V:Vector) return TMayor is Mayor:tMayor; begin mayor.elemento:=V(1);--inicializo la variable mayor con el primer elemento mayor.posi:=1; for i in 2..v'last loop if v(i)>mayor.elemento then mayor.elemento:=v(i);--busco si otro elemento del vector es mayor y si lo es mayor....
2,460
ada
0
reznikmm/cvsweb2git
source/cvsweb-html2xml.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 retain the above copyright notice, --...
2,461
ada
0
Fabien-Chouteau/offmt-tool
src/offmt_lib-fmt_data-unsigned_32.ads
with Interfaces; with Offmt_Lib.Fmt_Data.Unsigned_Generic; package Offmt_Lib.Fmt_Data.Unsigned_32 is new Offmt_Lib.Fmt_Data.Unsigned_Generic (Interfaces.Unsigned_32);
2,462
ada
65
PThierry/ewok-kernel
src/arch/socs/stm32f439/soc-usart.adb
-- -- Copyright 2018 The wookey project team <<EMAIL>> -- - <NAME> -- - <NAME> -- - <NAME> -- - <NAME> -- - <NAME> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http...
2,463
ada
12
mgrojo/protobuf
source/conformance/generated/protobuf_test_messages-proto_3-test_messages_proto_3.adb
with Ada.Unchecked_Deallocation; with PB_Support.IO; with PB_Support.Internal; package body Protobuf_Test_Messages.Proto_3.Test_Messages_Proto_3 is package Any_IO is new PB_Support.IO.Message_IO (Google.Protobuf.Any.Any, Google.Protobuf.Any.Any_Vector, Google.Protobuf.Any.Append); package B...
2,464
ada
24
svn2github/matreshka
source/amf/uml/amf-umldi-uml_class_or_composite_structure_diagrams.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
2,465
ada
516
r00ster91/completely-unscientific-benchmarks
ada/tree_naive_pointers.adb
with Ada.Unchecked_Deallocation; package body Tree_Naive_Pointers is procedure initialize is begin Reset(g); end; procedure make_node(n: out NodePtr; x: Integer) is begin n := new Node; n.x := x; n.y := Random(g); end make_node; procedure delete_node(n: in out NodePtr) is procedure free is new Ada.Uncheck...
2,466
ada
3
charlie5/aIDE
source/types/adam-a_type-floating_point_type.ads
with Ada.Streams; package AdaM.a_Type.floating_point_type is type Item is new a_Type.real_Type with private; type View is access all Item'Class; -- Forge -- function new_Type (Name : in String := "") return floating_point_type.view; overriding procedure destruct (Self : in out Ite...
2,467
ada
1
LaudateCorpus1/RosettaCodeData
Task/Matrix-transposition/Ada/matrix-transposition.ada
<gh_stars>1-10 with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays; with Ada.Text_IO; use Ada.Text_IO; procedure Matrix_Transpose is procedure Put (X : Real_Matrix) is type Fixed is delta 0.01 range -500.0..500.0; begin for I in X'Range (1) loop for J in X'Range (2) lo...
2,468
ada
0
JCGobbi/Nucleo-STM32F334R8
ADL/drivers/stm32f334/stm32-hrtimers.ads
<filename>ADL/drivers/stm32f334/stm32-hrtimers.ads -- This file provides definitions for the high resolution timers on the -- STM32F3 (ARM Cortex M4F) microcontrollers from ST Microelectronics. pragma Restrictions (No_Elaboration_Code); with System; use System; with STM32_SVD.HRTIM; use STM32_SVD.HRTIM, ...
2,469
ada
0
gerr135/gnat_bugs
gi_01/src/run_gb_03.adb
with Ada.Text_IO; use Ada.Text_IO; with issue; with wa1; with wa2; procedure run_gb_03 is B1 : wa1.Base; B2 : wa2.Base; BI : issue.Base; begin Put_Line("started main"); Put_Line("starting workaround 1"); B1.Set_Smth(1); Put_Line("workaround 1 done"); New_Line; Put_Line("starting w...
2,470
ada
1
charlie5/lace-alire
3-mid/opengl/private/freetype/applet/test/linkage/launch_freetype_linkage_test.adb
<reponame>charlie5/lace-alire<filename>3-mid/opengl/private/freetype/applet/test/linkage/launch_freetype_linkage_test.adb<gh_stars>1-10 with freetype_C.Binding, freetype_C.FT_Vector, freetype_C.FT_Bitmap, freetype_C.FT_Size_Metrics, freetype_C.FT_BBox, freetype_C.FT_CharMapRec, interf...
2,471
ada
0
bracke/Meaning
source/main.adb
<gh_stars>0 with Controller_Quit; use Controller_Quit; with Controller_Internet; use Controller_Internet; with Controller_Bugz; use Controller_Bugz; with Controller_Choices; use Controller_Choices; with Controller_Help; use Controller_Help; with Controller_MainWindow; use ...
2,472
ada
0
jwarwick/aoc_2019_ada
intcode/src/intcode.adb
-- IntCode Interpreter with Ada.Strings.Unbounded; with Ada.Strings.Maps; with Ada.Strings.Hash; with Ada.Strings.Fixed; with Ada.Text_IO; package body IntCode is package TIO renames Ada.Text_IO; procedure append_input(val : Integer) is begin input_vector.append(val); end append_input; function take_ou...
2,473
ada
1
zrmyers/VulkanAda
test/dmat/vulkan-math-dmat3x4-test.adb
<reponame>zrmyers/VulkanAda -------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 <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 ...
2,474
ada
0
Tim-Tom/project-euler
Ada/inc/Problem_28.ads
package Problem_28 is procedure Solve; end Problem_28;
2,475
ada
10
mgrojo/smk
src/ptrace_binding/x86_64_linux_gnu_asm_posix_types_64_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package x86_64_linux_gnu_asm_posix_types_64_h is -- SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note -- * This file is generally used by user-level software, so you need to -- * be a little careful about namespace pollut...
2,476
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-groups-text_displays-text_editors.adb
<filename>src/fltk-widgets-groups-text_displays-text_editors.adb<gh_stars>1-10 with FLTK.Event, Interfaces.C, System; use type Interfaces.C.unsigned_long, System.Address; package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is procedure text_editor_set_draw_hook (W, D ...
2,477
ada
15
My-Colaborations/dynamo
src/asis/asis-limited_views.adb
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- ...
2,478
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43207d.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43207d.ada -- C43207D.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...
2,479
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/prefix2.ads
package prefix2 is type Coordonnee is range -100 .. 100; type Instance is abstract tagged private; subtype Class is Instance'Class; procedure Positionne (Objet : in out Instance; X, Y : Coordonnee); function RetourneX (Objet : in Instance) return Coordonnee; function Reto...
2,480
ada
1
Jellix/open_weather_map_api
test/main_owm_test.adb
<filename>test/main_owm_test.adb -------------------------------------------------------------------------------- -- 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, -- a...
2,481
ada
1
dshadrin/AProxy
src/proxy.ads
<reponame>dshadrin/AProxy ---------------------------------------- -- Copyright (C) 2019 <NAME> -- -- All rights reserved. -- ---------------------------------------- with Pal; use Pal; with Ada.Finalization; with ConfigTree; with Logging; ----------------------------------------------------------------...
2,482
ada
1
LaudateCorpus1/RosettaCodeData
Task/Search-a-list/Ada/search-a-list.ada
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; procedure Test_List_Index is Not_In : exception; type List is array (Positive range <>) of Unbounded_String; function Index (Haystack : List; Needle : String) return Positive is begin for Index in ...
2,483
ada
0
j-lawrence-b1/string-path-search
tests/data/large/files/ada_mode-generic_instantiation.ads
<reponame>j-lawrence-b1/string-path-search<gh_stars>0 -- Various generic_instantiations -- test ada-parse-prj-file with no gpr file --EMACSCMD:(and (eq ada-xref-tool 'gnat) (ada-parse-prj-file "ada_mode-no-gpr.adp")) --EMACSCMD:(and (eq ada-xref-tool 'gnat) (ada-select-prj-file "ada_mode-no-gpr.adp")) --EMACSCMD:(and ...
2,484
ada
0
bhayward93/Ada-Traffic-Light-Sim
icasrc/lighttrigger.adb
procedure LightTrigger (dir : in Direction) is begin if Pedestrian_Button(North) = 1 then --Will need to be a sub procedure taking in param of direction. PedestrianLightSwitcher(North); --Temporary call to the north light for development. end if; --Pressed end LightTrigger;
2,485
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-surface.adb
with interfaces.c.strings; package body agar.gui.surface is package cs renames interfaces.c.strings; package cbinds is function allocate (width : c.int; height : c.int; format : agar.gui.pixelformat.pixel_format_access_t; flags : flags_t) return surface_access_t; pragma import...
2,486
ada
192
rocher/Ada_Drivers_Library
arch/RISC-V/SiFive/svd/FE310/fe310_svd-clint.ads
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.CLINT is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- Peripher...
2,487
ada
1
jhumphry/Ascon_SPARK
src/ascon.adb
-- Ascon -- an Ada / SPARK implementation of the Ascon Authenticated Encryption Algorithm -- created by <NAME>, <NAME>, <NAME> and -- <NAME> -- Copyright (c) 2016-2018, <NAME> - see LICENSE file for details pragma Restrictions(No_Implementation_Attributes, No_Implementation_Units, ...
2,488
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/a-strunb.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
2,489
ada
24
svn2github/matreshka
tools/configure/configure-controlled_tests.adb
<reponame>svn2github/matreshka<filename>tools/configure/configure-controlled_tests.adb ------------------------------------------------------------------------------ -- -- -- Matreshka Project ...
2,490
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/sem_ch4.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
2,491
ada
76
yannickmoy/SPARKNaCl
tests/scalarmult.adb
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with SPARKNaCl.Scalar; use SPARKNaCl.Scalar; procedure Scalarmult is AliceSK : constant Bytes_32 := (16#77#, 16#07#, 16#6d#, 16#0a#, 16#73#, 16#18#, 16#a5#, 16#7d#, 16#3c#, 16#16#, 16#c1#, 16#72#, 16#51#, 16#b2#, 16#66#, 16#...
2,492
ada
81
twdroeger/ada-awa
awa/plugins/awa-questions/src/awa-questions-modules.ads
<reponame>twdroeger/ada-awa<filename>awa/plugins/awa-questions/src/awa-questions-modules.ads<gh_stars>10-100 ----------------------------------------------------------------------- -- awa-questions-modules -- Module questions -- Copyright (C) 2012, 2013, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed und...
2,493
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Globe_3d/gl/gl-frustums.ads
------------------------------------------------------------------------- -- GL.Frustum -- -- Copyright (c) <NAME>/<NAME> 2001 .. 2007 -- CH - 8810 Horgen -- SWITZERLAND -- -- Permission granted to: -- 1/ use this library, without any warranty, for any purpose; -- 2/ modify this library's sourc...
2,494
ada
6
gerr135/ada_gems
ada_lists_tests/src/test_list_combo.adb
-- -- The demo of type hierarchy use: declarations, loops, dereferencing.. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more detai...
2,495
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-powlfl.ads
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
2,496
ada
19
jrcarter/Ada_GUI
Test/random_int-ui.adb
<reponame>jrcarter/Ada_GUI -- Ada_GUI version of Random_Int -- -- Copyright (C) 2021 by PragmAda Software Engineering -- -- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause -- -- The (application-specific) user interface with Ada.Strings.Fixed; with Ada_GUI; packa...
2,497
ada
0
TNO/Rejuvenation-Ada
src/rejuvenation-replacer.adb
with Ada.Assertions; use Ada.Assertions; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Rejuvenation.Finder; use Rejuvenation.Finder; with Rejuvenation.Utils; use Rejuvenation.Utils; with String_Vectors; use String_Vectors; with String_Vectors_Utils; use String_Vectors_Utils; package body Rejuve...
2,498
ada
15
My-Colaborations/dynamo
src/gnat/gnatvsn.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
2,499
ada
0
JCGobbi/Nucleo-STM32H743ZI
bb-runtimes/runtimes/zfp-stm32h743/gnat/i-stm32-syscfg.ads
-- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd with System; package Interfaces.STM32.SYSCFG is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- subtype PMCR_I...