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
4,900
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/narrowphase/impact-d3-manifold_point.adb
package body impact.d3.manifold_Point is function to_manifold_Point return Item is Self : Item; begin Self.m_userPersistentData := null; Self.m_appliedImpulse := 0.0; Self.m_lateralFrictionInitialized := False; Self.m_appliedImpulseLateral1 := 0.0; ...
4,901
ada
15
My-Colaborations/dynamo
src/asis/a4g-contt-tt.adb
<filename>src/asis/a4g-contt-tt.adb<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
4,902
ada
28
onox/json-ada
json/src/json-streams.ads
<reponame>onox/json-ada<filename>json/src/json-streams.ads<gh_stars>10-100 -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a cop...
4,903
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/g-comlin.adb
<reponame>vidkidz/crossbridge<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
4,904
ada
22
Melyodas/metalang
out/aaa_read1.adb
<reponame>Melyodas/metalang<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 aaa_read1 is type stringptr is access all char_array; procedure PChar(c : in Cha...
4,905
ada
3
onox/orka-demo
src/demo.ads
<filename>src/demo.ads with Orka.Jobs.System; package Demo is package Job_System is new Orka.Jobs.System (Maximum_Queued_Jobs => 16, Maximum_Job_Graphs => 4); end Demo;
4,906
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array4.adb
<gh_stars>1-10 -- { dg-do run } procedure Array4 is type A is array (1..5) of Integer; f : constant A := (1, 2, 3, 4, 5); i1 : integer renames f(1); i2 : integer renames f(2); i3 : integer renames f(3); i4 : integer renames f(4); i5 : integer renames f(5); procedure Link_Failure; pragma I...
4,907
ada
0
orb-zhuchen/Orb
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/memtrack.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
4,908
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c96005a.ada
<reponame>best08618/asylo<gh_stars>1-10 -- C96005A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and docume...
4,909
ada
2
BBK-DCSIS-Programming-Paradigms-2018-19/code
ada/triple.adb
<filename>ada/triple.adb with Ada.Text_IO; use Ada.Text_IO; procedure Triple is begin for C in 1 .. 40 loop for B in 1 .. C loop for A in 1 .. B loop if A ** 2 + B ** 2 = C ** 2 then Put_Line (Integer'Image(A) & ", " & Integer'Image(B) & ", " & Integer'Image(C)); end if; end...
4,910
ada
1
LaudateCorpus1/RosettaCodeData
Task/Generic-swap/Ada/generic-swap-2.ada
<filename>Task/Generic-swap/Ada/generic-swap-2.ada with Generic_Swap; ... type T is ... procedure T_Swap is new Generic_Swap (Swap_Type => T); A, B : T; ... T_Swap (A, B);
4,911
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32l5x2/stm32_svd-dac.ads
-- This spec has been automatically generated from xyzzy pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DAC is pragma Preelaborate; --------------- -- Registers -- --------------- -- DAC_CR_TSEL array type DAC_CR_T...
4,912
ada
32
robdaemon/AdaYaml
server/src/yaml-servers.adb
<reponame>robdaemon/AdaYaml<filename>server/src/yaml-servers.adb with Ada.Exceptions; with Ada.Strings.Fixed; with Ada.Text_IO; with Yaml.Inspect; package body Yaml.Servers is type Yaml_Params (Input_Length : Natural) is record Input : String (1 .. Input_Length); end record; function Params (Path : Str...
4,913
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/s-tassta.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
4,914
ada
1
OneWingedShark/Risi
src/epl-types.ads
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); -- Edward Parse Library. -- -- ©2015 <NAME>; All Rights Reserved. Package EPL.Types with Pure is Type Bracket is ( Parentheses, Brackets, Braces, Chevrons, ...
4,915
ada
0
JeremyGrosser/arm_cmsis_dsp
src/fast_math_functions_h.ads
<reponame>JeremyGrosser/arm_cmsis_dsp<gh_stars>0 pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with arm_math_types_h; with sys_ustdint_h; package fast_math_functions_h is FAST_MATH_TABLE_SIZE : constant := 512; -- ../CMSIS_5/CMSIS/DSP/Include/dsp/fast_ma...
4,916
ada
19
jrcarter/Ada_GUI
ada_gui-gnoga-gui-element-canvas-context_2d.ads
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O G A . G U I . E L...
4,917
ada
0
Letractively/ada-ado
src/mysql/ado-statements-mysql.ads
<reponame>Letractively/ada-ado ----------------------------------------------------------------------- -- ADO Mysql Database -- MySQL Database connections -- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
4,918
ada
0
Roldak/OpenGLAda
src/glfw/v2/glfw-events.adb
<filename>src/glfw/v2/glfw-events.adb -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; package body Glfw.Events is procedure Poll_Events is begin API.Poll_Events; end Poll_Events; procedure Wait_For_Events is begin ...
4,919
ada
0
strenkml/EE368
memsim-master/src/cacti.ads
with Memory; use Memory; with Util; use Util; package CACTI is CACTI_Error : exception; function Get_Area(mem : Memory_Type'Class) return Cost_Type; function Get_Time(mem : Memory_Type'Class) return Time_Type; end CACTI;
4,920
ada
12
TUM-EI-RCS/StratoX
prototyping/pixracer/src/driver/fs/fat_filesystem.adb
<filename>prototyping/pixracer/src/driver/fs/fat_filesystem.adb -- XXX! Nothing here is thread-safe! with Ada.Unchecked_Conversion; package body FAT_Filesystem is Volumes : array (1 .. MAX_VOLUMES) of aliased FAT_Filesystem; -- Mounted volumes procedure Initialize_FS (FS : in out FAT_Filesystem; ...
4,921
ada
33
ytomino/drake
source/containers/a-cndlli.ads
pragma License (Unrestricted); -- implementation unit with System; package Ada.Containers.Naked_Doubly_Linked_Lists is pragma Preelaborate; Node_Size : constant := Standard'Address_Size * 2; type Node is limited private; type Node_Access is access Node; function Next (Position : not null Node_Access)...
4,922
ada
2
Heziode/lsystem-editor
src/view/lse-view-view.ads
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 <NAME> (Heziode) <<EMAIL>> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and...
4,923
ada
1
ytomino/vampire
source/vampire-configurations.ads
-- The Village of Vampire by YT, このソースコードはNYSLです with Vampire.Forms; with Vampire.Villages; package Vampire.Configurations is Temporary_Directory : constant String := "_data/tmp"; -- locking Lock_Name : aliased constant String := "_data/tmp/lock-vampire"; -- for debug Debug_Log_File_Name : aliased constant S...
4,924
ada
11
charlie5/aShell
test/piped_processes/test_piped_processes.adb
<reponame>charlie5/aShell with Shell, Ada.Text_IO; procedure Test_Piped_Processes is use Shell, Ada.Text_IO; begin Put_Line ("Begin 'Piped_Processes' test."); New_Line (2); declare function CWE (Pipe : in Shell.Pipe) return Boolean renames Close_Write_End; Sort_1_Pipe...
4,925
ada
0
bracke/Meaning
source/RASCAL-Error.adb
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
4,926
ada
15
mgrojo/adalib
ada-strings-hash_case_insensitive.ads
-- Standard Ada library specification -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe...
4,927
ada
0
Lucretia/old_nehe_ada95
thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testlock_sprogs.ads
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
4,928
ada
3
stcarrez/ada-stemmer
src/stemmer.adb
<gh_stars>1-10 ----------------------------------------------------------------------- -- stemmer -- Multi-language stemmer with Snowball generator -- Copyright (C) 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except i...
4,929
ada
0
hannesb0/rtpl18
src/test01/src/calculate.ads
<reponame>hannesb0/rtpl18<filename>src/test01/src/calculate.ads<gh_stars>0 -- Task 2 of RTPL WS17/18 -- Team members: <NAME>. and <NAME>. package calculate with SPARK_Mode is -- Procedure for option 4 procedure opt4; -- Procedure for option 9 procedure opt9; private -- Float values for user inp...
4,930
ada
20
charlie5/lace
3-mid/impact/source/3d/impact-d3-containers.ads
<gh_stars>10-100 with ada.Containers.Vectors, interfaces.C.Pointers; package impact.d3.Containers -- -- Provides various common containers. -- is -- Integer -- package integer_Vectors is new ada.Containers.Vectors (Positive, Integer); subtype integer_Vector is integer_Vectors.Vect...
4,931
ada
4
faelys/gela-asis
source/asis/asis-gela-visibility-utils.adb
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
4,932
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bit_packed_array4.ads
package Bit_Packed_Array4 is type Data_Type is array (1 .. 39) of Boolean; pragma Pack (Data_Type); for Data_Type'Alignment use 1; type Message_Type is record Valid : Boolean; Data : Data_Type; end record; for Message_Type use record Valid at 0 range 0 .. 0; Data at 0 range...
4,933
ada
2
thindil/tashy2
tests/tk-ttkentry-ttk_entry_options_test_data.adb
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. package body Tk.TtkEntry.Ttk_Entry_Options_...
4,934
ada
0
reznikmm/gela
source/oasis/program-elements-modular_types.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Type_Definitions; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Modular_Types is pragma Pure (Progr...
4,935
ada
2
persan/gprTools
src/gpr_tools-gprslaves-string_vectors.ads
with Ada.Containers.Indefinite_Vectors; package GPR_Tools.Gprslaves.String_Vectors is new Ada.Containers.Indefinite_Vectors (Natural, String);
4,936
ada
13
annexi-strayline/AURA
registrar-executive-unit_entry-execute.adb
<reponame>annexi-strayline/AURA<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE ...
4,937
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_fft_gstfft_h.ads
<filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_fft_gstfft_h.ads pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfft_h is -- GStreamer -- * Copy...
4,938
ada
1
LaudateCorpus1/RosettaCodeData
Task/Polymorphic-copy/Ada/polymorphic-copy.ada
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; procedure Test_Polymorphic_Copy is package Base is type T is tagged null record; type T_ptr is access all T'Class; function Name (X : T) return String; end Base; use Base; package body Base is function Name (X : T) return String is...
4,939
ada
5
DependableSystemsLab/Trident
llvm-2.9/test/FrontendAda/fat_fields.adb
-- RUN: %llvmgcc -S %s -I%p/Support -- RUN: %llvmgcc -S %s -I%p/Support -O2 package body Fat_Fields is procedure Proc is begin if P = null then null; end if; end; end;
4,940
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ees/tkmrpc-operation_handlers-ees.ads
package Tkmrpc.Operation_Handlers.Ees is end Tkmrpc.Operation_Handlers.Ees;
4,941
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35508c.ada
-- C35508C.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...
4,942
ada
24
svn2github/matreshka
source/league/league-json-objects.ads
<filename>source/league/league-json-objects.ads ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
4,943
ada
3
charlie5/aIDE
attic/asis/find_entities/adam-assist-query-find_entities-context_processing.ads
<filename>attic/asis/find_entities/adam-assist-query-find_entities-context_processing.ads with Asis; package AdaM.Assist.Query.find_Entities.context_Processing is procedure Process_Context (The_Context : in Asis.Context; Trace : in Boolean := False); function Get_Unit_From_File_Name ...
4,944
ada
1
hgrodriguez/sh1107
src/sh1107-spi.adb
--=========================================================================== -- -- This package is the implementation of the SPI connection implementation -- THIS IS NOT IMPLEMENTED YET, IT IS WIP!!! -- --=========================================================================== -- -- Copyright 2022 (C) <NAME> -- ...
4,945
ada
33
ytomino/drake
source/image/required/s-valwch.adb
<reponame>ytomino/drake with System.Formatting; with System.Img_WChar; with System.Long_Long_Integer_Types; with System.Val_Char; with System.Val_Enum; with System.Value_Errors; with System.UTF_Conversions; package body System.Val_WChar is use type Long_Long_Integer_Types.Word_Unsigned; use type UTF_Conversions.F...
4,946
ada
20
charlie5/lace
3-mid/opengl/source/lean/renderer/opengl-renderer-lean-forge.ads
<filename>3-mid/opengl/source/lean/renderer/opengl-renderer-lean-forge.ads package openGL.Renderer.lean.forge -- -- Provides constructors for the lean renderer. -- is function to_Renderer return Renderer.lean.item; function new_Renderer return Renderer.lean.view; end openGL.Renderer.lean.forge;
4,947
ada
2
landgraf/nanomsg-ada
src/nanomsg-socket.ads
-- The MIT License (MIT) -- Copyright (c) 2015 <NAME> <<EMAIL>> -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to u...
4,948
ada
4
assessorgeneral/ConQAT
org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/sample2.ada
<gh_stars>1-10 package body PKG is function fkt1 is new Foo.Bar (Some_Thing => Some_Thing_Else); task body Foo_Task is separate; task body Bar_Task is separate; end PKG;
4,949
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada05/s-valwch.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
4,950
ada
89
treggit/sdlada
test/surface.adb
with Ada.Unchecked_Conversion; with SDL; with SDL.Events.Events; with SDL.Events.Keyboards; with SDL.Log; with SDL.Video.Pixel_Formats; with SDL.Video.Rectangles; with SDL.Video.Surfaces; with SDL.Video.Windows.Makers; procedure Surface is W : SDL.Video.Windows.Window; begin SDL.Log.Set (Category => SDL.Log.Appl...
4,951
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f0/rfm69_moter/modem/controller.adb
<gh_stars>1-10 with STM32_SVD; use STM32_SVD; with Serial; use Serial; with STM32GD.Board; use STM32GD.Board; with STM32GD.USART; use STM32GD.USART; with Ada.Real_Time; use Ada.Real_Time; with Ada.Synchronous_Task_Control; use A...
4,952
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95089a.ada
<reponame>best08618/asylo -- C95089A.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...
4,953
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui.adb
<filename>ada/original_2008/ada-gui/agar-gui.adb with agar.core.error; package body agar.gui is use type c.int; package cbinds is function init (flags : agar.core.init_flags_t := 0) return c.int; pragma import (c, init, "AG_InitGUI"); function init_video (width : c.int; height : c.int;...
4,954
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/array1.ads
<gh_stars>1-10 -- { dg-do compile } pragma Restrictions (No_Elaboration_Code); package Array1 is type Arr is array (Positive range <>) of Boolean; A : Arr (1 .. 2 ** 29); end Array1;
4,955
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-aomoar.adb
<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-aomoar.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
4,956
ada
5
Kidev/DemoAdaPhysics2D
src/utils.adb
<reponame>Kidev/DemoAdaPhysics2D with STM32.RNG.Interrupts; use STM32.RNG.Interrupts; with STM32.Board; use STM32.Board; with HAL; use HAL; package body Utils is procedure Clear(Update : Boolean; Color : Bitmap_Color := BG) is begin Display.Hidden_Buffer(1).Set_Source(Color); Display.Hidden_Buffer(1...
4,957
ada
33
ytomino/drake
source/machine-w64-mingw32/s-stomap.adb
with Ada.Unchecked_Conversion; with C.winbase; with C.winnt; with C.winternl; package body System.Storage_Map is pragma Suppress (All_Checks); use type C.char_array; use type C.size_t; use type C.windef.ULONG; NTDLL_DLL : aliased constant C.winnt.WCHAR_array (0 .. 9) := ( C.winnt.WCHAR'Val (Wide_C...
4,958
ada
0
Latence-Technologies/Kafka-Ada
src/kafka.ads
pragma Warnings (Off, "use of this unit is non-portable and version-dependent"); private with System.Parameters; pragma Warnings (On); with System; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; use Interfaces.C.Strings; -- -- Provides functionality ...
4,959
ada
1
irion7/aflex-ayacc-mirror
aflex/src/alsys_dos/filmans.ada
<filename>aflex/src/alsys_dos/filmans.ada<gh_stars>1-10 -- TITLE external_file_manager -- AUTHOR: <NAME> (UCI) -- DESCRIPTION opens external files for other functions -- NOTES This package opens external files, and thus may be system dependent -- because of limitations on file names. -- This version is for...
4,960
ada
0
hgrodriguez/tiny_rp2040_bsp
src/tiny.ads
--=========================================================================== -- -- This package represents the definitions for -- all ports -- all standard definitions -- for the Tiny RP2040 board -- --=========================================================================== -- -- Copyright 2022 (C) <NAME...
4,961
ada
1
LaudateCorpus1/RosettaCodeData
Task/Strip-whitespace-from-a-string-Top-and-tail/Ada/strip-whitespace-from-a-string-top-and-tail.ada
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; procedure StripDemo is str : String := " Jabberwocky "; begin Put_Line ("'" & Trim (str, Left) & "'"); Put_Line ("'" & Trim (str, Right) & "'"); Put_Line ("'" & Trim (s...
4,962
ada
0
Lucretia/old_nehe_ada95
thirdparty/adasdl/thin/adasdl/AdaSDL-from-glut/book/rectangle.adb
<reponame>Lucretia/old_nehe_ada95 -- ----------------------------------------------------- -- Copyright (C) by: -- <NAME> - <NAME> - Azores - Portugal -- <EMAIL> -- www.adapower.net/~avargas -- ----------------------------------------------------- -- This program is in the public domain -- -------...
4,963
ada
1
LaudateCorpus1/RosettaCodeData
Task/Date-format/Ada/date-format.ada
with Ada.Calendar; use Ada.Calendar; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; with Ada.Text_IO; use Ada.Text_IO; procedure Date_Format is function Image (Month : Month_Number) return String is begin case Month is when 1 => return "January"; whe...
4,964
ada
0
hannesb0/rtpl18
src/lab-code/car-blinker/common/src/control.ads
package Control is procedure Put_Line(S : String); function Get_Line return String; procedure Toggle_LedR; procedure Toggle_LedL; procedure Off_LedR; procedure Off_LedL; end Control;
4,965
ada
0
Asier98/AdaCar
src/adacar-entrada_salida.ads
<filename>src/adacar-entrada_salida.ads with Digital; use Digital; with Analog; use Analog; with Pins_STM32F446; use Pins_STM32F446; package AdaCar.Entrada_Salida is procedure Init_System; function Lectura_Digital(Canal: Canal_DI) return Estado_Digital; procedure Salida_Digital(Canal: Canal_DO; Valor...
4,966
ada
192
rocher/Ada_Drivers_Library
testsuite/tests/monitors/src/dummy_block_driver.adb
package body Dummy_Block_Driver is ---------- -- Read -- ---------- overriding function Read (This : in out Dummy_BD; Block_Number : UInt64; Data : out Block) return Boolean is pragma Unreferenced (Block_Number); begin if This.Should_Fail then ...
4,967
ada
0
BrentSeidel/WeatherProject
test.adb
-- -- Standard Ada packages -- with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Float_Text_IO; -- -- Other packages -- with BBS.BBB.i2c; with BBS.BBB.i2c.PCA9685; with BBS.BBB.i2c.BME280; with BBS.units; with WeatherCommon; procedure test is port : BBS.BBB.i2c.i2c_interface := BBS.BBB.i2c.i2c_new; servo : BB...
4,968
ada
1
bracke/websitegenerator
src/generator.ads
with GNATCOLL.Strings_Impl; with Ada.Wide_Wide_Characters.Handling, Ada.Characters; use Ada.Wide_Wide_Characters.Handling; with Ada.Characters.Conversions; with Ada.Containers.Doubly_Linked_Lists; with GNATCOLL.Config; with Templates_Parser; with Ada.Strings.Maps; package Generator is use Templates_Parser; pac...
4,969
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
boards/host/stm32gd-board.adb
<gh_stars>1-10 with STM32_SVD; use STM32_SVD; package body STM32GD.Board is procedure Init is begin USART.Init; end Init; end STM32GD.Board;
4,970
ada
1
annexi-strayline/ASAP-Unicode
unicode-general_category-alias.ads
------------------------------------------------------------------------------ -- -- -- Unicode Utilities -- -- -- -- ...
4,971
ada
6
jonashaggstrom/ada-canopen
examples/linux/src/socketcan.adb
pragma Warnings (Off); -- Internal GNAT unit, non-portable! -- But SocketCAN is only available on Linux anyways... with GNAT.Sockets.Thin; with GNAT.Sockets.Thin_Common; pragma Warnings (On); package body SocketCAN is use type C.int; package Socket_Defs is -- socket.h SOCK_RAW : constant := 3; ...
4,972
ada
0
AdamSzerszen/Concurrency_v.2.0
src/infrastructure/infrastructure.adb
<reponame>AdamSzerszen/Concurrency_v.2.0<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; package body Infrastructure is protected body Steering is entry SetNumber(CorrectNumber: in SteeringNumber) when OwnNumber = -1 is begin OwnNumber := CorrectNumber; end; entry Incoming(Cur...
4,973
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/s-atacco.ads
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
4,974
ada
0
JeremyGrosser/the_grid
src/console.adb
<filename>src/console.adb with Picosystem.Pins; with RP.Device; with RP.UART; with RP.GPIO; with HAL.UART; with HAL; package body Console is Initialized : Boolean := False; Port : RP.UART.UART_Port renames RP.Device.UART_0; procedure Initialize is use RP.GPIO; begin Port.Configure; ...
4,975
ada
1
charlie5/lace-alire
4-high/gel/source/world/gel-world-server.adb
<filename>4-high/gel/source/world/gel-world-server.adb<gh_stars>1-10 with gel.Events, physics.Forge, openGL.Renderer.lean, lace.Event.utility, ada.Text_IO, ada.unchecked_Deallocation; package body gel.World.server is use gel.Sprite, linear_Algebra_3D, lace.Event.utilit...
4,976
ada
0
My-Colaborations/ada-ado
src/ado-utils-streams.ads
----------------------------------------------------------------------- -- ado-utils-streams -- IO stream utilities -- Copyright (C) 2018 <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. -...
4,977
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43209a.ada
-- C43209A.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...
4,978
ada
19
jrcarter/Ada_GUI
strings_edit-integer_edit.adb
<filename>strings_edit-integer_edit.adb -- -- -- package Copyright (c) <NAME> -- -- Strings_Edit.Integer_Edit Luebeck -- -- Implementation Spring, 2000 ...
4,979
ada
24
svn2github/matreshka
tools/uca_data.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
4,980
ada
22
FardaleM/metalang
out/euler17.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 euler17 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...
4,981
ada
18
jquorning/ada-wiki
src/wiki-streams-html-stream.ads
<filename>src/wiki-streams-html-stream.ads ----------------------------------------------------------------------- -- wiki-streams-html-stream -- Generic Wiki HTML output stream -- Copyright (C) 2016, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
4,982
ada
0
optikos/oasis
source/oasis/program-compilations.ads
<filename>source/oasis/program-compilations.ads<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Contexts; package Program.Compilations is pr...
4,983
ada
33
ytomino/drake
source/containers/a-cobitr.adb
<filename>source/containers/a-cobitr.adb package body Ada.Containers.Binary_Trees is function Nonnull_First (Container : not null Node_Access) return not null Node_Access; function Nonnull_First (Container : not null Node_Access) return not null Node_Access is I : not null Node_Access := Con...
4,984
ada
15
AdaCore/training_material
courses/spark_for_ada_programmers/labs/source/030_spark_language_and_tools/aliasing.adb
<gh_stars>10-100 with Simple_IO; package body Aliasing with SPARK_Mode => On is procedure Multiply (X, Y : in Rec; Z : out Rec) is begin Z := (0, 0); Z.F := X.F * Y.F; Z.G := X.G * Y.G; end Multiply; procedure Test is R : Rec; Resu...
4,985
ada
0
balintsoos/LearnAda
bead/bead1/J_String_Pkg.adb
package body J_String_Pkg is function Create(Str : String) return J_String is S : J_String(Str'length); begin S.value := Str; return S; end Create; function Value_Of(S : J_String) return String is Str : String(1 .. S.size); begin Str := S.value; return Str; end Value_Of; functio...
4,986
ada
3
Heziode/aoc-ada-2021
17/1/src/main.adb
<gh_stars>1-10 with Ada.Execution_Time, Ada.Integer_Text_IO, Ada.Real_Time, Ada.Strings.Fixed, Ada.Text_IO; with Utils, Coordinates_2D; procedure Main is use Ada.Execution_Time, Ada.Real_Time, Ada.Text_IO; use Utils; package My_Coordinates is new Coordinates_2D (Intege...
4,987
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2a32j.ada
<gh_stars>1-10 -- CD2A32J.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....
4,988
ada
0
caqg/linux-home
.emacs.d/elpa/ada-mode-5.2.0/gpr_query.adb
<gh_stars>0 -- Abstract : -- -- Support Emacs Ada mode and gpr-query minor mode queries about -- GNAT projects and cross reference data -- -- requires gnatcoll 1.7w 20140330, gnat 7.2.1 -- -- Copyright (C) 2014-2016 Free Software Foundation All Rights Reserved. -- -- This program is free software; you can redistr...
4,989
ada
0
Tim-Tom/project-euler
Ada/inc/Problem_04.ads
package Problem_04 is procedure Solve; end Problem_04;
4,990
ada
1
annexi-strayline/ASAP-Unicode
unicode-general_category.adb
------------------------------------------------------------------------------ -- -- -- Unicode Utilities -- -- -- -- ...
4,991
ada
0
webgeeks/Ada_Drivers_Library
examples/shared/hello_world_blinky/src/analog.ads
with STM32.Device; use STM32.Device; with HAL; use HAL; with STM32.ADC; use STM32.ADC; with STM32.GPIO; use STM32.GPIO; package analog is Converter : Analog_To_Digital_Converter renames ADC_1; Successful : Boolean; procedure Configure_Analog_Input (Input : GPIO_Point); procedu...
4,992
ada
1
assessorgeneral/ConQAT
org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.coverage.volume/if-else.adb
with Ada.Text_IO; procedure Hello is package IO renames Ada.Text_IO; digit: Integer := 4; begin if digit > 3 or else digit = 3 then if digit < 5 then IO.Put_Line("Hello, world!"); end if; elsif digit < 2 then IO.Put_Line("Hello, world!"); else IO.Put_Line("Hello, world!"); end if; end Hello;
4,993
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto11.ads
with Ada.Streams; use Ada.Streams; package Lto11 is type Vector is array (Positive range <>) of Float; procedure Write (S : not null access Root_Stream_Type'Class; V : Vector); end Lto11;
4,994
ada
33
persan/zeromq-Ada
eBindings/dl/gen/dlfcn_h.ads
<filename>eBindings/dl/gen/dlfcn_h.ads with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with System; package dlfcn_h is function dlopen (arg1 : Interfaces.C.Strings.chars_ptr; arg2 : int) return System.Address; -- /usr/include/dlfcn.h:57:14 pragma Import (C, dlopen, "dlopen"); function dlclo...
4,995
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37006a.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37006a.ada -- C37006A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimi...
4,996
ada
81
My-Colaborations/ada-awa
awa/regtests/awa_test_app.adb
<gh_stars>10-100 ----------------------------------------------------------------------- -- awa_test_app - -- Copyright (C) 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. -- You ma...
4,997
ada
0
mlurbe97/ABench2020
SelectionSort/selection_sort.adb
<gh_stars>0 -- -- ABench2020 Benchmark Suite -- -- Selection Sort Program -- -- Licensed under the MIT License. See LICENSE file in the ABench root -- directory for license information. -- -- Uncomment the line below to print the result. -- with Ada.Text_IO; use Ada.Text_IO; procedure Selection_Sort is type V...
4,998
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/s-bignum.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
4,999
ada
6
jonashaggstrom/ada-canopen
src/aco-events.ads
with Ada.Real_Time; with ACO.Utils.Generic_Event; with ACO.Messages; with ACO.States; with ACO.SDO_Sessions; with ACO.OD_Types; with ACO.Configuration; package ACO.Events is use ACO.Configuration; type Handler_Event_Type is (Tick, Received_Message); type Handler_Event_Data (Event : Handler...