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 |
|---|---|---|---|---|---|
29,200 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a83a02a.ada | -- A83A02A.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... |
29,201 | ada | 33 | ytomino/drake | source/textio/a-ticoio.ads | pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Types;
generic
with package Complex_Types is new Numerics.Generic_Complex_Types (<>);
package Ada.Text_IO.Complex_IO is
-- use Complex_Types;
Default_Fore : Field := 2;
Default_Aft : Field := Complex_Types.Real'Digits - 1;
Default_Exp : Fiel... |
29,202 | ada | 0 | reznikmm/declarative-regions | source/regions/regions-symbols.ads | -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package Regions.Symbols is
pragma Pure;
type Symbol is mod 2 ** 32;
-- Symbol is case-insensitive representation of identifiers, operators
-- and character ... |
29,203 | ada | 33 | ytomino/drake | source/strings/a-stwibo.ads | pragma License (Unrestricted);
with Ada.Strings.Bounded_Wide_Strings.Functions.Maps;
with Ada.Strings.Wide_Maps;
package Ada.Strings.Wide_Bounded is
pragma Preelaborate;
generic
Max : Positive; -- Maximum length of a Bounded_Wide_String
package Generic_Bounded_Length is
-- for renaming
pac... |
29,204 | ada | 1 | rn7s2/src | ada/prime/prime_ada.ads | package Prime_Ada is
cnt : Integer;
procedure Get_Prime (n : Integer);
end Prime_Ada;
|
29,205 | ada | 60 | RREE/ada-util | src/sys/encoders/util-encoders-kdf-pbkdf2.ads | -----------------------------------------------------------------------
-- util-encoders-kdf-pbkdf2 -- Password-Based Key Derivation Function 2, RFC 8018.
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
29,206 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Price-fraction/Ada/price-fraction-1.ada | type Price is delta 0.01 digits 3 range 0.0..1.0;
function Scale (Value : Price) return Price is
X : constant array (1..19) of Price :=
( 0.06, 0.11, 0.16, 0.21, 0.26, 0.31, 0.36, 0.41, 0.46, 0.51,
0.56, 0.61, 0.66, 0.71, 0.76, 0.81, 0.86, 0.91, 0.96
);
Y : constant array (1..2... |
29,207 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/nodes-read.adb | ------------------------------------------------------------------------------
-- <NAME> A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
29,208 | ada | 204 | spr93/whitakers-words | src/latin_utils/latin_utils-dictionary_package-part_entry_io.adb | <gh_stars>100-1000
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-... |
29,209 | ada | 52 | onox/orka | orka/src/orka/interface/orka-algorithms-fft.ads | <filename>orka/src/orka/interface/orka-algorithms-fft.ads
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License ... |
29,210 | ada | 0 | ESROCOS/control-mc_watchdog | TasteModel/blsclient/blsclient.ads | -- This file was generated automatically: DO NOT MODIFY IT !
with Base_Types;
use Base_Types;
with TASTE_ExtendedTypes;
use TASTE_ExtendedTypes;
with TASTE_BasicTypes;
use TASTE_BasicTypes;
with UserDefs_Base_Types;
use UserDefs_Base_Types;
with adaasn1rtl;
use adaasn1rtl;
package blsclient is
-- Provided inter... |
29,211 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/LZW-compression/Ada/lzw-compression-2.ada | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/LZW-compression/Ada/lzw-compression-2.ada<gh_stars>1-10
with Ada.Containers.Ordered_Maps;
with Ada.Strings.Unbounded;
package body LZW is
package UStrings renames Ada.Strings.Unbounded;
use type UStrings.Unbounded_String;
--------------
-- Compress --... |
29,212 | ada | 0 | eyeonechi/invalid-behaviour-conservative-analysis | src/debug.ads | <gh_stars>0
-- contains debug functions for printing things
package Debug with SPARK_Mode is
-- print a string
procedure Put(Item : in String) with
Global => null;
-- print a string and add a new line
procedure Put_Line(Item : in String) with
Global => null;
-- print an integer (with n... |
29,213 | ada | 4 | Lucretia/raytracer_challenge | src/maths/rtch-maths-tuples.ads | package RTCH.Maths.Tuples with
Pure is
type Tuple is record
X : Float;
Y : Float;
Z : Float;
W : Float;
end record;
function "+" (Left, Right : in Tuple) return Tuple is
(Tuple'(X => Left.X + Right.X,
Y => Left.Y + Right.Y,
Z => Left.Z + Right.Z,
... |
29,214 | ada | 2 | skordal/ada-regex | src/regex-utilities-string_buffers.adb | <reponame>skordal/ada-regex
-- Ada regular expression library
-- (c) <NAME> 2020 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
package body Regex.Utilities.String_Buffers is
function Create (Input : in String) return String_Buffer is
begin
return Retval : String_Buffer d... |
29,215 | ada | 2 | skordal/cupcake | src/backends/cupcake-backends-cairo.adb | -- The Cupcake GUI Toolkit
-- (c) <NAME> 2012 <<EMAIL>>
-- Report bugs and issues on <http://github.com/skordal/cupcake/issues>
-- vim:ts=3:sw=3:et:si:sta
with Ada.Text_IO;
with Interfaces.C.Strings;
package body Cupcake.Backends.Cairo is
-- Procedure settings the current color, used by several subprograms b... |
29,216 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect8.adb | -- { dg-do compile }
-- { dg-options "-w" }
package body Vect8 is
function Foo (V : Vec) return Vec is
Ret : Vec;
begin
Ret (1) := V (1) + V (2);
Ret (2) := V (1) - V (2);
return Ret;
end;
end Vect8;
|
29,217 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-transform-flip.ads | <filename>memsim-master/src/memory-transform-flip.ads<gh_stars>0
package Memory.Transform.Flip is
type Flip_Type is new Transform_Type with private;
type Flip_Pointer is access all Flip_Type'Class;
function Create_Flip return Flip_Pointer;
function Random_Flip(next : access Memory_Type'Class;
... |
29,218 | ada | 5 | onox/dcf-ada | dcf/src/dcf.ads | -- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2019 onox <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights... |
29,219 | ada | 0 | Asier98/Control_IO_STM32F446 | src/pins_stm32f446.ads | <filename>src/pins_stm32f446.ads
with STM32.GPIO;
use STM32.GPIO;
with HAL.GPIO;
with STM32.Device;
package Pins_STM32F446 is
----------------------
-- ARDUINO UNO PINS --
----------------------
-- The following pins have been tested
-- Digital
Pin_D2 : GPIO_Point renames STM32.Device.... |
29,220 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Loops-Continue/Ada/loops-continue.ada | with Ada.Text_IO;
use Ada.Text_IO;
procedure Loop_Continue is
begin
for I in 1..10 loop
Put (Integer'Image(I));
if I = 5 or I = 10 then
New_Line;
goto Continue;
end if;
Put (",");
<<C... |
29,221 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaGL/GL_x11/compile.adb | <filename>thirdparty/adasdl/thin/adasdl/AdaGL/GL_x11/compile.adb
pragma Warnings (off);
with gl_h;
with glu_h;
with AdaGL;
procedure compile is
begin
null;
end compile;
|
29,222 | ada | 1 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-expression-function.d/input.adb | <reponame>f110/wing
with Ada.Text_IO;
procedure Test is
My_Type : Boolean := True;
procedure Tagged_Procedure is
function Boolean_As_String return String is
(case My_Type is
when True => "True Value",
when False => "False Value");
function Another_Boolean_As_String return Str... |
29,223 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/misaligned_volatile.adb | -- { dg-do run }
-- { dg-options "-gnatp -fstrict-volatile-bitfields" }
procedure Misaligned_Volatile is
type Byte is mod 2**8;
type Block is record
B : Boolean;
V : Byte;
end record;
pragma Volatile (Block);
pragma Pack (Block);
for Block'Alignment use 1;
type Pair is array (1 .. 2... |
29,224 | ada | 1 | alvaromb/Compilemon | src/semantica-assemblador.ads | <reponame>alvaromb/Compilemon<gh_stars>1-10
with Ada.Text_Io,
Ada.Strings,
Ada.Strings.Fixed,
Ada.Strings.Maps;
use Ada.Text_Io,
Ada.Strings,
Ada.Strings.Fixed,
Ada.Strings.Maps;
package Semantica.Assemblador is
Error_Assemblador : exception;
procedure Genera_Assemblador
(Nom_Fitxer : in String... |
29,225 | ada | 2 | ficorax/PortAudioAda | test/ctestc/src/generic_callback.ads | with PortAudioAda.Thin; use PortAudioAda.Thin;
generic
type Frame;
type User_Data is private;
with function Pre_Processing (frameIn : Frame;
data : User_Data) return Frame;
with function Post_Processing (frameIn : Frame;
data : User_D... |
29,226 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-pixelformat.ads | with SDL.video;
with SDL;
with agar.core.types;
with agar.core;
package agar.gui.pixelformat is
type pixel_format_t is new SDL.video.pixel_format_t;
type pixel_format_access_t is access all pixel_format_t;
function rgb
(bits_per_pixel : agar.core.types.uint8_t;
rmask : agar.core.types.uint32_... |
29,227 | ada | 3 | LionelDraghi/List_Image | src/test_list_image.adb | -- -----------------------------------------------------------------------------
-- Copyright 2018 <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/l... |
29,228 | ada | 76 | yannickmoy/SPARKNaCl | tests/secretbox8.adb | with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core;
with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox;
with SPARKNaCl.Cryptobox;
with SPARKNaCl.Stream;
with Random; use Random;
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
with Ada.Numerics.Discrete_Random;
... |
29,229 | ada | 0 | persan/advent-of-code-2020 | src/day-1/adventofcode-day_1-main.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Assertions;
procedure Adventofcode.Day_1.Main is
use Ada.Assertions;
function Read (Path : String) return Expenses is
Inf : File_Type;
Buffer : Expenses (1 .. 1024); -- 1024 lines in the book;
Cursor : Natural := Buffer'First;
begin
Open (Inf,... |
29,230 | ada | 0 | Vovanium/libusb1-ada | source/utilities/initexit.adb | <reponame>Vovanium/libusb1-ada<filename>source/utilities/initexit.adb
with USB;
with USB.LibUSB1;
with Interfaces.C;
with Ada.Text_IO;
use Ada.Text_IO;
procedure InitExit is
Ctx: aliased USB.LibUSB1.Context_Access;
R: USB.LibUSB1.Status;
begin
R := USB.LibUSB1.Init_Lib(Ctx'Access);
Put(USB.LibUSB1.Status'Im... |
29,231 | ada | 5 | Kidev/DemoAdaPhysics2D | src/renderer.ads | with Entities; use Entities;
with Worlds; use Worlds;
with Vectors2D; use Vectors2D;
with HAL.Bitmap; use HAL.Bitmap;
with Materials; use Materials;
with DemoLogic; use DemoLogic;
with Links; use Links;
package Renderer is
-- Displays the entities passed
procedure Render(W : in out World; Cue : VisualCue);
... |
29,232 | ada | 0 | fintatarta/protypo | src/Internals/protypo-scanning.ads | with Readable_Sequences.Generic_Sequences;
with Protypo.Tokens;
with Protypo.Api.Interpreters;
private package Protypo.Scanning is
type Token_Array is array (Positive range<>) of Tokens.Token;
package Token_Sequences is
new Readable_Sequences.Generic_Sequences (Element_Type => Tokens.Token,
... |
29,233 | ada | 105 | jaykrell/cm3 | m3-sys/m3gdb/gdb/gdb/testsuite/gdb.ada/array_return/p.adb | <reponame>jaykrell/cm3<filename>m3-sys/m3gdb/gdb/gdb/testsuite/gdb.ada/array_return/p.adb<gh_stars>100-1000
with Pck; use Pck;
procedure P is
Small : Data_Small;
Large : Data_Large;
begin
Small := Create_Small;
Large := Create_Large;
Small (1) := Large (1);
end P;
|
29,234 | ada | 12 | mgrojo/protobuf | source/runtime/pb_support-io.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... |
29,235 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Top-rank-per-group/Ada/top-rank-per-group.ada | with Ada.Containers.Vectors;
with Ada.Text_IO;
procedure Top is
type Departments is (D050, D101, D190, D202);
type Employee_Data is record
Name : String (1 .. 15);
ID : String (1 .. 6);
Salary : Positive;
Department : Departments;
end record;
package Employee_Vect... |
29,236 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-sssita.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
29,237 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/modular_type_definition.ads | <reponame>ouankou/rose
package Modular_Type_Definition is
type Type_1 is mod 2;
end Modular_Type_Definition;
|
29,238 | ada | 0 | optikos/oasis | source/nodes/program-nodes-discriminant_constraints.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Discriminant_Constraints is
function Create
(Left_Bracket_Token : not null Program.Lexical_Elements
.Lexic... |
29,239 | ada | 20 | HeisenbugLtd/spat | src/util/spat-unique_ids.adb | ------------------------------------------------------------------------------
-- 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... |
29,240 | ada | 25 | thierr26/ada-keystore | samples/wallet_ssh_askpass.adb | -----------------------------------------------------------------------
-- wallet_ssh_askpass -- Open wallet and ask password by running a command
-- 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... |
29,241 | ada | 0 | reznikmm/clic | example/src/clic_ex-commands.adb | with CLIC.TTY;
with CLIC.User_Input;
with CLIC_Ex.Commands.TTY;
with CLIC_Ex.Commands.User_Input;
package body CLIC_Ex.Commands is
Help_Switch : aliased Boolean := False;
No_Color : aliased Boolean := False;
-- Force-disable color output
No_TTY : aliased Boolean := False;
-- Used to disable contro... |
29,242 | ada | 0 | ytomino/gnat4drake | g-traceb.ads | pragma License (Unrestricted);
with System;
package GNAT.Traceback is
pragma Preelaborate;
type Tracebacks_Array is array (Positive range <>) of System.Address;
procedure Call_Chain (
Traceback : out Tracebacks_Array;
Len : out Natural);
end GNAT.Traceback;
|
29,243 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/projet/src/main.adb | <filename>1A/S5/PIM/projet/src/main.adb
-------------------------------------------------------------------------------
-- Fichier : main.adb
-- Auteur : <NAME> & <NAME>
-- Objectif : Programme principal
-- Crée : Dimanche Nov 25 2019
--------------------------------------------------------------------------... |
29,244 | ada | 33 | ytomino/drake | source/machine-w64-mingw32/s-termin.adb | with System.Address_To_Named_Access_Conversions;
with C.stdlib;
with C.winbase;
with C.windef;
with C.winnls;
with C.winnt;
package body System.Termination is
pragma Suppress (All_Checks);
use type C.signed_int;
package LPSTR_Conv is
new Address_To_Named_Access_Conversions (C.char, C.winnt.LPSTR);
pa... |
29,245 | ada | 1 | jquorning/WeDo | source/files.adb | <filename>source/files.adb<gh_stars>1-10
pragma License (Restricted);
--
-- Copyright (C) 2020 <NAME> All Rights Reserved.
--
-- 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 a... |
29,246 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b04a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b04a.ada<gh_stars>1-10
-- C55B04A.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... |
29,247 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | host/stm32gd-usart-peripheral.adb | with System; use System;
-- with Ada.Text_IO;
package body STM32GD.USART.Peripheral is
procedure putchar (Data : in Character) with Import => true, Convention => C;
procedure Init is
begin
null;
end Init;
procedure Transmit (Data : in Byte) is
begin
putchar (Character'Val (Data));
... |
29,248 | ada | 52 | Watch-Later/NymphRPC | ada/src/nymph_client.ads | <filename>ada/src/nymph_client.ads<gh_stars>10-100
-- nymph.ada - Package file for the NymphRPC package.
--
-- Revision 0
--
-- 2018/09/24, <NAME>
package NymphClient is
--
end NymphClient;
|
29,249 | ada | 12 | TUM-EI-RCS/StratoX | tests/units-overhead/src/altunits.ads | <filename>tests/units-overhead/src/altunits.ads
package Altunits with
Spark_Mode is
-- Base Units
subtype Length_Type is Float;
subtype Time_Type is Float;
subtype Linear_Velocity_Type is Float;
-- Base units
--Meter : constant Length_Type := Length_Type (1.0);
--Second : constan... |
29,250 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr7.adb | -- { dg-do compile }
procedure aggr7 is
package P is
type T is limited private;
type TT is limited private;
type TTT is tagged limited private;
private
type T is limited
record
Self : access T := T'Unchecked_Access;
end record;
type TT is tagged... |
29,251 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52102b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52102b.ada<gh_stars>1-10
-- C52102B.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 ... |
29,252 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/gnarl-common/s-mufalo.adb | <reponame>TUM-EI-RCS/StratoX<filename>runtime/ravenscar-sfp-stm32f427/gnarl-common/s-mufalo.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS ... |
29,253 | ada | 14 | Fabien-Chouteau/usb_embedded | tests/src/tests-device.ads | <filename>tests/src/tests-device.ads
with AUnit;
with AUnit.Test_Caller;
with AUnit.Test_Fixtures;
package Tests.Device is
type UDC_Stub_Fixture is new AUnit.Test_Fixtures.Test_Fixture with record
A : Integer;
end record;
overriding
procedure Set_Up (T : in out UDC_Stub_Fixture);
private
packa... |
29,254 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | examples/temp_voltage/main.adb | with System;
with Interfaces; use Interfaces;
with MSPGD.Board; use MSPGD.Board;
with Drivers.Text_IO;
with MSP430_SVD; use MSP430_SVD;
with MSP430_SVD.ADC10; use MSP430_SVD.ADC10;
procedure Main is
pragma Preelaborate;
package Text_IO is new Drivers.Text_IO (USART => UART);
Info_C : array (Unsigned_16 ran... |
29,255 | ada | 36 | rewriting/tom | examples/ada/trees/recordtree/btree.ads | <reponame>rewriting/tom
package BTree is
procedure main;
end BTree;
|
29,256 | ada | 20 | charlie5/lace | 1-base/lace/source/events/interface/lace-response.ads | <reponame>charlie5/lace
with
lace.Event;
package lace.Response
--
-- Provides a base class for all derived event 'response' classes.
--
is
pragma remote_Types;
type Item is abstract tagged limited private;
type View is access all Item'class;
-- Attributes
--
function Name (Self : in Item) r... |
29,257 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/conv_decimal.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/conv_decimal.adb
-- PR middle-end/36575
-- reporter: <NAME> <<EMAIL>>
-- { dg-do run }
procedure Conv_Decimal is
type Unsigned_Over_8 is mod 2**8+2;
type Signed_Over_8 is range -200 .. 200;
procedure Assert(Truth: Boolean) is
begin
if not Truth then
... |
29,258 | ada | 2 | Spohn/LegendOfZelba | w_gen.adb | <gh_stars>1-10
with Ada.Text_IO;
with Screen;
use Ada.Text_IO;
PACKAGE BODY w_gen IS
-------------------------------
-- Name: <NAME>
-- <NAME>
-- w_gen Package
-------------------------------
---------------------------------------------------------
-- clears the screen
PROCEDURE clr_scr... |
29,259 | ada | 23 | yrm006/Geo3x3 | geo3x3.adb | with Ada.Strings.Unbounded;
package body Geo3x3 is
function Encode (PLat: in Long_Float; PLng: in Long_Float; Level: in Integer) return String is
use Ada.Strings.Unbounded;
Res: Unbounded_String;
Lat: Long_Float;
Lng: Long_Float;
Unit: Long_Float;
begin
if Level < 1 then
... |
29,260 | ada | 0 | svn2github/matreshka | source/web/tools/a2js/webapi/webgl/webapi-webgl-rendering_contexts.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
29,261 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/noreturn4_pkg.ads | <reponame>best08618/asylo
with Ada.Finalization; use Ada.Finalization;
package Noreturn4_Pkg is
type Priv is private;
function It return Priv;
function Value (Obj : Priv) return Integer;
function OK (Obj : Priv) return Boolean;
private
type Priv is new Controlled with record
Value : Integer := 15;
e... |
29,262 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-unit_utils.adb | <reponame>faelys/gela-asis<gh_stars>1-10
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ad... |
29,263 | ada | 33 | ytomino/drake | source/a-enumer.adb | <gh_stars>10-100
package body Ada.Enumeration is
pragma Suppress (All_Checks);
package body Arithmetic is
function "+" (Left : Enum; Right : Distance) return Enum is
begin
return Enum'Val (Enum'Pos (Left) + Right);
end "+";
function "+" (Left : Distance; Right : Enum) return En... |
29,264 | ada | 0 | adrianhoe/adactfft | ctffttest.adb | <reponame>adrianhoe/adactfft
--------------------------------------------------------------------------------
-- * Prog name ctffttest.adb
-- * Project name ctffttest
-- *
-- * Version 1.0
-- * Last update 11/5/08
-- *
-- * Created by <NAME> on 11/5/08.
-- * Copyright (c) 2008 AdaStar Informatics http://a... |
29,265 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_sensor_h.ads | <gh_stars>10-100
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
with Interfaces.C.Strings;
package SDL_sensor_h is
SDL_STANDARD_GRAVITY : constant := 9.80665; -- ..\SDL2_tmp\SDL_sensor.h:97
-- Simple DirectMedia Layer
-- Copyright (C) 1997-2018 <NAME> ... |
29,266 | ada | 33 | ytomino/drake | source/numerics/a-nusf21.ads | pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from SFMT (SFMT-params216091.h)
with Ada.Numerics.SFMT;
package Ada.Numerics.SFMT_216091 is
new SFMT (
MEXP => 216091,
POS1 => 627,
SL1 => 11,
SL2 => 3,
SR1 => 10,
SR2 => 1,
MSK1 => 16#bff7bff7#,
MSK2 =... |
29,267 | ada | 0 | Holt59/Ada-SDL | include/game-display-font.ads | <filename>include/game-display-font.ads
--------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-DISPLAY-FONT.ADS --
-- --
-- Ges... |
29,268 | ada | 24 | svn2github/matreshka | source/league/league-pretty_printers.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
29,269 | ada | 7 | kimtg/euler-ada | euler5.adb | with ada.text_io;
use ada.text_io;
procedure euler5 is
i : long_long_integer;
n : long_long_integer := 20;
begin
i := 19;
while i >= 2 loop
if n mod i /= 0 then
n := n + 20;
i := 20;
end if;
i := i - 1;
end loop;
put_line(long_long_integer'image(n));
end;
|
29,270 | ada | 0 | fintatarta/protypo | src/API/protypo-api-engine_values-array_wrappers.adb | <reponame>fintatarta/protypo
pragma Ada_2012;
package body Protypo.Api.Engine_Values.Array_Wrappers is
type Wrapper_Access is access Array_Wrapper;
------------------
-- Make_Wrapper --
------------------
function Make_Wrapper (Init : Array_Type)
return Handlers.Ambivalent_Int... |
29,271 | ada | 33 | ytomino/drake | source/textio/a-ssitio.ads | pragma License (Unrestricted);
with Ada.Text_IO;
package Ada.Short_Short_Integer_Text_IO is
new Text_IO.Integer_IO (Short_Short_Integer);
|
29,272 | ada | 0 | greifentor/archimedes-legacy | legacy-core/src/test/resources/dm/TST-ForeignKeyChanges.ads | <Diagramm>
<AdditionalSQLCode>
<SQLCode>
<AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging>
<AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing>
<AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging>
<AdditionalSQLCodePreEx... |
29,273 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37217a.ada | -- C37217A.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... |
29,274 | ada | 0 | rachitkakkar/AnInterpreter | functions.adb | <reponame>rachitkakkar/AnInterpreter
func add(one, two): return one+two;
let num = 5;
if :&add(5.2, 5):+5 > num {
print_expr num;
print_str <s>;
print_expr_ln :&add(5.2, 5):+5;
} |
29,275 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-cgi.ads | <filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-cgi.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
29,276 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-transform-eor.ads |
package Memory.Transform.EOR is
type EOR_Type is new Transform_Type with private;
type EOR_Pointer is access all EOR_Type'Class;
function Create_EOR return EOR_Pointer;
function Random_EOR(next : access Memory_Type'Class;
generator : Distribution_Type;
... |
29,277 | ada | 3 | Fabien-Chouteau/AGATE | src/riscv32/agate-arch-riscv.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, <NAME> --
-- --
-- Redistrib... |
29,278 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bad_array.adb | -- { dg-do compile }
procedure Bad_Array is
A1 : array(Character range <> ) of Character := ( 'a', 'b', 'c' );
begin
null;
end Bad_Array;
|
29,279 | ada | 9 | jhumphry/SPARK_NORX | src/norx3241.ads | -- NORX3241
-- an Ada implementation of the NORX Authenticated Encryption Algorithm
-- created by <NAME>, <NAME> and <NAME>
-- This instantiation words on 32-bit words, with 4 rounds and a parallelism
-- degree of 1
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
pragma SPARK_Mode (On);
with Interfaces... |
29,280 | ada | 33 | ytomino/drake | source/strings/a-strmap.adb | pragma Check_Policy (Validate => Disable);
-- with Ada.Strings.Naked_Maps.Debug;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System.UTF_Conversions.From_8_To_32;
with System.UTF_Conversions.From_16_To_32;
with System.UTF_Conversions.From_32_To_8;
with System.UTF_Conversions.From_32_To_16;
pack... |
29,281 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sa_messages.ads | <gh_stars>0
------------------------------------------------------------------------------
-- C O D E P E E R / S P A R K --
-- --
-- Copyright (C) 2015-2020, AdaCore ... |
29,282 | ada | 1 | OneWingedShark/Risi | src/risi_script-types-identifier-scope_package.ads | Pragma Ada_2012;
Pragma Wide_Character_Encoding( UTF8 );
with
Ada.Containers.Indefinite_Vectors;
Package Risi_Script.Types.Identifier.Scope_Package is
new Ada.Containers.Indefinite_Vectors(
Index_Type => Positive,
Element_Type => Identifier,
"=" => "="
);
|
29,283 | ada | 4 | reznikmm/torrent | source/torrent-managers.adb | <reponame>reznikmm/torrent
-- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Calendar.Formatting;
with Ada.Exceptions;
with Ada.Text_IO;
with GNAT.Sockets;
with Torrent.Logs;
package body T... |
29,284 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada-server/mojang-sessions/src/model/com-github-asyncmc-mojang-sessions-ada-server-model-models.adb | <reponame>AsyncMC/Mojang-API-Libs
-- Mojang Session API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-genera... |
29,285 | ada | 0 | iyan22/AprendeAda | ejercicios4/prueba_matriz_toeplitz.adb | <gh_stars>0
with Matriz, Ada.Text_IO, matriz_toeplitz, escribir_matriz;
use Matriz, Ada.Text_IO;
procedure prueba_matriz_toeplitz is
V : Vector_De_Enteros (1..6);
M : Matriz_de_Enteros(1..6,1..6);
begin
V := (1,2,3,4,5,6);
-- prueba 1:
put_line("El vector es (1,2,3,4,5,6)");
put_line("El resulta... |
29,286 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP3_Sous_Programmes/comprendre_mode_parametre.adb | <reponame>Hathoute/ENSEEIHT
with Ada.Text_IO;
use Ada.Text_IO;
-- Dans ce programme, les commentaires de spécification
-- ont **volontairement** été omis !
procedure Comprendre_Mode_Parametre is
function Double (N : in Integer) return Integer is
begin
return 2 * N;
end Double;
procedure Incrementer (N : in ou... |
29,287 | ada | 1 | skill-lang/skillAdaTestSuite | test/subtypes/test_subtypes-write.adb | <reponame>skill-lang/skillAdaTestSuite
package body Test_Subtypes.Write is
File_Name : constant String := "tmp/test-subtypes-write.sf";
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Subtypes.Write");
Ahven.Framework.Add_Test_Routine (T, Check_Types'Access, "read written subtyp... |
29,288 | ada | 1 | Fabien-Chouteau/sdlada | src/sdl-inputs-joysticks.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... |
29,289 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-buttons-light-round.adb |
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Widgets.Buttons.Light.Round is
procedure round_button_set_draw_hook
(W, D : in System.Address);
pragma Import (C, round_button_set_draw_hook, "round_button_set_draw_hook");
pragma Inline (round_button_set_d... |
29,290 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-mode-7.0.1/gpr_process_actions.adb | -- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS gpr.wy
--
-- Copyright (C) 2013 - 2019 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 Licens... |
29,291 | ada | 0 | faelys/natools | src/natools-file_streams.adb | <reponame>faelys/natools
------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software ... |
29,292 | ada | 192 | rocher/Ada_Drivers_Library | testsuite/tests/logging/src/tc_log_filtering.adb | with Ada.Text_IO;
with Logging_With_Categories;
procedure TC_Log_Filtering is
type Categories is (Debug, Warning, Error);
procedure Print (Str : String; Prio : Natural);
package Log is new Logging_With_Categories
(Categories => Categories,
Priorities => Natur... |
29,293 | ada | 0 | cborao/Ada-P4-chat | chat_procedures.ads |
--PRÁCTICA 4: <NAME> (Chat_Procedures.ads)
with Ada.Text_IO;
with Hash_Maps_G;
with Ada.Calendar;
with Ordered_Maps_G;
with Lower_Layer_UDP;
with Ada.Command_Line;
with Ada.Strings.Unbounded;
package Chat_Procedures is
package ATI renames Ada.Text_IO;
package LLU renames Lower_Layer_UDP;
package ACL re... |
29,294 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Heronian-triangles/Ada/heronian-triangles.ada | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Heronian-triangles/Ada/heronian-triangles.ada
with Ada.Containers.Indefinite_Ordered_Sets;
with Ada.Finalization;
with Ada.Text_IO; use Ada.Text_IO;
procedure Heronian is
package Int_IO is new Ada.Text_IO.Integer_IO(Integer);
use Int_IO;
-- ----- Some mat... |
29,295 | ada | 0 | yannickmoy/spat | src/spat-entity_line.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... |
29,296 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization15.ads | package Loop_Optimization15 is
type B16_T is mod 2 ** 16;
for B16_T'Size use 16;
for B16_T'Alignment use 1;
procedure Proc (L : B16_T);
end Loop_Optimization15;
|
29,297 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-utils-scope_locks.adb | <gh_stars>1-10
package body ACO.Utils.Scope_Locks is
protected body Mutex
is
entry Seize when Is_Free
is
begin
Is_Free := False;
end Seize;
procedure Release
is
begin
Is_Free := True;
end Release;
end Mutex;
overriding
procedure Initia... |
29,298 | ada | 0 | TNO/Dependency_Graph_Extractor-Ada | src/graphml_writers.ads | with Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Hashed_Sets;
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Hash;
with Ada.Streams.Stream_IO;
package GraphML_Writers is
package S_U renames Ada.Strings.Unbounded;
type GraphML_Type is (GraphML_Boolean, GraphML_Int, GraphML_Strin... |
29,299 | ada | 33 | ytomino/drake | source/sjlj/s-unbase.adb | <reponame>ytomino/drake<gh_stars>10-100
-- for SjLj
pragma Check_Policy (Trace => Ignore);
with System.Address_To_Constant_Access_Conversions;
separate (System.Unwind.Backtrace)
package body Separated is
pragma Suppress (All_Checks);
-- Note: In SjLj mode, Unwind_Backtrace does not work.
procedure main
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.