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
8,000
ada
0
fintatarta/eugen
src/Projects/Backup/eu_projects-identifiers.ads
<reponame>fintatarta/eugen<filename>src/Projects/Backup/eu_projects-identifiers.ads with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Strings.Bounded; package EU_Projects.Identifiers is type Identifier is private; function "=" (X, Y : Identifier) return Boolean; function "<" (X, Y...
8,001
ada
6
jquorning/ada-el
regtests/test_bean.ads
<filename>regtests/test_bean.ads ----------------------------------------------------------------------- -- Test_Bean - A simple bean ffor unit tests -- Copyright (C) 2009, 2010 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ...
8,002
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-lithuanian.adb
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Lithuanian 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*"...
8,003
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array25_pkg.adb
<reponame>best08618/asylo package body Array25_Pkg is procedure Get_Inner (A : out Arr1) is begin null; end; procedure Get (A : out Arr2) is begin for I in Arr2'Range loop Get_Inner (A (I).Data); end loop; end; end Array25_Pkg;
8,004
ada
1
danva994/ASFML-1.6
include/sf-network-ipaddress.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 ...
8,005
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada05/g-regpat.ads
<filename>tools/scitools/conf/understand/ada/ada05/g-regpat.ads ------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- ...
8,006
ada
0
jhumphry/aLua
lua-libs.adb
<gh_stars>0 -- Lua.Lib -- Supporting the Lua standard libraries -- Copyright (c) 2015, <NAME> - see LICENSE for terms with Interfaces; use Interfaces; with Interfaces.C; with Interfaces.C.Strings; use Interfaces.C.Strings; with Ada.Strings, Ada.Strings.Fixed; with Lua.Internal, Lua.AuxInternal, Lua.LibInternal; use...
8,007
ada
0
alire-project/sdlada
src/sdl-video-renderers-makers.adb
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the ...
8,008
ada
1
io7m/coreland-openal-ada
openal_info_main.adb
with OpenAL_Info; procedure OpenAL_Info_Main is begin OpenAL_Info.Run; end OpenAL_Info_Main;
8,009
ada
1
Blady-Com/Gate3
src/signal_storage.adb
<reponame>Blady-Com/Gate3 with GNAT.Regpat; use GNAT.Regpat; with Ada.Exceptions; use Ada.Exceptions; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Gate3_Glib; use Gate3_Glib; pragma Elaborate_All (GNAT.Regpat); package body Signal_Storage is package US renames Ada.String...
8,010
ada
1
mullikine/RosettaCodeData
Task/Sorting-algorithms-Bubble-sort/Ada/sorting-algorithms-bubble-sort.ada
<reponame>mullikine/RosettaCodeData<gh_stars>1-10 generic type Element is private; with function "=" (E1, E2 : Element) return Boolean is <>; with function "<" (E1, E2 : Element) return Boolean is <>; type Index is (<>); type Arr is array (Index range <>) of Element; procedure Bubble_Sort (A : in out Arr); proced...
8,011
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45347b.ada
<gh_stars>1-10 -- C45347B.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....
8,012
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr21_pkg.ads
<reponame>best08618/asylo package Aggr21_Pkg is type Rec is record A : Integer; S : String (1 .. 120); N : Natural; end record; procedure Init (R : out Rec); end Aggr21_Pkg;
8,013
ada
1
Fabien-Chouteau/samd51-hal
src/svd/sam_svd-hmatrixb.ads
<gh_stars>1-10 pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.HMATRIXB is pragma Preelaborate; --------------- -- Registers -- --------------- -------------------------...
8,014
ada
1
skill-lang/skillAdaTestSuite
test/subtypes/test_subtypes-read.ads
with Ada.Characters.Handling; with Ada.Strings.Fixed; with Ada.Tags; with Ahven.Framework; with Subtypes.Api; package Test_Subtypes.Read is package Skill renames Subtypes.Api; use Subtypes; use Subtypes.Api; type Test is new Ahven.Framework.Test_Case with null record; procedure Initialize (T : in out...
8,015
ada
5
Fabien-Chouteau/VirtAPU
src/virtapu.ads
<filename>src/virtapu.ads with Interfaces; -- Virtual Audio Processing Unit package VirtAPU is type Channel_ID is new Positive; subtype Sample is Float; type Instance (Number_Of_Channels : Channel_ID; Sample_Rate : Positive) is tagged limited private; procedure Tick (This : in...
8,016
ada
11
reznikmm/ada_lsp
source/protocol/lsp-generic_optional.adb
<reponame>reznikmm/ada_lsp -- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.JSON.Streams; with League.JSON.Values; package body LSP.Generic_Optional is ---------- -- Read -- ---...
8,017
ada
1
stcarrez/babel
src/babel-streams-files.adb
----------------------------------------------------------------------- -- babel-streams-files -- Local file stream management -- Copyright (C) 2014, 2015, 2016 Stephane.Carrez -- Written by Stephane.Carrez (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file...
8,018
ada
192
rocher/Ada_Drivers_Library
arch/ARM/STM32/driver_demos/demo_adc_polling/src/demo_adc_vbat_polling.adb
<reponame>rocher/Ada_Drivers_Library ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- ...
8,019
ada
1
Fabien-Chouteau/tiled-code-gen
src/tiled_code_gen.adb
------------------------------------------------------------------------------ -- -- -- tiled-code-gen -- -- -- -- ...
8,020
ada
19
My-Colaborations/ada-security
regtests/security-random-tests.adb
----------------------------------------------------------------------- -- security-random-tests - Tests for random package -- Copyright (C) 2017, 2018 <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 ...
8,021
ada
6
jonashaggstrom/ada-canopen
src/aco-slave_monitors.adb
with ACO.Events; package body ACO.Slave_Monitors is function Is_Monitored (This : Slave_Monitor; Node_Id : ACO.Messages.Slave_Node_Nr) return Boolean is use type ACO.Messages.Node_Nr; begin for Alarm of This.Slaves loop if Alarm.Node_Id = Node_Id then r...
8,022
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b35c.ada
<reponame>best08618/asylo -- C87B35C.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 contai...
8,023
ada
0
Fabien-Chouteau/fsmaker
src/fsmaker-sink-file.ads
<filename>src/fsmaker-sink-file.ads with GNAT.OS_Lib; private with System; package FSmaker.Sink.File is function Create (Path : String) return Sink.Class; function Create (FD : GNAT.OS_Lib.File_Descriptor) return Sink.Class; private type Instance is new Sink.Instance with record FD : GNAT.OS_...
8,024
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_2/src/solar_system.adb
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...
8,025
ada
4
docandrew/YOTROC
src/callbacks.ads
with Gtkada.Builder; use Gtkada.Builder; with Gtk.GEntry; with Gtk.Widget; with Gtk.Handlers; with Gtk.Text_View; with Gtk.Text_Buffer; with Glib.Values; package callbacks is package text is new Gtk.Handlers.Callback (Gtk.Text_Buffer.Gtk_Text_Buffer_Record); function tryQuit (Object : access Gtkada_Builder...
8,026
ada
24
svn2github/matreshka
tools/aflex/src/scanner-io.ads
with scanner.DFA; use scanner.DFA; with Ada.Characters.Wide_Wide_Latin_1; with Ada.Wide_Wide_Text_IO; package scanner.IO is User_Input_File : Ada.Wide_Wide_Text_IO.File_Type; User_Output_File : Ada.Wide_Wide_Text_IO.File_Type; Null_In_Input : exception; Aflex_Internal_Error : exception; Unex...
8,027
ada
2
ShiroixD/pag_zad_2
thirdparty/glut/adainclude/GL/glut.ads
-- Generated from glut.h -- Date: Sun Apr 6 14:32:02 1997 -- -- Command line definitions: -- -D__ANSI_C__ -D_LANGUAGE_C -DGENERATING_ADA_BINDING -D__unix -D__sgi -- -D__mips -D__host_mips -D__EXTENSIONS__ -D__EDG -D__DSO__ -D__STDC__ -- -D_SYSTYPE_SVR4 -D_MODERN_C -D_MIPS_SZPTR=32 -D_MIPS_SZLONG=32 -...
8,028
ada
0
marcello-s/AeonFlux
src/ada/AeonFlux/Parser/Lexer.ads
-- Copyright (c) 2015-2019 <NAME> -- for details see License.txt with Lexer_Base; use Lexer_Base; with TokenValue; use TokenValue; with TokenReading; use TokenReading; package Lexer is type Object is new Lexer_Base.Object and TokenReading.Object with private; overriding function ReadToken (O : Object) return ...
8,029
ada
24
svn2github/matreshka
source/amf/mof/amf-extents.ads
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
8,030
ada
1
lkujaw/ada-blake2
b2stest/spaiosta.adb
----------------------------------------------------------------------- -- Copyright 2021 <NAME> -- -- -- -- This file is part of B2STEST. -- -- ...
8,031
ada
4
joffreyhuguet/curve25519-spark2014
src/conversion.adb
<reponame>joffreyhuguet/curve25519-spark2014 package body Conversion with SPARK_Mode is ------------------------- -- Equal_To_Conversion -- ------------------------- -- This lemma is proved with a manual induction. procedure Equal_To_Conversion (A, B : Integer_Curve25519; L : Product_...
8,032
ada
0
reznikmm/gela
source/parser/program-parsers-nodes.adb
<reponame>reznikmm/gela -- SPDX-FileCopyrightText: 2019-2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Strings.Wide_Wide_Unbounded; with Program.Element_Vector_Factories; with Program.Element_Vectors; with Program.Elements.Aspect_Speci...
8,033
ada
20
charlie5/lace
4-high/gel/source/platform/sdl/gel-window-setup.ads
<gh_stars>10-100 with gel.Window.sdl; package gel.Window.setup renames gel.Window.sdl;
8,034
ada
0
kisom/rover-mk1
src/rosa/rosa.ads
<reponame>kisom/rover-mk1 pragma Profile (Ravenscar); package ROSA is end ROSA;
8,035
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34004c.ada
<reponame>best08618/asylo -- C34004C.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 contai...
8,036
ada
0
AntonMeep/hmac
src/hmac_generic.adb
pragma Ada_2012; package body HMAC_Generic is function Initialize (Key : String) return Context is Result : Context; begin Initialize (Result, Key); return Result; end Initialize; function Initialize (Key : Element_Array) return Context is Result : Context; begin Initialize...
8,037
ada
0
caqg/linux-home
.emacs.d/elpa/ada-ref-man-2012.5/progs/arm_frms.adb
-- -- Ada reference manual formatter (ARM_Form). -- -- This subprogram is part of the command processor. -- -- We use dispatching calls to call the formatter, so the details of -- formatting are insulated from the code that reads the source and -- determines the details of the tex...
8,038
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/a-tags.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
8,039
ada
0
MorganPeterson/avi-editor
src/termbox_package.ads
<reponame>MorganPeterson/avi-editor package Termbox_Package is type Input_Mode is (TB_INPUT_CURRENT, -- termbox.h:215 TB_INPUT_ESC, -- termbox.h:216 TB_INPUT_ALT, -- termbox.h:217 TB_INPUT_MOUSE -- termbox.h:218 ); type Output_Mode is (TB_OUTPUT_CURRENT, --...
8,040
ada
1
selroc/Renaissance-Ada
src/libraries/Rejuvenation_Lib/src/rejuvenation-utils.ads
with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations; package Rejuvenation.Utils is -- Raw signature -------- function Raw_Signature (Node : Ada_Node'Class; Before : Node_Location := No_Trivia; After : Node_Location := No_Trivia) return String; -- Return the original ...
8,041
ada
3
Fabien-Chouteau/ada-lvlg
src/lv-area.ads
package Lv.Area is Lv_Coord_Max : constant := (16383); Lv_Coord_Min : constant := (-16384); subtype Coord_T is Int16_T; type Point_T is record X : aliased Coord_T; Y : aliased Coord_T; end record; pragma Convention (C_Pass_By_Copy, Point_T); type Point_Array is array (Natural range ...
8,042
ada
0
balintsoos/LearnAda
bead/bead2/5/tools.adb
<reponame>balintsoos/LearnAda<filename>bead/bead2/5/tools.adb with Ada.Text_IO, Ada.Numerics.Discrete_Random; use Ada.Text_IO; package body tools is protected body Output is procedure Puts(str: String; num:Natural := 0) is begin Put(str); if num > 0 then New_Line;...
8,043
ada
3
FROL256/ada-ray-tracer
geometry.ads
with Interfaces; with Ada.Numerics.Float_Random; with Vector_Math; with Materials; with Ada.Unchecked_Deallocation; with Ada.Text_IO; use Interfaces; use Vector_Math; use Materials; use Ada.Text_IO; package Geometry is type Ray is record origin : float3 := (0.0, 0.0, 0.0); direction : f...
8,044
ada
0
reznikmm/gela
source/oasis/program-elements-formal_package_associations.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Vectors; with Program.Elements.Associations; with Program.Elements.Expressions; with Program.Lexical_Elements; package Program.Elements.Formal_Packag...
8,045
ada
81
twdroeger/ada-awa
awa/plugins/awa-storages/src/awa-storages-servlets.ads
<gh_stars>10-100 ----------------------------------------------------------------------- -- awa-storages-servlets -- Serve files saved in the storage service -- Copyright (C) 2012, 2016, 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
8,046
ada
192
rocher/Ada_Drivers_Library
middleware/src/filesystem/filesystem-fat.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
8,047
ada
0
mosteo/alr-monorepo
crate/src/crate.adb
<reponame>mosteo/alr-monorepo<gh_stars>0 procedure Crate is begin null; end Crate;
8,048
ada
0
persan/a-cups
src.pinprint/pinprint-main.adb
<reponame>persan/a-cups<filename>src.pinprint/pinprint-main.adb with Cups.Cups; procedure Pinprint.Main is -- Main, but no special name is needed. begin Cups.Cups.PrintString ("Hello", True); -- Cups.PrintString ("Hi there!", True); -- Cups.PrintString ("How are you?", True); -- Cups.PrintString ("I am f...
8,049
ada
13
annexi-strayline/AURA
registrar-registration.adb
<reponame>annexi-strayline/AURA<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE ...
8,050
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/sem_ch5.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
8,051
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/type_conv.adb
-- { dg-do compile } procedure type_conv is type Str is new String; generic package G is private end; package body G is Name : constant String := "it"; Full_Name : Str := Str (Name & " works"); end G; package Inst is new G; begin null; end;
8,052
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c93007a.ada
<gh_stars>1-10 -- C93007A.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....
8,053
ada
0
jonashaggstrom/ada-canopen
src/aco-canopen.adb
with ACO.Log; with ACO.Messages; use ACO.Messages; with Ada.Exceptions; package body ACO.CANopen is procedure Put (This : in out Handler; Msg : in ACO.Messages.Message) is Success : Boolean; begin This.Messages.Put (Msg, Success); if not Success then ACO.Log.Put_...
8,054
ada
0
sebsgit/textproc
src/histogram.ads
with PixelArray; with Ada.Strings.Unbounded; package Histogram with SPARK_Mode => On is pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); type CompareMethod is (Correlation, ChiSquare, Bhattacharyya); type Bins is array (P...
8,055
ada
0
reznikmm/gela
source/nodes/program-nodes-with_clauses.ads
<gh_stars>0 -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.With_Clauses; with Program.Element_Visitors; package Program.Nodes.Wit...
8,056
ada
1
LaudateCorpus1/RosettaCodeData
Task/Runge-Kutta-method/Ada/runge-kutta-method.ada
with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Generic_Elementary_Functions; procedure RungeKutta is type Floaty is digits 15; type Floaty_Array is array (Natural range <>) of Floaty; package FIO is new Ada.Text_IO.Float_IO(Floaty); use FIO; type Derivative is access function(t, y : Floaty) return Flo...
8,057
ada
0
gerr135/gnat_bugs
gb_02/src_bug/lists.adb
<filename>gb_02/src_bug/lists.adb package body Lists is function Has_Element (Position : Cursor) return Boolean is begin return Position /= No_Element; end Has_Element; end Lists;
8,058
ada
1
LaudateCorpus1/RosettaCodeData
Task/Hofstadter-Figure-Figure-sequences/Ada/hofstadter-figure-figure-sequences-3.ada
with Ada.Text_IO, Hofstadter_Figure_Figure; procedure Test_HSS is use Hofstadter_Figure_Figure; A: array(1 .. 1000) of Boolean := (others => False); J: Positive; begin for I in 1 .. 10 loop Ada.Text_IO.Put(Integer'Image(FFR(I))); end loop; Ada.Text_IO.New_Line; for I in 1 .. 40 loop ...
8,059
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32f0/stm32f051x/svd/stm32_svd-nvic.ads
<gh_stars>1-10 -- This spec has been automatically generated from STM32F0xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.NVIC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype IPR0_PRI_00_Fiel...
8,060
ada
1
LaudateCorpus1/RosettaCodeData
Task/Literals-Floating-point/Ada/literals-floating-point.ada
<reponame>LaudateCorpus1/RosettaCodeData 3.141_592_6 1.0E-12 0.13
8,061
ada
1
michalkonecny/polypaver
benchmarks/erfriemann01/riemann.adb
package body Riemann is function erfRiemann(x : Float; n : Integer) return Float is stepSize : Float; stepStart : Float; valueStart : Float; result : Float; step : Integer; begin stepSize := PolyPaver.Floats.Divide(x,Float(n)); result := 0.0; step := 0; while step < n loop -- for step = 0..(n-1) loop stepS...
8,062
ada
0
AntonMeep/base64
src/base64_generic.ads
<gh_stars>0 pragma Ada_2012; generic type Element is mod <>; type Index is range <>; type Element_Array is array (Index range <>) of Element; with function Character_To_Value (C : Character) return Element; with function Value_To_Character (E : Element) return Character; Padding : in Character := '...
8,063
ada
19
jrcarter/Ada_GUI
ada_gui-next_event.adb
-- An Ada-oriented GUI library -- Implementation derived from Gnoga -- -- 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 separate (Ada_GUI) function Next_Event (Timeout : Duration := Duration'Last) return ...
8,064
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/alignment9.adb
-- { dg-do run } -- { dg-options "-gnatws" } procedure Alignment9 is type Kind is (Small, Large); for Kind'Size use 8; type Header is record K : Kind; I : Integer; end record; for Header use record K at 4 range 0..7; I at 0 range 0..31; end record; for Header'Size ...
8,065
ada
52
onox/orka
orka/src/orka/interface/orka-terminals.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 -- -- http://www.apache.org/licenses/LICENSE-2.0 -...
8,066
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-clocks.adb
with Interfaces.C.Strings, System; use type System.Address; package body FLTK.Widgets.Clocks is procedure clock_output_set_draw_hook (W, D : in System.Address); pragma Import (C, clock_output_set_draw_hook, "clock_output_set_draw_hook"); pragma Inline (clock_output_set_draw_h...
8,067
ada
4
davidkristola/vole
kv-avm-tree_visitors.ads
<filename>kv-avm-tree_visitors.ads with kv.avm.vole_tree; use kv.avm.vole_tree; package kv.avm.Tree_Visitors is type Visitor_Class is limited interface; procedure Visit_Id (Self : in out Visitor_Class; Target : in out Id_Node_Class'CLASS; Depth : in Natural) is null; procedure Vi...
8,068
ada
0
skill-lang/adaCommon
src/skill-errors.ads
<reponame>skill-lang/adaCommon -- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ error reporting -- -- |___/_|\_\_|_|____| by: <NAME> ...
8,069
ada
33
ytomino/drake
source/hash/a-stboha.adb
<filename>source/hash/a-stboha.adb with Ada.Strings.Hash; function Ada.Strings.Bounded.Hash (Key : Bounded.Bounded_String) return Containers.Hash_Type is begin return Strings.Hash (Key.Element (1 .. Key.Length)); end Ada.Strings.Bounded.Hash;
8,070
ada
0
My-Colaborations/ada-ado
src/ado-sessions.adb
----------------------------------------------------------------------- -- ado-sessions -- Sessions Management -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use t...
8,071
ada
1
LaudateCorpus1/RosettaCodeData
Task/Bitmap-Read-a-PPM-file/Ada/bitmap-read-a-ppm-file-2.ada
<reponame>LaudateCorpus1/RosettaCodeData declare F1, F2 : File_Type; begin Open (F1, In_File, "city.ppm"); Create (F2, Out_File, "city_grayscale.ppm"); Put_PPM (F2, Color (Grayscale (Get_PPM (F1)))); Close (F1); Close (F2); end;
8,072
ada
32
robdaemon/AdaYaml
test/src/utils.adb
<reponame>robdaemon/AdaYaml<gh_stars>10-100 -- part of AdaYaml, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Directories; with Ada.Direct_IO; package body Utils is function File_Content (Path : String) return String is File_Size : constant Natural := N...
8,073
ada
52
onox/orka
orka/src/orka/implementation/orka-resources-loader.adb
<filename>orka/src/orka/implementation/orka-resources-loader.adb -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the L...
8,074
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_pbutils_gstdiscoverer_h.ads
<reponame>persan/A-gst pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstminiobject_h; with glib; with System; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h; limited with GStreamer.GST_Low_Level...
8,075
ada
13
annexi-strayline/AURA
build-recompilation_check_orders-test_isolated.adb
<filename>build-recompilation_check_orders-test_isolated.adb ------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNE...
8,076
ada
2
thindil/tashy2
tests/tcl-variables-test_data-tests.adb
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the t...
8,077
ada
5
docandrew/troodon
include/xcb_render.ads
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with xcb; with bits_stdint_uintn_h; with bits_stdint_intn_h; with xproto; with System; with Interfaces.C.Strings; package xcb_render is CONST_XCB_RENDER_MAJOR_VERSION : constant := 0; -- /usr/include/xcb/render.h:22 CONST_XCB_RE...
8,078
ada
0
mstewartgallus/linted
src/ada-core/src/linted-abas.ads
-- Copyright 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 writi...
8,079
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/5vintman.ads
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
8,080
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/exp_ch3.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
8,081
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt20.ads
with Opt20_Pkg; use Opt20_Pkg; package Opt20 is procedure Build_Library (For_Project : Integer); end Opt20;
8,082
ada
6
My-Colaborations/ada-servlet
src/servlet-responses-tools.adb
<filename>src/servlet-responses-tools.adb ----------------------------------------------------------------------- -- servlet-responses.tools -- Servlet Responses Tools -- Copyright (C) 2011 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
8,083
ada
33
ytomino/drake
source/directories/machine-apple-darwin/s-nadico.adb
with Ada.Exception_Identification.From_Here; with System.Zero_Terminated_Strings; with C.copyfile; with C.errno; with C.stdio; -- rename(2) package body System.Native_Directories.Copying is use Ada.Exception_Identification.From_Here; use type C.signed_int; use type C.size_t; use type C.unsigned_int; -- ...
8,084
ada
52
onox/orka
orka_plugin_atmosphere/src/orka-features-atmosphere-earth.adb
<gh_stars>10-100 -- SPDX-License-Identifier: BSD-3-Clause -- -- 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: -- 1. Redistributions of source code must re...
8,085
ada
1
greyblue9/binutils-gdb
gdb/testsuite/gdb.ada/null_overload/foo.adb
-- 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 version. -- -- This...
8,086
ada
11
reznikmm/ada_lsp
tests/cross_references.adb
<reponame>reznikmm/ada_lsp -- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Directories; with League.Strings; package body Cross_References is function "+" (Text : Wide_Wide_String) ...
8,087
ada
7
stcarrez/mat
mat/src/mat-readers-streams-files.ads
----------------------------------------------------------------------- -- mat-readers-files -- Reader for files -- 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. -- ...
8,088
ada
12
mgrojo/protobuf
source/runtime/generated/google-protobuf-wrappers.adb
with Ada.Unchecked_Deallocation; with PB_Support.IO; with PB_Support.Internal; package body Google.Protobuf.Wrappers is function Length (Self : Double_Value_Vector) return Natural is begin return Self.Length; end Length; procedure Clear (Self : in out Double_Value_Vector) is begin Self.Len...
8,089
ada
88
VVCAS-Sean/OpenUxAS
src/ada/src/comms/uxas-comms-transport-receiver-zeromq.adb
with UxAS.Comms.Transport.ZeroMQ_Fabric; use UxAS.Comms.Transport; with String_Utils; use String_Utils; package body UxAS.Comms.Transport.Receiver.ZeroMQ is ---------------- -- Initialize -- ---------------- procedure Initialize (This : in out ZeroMq_Receiver_...
8,090
ada
1
OneWingedShark/Risi
src/risi_script-types-implementation.adb
with System, Ada.Strings.Unbounded, Risi_Script.Types.Internals; Use Ada.Strings.Unbounded; Package Body Risi_Script.Types.Implementation is Use Risi_Script.Types.Internals; Package List Renames Internal.List; Package Hash Renames Internal.Hash; Empty_String : constant Unbounded_String:= To_Unbounded_...
8,091
ada
1
io7m/coreland-postgres-ada
pgada-thin.ads
<reponame>io7m/coreland-postgres-ada ------------------------------------------------------------------------------ -- -- -- P G A D A . T H I N -- -- ...
8,092
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2102m.ada
-- CE2102M.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...
8,093
ada
1
LaudateCorpus1/RosettaCodeData
Task/Bitmap-Write-a-PPM-file/Ada/bitmap-write-a-ppm-file.ada
<gh_stars>1-10 with Ada.Characters.Latin_1; with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO; procedure Put_PPM (File : File_Type; Picture : Image) is use Ada.Characters.Latin_1; Size : constant String := Integer'Image (Picture'Length (2)) & Integer'Image (Picture'Length (1)); Buffer : String (1..Pict...
8,094
ada
7
stcarrez/resource-embedder
regtests/files/test-ada-8/src/test8.adb
<filename>regtests/files/test-ada-8/src/test8.adb with Resources8; with Ada.Command_Line; with Ada.Text_IO; procedure Test8 is use Resources8; C : Content_Access := Get_Content ("config/test8.xml"); begin if C = null then Ada.Text_IO.Put_Line ("FAIL: No content 'config/test8.xml'"); Ada.Command_Li...
8,095
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b34c.ada
<reponame>best08618/asylo<gh_stars>1-10 -- C87B34C.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...
8,096
ada
1
mosteo/ada-toml
tests/iterate_on_table/main.adb
<filename>tests/iterate_on_table/main.adb with Ada.Strings.Unbounded; with Ada.Text_IO; with TOML; procedure Main is package TIO renames Ada.Text_IO; Value : constant TOML.TOML_Value := TOML.Load_File ("example.toml").Value; begin for E of Value.Iterate_On_Table loop TIO.Put_Line (Ada.Strings.Unbounde...
8,097
ada
24
svn2github/matreshka
source/uaflex/uaflex-generator-oop_handler.adb
<filename>source/uaflex/uaflex-generator-oop_handler.adb ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
8,098
ada
24
svn2github/matreshka
testsuite/amf/TN-231/test_231.adb
<filename>testsuite/amf/TN-231/test_231.adb ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
8,099
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/solar_system/160_genericity/answers/main.adb
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...