id
int64
0
30.9k
extension
stringclasses
1 value
max_stars_count
int64
0
17k
max_stars_repo_name
stringlengths
7
106
max_stars_repo_path
stringlengths
5
136
text
stringlengths
9
1M
30,700
ada
33
persan/zeromq-Ada
src/zmq-proxys.adb
------------------------------------------------------------------------------- -- -- -- 0MQ Ada-binding -- -- -- ...
30,701
ada
8
flyx/OpenCLAda
src/implementation/cl_gl/win/cl-contexts-cl_gl.adb
-------------------------------------------------------------------------------- -- Copyright (c) 2013, <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice...
30,702
ada
7
stcarrez/mat
mat/regtests/mat-targets-tests.adb
----------------------------------------------------------------------- -- mat-readers-tests -- Unit tests for MAT readers -- Copyright (C) 2014, 2015, 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 compl...
30,703
ada
2
persan/gprTools
src/gpr_tools-gprslaves-db-json.ads
<reponame>persan/gprTools<gh_stars>1-10 with GNATCOLL.JSON; package GPR_Tools.Gprslaves.DB.JSON is function Create (Item : Info_Struct) return GNATCOLL.JSON.JSON_Value; function Create (Item : Host_Address) return GNATCOLL.JSON.JSON_Value; function Create (Item : GNAT.Spitbol.Table_VString.Table) return GNATC...
30,704
ada
1
TNO/Dependency_Graph_Extractor-Ada
tests/syntax_examples/src/basic_subprogram_calls.ads
<filename>tests/syntax_examples/src/basic_subprogram_calls.ads package Basic_Subprogram_Calls is function F1 return Integer; function F2(I : Integer) return Integer; function F3(I : Integer := 42) return Integer; function F4 return Integer is (42); function F5(I: Integer) return Int...
30,705
ada
6
My-Colaborations/ada-servlet
src/servlet-security-servlets.adb
<gh_stars>1-10 ----------------------------------------------------------------------- -- security-openid-servlets - Servlets for OpenID 2.0 Authentication -- Copyright (C) 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
30,706
ada
0
e3l6/SSMDev
sunangle.ads
------------------------------------------------------------------------------- -- SUNANGLE -- -- Copyright © 2016 <NAME> -- -- This code is available under the "MIT License". -- Please see the file COPYING in this distribution for license terms. -- -- Purpose: -- This package computes the the sun angle (azimuth and ...
30,707
ada
204
spr93/whitakers-words
src/latin_utils/latin_utils-dictionary_package-parse_record_io.adb
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired) -- -- Copyright <NAME> (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is Copyrighted -- (c). Permission i...
30,708
ada
0
fintatarta/protypo
test/parsing-test/protypo-parsing-test.adb
with Protypo.Scanning; with Protypo.Code_Trees; with Protypo.Api.Interpreters; use Protypo.Api.Interpreters; procedure Protypo.Parsing.Test is S : constant Template_Type := Slurp ("test-data/parsing.txt"); Tk : Scanning.Token_List := Scanning.Tokenize (S, ""); Code : Code_Trees.Parsed_Code; -- p...
30,709
ada
2
marcbejerano/ada-tools
Properties/test/properties_test.adb
<filename>Properties/test/properties_test.adb -- @(#)File: properties_test.adb -- @(#)Last changed: Mar 18 2015 10:30:00 -- @(#)Purpose: Java properties file support -- @(#)Author: <NAME> <<EMAIL>> -- @(#)Copyright: Copyright (C) 2015, <NAME>, All Rights Reserved -- @(#)Product: ...
30,710
ada
1
LaudateCorpus1/RosettaCodeData
Task/Ulam-spiral--for-primes-/Ada/ulam-spiral--for-primes--3.ada
<filename>Task/Ulam-spiral--for-primes-/Ada/ulam-spiral--for-primes--3.ada with Generic_Ulam, Ada.Text_IO, Prime_Numbers; procedure Ulam is package P is new Prime_Numbers(Natural, 0, 1, 2); function Vis(N: Natural) return String is (if P.Is_Prime(N) then " <>" else " "); function Num(N: Natural) re...
30,711
ada
6
jonashaggstrom/ada-canopen
src/aco-sdo_sessions.ads
with ACO.Messages; with ACO.OD_Types; with ACO.Configuration; private with ACO.Utils.DS.Generic_Queue; package ACO.SDO_Sessions is type Session_Manager is tagged limited private; type Services is (None, Download, Upload, Block_Download, Block_Upload); subtype Endpoint_Nr ...
30,712
ada
0
alire-project/sdlada
src/sdl-inputs-mice.ads
<reponame>alire-project/sdlada -------------------------------------------------------------------------------------------------------------------- -- 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 an...
30,713
ada
0
ScottWLoyd/bare-metal-ada-tools
rts/src/common/last_chance_handler.ads
<filename>rts/src/common/last_chance_handler.ads with System; procedure Last_Chance_Handler (Source_Location : System.Address; Line : Integer); pragma Export (C, Last_Chance_Handler, "__gnat_last_chance_handler");
30,714
ada
1
leo-brewin/adm-bssn-numerical
support/support.ads
with GNAT.OS_Lib; package Support is type Real is digits 18; procedure halt (return_code : Integer := 0) renames GNAT.OS_Lib.OS_Exit; function max (a : in Real; b : in Real) return Real; function min (a : in Real; b : in Real) return Real; function max (a : in Integer; b : in Integer) return Integer; fun...
30,715
ada
3
UdayanSinha/Code_Blocks
Ada/producerconsumer_rndvzs.adb
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with Ada.Real_Time; use Ada.Real_Time; with Ada.Numerics.Discrete_Random; procedure ProducerConsumer_rndvzs is N : constant Integer := 40; -- Number of produced and comsumed variables -- Random Delays subtype Delay_Interval is Integer range 50..250; pac...
30,716
ada
0
reznikmm/gela
source/nodes/program-nodes-function_calls.ads
<gh_stars>0 -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; with Program.Elements.Parameter_Associations; with Program.Elements.Function_Calls; with Prog...
30,717
ada
33
ytomino/drake
source/strings/a-stgebo.adb
package body Ada.Strings.Generic_Bounded is type String_Access is access all String_Type; function Length (Source : Bounded_String) return Natural is begin return Source.Length; end Length; function To_String (Source : Bounded_String) return String_Type is begin return Source.Element (1...
30,718
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/par_sco.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
30,719
ada
24
svn2github/matreshka
source/sql/oci/matreshka-internals-sql_drivers-oracle-databases.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
30,720
ada
0
xuedong/mini-ada
tests/syntax/bad/testfile-structure-1.adb
<filename>tests/syntax/bad/testfile-structure-1.adb with Ada.Text_IO; use Ada.Text_IO; Put('a');
30,721
ada
0
SKNZ/BezierToSTL
src/util/liste_generique.ads
<gh_stars>0 generic type Element is private; package Liste_Generique is type Liste is limited private; -- une liste est initialement vide -- vide L et libere la memoire correspondante procedure Vider(L : in out Liste); -- insere E en tete de L procedure Insertion_Tete(L : in out Liste ; E : Elem...
30,722
ada
192
rocher/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32f7x9/stm32_svd-cec.ads
<filename>arch/ARM/STM32/svd/stm32f7x9/stm32_svd-cec.ads -- This spec has been automatically generated from STM32F7x9.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.CEC is pragma Preelaborate; --------------- -- Registers...
30,723
ada
0
fintatarta/protypo
test/examples/Project/partners.ads
<reponame>fintatarta/protypo package Partners is type Partner_Type is null record; end Partners;
30,724
ada
0
pat-rogers/OpenUxAS
src/ada/src/uxas-comms-lmcp_object_message_receiver_pipes.ads
-- see OpenUxAS\src\Communications\LmcpObjectMessageReceiverPipe.h with AVTAS.LMCP.Object; with UxAS.Comms.Data.LMCP_Messages; with UxAS.Comms.Data.Addressed.Attributed; with UxAS.Comms.Transport.Receiver.ZeroMQ.Addr_Attr_Msg_Receivers; use AVTAS.LMCP.Object; use UxAS.Comms.Data.LMCP_Messages; use UxAS.Comms.Data.Ad...
30,725
ada
0
jgrivera67/projects-with-amy
array_utils/src/array_utils.adb
-- -- Copyright (c) 2022, <NAME> -- 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 list of conditio...
30,726
ada
15
My-Colaborations/dynamo
src/asis/a4g-decl_sem.adb
<filename>src/asis/a4g-decl_sem.adb<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
30,727
ada
0
skill-lang/adaCommon
tester.adb
with Skill.Streams.Reader; procedure Tester is begin null; end Tester;
30,728
ada
4
MOUDDENEHamza/ENSEEIHT
1A/S5/PIM/tps/tp6/test_piles.adb
<gh_stars>1-10 with Piles; -- Programme de test du module Pile. procedure Test_Piles is package Pile_Caractere is new Piles (T_Element => Character); use Pile_Caractere; -- Initialiser une pile avec 'O' puis 'K' empilés dans la pile vide. procedure Initialiser_Avec_OK (Pile : out T_Pile) is begin Initialis...
30,729
ada
4
jerry-sky/academic-notebook
electives/pw/lab/lista-3/ada/logger.adb
<reponame>jerry-sky/academic-notebook package body Logger is task body LoggerReceiver is exitTask: Boolean := False; begin loop select accept Log(message: String) do PrintBounded(message); end Log; or ...
30,730
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45210a.ada
-- C45210A.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...
30,731
ada
30
jrmarino/AdaBase
testcases/driver_connections/mysql/connect.ads
-- Used for all testcases for MySQL driver with AdaBase.Driver.Base.MySQL; with AdaBase.Statement.Base.MySQL; package Connect is -- All specific drivers renamed to "Database_Driver" subtype Database_Driver is AdaBase.Driver.Base.MySQL.MySQL_Driver; subtype Stmt_Type is AdaBase.Statement.Base.MySQL.MySQL_s...
30,732
ada
8
darkestkhan/lumen
joystick/lumen-joystick.adb
<filename>joystick/lumen-joystick.adb -- Lumen.Joystick -- Support (Linux) joysticks under Lumen -- -- <NAME>, NiEstu, Phoenix AZ, Summer 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or wi...
30,733
ada
2
skordal/cupcake
src/cupcake-colors.ads
-- The Cupcake GUI Toolkit -- (c) <NAME> 2012 <<EMAIL>> -- Report bugs and issues on <http://github.com/skordal/cupcake/issues> -- vim:ts=3:sw=3:et:si:sta package Cupcake.Colors is -- Color component type: subtype Color_Component_Type is Float range 0.0 .. 1.0; -- Color type: type Color is record ...
30,734
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/varsize3_2.adb
-- { dg-do compile } with Varsize3_Pkg1; use Varsize3_Pkg1; procedure Varsize3_2 is Filter : constant Object := True; begin null; end;
30,735
ada
1
LaudateCorpus1/RosettaCodeData
Task/Best-shuffle/Ada/best-shuffle.ada
with Ada.Text_IO; with Ada.Strings.Unbounded; procedure Best_Shuffle is function Best_Shuffle (S : String) return String; function Best_Shuffle (S : String) return String is T : String (S'Range) := S; Tmp : Character; begin for I in S'Range loop for J in S'Range loop i...
30,736
ada
1
LaudateCorpus1/RosettaCodeData
Task/Draw-a-cuboid/Ada/draw-a-cuboid.ada
<gh_stars>1-10 with Ada.Text_IO; procedure Main is type Char_Matrix is array (Positive range <>, Positive range <>) of Character; function Create_Cuboid (Width, Height, Depth : Positive) return Char_Matrix is Result : Char_Matrix (1 .. Height + Depth + 3, 1 .. 2...
30,737
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada12/a-cforma.ads
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
30,738
ada
3
jwarwick/aoc_2020
day12/tests/day-test.adb
with AUnit.Assertions; use AUnit.Assertions; package body Day.Test is procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is pragma Unreferenced (T); f : constant Ferry := load_file("test1.txt"); d : constant Natural := distance(f); begin Assert(d = 25, "Wrong number, expected 25, g...
30,739
ada
2
thindil/tashy2
tests/tk-frame-frame_create_options_test_data-frame_create_options_tests.adb
<reponame>thindil/tashy2<gh_stars>1-10 -- 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...
30,740
ada
0
persan/a-cups
src/gen/cups-cups_dir_h.ads
<reponame>persan/a-cups pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with CUPS.bits_stat_h; with System; with Interfaces.C.Strings; private package CUPS.cups_dir_h is -- * "$Id: dir.h 10996 2013-05-29 11:51:34Z msweet $" -- * -- * Public directory definitions for CUPS. -...
30,741
ada
0
optikos/oasis
source/nodes/program-nodes-discrete_range_vectors.ads
<filename>source/nodes/program-nodes-discrete_range_vectors.ads -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Nodes.Generic_Vectors; with Program.Elements.Discrete_Ranges; package Pro...
30,742
ada
79
Roldak/OpenGLAda
src/text/gl-text-utf8.ads
<filename>src/text/gl-text-utf8.ads<gh_stars>10-100 private package GL.Text.UTF8 is type Code_Point is mod 2**32; subtype UTF8_Code_Point is Code_Point range 0 .. 16#10FFFF#; procedure Read (Buffer : String; Position : in out Positive; Result : out UTF8_Code_Point); end GL.Text.UTF8;
30,743
ada
23
tomekw/simple_blockchain
src/simple_blockchain-blockchain.ads
with Ada.Containers.Vectors; use Ada.Containers; with Simple_Blockchain.Block; use Simple_Blockchain; package Simple_Blockchain.Blockchain is use type Block.Object; package Block_Vectors is new Vectors (Index_Type => Positive, Element_Type => Block.Object); type Blockchain_Difficulty is range 1 .. 64; ...
30,744
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr25.adb
-- { dg-do compile } with Discr25_Pkg; procedure Discr25 (N : Natural) is package Test_Set is new Discr25_Pkg (N); begin null; end;
30,745
ada
0
Letractively/ada-util
src/util-beans-basic-lists.ads
<filename>src/util-beans-basic-lists.ads ----------------------------------------------------------------------- -- Util.Beans.Basic.Lists -- List bean given access to a vector -- Copyright (C) 2011, 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
30,746
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37105a.ada
-- C37105A.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...
30,747
ada
0
xeenta/learning-ada
src/002/suppack.adb
with My_Pack; with Ada.Text_IO; use Ada.Text_IO; package body Suppack is procedure Print is begin Put_Line (Integer'Image (My_Pack.Get)); end Print; end Suppack;
30,748
ada
0
StoneCypher/DeepakChopra_Ada
DeepakChopra.ada
<filename>DeepakChopra.ada with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Numerics; with Ada.Numerics.Discrete_Random; procedure Hello is starts : array(1..4) of Ada.Strings.Unbounded.Unbounded_String; mi...
30,749
ada
1
LaudateCorpus1/RosettaCodeData
Task/Calendar/Ada/calendar-1.ada
<filename>Task/Calendar/Ada/calendar-1.ada<gh_stars>1-10 with Ada.Calendar.Formatting; package Printable_Calendar is subtype String20 is String(1 .. 20); type Month_Rep_Type is array (Ada.Calendar.Month_Number) of String20; type Description is record Weekday_Rep: String20; Month_Rep: Month_Rep_T...
30,750
ada
0
kisom/rover-mk1
src/hardware/hardware-drivetrain.ads
<filename>src/hardware/hardware-drivetrain.ads with AVR; use AVR; with Interfaces; use Interfaces; with Hardware.PWM; use Hardware; package Hardware.DriveTrain is procedure Init; procedure Forward; procedure Backward; procedure Rotate_Left; procedure Rotate_Right; procedure Stop; privat...
30,751
ada
33
ytomino/drake
source/textio/a-ticoio.adb
<gh_stars>10-100 with Ada.Text_IO.Float_IO; with Ada.Text_IO.Formatting; package body Ada.Text_IO.Complex_IO is package Real_IO is new Float_IO (Complex_Types.Real); procedure Get_From_Field ( From : String; Item : out Complex_Types.Complex; Last : out Positive); procedure Get_From_Field ( ...
30,752
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-trasym__dwarf.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
30,753
ada
22
FardaleM/metalang
out/longest_increasing_subsequence.adb
<gh_stars>10-100 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 longest_increasing_subsequence is type stringptr is access all char_array; procedure PString(s : stringptr)...
30,754
ada
1
mullikine/RosettaCodeData
Task/Named-parameters/Ada/named-parameters-2.ada
<gh_stars>1-10 Foo (1, 0.0); Foo (1); Foo (Arg_2 => 0.0, Arg_1 => 1); Foo (Arg_1 => 1);
30,755
ada
12
TUM-EI-RCS/StratoX
software/lib/ulog/ulog-conversions.adb
<gh_stars>10-100 -- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Author: <NAME> (<EMAIL>) with Ada.Unchecked_Conversion; -- @summary convert various types to bytearrays -- FIXME: optimize: don't collect labels and formats unless we ...
30,756
ada
9
SALLYPEMDAS/DW1000
tests/dw1000-system_time-tests.adb
------------------------------------------------------------------------------- -- Copyright (c) 2016 <NAME> -- -- 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, inc...
30,757
ada
24
svn2github/matreshka
tools/ucd_data.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
30,758
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
boards/host/stm32gd-usart-peripheral.adb
package body Console is procedure Transmit (Data : in Byte) is begin null; end Transmit; end Console;
30,759
ada
20
charlie5/lace
3-mid/impact/source/3d/dynamics/impact-d3-object-rigid.adb
with impact.d3.Vector; use impact.d3.Vector; with impact.d3.Transform; with impact.d3.Matrix, impact.d3.min_max; with impact.d3.Transform_Util; package body impact.d3.Object.rigid is use math.Algebra.linear.d3; function to_ConstructionInfo (mass : in Real; m...
30,760
ada
0
jquorning/CELLE
source/errors.adb
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Strings.Fixed; package body Erro...
30,761
ada
1
danva994/ASFML-1.6
tests/window/main.adb
<filename>tests/window/main.adb with Ada.Text_IO; use Ada.Text_IO; with Sf.Config; use Sf.Config; with Sf.Window.Types; use Sf.Window.Types; with Sf.Window.Window; use Sf.Window.Window; with Sf.Window.VideoMode; use Sf.Window.VideoMode; with Sf.Window.Event; use Sf.Window.Event; with Sf.Win...
30,762
ada
0
notdb/LC-Practice
136/ada/greet.adb
<filename>136/ada/greet.adb with Ada.Text_IO; use Ada.Text_IO; procedure Greet is begin -- Print "Hello, World!" to the screen Put_line ("Hello, World!"); Ada.Text_IO.Put_line ("Hello, world (two)!"); end Greet;
30,763
ada
1
dshadrin/AProxy
src/sinks.adb
<gh_stars>1-10 ---------------------------------------- -- Copyright (C) 2019 <NAME> -- -- All rights reserved. -- ---------------------------------------- with Logging_Message; use Logging_Message; with TimeStamp; with Ada.Characters.Handling; with Ada.Unchecked_Deallocation; with Ada.Text_IO; use Ada.T...
30,764
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-tsmona__mingw.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
30,765
ada
0
hergin/ada2fuml
test-resources/ExamplesFromRoy/md_example7.ads
with Globals_Example1; package Md_Example7 is type T is tagged record Attribute : Globals_Example1.Itype; end record; type T2 is new T with record Child_Attribute : Globals_Example1.Itype; end record; type T3 is new T2 with null record; end Md_Example7;
30,766
ada
19
jrcarter/Ada_GUI
ada_gui.adb
-- An Ada-oriented GUI library -- Implementation derived from Gnoga -- -- 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.Containers.Indefinite_Ordered_Sets; with Ada.Containers.Vectors; with Ada.D...
30,767
ada
7
Fabien-Chouteau/Giza
gtkada_backend/example/engine_control_ui.adb
<filename>gtkada_backend/example/engine_control_ui.adb<gh_stars>1-10 with Giza.Colors; use Giza.Colors; with Giza.GUI; use Giza.GUI; with Engine_Control_Events; use Engine_Control_Events; package body Engine_Control_UI is Set_PP_Evt : aliased Set_PP_Event; ------------- -- On_Init -- ----------...
30,768
ada
1
faelys/natools-web
generated/natools-static_maps-web-comments-item_actions.ads
package Natools.Static_Maps.Web.Comments.Item_Actions is pragma Pure; function Hash (S : String) return Natural; end Natools.Static_Maps.Web.Comments.Item_Actions;
30,769
ada
0
kisom/rover-mk1
src/hardware/hardware.adb
with AVR, AVR.MCU, AVR.Interrupts; use AVR, AVR.MCU; package body Hardware is procedure Init_Timer1 is begin -- Enable Timer1 in the power-save register. PRR0_Bits (PRTIM1_Bit) := High; -- Normal WGM with prescaler of 8. TCCR1A_Bits := (others => False); TCCR1B_Bits := (CS11_B...
30,770
ada
0
reznikmm/gela
source/contexts/plain/program-plain_lexical_elements.adb
<gh_stars>0 -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Plain_Lexical_Elements is type Lexical_Element_Access is access Lexical_Element; ------------ -- Append -- ------------ ...
30,771
ada
1
io7m/coreland-openal-ada
openal-context-error.ads
<gh_stars>1-10 package OpenAL.Context.Error is type Error_t is (No_Error, Invalid_Device, Invalid_Context, Invalid_Enumeration, Invalid_Value, Out_Of_Memory, Unknown_Error); -- proc_map : alcGetError function Get_Error (Device : in Device_t) return Error_t; private function...
30,772
ada
3
charlie5/aIDE
applet/aide/source/editors/aide-editor-of_record_type.adb
<filename>applet/aide/source/editors/aide-editor-of_record_type.adb with aIDE.Editor.of_record_component, aIDE.GUI, AdaM.record_Component, glib.Error, gtk.Builder, gtk.Handlers; with Ada.Text_IO; use Ada.Text_IO; package body aIDE.Editor.of_record_type is use Gtk.Builder, G...
30,773
ada
52
onox/orka
orka/src/gl/implementation/gl-objects-pipelines.adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2015 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -...
30,774
ada
0
Fabien-Chouteau/fsmaker
src/fsmaker-sink-hexdump.adb
<reponame>Fabien-Chouteau/fsmaker with System.Storage_Elements; use System.Storage_Elements; with Interfaces.C.Extensions; use Interfaces.C.Extensions; with Interfaces; use Interfaces; package body FSmaker.Sink.Hexdump is ------------ -- Create -- ------------ function Create (Dst : not null...
30,775
ada
0
iyan22/AprendeAda
ejercicios3/prueba_eliminar_tercer_elemento_ordenada.adb
<reponame>iyan22/AprendeAda with Ada.Text_Io; use Ada.Text_Io; with datos; use datos; with eliminar_tercer_elemento_ordenada, escribir_lista; procedure prueba_eliminar_tercer_elemento_ordenada is -- este programa hace llamadas al subprograma eliminar_tercer_elemento -- para comprobar si su funcionamiento es corr...
30,776
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/tkmrpc-contexts-isa.adb
<filename>specs/ada/server/tkmrpc-contexts-isa.adb package body Tkmrpc.Contexts.isa is pragma Warnings (Off, "* already use-visible through previous use type clause"); use type Types.isa_id_type; use type Types.ae_id_type; use type Types.ia_id_type; use type Types.key_type; use type Types.rel_ti...
30,777
ada
1
LaudateCorpus1/RosettaCodeData
Task/Combinations/Ada/combinations-1.ada
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; procedure Test_Combinations is generic type Integers is range <>; package Combinations is type Combination is array (Positive range <>) of Integers; procedure First (X : in out Combination); procedure Next (X : in out Combination); ...
30,778
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35003a.ada
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35003a.ada -- C35003A.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. Governmen...
30,779
ada
8
mhatzl/spark_unbound
src/spark_unbound-arrays.adb
with Spark_Unbound.Safe_Alloc; package body Spark_Unbound.Arrays with SPARK_Mode is package Array_Alloc is new Spark_Unbound.Safe_Alloc.Arrays(Element_Type => Element_Type, Index_Type => Index_Type, Array_Type => Array_Type, Array_Type_Acc => Array_Acc); function Get_Capacity_Offset (Offset : Long_Po...
30,780
ada
0
pat-rogers/OpenUxAS
src/ada/src/uxas-messages-lmcptask-taskautomationrequest-spark_boundary.adb
package body uxas.messages.Lmcptask.TaskAutomationRequest.SPARK_Boundary with SPARK_Mode => Off is ----------------------------------------- -- Get_EntityList_From_OriginalRequest -- ----------------------------------------- function Get_EntityList_From_OriginalRequest (Request : TaskAutomationReques...
30,781
ada
0
mstewartgallus/linted
src/ada-libc/src/libc-errno.adb
<gh_stars>0 -- Copyright 2017 <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...
30,782
ada
0
sebsgit/textproc
src/trainingdata.adb
with Ada.Directories; with Ada.Text_IO; with Ada.Strings.Fixed; with Ada.Strings.Unbounded; with Ada.IO_Exceptions; with Ada.Containers; with Ada.Containers.Vectors; with ShapeDatabase; with ImageIO; with PixelArray; with ImageRegions; use Ada.Containers; use Ada.Strings.Unbounded; with Timer; package body Training...
30,783
ada
80
thindil/steamsky
src/ships-movement.adb
<gh_stars>10-100 -- Copyright 2017-2021 <NAME> -- -- This file is part of Steam Sky. -- -- Steam Sky is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (...
30,784
ada
33
ytomino/drake
source/distributed/required/s-shasto.adb
<filename>source/distributed/required/s-shasto.adb pragma Check_Policy (Trace => Ignore); package body System.Shared_Storage is procedure Shared_Var_Lock (Var : String) is begin pragma Check (Trace, Ada.Debug.Put (Var)); Lock_Hook (Var); end Shared_Var_Lock; procedure Shared_Var_Unlock (Var : ...
30,785
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
host/stm32gd-usart-peripheral.ads
<filename>host/stm32gd-usart-peripheral.ads with STM32_SVD; use STM32_SVD; generic Filename : String; package STM32GD.USART.Peripheral is pragma Preelaborate; procedure Init; procedure Transmit (Data : in Byte); function Receive return Byte; end STM32GD.USART.Peripheral;
30,786
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_rtp_gstbasertpaudiopayload_h.ads
<reponame>persan/A-gst pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtp_gstbasertppayload_h; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h; with...
30,787
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bit_packed_array1.ads
with Interfaces; package Bit_Packed_Array1 is type laser_illuminator_code_group_t is (zero, one); pragma Convention (C, laser_illuminator_code_group_t); subtype lic_array_index_t is Interfaces.Unsigned_8 range 0 .. 3; type lic_array_t is array (lic_array_index_t) of laser_illuminator_code_group_t; ...
30,788
ada
1
TNO/Dependency_Graph_Extractor-Ada
tests/syntax_examples/src/task_subprogram_calls.ads
<reponame>TNO/Dependency_Graph_Extractor-Ada package Task_Subprogram_Calls is task type T1 is entry E1; end T1; task type T2 is entry E1; entry E2; end T2; procedure Test1; procedure Test2; protected type PT1 is procedure P1; procedure P2(I : Integer); fu...
30,789
ada
20
charlie5/lace
4-high/gel/source/gel-rig.ads
<reponame>charlie5/lace with gel.Sprite, gel.Joint, gel.World, openGL, openGL.Model, openGL.Program, ada.Strings.unbounded.Hash, ada.Containers.Vectors, ada.Containers.hashed_Maps; private with collada.Library.visual_Scenes; package gel.Rig -- -- Provides GEL sprite...
30,790
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt64_pkg.adb
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt64_pkg.adb package body Opt64_PKG is procedure Encode (X : Integer) is result : Hash; begin case X is when 1 => result := "1"; when 2 => result := "2"; when 3 => result := "3"; whe...
30,791
ada
1
Jellix/open_weather_map_api
test/open_weather_map-application.ads
<filename>test/open_weather_map-application.ads -------------------------------------------------------------------------------- -- 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, V...
30,792
ada
1
djgoku/RosettaCodeData
Task/Loops-N-plus-one-half/Ada/loops-n-plus-one-half.ada
with Ada.Text_Io; use Ada.Text_Io; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; procedure Loop_And_Half is I : Positive := 1; begin loop Put(Item => I, Width => 1); exit when I = 10; Put(", "); I := I + 1; end loop; New_Line; end Loop_And_Half;
30,793
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/controlled7.adb
<reponame>best08618/asylo<gh_stars>1-10 -- PR ada/53766 -- Reported by <NAME> <<EMAIL>> -- { dg-do compile } -- { dg-options "-gnatp" } with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Controlled7 is procedure Proc (Offset : Storage_Offset) is begin if Offset + Unbounded_String'Max_Si...
30,794
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/examples/stm32f4-discovery/leds-containers/src/driver.adb
<reponame>JCGobbi/Nucleo-STM32G474RE ------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- ...
30,795
ada
0
Lucretia/old_nehe_ada95
thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/compile.adb
pragma Warnings (Off); with SDL_Framebuffer; use SDL_Framebuffer; procedure Compile is begin null; end Compile;
30,796
ada
1
LaudateCorpus1/RosettaCodeData
Task/Hofstadter-Figure-Figure-sequences/Ada/hofstadter-figure-figure-sequences-2.ada
package body Hofstadter_Figure_Figure is type Positive_Array is array (Positive range <>) of Positive; function FFR(P: Positive) return Positive_Array is Figures: Positive_Array(1 .. P+1); Space: Positive := 2; Space_Index: Positive := 2; begin Figures(1) := 1; for I in 2 .. P l...
30,797
ada
2
thindil/tashy2
src/tashy2.ads
-- 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 by applicable law or agre...
30,798
ada
1
skill-lang/skillAdaTestSuite
test/constants/test_constants-write.adb
<gh_stars>1-10 package body Test_Constants.Write is File_Name : constant String := "tmp/test-constants-write.sf"; procedure Initialize (T : in out Test) is begin Set_Name (T, "Test_Constants.Write"); Ahven.Framework.Add_Test_Routine (T, A'Access, "A: i8 = 8"); Ahven.Framework.Add_Test_Routin...
30,799
ada
1
LaudateCorpus1/RosettaCodeData
Task/Chat-server/Ada/chat-server.ada
<reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Chat-server/Ada/chat-server.ada<gh_stars>1-10 with Ada.Containers.Vectors; with Ada.Command_Line; use Ada.Command_Line; with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with So...