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,100
ada
0
byllgrim/iictl
iictl.adb
<reponame>byllgrim/iictl -- See LICENSE file for cc0 license details with Ada.Command_Line; with Ada.Directories; with Ada.Exceptions; use Ada.Exceptions; -- TODO remove with Ada.Strings.Unbounded; with Ada.Text_Io; with Ch_Conn; with Posix.Io; with Posix.Process_Identification; with Posix.User_Database; with Srv_Conn;...
2,101
ada
0
optikos/oasis
source/nodes/program-nodes-exception_handlers.adb
<reponame>optikos/oasis -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Exception_Handlers is function Create (When_Token : not null Program.Lexical_Elements ...
2,102
ada
3
Fabien-Chouteau/AGATE
src/test_static_tasks.adb
<filename>src/test_static_tasks.adb ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2018, <NAME> -- -- ...
2,103
ada
19
pmderodat/ada-toml
src/toml.adb
<gh_stars>10-100 with Ada.Containers.Generic_Array_Sort; with Ada.Containers.Hashed_Maps; with Ada.Containers.Vectors; with Ada.Strings.Unbounded.Hash; with Ada.Unchecked_Deallocation; with TOML.Generic_Dump; with TOML.Generic_Parse; package body TOML is use Ada.Strings.Unbounded; procedure Dump_To_String is ...
2,104
ada
15
My-Colaborations/dynamo
src/asis/a4g-span_beginning.adb
<reponame>My-Colaborations/dynamo<filename>src/asis/a4g-span_beginning.adb ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
2,105
ada
33
kqr/qweyboard
src/backends/x11/xinput2_h.ads
with Interfaces.C.Strings; with Interfaces.C.Pointers; with XLib_H; use XLib_H; package XInput2_H is XIAllDevices : constant C.Int := 0; XISlaveKeyboard : constant C.Int := 4; XIKeyClass : constant C.Int := 0; XIGrabModeSync : constant C.Int := 0; XIGrabModeAsync : constant C.Int := 1; XIKeyPress : c...
2,106
ada
2
Heziode/lsystem-editor
src/model/io/lse-model-io-turtle.adb
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 <NAME> (Heziode) <<EMAIL>> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and...
2,107
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/restrict.ads
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
2,108
ada
0
Tim-Tom/project-euler
Ada/inc/Problem_50.ads
package Problem_50 is -- The prime 41, can be written as the sum of six consecutive primes: -- 41 = 2 + 3 + 5 + 7 + 11 + 13 -- This is the longest sum of consecutive primes that adds to a prime below -- one-hundred. The longest sum of consecutive primes below one-thousand that -- adds to a prime, contain...
2,109
ada
24
svn2github/matreshka
source/league/ucd/matreshka-internals-unicode-ucd-core_01f5.ads
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
2,110
ada
33
ytomino/drake
source/required/s-pack07.ads
<filename>source/required/s-pack07.ads pragma License (Unrestricted); -- implementation unit required by compiler with System.Packed_Arrays; package System.Pack_07 is pragma Preelaborate; -- It can not be Pure, subprograms would become __attribute__((const)). type Bits_07 is mod 2 ** 7; for Bits_07'Si...
2,111
ada
0
thierr26/ada-apsepp
src/_test/fixtures/apsepp_shared_instance_test_fixture.ads
<filename>src/_test/fixtures/apsepp_shared_instance_test_fixture.ads -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Apsepp.Generic_Fixture, Apsepp.Generic_Shared_Instance; package Apsepp_Shared_Instance_Test_Fixture is procedure Increment_Lock_Count; procedu...
2,112
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c49023a.ada
<reponame>best08618/asylo -- C49023A.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...
2,113
ada
20
charlie5/lace
3-mid/opengl/source/lean/io/opengl-io-collada.ads
package openGL.IO.collada -- -- Provides a function to convert a Collada model file to an openGL IO model. -- is function to_Model (model_Path : in String) return IO.Model; end openGL.IO.collada;
2,114
ada
0
sebsgit/textproc
src/tests/layermodeltests.ads
<reponame>sebsgit/textproc with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; package LayerModelTests is type TestCase is new AUnit.Test_Cases.Test_Case with null record; procedure Register_Tests(T: in out TestCase); function Name(T: TestCase) return Message_String; procedure testDense(...
2,115
ada
1
TNO/Dependency_Graph_Extractor-Ada
tests/syntax_examples/src/basic_declaration-task_body_stub_name.adb
<reponame>TNO/Dependency_Graph_Extractor-Ada separate(Basic_Declaration) task body Task_Body_Stub_Name is begin null; end Task_Body_Stub_Name;
2,116
ada
6
Heziode/ada-dotenv
src/dotenv.adb
<reponame>Heziode/ada-dotenv<filename>src/dotenv.adb pragma Ada_2012; with Ada.Command_Line; with Ada.Directories; with Ada.Environment_Variables; with Ada.Strings; with GNAT.Regpat; package body Dotenv is RE_INI_KEY_VAL : constant GNAT.Regpat.Pattern_Matcher := GNAT.Regpat.Compile ("^\s*([\w.-]+)\s*=\s*(.*...
2,117
ada
33
ytomino/drake
source/numerics/x86_64/a-nusfge.adb
<filename>source/numerics/x86_64/a-nusfge.adb with Ada.Unchecked_Conversion; package body Ada.Numerics.SFMT.Generating is -- SSE2 version type v4si is array (1 .. 4) of Unsigned_32; for v4si'Alignment use 16; pragma Machine_Attribute (v4si, "vector_type"); pragma Machine_Attribute (v4si, "may_alias"); ...
2,118
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-convex_concave.adb
package body impact.d3.collision.Algorithm.activating.convex_concave is --- btConvexTriangleCallback -- function to_btConvexTriangleCallback (dispatcher : access impact.d3.Dispatcher.item'Class; body0, body1 : access impact.d3.Object.item'Class; ...
2,119
ada
3
charlie5/aIDE
source/program_structure/adam-library_unit-a_body.ads
<reponame>charlie5/aIDE<gh_stars>1-10 with Ada.Containers.Vectors, Ada.Streams; private with AdaM.subprogram_Body, AdaM.package_Body; package AdaM.library_Unit.a_body is type Item is new library_Unit.item with private; -- View -- type View is access all Item'Class; procedure Vi...
2,120
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/prompts/110_private_types/main.adb
<reponame>AdaCore/training_material with Ada.Text_IO; use Ada.Text_IO; with Colors; with Flags; with Input; procedure Main is Map : Flags.Map_T; begin loop Put ("Enter key value: "); declare Str : constant String := Get_Line; Key : Flags.Key_T; Description :...
2,121
ada
0
jquorning/CELLE
source/prop_links.ads
with Ada.Containers.Doubly_Linked_Lists; limited with Configs; package Prop_Links is -- A followset propagation link indicates that the contents of one -- configuration followset should be propagated to another whenever -- the first changes. type Config_Access is access all Configs.Config_Record; ...
2,122
ada
3
reznikmm/coroutines
examples/cr_test_proc.adb
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Latin_1; with Ada.Streams; with Ada.Strings.Fixed; with Ada.Text_IO; with GNAT.Sockets; with Coroutines.Polling; procedure CR_Te...
2,123
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/tagged_definition.ads
package Tagged_Definition is type Tagged_Record is tagged record Component_1 : Integer; end record; end Tagged_Definition;
2,124
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ike/tkmrpc-operation_handlers-ike-tkm_limits.ads
<gh_stars>0 with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Operation_Handlers.Ike.Tkm_Limits is procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type); -- Handler for the tkm_limits operation. end Tkmrpc.Operation_Handlers.Ike.Tkm_Limits;
2,125
ada
15
My-Colaborations/dynamo
src/yaml/text.adb
<reponame>My-Colaborations/dynamo<filename>src/yaml/text.adb<gh_stars>10-100 -- part of ParserTools, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Strings.Hash; package body Text is function "&" (Left, Right : Reference) return String is (Ada.Strings....
2,126
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/s-bbcppr__arm.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
2,127
ada
1
danva994/ASFML-1.6
include/sf-audio-music.ads
-- //////////////////////////////////////////////////////////// -- // -- // 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 held liable for any dam...
2,128
ada
1
LaudateCorpus1/RosettaCodeData
Task/Bitmap-Bresenhams-line-algorithm/Ada/bitmap-bresenhams-line-algorithm-2.ada
X : Image (1..16, 1..16); begin Fill (X, White); Line (X, ( 1, 8), ( 8,16), Black); Line (X, ( 8,16), (16, 8), Black); Line (X, (16, 8), ( 8, 1), Black); Line (X, ( 8, 1), ( 1, 8), Black); Print (X);
2,129
ada
0
thomas070605/shoot-n-loot
src/render.adb
<filename>src/render.adb -- Shoot'n'loot -- Copyright (c) 2020 <NAME> with HAL; use HAL; with PyGamer.Screen; with PyGamer.Time; with PyGamer.Controls; use PyGamer; with Sound; package body Render is Buffer_Size : constant Positive := PyGamer.Screen.Width * PyGamer.Screen.Height; Render_Buf...
2,130
ada
0
reznikmm/gela
source/oasis/program-safe_element_visitors.adb
<reponame>reznikmm/gela -- Copyright (c) 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Safe_Element_Visitors is procedure Visit (Self : in out Safe_Element_Visitor'Class; Elem...
2,131
ada
5
docandrew/troodon
src/render-text.adb
with Ada.Characters.Conversions; with Ada.Strings.UTF_Encoding; with Ada.Strings.UTF_Encoding.Wide_Wide_Strings; with Ada.Text_IO; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with System; with Freetype; with FTimage; with GL; with GLext; with Render.Fonts; with Render.Shaders; with Render.Ut...
2,132
ada
1
bracke/Meaning
source/reporter.ads
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
2,133
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3002d.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3002d.ada -- CE3002D.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,134
ada
0
micahwelf/ada_launch
chromium.adb
<reponame>micahwelf/ada_launch<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Gnat.Command_Line; use Gnat.Command_Line; with Ada.Environment_Variables; with Ada.Directories; use Ada.Directories; with GNAT.OS_Lib; use GNAT.OS_Lib; with Ada.Containers.Indefinite_Hashed_Map...
2,135
ada
6
Irvise/Ada_SaxonSOC
src/blink.adb
<filename>src/blink.adb -- Blink a led with Interfaces.SaxonSOC.GPIO; use Interfaces.SaxonSOC.GPIO; procedure Blink is type Large is mod 2 ** 32; Counter_1 : Large := 0; begin -- GPIO_A_Output_Enable := 16#1111_1111#; GPIO_A_Output_Enable := 16#01#; GPIO_A_Output := 0; loop GPIO_A_Output :=...
2,136
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/a-extiti.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
2,137
ada
4
cliffano/openapi-ipify
generated/ada-server/src/-servers.adb
-- openapi_ipify -- OpenAPI client for ipify, a simple public IP address API -- ------------ EDIT NOTE ------------ -- This file was generated with openapi-generator. You can modify it to implement -- the server. After you modify this file, you should add the following line -- to the .openapi-generator-ignore f...
2,138
ada
1
irion7/aflex-ayacc-mirror
ayacc/src/alsys_dos/ayaccsep.ada
-- $Header: /cf/ua/arcadia/alex-ayacc/ayacc/src/RCS/ayacc_separates.a,v 1.1 88/08/08 12:07:39 arcadia Exp $ --*************************************************************************** -- This file is subject to the Arcadia License Agreement. -- -- (see notice in ayacc.a) -- --********...
2,139
ada
79
Roldak/OpenGLAda
src/gl/interface/gl-objects-textures.ads
-- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with GL.Low_Level.Enums; with GL.Pixels; with GL.Types.Colors; with System; package GL.Objects.Textures is pragma Preelaborate; ------------------------------------------------------------------------...
2,140
ada
3
Fabien-Chouteau/ada-lvlg
src/lv-objx-ddlist.ads
with Lv.Style; with Lv.Area; with Lv.Objx.Page; package Lv.Objx.Ddlist is subtype Instance is Obj_T; type Style_T is (Style_Bg, Style_Sel, Style_Sb); -- Create a drop down list objects -- @param par pointer to an object, it will be the parent of the new drop down list -- @param copy pointer to a d...
2,141
ada
24
svn2github/matreshka
source/web/tools/a2js/properties-expressions-function_calls.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
2,142
ada
17
jrmarino/ravensource
bucket_D7/gprbuild/patches/patch-src_gprbuild-link.adb
--- src/gprbuild-link.adb.orig 2021-05-19 05:22:13 UTC +++ src/gprbuild-link.adb @@ -3224,8 +3224,6 @@ package body Gprbuild.Link is if Opt.Run_Path_Option and then Main_Proj.Config.Run_Path_Option /= No_Name_List then - Add_Rpath_From_Arguments (Rpaths, Arguments, Main_Proj);...
2,143
ada
24
svn2github/matreshka
source/league/league-iris.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
2,144
ada
0
faelys/natools
tools/hmac-main.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- Copyright (c) 2014, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any --...
2,145
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array28.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array28.adb -- { dg-do run } -- { dg-options "-O" } with Array28_Pkg; use Array28_Pkg; procedure Array28 is function Get return Outer_type is Ret : Outer_Type; begin Ret (Inner_Type'Range) := F; return Ret; end; A : Outer_Type := Get; B : I...
2,146
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/constructor.ads
-- { dg-do compile } package constructor is type R (Name_Length : Natural) is record Name : Wide_String (1..Name_Length); Multiple : Boolean; end record; Null_Params : constant R := (Name_Length => 0, Name => "", Multiple => False); end;
2,147
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-window.adb
<reponame>auzkok/libagar<filename>ada/original_2008/ada-gui/agar-gui-window.adb<gh_stars>100-1000 with interfaces.c.strings; package body agar.gui.window is package cs renames interfaces.c.strings; use type c.int; function allocate_named (flags : flags_t := 0; name : cs.chars_ptr) return window_acces...
2,148
ada
0
My-Colaborations/ada-ado
src/ado-parameters.ads
<gh_stars>0 ----------------------------------------------------------------------- -- ADO Parameters -- Parameters for queries -- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2017, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
2,149
ada
0
reznikmm/markdown
sources/md/markdown-html_blocks.adb
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with League.Regexps; with League.Strings; with Markdown.Visitors; package body Markdown.HTML_Blocks is function "+" (Text : Wide_Wide_String) return League.Re...
2,150
ada
52
onox/orka
orka_transforms/src/orka-transforms-simd_vectors.ads
<reponame>onox/orka -- 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/li...
2,151
ada
0
My-Colaborations/ada-ado
src/ado-objects-cache.adb
----------------------------------------------------------------------- -- objects.cache -- Object cache -- 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 except in compliance with the License. -- Yo...
2,152
ada
32
My-Colaborations/dynamo
src/yaml/yaml-stacks.ads
-- part of AdaYaml, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Finalization; generic type Element_Type is private; package Yaml.Stacks is -- this package provides a reference-counted stack. compared to Ada's -- standard container types, it has poin...
2,153
ada
4
assessorgeneral/ConQAT
org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/gtk-event_box.adb
<filename>org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/gtk-event_box.adb<gh_stars>1-10 ----------------------------------------------------------------------- -- GtkAda - Ada95 binding for Gtk+/Gnome -- -- ...
2,154
ada
0
Fabien-Chouteau/fsmaker
src/fsmaker-sink-hexdump.ads
with GNAT.OS_Lib; private with System; package FSmaker.Sink.Hexdump is function Create (Dst : not null Sink.Acc_Any) return Sink.Class; private type Instance is new Sink.Instance with record Dst : not null Sink.Acc_Any; Addr : Natural := 0; end record; function Write (This : in out I...
2,155
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1010b.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1010b.ada -- CC1010B.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,156
ada
0
Ada-bindings-project/a-lmsensors
tests/src/sensors-tests.ads
private package Sensors.Tests is end Sensors.Tests;
2,157
ada
2
mgrojo/lsystem-editor
src/model/grammar/lse-model-grammar-symbol-logopositionsave.ads
<filename>src/model/grammar/lse-model-grammar-symbol-logopositionsave.ads ------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 <NAME> (Heziode) <<EMAIL>> -- -- Permission is hereby grante...
2,158
ada
24
svn2github/matreshka
tools/configure/configure-pkg_config.adb
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
2,159
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85018a.ada
-- C85018A.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...
2,160
ada
0
Letractively/ada-asf
regtests/asf-lifecycles-tests.adb
<reponame>Letractively/ada-asf<gh_stars>0 ----------------------------------------------------------------------- -- asf-lifecycles-tests - Tests for ASF lifecycles -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
2,161
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/s-widenu.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
2,162
ada
1
LagOussama/enseeiht
2IMA/SystemesConcurrents/tp6/lr-synchro-serveur.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; -- Version simple : exclusion mutuelle pour toutes les opérations -- fournit une ossature pour l'approche "service" package body LR.Synchro.serveur is function Nom_Strategie return String is begin return "Exclusion mutuelle simple"; end Nom_S...
2,163
ada
8
mhatzl/spark_unbound
tests/src/Safe_Alloc/sa_arrays_tests.adb
with Spark_Unbound.Safe_Alloc; with AUnit.Assertions; use AUnit.Assertions; with Ada.Exceptions; package body SA_Arrays_Tests is procedure TestAlloc_WithForcingStorageError_ResultNullReturned(T : in out Test_Fixture) is type Array_Type is array (Integer range <>) of Integer; type Array_Acc is access...
2,164
ada
0
reznikmm/gela
source/nodes/program-nodes-single_protected_declarations.adb
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Single_Protected_Declarations is function Create (Protected_Token : not null Program.Lexical_Elements .Lexical_Element_Access; ...
2,165
ada
33
ytomino/drake
source/tasking/machine-w64-mingw32/s-intnum.adb
package body System.Interrupt_Numbers is function Is_Reserved (Interrupt : C.signed_int) return Boolean is begin return Interrupt not in First_Interrupt_Id .. Last_Interrupt_Id; -- SIGKILL and SIGSTOP are not declared in mingw end Is_Reserved; end System.Interrupt_Numbers;
2,166
ada
1
stcarrez/babel
src/babel-files-sets.adb
<reponame>stcarrez/babel<filename>src/babel-files-sets.adb ----------------------------------------------------------------------- -- babel-files-sets -- Sets of files -- Copyright (C) 2014 Stephane.Carrez -- Written by Stephane.Carrez (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
2,167
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/a-sytaco.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
2,168
ada
1
LaudateCorpus1/RosettaCodeData
Task/Set/Ada/set.ada
with ada.containers.ordered_sets, ada.text_io; use ada.text_io; procedure set_demo is package cs is new ada.containers.ordered_sets (character); use cs; function "+" (s : string) return set is (if s = "" then empty_set else Union(+ s(s'first..s'last - 1), To_Set (s(s'last)))); function "-" (s : Set) return strin...
2,169
ada
25
My-Colaborations/ada-keystore
src/keystore-repository-workers.adb
<reponame>My-Colaborations/ada-keystore<filename>src/keystore-repository-workers.adb<gh_stars>10-100 ----------------------------------------------------------------------- -- keystore-repository-data -- Data access and management for the keystore -- Copyright (C) 2019, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- ...
2,170
ada
0
My-Colaborations/ada-asf
src/asf-contexts-exceptions-iterate.ads
----------------------------------------------------------------------- -- asf-contexts-exceptions -- Exception handlers in faces context -- Copyright (C) 2011 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complian...
2,171
ada
4
cliffano/openapi-ipify
generated/ada/src/model/-models.ads
-- openapi_ipify -- OpenAPI client for ipify, a simple public IP address API -- -- OpenAPI spec version: 0.9.0 -- Contact: <EMAIL> -- -- NOTE: This package is auto generated by the swagger code generator 3.2.1-SNAPSHOT. -- https://openapi-generator.tech -- Do not edit the class manually. with Swagger.Streams; wi...
2,172
ada
5
HeisenbugLtd/flac-ada
sources/flac.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam H...
2,173
ada
1
Fabien-Chouteau/sdlada
test/load_surface.adb
<reponame>Fabien-Chouteau/sdlada with Ada.Calendar; with Ada.Directories; with Ada.Text_IO.Text_Streams; with Ada.Unchecked_Conversion; with Interfaces.C.Pointers; with SDL; with SDL.Error; with SDL.Events.Events; with SDL.Events.Keyboards; with SDL.Images.IO; with SDL.Log; -- with SDL.Video.Palettes; with SDL.Video.P...
2,174
ada
0
faelys/natools
src/natools-s_expressions-templates-generic_discrete_render.adb
------------------------------------------------------------------------------ -- Copyright (c) 2014, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
2,175
ada
45
alkalinin/raytracer
ada/src/bitmap.adb
-- -- Raytracer implementation in Ada -- by <NAME> (github: johnperry-math) -- 2021 -- -- implementation for Bitmap, a Bitmap of Color_With_Transparency_Type, -- along with a procedure to save the Bitmap to a BMP file -- pragma Ada_2020; -- use Ada_202x features -- Ada packages with Interfaces.C; use Interfaces.C; -...
2,176
ada
0
joffreyhuguet/LmcpGen
src/templates/ada/avtas/lmcp/avtas-lmcp-object.ads
with avtas.lmcp.types; use avtas.lmcp.types; with avtas.lmcp.byteBuffers; use avtas.lmcp.byteBuffers; with Ada.Streams; with Utilities; package avtas.lmcp.object is type Object is abstract tagged null record; type Object_Acc is access all Object; type Object_Any is access all Object'Class; -- function c...
2,177
ada
488
ouankou/rose
src/frontend/Experimental_Ada_ROSE_Connection/parser/support/source/generic_logging.ads
with Ada.Exceptions; private with Ada.Finalization; -- Provides routines that prefix the output with the name of the current -- module. -- -- Note: -- If this is instantiated multiple times inside nested declarative regions -- (e.g. nested subprograms) and the resulting package is "use"d, then calls on -- Log, etc. in ...
2,178
ada
79
Roldak/OpenGLAda
src/gl/generated/gl-api-doubles.ads
-- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" -- Autogenerated by Generate, do not edit package GL.API.Doubles is pragma Preelaborate; Vertex_Attrib1 : T1; Vertex_Attrib2 : T2; Vertex_Attrib2v : T3; Vertex_Attrib3 : T4; Vertex_Attrib3v ...
2,179
ada
1
LaudateCorpus1/RosettaCodeData
Task/DNS-query/Ada/dns-query-1.ada
<filename>Task/DNS-query/Ada/dns-query-1.ada with Ada.Text_IO; use Ada.Text_IO; with GNAT.Sockets; use GNAT.Sockets; procedure DNSQuerying is Host : Host_Entry_Type (1, 1); Inet_Addr_V4 : Inet_Addr_Type (Family_Inet); begin Host := Get_Host_By_Name (Name => "www.kame.net"); Inet_Addr_V4 ...
2,180
ada
65
PThierry/ewok-kernel
src/ewok-isr.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,181
ada
1
f110/wing
third_party/universal-ctags/ctags/Units/parser-ada.r/ada-generic-in-package.d/input_2.ads
<filename>third_party/universal-ctags/ctags/Units/parser-ada.r/ada-generic-in-package.d/input_2.ads<gh_stars>1-10 package input_2 is type Generator is null record; generic type Unsigned is mod <>; type Real is digits <>; with function Random (G: Generator) return Unsigned is <>; function Random (G: G...
2,182
ada
0
SKNZ/BoiteMaker
src/utilities/text_file.ads
<filename>src/utilities/text_file.ads<gh_stars>0 with ada.strings.unbounded; use ada.strings.unbounded; with ada.text_io; use ada.text_io; package text_file is -- Ecriture une chaîne dans un fichier procedure write_string_to_file(file_path, content : string); -- Lire le fichier dans la chaîne procedu...
2,183
ada
0
gusthoff/fixed_types
test/src/fixed_types_test.adb
------------------------------------------------------------------------------- -- -- FIXED TYPES -- -- Test application -- -- The MIT License (MIT) -- -- Copyright (c) 2015 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaining a cop...
2,184
ada
286
auzkok/libagar
ada/core/agar-config.ads
<filename>ada/core/agar-config.ads<gh_stars>100-1000 ------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . C O N F I G -- -- ...
2,185
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Graphics/models.adb
<filename>Sources/Graphics/models.adb -- -- Jan & <NAME>, Australia, July 2011 -- -- with Arrow_P, Cube_P, Duck_P, Plane_P; with Spaceship_P; pragma Elaborate_All (Spaceship_P); with Sphere_P; pragma Elaborate_All (Sphere_P); with Real_Type; use Real_Type; with Vectors_4D; use Vectors_4D; with GL; with GL....
2,186
ada
0
orb-zhuchen/Orb
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-wchcon.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
2,187
ada
6
jonashaggstrom/ada-canopen
src/aco-protocols-network_management-slaves.ads
<filename>src/aco-protocols-network_management-slaves.ads<gh_stars>1-10 package ACO.Protocols.Network_Management.Slaves is type Slave (Id : ACO.Messages.Node_Nr; Od : not null access ACO.OD.Object_Dictionary'Class) is new NMT with private; private type Slave (Id : ACO.Messages.Node_Nr; ...
2,188
ada
15
mgrojo/adalib
ada-characters-handling.ads
<reponame>mgrojo/adalib<filename>ada-characters-handling.ads -- 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...
2,189
ada
0
JCGobbi/Nucleo-STM32G474RE
ADL/drivers/stm32g474/stm32-crc.ads
<filename>ADL/drivers/stm32g474/stm32-crc.ads ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- ...
2,190
ada
6
jonashaggstrom/ada-canopen
src/aco-messages.adb
package body ACO.Messages is function CAN_Id (Msg : Message) return Id_Type is (Msg.CAN_Id.Id); function Func_Code (Msg : Message) return Function_Code is (Msg.CAN_Id.Code); function Node_Id (Msg : Message) return Node_Nr is (Msg.CAN_Id.Node); function Create (CAN_Id : Id_Type; ...
2,191
ada
4
faelys/gela-asis
source/asis/spec/ada-containers-vectors.ads
<reponame>faelys/gela-asis ------------------------------------------------------------------------------ -- 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,192
ada
2
JailbreakFox/LightWeightRepository
ZeroMQ/filecode/examples/Ada/zmq-examples-client.adb
<reponame>JailbreakFox/LightWeightRepository with ZMQ.Sockets; with ZMQ.Contexts; with ZMQ.Messages; with Ada.Text_IO; use Ada.Text_IO; procedure ZMQ.examples.Client is ctx : ZMQ.Contexts.Context; s : ZMQ.Sockets.Socket; begin -- Initialise 0MQ context, requesting a single applica...
2,193
ada
0
vivianjia123/Password-Manager
Assignment/utility.ads
<filename>Assignment/utility.ads with MyCommandLine; with MyStringTokeniser; with PasswordDatabase; -- utility is a helper function with the aim to reduce code repetition within -- the main file package Utility with SPARK_Mode is Max_Line_Length : constant Natural := 2048; Put_Length : constant Natural := 3; ...
2,194
ada
3
charlie5/aIDE
attic/asis/find_all/adam-assist-query-find_all-actuals_for_traversing.ads
<gh_stars>1-10 with Asis, AdaM.Source; package AdaM.Assist.Query.find_All.Actuals_for_traversing is type Traversal_State is record parent_Stack : AdaM.Source.Entities; ignore_Starter : asis.Element := asis.Nil_Element; end record; Initial_Traversal_State : constant T...
2,195
ada
1
ytomino/vampire
source/vampire-r3-target_page.adb
-- The Village of Vampire by YT, このソースコードはNYSLです with Web.HTML; with Vampire.Villages.Text; procedure Vampire.R3.Target_Page ( Output : not null access Ada.Streams.Root_Stream_Type'Class; Form : in Forms.Root_Form_Type'Class; Template : in String; Village_Id : in Tabula.Villages.Village_Id; Village : in Villages.V...
2,196
ada
7
98devin/ada-gba-dev
src/GBA.BIOS.Memset.ads
-- Copyright (c) 2021 <NAME> -- zlib License -- see LICENSE for details. with System; use System; with Interfaces.C; use Interfaces; function GBA.BIOS.Memset ( Dest : in Address; Value : Integer; Num_Bytes : C.size_t ) return Address with Linker_Section => ".iwram"; pragma Machine_Attribute (Memset, "target...
2,197
ada
0
sourceryinstitute/rose-sourcery-institute
src/frontend/Experimental_Ada_ROSE_Connection/dot_asis/dot_asis_library/source/asis_tool_2-element.adb
<reponame>sourceryinstitute/rose-sourcery-institute with Asis.Clauses; with Asis.Compilation_Units; with Asis.Declarations; with Asis.Definitions; with Asis.Elements; with Asis.Expressions; with Asis.Exceptions; with Asis.Iterator; with Asis.Statements; -- GNAT-specific: with Asis.Set_Get; with Asis.Text; package body...
2,198
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-convex_concave.ads
<reponame>charlie5/lace<gh_stars>10-100 with impact.d3.collision.Algorithm.activating, impact.d3.Manifold, impact.d3.collision.manifold_Result, impact.d3.Dispatcher, impact.d3.Object, impact.d3.collision.create_Func, impact.d3.collision.Algorithm, impact.d3.triangle_Callback; pac...
2,199
ada
0
Roldak/OpenGLAda
src/glfw/v3/glfw-windows-hints.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.Windows.Hints is procedure Reset_To_Defaults renames API.Default_Window_Hints; procedure Set_Resizable (Value : Boolean) is begin ...