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
6,100
ada
5
reznikmm/increment
source/base/incr-debug.ads
-- Copyright (c) 2015-2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with XML.SAX.Writers; with Incr.Documents; with Incr.Parsers.Incremental; package Incr.Debug is package P renames Incr.Parsers.Incremental.Pa...
6,101
ada
1
Fabien-Chouteau/samd51-hal
src/drivers/eic_u2254/sam-eic.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
6,102
ada
5
docandrew/troodon
include/alloca_h.ads
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with stddef_h; with System; package alloca_h is -- arg-macro: procedure alloca (size) -- __builtin_alloca (size) -- Copyright (C) 1992-2021 Free Software Foundation, Inc. -- This file is part of the GNU C Library. -- ...
6,103
ada
33
ytomino/drake
source/streams/a-textio.adb
<reponame>ytomino/drake -- *************************************************************************** -- -- This implementation violates some ACATS intentionally. -- -- Violated ACATS Tests: CE3106A, CE3106B, CE3406C -- -- These test requires End_Of_Page/File looking over the line/page terminater. -- But this beh...
6,104
ada
0
iyan22/AprendeAda
ejercicios5/prueba_es_impar_montana.adb
with ada.text_io, es_impar_montana; use Ada.Text_Io; procedure Prueba_Es_Impar_Montana is n1:integer:=0; begin -- caso de prueba 1: n1:=165; Put_line(" 165 --> TRUE"); put("Y tu programa dice que:"); Put_line("--> "& Boolean'Image(es_impar_montana(n1))); new_line; -- caso de prueba 2: n1...
6,105
ada
1
bracke/websitegenerator
src/commands-publish.ads
with AAA.Strings; private with GNAT.Strings; with Globals; package Commands.Publish is type Instance is new CLIC.Subcommand.Command with private; overriding function Name (Cmd : Instance) return CLIC.Subcommand.Identifier is ("publish"); overriding procedure Execute (Cmd : in out Instance...
6,106
ada
0
xuedong/mini-ada
tests/typing/bad/testfile-return-5.adb
<reponame>xuedong/mini-ada<filename>tests/typing/bad/testfile-return-5.adb with Ada.Text_IO; use Ada.Text_IO; procedure Test is begin return 0; end;
6,107
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-vxwext__noints.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
6,108
ada
8
reznikmm/jwt
source/jws-rs256-read_der.adb
-- Copyright (c) 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- separate (JWS.RS256) package body Read_DER is use type Ada.Streams.Stream_Element; use type Ada.Streams.Stream_Element_Count; procedure Algo...
6,109
ada
1
JeremyGrosser/sensors
src/seven.adb
<gh_stars>1-10 -- -- Copyright (C) 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body Seven is procedure Set_Digit (This : in out Device; Pos : Position; Val : Digit) is begin case Pos is when 1 => This.Buffer (1) := Numbers (V...
6,110
ada
88
VVCAS-Sean/OpenUxAS
src/ada/src/common/uxas-common-string_constant.ads
-- see OpenUxAS\src\Includes\Constants\UxAS_String.h package UxAS.Common.String_Constant is Alias : constant String := "Alias"; AlwaysSendPosition : constant String := "AlwaysSendPosition"; BaudRate : constant String := "BaudRate"; Bridge ...
6,111
ada
0
Fabien-Chouteau/COBS
tests/src/testsuite-encode.ads
<reponame>Fabien-Chouteau/COBS<gh_stars>0 with Test_Utils.Abstract_Encoder; with AUnit.Test_Suites; with AUnit.Test_Fixtures; private with AUnit.Test_Caller; package Testsuite.Encode is type Encoder_Kind is (Simple, Stream, Queue); procedure Set_Encoder_Kind (K : Encoder_Kind); procedure Add_Tests (Suite ...
6,112
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt24.ads
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt24.ads with Opt23_Pkg; use Opt23_Pkg; package Opt24 is procedure Proc (Driver : Rec); end Opt24;
6,113
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/a-excpol-abort.adb
<reponame>vidkidz/crossbridge<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
6,114
ada
12
TUM-EI-RCS/StratoX
software/modules/sensors/barometer.ads
with Generic_Sensor; with Units; use Units; with MS5611.Driver; package Barometer with SPARK_Mode, Abstract_State => (States_Beyond_Sensor_Template) is type Barometer_Data_Type is record pressure : Pressure_Type; temperature : Temperature_Type; end record; package Barometer_Sensor is new Gene...
6,115
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/shapes/impact-d3-material.adb
package body impact.d3.Material is function to_Material (friction, restitution : math.Real) return Item is Self : Item; begin Self.m_friction := friction; Self.m_restitution := restitution; return Self; end to_Material; end impact.d3.Material;
6,116
ada
0
salmoni/CompStats_Statistics_Ada
Comp_Stats_Unit_test.adb
<gh_stars>0 with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO; with CompStats_Statistics; use CompStats_Statistics; procedure Comp_Stats_Unit_test is Values: CompStats_Statistics.Values_Array(1..20); Values2 : CompStats_Statistics.Values_Array...
6,117
ada
4
Lucretia/raytracer_challenge
src/colours/rtch-colours.ads
with RTCH.Maths; use RTCH.Maths; package RTCH.Colours with Pure is type Colour is record Red : Float := 0.0; Green : Float := 0.0; Blue : Float := 0.0; end record; function Make_Colour (Red, Green, Blue : Float) return Colour is (Colour'(Red => Red, Green => Gree...
6,118
ada
0
Mystic-Developer/FizzBuzz-EVERYTHING
Ada/src/fizzbuzz.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Fizzbuzz is Limit : Natural; begin Put_Line ("Enter how far to go for FizzBuzz:"); Get (Limit); for I in 1 .. Limit loop if I mod 3 = 0 and I mod 5 = 0 then Put_Line ("FizzBuzz"); ...
6,119
ada
4
Lucretia/ether
src/ether-requests.adb
<gh_stars>1-10 -- -*- Mode: Ada -*- -- Filename : ether-requests.adb -- Description : Body to the request objects. -- Author : <NAME> -- Created On : Sun Jul 4 19:11:27 2010 with Ada.Characters.Latin_1; with Ada.Text_IO; use Ada.Text_IO; with Ada.Unchecked_Deal...
6,120
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/g-awk.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
6,121
ada
2
morbos/Ada_Drivers_Library
arch/ARM/RP/svd/rp2040/rp_svd-xip_ctrl.ads
<filename>arch/ARM/RP/svd/rp2040/rp_svd-xip_ctrl.ads -- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with Sys...
6,122
ada
33
ytomino/drake
source/tasking/machine-pc-freebsd/s-natint.adb
with C.signal; package body System.Native_Interrupts is use type C.signed_int; procedure Mask (How : C.signed_int; Interrupt : Interrupt_Id); procedure Mask (How : C.signed_int; Interrupt : Interrupt_Id) is Mask : aliased C.signal.sigset_t; Dummy : C.signed_int; R : C.signed_int; begin ...
6,123
ada
36
rewriting/tom
src/tom/library/sl/ada/visitablebuiltinpackage.adb
<gh_stars>10-100 with VisitablePackage, ObjectPack; use VisitablePackage, ObjectPack; package body VisitableBuiltinPackage is function makeVisitableBuiltinPackage(o: ObjectPtr) return VisitableBuiltin is ret : VisitableBuiltin; begin ret.builtin := o; return ret; end; function getBuiltin(v: VisitableBuil...
6,124
ada
0
faelys/natools
generated/natools-static_maps-s_expressions-conditionals-strings-t.ads
<reponame>faelys/natools -- Generated at 2015-03-31 18:55:08 +0000 by Natools.Static_Hash_Maps -- from src/natools-s_expressions-conditionals-strings-maps.sx function Natools.Static_Maps.S_Expressions.Conditionals.Strings.T return Boolean; pragma Pure (Natools.Static_Maps.S_Expressions.Conditionals.Strings.T);
6,125
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnarl/s-tasque.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
6,126
ada
1
mullikine/RosettaCodeData
Task/Same-Fringe/Ada/same-fringe-4.ada
<gh_stars>1-10 package body Bin_Trees.Traverse is task body Inorder_Task is procedure Inorder(Tree: Tree_Type) is begin if not Empty(Tree) and not Stop then Inorder(Tree.Left); if not Stop then Process_Data(Item => Tree.Item); ...
6,127
ada
52
onox/orka
orka/src/gl/implementation/gl-enums-internalformat.ads
-- 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 License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -...
6,128
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/a-taster.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
6,129
ada
1
LaudateCorpus1/RosettaCodeData
Task/Create-an-HTML-table/Ada/create-an-html-table-3.ada
with Ada.Text_IO, Ada.Numerics.Discrete_Random, HTML_Table; procedure Test_HTML_Table is -- define the Item_Type and the random generator type Four_Digits is mod 10_000; package Rand is new Ada.Numerics.Discrete_Random(Four_Digits); Gen: Rand.Generator; -- now we instantiate the generic package HTML_...
6,130
ada
33
ytomino/drake
source/required/s-exctab.ads
pragma License (Unrestricted); -- runtime unit required by compiler with System.Unwind; package System.Exception_Table is pragma Preelaborate; -- required for user-defined exception by compiler (s-exctab.ads) procedure Register_Exception (X : Unwind.Exception_Data_Access) is null; -- unimplemented ...
6,131
ada
1
TNO/Rejuvenation-Ada
src/rejuvenation-navigation.adb
<filename>src/rejuvenation-navigation.adb package body Rejuvenation.Navigation is function Is_Ancestor (Node1, Node2 : Ada_Node'Class) return Boolean is begin return not Node2.Is_Null and then Is_Reflexive_Ancestor (Node1, Node2.Parent); end Is_Ancestor; function Is_Reflexive_Ancestor (...
6,132
ada
24
svn2github/matreshka
source/xml/dom/xml-dom-character_datas.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
6,133
ada
3
charlie5/aIDE
source/types/adam-a_type-a_subtype.adb
<filename>source/types/adam-a_type-a_subtype.adb with AdaM.Factory; package body AdaM.a_Type.a_subtype is -- Storage Pool -- record_Version : constant := 1; pool_Size : constant := 5_000; package Pool is new AdaM.Factory.Pools (storage_Folder => ".adam-store",...
6,134
ada
0
persan/midnightsun-ctf-LoveLacedLetter
src/posix.adb
package body Posix is procedure Open (File : in out Posix.File; File_Name : in C_String; Flags : in O_FLag; S_Flags : in S_FLag) is begin File.My_File_Descriptor := Px_Thin.Open (File_Name, Flags, S_Flags); File.My_Is_Open := File.My_File_Desc...
6,135
ada
15
mgrojo/adalib
ada-execution_time-timers.ads
<reponame>mgrojo/adalib -- Standard Ada library specification -- Copyright (c) 2003-2018 <NAME> <<EMAIL>> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics...
6,136
ada
13
Fabien-Chouteau/GESTE
tests/src/grids.adb
<gh_stars>10-100 with GESTE; with GESTE.Grid; with GESTE.Tile_Bank; with Ada.Text_IO; with Console_Char_Screen; procedure Grids is package Console_Screen is new Console_Char_Screen (Width => 20, Height => 20, Buffer_Size => 256, Init_Char => ' '); Palette : aliased constant...
6,137
ada
2
skordal/ada-regex
tests/utilities_test_suite.adb
<reponame>skordal/ada-regex<gh_stars>1-10 -- Ada regular expression library -- (c) <NAME> 2020 <<EMAIL>> -- Report bugs and issues on <https://github.com/skordal/ada-regex> with AUnit.Test_Caller; with Utilities_Test_Cases; package body Utilities_Test_Suite is package Utilities_Test_Caller is new AUnit.Test_Ca...
6,138
ada
0
alexcamposruiz/dds-requestreply
src/orig/dds-request_reply-connext_c_requester.ads
<filename>src/orig/dds-request_reply-connext_c_requester.ads with DDS.DataReader; with DDS.DataWriter; with Interfaces.C.Extensions; with DDS.DomainParticipant; with DDS.Publisher; with DDS.Subscriber; with DDS.Request_Reply.Untypedcommon; with DDS.Request_Reply.Connext_C_Entity_Params; package DDS.Request_Reply.Conn...
6,139
ada
12
TUM-EI-RCS/StratoX
tests/generic-unit/src/generic_unit.ads
<reponame>TUM-EI-RCS/StratoX -- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: CRC-8 -- -- Authors: <NAME> (<EMAIL>) -- -- Description: Checksum according to fletcher's algorithm generic type Index_Type is (<>); type Element_Typ...
6,140
ada
0
PThierry/ewok-kernel
src/rings.ads
<filename>src/rings.ads -- -- 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 L...
6,141
ada
0
m-f-1998/university
alloy/coursework_two/wtp.ads
-- Filename: wtp.adb -- -- Description: Models the Water Tank Protection System -- pragma SPARK_Mode (On); package WTP with Abstract_State => State is procedure Control with Global => (Output => State), Depends => (State => null); end WTP;
6,142
ada
0
svn2github/matreshka
source/web/spikedog/aws/matreshka-servlet_aws_requests.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
6,143
ada
1
LaudateCorpus1/RosettaCodeData
Task/Seven-sided-dice-from-five-sided-dice/Ada/seven-sided-dice-from-five-sided-dice-2.ada
with Ada.Numerics.Discrete_Random; package body Random_57 is type M5 is mod 5; package Rand_5 is new Ada.Numerics.Discrete_Random(M5); Gen: Rand_5.Generator; function Random7 return Mod_7 is N: Natural; begin loop N := Integer(Rand_5.Random(Gen))* 5 + Integer(Rand_5.Random(G...
6,144
ada
0
zerodois-bcc/SEL0632-2019
iowriteread.adb
<reponame>zerodois-bcc/SEL0632-2019 -- Simple file opener and writer. -- <NAME> - ICMC/USP - March, 2019. WITH Ada.Sequential_IO; PROCEDURE TEST1 is PACKAGE Seq_Float_IO is new Ada.Sequential_IO (Element_Type => float); blank, container : Seq_Float_IO.File_Type; str : CONSTANT String := "stream_init.dat...
6,145
ada
24
svn2github/matreshka
source/web/soap/web_services-soap-clients.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
6,146
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstchildproxy_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 glib; with System; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstchildproxy_h is -- u...
6,147
ada
15
My-Colaborations/dynamo
src/asis/a4g-a_osint.adb
<filename>src/asis/a4g-a_osint.adb ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
6,148
ada
2
zenharris/ada-bbs
src/main.adb
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Calendar; use Ada.Calendar; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; --with Ada.Strings.M...
6,149
ada
488
ouankou/rose
src/frontend/Experimental_Ada_ROSE_Connection/parser/a_nodes/source/a_nodes_h-support.ads
<gh_stars>100-1000 package a_nodes_h.Support is -- Records written in good Ada style should already have default values for -- their components. a_nodes_h.ads is generated from C, so this package -- supplies constant records for safe initialization. package ICE renames Interfaces.C.Extensions; package I...
6,150
ada
9
SALLYPEMDAS/DW1000
src/dw1000-bsp.ads
------------------------------------------------------------------------------- -- Copyright (c) 2016 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, inc...
6,151
ada
13
annexi-strayline/AURA
repositories-generate_aura_spec.adb
<reponame>annexi-strayline/AURA ------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- Reference Implementation...
6,152
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_dim.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
6,153
ada
1
Kurinkitos/Twizy-Security
src/wrapper.adb
with speedModule; use speedModule; with perception; package body Wrapper with SPARK_Mode is procedure Init is begin if not (Safe) then -- Running init in a non fresh state is wrong Initialized := False; return; end if; CurrentSpeed := 4.5; ...
6,154
ada
24
svn2github/matreshka
source/league/league-characters-latin.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
6,155
ada
1
io7m/coreland-math_2d
math_2d-triangles.ads
with Math_2D.Types; with Math_2D.Points; with Math_2D.Vectors; generic with package Types is new Math_2D.Types (<>); with package Vectors is new Math_2D.Vectors (Types); with package Points is new Math_2D.Points (Types => Types, Vectors => Vectors); package Math_2D.Triangles is function Area ...
6,156
ada
12
jquorning/ada-asf
src/asf-applications-messages.ads
<reponame>jquorning/ada-asf ----------------------------------------------------------------------- -- applications.messages -- Application Messages -- Copyright (C) 2010, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
6,157
ada
14
Fabien-Chouteau/usb_embedded
tests/src/tests-device-hid.ads
package Tests.Device.HID is pragma Elaborate_Body; end Tests.Device.HID;
6,158
ada
0
jwarwick/aoc_2019_ada
day03/src/fms.adb
<gh_stars>0 -- Fuel Management System with Ada.Text_IO; with Ada.Strings.Maps; with Ada.Strings.Fixed; with Ada.Strings.Unbounded; with Ada.Strings.Hash; package body FMS is package TIO renames Ada.Text_IO; function to_dir(c : in Character) return Direction is begin case c is when 'U' => return Up; ...
6,159
ada
3
rogermc2/GA_Ada
ga_ref_impl/test_general_inverse/src/general_inverse_test.adb
<filename>ga_ref_impl/test_general_inverse/src/general_inverse_test.adb with Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Blade; with Blade_Types; with GA_Maths; with GA_Utilities; with Metric; with Multivectors; use Multivectors; with Multivector_Type; procedure General_Inverse_Test is use Bla...
6,160
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Globe_3d/globe_3d-random_extrusions.ads
<reponame>ForYouEyesOnly/Space-Convoy<gh_stars>1-10 ------------------------------------------------------------------------------ -- File : GLOBE_3D - Random_extrusions.ads -- Description : Algorithm to generate a Sci - Fi - style extruded surface -- Date / Version : 14 - May - 2006 -- ...
6,161
ada
0
thierr26/ada-apsepp
src/apsepp-test_reporter_class-instant_standard.adb
<filename>src/apsepp-test_reporter_class-instant_standard.adb -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Ada.Text_IO; with Apsepp.Test_Node_Class; with Apsepp.Abstract_Early_Test_Case; package body Apsepp.Test_Reporter_Class.Instant_Standard is use Test_Node_Clas...
6,162
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_body_stub.ads
<filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_body_stub.ads package function_body_stub is function Inner return integer; end function_body_stub;
6,163
ada
1
LaudateCorpus1/RosettaCodeData
Task/Catamorphism/Ada/catamorphism.ada
<filename>Task/Catamorphism/Ada/catamorphism.ada with Ada.Text_IO; procedure Catamorphism is type Fun is access function (Left, Right: Natural) return Natural; type Arr is array(Natural range <>) of Natural; function Fold_Left (F: Fun; A: Arr) return Natural is Result: Natural := A(A'First); begin ...
6,164
ada
33
ytomino/drake
source/a-uncdea.ads
pragma License (Unrestricted); generic type Object (<>) is limited private; type Name is access Object; procedure Ada.Unchecked_Deallocation (X : in out Name) with Import, Convention => Intrinsic; pragma Preelaborate (Ada.Unchecked_Deallocation);
6,165
ada
1
OneWingedShark/Risi
src/risi_script-parameter_stack.ads
With Risi_Script.Interfaces, Ada.Containers.Indefinite_Vectors; Package Risi_Script.Parameter_Stack is Package Interfaces renames Risi_Script.Types.Interfaces; Package Implementation is new Ada.Containers.Indefinite_Vectors( "=" => Risi_Script.Types."=", Index_Type => positive, Ele...
6,166
ada
12
TUM-EI-RCS/StratoX
bug-reports/flowanalysis_const/src/p2.ads
with Interfaces; use Interfaces; package p2 with SPARK_Mode -- Abstract_State => (State with External) is some_register : Unsigned_8 with Volatile, Async_Readers, Effective_Writes; some_constant : constant Unsigned_16 := 22_027; procedure foo; end p2;
6,167
ada
2
zenharris/ada-bbs
src/templates.ads
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with GNAT.Regpat; use GNAT.Regpat; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO.Unbounded_IO; with Ada.Strings.Fixed; with Ada.Containers; use Ada.Containers; with Ada.C...
6,168
ada
33
ytomino/drake
source/numerics/required/s-fatflt.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- implementation unit required by compiler package System.Fat_Flt is pragma Pure; package Attr_Float is -- required for Float'Adjacent by compiler (s-fatgen.ads) function Adjacent (X, Towards : Float) return Float with Import, ...
6,169
ada
33
ytomino/drake
source/directories/machine-pc-freebsd/s-ndfina.adb
package body System.Native_Directories.File_Names is -- implementation function Equal_File_Names ( FS : Ada.Directories.Volumes.File_System; Left, Right : String) return Boolean is pragma Unreferenced (FS); begin return Left = Right; end Equal_File_Names; function Les...
6,170
ada
33
ytomino/drake
source/strings/a-suewst.ads
<filename>source/strings/a-suewst.ads pragma License (Unrestricted); -- Ada 2012 with Ada.Characters.Conversions; with Ada.Strings.UTF_Encoding.Generic_Strings; package Ada.Strings.UTF_Encoding.Wide_Strings is new Strings.UTF_Encoding.Generic_Strings ( Wide_Character, Wide_String, Expanding_From_8...
6,171
ada
0
faelys/natools
src/natools-s_expressions-printers.adb
------------------------------------------------------------------------------ -- Copyright (c) 2013-2015, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
6,172
ada
0
btmalone/alog
aunit/aunit.adb
<filename>aunit/aunit.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
6,173
ada
70
Lucretia/bare_bones
build/gnat/rts/common/adainclude/s-parame.ads
<gh_stars>10-100 -- -*- Mode: Ada -*- -- Filename : s-parame.ads -- Description : Custom package. -- Author : <NAME> -- Created On : Thur Nov 17 17:52:04 2016 -- Licence : See LICENCE in the root directory. package System.Parameters is pragma Pure; ...
6,174
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3906c.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3906c.ada -- CE3906C.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...
6,175
ada
1
ytomino/vampire
source/vampire-unlock.adb
<reponame>ytomino/vampire -- The Village of Vampire by YT, このソースコードはNYSLです with Tabula.Unlock; with Vampire.Configurations; procedure Vampire.Unlock is begin Tabula.Unlock ( Lock_Name => Configurations.Lock_Name'Access, Debug_Log_File_Name => Configurations.Debug_Log_File_Name'Access); end Vampire.Unlock;
6,176
ada
33
ytomino/drake
source/environment/a-clgepa.adb
<filename>source/environment/a-clgepa.adb with Ada.Exceptions.Finally; with Ada.Unchecked_Deallocation; package body Ada.Command_Line.Generic_Parsing is pragma Check_Policy (Trace => Ignore); procedure Retain (Context : not null Argument_Context_Access); procedure Retain (Context : not null Argument_Context_A...
6,177
ada
6
My-Colaborations/ada-servlet
src/servlet-security-filters-oauth.adb
----------------------------------------------------------------------- -- servlet-security-filters-oauth -- OAuth Security filter -- 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 complianc...
6,178
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/atomic2.ads
-- { dg-do compile } package Atomic2 is type Rec1 is record C : Character; I : Integer; pragma Atomic (I); end record; for Rec1 use record C at 0 range 0 .. 7; I at 1 range 0 .. 31; -- { dg-error "position of atomic field" } end record; type Rec2 is record C : Character; I : Int...
6,179
ada
13
annexi-strayline/AURA
registrar-source_files.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation ...
6,180
ada
18
jquorning/ada-wiki
src/wiki-plugins-conditions.adb
----------------------------------------------------------------------- -- wiki-plugins-conditions -- Condition Plugin -- Copyright (C) 2016, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the L...
6,181
ada
2
charlie5/cBound
tier-1/xcb/source/thin/xcb.ads
<reponame>charlie5/cBound -- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with swig; with Interfaces.C; package xcb is -- xcb_connection_t -- subtype xcb_connection_t is swig.opaque_structure; type xcb_connection_t_array is array (Interfaces.C....
6,182
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-spanish.adb
<filename>src/lang/stemmer-spanish.adb -- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Spanish 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, "...
6,183
ada
7
kimtg/euler-ada
euler7.adb
with ada.text_io; use ada.text_io; procedure euler7 is function is_prime(n : integer) return boolean is i : integer := 2; begin while i * i <= n loop if n mod i = 0 then return false; end if; i := i + 1; end loop; return true; end; count : integer := 0; i : integer := 2; begi...
6,184
ada
20
charlie5/lace
1-base/lace/source/events/mixin/lace-make_subject.adb
with lace.Event.Logger, lace.Event.utility, system.RPC, ada.unchecked_Deallocation; package body lace.make_Subject is procedure destroy (Self : in out Item) is begin Self.safe_Observers.destruct; end destroy; -- Attributes -- overriding function Observers (Self : i...
6,185
ada
1
STR-UPM/ToyOBDH
src/tm.adb
<filename>src/tm.adb -- -- -- Copyright (C) 2017, Universidad Politécnica de Madrid -- -- -- -- Redistribution and use in source and binary forms, with or...
6,186
ada
0
Latence-Technologies/Kafka-Ada
src/kafka-topic-partition.adb
package body Kafka.Topic.Partition is procedure List_Add(List : Partition_List_Type; Topic : String; Partition : Integer_32) is C_Topic : chars_ptr := New_String(Topic); Unused : System.Address; begin Unused := rd_kafka_topic_partit...
6,187
ada
33
ytomino/drake
source/textio/a-teiofo.ads
pragma License (Unrestricted); -- implementation unit with System.Long_Long_Integer_Types; private package Ada.Text_IO.Formatting is -- for Integer_IO procedure Integer_Image ( To : out String; Last : out Natural; Item : System.Long_Long_Integer_Types.Word_Integer; Base : Number_Base); ...
6,188
ada
60
Letractively/ada-util
src/util-texts-formats.adb
----------------------------------------------------------------------- -- Util-texts-formats -- Text Format ala Java MessageFormat -- Copyright (C) 2001, 2002, 2003, 2009, 2010 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ...
6,189
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-valuen.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
6,190
ada
2
thorstel/Advent-of-Code-2018
day02/day02.adb
<gh_stars>1-10 with Ada.Text_IO; with Ada.Containers.Generic_Array_Sort; with Ada.Containers.Vectors; use Ada.Text_IO; procedure Day02 is subtype Input_String is String (1 .. 26); package String_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Input_String); procedure Str...
6,191
ada
33
ytomino/drake
source/image/required/s-valboo.adb
with System.Val_Enum; with System.Value_Errors; package body System.Val_Bool is function Value_Boolean (Str : String) return Boolean is First : Positive; Last : Natural; begin Val_Enum.Trim (Str, First, Last); if First <= Last then declare S : String := Str (First .. ...
6,192
ada
3
daveshields/AdaEd
demos/random.ada
---------------------------------------------------------------------- -- -- Random Number Generator -- -- written by -- -- <NAME> -- -- Ada Project -- Courant Institute -- New York University -- ...
6,193
ada
12
TUM-EI-RCS/StratoX
bug-reports/array-concat/src/main.adb
<filename>bug-reports/array-concat/src/main.adb<gh_stars>10-100 procedure main with SPARK_Mode is vstring : constant String := Integer'Image (10); -- unconstrained type ... lower bound not fixed. pragma Assert (Integer'Size <= 32); pragma Assume (vstring'Length <= 11 and vstring'Length > 0); cs : constant...
6,194
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada95/a-strfix.ads
<reponame>brucegua/moocos<filename>tools/scitools/conf/understand/ada/ada95/a-strfix.ads<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS ...
6,195
ada
1
micahwelf/FLTK-Ada
src/fltk-static.adb
<reponame>micahwelf/FLTK-Ada<gh_stars>1-10 with Interfaces.C.Strings, System.Address_To_Access_Conversions, Ada.Unchecked_Conversion; use type Interfaces.C.int, Interfaces.C.Strings.chars_ptr; package body FLTK.Static is procedure fl_static_add_awake_handler (H, F : in System...
6,196
ada
0
alban-linard/adda
src/adda-generator.ads
<reponame>alban-linard/adda<gh_stars>0 with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Containers.Indefinite_Hashed_Sets; with Ada.Finalization; use Ada.Containers; generic type Variable_Type is private; with function Hash_Variable (Element : in Variable_Type) return Hash_Type; type Val...
6,197
ada
0
optikos/oasis
source/nodes/program-nodes-assignment_statements.adb
<filename>source/nodes/program-nodes-assignment_statements.adb -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Assignment_Statements is function Create (Variable_Na...
6,198
ada
0
annexi-strayline/ASAP-INET
unix/inet-internal-unix_sockets.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- Internet Protocol Suite Package -- -- ...
6,199
ada
80
thindil/steamsky
src/ships-upgrade.adb
-- Copyright 2017-2021 <NAME> -- -- This file is part of Steam Sky. -- -- Steam Sky 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) a...