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 |
|---|---|---|---|---|---|
200 | ada | 15 | mgrojo/adalib | system-multiprocessors-dispatching_domains.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... |
201 | ada | 0 | twdroeger/ada-awa | awa/regtests/awa-mail-modules-tests.adb | -----------------------------------------------------------------------
-- awa-mail-module-tests -- Unit tests for Mail module
-- Copyright (C) 2012, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wi... |
202 | ada | 0 | 0xA1/pi-spi | example/send_byte.adb | with ada.text_io; use ada.text_io;
with spi; use spi;
with stdint_h; use stdint_h;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with ada.command_line; use ada.command_line;
with ada.exceptions; use ada.exceptions;
procedure Send_Byte is
device : aliased SPI_D... |
203 | ada | 0 | persan/dds-requestreply | src/dds-request_reply.ads | package DDS.Request_Reply is
type Ref is limited interface;
type Ref_Access is access all Ref'Class;
procedure Log_Exception (Self : not null access Ref; Log : Standard.String) is null;
end DDS.Request_Reply;
|
204 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/lib-xref.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
205 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-generate-lr-lr1_generate.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2017 - 2020 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under terms of the GNU General Public License as
-- published by the Free Softwa... |
206 | ada | 0 | vonNiklasson/KTH-programming-benchmark | src/Ada/collatz/col.adb | <gh_stars>0
with Gnat.Io; use Gnat.Io;
procedure col is
function collatz(n1: Integer) return Integer is
c: Integer;
n: Integer;
begin
n := n1;
c := 0;
while n /= 1 loop
if n mod 2 = 0 then
n := n / 2;
else
n := n * ... |
207 | ada | 2 | heharkon/cmd_ada | example_app/src/example_app.adb | <filename>example_app/src/example_app.adb
with Cmd_ada;
with Test_Procs;
procedure Example_App is
begin
Cmd_ada.Register_Command
(Command_String => "test1", Command_Cb => Test_Procs.Test1'Access,
Description => "Just a test");
Cmd_ada.Register_Command
(Command_String => "test2", Command_Cb =>... |
208 | ada | 24 | svn2github/matreshka | source/league/iana/matreshka-internals-text_codecs-iana_registry.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
209 | ada | 1 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-entry.d/input_1.ads | <reponame>f110/wing<filename>third_party/universal-ctags/ctags/Units/parser-ada.r/ada-entry.d/input_1.ads<gh_stars>1-10
-- package Mes_Tasches_P is
package Input_1 is
task Ma_Tasche is
entry Accepter
(Continuer : Boolean);
end Ma_Tasche;
task Mon_Autre_Tasche;
task type Tasche_Type_1_T;
... |
210 | ada | 22 | Melyodas/metalang | out/euler34.adb | <gh_stars>10-100
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure euler34 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Writ... |
211 | ada | 80 | thindil/steamsky | tests/game-test_data-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 test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
212 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-cofove.ads | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
213 | ada | 4 | faelys/gela-asis | source/asis/spec/annex_c/ada-interrupts.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
214 | ada | 4 | stcarrez/ada-lzma | samples/decompress.adb | -----------------------------------------------------------------------
-- decompress - Decompress example based on the 02_decompress.c example
-- The MIT License (MIT)
--
-- Copyright (c) 2015 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associa... |
215 | ada | 6 | gerr135/ada_gems | ada_lists/src/iface_lists.adb | <filename>ada_lists/src/iface_lists.adb<gh_stars>1-10
-- with Ada.Text_IO; use Ada.Text_IO;
package body Iface_Lists is
function Has_Element (Position : Cursor) return Boolean is
-- Ada's stock ACV checks for Position = No_Element here,
-- which requires much more bookkeeping, possibly type speci... |
216 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/common/tkmrpc-response-ike-isa_sign.ads | with Tkmrpc.Types;
with Tkmrpc.Operations.Ike;
package Tkmrpc.Response.Ike.Isa_Sign is
Data_Size : constant := 388;
type Data_Type is record
Signature : Types.Signature_Type;
end record;
for Data_Type use record
Signature at 0 range 0 .. (388 * 8) - 1;
end record;
for Data_Type'Size us... |
217 | ada | 1 | selroc/Renaissance-Ada | src/tools/Dependency_Graph_Extractor/src/extraction-decls.adb | <filename>src/tools/Dependency_Graph_Extractor/src/extraction-decls.adb
with Extraction.Node_Edge_Types;
with Extraction.Utilities;
package body Extraction.Decls is
use type LALCO.Ada_Node_Kind_Type;
function Is_Standard_Package_Decl(Node : LAL.Ada_Node'Class) return Boolean is
Standard_Unit : consta... |
218 | ada | 70 | Lucretia/bare_bones | src/vga_console.adb | -- -*- Mode: Ada -*-
-- Filename : vga_console.adb
-- Description : Implementation of a console for PC using VGA text mode.
-- Author : <NAME>
-- Created On : Thu Jun 14 12:09:31 2012
-- Licence : See LICENCE in the root directory.
---------------------... |
219 | ada | 0 | faelys/natools | src/natools-getopt_long.ads | <filename>src/natools-getopt_long.ads
------------------------------------------------------------------------------
-- Copyright (c) 2011, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute t... |
220 | ada | 4 | davidkristola/vole | kv-avm-instances.adb | <reponame>davidkristola/vole
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.references; use kv.avm.references;
with kv.avm.Actor_References;
with kv.avm.actor_pool;
with kv.avm.Methods;
package body kv.avm.Instances... |
221 | ada | 0 | My-Colaborations/dynamo | regtests/gen-artifacts-xmi-tests.adb | -----------------------------------------------------------------------
-- gen-xmi-tests -- Tests for xmi
-- Copyright (C) 2012 <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 may... |
222 | ada | 0 | sebsgit/textproc | src/stbiwrapper.adb | <reponame>sebsgit/textproc<gh_stars>0
package body StbiWrapper is
function load(filename: C.Strings.chars_ptr; x: IntPtr.Pointer; y: IntPtr.Pointer; channels_in_file: IntPtr.Pointer; desired_channels: C.int) return UCharPtr.Pointer
with
import => True,
Convention => C,
External_Name => "stb... |
223 | ada | 0 | charlesincharge/EmbeddedAda | hello_world.adb | -- Lines starting with `--` are treated as comments.
-- Compile with `gnatmake hello_world.adb`, then run the executable with
-- `./hello_world`
-- Import the Ada.Text_IO package
with Ada.Text_IO;
-- `procedure` indicates the start of the subprogram
procedure Hello_World is
-- Declare variables here
begin
-- Fu... |
224 | ada | 60 | RREE/ada-util | samples/csv_reader.adb | -----------------------------------------------------------------------
-- csv_reader -- Read CSV file
-- Copyright (C) 2011, 2017 <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 ... |
225 | ada | 52 | onox/orka | orka_simd/src/x86/generic/orka-simd-sse-singles-swizzle.adb | -- 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 copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
226 | ada | 1 | mullikine/RosettaCodeData | Task/Prime-decomposition/Ada/prime-decomposition-3.ada | with Prime_Numbers, Ada.Text_IO;
procedure Test_Prime is
package Integer_Numbers is new
Prime_Numbers (Natural, 0, 1, 2);
use Integer_Numbers;
procedure Put (List : Number_List) is
begin
for Index in List'Range loop
Ada.Text_IO.Put (Positive'Image (List (Index)));
end loop;
e... |
227 | ada | 0 | iyan22/AprendeAda | ejercicios1/grafico.adb | with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
procedure grafico (n1: in Integer) is
begin
for filas in 1..n1 loop
for columnas in 1..n1 loop
if filas>=columnas then
put('*');
else
put('0');
end if;
end loop;
new_line;
end loop;
new_line;
end grafico;
|
228 | ada | 76 | yannickmoy/SPARKNaCl | tests/scalarmult6.adb | <reponame>yannickmoy/SPARKNaCl<filename>tests/scalarmult6.adb
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Scalar; use SPARKNaCl.Scalar;
procedure Scalarmult6
is
BobSK : constant Bytes_32 :=
(16#5d#, 16#ab#, 16#08#, 16#7e#, 16#62#, 16#4a#, 16#8a#, 16#4b#,
... |
229 | ada | 1 | io7m/coreland-openal-ada | openal-list.ads | with Ada.Containers.Indefinite_Vectors;
with System;
package OpenAL.List is
package String_Vectors is new Ada.Containers.Indefinite_Vectors
(Index_Type => Positive,
Element_Type => String);
subtype String_Vector_t is String_Vectors.Vector;
procedure Address_To_Vector
(Address : in System.Ad... |
230 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | boards/msp_exp430g2/mspgd-board.adb | with System;
with Startup;
package body MSPGD.Board is
procedure Init is
begin
Clock.Init;
LED_RED.Init;
LED_GREEN.Init;
RX.Init;
TX.Init;
BUTTON.Init;
UART.Init;
end Init;
end MSPGD.Board;
|
231 | ada | 4 | jorge-real/Ball-On-Beam | utils/csv_logs.ads | <reponame>jorge-real/Ball-On-Beam<filename>utils/csv_logs.ads<gh_stars>1-10
--------------------------------------------------------------------------------
-- --
-- C S V _ L O G S --... |
232 | ada | 1 | mullikine/RosettaCodeData | Task/Assertions/Ada/assertions-2.ada | with Ada.Assertions; use Ada.Assertions;
...
Assert (A = 42, "Oops!");
|
233 | ada | 2 | stcarrez/bbox-ada-api | src/bbox-api.ads | -----------------------------------------------------------------------
-- bbox -- Bbox API
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy... |
234 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/alignment2.ads | <gh_stars>1-10
-- { dg-do compile }
with Interfaces; use Interfaces;
package Alignment2 is
pragma Warnings (Off, "*size*");
-- warning
type R1 is record
A, B, C, D : Integer_8;
end record;
for R1'Size use 32;
for R1'Alignment use 32; -- { dg-warning "suspiciously large alignment" }
-- warning
t... |
235 | ada | 0 | hergin/ada2fuml | test-resources/ExamplesFromRoy/md_example4.ads | <reponame>hergin/ada2fuml
with Globals_Example1;
package Md_Example4 is
type T is tagged record
Attribute : Globals_Example1.Itype;
end record;
-- Ada Rules state that all tagged operations must be defined here
function Unrelated (The_I : Globals_Example1.Itype)
return Globals_Example1.Itype... |
236 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math.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 r... |
237 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-traceb.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
238 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-envvar.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
239 | ada | 52 | onox/orka | orka/src/gl/interface/gl-objects-shaders.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0... |
240 | ada | 0 | JeremyGrosser/usb_embedded | tests/support/hex_dump.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
241 | ada | 33 | ytomino/drake | source/calendar/machine-apple-darwin/s-naexti.adb | <filename>source/calendar/machine-apple-darwin/s-naexti.adb
with System.Native_Time;
with C.sys.resource;
with C.sys.time;
package body System.Native_Execution_Time is
use type C.signed_int;
function To_Duration (D : C.sys.time.struct_timeval) return Duration;
function To_Duration (D : C.sys.time.struct_timev... |
242 | ada | 6 | osannolik/ada-canopen | src/aco-od_types.ads | with Interfaces;
package ACO.OD_Types is
pragma Preelaborate;
subtype Object_Index is Interfaces.Unsigned_16;
subtype Object_Subindex is Interfaces.Unsigned_8;
type Entry_Index is record
Object : Object_Index;
Sub : Object_Subindex;
end record;
type Byte_Array is array (Natural ra... |
243 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/common/hil/hil-gpio.ads | <filename>software/hal/boards/common/hil/hil-gpio.ads<gh_stars>10-100
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
with HIL.Devices;
-- @summary
-- Target-independent specification for HIL of GPIO
package HIL.G... |
244 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/projet/src/test_arbre_binaire.adb | <filename>1A/S5/PIM/projet/src/test_arbre_binaire.adb<gh_stars>1-10
--------------------------------------------------------------------------------
-- Fichier : arbre_binaire.ads
-- Auteur : <NAME> & <NAME>
-- Objectif : Test du module Arbre_Binaire.
-- Créé : <NAME> 25 2019
--------------------------------... |
245 | ada | 1 | skill-lang/skillAdaTestSuite | test/unknown/test_unknown-read.ads | with Ada.Characters.Handling;
with Ada.Strings.Fixed;
with Ada.Tags;
with Ahven.Framework;
with Unknown.Api;
package Test_Unknown.Read is
package Skill renames Unknown.Api;
use Unknown;
use Unknown.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test... |
246 | ada | 24 | svn2github/matreshka | tools/token_transformer/token_generator.adb | <filename>tools/token_transformer/token_generator.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
247 | ada | 2 | kevinrosalesdev/MathArray-FormalVerification | src/matharray.ads | <filename>src/matharray.ads
with Ada.Numerics.Elementary_Functions;
use Ada.Numerics.Elementary_Functions;
package MathArray with SPARK_Mode => On is
type vec is array(Natural range <>) of Integer;
type vecFloat is array(Natural range <>) of Float;
function midpoint (point1 : vec; point2 : vec) return ve... |
248 | ada | 0 | optikos/oasis | source/oasis/program-elements-decimal_fixed_point_types.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Real_Range_Specificatio... |
249 | ada | 5 | JeremyGrosser/notcursesada | src/notcurses.ads | <filename>src/notcurses.ads<gh_stars>1-10
--
-- Copyright 2021 (C) <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: Apache-2.0
--
with Ada.Unchecked_Conversion;
with Interfaces;
with Interfaces.C.Strings;
with Interfaces.C_Streams;
with Interfaces.C;
with Notcurses_Thin;
package Notcurses is
type Notcurses_Context... |
250 | ada | 2 | charlie5/cBound | tier-2/festival/source/thin/festival-pointer_pointers.ads | <reponame>charlie5/cBound<filename>tier-2/festival/source/thin/festival-pointer_pointers.ads
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with festival.Pointers;
with interfaces.C;
package festival.pointer_Pointers is
-- FILE_Pointer_Pointer
--
type FILE_Pointer_Pointer is access ... |
251 | ada | 1 | io7m/coreland-opengl-ada | opengl-view.adb | <filename>opengl-view.adb
with OpenGL.Thin;
package body OpenGL.View is
--
-- Viewport specification.
--
procedure Depth_Range
(Near : in OpenGL.Types.Clamped_Double_t;
Far : in OpenGL.Types.Clamped_Double_t) is
begin
Thin.Depth_Range
(Near_Value => Thin.Double_t (Near),
Far_Valu... |
252 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/stm32f4-spi.ads | ------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- --
-- ... |
253 | ada | 0 | zdimension/tdinfo302 | src/tp3_niget.adb | <reponame>zdimension/tdinfo302
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Maps.Constants;
-- NIGET TOM PEIP2-B2
-- IMPORTANT !
-- Si vous utilisez GNAT ou une vieille version d'Ada pas aux normes,
-- dé... |
254 | ada | 1 | TamaMcGlinn/ada_raspio | src/raspio.ads | <reponame>TamaMcGlinn/ada_raspio
package Raspio is
Initialization_Error : exception;
procedure Initialize;
end Raspio;
|
255 | ada | 12 | TUM-EI-RCS/StratoX | software/unittest/estimator/src/fakedev/nvram.ads | <filename>software/unittest/estimator/src/fakedev/nvram.ads
-- Institution: Technische Universität München
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
with Interfaces; use Interfaces;
with HIL;
-- @summary
-- read/write from/to a non-volatile locatio... |
256 | ada | 0 | TNO/Dependency_Graph_Extractor-Ada | src/extraction.adb | <gh_stars>0
with Ada.Exceptions;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Text_IO;
with Extraction.Bodies_For_Decls;
with Extraction.Bodies_For_Entries;
with Extraction.Decls;
with Extraction.Deferred_Constants;
with Extraction.Derived_Type_Defs;
with Extraction.Direct_Calls;
with Extraction.File_System;
with ... |
257 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_dim.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
258 | ada | 80 | thindil/steamsky | src/bases-trade.ads | -- Copyright 2017-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) a... |
259 | ada | 8 | pvrego/adaino | examples/usart_interruptive_echo_issue_dbg/src/test.adb | <reponame>pvrego/adaino
with AVR;
with AVR.USART;
package body Test is
procedure Handle_Interrupt_USART1_RX is
Curr_Buffer : AVR.Byte_Type;
begin
Curr_Buffer := AVR.USART.Reg_USART1.UDR;
AVR.USART.Reg_USART1.UDR := Curr_Buffer;
end Handle_Interrupt_USART1_RX;
end Test;
|
260 | ada | 1 | mapcode-foundation/mapcode-ada | src/mapcodes-languages.ads | <reponame>mapcode-foundation/mapcode-ada<gh_stars>1-10
-- -----------------------------------------------------------------------------
-- 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 exc... |
261 | ada | 1 | gregorymorrison/euler1 | ada/euler1_3.adb | <gh_stars>1-10
-- Euler1 in Ada
with Ada.Integer_Text_IO;
procedure Euler1_3 is
function Euler(n : in Integer; acc : in Integer := 0) return Integer is
begin
if n = 0 then
return acc;
elsif n mod 3 = 0 or n mod 5 = 0 then
return Euler(n-1, acc+n);
else
return Euler(n-1, acc);
end if;... |
262 | ada | 12 | TUM-EI-RCS/StratoX | bug-reports/incorrect-pre-proof/src/main.adb | <reponame>TUM-EI-RCS/StratoX
with foo; use foo;
with Interfaces; use Interfaces;
-- GNATprove GPL 2016 seems to miss a failed precondition check
-- in the call at line 18. Reason is insufficient knowledge on
-- others=>, causing a false negative there, which in turn hides
-- a serious bug.
-- Fixed in GNATprove P... |
263 | ada | 0 | 50m-regent/HelloWorldExibition | showroom/ada.adb | <gh_stars>0
with Ada.Text_IO;
procedure Prologue is
begin
Ada.Text_IO.Put("Hello World!");
end Prologue; |
264 | ada | 9 | AntonMeep/parse_args | src/parse_args-integer_array_options.ads | -- parse_args-integer_array_options.ads
-- A simple command line option parser
-- Copyright (c) 2015, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in ... |
265 | ada | 4 | carter-e-veldhuizen/RACK | ada/examples/regression/regression_library.adb | <filename>ada/examples/regression/regression_library.adb
package body Regression_Library is
function LibraryFun (Input : Boolean) return Boolean is
begin
return False;
end;
end Regression_Library;
|
266 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-turkish.adb | <reponame>stcarrez/ada-stemmer
-- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Turkish is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "*formal ... |
267 | ada | 3 | rogermc2/GA_Ada | ga_lib/src/svd.ads |
with Ada.Numerics.Generic_Real_Arrays;
with GA_Maths;
package SVD is
type Real is digits 18;
package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real);
type SVD (Num_Rows, Num_Cols, Num_Singular, Work_Vector_Rows : Natural) is private;
SVD_Exception : Exception;
function Condition_Nu... |
268 | ada | 0 | joewing/arbitrary | arbitrary-const.ads | <reponame>joewing/arbitrary
--------------------------------------------------------------------------
-- Arbitrary Precision Math Library: Constants
-- <NAME> 20020320 <> 20020327
--------------------------------------------------------------------------
package Arbitrary.Const is
function Pi(precision : integer) r... |
269 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/tblcmp.ads | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and this... |
270 | ada | 0 | reznikmm/declarative-regions | source/regions/regions-shared_lists.adb | with Ada.Unchecked_Deallocation;
package body Regions.Shared_Lists is
procedure Reference (Self : not null List_Node_Access) with Inline;
procedure Unreference (Self : in out List_Node_Access) with Inline;
procedure Free is new Ada.Unchecked_Deallocation
(List_Node, List_Node_Access);
---------
... |
271 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-elements-defs.ads |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributio... |
272 | ada | 0 | hgrodriguez/edc-client | src/edc_client-led.ads | <reponame>hgrodriguez/edc-client
--===========================================================================
--
-- This package is the interface to the LED part of the EDC Client
--
--===========================================================================
--
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Iden... |
273 | ada | 0 | jquorning/CELLE | source/symbols-io.adb | <filename>source/symbols-io.adb
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.T... |
274 | ada | 34 | GaloisInc/hacrypto | src/C/nss/nss-3.16.1/nss/lib/freebl/mpi/hppatch.adb | #/bin/sh
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# script to change the system id in an object file from PA-RISC 2.0 to 1.1
adb -w $1 << EOF
?m 0 -1 0
0x0?X
... |
275 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/gnarl-common/a-taster.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
276 | ada | 33 | ytomino/drake | source/pools/machine-apple-darwin/s-unball.ads | pragma License (Unrestricted);
-- implementation unit specialized for Darwin
with System.Storage_Elements;
private with C.malloc.malloc;
package System.Unbounded_Allocators is
-- Separated storage pool for local scope.
pragma Preelaborate;
type Unbounded_Allocator is limited private;
procedure Initializ... |
277 | ada | 30 | jrmarino/AdaBase | testcases/fruit1/fruit1.adb | with AdaBase;
with Connect;
with Ada.Text_IO;
procedure Fruit1 is
package CON renames Connect;
package TIO renames Ada.Text_IO;
numrows : AdaBase.Affected_Rows;
cmd : constant String := "DELETE FROM fruits WHERE color = 'red'";
begin
CON.connect_database;
numrows := CON.DR.execute (sql => cmd);... |
278 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34009g.ada | -- C34009G.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... |
279 | ada | 0 | likai3g/afmt | src/fmt-generic_ordinary_fixed_point_argument.ads | <gh_stars>0
generic
type Fixed_Point_Type is delta <>;
package Fmt.Generic_Ordinary_Fixed_Point_Argument is
function To_Argument (X : Fixed_Point_Type) return Argument_Type'Class
with Inline;
function "&" (Args : Arguments; X : Fixed_Point_Type) return Arguments
with Inline;
private
type Fixe... |
280 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-toolbar.adb | package body agar.gui.widget.toolbar is
package cbinds is
function allocate
(parent : widget_access_t;
bar_type : type_t;
num_rows : c.int;
flags : flags_t) return toolbar_access_t;
pragma import (c, allocate, "AG_ToolbarNew");
procedure row
(toolb... |
281 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/wide_boolean_pkg.adb | <reponame>best08618/asylo
package body Wide_Boolean_Pkg is
procedure Modify (LH : in out TUINT32; LB : in out TBOOL) is
begin
LH := 16#12345678#;
LB := TRUE;
end;
end Wide_Boolean_Pkg;
|
282 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Terminal-control-Cursor-positioning/Ada/terminal-control-cursor-positioning.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO;
procedure Cursor_Pos is
begin
Ada.Text_IO.Set_Line(6);
Ada.Text_IO.Set_Col(3);
Ada.Text_IO.Put("Hello");
end Cursor_Pos;
|
283 | ada | 1 | assessorgeneral/ConQAT | org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.coverage.volume/loops.adb | <gh_stars>1-10
with Ada.Text_IO;
procedure Hello is
package IO renames Ada.Text_IO;
begin
loop
foo();
exit when 2 > 3;
bar();
exit when 2 > 3 and 3 > 4;
end loop;
end Hello;
|
284 | ada | 0 | SSOCsoft/Log_Reporter | src/ini-section_to_vector.adb | <reponame>SSOCsoft/Log_Reporter
Function INI.Section_to_Vector( Object : in Instance;
Section: in String:= ""
) return NSO.Types.String_Vector.Vector is
Use NSO.Types.String_Vector;
Begin
Return Result : Vector do
For Item in Object(S... |
285 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/globe_3d-options.adb | <reponame>ForYouEyesOnly/Space-Convoy
package body GLOBE_3D.Options is
function Is_debug_mode return Boolean is
begin
return
show_normals or
show_portals or
full_check_objects or
filter_portal_depth;
end Is_debug_mode;
end GLOBE_3D.Options;
|
286 | ada | 12 | TUM-EI-RCS/StratoX | software/modules/actuators/servo.ads | -- Institution: Technische Universitaet Muenchen
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
-- <NAME> (<EMAIL>)
--
-- @summary Servo Actuator frontend
with Units; use Units;
with Config; use Config;
package Servo with SPARK_Mode is
... |
287 | ada | 33 | ytomino/drake | source/image/s-valerr.ads | pragma License (Unrestricted);
-- implementation unit
package System.Value_Errors is
pragma Pure;
procedure Raise_Value_Failure (T : String; S : String);
pragma No_Return (Raise_Value_Failure);
procedure Raise_Discrete_Value_Failure (T : String; S : String);
-- Returns if the flag of System.Runtim... |
288 | ada | 0 | yannickmoy/spat | src/spat-proof_attempt.ads | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the... |
289 | ada | 0 | GLADORG/glad-cli | src/commands-destroy.adb | <reponame>GLADORG/glad-cli
with Ada.Containers; use Ada.Containers;
with Ada.Directories; use Ada.Directories;
with Blueprint; use Blueprint;
with AAA.Strings; use AAA.Strings;
with Ada.Command_Line;
with Ada.Text_IO;
with Templates_Parser;
with CLIC.TTY;
with Filesystem;
with Commands;
package body Command... |
290 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/opengl-terrain.ads | with
openGL.Visual;
package openGL.Terrain
--
-- Provides a constructor for heightmap terrain.
--
is
function new_Terrain (heights_File : in asset_Name;
texture_File : in asset_Name := null_Asset;
Scale : in math.Vector_3 := (1.0, 1.0, 1.0)) return ... |
291 | ada | 1 | mosteo/ansi-ada | src/ansi.ads | package ANSI with Pure is
Reset_All : constant String;
-- Resets the device to its original state. This may include (if
-- applicable): reset graphic rendition, clear tabulation stops, reset
-- to default font, and more.
type States is (Off, On);
function Shorten (Sequence : String) return Strin... |
292 | ada | 80 | thindil/steamsky | tests/events-test_data-tests.adb | <reponame>thindil/steamsky<filename>tests/events-test_data-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 test routine bod... |
293 | ada | 0 | AntonioRamosNieto/TFG-STM32F429 | STM32F4/ToyOBDH/src/housekeeping.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Universidad Politécnica de Madrid --
-- --
-- ... |
294 | ada | 1 | assessorgeneral/ConQAT | org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.coverage.volume/loops2.adb | with Ada.Text_IO;
procedure Hello is
package IO renames Ada.Text_IO;
begin
for I in Integer range 1 .. 10 loop
bar();
end loop;
end Hello;
|
295 | ada | 0 | btmalone/alog | aunit/aunit-tests.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
296 | ada | 0 | marcello-s/AeonFlux | src/ada/AeonFlux/Parser/TokenReading.ads | -- Copyright (c) 2015-2019 <NAME>
-- for details see License.txt
with TokenValue; use TokenValue;
package TokenReading is
type Object is interface;
function ReadToken (O : Object) return TokenValue.Object is abstract;
end TokenReading;
|
297 | ada | 3 | jwarwick/aoc_2020 | day13/src/main.adb | <reponame>jwarwick/aoc_2020<gh_stars>1-10
-- AOC 2020, Day 13
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
s : constant Schedule := load_file("input.txt");
part1 : constant Long_Long_Integer := bus_mult(s);
part2 : constant Long_Long_Integer := earliest_matching(s);
begin
put_line("P... |
298 | ada | 1 | charlie5/lace-alire | 1-base/math/source/generic/pure/geometry/any_math-any_geometry-any_d3-any_modeller-any_forge.adb | <reponame>charlie5/lace-alire<filename>1-base/math/source/generic/pure/geometry/any_math-any_geometry-any_d3-any_modeller-any_forge.adb
with
ada.Text_IO,
ada.Strings.unbounded,
ada.Strings.Maps;
package body any_Math.any_Geometry.any_d3.any_Modeller.any_Forge
is
function to_Box_Model (half_Extents ... |
299 | ada | 52 | onox/orka | orka/src/gl/interface/gl-objects-queries.ads | <reponame>onox/orka<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 copy of the License at
--
-- http://w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.