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
1,300
ada
1
Fabien-Chouteau/samd51-hal
src/drivers/dmac_u2503/sam-dmac.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, AdaCore -- -- -- -- ...
1,301
ada
192
rocher/Ada_Drivers_Library
arch/ARM/cortex_m/src/cm7/cortex_m_svd-nvic.ads
-- This spec has been automatically generated from cm7.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package Cortex_M_SVD.NVIC is pragma Preelaborate; --------------- -- Registers -- --------------- -- Interrupt Set-Enable Registe...
1,302
ada
15
AdaCore/training_material
extern/game_support/stm32f4/src/test.adb
<filename>extern/game_support/stm32f4/src/test.adb with Screen_Interface; use Screen_Interface; with Drawing; use Drawing; with Ada.Real_Time; use Ada.Real_Time; procedure Test is Period : constant Time_Span := Milliseconds (500); Next_Start : Time := Clock + Seconds (1); begin Screen_Interface.Initialize; ...
1,303
ada
0
Fabien-Chouteau/bb_pico_bsp
src/bb_pico_bsp-keyboard.ads
with HAL; with BBQ10KBD; package BB_Pico_Bsp.Keyboard is function Key_FIFO_Pop return BBQ10KBD.Key_State; -- When the FIFO is empty a Key_State with Kind = Error is returned function Status return BBQ10KBD.KBD_Status; procedure Set_Backlight (Lvl : HAL.UInt8); function Version return HAL.UInt8; ...
1,304
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/examples/clock/clock.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- ...
1,305
ada
15
My-Colaborations/dynamo
src/gnat/prj-part.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
1,306
ada
33
ytomino/drake
source/strings/a-strcom.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- extended unit package Ada.Strings.Composites is -- Unicode composite character handling. pragma Preelaborate; type Class is range 0 .. 255; for Class'Size use Standard'Storage_Unit; function Combining_Class (Item : Wide_Wide_Character) return ...
1,307
ada
52
onox/orka
orka/src/orka/implementation/egl/orka-contexts-egl.adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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 -...
1,308
ada
8
darkestkhan/vt100
src/vt100-utils.adb
------------------------------------------------------------------------------ -- EMAIL: <<EMAIL>> -- -- License: ISC License (see COPYING file) -- -- -- -- ...
1,309
ada
1
micahwelf/FLTK-Ada
src/fltk-text_buffers.adb
with Interfaces.C.Strings, Ada.Strings.Unbounded, Ada.Containers, System; use Ada.Strings.Unbounded; use type System.Address, Interfaces.C.int, Interfaces.C.Strings.chars_ptr, Ada.Containers.Count_Type; package body FLTK.Text_Buffers is function new_fl_text_buffer ...
1,310
ada
0
xuedong/mini-ada
tests/typing/bad/testfile-record-2.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Test is type t is record a: integer; a: character; end record; begin new_line; end;
1,311
ada
3
jwarwick/aoc_2020
day14/src/main.adb
<reponame>jwarwick/aoc_2020 -- AOC 2020, Day 14 with Ada.Text_IO; use Ada.Text_IO; with Day; use Day; procedure main is p : constant Program := load_file("input.txt"); part1 : constant Long_Integer := sum_memory(p); part2 : constant Long_Integer := sum_memory_v2(p); begin put_line("Part 1: " & Long_Integer'Ima...
1,312
ada
0
hergin/ada2fuml
test-resources/CombinedTypesAndVariables.Main.adb
with SomeClass; procedure Main is begin null; end Main;
1,313
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada05/a-diroro.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
1,314
ada
0
AsyncMC/Mojang-API-Libs
generated-sources/ada-server/mojang-status/src/com-github-asyncmc-mojang-status-ada-server-model-servers.ads
<filename>generated-sources/ada-server/mojang-status/src/com-github-asyncmc-mojang-status-ada-server-model-servers.ads -- Mojang API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- ------------ EDIT NOTE ------------ -- This file was generated with op...
1,315
ada
0
strenkml/EE368
memsim-master/src/memory-super_none.ads
<reponame>strenkml/EE368<gh_stars>0 with Memory.Super; package Memory.Super_None is new Memory.Super(Natural, Get_Zero);
1,316
ada
80
thindil/steamsky
src/ui/goals-ui.adb
<filename>src/ui/goals-ui.adb -- Copyright (c) 2020-2021 <NAME> <<EMAIL>> -- -- This program 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 -- (at your option) any later ...
1,317
ada
0
sciencylab/lagrangian-solver
drivers/pe_landscape.adb
<filename>drivers/pe_landscape.adb with Numerics, Ada.Text_IO; use Numerics, Ada.Text_IO; procedure PE_Landscape is use Real_IO, Int_IO, Real_Functions; α : constant Real := 1.0e-2; R : constant Real := π * 0.7028; function Phi (R : in Real) return Real is begin return 0.5 * (1.0 + Tanh ...
1,318
ada
76
yannickmoy/SPARKNaCl
src/sparknacl-cryptobox.adb
<filename>src/sparknacl-cryptobox.adb with SPARKNaCl.Scalar; with SPARKNaCl.Secretbox; package body SPARKNaCl.Cryptobox with SPARK_Mode => On is procedure Keypair (Raw_SK : in Bytes_32; PK : out Public_Key; SK : out Secret_Key) is begin SK....
1,319
ada
23
SMerrony/dashera
Src/serial.ads
-- Copyright (C)2022 <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, including without limitation the rights -- to use, copy, modify, merge, publish, distribut...
1,320
ada
6
aeszter/lox-spark
src/exprs-store.adb
separate (Exprs) procedure Store (The_Expr : Expr'Class; Result : out Expr_Handle; Success : out Boolean) is use Ada.Containers; use Storage; begin if Length (Container) >= Container.Capacity then Success := False; Result := 1; return; end if; Appen...
1,321
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/overflow_sum3.adb
-- { dg-do run } -- { dg-options "-gnato" } procedure Overflow_Sum3 is function Ident (I : Integer) return Integer is begin return I; end; X : Short_Short_Integer := Short_Short_Integer (Ident (127)); begin if X+1 <= 127 then raise Program_Error; end if; exception when Constraint_...
1,322
ada
1
stcarrez/helios
src/helios-commands-info.adb
----------------------------------------------------------------------- -- helios-commands-info -- Helios information commands -- Copyright (C) 2017, 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complia...
1,323
ada
24
svn2github/matreshka
source/league/ucd/matreshka-internals-unicode-ucd-core_01d1.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
1,324
ada
1
LaudateCorpus1/RosettaCodeData
Task/Menu/Ada/menu-2.ada
./menu2 1 Fee Fie 2 Huff & Puff 3 mirror mirror 4 tick tock chose (0 to exit) #:2 you chose #:Huff & Puff 1 Fee Fie 2 Huff & Puff 3 mirror mirror 4 tick tock chose (0 to exit) #:55 Menu selection out of range 1 Fee Fie 2...
1,325
ada
20
charlie5/lace
3-mid/impact/source/2d/orbs/dynamics/contacts/impact-d2-orbs-contact-solver.adb
<filename>3-mid/impact/source/2d/orbs/dynamics/contacts/impact-d2-orbs-contact-solver.adb with ada.unchecked_Deallocation; with impact.d2.orbs.Shape; package body impact.d2.orbs.contact.Solver is use type int32; B2_DEBUG_SOLVER : constant := 0; function to_b2ContactSolver (contacts : in Contact.views; ...
1,326
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-fore_f.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
1,327
ada
0
bhayward93/Ada-Traffic-Light-Sim
icasrc/Light_Rotator.adb
<filename>icasrc/Light_Rotator.adb with HWIF;use HWIF; --Use only north and east. task Light_Rotator (dir : in Direction); task body Light_Rotator is if dir = North or dir = South then task EastSwitch; task body EastSwitch is TrafficLightSwitcher(East); end EastSwitch; task WestSw...
1,328
ada
4
jerry-sky/academic-notebook
electives/pw/lab/lista-1/ada/external.ads
<gh_stars>1-10 with Ada.Strings.Unbounded; with Ada.Strings.Unbounded.Text_IO; with Ada.Text_IO; with Ada.Command_Line; package External is package STR renames Ada.Strings.Unbounded; package IO renames Ada.Strings.Unbounded.Text_IO; package IOB renames Ada.Text_IO; package CMD renames Ada.Command_Line...
1,329
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/p13.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/p13.adb -- { dg-do run } with Init13; use Init13; with Ada.Numerics; use Ada.Numerics; with Text_IO; use Text_IO; with Dump; procedure P13 is Local_R1 : R1; Local_R2 : R2; begin Put ("My_R1 :"); Dump (My_R1'Address, R1'Max_Size_In_Storage_Elements...
1,330
ada
0
btmalone/alog
aunit/aunit-test_filters.ads
<reponame>btmalone/alog ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
1,331
ada
0
luk9400/nsi
list1/task1/src/smallest_factor.ads
<filename>list1/task1/src/smallest_factor.ads package Smallest_Factor with SPARK_Mode is procedure SmallestF (N : in out Positive; Factor : out Positive) with SPARK_Mode, Pre => N > 1, Post => (Factor > 1) and (N'Old / Factor = N) and (N'Old rem Factor = 0) and ...
1,332
ada
6
jonashaggstrom/ada-canopen
src/aco-events.adb
package body ACO.Events is procedure Process (This : in out Node_Event_Manager) is begin This.Node_Events.Process; end Process; overriding procedure Update (This : access Handler_Event_Listener; Data : in Handler_Event_Data) is type Ref is access all Handler_Eve...
1,333
ada
15
My-Colaborations/dynamo
src/asis/a4g-a_opt.adb
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
1,334
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array19.ads
<gh_stars>1-10 package Array19 is procedure Proc; end Array19;
1,335
ada
1
mullikine/RosettaCodeData
Task/User-input-Text/Ada/user-input-text-1.ada
function Get_String return String is Line : String (1 .. 1_000); Last : Natural; begin Get_Line (Line, Last); return Line (1 .. Last); end Get_String; function Get_Integer return Integer is S : constant String := Get_String; begin return Integer'Value (S); -- may raise exception Constraint_Error if valu...
1,336
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/choice_parameter_specification.adb
<reponame>ouankou/rose procedure Choice_Parameter_Specification is begin null; exception when Choice_Parameter : Constraint_Error => null; end Choice_Parameter_Specification;
1,337
ada
15
My-Colaborations/dynamo
src/asis/a4g-asis_tables.ads
<filename>src/asis/a4g-asis_tables.ads ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
1,338
ada
36
rewriting/tom
examples/ada/sl/unit/testposition.adb
package body TestPosition is procedure run_test is begin -- testEquals declare p1 : Position := makeFromArray(new IntArray'(1,1)); p2 : Position := makeFromArray(new IntArray'(1,1)); begin assert(p1.equals(p2), "Error in equals"); end; -- testNormalize declare p : Position := makeFromArray(new IntArray'(...
1,339
ada
33
ytomino/drake
source/strings/a-suenst.ads
pragma License (Unrestricted); -- Ada 2012 with Ada.Characters.Conversions; with Ada.Strings.UTF_Encoding.Generic_Strings; package Ada.Strings.UTF_Encoding.Strings is new Strings.UTF_Encoding.Generic_Strings ( Character, String, Expanding_From_8 => Characters.Conversions.Expanding_From_UT...
1,340
ada
18
kraileth/ravenadm
src/ravenports.ads
<filename>src/ravenports.ads -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package Ravenports is -- Provides information to user via standard out to determine if newer version of Ravenports -- (as compared to what is installed) is available. proced...
1,341
ada
269
brightdigit/NCurses
Sources/cncurses/Ada95/samples/ncurses2-flushinp_test.adb
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
1,342
ada
4
faelys/gela-asis
source/libgela/gela-character_class_buffers.ads
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
1,343
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Swarm/swarm_structures.adb
-- -- Jan & <NAME>, Australia, 2013 -- package body Swarm_Structures is -- protected body Vehicle_Comms is procedure Send (Message : Inter_Vehicle_Messages) is begin Put (Sent_Messages, Message); end Send; -- procedure Push_Message (Message : Inter_Vehicle_Messages) i...
1,344
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83f03a.ada
-- C83F03A.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...
1,345
ada
0
thierr26/ada-apsepp
src/apsepp-test_reporter_data_struct_class-impl.ads
<gh_stars>0 -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. private with Ada.Containers.Vectors, Ada.Containers.Hashed_Maps, Ada.Containers.Multiway_Trees; with Apsepp.Tags; use Apsepp.Tags; package Apsepp.Test_Reporter_Data_Struct_Class.Impl is t...
1,346
ada
0
DrenfongWong/tkm-rpc
specs/ada/common/tkmrpc-response-ike.ads
package Tkmrpc.Response.Ike is end Tkmrpc.Response.Ike;
1,347
ada
60
RREE/ada-util
src/base/events/util-events-channels.adb
----------------------------------------------------------------------- -- util-events-channel -- Event Channels -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in com...
1,348
ada
24
svn2github/matreshka
source/amf/uml/amf-uml-classifier_template_parameters.ads
<filename>source/amf/uml/amf-uml-classifier_template_parameters.ads<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project --...
1,349
ada
0
97kovacspeter/ADA
card_dir.ads
<reponame>97kovacspeter/ADA<filename>card_dir.ads<gh_stars>0 package Card_Dir is type Cardinal_Direction is (N, NE, E, SE, S, SW, W, NW); --enumerator for cardinal directions end Card_Dir;
1,350
ada
52
onox/orka
orka/src/orka/interface/orka-rendering-buffers-mapped.ads
<reponame>onox/orka<gh_stars>10-100 -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://w...
1,351
ada
1
egilhh/Futures-in-Ada
src/app.adb
<reponame>egilhh/Futures-in-Ada<gh_stars>1-10 with Ada.Text_IO; with Futures; package body App is procedure Show_Search (Self : in out Object; Target : String ) is function Callable_String return String is begin -- delay 10.0; -- for triggering timeout... ...
1,352
ada
0
jhumphry/Ada_BinToAsc
src/tests/bintoasc_suite-base64_tests.ads
<filename>src/tests/bintoasc_suite-base64_tests.ads -- BinToAsc_Suite.Base64_Tests -- Unit tests for BinToAsc -- Copyright (c) 2015, <NAME> - see LICENSE file for details with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; with RFC4648; with BinToAsc_Suite.Utils; package BinToAsc_Suite.Base64_Tests...
1,353
ada
3
RREE/Ada_Drivers_Library
hal/src/hal-filesystem.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- ...
1,354
ada
76
yannickmoy/SPARKNaCl
tests/hash.adb
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with SPARKNaCl.Hashing; use SPARKNaCl.Hashing; with Interfaces; use Interfaces; procedure Hash is R1 : Bytes_64; -- Case 1: same as NaCl standard test suite M3 : constant String (1 .. 8) := "testing" & ASCII.LF; M4 ...
1,355
ada
0
thierr26/ada-apsepp
src/_for_debug_purposes/apsepp-debug_trace_class.ads
<reponame>thierr26/ada-apsepp<gh_stars>0 -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Ada.Exceptions; use Ada.Exceptions; with Ada.Calendar.Time_Zones; use Ada.Calendar.Time_Zones; private with Apsepp.Calendar; package Apsepp.Debug_Trace_Class is type Debu...
1,356
ada
0
Fabien-Chouteau/COBS
tests/src/tests.adb
<filename>tests/src/tests.adb with AUnit; use AUnit; with AUnit.Test_Suites; with AUnit.Run; with AUnit.Reporter.Text; with GNAT.OS_Lib; with Ada.Text_IO; with Testsuite.Encode; with Testsuite.Decode; with Testsuite.Encode_Decode; procedure Tests is Failures : Natural := 0; begin for Kind in Testsuite.Encode.E...
1,357
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/nullrecord.ads
<filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/nullrecord.ads package NullRecord is type Null_Record_1 is null record; type Null_Record_2 is record null; end record; end NullRecord;
1,358
ada
0
cortlandstarrett/mcada
example/src/microwaveoven_defineoven.adb
with Ada.Text_IO; -- List of objects used with Root_Object.MicrowaveOven.MO_O; with Root_Object; -- package body MicrowaveOven_defineoven_service is procedure MicrowaveOven_defineoven is a : Integer; begin -- a := Root_Object.MicrowaveOven.MO_O.remaining_cooking_time; a := 1; Ada.Tex...
1,359
ada
5
reznikmm/increment
source/base/incr-debug.adb
<reponame>reznikmm/increment<filename>source/base/incr-debug.adb -- Copyright (c) 2015-2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; with XML.SAX.Attributes; with Incr.Nodes.Tokens; with Incr...
1,360
ada
0
Fabien-Chouteau/ASFML
include/sf-graphics-color.ads
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 <NAME> (<EMAIL>) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising from the use of this...
1,361
ada
0
JCGobbi/Nucleo-STM32G474RE
src/test_led_rt.adb
with Ada.Real_Time; use Ada.Real_Time; with STM_Board; use STM_Board; procedure Test_LED_RT is -- This demonstration program only initializes the GPIOs and flash a LED -- with Ada.Real_Time. There is no initialization for PWM, ADC and timer. begin -- Initialize GPIO ports Initialize_GPIO; -- E...
1,362
ada
76
yannickmoy/SPARKNaCl
src/sparknacl-sign-utils.adb
<reponame>yannickmoy/SPARKNaCl<gh_stars>10-100 package body SPARKNaCl.Sign.Utils with SPARK_Mode => On is procedure Construct (X : in Bytes_64; Y : out Signing_SK) is begin Y.F := X; end Construct; end SPARKNaCl.Sign.Utils;
1,363
ada
0
strenkml/EE368
memsim-master/src/memory-stats.adb
with Ada.Text_IO; use Ada.Text_IO; package body Memory.Stats is Max_Stride : constant := Integer'Last; function Create_Stats(mem : access Memory_Type'Class) return Stats_Pointer is result : constant Stats_Pointer := new Stats_Type; begin Set_Memory(result.all, mem); ...
1,364
ada
0
Maxelweb/concurrency-sandbox
Resource_Control_Protocol/src/rcp-control.adb
<reponame>Maxelweb/concurrency-sandbox with Ada.Text_IO; package body RCP.Control is protected body Controller is entry Demand (Res : out Resource_T; Req : Request_T) when Free > 0 is -- we accept the request if we have spare resources to offer begin -- but we...
1,365
ada
33
ytomino/drake
source/s-stposu.ads
<filename>source/s-stposu.ads pragma License (Unrestricted); -- Ada 2012 private with System.Finalization_Masters; private with System.Storage_Barriers; package System.Storage_Pools.Subpools is pragma Preelaborate; type Root_Storage_Pool_With_Subpools is abstract limited new Root_Storage_Pool with private...
1,366
ada
52
onox/orka
orka/src/orka/interface/orka-inputs-joysticks.ads
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2019 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 -...
1,367
ada
2
stcarrez/hestia
src/hestia-display-main.adb
<filename>src/hestia-display-main.adb ----------------------------------------------------------------------- -- hestia-display-main -- Main display view manager -- Copyright (C) 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this...
1,368
ada
1
JeremyGrosser/sensors
src/ds3231.adb
-- -- Copyright 2021 (C) <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body DS3231 is use HAL.Real_Time_Clock; use HAL; procedure Read_All (This : DS3231_Device; Val : out All_Registers) is use HAL.I2C; Data : constant I2C_Data (1 .. 1) := (1 => 16#00...
1,369
ada
2
charlie5/cBound
tier-1/xcb/source/thin/xcb-xcb_setup_t.ads
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_setup_t is -- Item -- type Item is record status : aliased Interfaces.Unsigned_8; pad0 : alia...
1,370
ada
1
OneWingedShark/Risi
src/risi_script-types-implementation.ads
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); limited private with Risi_Script.Types.Internals; Package Risi_Script.Types.Implementation is Type Representation is private; Function Create( Data_Type : Enumeration ) return Representation; Function Image( Item : Representation; ...
1,371
ada
0
AntonioRamosNieto/TFG-STM32F429
STM32F4/ToyOBDH/src/storage.ads
<reponame>AntonioRamosNieto/TFG-STM32F429 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- ...
1,372
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/itype.ads
package itype is generic type T is private; function G return not null access constant T; end itype;
1,373
ada
2
ficorax/PortAudioAda
examples/GA_Sine/src/ga_sine_callbacks.adb
with Ada.Numerics; with Ada.Numerics.Long_Elementary_Functions; use Ada.Numerics.Long_Elementary_Functions; with Ada.Unchecked_Conversion; with Interfaces.C.Pointers; with System; with PortAudioAda; use PortAudioAda; with GA_Sine_Globals; use GA_Sine_Globals; package body GA_Sine_Callbacks is package Float_Ptr...
1,374
ada
0
Fabien-Chouteau/libriscv
src/libriscv-sim-memory_bus.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, <NAME> -- -- -- -- Redistrib...
1,375
ada
7
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/i-fortra.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
1,376
ada
0
persan/a-libpcap
src/pcap.adb
<reponame>persan/a-libpcap<filename>src/pcap.adb<gh_stars>0 pragma Ada_2012; package body Pcap is --------------- -- Lookupdev -- --------------- function Lookupdev (D : String) return String is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "L...
1,377
ada
6
afrl-rq/LmcpGen
src/templates/ada/avtas/test_bytebuffers.adb
<gh_stars>1-10 with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers; with Ada.Text_IO; use Ada.Text_IO; with Ada.Assertions; use Ada.Assertions; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Exceptions; use Ada.Exceptions; with AVTAS.LMCP.Types; use AVTAS.LMCP.Type...
1,378
ada
4
ytomino/gmp-ada
source/gmp-c.ads
with MPC.Generic_C; generic package GMP.C renames MPC.Generic_C;
1,379
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-groups-wizards.ads
package FLTK.Widgets.Groups.Wizards is type Wizard is new Group with private; type Wizard_Reference (Data : not null access Wizard'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (X, Y, W, H : in Integer; ...
1,380
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-widget-separator.ads
package agar.gui.widget.separator is type type_t is (SEPARATOR_HORIZ, SEPARATOR_VERT); for type_t use (SEPARATOR_HORIZ => 0, SEPARATOR_VERT => 1); for type_t'size use c.unsigned'size; pragma convention (c, type_t); type separator_t is limited private; type separator_access_t is access all separator_t; p...
1,381
ada
15
My-Colaborations/dynamo
src/gnat/fname.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
1,382
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/driversL4x3/stm32-dac.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
1,383
ada
1
greyblue9/binutils-gdb
gdb/testsuite/gdb.ada/enum_idx_packed/pck.ads
<reponame>greyblue9/binutils-gdb<gh_stars>1-10 -- Copyright 2012-2021 Free Software Foundation, Inc. -- -- This program 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...
1,384
ada
3
AdaCore/tictactoe
problem/src/stack.adb
<filename>problem/src/stack.adb package body Stack with SPARK_Mode => On is Tab : array (1 .. Max_Size) of Board := (others => (others => (others => Empty))); -- The stack. We push and pop pointers to Values. ----------- -- Clear -- ----------- procedure Clear is begin Last := Tab'First ...
1,385
ada
0
leomlr/sudoku_ada-jewl
src/Sudoku/sudoku_tools_9.adb
<gh_stars>0 with JEWL.IO; with ada.Integer_Text_IO; -- Tell compiler to use i/o library with Ada.Strings.Fixed; use ada.Integer_Text_IO; -- Use library routines w/o fully qualified names Package Body sudoku_tools_9 Is -- Function: Show a grid in console. Procedure showGrid (grid: in Matrix_Type) Is ...
1,386
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/shapes/impact-d3-shape-convex-internal-polyhedral-point_cloud.ads
with impact.d3.Shape.convex.internal.polyhedral; -- #include "impact.d3.Shape.convex.internal.polyhedral.h" -- #include "BulletCollision/BroadphaseCollision/impact.d3.collision.Proxy.h" // for the types -- #include "LinearMath/btAlignedObjectArray.h" package impact.d3.Shape.convex.internal.polyhedral.point_cloud...
1,387
ada
3
vasil-sd/ada-tlsf
bits/src/mask/bitoperations-mask.ads
with BitOperations.Shift; with BitOperations.Types; generic with package Types is new BitOperations.Types (<>); package BitOperations.Mask with SPARK_Mode, Pure, Preelaborate is package Shift is new BitOperations.Shift(Types); use Types; use Shift; function Make (Size : Mask_Size) return Modular is ...
1,388
ada
0
Fabien-Chouteau/COBS
src/cobs-stream.ads
package COBS.Stream with Preelaborate is end COBS.Stream;
1,389
ada
20
charlie5/lace
3-mid/impact/source/2d/dynamics/contacts/impact-d2-contact-polygon_circle.ads
<filename>3-mid/impact/source/2d/dynamics/contacts/impact-d2-contact-polygon_circle.ads package impact.d2.Contact.polygon_circle -- -- -- is type b2PolygonAndCircleContact is new b2Contact with null record; type View is access all b2PolygonAndCircleContact'Class; overriding procedure E...
1,390
ada
12
jquorning/ada-asf
src/asf-beans-globals.adb
<filename>src/asf-beans-globals.adb ----------------------------------------------------------------------- -- asf-beans-globals -- Bean giving access to the global init parameters -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
1,391
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/exp_ch3.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
1,392
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-sfp-stm32g474/gnarl/s-tpobmu.ads
<reponame>JCGobbi/Nucleo-STM32G474RE ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
1,393
ada
2
stcarrez/jason
src/jason-projects-beans.adb
<filename>src/jason-projects-beans.adb ----------------------------------------------------------------------- -- jason-projects-beans -- Beans for module projects -- Copyright (C) 2016, 2017, 2018, 2019 Stephane.Carrez -- Written by Stephane.Carrez (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (th...
1,394
ada
60
RREE/ada-util
src/base/beans/util-beans.ads
----------------------------------------------------------------------- -- util-beans -- Interface Definition with Getter and Setters -- Copyright (C) 2009, 2010, 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exce...
1,395
ada
5
amvb/GUCEF
dependencies/agar/ada-gui/SYSDEPS/ver_gnat.adb
<gh_stars>1-10 -- Detect GNAT version with ada.exceptions; with ada.strings.fixed; with ada.strings.bounded; with ada.strings; with ada.text_io; with gnat.compiler_version; procedure ver_gnat is package ex renames ada.exceptions; package io renames ada.text_io; package str renames ada.strings; package str_fix...
1,396
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/exp_smem.adb
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
1,397
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/indepsw.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
1,398
ada
1
selroc/Renaissance-Ada
src/examples/Rejuvenation_Workshop/tests/test_exercises_match.adb
<gh_stars>1-10 with Ada.Containers; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; with AUnit.Assertions; use AUnit.Assertions; with GNAT.Source_Info; use GNAT.Source_Info; with Langkit_Support.Text; use Langkit_Support.Text; with Libadalang.Analysis; ...
1,399
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization16_pkg.ads
<reponame>best08618/asylo package Loop_Optimization16_Pkg is type Index_Base is range 0 .. 127; function F return Natural; end Loop_Optimization16_Pkg;