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
29,400
ada
0
fuzzysloth/ada-awa
awa/plugins/awa-counters/src/model/awa-counters-models.adb
----------------------------------------------------------------------- -- AWA.Counters.Models -- AWA.Counters.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-...
29,401
ada
15
AdaCore/training_material
extern/game_support/src/backends/pure_sdl_gnat_sdl2/display-basic-utils.ads
with SDL_video_h; use SDL_video_h; with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; use Interfaces.C.Extensions; with SDL_stdinc_h; use SDL_stdinc_h; with SDL_surface_h; use SDL_surface_h; package Display.Basic.Utils is -- type RGBA_Color is record -- R, G, B, A : Unsigned_8; -- en...
29,402
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada95/s-imgbiu.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
29,403
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-osinte__aix.adb
<reponame>djamal2727/Main-Bearing-Analytical-Model ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
29,404
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-catalan.adb
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Catalan is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*variable*is never read and never assigned*"); pragma Warnings (Off, "*mode could be*instead of*"); pragma Warnings (Off, "*formal parameter.*is not modified*"); ...
29,405
ada
0
reznikmm/gela
source/nodes/program-nodes-exception_declarations.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.Aspect_Specifications; with Program.Elements.Exception_Declarations; with ...
29,406
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b32a.ada
-- C87B32A.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...
29,407
ada
4
cliffano/openapi-ipify
generated/ada-server/src/server/-skeletons.adb
<gh_stars>1-10 -- 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 Swag...
29,408
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/binde.ads
<reponame>vidkidz/crossbridge<filename>llvm-gcc-4.2-2.9/gcc/ada/binde.ads<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS ...
29,409
ada
0
reznikmm/gela
source/nodes/program-nodes-number_declarations.adb
<gh_stars>0 -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Number_Declarations is function Create (Names : not null Program.Elements.Defining_Identifiers .Defining...
29,410
ada
0
hannesb0/rtpl18
src/lab-code/car-blinker/common/src/control.adb
with Text_IO; package body Control is procedure Put_Line (S: String) is begin Text_IO.Put_Line(S); end Put_Line; function Get_Line return String is S: String(1..5) := (others => ASCII.NUL); Char : Character; begin for I in 1 .. 3 loop Text_IO.Get(Char); Text_IO....
29,411
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/solar_system/230_interfacing_with_c/answers/ada_libm.ads
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...
29,412
ada
0
TNO/Rejuvenation-Ada
src/rejuvenation-simple_factory.ads
with Ada.Containers.Vectors; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; package Rejuvenation.Simple_Factory is package Analysis_Units is new Ada.Containers.Vectors (Positive, Analysis_Unit); package Unbounded_Strings is new Ada.Containers.Vectors ...
29,413
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cbhama.ads
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
29,414
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/a-szunau.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
29,415
ada
14
JeremyGrosser/usb_embedded
src/usb.ads
<reponame>JeremyGrosser/usb_embedded<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2021, AdaCore -- -- ...
29,416
ada
24
svn2github/matreshka
examples/sax_events_printer/events_printers.adb
<filename>examples/sax_events_printer/events_printers.adb ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
29,417
ada
24
svn2github/matreshka
source/amf/mofext/amf-transformations-cmof_to_uml_mof.ads
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
29,418
ada
12
TUM-EI-RCS/StratoX
runtime/ravenscar-sfp-stm32f427/common/s-secsta.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
29,419
ada
0
Black-Photon/Programming-Language-of-the-Month
April/main.adb
with Ada.Text_IO; with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random; with get_rod_absorption; with rod_control; use rod_control; with types; with signal; use signal; procedure Main is use types; Choice : Float; -- Random Number Choice (0 to 1) G : Generator; -- Random Number Generator Te...
29,420
ada
0
Fabien-Chouteau/COBS
tests/src/testsuite-decode-basic_tests.adb
with System.Storage_Elements; use System.Storage_Elements; with AUnit.Assertions; use AUnit.Assertions; with AAA.Strings; with Test_Utils; use Test_Utils; package body Testsuite.Decode.Basic_Tests is pragma Style_Checks ("gnatyM120-s"); ---------------- -- Basic_Test -- ---------------- procedure B...
29,421
ada
1
mullikine/RosettaCodeData
Task/Walk-a-directory-Recursively/Ada/walk-a-directory-recursively.ada
<filename>Task/Walk-a-directory-Recursively/Ada/walk-a-directory-recursively.ada with Ada.Directories; use Ada.Directories; with Ada.Text_IO; procedure Test_Directory_Walk is procedure Walk (Name : String; Pattern : String) is procedure Print (Item : Directory_Entry_Type) is begin Ada.Text_IO....
29,422
ada
2
stcarrez/hestia
src/hestia-display.ads
<filename>src/hestia-display.ads ----------------------------------------------------------------------- -- hestia-display -- Display manager -- Copyright (C) 2016, 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except i...
29,423
ada
1
bracke/websitegenerator
src/commands-topics-contribute.ads
with AAA.Strings; with CLIC.Subcommand; with CLIC.TTY; package Commands.Topics.Contribute is package TT renames CLIC.TTY; type Topic is new CLIC.Subcommand.Help_Topic with null record; overriding function Name (This : Topic) return CLIC.Subcommand.Identifier is ("contribute"); overriding funct...
29,424
ada
9
Kidev/AdaPhysics2D
worlds.adb
<reponame>Kidev/AdaPhysics2D with Ada.Unchecked_Deallocation; with Physics; use Physics; with Materials; with Circles; package body Worlds is -- init world procedure Init(This : in out World; dt : in Float; MaxEnts : Natural := 32) is VecZero : constant Vec2D := (0.0, 0.0); begin This.MaxEntit...
29,425
ada
0
Brawdunoir/administrative-family-tree-manager
arbre_genealogique.ads
<filename>arbre_genealogique.ads with Registre; use Registre; with Arbre_Binaire; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Arbre_Genealogique is type T_Arbre_Gen is private; Emplacement_Reserve_Exception_Gen : Exception; Cle_Absente_Exception_Gen : Exception; Cle_Presente_Exception_Gen : E...
29,426
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-mmosin__unix.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
29,427
ada
32
persan/AdaYaml
src/implementation/yaml-parser.adb
<gh_stars>10-100 -- part of AdaYaml, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Containers; with Text.Builder; with Yaml.Tags; package body Yaml.Parser is use type Lexer.Token_Kind; use type Text.Reference; function New_Parser return Reference is ...
29,428
ada
81
fuzzysloth/ada-awa
awa/plugins/awa-tags/regtests/awa-tags-modules-tests.ads
<gh_stars>10-100 ----------------------------------------------------------------------- -- awa-tags-modules-tests -- Unit tests for tags service -- Copyright (C) 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in ...
29,429
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada12/a-csquin.ads
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
29,430
ada
2
morbos/Ada_Drivers_Library
arch/ARM/NXP/svd/lpc55s6x/nxp_svd.ads
<gh_stars>1-10 -- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- LPC55S69JBD100,LPC55S69JBD64,LPC55S69JEV9...
29,431
ada
114
weiss/original-bsd
old/adb/adb.tahoe/instrs.adb
<reponame>weiss/original-bsd /*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. * * %sccs.include.proprietary.c% * * @(#)instrs.adb 5.1 (Berkeley) 04/04/91 */ OP("adda",0x8e,2,ACCR+TYPL,ACCM+TYPL,0,0,0,0), OP("addb2",0x08,2,ACCR+TYPB,ACCM+TYPB,0,0,0,0), OP("addb3",0x18,...
29,432
ada
3
Fabien-Chouteau/ada-lvlg
src/lv-anim.ads
<filename>src/lv-anim.ads with System; with Interfaces.C.Extensions; package Lv.Anim is type Path_T is access function (Arg1 : System.Address) return Int32_T; pragma Convention (C, Path_T); type Fp_T is access procedure (Arg1 : System.Address; Arg2 : Int32_T); pragma Convention (C, Fp_T); type Cb_T i...
29,433
ada
0
Tim-Tom/project-euler
Ada/src/Problem_73.adb
<gh_stars>0 with Ada.Text_IO; package body Problem_73 is package IO renames Ada.Text_IO; procedure Solve is max : constant := 12_000; -- Start with the first two numbers in the sequence (it's easy to know that because the first -- one after 0 is 1 / max). Then generate successive elements in the...
29,434
ada
1
rn7s2/src
ada/prime/main.adb
<filename>ada/prime/main.adb with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Aux; use Ada.Numerics.Aux; with Prime_Ada; use Prime_Ada; procedure Main is begin declare n : Integer; begin for i in 1 .. 6 loop n := Integer (Pow (Double (10), Double (i))); Put ("n = "); Pu...
29,435
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/s-chepoo.ads
<reponame>vidkidz/crossbridge ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
29,436
ada
1
LaudateCorpus1/RosettaCodeData
Task/Hello-world-Newline-omission/Ada/hello-world-newline-omission-1.ada
with Ada.Text_IO; procedure Goodbye_World is begin Ada.Text_IO.Put("Goodbye, World!"); end Goodbye_World;
29,437
ada
0
hannesb0/rtpl18
src/lab-code/calendar/src/cal.adb
with Ada.Text_IO; use Ada.Text_IO; procedure cal is type daynum is range 1 .. 31; type monthnum is range 1 .. 12; type monthname is (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec); type weekday is (Mon, Tue, Wed, Thu, Fri, Sat, Sun); --variables today_weekday : weekday; today_monthnu...
29,438
ada
7
Fabien-Chouteau/Giza
src/giza-widget-composite.adb
<filename>src/giza-widget-composite.adb<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- Giza -- -- ...
29,439
ada
65
vdh-anssi/ewok-kernel
src/ewok-perm.ads
-- -- 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. -- You may obtain a copy of the License at -...
29,440
ada
0
jhumphry/aLua
lua-userdata.adb
<gh_stars>0 -- Lua.Userdata -- Adding Ada objects of a specified tagged type to the Lua environment -- Copyright (c) 2015-2021, <NAME> - see LICENSE for terms with Ada.Tags; with System.Address_To_Access_Conversions; with Interfaces, Interfaces.C, Interfaces.C.Strings; use Interfaces; with Lua.Internal, Lua.AuxInt...
29,441
ada
1
kylelk/ada-examples
geometry_test.adb
<reponame>kylelk/ada-examples with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada; with Geometry; procedure geometry_test is procedure put_float(number : Float) is begin Float_Text_IO.put(Item => number, Aft => 3, Exp => 0); end put_float; cup : Geometry.Cylinder; cu...
29,442
ada
0
reznikmm/gela
source/resolver/program-interpretations-expressions.ads
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Iterator_Interfaces; package Program.Interpretations.Expressions is pragma Preelaborate; type Cursor is private; function Type_View (Self : Cursor) re...
29,443
ada
19
jrcarter/Ada_GUI
ada_gui-gnoga-gui-window.adb
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N ...
29,444
ada
0
Lucretia/old_nehe_ada95
thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testerror.adb
<filename>thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testerror.adb -- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the ...
29,445
ada
1
LaudateCorpus1/RosettaCodeData
Task/Grayscale-image/Ada/grayscale-image-3.ada
function Color (Picture : Grayscale_Image) return Image is Result : Image (Picture'Range (1), Picture'Range (2)); begin for I in Picture'Range (1) loop for J in Picture'Range (2) loop Result (I, J) := (others => Picture (I, J)); end loop; end loop; return Result; end Color;
29,446
ada
5
docandrew/troodon
include/time_h.ads
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_clock_t_h; with bits_types_time_t_h; limited with bits_types_struct_tm_h; with Interfaces.C.Strings; with stddef_h; with bits_types_locale_t_h; limited with bits_types_struct_timespec_h; with bits_types_clockid_t_h; with s...
29,447
ada
18
jquorning/ada-wiki
src/wiki-plugins.ads
----------------------------------------------------------------------- -- wiki-plugins -- Wiki plugins -- Copyright (C) 2016, 2018, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -...
29,448
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/driversL5/stm32-sau.ads
<gh_stars>1-10 with System; with STM32_SVD.SAU; use STM32_SVD.SAU; package STM32.SAU is type SAU_Regions is range 0 .. 7; procedure Add_Region (Region_Num : SAU_Regions; Addr : UInt32; Size : UInt32; NSC : Boolean); ...
29,449
ada
79
Roldak/OpenGLAda
src/gl/interface/gl-blending.ads
-- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with GL.Buffers; with GL.Types.Colors; private with GL.Low_Level; package GL.Blending is pragma Preelaborate; type Blend_Factor is (Zero, One, Src_Color, One_Minus_Src_Color, Src_Alpha, ...
29,450
ada
0
alire-project/sdlada
src/sdl-log.adb
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the ...
29,451
ada
2
stcarrez/ada-libsecret
src/secret-values.adb
<reponame>stcarrez/ada-libsecret<gh_stars>1-10 ----------------------------------------------------------------------- -- secret-values -- Ada wrapper for Secret Service -- Copyright (C) 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
29,452
ada
1
LaudateCorpus1/RosettaCodeData
Task/Polynomial-regression/Ada/polynomial-regression-1.ada
<reponame>LaudateCorpus1/RosettaCodeData with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays; function Fit (X, Y : Real_Vector; N : Positive) return Real_Vector is A : Real_Matrix (0..N, X'Range); -- The plane begin for I in A'Range (2) loop for J in A'Range (1) loop A (J, I) := X (I)**J...
29,453
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt10_pkg.ads
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt10_pkg.ads package Opt10_Pkg is type Rep_Message is record Bit : Boolean; Data : String (1 .. 4); end record; for Rep_Message use record Bit at 0 range 0 .. 0; Data at 0 range 1 .. 32; end record; procedure Safe_Assign (M...
29,454
ada
3
stcarrez/ada-stemmer
src/stemmer-factory.adb
<filename>src/stemmer-factory.adb<gh_stars>1-10 ----------------------------------------------------------------------- -- stemmer-factory -- Multi-language stemmer with Snowball generator -- Copyright (C) 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"...
29,455
ada
79
Roldak/OpenGLAda
src/gl/implementation/gl-blending.adb
-- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Enums.Getter; package body GL.Blending is procedure Set_Blend_Func (Src_Factor, Dst_Factor : Blend_Factor) is begin API.Blend_Func (Src_Factor, Dst_Factor); Raise_Exce...
29,456
ada
0
jquorning/CELLE
source/symbols-io.ads
with Sessions; with Symbol_Sets; package Symbols.IO is procedure Put_Named (Session : in Sessions.Session_Type; Set : in Symbol_Sets.Set_Type); -- Debug procedure JQ_Dump_Symbols (Session : in Sessions.Session_Type; Mode : in Integer); end Sym...
29,457
ada
3
daveshields/AdaEd
bugs/bug05.ada
<filename>bugs/bug05.ada generic MAX_TEXT_LENGTH: POSITIVE; package GEN_TEXT_HANDLER is subtype TEXT_LENGTH is NATURAL range 0..MAX_TEXT_LENGTH; type TEXT(LENGTH: TEXT_LENGTH := 0) is private; private type TEXT(LENGTH: TEXT_LENGTH := 0) is record IMAGE: STRING(1..LENGTH); end...
29,458
ada
30
Componolit/libsparkcrypto
src/shared/generic/lsc-internal-sha256.ads
------------------------------------------------------------------------------- -- 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 without -- modif...
29,459
ada
0
yannickmoy/spat
src/spat-proof_attempt.adb
------------------------------------------------------------------------------ -- 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 Hocevar. See the...
29,460
ada
5
hulpke/smallgrp
id6/id1152.ada
<filename>id6/id1152.ada ############################################################################# ## #W id1152.ada GAP library of id's <NAME> ## ID_GROUP_TREE.next[1152].next[1].next[105]:= rec( fp:= [ 105, 605, 1105, 1605, 2105 ], next:= [ rec( fp:= [ 20934, 65539, 72409, 97866 ]...
29,461
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/derived_type1.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/derived_type1.adb<gh_stars>1-10 -- { dg-do compile } -- { dg-options "-gnatws -fdump-tree-original" } procedure Derived_Type1 is type Root is tagged null record; type Derived1 is new Root with record I1 : Integer; end record; type Derived2 is new Der...
29,462
ada
5
docandrew/troodon
include/stdlib_h.ads
<filename>include/stdlib_h.ads pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with System; with bits_floatn_common_h; with Interfaces.C.Extensions; with stddef_h; with bits_types_locale_t_h; with bits_stdint_intn_h; package stdlib_h is -- arg-macro: pr...
29,463
ada
0
marcello-s/AeonFlux
src/ada/AeonFlux/Parser/Punctuation.adb
<gh_stars>0 -- Copyright (c) 2015-2019 <NAME> -- for details see License.txt with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Hashed_Maps; use Ada.Containers; with Tokens; use Tokens; package body Punctuation is procedure Initialize (O : in out Object) is begin -- Punctuators ...
29,464
ada
0
xuedong/mini-ada
tests/exec/pascal.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Pascal is type Node; type List is access Node; type Node is record Value: Integer; Next: List; end record; function Get(L: List; I: Integer) return Integer is begin if I = 0 then return L.Value; end if; return Get(L.next, I - 1); ...
29,465
ada
1
charlie5/lace-alire
1-base/math/applet/test/suite/launch_math_testsuite.adb
<gh_stars>1-10 with ahven.Text_Runner, ahven.Framework, math_Tests.linear_Algebra_2d, math_Tests.linear_Algebra_3d, math_Tests.Geometry_2d; procedure launch_math_Testsuite is S : constant ahven.Framework.test_Suite_access := ahven.Framework.create_Suite ("All Math Tests"); begin S.add_Test ...
29,466
ada
0
Letractively/ada-asf
src/asf-applications.adb
<gh_stars>0 ----------------------------------------------------------------------- -- applications -- Ada Web Application -- Copyright (C) 2009, 2010, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance ...
29,467
ada
1
charlie5/lace-alire
3-mid/opengl/source/lean/buffer/opengl-buffer.adb
<gh_stars>1-10 with openGL.Errors, openGL.Tasks, ada.unchecked_Deallocation; package body openGL.Buffer is use type a_Name; --------------- -- Buffer Name -- function new_vbo_Name return a_Name is Name : aliased a_Name; begin Tasks.check; glGenBuffers (1, Name'...
29,468
ada
0
fuzzysloth/ada-awa
awa/plugins/awa-images/src/awa-images-beans.ads
----------------------------------------------------------------------- -- awa-images-beans -- Image Ada Beans -- Copyright (C) 2016 <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...
29,469
ada
0
SSOCsoft/Log_Reporter
src/ini-section_to_vector.ads
With NSO.Types; -- Section_to_Vector takes a section by name, and returns -- the children by value, converted to string if necessary. Function INI.Section_to_Vector( Object : in Instance; Section: in String:= "" ) return NSO.Types.String_Vector.Vect...
29,470
ada
0
mstewartgallus/linted
src/ada-core/src/linted-windows.ads
-- Copyright 2015,2016 <NAME> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
29,471
ada
60
Letractively/ada-util
testutil/util-tests.ads
----------------------------------------------------------------------- -- AUnit utils - Helper for writing unit tests -- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in com...
29,472
ada
0
faelys/natools
src/natools-smaz_tools.adb
------------------------------------------------------------------------------ -- Copyright (c) 2016, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
29,473
ada
0
Markel/ada-en-vscode
hello.adb
<filename>hello.adb with Text_IO; use Text_IO; procedure Hello is a: Natural := 0; begin Put_Line("Helloó, World!"); end Hello;
29,474
ada
24
svn2github/matreshka
tools/ayacc/src/string_scanner.adb
<filename>tools/ayacc/src/string_scanner.adb -- Module : string_scanner.ada -- Component of : common_library -- Version : 1.2 -- Date : 11/21/86 16:36:26 -- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstring_scanner.ada with String_Pkg; use String_Pkg; with Unchecked_Deallocati...
29,475
ada
2
timboudreau/netbeans-contrib
ada.editor/src/main/resources/org/netbeans/modules/ada/editor/resources/AdaExample.adb
<gh_stars>1-10 -- -- Comment for <code>Main</code> procedure. -- @author <NAME> -- with Ada.Text_Io; -- With package Text_Io use Ada.Text_Io; -- Use components procedure Main is Count : Integer; -- Declaration of count begin Count := 10; ...
29,476
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-detector-discrete-box_box.adb
<gh_stars>10-100 with interfaces.C.Pointers; with impact.d3.Scalar; package body impact.d3.collision.Detector.discrete.box_box -- -- Given two boxes (p1,R1,side1) and (p2,R2,side2), collide them together and -- generate contact points. this returns 0 if there is no contact otherwise -- it returns the number of...
29,477
ada
1
LaudateCorpus1/RosettaCodeData
Task/Infinity/Ada/infinity-3.ada
subtype Safe_Float is Float range Float'Range;
29,478
ada
8
pvrego/adaino
project/src/image.ads
with Interfaces; use Interfaces; with AVR; with AVR.USART; -- ============================================================================= -- Package AVR.IMAGE -- -- String types and methods used by AVR. -- ============================================================================= package IMAGE is procedure U8...
29,479
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt36.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt36.adb<gh_stars>1-10 -- { dg-do run } -- { dg-options "-O2" } with Opt35_Pkg; use Opt35_Pkg; procedure Opt36 is I : Integer := -1; N : Natural := 0; begin loop begin I := I + 1; I := I + F(0); exception when E => N := N + 1;...
29,480
ada
0
My-Colaborations/ada-ado
src/postgresql/ado-connections-postgresql.ads
----------------------------------------------------------------------- -- ado-connections-postgresql -- Postgresql Database connections -- Copyright (C) 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in com...
29,481
ada
1
mbirabhadra/RosettaCodeData
Task/Variables/Ada/variables.ada
Name: declare -- a local declaration block has an optional name A : constant Integer := 42; -- Create a constant X : String := "Hello"; -- Create and initialize a local variable Y : Integer; -- Create an uninitialized variable Z : Integer renames Y: -- Rename Y (creates a view) function F (X...
29,482
ada
30
jscparker/math_packages
linear_algebra/golub_svd_tst_1.adb
<gh_stars>10-100 with Ada.Numerics.Generic_Elementary_Functions; with Golub_SVD; with Test_Matrices; with Ada.Text_IO; use Ada.Text_IO; -- Square matrix test. Demonstrates use of SVD when: Final_Col = Final_Row. -- -- It depends on the hardware and compiler, but in some tests procedure -- SVD_Decompose runs abo...
29,483
ada
1
LaudateCorpus1/RosettaCodeData
Task/Ordered-Partitions/Ada/ordered-partitions-3.ada
<gh_stars>1-10 with Ada.Text_IO; with Partitions; procedure Main is package Natural_IO is new Ada.Text_IO.Integer_IO (Natural); Example_Partitions : Partitions.Partition_Sets.Set; begin Ada.Text_IO.Put_Line ("Partitions for (2, 0, 2):"); -- create partition Example_Partitions := Partitions.Create_Partiti...
29,484
ada
33
ytomino/drake
source/a-iteint.ads
<filename>source/a-iteint.ads pragma License (Unrestricted); -- Ada 2012 generic type Cursor; with function Has_Element (Position : Cursor) return Boolean; pragma Unreferenced (Has_Element); package Ada.Iterator_Interfaces is pragma Pure; type Forward_Iterator is limited interface; pragma No_Tagged_...
29,485
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/s-bbbosu__tms570.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
29,486
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/rfm69/main.adb
<reponame>ekoeppen/STM32_Generic_Ada_Drivers with Interfaces; use Interfaces; with STM32GD; with STM32_SVD; use STM32_SVD; with STM32GD.Board; with STM32GD.Power; procedure Main is package Board renames STM32GD.Board; package Text_IO renames STM32GD.Board.Text_IO; package Radio renames STM32GD.Board.Radio; ...
29,487
ada
0
fintatarta/eugen
src/Sym_Expr/test/test-basic_test.adb
<reponame>fintatarta/eugen ---------------------------------------------------------------------------- -- Symbolic Expressions (symexpr) -- -- Copyright (C) 2012, <NAME> -- -- This file is part of symexpr. -- -- symexpr is free software: you can redistribute it and/or modify -- ...
29,488
ada
0
mgrojo/swagger-ada
src/openapi-credentials-oauth.adb
<filename>src/openapi-credentials-oauth.adb ----------------------------------------------------------------------- -- openapi-credentials-oauth -- OAuth2 client credentials -- Copyright (C) 2018, 2022 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
29,489
ada
5
docandrew/troodon
include/ftsystem.ads
<gh_stars>1-10 pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; package ftsystem is --*************************************************************************** -- * -- * ftsystem.h -- * -- * FreeType low-level system interface definition (specification). -...
29,490
ada
33
ytomino/drake
examples/normalize.adb
<reponame>ytomino/drake<filename>examples/normalize.adb with Ada.Characters.Latin_1; with Ada.Strings.Composites; with Ada.Strings.Fixed; with Ada.Strings.Maps.Constants; with Ada.Strings.Normalization; procedure normalize is use type Ada.Strings.Composites.Class; subtype C is Character; subtype WWC is Wide_Wide_Cha...
29,491
ada
0
jhumphry/Ada_BinToAsc
src/tests/bintoasc_suite-utils.ads
-- BinToAsc_Suite.Base16_Tests -- Unit test utilities for BinToAsc -- Copyright (c) 2015, <NAME> - see LICENSE file for details with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; with BinToAsc; with RFC4648; package BinToAsc_Suite.Utils is generic with package BToA is new BinToAsc(<>); ...
29,492
ada
15
AdaCore/training_material
courses/spark_for_ada_programmers/labs/source/030_spark_language_and_tools/aliasing.ads
package Aliasing with SPARK_Mode => On is type Rec is record F, G : Integer; end Record; procedure Multiply (X, Y : in Rec; Z : out Rec); procedure Test; end Aliasing;
29,493
ada
0
faelys/natools
src/natools-s_expressions-generic_caches.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- Copyright (c) 2013-2014, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any --...
29,494
ada
2
jorge-real/TTS-Runtime-Ravenscar
examples/tts_example_c.ads
package TTS_Example_C is procedure Main; end TTS_Example_C;
29,495
ada
0
Tim-Tom/project-euler
Ada/inc/Problem_08.ads
<gh_stars>0 package Problem_08 is procedure Solve; end Problem_08;
29,496
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/make.adb
<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/make.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
29,497
ada
0
fintatarta/eugen
src/Projects/eu_projects.ads
<filename>src/Projects/eu_projects.ads with Ada.Strings.Bounded; with Ada.Strings.Fixed; with Ada.Containers.Vectors; with Ada.Characters.Handling; use Ada.Characters.Handling; with Regexp_Readers.Generic_Readers; -- -- This package hierarchy provides resources to operate with the description -- of research p...
29,498
ada
2
morbos/Ada_Drivers_Library
arch/ARM/RP/svd/rp2040/rp_svd-io_qspi.ads
<reponame>morbos/Ada_Drivers_Library -- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package RP...
29,499
ada
0
optikos/oasis
source/nodes/program-nodes-protected_body_declarations.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Identifiers; with Program.Elements.Aspect_Specifications; with Program.Element_Vectors; w...