id
int64
0
30.9k
extension
stringclasses
1 value
max_stars_count
int64
0
17k
max_stars_repo_name
stringlengths
7
106
max_stars_repo_path
stringlengths
5
136
text
stringlengths
9
1M
8,100
ada
30
jscparker/math_packages
ordinary/predictor_2.adb
----------------------------------------------------------------------- -- package body Predictor_2, 20th order Predictor-Corrector -- Copyright (C) 2008-2018 <NAME>. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above...
8,101
ada
24
svn2github/matreshka
source/amf/mofext/amf-transformations-cmof_to_uml_mof.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
8,102
ada
0
strenkml/EE368
memsim-master/src/benchmark-tree.ads
package Benchmark.Tree is type Tree_Type is new Benchmark_Type with private; function Create_Tree return Benchmark_Pointer; overriding procedure Set_Argument(benchmark : in out Tree_Type; arg : in String); overriding procedure Run(benchmark : in Tree_Type); ...
8,103
ada
3
stcarrez/ada-css
src/css-core-errors-default.adb
<reponame>stcarrez/ada-css ----------------------------------------------------------------------- -- css-core-errors-default -- Error handler interface -- Copyright (C) 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
8,104
ada
15
AdaCore/training_material
extern/gnat_sdl/gnat_sdl2/src/stdlib_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with umingw_h; with Interfaces.C.Strings; with System; with stddef_h; with Interfaces.C.Extensions; package stdlib_h is EXIT_SUCCESS : constant := 0; -- d:\install\gpl2018\x86_64-pc-mingw32\include\stdlib.h:34 EXIT_FAILURE : con...
8,105
ada
0
skill-lang/adaCommon
src/skill-iterators-dynamic_new_instances.adb
<filename>src/skill-iterators-dynamic_new_instances.adb -- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ iterator over types -- -- |___/_|\_\_|_|____...
8,106
ada
30
jrmarino/AdaBase
testcases/ds_fetch/ds_fetch.adb
with AdaBase; with Connect; with CommonText; with Ada.Text_IO; with AdaBase.Results.Sets; procedure DS_Fetch is package CON renames Connect; package TIO renames Ada.Text_IO; package ARS renames AdaBase.Results.Sets; package CT renames CommonText; begin CON.DR.set_trait_character_set (""); -- Nativ...
8,107
ada
30
jscparker/math_packages
polynomial/clenshaw/factorial.ads
<filename>polynomial/clenshaw/factorial.ads -- PACKAGE Factorial -- -- Natural logarithm of Factorial for arguments 0 and greater. -- -- Uses Stieltjes' Continued Fraction method arg > 32, and -- table for 0 <= arg <= 32. -- -- Meant to be good to (much much) better than 30 digits (if you -- can instantiate with a 30...
8,108
ada
0
xuedong/mini-ada
tests/typing/bad/testfile-bool-3.adb
<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; procedure Test is begin if not 1 then new_line; end if; end;
8,109
ada
22
FardaleM/metalang
out/devine.adb
<filename>out/devine.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 devine is type stringptr is access all char_array; procedure PString(s : stringptr) is begin Stri...
8,110
ada
22
FardaleM/metalang
out/euler26.adb
<reponame>FardaleM/metalang 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 euler26 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin ...
8,111
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/defining_enumeration_literal.adb
<filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/defining_enumeration_literal.adb PROCEDURE defining_enumeration_literal IS TYPE E1 IS (A, B, C, 'A', 'C', 'B'); BEGIN NULL; END defining_enumeration_literal;
8,112
ada
33
ytomino/drake
source/strings/a-sunzst.ads
pragma License (Unrestricted); -- extended unit with Ada.References.Wide_Wide_Strings; with Ada.Streams.Block_Transmission.Wide_Wide_Strings; with Ada.Strings.Generic_Unbounded; package Ada.Strings.Unbounded_Wide_Wide_Strings is new Generic_Unbounded ( Wide_Wide_Character, Wide_Wide_String, Stream...
8,113
ada
33
ytomino/drake
source/numerics/required/s-fatlfl.ads
pragma License (Unrestricted); -- implementation unit required by compiler package System.Fat_Lflt is pragma Pure; package Attr_Long_Float is -- required for Long_Float'Adjacent by compiler (s-fatgen.ads) function Adjacent (X, Towards : Long_Float) return Long_Float with Import, ...
8,114
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ike/tkmrpc-operation_handlers-ike-cc_add_certificate.ads
<gh_stars>0 with Tkmrpc.Request; with Tkmrpc.Response; package Tkmrpc.Operation_Handlers.Ike.Cc_Add_Certificate is procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type); -- Handler for the cc_add_certificate operation. end Tkmrpc.Operation_Handlers.Ike.Cc_Add_Certificate;
8,115
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt31.adb
-- { dg-do run } -- { dg-options "-O" } with Interfaces; use Interfaces; with Unchecked_Conversion; procedure Opt31 is type Unsigned_24 is new Unsigned_32 range 0 .. 2**24 - 1; subtype Time_T is Unsigned_24 range 0 .. 24 * 60 * 60 * 128 - 1; type Messages_T is array (Positive range <>) of Unsigned_8; subtyp...
8,116
ada
20
charlie5/lace
4-high/gel/source/dolly/gel-dolly-simple.ads
<reponame>charlie5/lace package gel.Dolly.simple -- -- Provides a simple camera dolly. -- is type Item is new gel.Dolly.item with private; type View is access all Item'Class; --------- --- Forge -- overriding procedure define (Self : in out Item); overriding procedure destroy (Self : in ...
8,117
ada
0
reznikmm/gela
source/nodes/program-nodes-defining_operator_symbols.ads
<filename>source/nodes/program-nodes-defining_operator_symbols.ads -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Operator_Symbols; with Program.Element_Vis...
8,118
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-fore_f.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
8,119
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1204a.ada
-- CC1204A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
8,120
ada
2
thorstel/Advent-of-Code-2018
day14/day14.adb
<filename>day14/day14.adb with Ada.Containers.Vectors; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; procedure Day14 is package Natural_Vectors is new Vectors (Index_Type => Natural, Element_Type => Natural); Score_Board : Natural_Vectors.Vector; Part2_Goal : Natural...
8,121
ada
19
jrcarter/Ada_GUI
ada_gui.ads
-- An Ada-oriented GUI library that uses a browser as its platform -- -- Copyright (C) 2021 by PragmAda Software Engineering -- -- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause with Ada.Strings.Unbounded; package Ada_GUI is type Widget_Kind_ID is (Audio_Play...
8,122
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic5.ads
with Unchecked_Conversion; package Atomic5 is type Byte is mod 2 ** 8; for Byte'Size use 8; type Unsigned_32 is mod 2 ** 32; for Unsigned_32'Size use 32; type R is record A,B,C,D : Byte; end record; for R'Alignment use 4; pragma Atomic (R); function Conv is new Unchecked_Conversion (R, Unsign...
8,123
ada
1
LaudateCorpus1/RosettaCodeData
Task/IBAN/Ada/iban-3.ada
with Ada.Text_Io; use Ada.Text_Io; with Iban_Code; procedure Check_Iban is procedure Check(Iban : String) is begin if Iban_Code.Is_Legal(Iban) then Put_Line(Iban & " is valid."); else Put_Line(Iban & " is not valid."); end if; end Check; begin Check("GB82 WEST 1234 5698 ...
8,124
ada
0
Letractively/ada-ado
regtests/ado-schemas-tests.adb
----------------------------------------------------------------------- -- schemas Tests -- Test loading of database schema -- 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 comp...
8,125
ada
3
FROL256/ada-ray-tracer
scene.ads
<gh_stars>1-10 with Interfaces; with Ada.Numerics.Float_Random; with Vector_Math; with Geometry; with Materials; with Lights; with Ada.Unchecked_Deallocation; with Ada.Text_IO; use Interfaces; use Vector_Math; use Ada.Text_IO; package Scene is type Render_Scene is private; procedure Init (a_scn : in out Rend...
8,126
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32f1/stm32gd-usb-peripheral.ads
with Ada.Interrupts.Names; with STM32GD.USB; generic with function EP0_Reset_Callback (BTable_Offset : Integer) return Integer is STM32GD.USB.EP_Unused_Reset; with function EP1_Reset_Callback (BTable_Offset : Integer) return Integer is STM32GD.USB.EP_Unused_Reset; with function EP2_Reset_Callback (BTable_Off...
8,127
ada
1
LaudateCorpus1/RosettaCodeData
Task/Flipping-bits-game/Ada/flipping-bits-game.ada
with Ada.Text_IO, Ada.Command_Line, Ada.Numerics.Discrete_Random; procedure Flip_Bits is subtype Letter is Character range 'a' .. 'z'; Last_Col: constant letter := Ada.Command_Line.Argument(1)(1); Last_Row: constant Positive := Positive'Value(Ada.Command_Line.Argument(2)); package Boolean_Rand is new Ad...
8,128
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37009a.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37009a.ada<gh_stars>1-10 -- C37009A.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 ...
8,129
ada
3
charlie5/aIDE
applet/aide/source/palettes/attic/aide-palette-of_types.ads
<reponame>charlie5/aIDE<filename>applet/aide/source/palettes/attic/aide-palette-of_types.ads<gh_stars>1-10 with adam.a_Type, gtk.Widget; with Gtk.Button; with Gtk.Window; with Gtk.Notebook; with Gtk.Table; package aIDE.Palette.of_types is type Item is new Palette.item with private; type View is acce...
8,130
ada
3
rogermc2/GA_Ada
ga_ref_impl/src/multivector_type.adb
<reponame>rogermc2/GA_Ada<gh_stars>1-10 with Interfaces; with Ada.Text_IO; use Ada.Text_IO; with Bits; -- with GA_Utilities; package body Multivector_Type is -- Init is based on MultivectorType.java Init function Init (MV : Multivectors.Multivector) return MV_Type_Record is use Interfaces; ...
8,131
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/s-pack44.adb
<reponame>best08618/asylo<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
8,132
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada83/sequential_io.ads
<filename>tools/scitools/conf/understand/ada/ada83/sequential_io.ads with IO_EXCEPTIONS; generic type ELEMENT_TYPE is private; package SEQUENTIAL_IO is type FILE_TYPE is limited private; type FILE_MODE is (IN_FILE, OUT_FILE); -- File management procedure CREATE(FILE : in out FILE_TYPE; ...
8,133
ada
4
ddugovic/words
word_parameters.ads
<gh_stars>1-10 with TEXT_IO; package WORD_PARAMETERS is -- This package defines a number of parameters that areused in the program -- The default values are set in the body, so that they may be changed easily CHANGE_PARAMETERS_CHARACTER : CHARACTER := '#'; CHANGE_LANGUAGE_CHARACTER : CHARAC...
8,134
ada
0
jamalakhaligova/ADA
ada homework2/src/aircraft.adb
package body Aircraft is procedure Ascend(AirC: in out Aircraft_Type) is begin AirC.Is_In_The_Air := True; end; procedure Land(AirC: in out Aircraft_Type) is begin AirC.Is_In_The_Air := False; end; function Get_Is_In_The_Air(AirC: in Aircraft_Type) return Boolean is begin r...
8,135
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/exp_ch13.adb
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
8,136
ada
15
My-Colaborations/dynamo
src/gnat/prj-attr.ads
<filename>src/gnat/prj-attr.ads ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
8,137
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr23_pkg.ads
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr23_pkg.ads package Discr23_Pkg is subtype Size_Range is Positive range 1 .. 256; type Text (Size : Size_Range) is record Characters : String( 1.. Size); end record; function Get return Text; end Discr23_Pkg;
8,138
ada
1
selroc/Renaissance-Ada
src/tools/Dependency_Graph_Extractor/src/extraction-node_edge_types.adb
with Ada.Characters.Handling; with GNATCOLL.VFS_Utils; with Langkit_Support.Slocs; with Langkit_Support.Text; package body Extraction.Node_Edge_Types is use type LALCO.Ada_Node_Kind_Type; use type VFS.Filesystem_String; use type VFS.Virtual_File; Decl_Name_Prefix : constant String := "decl:"; Dir_Name...
8,139
ada
1
skill-lang/skillAdaTestSuite
test/unknown/test_unknown-write.adb
<reponame>skill-lang/skillAdaTestSuite<filename>test/unknown/test_unknown-write.adb package body Test_Unknown.Write is File_Name : constant String := "tmp/test-unknown-write.sf"; procedure Initialize (T : in out Test) is begin Set_Name (T, "Test_Unknown.Write"); Ahven.Framework.Add_Test_Routine (T...
8,140
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/s-boapar__tms570lc43.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
8,141
ada
1
ytomino/openssl-ada
examples/test_sha512.adb
with Ada.Streams; with Ada.Text_IO; with Crypto.SHA512; use Crypto.SHA512; procedure Test_SHA512 is procedure Test_01 is use type Ada.Streams.Stream_Element_Array; C : Context := Initial; D : Fingerprint; begin Update (C, "a"); Final (C, D); pragma Assert ( Image (D) = "1f40fc92da241694750979ee6cf5...
8,142
ada
3
jwarwick/aoc_2020
day02/src/day.ads
<reponame>jwarwick/aoc_2020<gh_stars>1-10 -- AOC 2020, Day 2 with Ada.Containers.Vectors; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Day is type Password_Entry is record Min : Natural := 0; Max : Natural := 0; Pattern : Unbounded_String := Null_Unbounded_String; Password : Unbound...
8,143
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/graphic.adb
-- { dg-do compile } with Ada.Tags.Generic_Dispatching_Constructor; package body Graphic is -- function Dispatching_Input is new Tags.Generic_Dispatching_Constructor (T => Object, Parameters => Streams.Root_Stream_Type'Class, Constructor => Object'Input); -- function XML_Input (S : acce...
8,144
ada
20
charlie5/lace
3-mid/opengl/source/opengl-renderer.ads
<reponame>charlie5/lace package openGL.Renderer -- -- Provides a base class for all renderers. -- is type Item is abstract tagged limited private; type View is access all Item'Class; -- Attributes -- procedure Background_is (Self : in out Item; Now : in openGL.lucid_Color); procedure Backgro...
8,145
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-shasto.ads
<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-shasto.ads ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
8,146
ada
0
persan/a-vulkan
src/gen/vulkan-low_level-vulkan_metal_h.ads
pragma Ada_2012; pragma Style_Checks (Off); with System; package Vulkan.Low_Level.vulkan_metal_h is VULKAN_METAL_H_u : constant := 1; -- vulkan_metal.h:2 VK_EXT_metal_surface : constant := 1; -- vulkan_metal.h:32 VK_EXT_METAL_SURFACE_SPEC_VERSION : constant := 1; -- vulkan_metal.h:40 VK_EXT_META...
8,147
ada
4
MOUDDENEHamza/ENSEEIHT
2A/S7/SysConc/TP/TP6/lr.ads
<filename>2A/S7/SysConc/TP/TP6/lr.ads package LR is end LR;
8,148
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/procedure_body_stub.adb
package body procedure_body_stub is procedure Inner is separate; end procedure_body_stub;
8,149
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c94001a.ada
-- C94001A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
8,150
ada
0
JeremyGrosser/usb_embedded
tests/tests/device/no_status_out_zlp/main.adb
-- Some UDC will skip the Status_Out ZLP if a new setup request is received -- quickly. This test checks that the Device Stack can handle it. with USB_Testing; use USB_Testing; with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub; with USB_Testing.UDC_Scenarios; with HAL; use HAL; with USB.HAL.De...
8,151
ada
0
reznikmm/gela
source/nodes/program-nodes-operator_symbols.adb
<reponame>reznikmm/gela -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Operator_Symbols is function Create (Operator_Symbol_Token : not null Program.Lexical_Elements .Lexical...
8,152
ada
0
e3l6/SSMDev
demo/adainclude/a-taside.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
8,153
ada
1
LaudateCorpus1/RosettaCodeData
Task/S-Expressions/Ada/s-expressions-1.ada
with Ada.Strings.Unbounded; private with Ada.Containers.Indefinite_Vectors; generic with procedure Print_Line(Indention: Natural; Line: String); package S_Expr is function "-"(S: String) return Ada.Strings.Unbounded.Unbounded_String renames Ada.Strings.Unbounded.To_Unbounded_String; function "+"(U: Ada...
8,154
ada
1
charlie5/lace-alire
3-mid/opengl/applet/demo/renderer/render_text/launch_render_text.adb
with openGL.Visual, openGL.Palette, openGL.Font, openGL.Model.Text.lit_colored, openGL.Demo; procedure launch_render_Text -- -- Render updated text. -- is use openGL, openGL.Palette, openGL.Math, openGL.linear_Algebra_3d; the_font_Id : constant openGL.Font.font_Id ...
8,155
ada
12
TUM-EI-RCS/StratoX
software/hal/boards/common/tools/generic_queue.adb
<gh_stars>10-100 package body Generic_Queue with SPARK_Mode is -- Buffer Structure: -- | 0:X | 1:– | 2:– | 3:– | -- ^h ^t -- head(h) points to oldest, tail(t) to next free, -- empty: t=h, full: t=h => Flag Self.hasElements required --------------- -- copy_array --------------- ...
8,156
ada
1
sparre/JSA
src/jsa-debugging.adb
<reponame>sparre/JSA<filename>src/jsa-debugging.adb<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- package Debugging (body) -- ------------------------------------------------------------------------------ -- Update information: -- -- 1996.04.05 (<NAME>) -- Writ...
8,157
ada
1
Scottx86-64/dotfiles-1
source/pkgsrc/devel/florist/patches/patch-posix-signals.adb
<gh_stars>1-10 $NetBSD: patch-posix-signals.adb,v 1.5 2014/04/30 16:27:04 marino Exp $ Fix style check violation for GNAT 4.9 --- posix-signals.adb.orig 2012-05-10 13:32:11.000000000 +0000 +++ posix-signals.adb @@ -340,16 +340,18 @@ package body POSIX.Signals is begin for Sig in Signal loop if ...
8,158
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/prj-pars.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
8,159
ada
20
charlie5/lace
4-high/gel/applet/demo/distributed/fused/launch_gel_fused.adb
with gel_demo_Server, gel_demo_Client; procedure launch_GEL_fused -- -- Launches the fused version. -- is begin gel_demo_Server.item.start; gel_demo_Client.item.start; end launch_GEL_fused;
8,160
ada
3
vasil-sd/ada-tlsf
tlsf/src/proof/model/tlsf-proof-model-context.ads
with TLSF.Block.Types; with TLSF.Context; with TLSF.Proof.Model.Block; package TLSF.Proof.Model.Context with SPARK_Mode, Ghost, Abstract_State => (State) is package BT renames TLSF.Block.Types; package TC renames TLSF.Context; package MB renames TLSF.Proof.Model.Block; use type BT.Address; use typ...
8,161
ada
0
orb-zhuchen/Orb
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-regexp.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
8,162
ada
0
sonneveld/adazmq
src/zmq.adb
with Ada.Unchecked_Conversion; with Interfaces.C.Strings; with ZMQ_Constants; package body ZMQ is use type System.Address; use type Interfaces.C.int; use type Interfaces.C.size_t; use type Interfaces.C.unsigned; -- Conversion function Convert is new Ada.Unchecked_Conversion (Source => Inte...
8,163
ada
1
Hathoute/ENSEEIHT
PIM/TD1_Algorithmique/pour_tantque.adb
<reponame>Hathoute/ENSEEIHT<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Pour_TantQue is Debut: Integer; Fin: Integer; begin -- Demander les valeurs de Debut et Fin Get (Debut); Get (Fin); -- Afficher les entiers de Début à Fin ...
8,164
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/source_ref2.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/source_ref2.adb pragma Source_Reference (1, "p2.adb"); procedure Source_Ref2 is pragma Source_Reference (2, "p2.adb"); begin null; end;
8,165
ada
33
ytomino/drake
source/required/s-bitops.adb
<gh_stars>10-100 with System.Storage_Elements; package body System.Bit_Ops is pragma Suppress (All_Checks); use type Storage_Elements.Storage_Element; use type Storage_Elements.Storage_Offset; function Bit_Eq ( Left : Address; Llen : Natural; Right : Address; Rlen : Natural) r...
8,166
ada
2
landgraf/nanomsg-ada
src/nanomsg-sockopt.ads
-- The MIT License (MIT) -- Copyright (c) 2015 <NAME> <<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 limitation the rights -- to u...
8,167
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/universal_fixed.ads
-- { dg-do compile } package Universal_Fixed is Nm2Metres : constant := 1852.0; type Metres is delta 1.0 range 0.0 .. 1_000_000.0; type Nautical_Miles is delta 0.001 range 0.0 .. (Metres'Last + (Nm2Metres / 2)) / Nm2Metres; end Universal_Fixed;
8,168
ada
79
Roldak/OpenGLAda
src/gl/generated/gl-api-singles.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.Singles is pragma Preelaborate; Uniform1 : T33; Uniform1v : T34; Uniform2 : T35; Uniform2v : T36; Uniform3 : T37; Uniform3v : T38;...
8,169
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/oconst4.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/oconst4.adb -- { dg-do compile } -- { dg-final { scan-assembler-not "elabs" } } package body OCONST4 is procedure check (arg : R) is begin if arg.u /= 1 or else arg.d.f1 /= 17 or else arg.d.b.f1 /= one or else arg.d.b.f2 /= 2 or...
8,170
ada
192
rocher/Ada_Drivers_Library
components/src/screen/adafruit-charliewing.adb
<filename>components/src/screen/adafruit-charliewing.adb ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, AdaCore -- -- ...
8,171
ada
7
Fabien-Chouteau/Giza
src/giza-timers.adb
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
8,172
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c86004b0.ada
<reponame>best08618/asylo -- C86004B0.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 conta...
8,173
ada
11
reznikmm/ada_lsp
source/server/ada_lsp-documents-debug.adb
<filename>source/server/ada_lsp-documents-debug.adb with Ada.Streams.Stream_IO; with League.Text_Codecs; with League.Stream_Element_Vectors; with XML.SAX.Pretty_Writers; with XML.SAX.String_Output_Destinations; with Incr.Debug; package body Ada_LSP.Documents.Debug is ---------- -- Dump -- ---------- p...
8,174
ada
5
reznikmm/increment
source/base/incr-nodes-hash.ads
-- Copyright (c) 2015-2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Containers; function Incr.Nodes.Hash (Self : Node_Access) return Ada.Containers.Hash_Type;
8,175
ada
30
Componolit/libsparkcrypto
src/ada/textio/lsc-internal-io.adb
<gh_stars>10-100 ------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2010, <NAME> -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or ...
8,176
ada
0
Fabien-Chouteau/ASFML
include/sf-network-ipaddress.ads
<gh_stars>0 --////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 <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 damages arising from the...
8,177
ada
15
My-Colaborations/dynamo
src/asis/a4g-vcheck.adb
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
8,178
ada
7
TUDSSL/TICS
msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/opt41_pkg.adb
<gh_stars>1-10 with Ada.Streams; use Ada.Streams; package body Opt41_Pkg is type Wstream is new Root_Stream_Type with record S : Unbounded_String; end record; procedure Read (Stream : in out Wstream; Item : out Stream_Element_Array; Last : out Stream_Element_O...
8,179
ada
20
charlie5/lace
4-high/gel/source/gel-conversions.adb
<reponame>charlie5/lace package body gel.Conversions is use Math; function to_GL (Self : in geometry_3d.bounding_Box) return openGL.Bounds is the_Bounds : opengl.Bounds := (Ball => <>, Box => (Lower => to_GL (Self.Lower), ...
8,180
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ike/tkmrpc-operation_handlers-ike-cc_check_ca.adb
<filename>specs/ada/server/ike/tkmrpc-operation_handlers-ike-cc_check_ca.adb with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Cc_Check_Ca.Convert; with Tkmrpc.Response.Ike.Cc_Check_Ca.Convert; package body Tkmrpc.Operation_Handlers.Ike.Cc_Check_Ca is -------------------------------------------...
8,181
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/exp_vfpt.adb
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
8,182
ada
1
Elon143/Amass
resources/scripts/api/bufferover.ads
<filename>resources/scripts/api/bufferover.ads -- Copyright 2017-2022 <NAME>. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. name = "BufferOver" type = "api" function start() set_rate_limit(1) end function vertical(ctx, domain) local c ...
8,183
ada
0
JCGobbi/Nucleo-STM32G474RE
ADL/drivers/stm32g474/stm32-rng.adb
<reponame>JCGobbi/Nucleo-STM32G474RE ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- ...
8,184
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32l0/stm32gd-gpio-pin.ads
with STM32_SVD.GPIO; generic Pin : GPIO_Pin; Port : GPIO_Port; Mode : Pin_IO_Modes := Mode_In; Output_Type : Pin_Output_Types := Push_Pull; Pull_Resistor : in Internal_Pin_Resistors := Floating; Alternate_Function : in GPIO_Alternate_Function := 0; package STM32GD.GPIO.Pin is pragma Preelaborat...
8,185
ada
15
My-Colaborations/dynamo
src/gnat/output.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
8,186
ada
0
JCGobbi/Nucleo-STM32H743ZI
ADL/devices/stm32-rcc.adb
<filename>ADL/devices/stm32-rcc.adb<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- ...
8,187
ada
1
charlie5/lace-alire
1-base/math/source/generic/pure/algebra/any_math-any_algebra-any_linear-any_d2.adb
package body any_Math.any_Algebra.any_linear.any_d2 is ----------- -- Vector_2 -- function Angle_between_pre_Norm (U, V : in Vector_2) return Radians is use Functions, Vectors; Val : Real := U * V; -- Dot product. begin if val < -1.0 then val := -1.0; -- Clamp to avoid rou...
8,188
ada
3
daveshields/AdaEd
bugs/bug10.ada
<gh_stars>1-10 procedure main is aft : integer := 1; s, str : string(1..3); begin s := "abc"; str((aft)..3) := s(1..3); end;
8,189
ada
52
onox/orka
orka/src/orka/implementation/orka-cameras-look_at_cameras.adb
<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...
8,190
ada
6
bosepchuk/Ada_Drivers_Library
arch/ARM/Nordic/svd/nrf51/nrf51_svd-swi.ads
-- Copyright (c) 2013, Nordic Semiconductor ASA -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, this -- lis...
8,191
ada
0
ekoeppen/MSP430_Generic_Ada_Drivers
apps/bootloader/main.adb
with Startup; with Bootloader; procedure Main is pragma Preelaborate; begin Bootloader.Start; end Main;
8,192
ada
0
reznikmm/gela
source/resolver/program-resolvers-basic.adb
<filename>source/resolver/program-resolvers-basic.adb -- SPDX-FileCopyrightText: 2019-2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Iterators; with Program.Elements.Defining_Identifiers; with Program.Interpretations; with P...
8,193
ada
1
GauBen/Arbre-Genealogique
src/scenario_genealogique.adb
with Arbre_Genealogique; use Arbre_Genealogique; with Date; use Date; with Ada.Text_Io; use Ada.Text_Io; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; procedure Scenario_Genealogique is Arbre : T_Arbre_Genealogique; Personne : T_Personne; Personne2 : T_Personne; Cle ...
8,194
ada
0
DrenfongWong/tkm-rpc
specs/ada/client/tkmrpc-clients-ees.ads
with Interfaces.C.Strings; with Tkmrpc.Types; with Tkmrpc.Results; package Tkmrpc.Clients.Ees is procedure Init (Result : out Results.Result_Type; Address : Interfaces.C.Strings.chars_ptr); pragma Export (C, Init, "ees_init"); pragma Export_Valued_Procedure (Init); -- Initialize EES client w...
8,195
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2a32i.ada
-- CD2A32I.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
8,196
ada
20
charlie5/lace
3-mid/impact/source/2d/dynamics/impact-d2-fixture.adb
<gh_stars>10-100 with impact.d2.Contact, impact.d2.Solid, ada.Unchecked_Deallocation; package body impact.d2.Fixture is use type int32; function getKind (Self : in b2Fixture) return shape.Kind is begin return Self.m_shape.getKind; end getKind; function getShape (Self : in b2F...
8,197
ada
11
reznikmm/ada_lsp
source/server/ada_lsp-handlers.adb
-- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; with LSP.Types; with Ada_LSP.Completions; with Ada_LSP.Documents; package body Ada_LSP.Handlers is function "+" (Text : Wid...
8,198
ada
14
JeremyGrosser/usb_embedded
src/usb-device.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2021, AdaCore -- -- -- -- ...
8,199
ada
15
AdaCore/training_material
extern/game_support/stm32f4/src/screen_interface.adb
<reponame>AdaCore/training_material<gh_stars>10-100 with STM32F4.Touch_Panel; with STM32F4; use STM32F4; package body Screen_Interface is procedure Initialize is begin STM32F4.LCD.Initialize; STM32F4.LCD.Set_Background (16#00#, 16#00#, 16#00#); STM32F4.Touch_Panel.Initialize; end; functi...