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
30,200
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/quote.adb
-- { dg-do run } with GNAT.Regpat; use GNAT.Regpat; procedure Quote is begin if Quote (".+") /= "\.\+" then raise Program_Error; end if; end Quote;
30,201
ada
0
balintsoos/LearnAda
gyak/gyak1-2/csomag/mat.ads
package Mat is function Lnko ( A, B : Positive ) return Positive; function Faktorialis( N: Natural ) return Positive; end Mat;
30,202
ada
25
My-Colaborations/ada-keystore
src/keystore-keys.adb
<gh_stars>10-100 ----------------------------------------------------------------------- -- keystore-keys -- Keystore key management -- Copyright (C) 2019, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complia...
30,203
ada
12
TUM-EI-RCS/StratoX
tests/sparkada/src/main.adb
<reponame>TUM-EI-RCS/StratoX procedure main is function foo (x : integer) return integer with Pre => x < Integer'Last is begin return x+1; end foo; pragma Precondition (x < Integer'Last); x, y: integer; begin x:= Integer'Last; y := foo(x); end main;
30,204
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/exp_code.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
30,205
ada
1
LaudateCorpus1/RosettaCodeData
Task/Inverted-index/Ada/inverted-index-7.ada
package body Generic_Inverted_Index is -- uses some of the new Ada 2012 syntax use Source_Vecs; procedure Store(Storage: in out Storage_Type; Source: Source_Type; Item: Item_Type) is use type Maps.Cursor; begin if (Storage.Find(Item) = Maps.No_Ele...
30,206
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/size_clause2.ads
-- { dg-do compile } -- { dg-options "-gnatws" } package Size_Clause2 is -- The alignment of the record is capped to the greatest power of 2 -- factor of the size, so that the real size is 40 too and the size -- of a component of type R1 in a packed record can be 40. type R1 is record I : Integer; B :...
30,207
ada
33
ytomino/drake
source/interfaces/machine-pc-linux-gnu/s-cencod.adb
with System.UTF_Conversions; package body System.C_Encoding is use type C.size_t; use type C.wchar_t; -- implementation of Character (UTF-8) from/to char (UTF-8) function To_char ( Item : Character; Substitute : C.char) return C.char is pragma Unreferenced (Substitute); begi...
30,208
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/empty_package.ads
package Empty_Package is end Empty_Package;
30,209
ada
52
onox/orka
orka/src/gl/interface/gl-types-indirect.ads
<filename>orka/src/gl/interface/gl-types-indirect.ads -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -...
30,210
ada
0
My-Colaborations/ada-servlet
samples/openid.adb
----------------------------------------------------------------------- -- openid -- Example of OpenID 2.0 Authentication -- Copyright (C) 2011, 2012, 2013, 2015 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
30,211
ada
0
pat-rogers/OpenUxAS
src/ada/src/route_aggregator_common.ads
<filename>src/ada/src/route_aggregator_common.ads<gh_stars>0 with Ada.Containers.Functional_Vectors; with Ada.Containers.Functional_Sets; with Ada.Containers.Functional_Maps; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Interfaces; package Route_Aggregator_Common with SPARK_Mode is type UInt32 is ne...
30,212
ada
52
onox/orka
orka/src/orka/interface/orka-jobs-system.ads
<filename>orka/src/orka/interface/orka-jobs-system.ads<gh_stars>10-100 -- 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...
30,213
ada
0
Letractively/ada-gen
src/gen-commands-database.adb
----------------------------------------------------------------------- -- gen-commands-database -- Database creation from application model -- Copyright (C) 2011, 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in...
30,214
ada
0
python36/0xfa
src/getters/getter-file.ads
<filename>src/getters/getter-file.ads<gh_stars>0 with ada.text_io; with ada.containers.vectors; with ada.unchecked_deallocation; with strings; use strings; package getter.file is function get return character; procedure open (path : string); private type descriptor_access_t is access ada.text_io.file_type; t...
30,215
ada
19
jrcarter/Ada_GUI
ada_gui-gnoga-gui-view-console.ads
<filename>ada_gui-gnoga-gui-view-console.ads -- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- ...
30,216
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-detector-discrete.adb
package body impact.d3.collision.Detector.discrete is overriding procedure addContactPoint (Self : in out btStorageResult; normalOnBInWorld : in math.Vector_3; pointInWorld : in math.Vector_3; ...
30,217
ada
0
PThierry/ewok-kernel
src/ewok-tasks-debug.adb
<filename>src/ewok-tasks-debug.adb<gh_stars>0 -- -- Copyright 2018 The wookey project team <<EMAIL>> -- - <NAME> -- - Arnauld Michelizza -- - <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...
30,218
ada
20
charlie5/lace
2-low/neural/source/neural.ads
<reponame>charlie5/lace<filename>2-low/neural/source/neural.ads with float_Math; package Neural -- -- Declares the 'neural' namespace and core types. -- is pragma Pure; package Math renames float_Math; subtype Signal is math.Real; type Signals is array (Positive range <>) of neura...
30,219
ada
33
ytomino/drake
source/machine-w64-mingw32/s-widsta.adb
<filename>source/machine-w64-mingw32/s-widsta.adb package body System.Wide_Startup is pragma Suppress (All_Checks); -- main generated by gnatbind function main (argc : Integer; argv : Address; envp : Address) return Integer with Import, Convention => C; -- implementation function wmain (...
30,220
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada95/a-comlin.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
30,221
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-serbian.adb
<reponame>stcarrez/ada-stemmer -- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Serbian 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 ...
30,222
ada
0
reznikmm/gela
source/oasis/program-elements-anonymous_access_definitions.ads
<reponame>reznikmm/gela -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Definitions; package Program.Elements.Anonymous_Access_Definitions is pragma Pure (Program.Elements.Anonymous_Access_Def...
30,223
ada
0
svn2github/matreshka
source/xml/templates/xml-templates-processors-parser.adb
<filename>source/xml/templates/xml-templates-processors-parser.adb ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
30,224
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45347a.ada
<gh_stars>1-10 -- C45347A.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....
30,225
ada
0
corentingay/ada_epita
project/ads_files/screen_hpp.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package screen_hpp is -- Struct used to pass around infos about the buffer used for display -- We assume that rowstride = 1 (memory is contiguous) -- We assume that n_channels = 3 (RGB) package Class_Screen is type Screen...
30,226
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/warn6.ads
package Warn6 is package Q is type T is private; -- this is the trigger private type T is access Integer; pragma No_Strict_Aliasing (T); end Q; subtype Q_T is Q.T; procedure Dummy; end Warn6;
30,227
ada
0
reznikmm/declarative-regions
source/regions/regions-factories.ads
<reponame>reznikmm/declarative-regions -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Regions.Contexts; with Regions.Entities.Packages; with Regions.Environments; package Regions.Factories is pragma Preelabora...
30,228
ada
20
charlie5/lace
3-mid/impact/source/3d/math/impact-d3-aabb_util.ads
<reponame>charlie5/lace<gh_stars>10-100 with Interfaces; package impact.d3.aabb_Util -- -- -- is use Math; type Signs is array (1 .. 3) of interfaces.unsigned_32; subtype Bounds is Vector_3_array (1 .. 2); procedure Transform_Aabb (halfExtents : in math.Vector_3; ...
30,229
ada
1
Okasu/Byron
src/byron.adb
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with GNAT.Sockets; use GNAT.Sockets; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Plugin_Management; use Plugin_Management; with Ada.Command_Line; use Ada.Command_Line; with Plugin; with IRC; with Config; with Ada.Streams; us...
30,230
ada
20
HeisenbugLtd/spat
src/util/spat-gpr_support.ads
<reponame>HeisenbugLtd/spat ------------------------------------------------------------------------------ -- 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 publi...
30,231
ada
0
orb-zhuchen/Orb
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-sothco.ads
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
30,232
ada
0
bracke/Meaning
source/RASCAL-WimpTask.ads
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
30,233
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64109g.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64109g.ada -- C64109G.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...
30,234
ada
24
svn2github/matreshka
source/league/ucd/matreshka-internals-unicode-ucd-core_01d5.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
30,235
ada
0
sciencylab/lagrangian-solver
drivers/sb_package.ads
with Numerics, Chebyshev, Dense_AD, Dense_AD.Integrator; use Numerics, Chebyshev; package Sb_Package is Convergence_Exception : exception; ----------------------------------------------- N : constant Nat := 2; K : constant Nat := 12; α : Real; ----------------------------------------------- ...
30,236
ada
1
msorvig/qt-quick-bindings
example_hello_ada/qtquick.adb
<reponame>msorvig/qt-quick-bindings with Interfaces.C.Strings; use Interfaces.C.Strings; package body QtQuick is procedure Qt_Main (MainQmlFile : String) is begin Qt_Main_Simple(New_String(MainQmlFile)); end Qt_Main; end QtQuick;
30,237
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/a-widcha.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
30,238
ada
192
rocher/Ada_Drivers_Library
components/src/keyboard/bbq10kbd.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
30,239
ada
0
persan/a-cups
src/gen/cups-bits_uio_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; with CUPS.sys_types_h; with CUPS.stdio_h; with Interfaces.C_Streams; private package CUPS.bits_uio_h is UIO_MAXIOV : constant := 1024; -- bits/uio.h:39 -- Copyright (C) 1996-2016 Free Software Foundation, Inc. --...
30,240
ada
0
JeremyGrosser/synack_misc
src/str.ads
<reponame>JeremyGrosser/synack_misc -- -- Copyright (C) 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: BSD-3-Clause -- package Str is pragma Pure; function Find (S : String; C : Character) return Natural; function Contains (Haystack, Needle : String) return Boolean; ...
30,241
ada
0
notdb/LC-Practice
136/ada/main.adb
<filename>136/ada/main.adb with Ada.Text_IO; use Ada.Text_IO; procedure Main is procedure Nested is begin Put_Line ("Hello World"); end Nested; begin Nested; end Main;
30,242
ada
0
reznikmm/gela
source/resolver/program-complete_contexts.adb
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Vectors; with Program.Elements.Discrete_Simple_Expression_Ranges; with Program.Elements.Function_Calls; with Program.Elements.Identifiers; with Progra...
30,243
ada
4
MOUDDENEHamza/ENSEEIHT
1A/S5/PIM/tps/tp5/test_piles.adb
with Piles; -- Programme de test du module Pile. procedure Test_Piles is package Pile_Caractere is new Piles (Capacite => 3, T_Element => Character); use Pile_Caractere; -- Initialiser une pile avec 'O' puis 'K' empilés dans la pile vide. procedure Initialiser_Avec_OK (Pile : out T_Pile) is ...
30,244
ada
1
bracke/Meaning
source/RASCAL-Time.adb
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
30,245
ada
7
jwhitham/x86determiniser
tests/ada/measure_time.ads
generic type Data ( <> ) is private; with procedure Procedure_To_Be_Measured (D : in Data); package Measure_Time is function Time ( D : Data; Iterations : in Natural) return Natural ; end Measure_Time ;
30,246
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming5.ads
package Renaming5 is procedure Proc; end Renaming5;
30,247
ada
0
strenkml/EE368
memsim-master/src/memory-flash.ads
<gh_stars>0 package Memory.Flash is type Flash_Type is new Memory_Type with private; type Flash_Pointer is access all Flash_Type'Class; function Create_Flash(word_size : Positive := 8; block_size : Positive := 256; read_latency : Time_Type := 10; ...
30,248
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-clocks.ads
package FLTK.Widgets.Clocks is type Clock is new Widget with private; type Clock_Reference (Data : not null access Clock'Class) is limited null record with Implicit_Dereference => Data; subtype Hour is Integer range 0 .. 23; subtype Minute is Integer range 0 .. 59; subtype Second is In...
30,249
ada
0
ekoeppen/MSP430_Generic_Ada_Drivers
msp430x2/msp430g2553/svd/msp430_svd-timer_1_a3.ads
<reponame>ekoeppen/MSP430_Generic_Ada_Drivers -- This spec has been automatically generated from msp430g2553.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- Timer1_A3 package MSP430_SVD.TIMER_1_A3 is pragma Preelaborate; --------------- -- Regist...
30,250
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/fname.ads
<reponame>djamal2727/Main-Bearing-Analytical-Model ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
30,251
ada
0
Letractively/ada-asf
src/asf-server.ads
<gh_stars>0 ----------------------------------------------------------------------- -- asf.server -- ASF Server -- Copyright (C) 2009, 2010, 2011, 2012 <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 ...
30,252
ada
1
Fabien-Chouteau/sdlada
src/sdl-video-textures-makers.ads
<reponame>Fabien-Chouteau/sdlada -------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for...
30,253
ada
0
alexcamposruiz/dds-requestreply
src/orig/dds-request_reply-connext_c_requester-generic_requester.ads
<reponame>alexcamposruiz/dds-requestreply with DDS.Treats_Generic; generic with package TReq is new DDS.Treats_Generic (<>); with package TRep is new DDS.Treats_Generic (<>); package DDS.Request_Reply.Connext_C_Requester.Generic_Requester is pragma Elaborate_Body; type TRequester is abstract new RTI_Connext...
30,254
ada
0
Fabien-Chouteau/bb_pico_bsp
src/ili9341-hack.ads
package ILI9341.Hack is procedure Prepare_For_DMA (This : in out ILI9341_Device; X1 : Width; Y1 : Height; X2 : Width; Y2 : Height); procedure End_DMA (This : in out ILI9341_Device); e...
30,255
ada
2
Spohn/LegendOfZelba
intro.ads
with ada.text_io; use ada.text_io; package intro is ------------------------------- -- Name: <NAME> -- <NAME> -- Game Intro Package Specification ------------------------------- --read in and display title page procedure title_page(file:in file_type); end intro;
30,256
ada
3
jwarwick/aoc_2020
day06/src/day.ads
-- AOC 2020, Day 6 package Day is function anyone_sum(filename : in String) return Natural; function everyone_sum(filename : in String) return Natural; end Day;
30,257
ada
0
reznikmm/webidl
source/context/webidl-interface_members.ads
<reponame>reznikmm/webidl -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Iterator_Interfaces; package WebIDL.Interface_Members is pragma Preelaborate; type Interface_Member is limited interface; -- ...
30,258
ada
30
jscparker/math_packages
disorderly/sorted_array.adb
--with Text_io; use Text_io; package body Sorted_Array is Empty_Slot : constant Item := Item'Last; -- make type Item bigger if possible than data *set*. -- eg Item = Parent_Random_Int; or Random_Int'Base. -- would prefer Empty_Slot is out of range of actual data. -- not necessary tho. type Ta...
30,259
ada
0
pat-rogers/OpenUxAS
src/ada/src/route_aggregator_common.adb
package body Route_Aggregator_Common is ------------------- -- Append_To_Msg -- ------------------- procedure Append_To_Msg (Msg : in out Unbounded_String; Tail : String) is begin Append (Msg, Tail); end Append_To_Msg; end Route_Aggregator_Common;
30,260
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/exp_ch12.adb
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/exp_ch12.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
30,261
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vfa1_pkg.ads
package VFA1_Pkg is type Int8_t is mod 2**8; type Int is new Integer; pragma Volatile_Full_Access (Int); Counter1 : Int; Counter2 : Integer; pragma Volatile_Full_Access (Counter2); type Arr is array (1 .. 4) of Int8_t; for Arr'Alignment use 4; pragma Volatile_Full_Access (Arr); Timer1 : Arr; ...
30,262
ada
0
DrenfongWong/tkm-rpc
specs/ada/common/tkmrpc-response-ike-esa_select-convert.ads
with Ada.Unchecked_Conversion; package Tkmrpc.Response.Ike.Esa_Select.Convert is function To_Response is new Ada.Unchecked_Conversion ( Source => Esa_Select.Response_Type, Target => Response.Data_Type); function From_Response is new Ada.Unchecked_Conversion ( Source => Response.Data_Type, ...
30,263
ada
2
thindil/tashy2
tests/tk-menu-test_data-tests.ads
<gh_stars>1-10 -- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Tk.Menu.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Menu.Test_Data .T...
30,264
ada
8
flyx/OpenCLAda
src/interface/cl-samplers.ads
-------------------------------------------------------------------------------- -- Copyright (c) 2013, <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice...
30,265
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43214e.ada
<reponame>best08618/asylo<gh_stars>1-10 -- C43214E.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...
30,266
ada
24
svn2github/matreshka
source/web/tools/a2js/webapi/dom/webapi-dom-parent_nodes.ads
<reponame>svn2github/matreshka<filename>source/web/tools/a2js/webapi/dom/webapi-dom-parent_nodes.ads ------------------------------------------------------------------------------ -- -- -- Matreshka Project ...
30,267
ada
1
io7m/coreland-openal-ada
UNIT_TESTS/alc_001.adb
<reponame>io7m/coreland-openal-ada<gh_stars>1-10 with Ada.Containers; with Ada.IO_Exceptions; with Ada.Text_IO; with OpenAL.Context.Error; with OpenAL.Context; with OpenAL.List; with OpenAL.Types; with Test; procedure alc_001 is package ALC renames OpenAL.Context; package ALC_Error renames OpenAL.Context.Err...
30,268
ada
24
svn2github/matreshka
source/amf/uml/amf-internals-tables-standard_profile_l3_metamodel.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
30,269
ada
1
GauBen/Arbre-Genealogique
src/registre.ads
generic Modulo : Integer; type T_Element is private; -- Un registre est une table de hachage. package Registre is type T_Registre is limited private; Cle_Absente_Exception : exception; -- Renvoie vrai si le registre est entièrement vide. function Est_Vide (Registre : T_Registre) return Boolean; ...
30,270
ada
33
ytomino/drake
source/numerics/a-nummt1.ads
<gh_stars>10-100 pragma License (Unrestricted); -- BSD 3-Clause -- translated unit from MT19937 -- -- A C-program for MT19937, with initialization improved 2002/1/26. -- Coded by <NAME> and <NAME>. -- -- Before using, initialize the state by using init_genrand(seed) -- or init_by_array(init_key, key_length). -- --...
30,271
ada
0
alexcamposruiz/dds-requestreply
src/orig/dds-request_reply-replieruntypedimpl.ads
package DDS.Request_Reply.Replieruntypedimpl is pragma Elaborate_Body; -- function RTI_Connext_ReplierUntypedImpl_Send_Sample -- (Self : not null access RTI_Connext_ReplierUntypedImpl; -- Data : System.Address; -- Related_Request_Info : DDS.SampleId...
30,272
ada
1
selroc/Renaissance-Ada
src/examples/Rejuvenation_Workshop/src/parentpackage.adb
with Ada.Containers; package body ParentPackage is end ParentPackage;
30,273
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt21_pkg.adb
<gh_stars>1-10 package body Opt21_Pkg is function Get_Object (Object : not null access R) return System.Address is begin return Object.Ptr; end; function Convert (W : Obj) return System.Address is begin if W = null then return System.Null_Address; else return Get_Obj...
30,274
ada
1
procrastiraptor/euler
ada/euler14.adb
with Ada.Integer_Text_IO; with Ada.Unchecked_Deallocation; procedure Euler14 is Max_Start: constant Positive := 999_999; subtype Start_Type is Positive range 1 .. Max_Start; type Memo is array (Start_Type) of Natural; type Memo_Ptr is access Memo; procedure Free is new Ada.Unchecked_Deallocation(Memo, M...
30,275
ada
12
jquorning/ada-asf
src/asf-applications-main-configs.adb
<filename>src/asf-applications-main-configs.adb ----------------------------------------------------------------------- -- applications-main-configs -- Configuration support for ASF Applications -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed unde...
30,276
ada
52
onox/orka
orka/src/orka/interface/orka-rendering-effects-filters.ads
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -...
30,277
ada
2
rocher/TTS-Runtime-Ravenscar
extensions/xada-dispatching-tts.ads
<gh_stars>1-10 ------------------------------------------------------------ -- -- GNAT RUN-TIME EXTENSIONS -- -- XADA . DISPATCHING . TIME-TRIGGERED SCHEDULING -- -- @file x-distts.ads / xada-dispatching-tts.ads -- -- @package XAda.Dispatching.TTS (SPEC) -- -- @author <NAME> <<EMAIL>> -- @author <NAME> <<EMAIL>> ...
30,278
ada
18
kraileth/ravenadm
src/file_operations.ads
<reponame>kraileth/ravenadm -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package File_Operations is file_handling : exception; -- Generic function to scan a text file and convert to a string function get_file_contents (dossier : String) return ...
30,279
ada
4
faelys/gela-asis
source/asis/asis-gela-visibility-create.adb
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
30,280
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/xsnames.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT SYSTEM UTILITIES -- -- ...
30,281
ada
3
reznikmm/coroutines
source/coroutines-timeouts.adb
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Containers.Ordered_Sets; with Ada.Containers.Vectors; package body Coroutines.Timeouts is type Timeout_Manager; type Timeout_Manager_...
30,282
ada
1
micahwelf/FLTK-Ada
src/fltk-devices-surfaces-paged.ads
with FLTK.Widgets.Groups.Windows; package FLTK.Devices.Surfaces.Paged is type Paged_Surface is new Surface_Device with private; type Paged_Surface_Reference (Data : not null access Paged_Surface'Class) is limited null record with Implicit_Dereference => Data; type Page_Format is ...
30,283
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3019b1.ada
-- CC3019B1.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. -- Unlimi...
30,284
ada
1
LaudateCorpus1/RosettaCodeData
Task/Linear-congruential-generator/Ada/linear-congruential-generator-1.ada
generic type Base_Type is mod <>; Multiplyer, Adder: Base_Type; Output_Divisor: Base_Type := 1; package LCG is procedure Initialize(Seed: Base_Type); function Random return Base_Type; -- changes the state and outputs the result end LCG;
30,285
ada
0
hsgrewal/learning-ada
bool.adb
<filename>bool.adb -- bool.adb with Ada.Text_IO; use Ada.Text_IO; procedure bool is BoolVal1 : Boolean := True; BoolVal2 : Boolean := True; BoolVal3 : Boolean := False; begin Put_Line(" Bool1: " & Boolean'Image(BoolVal1 and BoolVal2)); Put_Line(" Bool2: " & Boolean'Image(BoolVal2 and BoolVal3)); Put_Line(" Bool...
30,286
ada
1
skill-lang/skillAdaTestSuite
benchmark/hashing.ads
<reponame>skill-lang/skillAdaTestSuite -- MURMUR3 -- -- taken from http://commons.ada.cx/Deterministic_Hashing -- source at http://pastebin.com/ZhgRacMr -- -- Baldrick on #ada provided an implementation of Murmur3. -- Generic_Murmur3 is the core logic, the rest are convenience functions. -- -- license: as...
30,287
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/mlib-utl.adb
<filename>llvm-gcc-4.2-2.9/gcc/ada/mlib-utl.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
30,288
ada
1
charlie5/lace-alire
1-base/lace/source/events/concrete/lace-subject_and_deferred_observer.adb
with ada.unchecked_Deallocation; package body lace.Subject_and_deferred_Observer is package body Forge is function to_Subject_and_Observer (Name : in String) return Item is begin return Self : Item do Self.Name := to_unbounded_String (Name); end retu...
30,289
ada
0
JeremyGrosser/arm_cmsis_dsp
src/none_h.ads
<reponame>JeremyGrosser/arm_cmsis_dsp pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with arm_math_types_h; package none_h is -- arg-macro: procedure multAcc_32x32_keep32_R (a, x, y) -- a := (q31_t) (((((q63_t) a) << 32) + ((q63_t) x * y) + 16#800000...
30,290
ada
9
Kidev/AdaPhysics2D
materials.adb
<reponame>Kidev/AdaPhysics2D<gh_stars>1-10 package body Materials is function SetStatic(This : Material) return Material is That : Material := This; begin That.Density := 0.0; return That; end SetStatic; function SetFriction(This : Material; FStatic, FDynamic : Float := 0.0) return Mater...
30,291
ada
33
persan/zeromq-Ada
src/gen/zmq-low_level.ads
<filename>src/gen/zmq-low_level.ads ------------------------------------------------------------------------------- -- -- -- 0MQ Ada-binding -- -- ...
30,292
ada
24
svn2github/matreshka
source/amf/uml/amf-internals-uml_classifiers.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
30,293
ada
9
alkhimey/Ada_Joystick
src/linux_joystick.adb
<filename>src/linux_joystick.adb -- The MIT License (MIT) -- -- Copyright (c) 2016 <EMAIL> -- -- 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, including without li...
30,294
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-widget-ucombo.adb
package body agar.gui.widget.ucombo is package cbinds is function allocate_polled (parent : widget_access_t; flags : flags_t; callback : agar.core.event.callback_t; fmt : agar.core.types.void_ptr_t) return ucombo_access_t; pragma import (c, allocate_polled, "AG_UComboNew...
30,295
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto6_pkg.ads
with Ada.Finalization; use Ada.Finalization; package Lto6_Pkg is type F_String is new Controlled with record Data : access String; end record; Null_String : constant F_String := (Controlled with Data => null); end Lto6_Pkg;
30,296
ada
15
My-Colaborations/dynamo
src/asis/a4g-a_opt.ads
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
30,297
ada
73
deboradeben/numerical-veliz
src/rootfinding/NewtSafe.adb
<reponame>deboradeben/numerical-veliz ----------------------------------------- -- Example Newton-Bisection Hybrid -- Root-Finding Method created by -- <NAME> based off of NewtSafe from -- https://www.ldeo.columbia.edu/~mspieg/e4300/BlankPDFs/Lecture06_blank.pdf -- and rtsafe from Numerical Recipies in C p.366-367 and...
30,298
ada
0
hgrodriguez/eeprom_i2c
src/eeprom_i2c.ads
----------------------------------------------------------------------------- -- Base class for the implementation of EEPROM memory connected via -- I2C bus. -- -- Copyright 2022 (C) <NAME> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL; with HAL.I2C; package EEPROM_I2C is ----------------------------...
30,299
ada
22
FardaleM/metalang
out/rot13.adb
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure rot13 is type stringptr is access all char_array; procedure PChar(c : in Character) is begin Character'Write (Text_Streams...