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
28,700
ada
19
pmderodat/ada-toml
tests/api/iterate_on_table/main.adb
with Ada.Strings.Unbounded; with Ada.Text_IO; with TOML; with TOML.File_IO; procedure Main is package TIO renames Ada.Text_IO; Value : constant TOML.TOML_Value := TOML.File_IO.Load_File ("example.toml").Value; begin for E of Value.Iterate_On_Table loop TIO.Put_Line (Ada.Strings.Unbounded.To_Stri...
28,701
ada
7
stcarrez/resource-embedder
regtests/expect/ada/concat.adb
<gh_stars>1-10 -- Advanced Resource Embedder 1.2.0 with Interfaces; use Interfaces; package body Concat is function Hash (S : String) return Natural; P : constant array (0 .. 0) of Natural := (0 .. 0 => 1); T1 : constant array (0 .. 0) of Unsigned_8 := (0 .. 0 => 0); T2 : constant array (0 .....
28,702
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline3.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline3.adb -- { dg-do compile } -- { dg-error "not marked Inline_Always" "" { target *-*-* } 0 } -- { dg-error "cannot be inlined" "" { target *-*-* } 0 } with Inline3_Pkg; use Inline3_Pkg; procedure Inline3 is begin Test (0); end;
28,703
ada
0
Statkus/json-ada
test/unit/src/test_images.ads
<reponame>Statkus/json-ada<gh_stars>0 -- Copyright (c) 2018 RREE <<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 -- -- ...
28,704
ada
236
jquorning/septum
src/common/sp-cache.adb
<filename>src/common/sp-cache.adb ------------------------------------------------------------------------------- -- Copyright 2021, The Septum Developers (see AUTHORS file) -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may...
28,705
ada
1
djgoku/RosettaCodeData
Task/Knapsack-problem-Continuous/Ada/knapsack-problem-continuous.ada
<filename>Task/Knapsack-problem-Continuous/Ada/knapsack-problem-continuous.ada with Ada.Text_IO; with Ada.Strings.Unbounded; procedure Knapsack_Continuous is package US renames Ada.Strings.Unbounded; type Item is record Name : US.Unbounded_String; Weight : Float; Value : Positive; Tak...
28,706
ada
1
f110/wing
third_party/universal-ctags/ctags/Units/parser-ada.r/ada-entry.d/input_1.adb
<filename>third_party/universal-ctags/ctags/Units/parser-ada.r/ada-entry.d/input_1.adb -- package body Mes_Tasches_P is package body Input_1 is --------------------------------------------------------------------------- task body Ma_Tasche is Var_Continuer : Boolean := False; begin Boucle_Principal...
28,707
ada
2
persan/gprTools
src/gpr_tools-pkg2gpr.adb
with GNAT.Regpat; with GNAT.Case_Util; with GNAT.String_Split; with GNATCOLL.Templates; with GNAT.OS_Lib; with Ada.Strings.Fixed; with Ada.Directories; use Ada.Directories; with Ada.Strings; with Ada.Strings.Maps; use Ada.Strings.Maps; package body GPR_Tools.Pkg2gpr is use Ada.Text_IO; use GNAT.Regpat; use GNA...
28,708
ada
30
jscparker/math_packages
disorderly/lcg_rand.adb
------------------------------------------------------------------------------- -- package body LCG_Rand, Linear Congruential Generator -- Copyright (C) 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 -...
28,709
ada
0
joffreyhuguet/LmcpGen
ada/src/afrl/cmasi/afrl-cmasi-object.ads
with avtas.lmcp.object; use avtas.lmcp.object; with avtas.lmcp.types; use avtas.lmcp.types; with afrl.cmasi.enumerations; use afrl.cmasi.enumerations; package afrl.cmasi.object is type Object is abstract new avtas.lmcp.object.Object with private; type Object_Acc is access all Object; type Object_Class_Acc...
28,710
ada
0
RREE/Ada_Drivers_Library
components/src/screen/lcd/lcd_hd44780.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2022, AdaCore -- -- -- -- Redis...
28,711
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/s-tpopsp-solaris.adb
<reponame>vidkidz/crossbridge ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
28,712
ada
192
rocher/Ada_Drivers_Library
middleware/src/utils/logging.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
28,713
ada
3
onox/orka-demo
src/demo-terrains.adb
<filename>src/demo-terrains.adb with Ada.Characters.Latin_1; with Ada.Numerics; with Orka.Rendering.Textures; with Orka.Resources.Textures.KTX; with Orka.Features.Terrain.Spheres; with Orka.Transforms.Doubles.Matrices; with Orka.Transforms.Doubles.Matrix_Conversions; with Orka.Transforms.Doubles.Quaternions; with Orka...
28,714
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/solar_system/adv_170_multiple_inheritance/answers/solar_system.ads
with Ada.Containers.Bounded_Vectors; package Solar_System is type Orbit_Ref_I is interface; function Get_X(O : Orbit_Ref_I) return Float is abstract; function Get_Y(O : Orbit_Ref_I) return Float is abstract; type Movable_I is interface; type Moving_Access_I is access all Movable_I; procedure Mo...
28,715
ada
33
ytomino/drake
source/image/required/s-valrea.ads
<filename>source/image/required/s-valrea.ads pragma License (Unrestricted); -- implementation unit required by compiler package System.Val_Real is pragma Pure; -- required for Float'Value by compiler (s-valrea.ads) function Value_Real (Str : String) return Long_Long_Float; end System.Val_Real;
28,716
ada
0
thieryw/game_of_life
main.adb
<gh_stars>0 with ada.text_io,ada.integer_text_io,game_types,game_functions,display,ada.calendar ; use ada.text_io ; procedure main is cells : game_types.array_of_cell ; f : file_type ; begin cells := game_functions.initialize_cells ; loop game_...
28,717
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/i-cache__armv7.adb
<filename>bb-runtimes/src/i-cache__armv7.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
28,718
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/s-scaval.ads
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- ...
28,719
ada
12
TUM-EI-RCS/StratoX
tests/variant-record/src/mylog.ads
<filename>tests/variant-record/src/mylog.ads with Ada.Real_Time; use Ada.Real_Time; package mylog with SPARK_Mode is type msgtype is (NONE, TEXT, GPS); type logmsg (typ : msgtype := NONE) is record t : Time := Time_First; case typ is when NONE => null; when TEXT => txt : String...
28,720
ada
20
charlie5/lace
3-mid/opengl/source/platform/egl/opengl-context.ads
with openGL.Display, openGL.surface_Profile, openGL.Surface, EGL; package openGL.Context -- -- Models an openGL context. -- is -- pragma Pure; type Item is tagged private; type View is access all Item'Class; procedure define (Self : in out Item; the_Display : access...
28,721
ada
0
Lucretia/old_nehe_ada95
thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl-rwops.adb
-- ----------------------------------------------------------------- -- -- AdaSDL -- -- Binding to Simple Direct Media Layer -- -- Copyright (C) 2001 A.M.F.Vargas -- -- <NAME> ...
28,722
ada
3
daveshields/AdaEd
demos/task.ada
<gh_stars>1-10 -- DEMONSTRATION PROGRAM: -- -- Producer Consumer Tasking example -- with text_io; use text_io; procedure tasker is task buffer is entry read (c: out integer); entry write (c: in integer); end; task producer; task consumer; task body buffer is separate; task body producer is separate; ta...
28,723
ada
15
My-Colaborations/dynamo
src/asis/asis-implementation.adb
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
28,724
ada
2
thindil/tashy2
tests/tk-ttklabel-ttk_label_options_test_data-ttk_label_options_tests.adb
<reponame>thindil/tashy2 -- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to s...
28,725
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/enclosing_record_reference.ads
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/enclosing_record_reference.ads package Enclosing_Record_Reference is pragma elaborate_body; type T is record F1: access function(x: integer) return T; F2: access function(x: T) return integer; --?? F3: access function(x: T)...
28,726
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/return2.adb
-- { dg-do compile } -- { dg-options "-O" } with Return2_Pkg; use Return2_Pkg; package body Return2 is function Value_Internal (Image : String) return Result_Internal_T is begin return (Member => False); end; type Result_T is array (1 .. 2) of Result_Internal_T; function Value (Img : String) return T...
28,727
ada
0
thomas070605/shoot-n-loot
src/levels.ads
-- Shoot'n'loot -- Copyright (c) 2020 <NAME> with GESTE; package Levels is type Level_Id is (Lvl_0, Lvl_1, Lvl_2, Lvl_3, Lvl_4, Lvl_5, Lvl_6, Lvl_7, Lvl_8); procedure Enter (Id : Level_Id); -- Setup a level procedure Open_Exit; -- Open the exit tile of the current level ...
28,728
ada
33
ytomino/drake
source/pools/s-stpoun.ads
<filename>source/pools/s-stpoun.ads pragma License (Unrestricted); -- extended unit private with System.Unbounded_Allocators; package System.Storage_Pools.Unbounded is -- Separated storage pool for local scope. -- The compiler (gcc) does not support scope-based automatic deallocation. -- Instead, some cust...
28,729
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/arm/stm32/stm32f0xx/s-stm32.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
28,730
ada
412
tobireinhard/cbmc
regression/symtab2gb/multiple_symtabs/entry_point.adb
with User; with Library; procedure Entry_Point is begin User; Library (-5); end Entry_Point;
28,731
ada
0
acornagl/Control_flow_graph-wcet
tmp/src/extract_list_files.adb
with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Indefinite_Vectors; use Ada.Containers; --with Ada.Containers.Vectors; use Ada.Containers; package body Extract_List_Files is ---------------- -- Print_Lis...
28,732
ada
0
reznikmm/markdown
sources/driver/custom_writers.ads
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with League.Strings; with XML.SAX.Attributes; with XML.SAX.Output_Destinations; with XML.SAX.Writers; package Custom_Writers is type SAX_Output_Destination_Access...
28,733
ada
0
fintatarta/protypo
src/API/protypo-api-consumers-buffers.ads
<gh_stars>0 with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Protypo.Api.Consumers.Buffers is type Buffer (<>) is new Consumer_Interface with private; type Buffer_Access is access Api.Consumers.Buffers.Buffer; function New_Buffer return Buffer_Access; procedure Destroy (Item : i...
28,734
ada
1
mullikine/RosettaCodeData
Task/Probabilistic-choice/Ada/probabilistic-choice.ada
with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random; with Ada.Text_IO; use Ada.Text_IO; procedure Random_Distribution is Trials : constant := 1_000_000; type Outcome is (Aleph, Beth, Gimel, Daleth, He, Waw, Zayin, Heth); Pr : constant array (Outcome) of Uniformly_Distributed := ...
28,735
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c9a003a.ada
-- C9A003A.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...
28,736
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-sphere_sphere.adb
<filename>3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-sphere_sphere.adb<gh_stars>10-100 with impact.d3.Shape.convex.internal.sphere; with impact.d3.Vector; with impact.d3.Scalar; package body impact.d3.collision.Algorithm.activating.sphere_sphere is --- Forge -- func...
28,737
ada
3
charlie5/aIDE
source/declarations/adam-declaration-of_object.ads
<reponame>charlie5/aIDE<filename>source/declarations/adam-declaration-of_object.ads<gh_stars>1-10 with AdaM.a_Type, Ada.Containers.Vectors, Ada.Streams; package AdaM.Declaration.of_object is type Item is new Declaration.item with private; -- View -- type View is access all Item'Class; ...
28,738
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-nepali.ads
<reponame>stcarrez/ada-stemmer<gh_stars>1-10 -- Generated by Snowball 2.2.0 - https://snowballstem.org/ package Stemmer.Nepali with SPARK_Mode is type Context_Type is new Stemmer.Context_Type with private; procedure Stem (Z : in out Context_Type; Result : out Boolean); private type Context_Type is new Stemme...
28,739
ada
5
docandrew/troodon
include/gid/gid-headers.ads
<reponame>docandrew/troodon<gh_stars>1-10 --------------------------------- -- GID - Generic Image Decoder -- --------------------------------- -- -- Private child of GID, with helpers for identifying -- image formats and reading header informations. -- private package GID.Headers is -- -- Crude image signature...
28,740
ada
0
Letractively/ada-asf
src/asf-filters-dump.ads
<filename>src/asf-filters-dump.ads ----------------------------------------------------------------------- -- asf.filters.dump -- Filter to dump the request information -- Copyright (C) 2010 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
28,741
ada
0
sciencylab/lagrangian-solver
drivers/linear_solver_test.adb
<gh_stars>0 with Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse; use Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse; with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers; use Ada.Containers; procedure Linear_Solver_Test is use Real_IO, Int_IO, Real_Functions; Mat...
28,742
ada
20
charlie5/lace
3-mid/opengl/source/lean/geometry/opengl-primitive.adb
with openGL.Tasks, GL.Binding, ada.unchecked_Deallocation; package body openGL.Primitive is --------- -- Forge -- procedure define (Self : in out Item; Kind : in facet_Kind) is begin Self.facet_Kind := Kind; end define; procedure free (Self : in out View) is ...
28,743
ada
0
Roldak/OpenGLAda
src/generator/specs.adb
<reponame>Roldak/OpenGLAda<gh_stars>0 -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with Ada.Containers.Hashed_Maps; with Ada.Directories; with Ada.Exceptions; with Ada.Characters.Handling; with Ada.Strings.Fixed; with Ada.Text_IO; with Tokenization; p...
28,744
ada
0
Letractively/ada-awa
awa/plugins/awa-storages/src/awa-storages-services.ads
<filename>awa/plugins/awa-storages/src/awa-storages-services.ads ----------------------------------------------------------------------- -- awa-storages-services -- Storage service -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
28,745
ada
12
mgrojo/protobuf
source/conformance/generated/protobuf_test_messages-proto_2-test_messages_proto_2.adb
<filename>source/conformance/generated/protobuf_test_messages-proto_2-test_messages_proto_2.adb with Ada.Unchecked_Deallocation; with PB_Support.IO; with PB_Support.Internal; package body Protobuf_Test_Messages.Proto_2.Test_Messages_Proto_2 is type Integer_Foreign_Enum_Proto_2 is range 0 .. 2 with Size => ...
28,746
ada
0
fintatarta/eugen
src/Projects/eu_projects-times-time_expressions-parsing.adb
pragma Ada_2012; with Ada.Strings.Fixed; with Ada.Strings.Maps; package body EU_Projects.Times.Time_Expressions.Parsing is ------------------------ -- Fill_With_Defaults -- ------------------------ procedure Fill_With_Defaults (Container : in out Symbol_Table) is begin Define_Function (Contai...
28,747
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32l5x2/stm32_svd-usb.ads
<reponame>morbos/Ada_Drivers_Library<filename>arch/ARM/STM32/svd/stm32l5x2/stm32_svd-usb.ads -- This spec has been automatically generated from STM32L5x2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.USB is pragma Preelaborate;...
28,748
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/sem_ch13.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
28,749
ada
4
reznikmm/adaside
sources/ada_pretty-expressions.adb
-- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Ada_Pretty.Expressions is -------------- -- Document -- -------------- overriding function Document (Self : Apply; ...
28,750
ada
0
fintatarta/protypo
src/Internals/protypo-code_trees.ads
<reponame>fintatarta/protypo<gh_stars>0 with Ada.Unchecked_Deallocation; with Ada.Containers.Vectors; with Ada.Containers.Indefinite_Vectors; with Protypo.Tokens; private package Protypo.Code_Trees is use Ada.Strings.Unbounded; package ID_Lists is new Ada.Containers.Indefinite_Vectors (Index_Type =>...
28,751
ada
22
FardaleM/metalang
out/aaa_readints.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 aaa_readints is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Stre...
28,752
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/explicit_deref.adb
<reponame>ouankou/rose -- Demonstrates: -- Explicit Dereference with ada.text_io; procedure explicit_deref is type A_Int is access Integer; Var : A_Int := new Integer; begin Var.all := 12; if Var.all = 12 then ada.Text_Io.Put_Line("Explicit Dereference OK"); end if; end Explicit_Deref;
28,753
ada
3
vasil-sd/ada-tlsf
tlsf/src/proof/model/tlsf-proof-model-context.adb
<filename>tlsf/src/proof/model/tlsf-proof-model-context.adb with System.Storage_Elements; with Ada.Containers.Formal_Hashed_Maps; package body TLSF.Proof.Model.Context With SPARK_Mode, Refined_State => (State => Block_Models) is package SSE renames System.Storage_Elements; package AC renames Ada.Containers; ...
28,754
ada
3
stcarrez/ada-css
tools/css-commands-analyze.adb
----------------------------------------------------------------------- -- css-commands-analyze -- List command for CSS tools -- Copyright (C) 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 wit...
28,755
ada
6
gerr135/ada_gems
mixins/src/base_iface.adb
<filename>mixins/src/base_iface.adb with Ada.Text_IO; use Ada.Text_IO; package body base_iface is procedure class_wide(Self : The_Interface'Class) is begin Put_Line(" iface'Class:class-wide, calling Self.simple"); Self.simple; end; end base_iface;
28,756
ada
4
faelys/gela-asis
source/asis/spec/ada-directories.ads
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
28,757
ada
0
adrianhoe/adactfft
ctfft.adb
-------------------------------------------------------------------------------- -- * Body name ctfft.adb -- * Project name ctffttest -- * -- * Version 1.0 -- * Last update 11/5/08 -- * -- * Created by <NAME> on 11/5/08. -- * Copyright (c) 2008 AdaStar Informatics http://adastarinformatics.com -- * All ...
28,758
ada
15
My-Colaborations/dynamo
src/gnat/butil.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
28,759
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48006a.ada
<reponame>best08618/asylo -- C48006A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contai...
28,760
ada
3
rogermc2/GA_Ada
ga_lib/src/multivector_analyze.adb
with Ada.Text_IO; use Ada.Text_IO; with GL.Types; -- with Multivector_Analyze_E2GA; with Multivector_Analyze_C3GA; with Utilities; package body Multivector_Analyze is -- -------------------------------------------------------------------------- -- procedure Analyze (theAnalysis : in out MV_Analysis...
28,761
ada
0
charlesincharge/Intro_to_Ada
hello_world.adb
-- Import necessary packages with Ada.Text_IO; -- Our main function is "Hello_World" procedure Hello_World is -- Declare local variables here begin -- Execute statements here. -- Include the full package, like Python Ada.Text_IO.Put_Line("Hello, world!"); end Hello_World; -- Semicolon ends statements, ...
28,762
ada
24
reznikmm/matreshka
source/xml/dom/matreshka-dom_elements.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
28,763
ada
0
cocolab8/cocktail
rex/test/modula/modula.ada
<gh_stars>0 GLOBAL { -- # define yySetPosition Attribute.Position.Line := yyLineCount; \ -- Attribute.Position.Column := yyChBufferIndex - yyLineStart - TokenLength; -- Int_Io.Put (Text_Io.Standard_Output, yyOffset (TokenIndex)); -- Text_Io.New_Line (Text_Io.Standard_Output); package Int_Io is new Text_Io.Integer...
28,764
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/mlib-tgt-specific-solaris.adb
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/mlib-tgt-specific-solaris.adb<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS ...
28,765
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/a-ciorse.adb
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- ...
28,766
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.0.1/wisitoken-parse-lr.adb
-- Abstract : -- -- See spec. -- -- Copyright (C) 2013-2015, 2017, 2018, 2019 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under the terms of the GNU General Public License -- as publishe...
28,767
ada
0
impedimentToProgress/UCI-BlueChip
snapgear_linux/user/ncurses/ncurses-5.6/Ada95/samples/sample-helpers.adb
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
28,768
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/alignment1.adb
-- { dg-do run } -- { dg-options "-gnatws" } procedure alignment1 is type My_Integer is record Element : Integer; end record; F : My_Integer; begin if F'Alignment /= F.Element'Alignment then raise Program_Error; end if; end;
28,769
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca1013a6.ada
-- CA1013A6M.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. -- Unlim...
28,770
ada
20
charlie5/lace
1-base/lace/source/events/concrete/lace-subject_and_instant_observer.ads
with lace.make_Subject, lace.make_Observer, lace.Any, lace.Subject, lace.Observer; private with ada.Strings.unbounded; package lace.Subject_and_instant_Observer -- -- Provides a concrete type for a combined event Subject and an instant Observer. -- is type Item is limited new lace.An...
28,771
ada
2
glencornell/ada-socketcan
examples/can_utils/print_can_frame.ads
<reponame>glencornell/ada-socketcan<gh_stars>1-10 -- MIT License -- -- Copyright (c) 2021 <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...
28,772
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/zfp-stm32g474/gnat/s-maccod.ads
<filename>bb-runtimes/runtimes/zfp-stm32g474/gnat/s-maccod.ads ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
28,773
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_tag_tag_h.ads
<gh_stars>1-10 pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib; with glib.Values; with System; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttaglist_h; -- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h; limited with ...
28,774
ada
0
fintatarta/protypo
src/lib/Readable_Sequences/readable_sequences-generic_sequences.ads
with Ada.Finalization; -- -- The model for a "readable sequence" is a sequential data buffer where -- new data can be only appended and data can be read sequentially, -- although the "cursor" to the current entry can be moved (mainly -- by saving the current position and restoring it) -- generic type Element_T...
28,775
ada
1
lholzi/emulator_8080
src/emulator_main.adb
with Ada.Directories; with Ada.Sequential_IO; with Ada.Text_IO; with GNAT.Current_Exception; with Emulator_8080.Processor; with Emulator_8080.Disassembler; with Emulator_8080.Vram_Sender; procedure Emulator_Main is package Rom_IO is new Ada.Sequential_IO(Element_Type => Emulator_8080.Byte_Type); Rom_Directory_...
28,776
ada
15
My-Colaborations/dynamo
src/gnat/tree_io.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
28,777
ada
60
RREE/ada-util
src/base/log/util-log-appenders.adb
<filename>src/base/log/util-log-appenders.adb ----------------------------------------------------------------------- -- util-log-appenders -- Log appenders -- Copyright (C) 2001 - 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
28,778
ada
79
Roldak/OpenGLAda
src/gl/implementation/gl-buffers.adb
<filename>src/gl/implementation/gl-buffers.adb -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with Ada.Unchecked_Conversion; with GL.API; with GL.Enums.Getter; with GL.Low_Level.Enums; package body GL.Buffers is use type Culling.Face_Selector; p...
28,779
ada
0
reznikmm/gela
source/nodes/program-nodes-procedure_body_stubs.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Identifiers; with Program.Elements.Parameter_Specifications; with Program.Elements.Aspect_Specifications; wit...
28,780
ada
1
stcarrez/helios
src/linux/helios-monitor-disks.ads
<reponame>stcarrez/helios ----------------------------------------------------------------------- -- helios-monitor-disks -- Linux disks monitor -- Copyright (C) 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in c...
28,781
ada
1
alvaromb/Compilemon
src/decls-dtdesc.ads
<filename>src/decls-dtdesc.ads -- DECLS-DTDESC.ads -- Declaracions de descripcio with Decls.Dgenerals, Decls.D_Taula_De_Noms; use Decls.Dgenerals, Decls.D_Taula_De_Noms; package Decls.Dtdesc is --pragma pure; -- Representa tambit Max_Nprof : constant Integer := 25; type Nprof...
28,782
ada
17
jrmarino/ravensource
bucket_13/libadalang-tools/patches/patch-src_test-main.adb
--- src/test-main.adb.orig 2021-05-19 05:08:26 UTC +++ src/test-main.adb @@ -30,6 +30,8 @@ with Test.Common; procedure Test.Main is + pragma Linker_Options ("-lgnarl"); + pragma Linker_Options ("-lpthread"); -- Main procedure for gnattest procedure Callback (Phase : Parse_Phase; Swit : Dynamically_T...
28,783
ada
0
optikos/oasis
source/nodes/program-nodes-derived_record_extensions.adb
<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Derived_Record_Extensions is function Create (Abstract_Token : Program.Lexical_Elements.Lexical_Eleme...
28,784
ada
0
djgoku/RosettaCodeData
Task/Sockets/Ada/sockets.ada
<gh_stars>0 with GNAT.Sockets; use GNAT.Sockets; procedure SocketSend is procedure sendData (IP : String; Msg : String) is Client : Socket_Type; Address : Sock_Addr_Type; Channel : Stream_Access; begin Create_Socket (Client); Address.Addr := Inet_Addr(ip); Address.Port := 25...
28,785
ada
192
rocher/Ada_Drivers_Library
arch/ARM/STM32/drivers/crc_stm32f4/stm32-crc-dma.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
28,786
ada
0
xuedong/mini-ada
tests/typing/bad/testfile-unique-4.adb
<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; procedure Test is type T is record A: Integer; end record; procedure t is begin new_line; end; begin New_Line; end;
28,787
ada
0
SSOCsoft/Log_Reporter
src/config.adb
<reponame>SSOCsoft/Log_Reporter Package Body Config is -- Return the slice (1..Item.LENGTH). Function "+"( Item : Pascal_String ) return String is Begin Return Result : Constant String := (Item.Text(1..Natural(Item.Length))); End "+"; -- Return Item concatenated with the padding to make th...
28,788
ada
1
mullikine/RosettaCodeData
Task/CSV-data-manipulation/Ada/csv-data-manipulation-3.ada
<filename>Task/CSV-data-manipulation/Ada/csv-data-manipulation-3.ada with CSV, Ada.Text_IO; use Ada.Text_IO; procedure CSV_Data_Manipulation is Header: String := Get_Line; begin Put_Line(Header & ", SUM"); while not End_Of_File loop declare R: CSV.Row := CSV.Line(Get_Line); Sum: Intege...
28,789
ada
0
optikos/oasis
source/nodes/program-nodes-subtype_declarations.ads
<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Identifiers; with Program.Elements.Subtype_Indications; with Program.Elements...
28,790
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto20.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto20.adb -- { dg-do run } -- { dg-options "-flto" { target lto } } -- { dg-excess-errors "does not match original declaration" } with Lto20_Pkg; procedure Lto20 is begin Lto20_Pkg.Proc (Lto20_Pkg.Null_Arr); end;
28,791
ada
4
jfuica/bingada
src/q_bingo-q_bombo.ads
<reponame>jfuica/bingada --***************************************************************************** --* --* PROJECT: BINGADA --* --* FILE: q_bingo-q_bombo.ads --* --* AUTHOR: <NAME> --* --***************************************************************************** package Q_B...
28,792
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37211a.ada
-- C37211A.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...
28,793
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug13.adb
-- { dg-options "-cargs -O2 -g -margs" } package body Debug13 is procedure Compile (P : Natural) is Max_Pos : constant Natural := P; type Position_Set is array (1 .. Max_Pos) of Boolean; Empty : constant Position_Set := (others => False); type Position_Set_Array is array (1 .. Max_Po...
28,794
ada
0
csb6/libtcod-ada
src/generated/console_init_h.ads
<filename>src/generated/console_init_h.ads<gh_stars>0 pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with Interfaces.C.Extensions; with console_types_h; with error_h; limited with context_h; limited with console_h; package console_init_h is -- BSD 3-Clau...
28,795
ada
0
Arles96/PCompiladores
Pruebas/prueba4.adb
procedure Hello is x: Integer := 1; begin get(x); end Hello;
28,796
ada
0
balintsoos/LearnAda
gyak/gyak1-2/lnko.adb
<gh_stars>0 with Ada.Integer_Text_IO; procedure Lnko is A, B : Positive; begin Ada.Integer_Text_IO.Get( A ); -- Constraint_Error! Ada.Integer_Text_IO.Get( B ); while A /= B loop if A > B then A := A - B; else B := B - A; end if; end loop; Ada.Integer_Text_IO.Put( ...
28,797
ada
2
thindil/tashy2
src/tcl-lists.adb
<reponame>thindil/tashy2 -- Copyright (c) 2021 <NAME> <<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 -- -- Unless required ...
28,798
ada
5
erik/ada-irc
src/irc-message.ads
-- This package contains the records of messages received from the -- server in a convenient format. with Ada.Strings.Unbounded; package Irc.Message is package SU renames Ada.Strings.Unbounded; use type SU.Unbounded_String; -- Available automatically from Irc.Message.Message when received -- message...
28,799
ada
25
stcarrez/ada-keystore
tools/akt-main.adb
----------------------------------------------------------------------- -- akt-main -- Ada Keystore Tool main procedure -- Copyright (C) 2019, 2021 <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 ...