id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
4,100 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/concat_length.adb | -- { dg-do run }
procedure Concat_Length is
type Byte is mod 256;
for Byte'Size use 8;
type Block is array(Byte range <>) of Integer;
C0: Block(1..7) := (others => 0);
C1: Block(8..255) := (others => 0);
C2: Block := C0 & C1;
begin
if C2'Length /= 255 then
raise Program_Error;
end if;
end;
|
4,101 | ada | 0 | Tim-Tom/project-euler | Ada/inc/PrimeUtilities.ads | with Heap;
generic
type Num is range <>;
package PrimeUtilities is
type Sieve is Array (Positive range <>) of Num;
type Prime_Count is Record
prime : Num;
count : Positive;
end Record;
type Prime_Factors is Array (Positive range <>) of Prime_Count;
type Proper_Divisors is Array (Positive ... |
4,102 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c93001a.ada | -- C93001A.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... |
4,103 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2401c.ada | -- CE2401C.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... |
4,104 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/gnatmem.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<filename>tools-src/gnu/gcc/gcc/ada/gnatmem.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
4,105 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-devices-surfaces-copy.adb |
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Devices.Surfaces.Copy is
function new_fl_copy_surface
(W, H : in Interfaces.C.int)
return System.Address;
pragma Import (C, new_fl_copy_surface, "new_fl_copy_surface");
pragma Inline (new_fl_copy_su... |
4,106 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Knights-tour/Ada/knights-tour-4.ada | function Warnsdorff_Get_Tour(Start_X, Start_Y: Index; Scene: Tour := Empty)
return Tour;
-- uses Warnsdorff heurisitic to find a tour faster
-- same interface as Get_Tour
|
4,107 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/GUI-enabling-disabling-of-controls/Ada/gui-enabling-disabling-of-controls.ada | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/GUI-enabling-disabling-of-controls/Ada/gui-enabling-disabling-of-controls.ada<gh_stars>1-10
with Ada.Strings.Fixed;
with Gtk.Main;
with Gtk.Handlers;
with Gtk.Button;
with Gtk.Window;
with Gtk.GEntry;
with Gtk.Editable;
with Gtk.Box;
with Gtk.Widget;
with Glib.Valu... |
4,108 | ada | 0 | Feqzz/RSA | main.adb | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Strings.Unbounded;
with Ada.Strings.Fixed;
with Ada.Command_Line;
procedure Main is
p : Long_Long_Integer;
q : Long_Long_Integer;
phi : Long_Long_Integer;
n : Long_Long_Integer;
e : Long_Long_Integer;
d : Long_Long_Integer;
message : Long_Long_... |
4,109 | ada | 7,053 | Elon143/Amass | resources/scripts/scrape/sitedossier.ads | -- Copyright 2017-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 = "SiteDossier"
type = "scrape"
function start()
set_rate_limit(4)
end
function vertical(ctx, domain)
local num = 1
while(true) do
local ok =... |
4,110 | ada | 12 | TUM-EI-RCS/StratoX | software/modules/logger.adb | <gh_stars>10-100
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
-- <NAME> (<EMAIL>)
--
-- Description:
-- allows logging of structured messages at several logging levels.
--
-- Usage:
-- Logger.init -- initializes the Logger
-- Logger.log_console (Logger.INFO, "Program started.")... |
4,111 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt12_pkg.adb | <reponame>best08618/asylo
package body Opt12_Pkg is
function Equal (L, R: Static_Integer_Subtype) return Boolean is
begin
return (L = R);
end;
end Opt12_Pkg;
|
4,112 | ada | 0 | SKNZ/BoiteMaker | src/boites.adb | -- Ada packages
with ada.command_line;
use ada.command_line;
with ada.exceptions;
use ada.exceptions;
with ada.text_io;
use ada.text_io;
-- BoiteMaker packages
with commandline_args;
use commandline_args;
with box_info;
use box_info;
with box_parts;
use box_parts;
with svg;
use svg;
with text_file;
use text_file;
with... |
4,113 | ada | 1 | ytomino/vampire | source/vampire-villages-advance.ads | -- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Numerics.MT19937;
procedure Vampire.Villages.Advance (
Village : in out Village_Type;
Now : in Ada.Calendar.Time;
Generator : aliased in out Ada.Numerics.MT19937.Generator;
Changed : out Boolean;
List_Changed : out Boolean);
|
4,114 | ada | 4 | jorge-real/Ball-On-Beam | src/bb-gui-controller.ads | ------------------------------------------------------------
-- B B . G U I . C O N T R O L L E R --
-- --
-- Spec --
-- --
-- "Controller... |
4,115 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/fe_inlining.ads | -- { dg-do compile }
-- { dg-options "-O -gnatN" }
with FE_Inlining_Helper;
procedure FE_Inlining is new FE_Inlining_Helper;
|
4,116 | ada | 0 | ana/pok | libpok/ada/arinc653/apex-events.ads | -- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Pleas... |
4,117 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-compress.adb | <filename>src/numerics-sparse_matrices-compress.adb
separate (Numerics.Sparse_Matrices)
procedure Compress (Mat : in out Sparse_Matrix) is
X : Real_Vector (1 .. Integer (Mat.X.Length)) := (others => 0.0);
I : Int_Array (1 .. Integer (Mat.X.Length)) := (others => 0);
Col, Count : Int_Array ... |
4,118 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Forest-fire/Ada/forest-fire.ada | with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random;
with Ada.Text_IO; use Ada.Text_IO;
procedure Forest_Fire is
type Cell is (Empty, Tree, Fire);
type Board is array (Positive range <>, Positive range <>) of Cell;
procedure Step (S : in out Board; P, F : Float; Dice : Generator) is
... |
4,119 | ada | 0 | reznikmm/webidl | source/lexer/generated/webidl-scanners-tables.adb | <filename>source/lexer/generated/webidl-scanners-tables.adb<gh_stars>0
with Matreshka.Internals.Unicode.Ucd;
separate (WebIDL.Scanners)
package body Tables is
subtype First_Stage_Index is
Matreshka.Internals.Unicode.Ucd.First_Stage_Index;
subtype Second_Stage_Index is
Matreshka.Internals.Unicode.Ucd.S... |
4,120 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-uvec4.ads | <filename>src/vulkan-math/vulkan-math-uvec4.ads<gh_stars>1-10
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentatio... |
4,121 | ada | 0 | xuedong/mini-ada | tests/syntax/bad/testfile-end-3.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
function F return integer is begin return 0; end G;
begin Put('a'); end;
|
4,122 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3906d.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3906d.ada<gh_stars>1-10
-- CE3906D.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 ... |
4,123 | ada | 3 | reznikmm/coroutines | examples/timeout_proc.adb | <filename>examples/timeout_proc.adb
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Calendar.Formatting;
with Ada.Text_IO;
with Coroutines.Timeouts;
procedure Timeout_Proc is
begin
Ada.... |
4,124 | ada | 0 | adrianhoe/adadft | dft.adb | --------------------------------------------------------------------------------
-- * Body name dft.adb
-- * Project name dfttest
-- *
-- * Version 1.0
-- * Last update 11/9/08
-- *
-- * Created by <NAME> on 11/9/08.
-- * Copyright (c) 2008 AdaStar Informatics http://adastarinformatics.com
-- * All righ... |
4,125 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect17.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect17.ads<gh_stars>1-10
package Vect17 is
type Sarray is array (1 .. 4) of Long_Float;
for Sarray'Alignment use 16;
procedure Add (X, Y : aliased Sarray; R : aliased out Sarray);
end Vect17;
|
4,126 | ada | 192 | rocher/Ada_Drivers_Library | boards/stm32_common/stm32f429disco/framebuffer_ili9341.adb | <reponame>rocher/Ada_Drivers_Library<filename>boards/stm32_common/stm32f429disco/framebuffer_ili9341.adb
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore ... |
4,127 | ada | 1 | persan/A-gst | src/gstreamer-rtsp-transport.ads | <filename>src/gstreamer-rtsp-transport.ads
with Interfaces.C; use Interfaces.C;
with System;
private with GStreamer.GST_Low_Level.Gstreamer_0_10_Gst_Rtsp_Gstrtsptransport_H;
with Ada.Finalization;
package GStreamer.Rtsp.Transport is
type GstRTSPTransport_Record is tagged private;
type GstRTSPTransport is access a... |
4,128 | ada | 0 | gitter-badger/Ada-tools | AdaToolsTests/Func.adb | with Both;
use Both;
function Func return Integer is
begin
return 0;
end Func; |
4,129 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/equal1.ads | <reponame>best08618/asylo
package equal1 is
type Basic_Connection_Status_T is (Connected, Temporary_Disconnected,
Disconnected);
for Basic_Connection_Status_T'Size use 8;
type Application_Connection_Status_T is (Connected, Disconnected);
for Application_Connection_Status_T'Size use 8;
end equal1;
|
4,130 | ada | 1 | TNO/Rejuvenation-Ada | workshop/Workshop_Workbook/src/main.adb | <reponame>TNO/Rejuvenation-Ada
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
procedure Main is
begin
-- Insert code here.
null;
end Main;
|
4,131 | ada | 0 | oddek/DCS3101-1_Cybersecurity | ExtendedGCD/main.adb | <filename>ExtendedGCD/main.adb
with Ada.Text_IO; use ADA.Text_IO;
procedure main is
procedure extended_gcd(a : Integer; b : Integer) is
old_r : Integer := a;
r : Integer := b;
old_s : Integer := 1;
s : Integer := 0;
old_t : Integer := 0;
t : Integer := 1;
quotient : Integer;
temp : Integer;
begin
while r... |
4,132 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/i-cpp.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,133 | ada | 7 | letsbyteit/build-avr-ada-toolchain | rts/gcc-9/adainclude/s-secsta.adb | -- Copyright (C) 2016-2017, 2019 Free Software Foundation, Inc.
--
-- This file is part of the Cortex GNAT RTS project. This file is
-- free software; you can redistribute it and/or modify it under
-- terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at ... |
4,134 | ada | 0 | thierr26/ada-apsepp | src/apsepp-test_event_class-generic_exception_mixin.adb | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Unchecked_Deallocation;
package body Apsepp.Test_Event_Class.Generic_Exception_Mixin is
----------------------------------------------------------------------------
overriding
procedure Set (Obj : in out Child... |
4,135 | ada | 4 | davidkristola/vole | kv-avm-test-runners.ads | <reponame>davidkristola/vole
with Interfaces;
with kv.avm.Executables;
with kv.avm.Instructions;
with kv.avm.Registers;
with kv.avm.Actors;
with kv.avm.Processors;
with kv.avm.Frames;
with kv.avm.Actor_References;
with kv.avm.Actor_References.Sets;
with kv.avm.Messages;
with kv.avm.Tuples;
with kv.avm.Control;
with kv... |
4,136 | ada | 0 | ray2501/AdaBaseXClient | tests/clienttest.adb | <reponame>ray2501/AdaBaseXClient<gh_stars>0
with Ahven; use Ahven;
with AdaBaseXClient; use AdaBaseXClient;
--
-- Requires BaseX server when testing
--
package body ClientTest is
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "My tests");
T.Add_Test_Routine
... |
4,137 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-library.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
4,138 | ada | 12 | TUM-EI-RCS/StratoX | tests/generic-unit/src/config.ads | <reponame>TUM-EI-RCS/StratoX
with Units; use Units;
package Config is
CFG_TARGET_ALTITUDE_THRESHOLD : constant Altitude_Type := 100.0 * Meter;
CFG_TARGET_ALTITUDE_THRESHOLD_TIME : constant := 6.0 * Second;
end Config;
|
4,139 | ada | 26 | damaki/libkeccak | tests/unit_tests/sponge_tests.adb | <gh_stars>10-100
-------------------------------------------------------------------------------
-- Copyright (c) 2016, <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:
-- * Redistri... |
4,140 | ada | 52 | onox/orka | orka/src/orka/linux/orka-os.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
4,141 | ada | 33 | ytomino/drake | source/directories/a-direct.adb | <filename>source/directories/a-direct.adb
with Ada.Calendar.Naked;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System.Form_Parameters;
with System.Storage_Elements;
package body Ada.Directories is
use type System.Native_Directories.File_Kind;
use type System.Native_Directories.Searching.H... |
4,142 | ada | 33 | ytomino/drake | source/containers/a-cbtaad.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
-- implementation unit
package Ada.Containers.Binary_Trees.Arne_Andersson.Debug is
pragma Preelaborate;
function Root (Node : not null Node_Access) return not null Node_Access;
function Dump (
Container : Node_Access;
Marker : Node_Access;
... |
4,143 | ada | 76 | yannickmoy/SPARKNaCl | src/sparknacl-hashing.adb | package body SPARKNaCl.Hashing
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
subtype Index_80 is I32 range 0 .. 79;
type K_Table is array (Index_80) of U64;
K : constant K_Table :=
(16#428a2f98d728ae22#, 16#7137449123ef65cd#,
16#b5c0fbcfec4d... |
4,144 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-contt-ut.ads | <reponame>My-Colaborations/dynamo
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
4,145 | ada | 0 | VitalijBondarenko/notifyada | demo/src/demo_action.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2021 <NAME> <<EMAIL>> --
-- --
----------------------------... |
4,146 | ada | 4 | assessorgeneral/ConQAT | org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/fm-locks.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
4,147 | ada | 0 | thomas070605/shoot-n-loot | src/projectile.ads | -- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with GESTE;
with GESTE.Sprite;
with GESTE.Tile_Bank;
with GESTE.Maths_Types;
with GESTE.Physics;
with GESTE_Config;
package Projectile is
type Instance
(Bank : not null GESTE.Tile_Bank.Const_Ref;
Init_Frame : GESTE_Config.Tile_Index)
is tagged lim... |
4,148 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-icon.ads | <reponame>auzkok/libagar
with agar.core.types;
with agar.gui.surface;
with agar.gui.types;
package agar.gui.widget.icon is
use type c.unsigned;
subtype flags_t is agar.gui.types.widget_icon_flags_t;
ICON_REGEN_LABEL : constant flags_t := 16#01#;
ICON_DND : constant flags_t := 16#02#;
ICON_DBLCLICKE... |
4,149 | ada | 0 | Letractively/ada-awa | awa/plugins/awa-mail/src/awa-mail-modules.adb | <filename>awa/plugins/awa-mail/src/awa-mail-modules.adb
-----------------------------------------------------------------------
-- awa-mail -- Mail module
-- Copyright (C) 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this ... |
4,150 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/source/990_spark_example_project/string_fixed.adb | -- This code is a subset of ADA.STRINGS.FIXED implementation in GNAT
with Ada.Strings.Maps; use Ada.Strings.Maps;
package body String_Fixed with SPARK_Mode is
-----------------------
-- Local Subprograms --
-----------------------
function Belongs
(Element : Character;
Set : Maps.Charact... |
4,151 | ada | 263 | jfouquart/synth | src/portscan-buildcycle-ports.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package PortScan.Buildcycle.Ports is
function build_package (id : builders;
sequence_id : port_id;
interactive : Boolean := False;
... |
4,152 | ada | 1 | mullikine/RosettaCodeData | Task/Binary-search/Ada/binary-search-1.ada | with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Recursive_Binary_Search is
Not_Found : exception;
generic
type Index is range <>;
type Element is private;
type Array_Of_Elements is array (Index range <>) of Element;
with function "<" (L, R : Element) return Boolean is <>;
function ... |
4,153 | ada | 20 | charlie5/lace | 4-high/gel/source/gel-conversions.ads | with
openGL;
package gel.Conversions
is
function to_GL (Self : in math.Real) return opengl.Real;
function to_GL (Self : in math.Vector_3) return opengl.Vector_3;
function to_GL (Self : in math.Matrix_3x3) return opengl.Matrix_3x3;
function to_GL (Self ... |
4,154 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/components/FM25V0x/fm25v0x.ads | -- Institution: Technische Universität München
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
with Ada.Real_Time; use Ada.Real_Time;
with HIL; use HIL;
-- @summary
-- SPI protocol to CYPRESS FM25v0x series (ferroelectric RAM, non-volatile)
gen... |
4,155 | ada | 20 | charlie5/lace | 3-mid/opengl/private/freetype/source/thin/freetype_c-binding.ads | <gh_stars>10-100
with
freetype_c.FT_BBox,
freetype_c.FT_Face,
freetype_c.FT_Bitmap,
freetype_c.FT_Library,
freetype_c.FT_Size_Metrics,
freetype_c.FT_CharMapRec,
freetype_c.FT_Size,
freetype_c.FT_Vector,
freetype_c.FT_GlyphSlot,
freetype_c.FT_CharMap,
freetype_c.Poi... |
4,156 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/static_initializer4.ads | -- { dg-do compile }
package Static_Initializer4 is
type R is tagged record
b : Boolean;
end record;
type NR is new R with null record;
C : NR := (b => True);
end Static_Initializer4;
|
4,157 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/pimoroni_led_dot_matrix.ads | <reponame>hgrodriguez/embedded-dashboard-console
--
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
-- This is a driver for the Pimoroni PIM526 LED Dot Matrix Breakout using an
-- IS31FL3730 I2C LED matrix driver to control two LTP-305 5x7 matrices.
-- https://shop.pimoroni.com/products... |
4,158 | ada | 0 | thierr26/ada-apsepp | src/_test/helpers/apsepp-test_reporter_data_struct_class-impl-testing.adb | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Exceptions,
Ada.Assertions,
Apsepp.Calendar;
package body Apsepp.Test_Reporter_Data_Struct_Class.Impl.Testing is
---------------------------------------------------------------... |
4,159 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a34017c.ada | <gh_stars>1-10
-- A34017C.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.... |
4,160 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Thieles-interpolation-formula/Ada/thieles-interpolation-formula-1.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Numerics.Generic_Real_Arrays;
generic
type Real is digits <>;
package Thiele is
package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real);
subtype Real_Array is Real_Arrays.Real_Vector;
type Thiele_Interpolation (Length : Natural) is private;
... |
4,161 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/par-prag.adb | <reponame>best08618/asylo
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,162 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/checks.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,163 | ada | 33 | ytomino/drake | source/machine-w64-mingw32/s-stack.ads | pragma License (Unrestricted);
-- runtime unit specialized for Windows
with C.winnt;
package System.Stack is
pragma Preelaborate;
procedure Get (
TEB : C.winnt.struct_TEB_ptr := C.winnt.NtCurrentTeb;
Top, Bottom : out Address);
end System.Stack;
|
4,164 | ada | 2 | Lucretia/aplug | ladspa/examples/amp-stereo.ads | -- Amp.Stereo
--
--
------------------------------------------------------------------------------------------------------------------------
with Ada.Finalization;
with Interfaces.C;
with Interfaces.C.Strings;
with LADSPA;
private package Amp.Stereo is
package C renames Interfaces.C;
function Instantiate (Desc... |
4,165 | ada | 20 | charlie5/lace | 3-mid/opengl/private/gl/applet/test/linkage/launch_gl_linkage_test.adb | <reponame>charlie5/lace
with
GL.safe,
GL.lean,
GL.desk,
interfaces.C,
System;
procedure launch_GL_linkage_Test
--
-- This test is only intended to check that all GL functions link correctly.
-- It is not meant to be run.
--
-- todo: Add missing calls for each profile.
is
use GL;
begin
... |
4,166 | ada | 0 | Holt59/Ada-SDL | include/game-display.ads | --------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-DISPLAY.ADS --
-- --
-- Gestion de l'affichage principal --
-- ... |
4,167 | ada | 0 | oddek/DCS3101-1_Cybersecurity | GCD/main.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure main is
function GCD(a : Integer; b : Integer) return Integer is
a1 : Integer := Integer'max(a,b);
b1 : Integer := Integer'min(a,b);
begin
if b = 0 then
return a;
else
return GCD(b, a mod b);
end if;
end GCD;
begin
Put_Line(Integer'Image(GCD(9, 27)));
Pu... |
4,168 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/afrl-impact-impactautomationrequest-spark_boundary.adb | <reponame>pat-rogers/OpenUxAS<filename>src/ada/src/afrl-impact-impactautomationrequest-spark_boundary.adb
package body afrl.impact.ImpactAutomationRequest.SPARK_Boundary with SPARK_Mode => Off is
--------------------------------------
-- Get_EntityList_From_TrialRequest --
------------------------------------... |
4,169 | ada | 13 | annexi-strayline/AURA | checkout.ads | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
4,170 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/GUI-component-interaction/Ada/gui-component-interaction.ada | with Ada.Numerics.Discrete_Random;
with Ada.Strings.Fixed;
with Gtk.Main;
with Gtk.Handlers;
with Gtk.Button;
with Gtk.Window;
with Gtk.GEntry;
with Gtk.Editable;
with Gtk.Box;
with Gtk.Widget;
with Glib.Values;
with Gtkada.Dialogs;
procedure Interaction is
The_Value : Natural := 0;
package Natural_Random is n... |
4,171 | ada | 1 | sparre/JSA | src/jsa-generic_optional_value-buffer.adb | <gh_stars>1-10
separate (JSA.Generic_Optional_Value)
protected body Buffer is
procedure Clear is
begin
if Stored.Set then
Stored := (Set => False);
Changed := True;
end if;
end Clear;
entry Get (Item : out Instance) when Changed is
begin
Item := Stored;
Chan... |
4,172 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array21.adb | -- { dg-do run }
with System;
procedure Array21 is
type Index_T is mod System.Memory_Size;
type Arr
is array (Index_T range Index_T'Last/2-3 .. Index_T'Last/2+3) of Integer;
C : constant Arr := (1, others => 2);
begin
if C /= (1, 2, 2, 2, 2, 2, 2) then
raise Program_Error;
end if;
end;
|
4,173 | ada | 0 | melwyncarlo/ProjectEuler | problems/032/a032.adb | <reponame>melwyncarlo/ProjectEuler<gh_stars>0
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A032 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
Temp_Str_1, Temp_Str_2 : String (1 .. 10);
Temp_Str_3 : String (1 .. 20);
Duplicate_Found : B... |
4,174 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_controller_gstcontrolsource_h.ads | <reponame>persan/A-gst<filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_controller_gstcontrolsource_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock... |
4,175 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack13_pkg.ads | <reponame>best08618/asylo<gh_stars>1-10
generic
Size : Positive;
package Pack13_Pkg is
type Object is private;
private
type Bit is range 0 .. 1;
for Bit'size use 1;
type Object is array (1 .. Size) of Bit;
pragma Pack (Object);
end Pack13_Pkg;
|
4,176 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca1106a.ada | -- CA1106A.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... |
4,177 | ada | 1 | greyblue9/binutils-gdb | gdb/testsuite/gdb.ada/variant-record/value.ads | -- Copyright 2020-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- ... |
4,178 | ada | 1 | ytomino/vampire | source/vampire-r3-message_page.ads | <gh_stars>1-10
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Message_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
Template : in String;
Base_Page : in Forms.Base_Page;
Village_Id : in Tabula.Villages.Village_Id :=
Tabula.Village... |
4,179 | ada | 14 | JeremyGrosser/usb_embedded | src/usb-device-midi.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- --
-- ... |
4,180 | ada | 3 | daveshields/AdaEd | bugs/bug24.ada | PROCEDURE test1 IS
BEGIN
-- missing declaration of n causes this program to crash
FOR i IN 1..n LOOP
NULL;
END LOOP;
END test1;
|
4,181 | ada | 80 | thindil/steamsky | tests/ships-crew-test_data-tests.adb | <gh_stars>10-100
-- 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 an... |
4,182 | ada | 7 | stcarrez/mat | mat/src/parser/mat-expressions-parser.adb |
pragma Style_Checks (Off);
with Interfaces;
with MAT.Expressions.Parser_Goto;
with MAT.Expressions.Parser_Tokens;
with MAT.Expressions.Parser_Shift_Reduce;
with MAT.Expressions.Parser_IO;
with MAT.Expressions.Lexer;
with MAT.Expressions.Lexer_Dfa;
with Ada.Text_IO;
package body MAT.Expressions.Parser is
use Ada;
... |
4,183 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libhwbase/ada/dynamic_mmio/hw-mmio_range.adb | <filename>firmware/coreboot/3rdparty/libhwbase/ada/dynamic_mmio/hw-mmio_range.adb
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation;... |
4,184 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-taprob.adb | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
4,185 | ada | 52 | onox/orka | orka_plugin_terrain/src/orka-features-terrain.adb | <gh_stars>10-100
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licen... |
4,186 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Binary-strings/Ada/binary-strings-1.ada | <reponame>LaudateCorpus1/RosettaCodeData
declare
Data : Storage_Array (1..20); -- Data created
begin
Data := (others => 0); -- Assign all zeros
if Data = (1..10 => 0) then -- Compare with 10 zeros
declare
Copy : Storage_Array := Data; -- Copy Data
begin
if Data'Length = 0 then -- ... |
4,187 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-parameters.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
4,188 | ada | 0 | xeenta/learning-ada | src/002/person.ads | <gh_stars>0
package Person is
subtype Age is Natural range 0 .. 140;
Adult_Age : constant Age := 18;
Unit_Age : Age;
end Person;
|
4,189 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34005s.ada | -- C34005S.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... |
4,190 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/basic_declaration-protected_body_stub_name.adb | separate(Basic_Declaration)
protected body Protected_Body_Stub_Name is
end Protected_Body_Stub_Name;
|
4,191 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP1_Algorithmique/tarif_place.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
-- Afficher le tarif d'une place
procedure Tarif_Place is
Age: Integer; -- l'âge de la personne
Tarif: Float; -- le tarif à appliquer
begin
-- Demander l'age
Get (Age... |
4,192 | ada | 0 | skill-lang/adaCommon | src/skill-containers-vectors.ads | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skills vector container implementation --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> --
-- ... |
4,193 | ada | 70 | Lucretia/bare_bones | build/gnat/rts/common/adainclude/memory.adb | <filename>build/gnat/rts/common/adainclude/memory.adb
-- -*- Mode: Ada -*-
-- Filename : memory.adb
-- Description : Memory routines.
-- Author : <NAME>
-- Created On : Thur Nov 17 15:07:32 2016
-- Licence : See LICENCE in the root directory.
with Inter... |
4,194 | ada | 0 | ytomino/gnat4drake | g-expect.adb | <reponame>ytomino/gnat4drake
with Ada.Characters.Latin_1;
with Ada.Command_Line;
with Ada.Streams.Stream_IO.Pipes;
with Ada.Strings.Unbounded_Strings;
package body GNAT.Expect is
use type GNAT.OS_Lib.Argument_List;
function Get_Command_Output (
Command : String;
Arguments : GNAT.OS_Lib.Argument_List;... |
4,195 | ada | 3 | Fabien-Chouteau/AGATE | src/riscv32/agate-arch-riscv.adb | <filename>src/riscv32/agate-arch-riscv.adb
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, <NAME> --
-- ... |
4,196 | ada | 0 | likai3g/afmt | src/fmt-string_argument.ads | with System;
package Fmt.String_Argument is
function To_Argument (X : String) return Argument_Type'Class
with Inline;
function "&" (Args : Arguments; X : String) return Arguments
with Inline;
private
subtype UTF8_Character is String(1..6);
type String_Argument_Type is new Argument_Type wit... |
4,197 | ada | 0 | glencornell/ada-object-framework | examples/object_hierarchy/object_hierarchy.adb | <reponame>glencornell/ada-object-framework
with Ada.Strings.Unbounded.Text_Io;
with Ada.Text_Io;
with Aof.Core.Objects;
with My_Objects;
-- This example highlights what I envision to be a typical use of the
-- object system. Here we define a widget object type (in the
-- package Widgets), which is inherited from t... |
4,198 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/String-case/Ada/string-case.ada | <gh_stars>1-10
with Ada.Characters.Handling, Ada.Text_IO;
use Ada.Characters.Handling, Ada.Text_IO;
procedure Upper_Case_String is
S : constant String := "alphaBETA";
begin
Put_Line (To_Upper (S));
Put_Line (To_Lower (S));
end Upper_Case_String;
|
4,199 | ada | 80 | thindil/steamsky | src/events.adb | <reponame>thindil/steamsky<gh_stars>10-100
-- Copyright 2016-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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.