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,700
ada
33
ytomino/drake
source/environment/a-clgepa.ads
<reponame>ytomino/drake<filename>source/environment/a-clgepa.ads pragma License (Unrestricted); -- extended unit private with Ada.Command_Line.Argument_Parsing; private with Ada.Finalization; private with Ada.Streams; generic type Input_Cursor is private; with function Has_Element (Position : Input_Cursor) retur...
4,701
ada
1
mosteo/ada-toml
src-checkers/ada_toml_decode.adb
<filename>src-checkers/ada_toml_decode.adb -- Test program. Read bytes on the standard input as a TOML document. -- -- If it's a valid TOML document, parse it and emit on the standard output a -- JSON representation of it. -- -- If it's not a valid TOML document, print an error message on the standard -- output. ...
4,702
ada
33
ytomino/drake
source/s-staall.adb
with System.System_Allocators; with System.Unwind.Raising; with System.Unwind.Standard; package body System.Standard_Allocators is pragma Suppress (All_Checks); function Allocate ( Size : Storage_Elements.Storage_Count) return Address is Result : constant Address := System_Allocators.Allocat...
4,703
ada
0
pat-rogers/OpenUxAS
src/ada/src/uxas-comms-lmcp_net_client-service-route_aggregation.ads
<reponame>pat-rogers/OpenUxAS<gh_stars>0 with DOM.Core; with Route_Aggregator; use Route_Aggregator; with Route_Aggregator_Communication; use Route_Aggregator_Communication; with Route_Aggregator_Common; use Route_Aggregator_Common; with Ada.Contain...
4,704
ada
30
jrmarino/AdaBase
src/loggers/adabase-logger-base-screen.ads
<reponame>jrmarino/AdaBase -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt package AdaBase.Logger.Base.Screen is type Screen_Logger is new Base_Logger and AIL.iLogger with private; type Screen_Logger_access is access all Screen_Logger; overriding ...
4,705
ada
24
svn2github/matreshka
tools/configure/configure-tests-gprbuild.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
4,706
ada
0
csb6/libtcod-ada
src/generated/renderer_gl2_h.ads
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with utypes_uuint32_t_h; with renderer_gl_h; with Interfaces.C.Strings; limited with tileset_h; limited with context_h; package renderer_gl2_h is -- BSD 3-Clause License -- * -- * Copyright © 2008-2021, Jice and the libtcod contri...
4,707
ada
3
rogermc2/GA_Ada
test_draw_line_major/src/main_loop.ads
with Glfw.Windows; procedure Main_Loop (Main_Window : in out Glfw.Windows.Window);
4,708
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-statxd.ads
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
4,709
ada
0
zorodc/true-libs
stack/stack.ads
<reponame>zorodc/true-libs<filename>stack/stack.ads<gh_stars>0 pragma SPARK_Mode(On); generic type Thing is private; Basic:in Thing; package Stack is subtype Count is Natural; subtype Index is Count range 1 .. Count'Last; type Stack (Max_Capacity : Count) is private; type St...
4,710
ada
6
Ar0gon/arogon
external/ncurses/Ada95/src/terminal_interface-curses-menus.adb
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
4,711
ada
60
RREE/ada-util
src/base/log/util-log-appenders-consoles.ads
----------------------------------------------------------------------- -- util-log-appenders-consoles -- Console log appenders -- Copyright (C) 2001 - 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...
4,712
ada
1
lucifer1004/EFP
ada/01_Saying_Hello/saying_hello.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Saying_Hello is begin Put ("What is your name? "); declare Name : String := Get_Line; begin Put ("Hello, "); Put (Name); Put (", nice to meet you!"); end; end Saying_Hello;
4,713
ada
2
stcarrez/hestia
tools/src/gid/gid-buffering.adb
<filename>tools/src/gid/gid-buffering.adb with Ada.IO_Exceptions; package body GID.Buffering is procedure Fill_Buffer(b: in out Input_buffer); -- ^ Spec here to avoid warning by 'Get_Byte' below (GNAT 2009): -- warning: call to subprogram with no separate spec prevents inlining procedure Fill_Buffer(...
4,714
ada
1
mapcode-foundation/mapcode-ada
src/mapcode_utils-bits.adb
<reponame>mapcode-foundation/mapcode-ada -- ----------------------------------------------------------------------------- -- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complia...
4,715
ada
0
alire-project/sdlada
src/sdl-inputs-joysticks-game_controllers.ads
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the ...
4,716
ada
16
anthony-arnold/AdaID
test/adaid_tests.ads
-- File: adaid_tests.ads -- Description: Test suite for AdaID -- Author: <NAME> -- License: http://www.gnu.org/licenses/gpl.txt with AUnit; use AUnit; with AUnit.Test_Cases; package AdaID_Tests is type UUID_Test is new AUnit.Test_Cases.Test_Case with null record; type Access_UUID_Test is access UUID_Test; --...
4,717
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f0/i2c/main.adb
<filename>examples/stm32f0/i2c/main.adb with Ada.Real_Time; use Ada.Real_Time; with STM32GD.Board; use STM32GD.Board; with STM32GD.SysTick; use STM32GD.SysTick; with Drivers.Text_IO; with Peripherals; procedure Main is Temperature : Peripherals.Si7006.Temperature_Type; Humidity : Peripherals.Si7006.Humidit...
4,718
ada
0
fuzzysloth/ada-awa
awa/plugins/awa-comments/regtests/awa-comments-modules-tests.adb
<reponame>fuzzysloth/ada-awa<gh_stars>0 ----------------------------------------------------------------------- -- awa-comments-modules-tests -- Unit tests for comments module -- Copyright (C) 2014 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
4,719
ada
80
thindil/steamsky
src/ui/table.adb
<filename>src/ui/table.adb -- Copyright (c) 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 version....
4,720
ada
52
onox/orka
orka/src/orka/implementation/orka-jobs-workers.adb
-- 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://www.apache.org/licenses/LICENSE-2.0 -...
4,721
ada
0
optikos/oasis
source/oasis/program-elements-range_attribute_references.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Constraints; with Program.Elements.Attribute_References; package Program.Elements.Range_Attribute_References is pragma Pure ...
4,722
ada
0
sciencylab/lagrangian-solver
drivers/forward_ad-hamiltonian.ads
package Forward_AD.Hamiltonian is function Func (Q, V : in Real_Array; T : in Real) return AD_Type; end Forward_AD.Hamiltonian;
4,723
ada
0
alban-linard/adda
src/adda.ads
package Adda is end Adda;
4,724
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/par-ch8.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
4,725
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Globe_3d/models/planet.adb
pragma Warnings (Off); pragma Style_Checks (Off); with GL; with GLOBE_3D.Math; with Ada.Numerics; use Ada.Numerics; package body Planet is procedure Create ( object : in out GLOBE_3D.p_Object_3D; scale : GLOBE_3D.Real; centre : GLOBE_3D.Point_3D; ...
4,726
ada
0
thierr26/ada-apsepp
src/apsepp-test_node_class-generic_assert.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. generic Test_Node_Tag : Tag; procedure Apsepp.Test_Node_Class.Generic_Assert (Cond : Boolean; Message : String := "");
4,727
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f4/interrupts/peripherals.ads
with IRQ; with Ada.Interrupts.Names; use Ada.Interrupts.Names; package Peripherals is Handler : IRQ.Controller (USART1_Interrupt); end Peripherals;
4,728
ada
3
jwarwick/aoc_2020
day06/tests/day-test.adb
<gh_stars>1-10 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); sum : constant Natural := anyone_sum("test1.txt"); begin Assert(sum = 11, "Wrong group sum, expected 11, got " & Na...
4,729
ada
20
charlie5/lace
3-mid/opengl/source/platform/egl/private/thin/egl-binding.ads
<filename>3-mid/opengl/source/platform/egl/private/thin/egl-binding.ads with eGL.Pointers, eGL.NativeDisplayType, Interfaces.C.Strings, System; package eGL.Binding is function eglGetError return eGL.EGLint; function eglGetDisplay (display_id : in eGL.Nativ...
4,730
ada
0
Letractively/ada-el
regtests/el-beans-tests.adb
----------------------------------------------------------------------- -- EL.Beans.Tests - Testsuite for EL.Beans -- Copyright (C) 2011 <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 Licen...
4,731
ada
17
WinterAlexander/Ada-IntelliJ
src/main/resources/project-templates/ajis_hello/src_ada/hello.adb
<reponame>WinterAlexander/Ada-IntelliJ<filename>src/main/resources/project-templates/ajis_hello/src_ada/hello.adb<gh_stars>10-100 with Ada.Text_IO; use Ada.Text_IO; package body Hello is procedure Print_On_Console (P : Ada_Printer; V : String) is begin Put_Line ("[Ada ] " & V); end Print_On_Console; ...
4,732
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/s-pooglo.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
4,733
ada
0
strenkml/EE368
memsim-master/src/benchmark-trace.ads
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Benchmark.Trace is -- Memory traces are sequences of memory access actions separated by -- new lines. The format of each line is: -- -- <action> <value> -- -- where <action> is 'R' for read, 'W' for write, and 'I' for idle. -- Fo...
4,734
ada
1
LaudateCorpus1/RosettaCodeData
Task/One-of-n-lines-in-a-file/Ada/one-of-n-lines-in-a-file.ada
<reponame>LaudateCorpus1/RosettaCodeData with Ada.Text_IO, Ada.Numerics.Float_Random; procedure One_Of_N is Num_Of_Lines: constant Positive := 10; package Rnd renames Ada.Numerics.Float_Random; Gen: Rnd.Generator; -- used globally function Choose_One_Of_N(Last_Line_Number: Positive) return Natural is ...
4,735
ada
4
ytomino/yaml-ada
source/yaml-streams.ads
with Ada.Streams; package YAML.Streams is pragma Preelaborate; function Create ( Stream : not null access Ada.Streams.Root_Stream_Type'Class) return Parser; function Create ( Stream : not null access Ada.Streams.Root_Stream_Type'Class) return Emitter; end YAML.Streams;
4,736
ada
0
Letractively/ada-ado
src/ado-databases.ads
----------------------------------------------------------------------- -- ADO Databases -- Database Connections -- Copyright (C) 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with...
4,737
ada
4
davidkristola/vole
kv-avm-memories.ads
<filename>kv-avm-memories.ads<gh_stars>1-10 with Ada.Finalization; with Interfaces; with kv.avm.References; with kv.avm.Registers; with kv.avm.Instructions; limited with kv.avm.Tuples; with kv.avm.Actor_References.Sets; package kv.avm.Memories is type Register_Set_Type is array (Interfaces.Unsigned_32 range <>) ...
4,738
ada
2
ficorax/PortAudioAda
examples/GA_Sine/src/ga_sine_package.ads
with Glib; use Glib; with Gdk.Event; use Gdk.Event; with Gtk.Widget, Gtk.Handlers; use Gtk.Widget, Gtk.Handlers; package GA_Sine_Package is package Handlers is new Gtk.Handlers.Callback (Widget_Type => Gtk_Widget_Record); package Return_Handlers is new Gtk.Handlers.Return_Callback (Widget_Type => Gt...
4,739
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-gearop.adb
<filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-gearop.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
4,740
ada
20
charlie5/lace
3-mid/impact/source/2d/orbs/collision/impact-d2-orbs-collision.ads
with impact.d2.Math; limited with impact.d2.orbs.Shape; package impact.d2.orbs.Collision -- -- Types and subprograms used for computing contact points, distance queries, and Time of Impact (TOI) queries. -- is use impact.d2.Math; -- class b2Shape; -- class b2CircleShape; -- class b2PolygonShape; b2_null...
4,741
ada
2
thindil/tashy2
tests/tk-image-bitmap-bitmap_options_test_data-bitmap_options_tests.adb
<filename>tests/tk-image-bitmap-bitmap_options_test_data-bitmap_options_tests.adb -- 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 tes...
4,742
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32f0/stm32f051x/svd/stm32_svd-dac.ads
<reponame>ekoeppen/STM32_Generic_Ada_Drivers -- This spec has been automatically generated from STM32F0xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.DAC is pragma Preelaborate; --------------- -- Registers -- ---------------...
4,743
ada
81
My-Colaborations/ada-awa
awa/regtests/awa-testsuite.adb
----------------------------------------------------------------------- -- Util testsuite - Util Testsuite -- Copyright (C) 2009 - 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. -- ...
4,744
ada
0
e3l6/SSMDev
demo/adainclude/s-bcprmu.ads
<reponame>e3l6/SSMDev<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
4,745
ada
0
Fabien-Chouteau/ASFML
include/sf-network-packet.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...
4,746
ada
33
ytomino/drake
source/a-tgdico.ads
pragma License (Unrestricted); generic type T (<>) is abstract tagged limited private; type Parameters (<>) is limited private; with function Constructor (Params : not null access Parameters) return T is abstract; function Ada.Tags.Generic_Dispatching_Constructor ( The_Tag : Tag; Params : not null ...
4,747
ada
0
gerr135/gnat_bugs
gb_01/src_bug/run_gb_01.adb
-- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- with root.child; procedure run_gb_01 is package R is new R...
4,748
ada
4
davidkristola/vole
kv-avm-messages.adb
with Ada.Unchecked_Deallocation; package body kv.avm.Messages is type Message_Data_Type is record Source_Actor : kv.avm.Actor_References.Actor_Reference_Type; Reply_To : kv.avm.Actor_References.Actor_Reference_Type; Destination_Actor : kv.avm.Actor_References.Actor_Re...
4,749
ada
2
stcarrez/ada-mail
tools/mgrep-scanner.ads
----------------------------------------------------------------------- -- mgrep-scanner -- Scan a directory and parse mail -- 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 Li...
4,750
ada
0
Tim-W-James/Ada-Reference-Code
Sources/sample.adb
<reponame>Tim-W-James/Ada-Reference-Code<filename>Sources/sample.adb with Ada.Text_IO; use Ada.Text_IO; procedure sample is -- ================ -- VARIABLES -- ================ Const : constant Integer := 3; Var : Positive := 5; -- ================ -- TYPES -- ================ ty...
4,751
ada
1
Hathoute/ENSEEIHT
PIM/Projet/src/types.ads
with TH; with LC; with Vecteur; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Calendar; use Calendar; package Types is type T_Digits is digits 6; type T_Rank is record Rang: Integer; Poid: T_Digits; end record; type T_Indice is record ...
4,752
ada
80
thindil/steamsky
tests/ships-test_data-tests-proto_ships_container.ads
package Ships.Test_Data.Tests.Proto_Ships_Container is end Ships.Test_Data.Tests.Proto_Ships_Container;
4,753
ada
0
JCGobbi/Nucleo-STM32G474RE
SVD2ada/svd/stm32_svd-cordic.ads
<reponame>JCGobbi/Nucleo-STM32G474RE<filename>SVD2ada/svd/stm32_svd-cordic.ads<gh_stars>0 pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.CORDIC is pragma Preelaborate; ---------...
4,754
ada
3
charlie5/aIDE
attic/asis/find_all/adam-assist-query-find_all.ads
package AdaM.Assist.Query.find_All is end AdaM.Assist.Query.find_All;
4,755
ada
33
ytomino/drake
source/machine-pc-linux-gnu/s-stack.adb
with System.Storage_Elements; with System.Debug; -- assertions package body System.Stack is pragma Suppress (All_Checks); use type Storage_Elements.Storage_Offset; use type C.signed_int; procedure Get ( Thread : C.pthread.pthread_t := C.pthread.pthread_self; Top, Bottom : out Address) is ...
4,756
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f1/bootloader/main.adb
<gh_stars>1-10 with Startup; with Bootloader; procedure Main is begin Bootloader.Start; end Main;
4,757
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/i-cstrea.adb
<reponame>best08618/asylo ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
4,758
ada
0
cocolab8/cocktail
reuse/ada/dynarray.ads
-- $Id: DynArray.md,v 1.2 1993/08/18 15:06:51 grosch rel $ -- $Log: DynArray.md,v $ -- Ich, <NAME>, Informatiker, Aug. 1994 generic type ElmtType is private; package DynArray is type tArray is array (Integer range <>) of ElmtType; type FlexArray is access tArray; procedure MakeArray (ArrayPtr : out Fle...
4,759
ada
33
ytomino/drake
examples/str.adb
with Ada.Strings.Functions; with Ada.Strings.Maps.Constants; with Ada.Strings.Unbounded_Strings; with System; with Ada.Strings.Fixed; with Ada.Strings.Bounded; with Ada.Strings.Unbounded; procedure str is begin -- operators declare X : String := "11"; begin pragma Assert (X > "0"); pragma Assert (X < "2"); p...
4,760
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-widget-checkbox.ads
with agar.core.event; package agar.gui.widget.checkbox is use type c.unsigned; type flags_t is new c.unsigned; CHECKBOX_HFILL : constant flags_t := 16#01#; CHECKBOX_VFILL : constant flags_t := 16#02#; CHECKBOX_EXPAND : constant flags_t := CHECKBOX_HFILL or CHECKBOX_VFILL; CHECKBOX_SET : constant fla...
4,761
ada
0
PyllrNL/Project_Euler_Solutions
Ada/problem_21/problem_21.adb
package body problem_21 is function Sum_Of_Divisors( Num : Integer ) return Integer is Sum : Integer := 1; I : Integer := 2; begin for I in 2 .. (Num / 2) loop if Num mod I = 0 then Sum := Sum + I; end if; end loop; return Sum; ...
4,762
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada95/s-rpc.ads
--Helen: added this file to implement RPC with Ada.Streams; package System.RPC is type Partition_ID is range 0 .. 100; Communication_Error : exception; type Params_Stream_Type ( Initial_Size : Ada.Streams.Stream_Element_Count) is new Ada.Streams.Root_Stream_Type with private; procedure Read ( ...
4,763
ada
0
fintatarta/protypo
src/API/protypo-api-engine_values-list_wrappers.adb
<filename>src/API/protypo-api-engine_values-list_wrappers.adb pragma Ada_2012; with Protypo.Api.Engine_Values.Constant_Wrappers; use Protypo.Api.Engine_Values.Constant_Wrappers; with Protypo.Api.Engine_Values.Handlers; -- with Protypo.Api.Engine_Values.Iterator_Wrappers; package body Protypo.Api.Engine_Values.List_...
4,764
ada
0
fintatarta/eugen
src/Projects/eu_projects-times-time_expressions-solving.ads
with Ada.Containers.Indefinite_Ordered_Maps; with Symbolic_Expressions.Solving; package EU_Projects.Times.Time_Expressions.Solving is type Time_Equation_System is private; function Contains_Left_Term (Equations : Time_Equation_System; Left : Dotted_Identifier) ...
4,765
ada
0
Letractively/ada-ado
src/ado-drivers-connections.adb
<filename>src/ado-drivers-connections.adb<gh_stars>0 ----------------------------------------------------------------------- -- ADO Drivers -- Database Drivers -- Copyright (C) 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
4,766
ada
1
micahwelf/FLTK-Ada
src/fltk-devices-surfaces.ads
<filename>src/fltk-devices-surfaces.ads<gh_stars>1-10 with FLTK.Devices.Graphics; package FLTK.Devices.Surfaces is type Surface_Device is new Device with private; type Surface_Device_Reference (Data : not null access Surface_Device'Class) is limited null record with Implicit_Dereference => D...
4,767
ada
1
danva994/ASFML-1.6
include/sf-graphics-sprite.ads
-- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 <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 a...
4,768
ada
0
cocolab8/cocktail
reuse/ada/general.ads
<filename>reuse/ada/general.ads<gh_stars>0 -- $Id: General.md,v 1.5 1994/06/13 09:41:43 grosch rel $ -- $Log: General.md,v $ -- Ich, <NAME>, Informatiker, Aug. 1994 -- General Subroutines: minimum, maximum, binary logarithm, and power of 2 package General is type ForAlign is record char: Character; longreal: Long...
4,769
ada
0
Brawdunoir/administrative-family-tree-manager
arbre_binaire.ads
<filename>arbre_binaire.ads generic type T_Cle is private; -- Type clé générique. package Arbre_Binaire is Cle_Presente_Exception_Bin : Exception; -- une clé est déjà présente dans un arbre. Cle_Absente_Exception_Bin : Exception; -- une clé est absente d'un arbre. Emplacement_Reserve_Exception_Bin : Exceptio...
4,770
ada
0
sebsgit/textproc
src/tests/csvtests.adb
with AUnit.Assertions; use AUnit.Assertions; with Ada.Text_IO; with Ada.Containers; use Ada.Containers; with Ada.Numerics.Float_Random; with CSV; with MathUtils; use MathUtils.Float_Vec; package body CSVTests is procedure Register_Tests (T: in out TestCase) is use AUnit.Test_Cases.Registration; begin ...
4,771
ada
36
rewriting/tom
examples/ada/sl/visual/test.ads
<filename>examples/ada/sl/visual/test.ads<gh_stars>10-100 package Test is procedure run_test; end;
4,772
ada
1
LaudateCorpus1/RosettaCodeData
Task/Bitmap/Ada/bitmap-3.ada
<reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Bitmap/Ada/bitmap-3.ada use Bitmap_Store; with Bitmap_Store; ... X : Image (1..64, 1..64); begin Fill (X, (255, 255, 255)); X (1, 2) := (R => 255, others => 0); X (3, 4) := X (1, 2);
4,773
ada
0
corentingay/ada_epita
project/src/bitset_hpp.ads
<filename>project/src/bitset_hpp.ads pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; package bitset_hpp is type c_bitset3 is array (0 .. 3) of Extensions.Bool; type c_bitset8 is array (0 .. 8) of Extensions.Bool; package template_bitset_3 is ...
4,774
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/shapes/impact-d3-collision-quantized_bvh-optimized.adb
package body impact.d3.collision.quantized_Bvh.optimized is procedure dummy is begin null; end dummy; end impact.d3.collision.quantized_Bvh.optimized; -- -- #include "impact.d3.collision.quantized_Bvh.optimized.h" -- #include "impact.d3.striding_Mesh.h" -- #include "LinearMath/btAabbUtil2.h" -- #inclu...
4,775
ada
1
lkujaw/ada-blake2
gnat/quadlets.adb
<reponame>lkujaw/ada-blake2 ----------------------------------------------------------------------- -- Copyright 2021 <NAME> -- -- -- -- Permission is hereby granted, free of charge, to any person -- -- obtain...
4,776
ada
0
97kovacspeter/ADA
coords.adb
<reponame>97kovacspeter/ADA with Card_Dir; use Card_Dir; package body Coords is --1, function Get_X(C:Coord) return Integer is begin return C.x; end Get_X; function Get_Y(C:Coord) return Integer is begin return C.y; end Get_Y; --2, procedure Set_X(C: in out Coord;I:Integer) is begin C.x:=I; end Se...
4,777
ada
16
stcarrez/ada-enet
src/net-protos-ipv4.ads
<filename>src/net-protos-ipv4.ads ----------------------------------------------------------------------- -- net-protos-Ipv4 -- IPv4 Network protocol -- Copyright (C) 2016, 2017, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this...
4,778
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2111b.ada
<gh_stars>1-10 -- CE2111B.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,779
ada
0
fintatarta/pulsada
src/pulse/pulse_sample_h.ads
pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; -- with stdint_h; -- with stddef_h; with Interfaces.C.Strings; package pulse_sample_h is PA_CHANNELS_MAX : constant := 32; -- /usr/include/pulse/sample.h:130 PA_RATE_MAX : constant := (48000*4); -- /usr/include/pulse/sample.h:133 PA_SAM...
4,780
ada
1
MatrixMike/AdaDemo1
square_root.adb
--with Ada.Text_IO; with Ada.Numerics.Elementary_Functions; --use Ada.Text_IO; use Ada.Numerics.Elementary_Functions; --procedure call_recur is --function fac(n: Natural) is --begin -- if n = 1 then -- return 1; -- else -- return n * fac(n - 1); -- end if; -- return; --end fac; functio...
4,781
ada
1
LaudateCorpus1/RosettaCodeData
Task/Copy-a-string/Ada/copy-a-string-3.ada
<reponame>LaudateCorpus1/RosettaCodeData -- Instantiate the generic package Ada.Strings.Bounded.Generic_Bounded_Length with a maximum length of 80 characters package Flexible_String is new Ada.Strings.Bounded.Generic_Bounded_Length(80); use Flexible_String; Src : Bounded_String := To_Bounded_String("Hello"); Dest : Bo...
4,782
ada
3
rogermc2/GA_Ada
ga_lib/src/multivector_analyze_c3ga.adb
<reponame>rogermc2/GA_Ada<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with GL.Types; with Maths; -- with Utilities; with Blade_Types; with E3GA; with GA_Maths; with GA_Utilities; with Multivector_Utilities; with Metric; with Multivector_Type; package body Multivector_Analyze_C3GA is function Analyze_Fla...
4,783
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-2.2.1/wisitoken-parse-lr-mckenzie_recover.adb
<gh_stars>0 -- Abstract : -- -- See spec -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at you...
4,784
ada
0
reznikmm/gela
source/nodes/program-nodes-enumeration_literal_specifications.ads
<reponame>reznikmm/gela -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Names; with Program.Elements.Enumeration_Literal_Specifications; with Program.Element_Visitors; package Program.Nod...
4,785
ada
0
optikos/oasis
source/nodes/program-nodes-range_attribute_references.adb
<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Range_Attribute_References is function Create (Range_Attribute : not null Program.Elements.Attribute_Ref...
4,786
ada
0
xeenta/learning-ada
src/002/father-son.adb
with Ada.Text_IO; use Ada.Text_IO; package body Father.Son is function "+" (Left : Son_Type; Right : Father_Type) return Father_Type is T : Father_Type := Right; begin Put_Line ("using this"); Father_What (T); return Father_Type (3 * Integer (Left) + Integer (T)); end "+"; funct...
4,787
ada
0
reznikmm/markdown
sources/md/markdown-thematic_breaks.ads
<filename>sources/md/markdown-thematic_breaks.ads -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Tags; with Markdown.Blocks; limited with Markdown.Visitors; package Markdown.Thematic_Breaks is type Th...
4,788
ada
1
fabiojna02/OpenCellular
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-config_helpers.adb
<reponame>fabiojna02/OpenCellular -- -- Copyright (C) 2015-2016 secunet Security Networks AG -- -- 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 2 of the License, or -- (at your...
4,789
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.1.3/wisitoken-gen_token_enum.ads
-- Abstract : -- -- Support for an enumerated token type -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either versio...
4,790
ada
52
onox/orka
orka/src/gl/interface/gl-objects-textures.ads
<reponame>onox/orka -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 <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/...
4,791
ada
0
mgrojo/protobuf
source/compiler/compiler-context.ads
-- MIT License -- -- Copyright (c) 2020 <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...
4,792
ada
33
kqr/qweyboard
src/logging.adb
package body Logging is task body Log is Verbosity : Verbosity_Level := Log_Error; begin loop select accept Set_Verbosity (User_Verbosity : Verbosity_Level) do Verbosity := User_Verbosity; end Set_Verbosity; or accept Chat (Text : Wi...
4,793
ada
0
Ingen-ear/Formica
src/ant_handler.ads
package Ant_Handler with SPARK_Mode => On is function Do_Something (Text : String) return String; end Ant_Handler;
4,794
ada
0
xeenta/learning-ada
src/007/overlo.adb
<reponame>xeenta/learning-ada -- experiment with overloading with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure Overlo is function Do_Something (A : Integer) return Integer is begin Put_Line ("Integer " & Integer'Im...
4,795
ada
9
stcarrez/ada-search
src/model/search-models.adb
<filename>src/model/search-models.adb ----------------------------------------------------------------------- -- Search.Models -- Search.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- A...
4,796
ada
0
wgoops/fizzbuzz-all-languages-ever
A#/fizzbuzz.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure fizzbuzz is -- variable declaration I: integer := 1; begin for I in 1 .. 100 loop if I mod 3 = 0 then Put("Fizz"); end if; if I mod 5 = 0 then Put("Buzz"); end if; if I mod 3 /= 0 and I mod 5 /= ...
4,797
ada
7
Fabien-Chouteau/Giza
src/giza-widget-tiles.ads
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
4,798
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32l5x2/stm32_svd.ads
-- This spec has been automatically generated from STM32L5x2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- STM32L5x2 package STM32_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- DFSDM1_Base : c...
4,799
ada
0
Fabien-Chouteau/ASFML
include/sf-audio-music.ads
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2018 <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...