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 |
|---|---|---|---|---|---|
8,400 | ada | 18 | jquorning/ada-wiki | src/wiki-streams-builders.adb | -----------------------------------------------------------------------
-- wiki-writers-builders -- Wiki writer to a string builder
-- Copyright (C) 2011, 2012, 2013, 2015, 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ... |
8,401 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/A+B/Ada/a+b-2.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO;
procedure A_Plus_B is
type Small_Integers is range -2_000 .. +2_000;
subtype Input_Values is Small_Integers range -1_000 .. +1_000;
package IO is new Ada.Text_IO.Integer_IO (Num => Small_Integers);
A, B : Input_Values;
begin
IO.Get (A);
IO.Ge... |
8,402 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr11.ads | with Discr11_Pkg; use Discr11_Pkg;
package Discr11 is
type DT_2 is new DT_1 with record
More : Integer;
end record;
function Create return DT_2;
end Discr11;
|
8,403 | ada | 0 | skill-lang/adaCommon | src/skill-containers.ads | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skill containers collection --
-- |___/_|\_\_|_|____| by: <NAME> --
-... |
8,404 | ada | 3 | jwarwick/aoc_2020 | day12/src/main.adb | <filename>day12/src/main.adb
-- AOC 2020, Day 12
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
f : constant Ferry := load_file("input.txt");
part1 : constant Natural := distance(f);
part2 : constant Natural := waypoint_distance(f);
begin
put_line("Part 1: " & Natural'Image(part1));
... |
8,405 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto17.ads | package Lto17 is
type Chunk_List_Element;
type Chunk_List is access Chunk_List_Element;
type Arr is array (Natural range <>) of Integer;
type Chunk(Size : Natural) is record
Data : Arr(1 .. Size);
Where : Natural;
end record;
type Chunk_List_Element(Size : Natural) is record
Chn... |
8,406 | ada | 0 | Arles96/PCompiladores | Pruebas/pruebaDeclFunc.adb | <gh_stars>0
procedure x is
id, id1, id2: Integer;
function Minimo (a, b: Integer) return Integer is
begin
if a < b then return a;
else return b;
end if;
end Minimo;
procedure x3 is
begin
put("H<NAME>");
end x3;
begin
put(Minimo(1,2));
end x; |
8,407 | ada | 0 | hgrodriguez/edc-client | src/edc_client-matrix-word.adb | --
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
private with Edc_Client.Matrix.Common;
package body Edc_Client.Matrix.Word is
--------------------------------------------------------------------------
-- see .ads
procedure Show_LSB (Value : HAL.UInt8) is
begin
Edc_... |
8,408 | ada | 0 | SmashedSquirrel/AdaPrimes | intrf.adb | <reponame>SmashedSquirrel/AdaPrimes
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Math_Pkg;
use Ada;
package body Interface_Pkg is
procedure find_prime is
number : Integer :=0;
yes : Boolean :=false;
begin
Text_IO.put("Enter positives integers below 1000, negative to end");
ada.text_iO.New_Line;
... |
8,409 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/smartfusion2/s-sf2uar.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
8,410 | ada | 12 | jquorning/ada-asf | src/asf-components-widgets-panels.ads | -----------------------------------------------------------------------
-- components-widgets-panels -- Collapsible panels
-- Copyright (C) 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 the Lic... |
8,411 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/a-intnam__x86_64.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
8,412 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/utils/string_utils.ads | with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
package String_Utils is
function To_String (Input : Int32) return String;
function To_String (Input : Int64) return String;
function To_String (Input : UInt32) return String;
end String_Utils;
|
8,413 | ada | 0 | balintsoos/LearnAda | gyak/gyak1-2/max2.adb | <reponame>balintsoos/LearnAda
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Mat; -- use Mat;
procedure Max2 is
A, B : Positive;
begin
Get( A );
Get( B );
Put( Mat.Max2(A,B) );
end Max2;
|
8,414 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/mlib-tgt-aix.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
8,415 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c62006a.ada | <gh_stars>1-10
-- C62006A.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.... |
8,416 | ada | 0 | Letractively/ada-awa | awa/plugins/awa-workspaces/src/awa-workspaces-modules.ads | <filename>awa/plugins/awa-workspaces/src/awa-workspaces-modules.ads
-----------------------------------------------------------------------
-- awa-workspaces-module -- Module workspaces
-- Copyright (C) 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "Licen... |
8,417 | ada | 0 | fintatarta/protypo | src/lib/Generic_Symbol_Table/symbol_tables-generic_symbol_table.adb | <reponame>fintatarta/protypo<gh_stars>0
pragma Ada_2012;
with Ada.Text_IO; use Ada.Text_IO;
package body Symbol_Tables.Generic_Symbol_Table is
Activate_Debug : constant Boolean := False;
Printer : Value_Printer := null;
procedure Set_Printer (Callback : Value_Printer) is
begin
Printer := Callback;... |
8,418 | ada | 2 | thindil/tashy2 | tests/tk-bind-test_data-tests.adb | <filename>tests/tk-bind-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
-- ... |
8,419 | ada | 20 | charlie5/lace | 1-base/math/source/generic/pure/geometry/any_math-any_geometry.adb | <filename>1-base/math/source/generic/pure/geometry/any_math-any_geometry.adb
package body any_Math.any_Geometry
is
function Image (Self : in Triangle) return String
is
begin
return "(" & Vertex_Id'Image (Self (1)) & ","
& Vertex_Id'Image (Self (2)) & ","
& Vertex_Id'Im... |
8,420 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/prj-strt.ads | <filename>tools-src/gnu/gcc/gcc/ada/prj-strt.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,421 | ada | 202 | bunyk/pss | test/testdirs/testdir1/subdir1/wholewords.adb | here xaxo is a whole word
herexaxo isn't
|
8,422 | ada | 0 | euripedesrocha/plugtrain | src/main.adb | with Interfaces.ATSAM4L.GPIO; use Interfaces.ATSAM4L.GPIO;
procedure Main is
type int is range 0 .. 50;
counter : int := 0;
begin
GPIO_Periph.GPER2.Arr (7) := 1;
GPIO_Periph.ODER2.Arr (7) := 1;
GPIO_Periph.OVR2.Arr (7) := 1;
loop
counter := counter + 1;
end loop;
end Main;
|
8,423 | ada | 1 | stcarrez/babel | src/babel-files-signatures.ads | -----------------------------------------------------------------------
-- babel-files-signatures -- Signatures calculation
-- Copyright (C) 2014, 2015, 2016 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
8,424 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/based_numbers.ads | package Based_Numbers is
TWO_HUNDRED_FIFTY_FIVE_0 : constant := 255;
TWO_HUNDRED_FIFTY_FIVE_1 : constant := 2#1111_1111#;
TWO_HUNDRED_FIFTY_FIVE_2 : constant := 16#FF#;
TWO_HUNDRED_FIFTY_FIVE_3 : constant := 016#0FF#;
TWO_HUNDRED_TWENTY_FOUR_0 : constant := 224;
TWO_HUNDRED_TWENTY_FOUR_1 : constant := 16... |
8,425 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-base_lists.ads | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
8,426 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l5x2/stm32_svd-dfsdm.ads | -- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DFSDM is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CH0CFGR1_SITP_Field ... |
8,427 | ada | 20 | charlie5/lace | 2-low/collada/source/collada-document.ads | <filename>2-low/collada/source/collada-document.ads
with
collada.Asset,
collada.Libraries;
package collada.Document
--
-- Models a colada document.
--
is
type Item is tagged private;
function to_Document (Filename : in String) return Item;
function Asset (Self : in Item) return collada.Asset ... |
8,428 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3019c1.ada | -- CC3019C1.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.
-- Unlimi... |
8,429 | ada | 1 | michalkonecny/polypaver | tools/SPARK2005/packages/polypaver/pp_lf_rounded.adb | <filename>tools/SPARK2005/packages/polypaver/pp_lf_rounded.adb
-- This file cannot be processed by the SPARK Examiner.
with Ada.Numerics,
Ada.Numerics.Long_Elementary_Functions;
package body PP_LF_Rounded is
function Plus (Prec : Integer; X,Y : Long_Float) return Long_Float is
begin
return X+Y;
end... |
8,430 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/case_optimization_pkg1.ads | <gh_stars>1-10
package Case_Optimization_Pkg1 is
type Element is null record;
type Internal_Element_Kinds is
(Not_An_Element,
An_All_Calls_Remote_Pragma,
An_Asynchronous_Pragma,
An_Atomic_Pragma,
An_Atomic_Components_Pragma,
An_Attach_H... |
8,431 | ada | 5 | docandrew/troodon | src/events-inputs.adb | <filename>src/events-inputs.adb
package body Events.Inputs is
end Events.Inputs; |
8,432 | ada | 5 | jhumphry/SPARK_SipHash | src/siphash-discrete.ads | <reponame>jhumphry/SPARK_SipHash
-- SipHash.Discrete
-- Implementing SipHash over a generic (relatively small) discrete type
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
-- This generic function will calculate SipHash over arrays such as the standard
-- String type, a discrete type indexed by an integ... |
8,433 | ada | 0 | ytomino/gnat4drake | g-encstr.ads | <filename>g-encstr.ads
pragma License (Unrestricted);
with System.WCh_Con;
generic
Encoding_Method : System.WCh_Con.WC_Encoding_Method;
package GNAT.Encode_String is
pragma Pure;
function Encode_Wide_Wide_String (S : Wide_Wide_String) return String;
end GNAT.Encode_String;
|
8,434 | ada | 1 | jnguyen1098/legacy-software | anagram-generator-ada/src/scramble.adb | -----------------------------------------------------------------------
-- Word Scrambler --
-- By: <NAME> (XXXXXXX) --
-----------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
wi... |
8,435 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-standard_profile_l2-sources-collections.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
8,436 | ada | 30 | jscparker/math_packages | linear_algebra/crout_lu_tst_1.adb | <gh_stars>10-100
-- Test LU decomposition on a real valued square matrix.
with Ada.Numerics.Generic_elementary_functions;
with Crout_LU;
with Text_IO; use Text_IO;
with Test_Matrices;
procedure crout_lu_tst_1 is
type Real is digits 15;
type Index is range 0..69;
Starting_Index : constant Index := Index'F... |
8,437 | ada | 1 | Fabien-Chouteau/samd51-hal | src/drivers/tc_u2249/sam-tc.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
8,438 | ada | 0 | thierr26/ada-apsepp | src/apsepp-test_node_class-runner_sequential-create.ads | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Reporter_Class; use Apsepp.Test_Reporter_Class;
function Apsepp.Test_Node_Class.Runner_Sequential.Create
(Root_Node_Access : Test_Node_Access;
Test_Reporter_Instanc... |
8,439 | ada | 4 | joffreyhuguet/curve25519-spark2014 | src/curve25519_add.ads | <filename>src/curve25519_add.ads
with Big_Integers; use Big_Integers;
with Types; use Types;
with Conversion; use Conversion;
package Curve25519_Add with
SPARK_Mode
is
function Add (X, Y : Integer_255) return Integer_255 with
Pre => All_In_Range (X, Y, Min_Add, Max_Add),
Post => +Add'Result = (+X) + (+... |
8,440 | ada | 1 | faelys/natools-web | src/natools-web-filters.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
8,441 | ada | 0 | My-Colaborations/ada-ado | src/ado-schemas.adb | -----------------------------------------------------------------------
-- ado.schemas -- Database Schemas
-- Copyright (C) 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 compliance with the License... |
8,442 | ada | 3 | charlie5/aIDE | source/types/adam-a_type-record_type.adb | <filename>source/types/adam-a_type-record_type.adb
with
AdaM.Factory;
package body AdaM.a_Type.record_type
is
-- Storage Pool
--
record_Version : constant := 1;
pool_Size : constant := 5_000;
package Pool is new AdaM.Factory.Pools (storage_Folder => ".adam... |
8,443 | ada | 7,053 | Elon143/Amass | resources/scripts/cert/digitorus.ads | -- Copyright 2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "Digitorus"
type = "cert"
function start()
set_rate_limit(2)
end
function vertical(ctx, domain)
scrape(ctx, {['url']=build_url(domain)})
end
function build_... |
8,444 | ada | 4 | mikequentel/c2ada | c.adb | with Ada.Unchecked_Conversion;
package body C is
use Interfaces.C;
function U is new Ada.Unchecked_Conversion (Int, Unsigned);
function I is new Ada.Unchecked_Conversion (Unsigned, Int);
function Bool_to_Int (Val: Boolean) return Int is
begin
if Val = False then return 0; else return 1; end if;... |
8,445 | ada | 20 | charlie5/lace | 1-base/lace/applet/demo/event/distributed/source/chat-registrar.ads | with
chat.Client;
package chat.Registrar
--
-- A singleton providing the central chat registrar.
-- Limited to a maximum of 5_000 chat clients running at once.
--
is
pragma remote_Call_interface;
Name_already_used : exception;
procedure register (the_Client : in Client.view);
procedure deregister ... |
8,446 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/a-etgrbu.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
8,447 | ada | 1 | Fabien-Chouteau/samd51-hal | src/drivers/adc_u2500/sam-adc.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019-2020, AdaCore --
-- ... |
8,448 | ada | 0 | silentTeee/ada_wavefiles_gtk_app | src/wavefiles_gtk-wavefile_list.adb | -------------------------------------------------------------------------------
--
-- WAVEFILES GTK APPLICATION
--
-- List of wavefiles
--
-- The MIT License (MIT)
--
-- Copyright (c) 2017 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining... |
8,449 | ada | 1 | michalkonecny/polypaver | examples/SPARK2005/packages/polypaver-integers.ads | package PolyPaver.Integers is
--# function Is_Integer(Variable : Integer) return Boolean;
--# function Is_Range(Variable : Integer; Min : Integer; Max : Integer) return Boolean;
end PolyPaver.Integers;
|
8,450 | ada | 0 | Letractively/ada-gen | src/gnat/errutil.ads | <filename>src/gnat/errutil.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,451 | ada | 0 | thieryw/snake_array_impl | snake_types.ads | <reponame>thieryw/snake_array_impl<filename>snake_types.ads<gh_stars>0
with ada.Containers.Hashed_Maps,display, Ada.Containers.Hashed_Maps,ada.containers.doubly_linked_lists ;
package snake_types is
type Snake_direction is (LEFT,RIGHT,UP,DOWN) ;
type Coordinates is
record
... |
8,452 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/gnat1drv.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,453 | ada | 36 | rewriting/tom | src/tom/library/sl/ada/muvarstrategy.ads | <reponame>rewriting/tom<gh_stars>10-100
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
package MuVarStrategy is
type MuVar is new AbstractStrategyCombinator and Object with
record
in... |
8,454 | ada | 7 | stcarrez/mat | mat/src/events/mat-events-timelines.ads | <filename>mat/src/events/mat-events-timelines.ads
-----------------------------------------------------------------------
-- mat-events-timelines - Timelines
-- Copyright (C) 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fil... |
8,455 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-numaux-libc-x86.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
8,456 | ada | 0 | VMika/Des_Ada | Des_Ada/src/concrete_handler/p_stephandler-keyhandler.ads | WITH P_StepHandler;
USE P_StepHandler;
WITH P_StructuralTypes;
USE P_StructuralTypes;
package P_StepHandler.KeyHandler is
type KeyHandler is new T_StepHandler with private;
type Ptr_KeyHandler is access KeyHandler;
--- CONSTRUCTOR ---
function Make (Self : in out KeyHandler) return KeyHandler;
... |
8,457 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c94020a.ada | <reponame>best08618/asylo<gh_stars>1-10
-- C94020A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and docume... |
8,458 | ada | 22 | FardaleM/metalang | out/aaa_041comment.adb | <filename>out/aaa_041comment.adb
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure aaa_041comment is
type stringptr is access all char_array;
procedure PInt(i : in Integer) i... |
8,459 | ada | 33 | ytomino/drake | source/streams/a-teiona.ads | <filename>source/streams/a-teiona.ads
pragma License (Unrestricted);
-- implementation unit
with Ada.Naked_Text_IO;
package Ada.Text_IO.Naked is
function Non_Controlled (File : File_Type)
return not null access Naked_Text_IO.Non_Controlled_File_Type;
pragma Inline (Non_Controlled); -- renamed
private
... |
8,460 | ada | 0 | Ada-bindings-project/a-lmsensors | src/sensors.adb | with Interfaces.C.Strings;
with Interfaces.C_Streams;
with Sensors.Conversions;
with Sensors.LibSensors.Sensors_Sensors_H;
with Sensors.LibSensors.Sensors_Error_H;
with Ada.IO_Exceptions;
package body Sensors is
API_VERSION : constant := 16#500#;
pragma Compile_Time_Error (API_VERSION /= Sensors.LibSensors.Sens... |
8,461 | ada | 1 | mullikine/RosettaCodeData | Task/99-Bottles-of-Beer/Ada/99-bottles-of-beer-2.ada | <reponame>mullikine/RosettaCodeData<filename>Task/99-Bottles-of-Beer/Ada/99-bottles-of-beer-2.ada
with Ada.Text_Io; use Ada.Text_Io;
procedure Tasking_99_Bottles is
subtype Num_Bottles is Natural range 1..99;
task Print is
entry Set (Num_Bottles);
end Print;
task body Print is
Num : Natural;
... |
8,462 | ada | 20 | charlie5/lace | 4-high/gel/source/forge/gel-forge.adb | with
openGL.Model.text .lit_colored_textured,
openGL.Model.sphere .lit_colored_textured,
openGL.Model.sphere .lit_colored,
openGL.Model.polygon .lit_colored,
openGL.Model.box .colored,
openGL.Model.box .textured,
openGL.Model.billboard.textured,
openGL.Model.bi... |
8,463 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wichun.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
8,464 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/monitor/tms570ls31x/memwrite.adb | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
8,465 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Model/duck_p.adb | --
-- Jan & <NAME>, Australia, July 2011
--
with GL, GL.Materials, GLOBE_3D.Math;
package body Duck_P is
-- Pretty output: FALSE
use GL, GL.Materials, GLOBE_3D, GLOBE_3D.Math;
-- begin Separator # 1
-- VRML: [# triangle mesh
-- ]
matos_1 : constant Material_type := (
... |
8,466 | ada | 10 | Ada-Audio/wavefiles | src/audio-wavefiles-report.adb | <reponame>Ada-Audio/wavefiles
------------------------------------------------------------------------------
-- --
-- WAVEFILES --
-- ... |
8,467 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/mpiuse.ads | <filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/mpiuse.ads
with MPI;
package MPIUse is
flag : MPI.Errorcode_Type := MPI.Errorcode_Type(-2);
end MPIUse;
|
8,468 | ada | 0 | jwarwick/aoc_2019_ada | day06/src/day.adb | -- AoC 2019, Day 6
with Ada.Text_IO;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Ordered_Sets;
with Ada.Strings.Hash;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
-- with GNAT.String_Split;
-- with Ada.Characters.Latin_1;
package body Day is
package TIO renames Ada.Text_IO;
package Orbit_Ele... |
8,469 | ada | 3 | charlie5/aIDE | attic/asis/find_all/adam-assist-query-find_all-driver.ads | <filename>attic/asis/find_all/adam-assist-query-find_all-driver.ads
procedure AdaM.Assist.Query.find_All.Driver;
|
8,470 | ada | 32 | robdaemon/AdaYaml | src/interface/yaml-stream_concept.ads | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
generic
type Instance is limited new Refcount_Base with private;
type Reference is tagged private;
type Accessor (Data : not null access Instance) is limited private;
with function Value (Objec... |
8,471 | ada | 105 | ArrogantWombatics/openbsd-src | gnu/usr.bin/binutils/gdb/testsuite/gdb.ada/null_record.adb | -- Copyright 2004 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 2 of the License, or
-- (at your option) any later version.
--
-- This... |
8,472 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/lib-xref-spark_specific.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
8,473 | ada | 33 | ytomino/drake | source/numerics/required/s-fatllf.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Fat_LLF is
pragma Pure;
package Attr_Long_Long_Float is
-- required for Long_Long_Float'Adjacent by compiler (s-fatgen.ads)
function Adjacent (X, Towards : Long_Long_Float) return Long... |
8,474 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/spark_xrefs_test.adb | ------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
8,475 | ada | 1 | Fabien-Chouteau/sdlada | unit_tests/pixel_format_test_cases.adb | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <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... |
8,476 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/task_stack_align.adb | -- { dg-do run }
with Ada.Text_IO; use Ada.Text_IO;
with System.Storage_Elements; use System.Storage_Elements;
procedure Task_Stack_Align is
type Align_Me is record
Value : Integer;
end record;
for Align_Me'Alignment use Standard'Maximum_Alignment;
procedure Check_Local_Alignment_From (Context : S... |
8,477 | ada | 2 | thindil/tashy2 | tests/tk-image-photo-photo_options_test_data.ads | <gh_stars>1-10
-- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a 'read only' marker.
with Tk.Image.Image_Options_... |
8,478 | ada | 1 | Fabien-Chouteau/sdlada | src/sdl-inputs-joysticks-game_controllers.adb | <reponame>Fabien-Chouteau/sdlada<filename>src/sdl-inputs-joysticks-game_controllers.adb<gh_stars>1-10
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- This software is provided 'as-is', without any express or ... |
8,479 | ada | 0 | mstewartgallus/linted | src/ada-core/src/linted-windows.adb | <gh_stars>0
-- Copyright 2015,2016,2017 <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... |
8,480 | ada | 0 | mstewartgallus/linted | src/ada-pulse/src/pulse-scache.ads | -- Copyright 2016 <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writi... |
8,481 | ada | 1 | brucegua/moocos | tools/scitools/sample/mahjongg/input_ln.ads | --------------------------------------------------------------------
--| Package : Input_Line Version :
--------------------------------------------------------------------
--| Abstract : This package handles everything concerning a user's input.
--| The raw user input ... |
8,482 | ada | 81 | fuzzysloth/ada-awa | awa/src/awa-users-principals.adb | -----------------------------------------------------------------------
-- awa-users-principals -- User principals
-- Copyright (C) 2011, 2012, 2013, 2014 <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... |
8,483 | ada | 0 | sciencylab/lagrangian-solver | drivers/chebyshev.adb | with Numerics;
use Numerics;
package body Chebyshev is
function CGL_Transform (F : in Real_Vector) return Real_Vector is
N : constant Nat := F'Length;
X : constant Real_Vector := Chebyshev_Gauss_Lobatto (N, -1.0, 1.0);
G : Real_Vector := (2.0 / Real (N - 1)) * F;
T : Real_Matr... |
8,484 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-usb.ads | pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.USB is
pragma Preelaborate;
---------------
-- Registers --
---------------
-----------------------------------
-- Usb... |
8,485 | ada | 3 | wiremoons/apass | src/cmd_flags.adb | <reponame>wiremoons/apass<gh_stars>1-10
-------------------------------------------------------------------------------
-- Package : Cmd_Flags --
-- Description : Manage user provided CLI flags for the program. --
-- Author : <NAME> <<EMAIL>> ... |
8,486 | ada | 0 | Roldak/OpenGLAda | src/glfw/v2/glfw-api.ads | <filename>src/glfw/v2/glfw-api.ads
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.Enums;
with Glfw.Display;
with Glfw.Events.Keys;
with Glfw.Events.Mouse;
with Glfw.Events.Joysticks;
with Interfaces.C.Strings;
with System;
private package Glf... |
8,487 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/tms570-leds/src/tms570-gpio.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
8,488 | ada | 89 | treggit/sdlada | src/sdl-inputs-mice.adb | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <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... |
8,489 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-protocols-service_data.ads | with Ada.Real_Time;
with ACO.CANopen;
with ACO.Messages;
with ACO.OD;
with ACO.SDO_Sessions;
private with Interfaces;
private with ACO.Log;
private with ACO.Utils.Generic_Alarms;
private with ACO.Configuration;
private with ACO.SDO_Commands;
private with ACO.OD_Types;
package ACO.Protocols.Service_Data is
SDO_S2C... |
8,490 | ada | 15 | jquorning/dynamo | src/gen-artifacts-xmi.ads | -----------------------------------------------------------------------
-- gen-artifacts-xmi -- UML-XMI artifact for Code Generator
-- Copyright (C) 2012, 2013, 2014, 2016, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ... |
8,491 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/gnarl-common/s-taprop.adb | <filename>runtime/ravenscar-sfp-stm32f427/gnarl-common/s-taprop.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
8,492 | ada | 2 | ytomino/web-ada | examples/test_time.adb | <filename>examples/test_time.adb
with Ada.Calendar.Formatting;
with Ada.Calendar.Time_Zones;
with Ada.Command_Line;
with Ada.Text_IO;
with Web;
procedure test_time is
use type Ada.Calendar.Time;
use type Ada.Calendar.Time_Zones.Time_Offset;
Verbose : Boolean := False;
S : constant String := Web.Image (Ada.Calendar.... |
8,493 | ada | 0 | Tim-Tom/project-euler | Ada/src/Problem_48.adb | with Ada.Text_IO;
package body Problem_48 is
package IO renames Ada.Text_IO;
procedure Solve is
type Unsigned is mod 2**32;
function modular_pow(base, exponent, modulus : Unsigned) return Unsigned is
result : Unsigned := 1;
base_mod : Unsigned := base;
exponent_mod : Unsigne... |
8,494 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-stbuut.ads | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
8,495 | ada | 0 | optikos/oasis | source/oasis/program-elements-formal_modular_type_definitions.ads | <filename>source/oasis/program-elements-formal_modular_type_definitions.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Formal_Type_Definitions;
with Program.Lexical_Element... |
8,496 | ada | 0 | erlingrj/ktc | benchmark/ada/periodic_overrun.adb | with Ada.Real_Time; use Ada.Real_Time;
with Ada.Text_IO;use Ada.Text_IO;
procedure Periodic_overrun is
Interval : Time_Span := Milliseconds(30);
Next : Time;
Now :Time;
begin
Next := Clock + Interval;
loop
Put_Line("Delay 30 ms");
for I in Integer range 1 .. 10000 loop
Put_Line (Integer'Image(I));
e... |
8,497 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-cofuve.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
8,498 | ada | 1 | mullikine/RosettaCodeData | Task/Vector-products/Ada/vector-products.ada | <gh_stars>1-10
with Ada.Text_IO;
procedure Vector is
type Float_Vector is array (Positive range <>) of Float;
package Float_IO is new Ada.Text_IO.Float_IO (Float);
procedure Vector_Put (X : Float_Vector) is
begin
Ada.Text_IO.Put ("(");
for I in X'Range loop
Float_IO.Put (X (I), Aft =>... |
8,499 | ada | 1 | Scottx86-64/dotfiles-1 | source/pkgsrc/devel/gprbuild-aux/patches/patch-src_gprlib.adb | $NetBSD: patch-src_gprlib.adb,v 1.3 2016/11/25 20:36:49 marino Exp $
Marino's modification to give Ada programs build with GPRBUILD proper
-rpath support
--- src/gprlib.adb.orig 2015-05-06 11:08:38 UTC
+++ src/gprlib.adb
@@ -393,6 +393,11 @@ procedure Gprlib is
Separate_Run_Path_Options : Boolean := False;
+ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.