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 |
|---|---|---|---|---|---|
2,700 | ada | 9 | jhumphry/SPARK_NORX | src/norx-utils.adb | <gh_stars>1-10
-- NORX.Utils
-- Some utility routines useful when writing the examples.
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
package body NORX.Utils is
package Word_IO is new
Ada.Text_IO.Modular_IO(Num => Word);
use Word_IO;
procedure Put_Sta... |
2,701 | ada | 6 | bosepchuk/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf51_svd-temp.ads | <reponame>bosepchuk/Ada_Drivers_Library
-- Copyright (c) 2013, Nordic Semiconductor ASA
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain ... |
2,702 | ada | 488 | rose-compiler/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/aspect_spec.ads | package aspect_spec is
task type T
with Storage_Size => 1000;
end aspect_spec;
|
2,703 | ada | 33 | ytomino/drake | source/streams/machine-w64-mingw32/s-naioso.adb | with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Once;
with System.Termination;
with System.Zero_Terminated_WStrings;
with System.Debug; -- assertions
with C.psdk_inc.qwsadata;
with C.winnt;
... |
2,704 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr1.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr1.ads
package addr1 is
pragma Elaborate_Body;
end;
|
2,705 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-wchwts.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
2,706 | ada | 1 | Fabien-Chouteau/sdlada | test/rwops.adb | with Ada.Directories;
with Ada.Text_IO;
with SDL.RWops.Streams;
procedure Rwops is
package Text_IO renames Ada.Text_IO;
package Directories renames Ada.Directories;
procedure RWops_Tests is
begin
declare
use type SDL.RWops.Offsets;
Op : constant SDL.RWops.RWops := SDL.RWops.Fr... |
2,707 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-tiunio.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
2,708 | ada | 1 | jquorning/WeDo | source/commands.adb | <gh_stars>1-10
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Calendar;
with Da... |
2,709 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd4051c.ada | -- CD4051C.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... |
2,710 | ada | 33 | ytomino/drake | source/image/required/s-imgdec.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Img_Dec is
pragma Pure;
-- required for Fixed'Image by compiler (s-imglld.ads)
procedure Image_Decimal (
V : Integer;
S : in out String;
P : out Natural;
Scale : Integer);
end System.Img_Dec;
|
2,711 | ada | 81 | twdroeger/ada-awa | awa/src/awa-events-queues-persistents.ads | <reponame>twdroeger/ada-awa<gh_stars>10-100
-----------------------------------------------------------------------
-- awa-events-queues-persistents -- Persistent event queues
-- Copyright (C) 2012, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
2,712 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_10/problem_10.ads | <reponame>PyllrNL/Project_Euler_Solutions
with Test_Solution; use Test_Solution;
with Ada.Containers.Vectors;
package Problem_10 is
type Int128 is range -2**127 .. 2**127 - 1;
package P is new Ada.Containers.Vectors( Index_Type => Natural, Element_Type
=> Natural );
function Solution_1 return Int128... |
2,713 | ada | 7 | stcarrez/resource-embedder | regtests/are-tests.ads | <filename>regtests/are-tests.ads
-----------------------------------------------------------------------
-- are-tests -- Various tests for the are tool (based on examples)
-- Copyright (C) 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
2,714 | ada | 4 | davidkristola/vole | kv-avm-symbol_tables.adb | <filename>kv-avm-symbol_tables.adb<gh_stars>1-10
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Strings.Unbounded;
with Ada.Exceptions; use Ada.Exceptions;
with String_Ops; use String_Ops;
with kv.avm.Log; use kv.avm.Log;
package body kv.avm.Symbol_Tables is
subtype String_Type is Ada.Strings.Unbounded.Un... |
2,715 | ada | 6 | HeisenbugLtd/si_units | src/si_units-binary-scaling.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 t... |
2,716 | ada | 2 | stcarrez/hestia | src/hestia-display-info.adb | -----------------------------------------------------------------------
-- hestia-display-info -- Display information about the system
-- Copyright (C) 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 ... |
2,717 | ada | 20 | charlie5/lace | 3-mid/physics/interface/source/private/bullet/bullet_physics-shape.adb | <filename>3-mid/physics/interface/source/private/bullet/bullet_physics-shape.adb
with
bullet_c.Binding,
c_math_c.Vector_2,
c_math_c.Vector_3,
c_math_c.Conversion,
c_math_c.Triangle,
ada.unchecked_Deallocation,
ada.Unchecked_Conversion,
interfaces.C;
package body bullet_Physic... |
2,718 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/components/MPU6000/mpu6000-register.ads | -- Project: MART - Modular Airborne Real-Time Testbed
-- System: Emergency Recovery System
-- Authors: <NAME> (Original C-Code)
-- <NAME> (<EMAIL>) (Ada Port)
--
-- Module Description:
-- Driver for the IMU MPU6000
--
with HIL; use HIL;
private package MPU6000.Register with SPARK_Mode is
... |
2,719 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Exceptions/Ada/exceptions-1.ada | Foo_Error : exception;
|
2,720 | ada | 0 | Sinbad-The-Sailor/Ada-Snake | graphics.ads | <filename>graphics.ads
--Ada Standard Libraries
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;
--TJa Libraries
with TJa.Window.Text; use TJa.Window.Text;
with TJa.K... |
2,721 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/stm32f4-gyro.adb | <filename>extern/game_support/stm32f4/src/stm32f4-gyro.adb<gh_stars>10-100
with STM32F4.SPI; use STM32F4.SPI;
with STM32F4.GPIO; use STM32F4.GPIO;
with Ada.Unchecked_Conversion;
with Fonts; use Fonts;
package body STM32F4.GYRO is
function As_Half_Word is new Ada.Unchecked_Conversion
(Source => Byte, Target =... |
2,722 | ada | 0 | ytomino/iconv-ada | source/libiconv/iconv-inside.adb | <filename>source/libiconv/iconv-inside.adb
with Ada.Unchecked_Conversion;
with C.iconv;
with C.string;
package body iconv.Inside is
use type C.unsigned_int;
use type C.size_t;
function Do_One (
namescount : C.unsigned_int;
names : access C.char_const_ptr;
data : C.void_ptr)
return C.signed_int
with Conve... |
2,723 | ada | 32 | robdaemon/AdaYaml | src/annotation_processor/implementation/yaml-transformator-annotation-concatenation.ads | <gh_stars>10-100
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
private with Text.Builder;
private with Yaml.Events.Store;
package Yaml.Transformator.Annotation.Concatenation is
type Instance is limited new Transformator.Instance with private;
o... |
2,724 | ada | 0 | Tim-Tom/project-euler | Ada/src/Rational.adb | package body Rational is
function gcd(a_in, b_in : Long_Long_Integer) return Long_Long_Integer is
a : Long_Long_Integer := a_in;
b : Long_Long_Integer := b_in;
begin
if a = 0 then
return b;
end if;
while b /= 0 loop
if a > b then
a := a - b;
els... |
2,725 | ada | 6 | My-Colaborations/ada-servlet | regtests/servlet-testsuite.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- Servlet testsuite - Ada Server Faces Test suite
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
2,726 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array17.adb | <gh_stars>1-10
-- { dg-do compile }
with Array17_Pkg; use Array17_Pkg;
procedure Array17 is
X : aliased Varray := (1 .. 8 => 1.0);
Y : Varray (1 .. 8) := (others => -1.0);
R : Varray (1 .. 8);
begin
R (1 .. 4) := Y (1 .. 4) + X (1 .. 4);
end;
|
2,727 | ada | 33 | persan/zeromq-Ada | tests/testcases/zmq-tests-testcases-test_reqresp.adb | <gh_stars>10-100
with GNAT.Source_Info;
with Ada.Strings.Unbounded;
with AUnit.Assertions; use AUnit.Assertions;
with GNAT.Spitbol; use GNAT.Spitbol;
package body ZMQ.Tests.Testcases.Test_REQRESP is
use AUnit;
use Ada.Strings.Unbounded;
REQUEST_STRING : constant Unbounded_String := V ("Query");
RESPONSE... |
2,728 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/stm32f030x8/stm32gd-board.ads | with STM32GD.GPIO; use STM32GD.GPIO;
with STM32GD.GPIO.Pin;
package STM32GD.Board is
package GPIO renames STM32GD.GPIO;
package BUTTON is new GPIO.Pin (Pin => GPIO.Pin_0, Port => GPIO.Port_A);
package LED is new GPIO.Pin (Pin => GPIO.Pin_6, Port => GPIO.Port_F, Mode => GPIO.Mode_Out);
procedure Init... |
2,729 | ada | 0 | Tim-Tom/project-euler | Ada/inc/PriorityQueue.ads | private with Ada.Containers.Red_Black_Trees;
private with Ada.Finalization;
private with Ada.Streams;
generic
type Priority (<>) is private;
type Element_Type (<>) is private;
with function "<" (Left, Right : Priority) return Boolean is <>;
with function "=" (Left, Right : Priority) return Boolean is <>;
... |
2,730 | ada | 24 | svn2github/matreshka | source/web/tools/a2js/engines-contexts.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,731 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/impact-d3-object.adb | with impact.d3.Transform;
package body impact.d3.Object
is
procedure define (Self : in out Item)
is
use impact.d3.Transform;
begin
Self.m_anisotropicFriction := (1.0, 1.0, 1.0);
Self.m_hasAnisotropicFriction := False;
Self.m_contactProcessingThreshold := math.Real'Las... |
2,732 | ada | 0 | bracke/Meaning | source/RASCAL-ToolboxTextArea.adb | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
2,733 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-call_behavior_actions.ads | <filename>source/amf/uml/amf-uml-call_behavior_actions.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,734 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-standard_profile_l2-implementation_classes.ads | <filename>source/amf/uml/amf-standard_profile_l2-implementation_classes.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,735 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/adv_240_tasking_embedded/answers/solar_system-button.ads | <gh_stars>10-100
package Solar_System.Button is
task Button_Monitor;
end Solar_System.Button;
|
2,736 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/broadphase/impact-d3-collision-quantized_bvh.adb | <gh_stars>10-100
package body impact.d3.collision.quantized_Bvh
is
procedure dummy is begin null; end dummy;
end impact.d3.collision.quantized_Bvh;
-- #include "impact.d3.collision.quantized_Bvh.h"
--
-- #include "LinearMath/btAabbUtil2.h"
-- #include "LinearMath/btIDebugDraw.h"
-- #include "Linear... |
2,737 | ada | 4 | ddugovic/words | search_english.adb | with TEXT_IO; use TEXT_IO;
with Strings_Package; use Strings_Package;
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with CONFIG;
with WORD_PARAMETERS; use WORD_PARAMETERS;
with Inflections_Package; use Inflections_Package;
with Dictionary_Package; use Dictionary_Package;
with DEVELOPER_PARAMETER... |
2,738 | ada | 2 | mgrojo/bingada | src/q_bingo-q_gtk.ads | --*****************************************************************************
--*
--* PROJECT: BINGADA
--*
--* FILE: q_bingo-q_gtk.ads
--*
--* AUTHOR: <NAME>
--*
--*****************************************************************************
package Q_BINGO.Q_GTK is
end Q_BING... |
2,739 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-connectors-edp.adb | <filename>firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-connectors-edp.adb<gh_stars>1-10
--
-- 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... |
2,740 | ada | 80 | thindil/steamsky | tests/log-test_data-tests.ads | -- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Log.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Log.Test_Data
.Test with
null record... |
2,741 | ada | 0 | persan/dds-requestreply | src/dds-request_reply-requester.ads | with DDS.ReadCondition;
with DDS.DataReader;
with DDS.DataWriter;
with DDS.Request_Reply;
package DDS.Request_Reply.Requester is
type Ref is limited interface and DDS.Request_Reply.Ref;
type Ref_Access is access all Ref'Class;
function Get_Request_Data_Writer
(Self : not null access Ref)
return DD... |
2,742 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming6.adb | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-fdump-tree-original" }
package body Renaming6 is
function Get_I return Integer is
begin
return I;
end;
procedure Set_I (Val : Integer) is
begin
I := Val;
end;
function Get_J return Integer is
begin
return J;
end;
procedure Set_J ... |
2,743 | ada | 2 | ficorax/PortAudioAda | examples/GA_Sine/src/ga_sine.adb | <gh_stars>1-10
with Glib; use Glib;
with Gtk.Adjustment; use Gtk.Adjustment;
with Gtk.Button; use Gtk.Button;
with Gtk.Combo_Box; use Gtk.Combo_Box;
with Gtk.Combo_Box_Text; use Gtk.Combo_Box_Text;
with Gtk.Label; use Gtk.Label;
with Gtk.Main; use Gtk.Main;
with Gtk.Scale; use Gtk.Scale;
with Gtk.Spin_Button; use Gtk.... |
2,744 | ada | 0 | fintatarta/protypo | test/examples/User-List/user_lists-user_db.ads | <filename>test/examples/User-List/user_lists-user_db.ads
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package User_Lists.User_Db is
type Db_Entry is
record
First_Name : Unbounded_String;
Last_Name : Unbounded_String;
Institution : Unbounded_String;
end record;
end... |
2,745 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32gd-usart.ads | package STM32GD.USART is
pragma Preelaborate;
type USART_Instance is (USART_1, USART_2, USART_3);
end STM32GD.USART;
|
2,746 | ada | 0 | thomas070605/shoot-n-loot | src/chests.adb | <reponame>thomas070605/shoot-n-loot
-- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with Sound;
with Game_Assets.Tileset;
with Game_Assets.Tileset_Collisions;
with Game_Assets.Misc_Objects; use Game_Assets.Misc_Objects;
with GESTE_Config; use GESTE_Config;
with GESTE.Tile_Bank;
with GESTE.Sprite;
package bo... |
2,747 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-quadspi.ads | <reponame>JCGobbi/Nucleo-STM32H743ZI
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.QUADSPI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subt... |
2,748 | ada | 2 | thindil/tashy2 | src/tk/tk-mainwindow.ads | <filename>src/tk/tk-mainwindow.ads
-- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- U... |
2,749 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-actions.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,750 | ada | 33 | ytomino/drake | source/strings/a-string.ads | <reponame>ytomino/drake<filename>source/strings/a-string.ads
pragma License (Unrestricted);
package Ada.Strings is
pragma Pure;
Space : constant Character := ' ';
Wide_Space : constant Wide_Character := ' ';
Wide_Wide_Space : constant Wide_Wide_Character := ' ';
Length_Error, Pattern_Error, Index_Error... |
2,751 | ada | 10 | persan/gdnative_ada | src/gdnative-context.adb |
with Interfaces.C;
with Interfaces.C.Strings;
with Ada.Exceptions;
package body GDNative.Context is
package IC renames Interfaces.C;
package ICS renames Interfaces.C.Strings;
package AE renames Ada.Exceptions;
------------------------
-- GDNative Initalize --
------------------------
procedure GDNa... |
2,752 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt11.ads | package Opt11 is
type String_Ptr is access constant String;
type Form_Type is (Qualified, Unqualified);
type Rec is record
N1, N2, N3 : Natural;
Fixed : String_Ptr;
Form : Form_Type;
Is_Local : Boolean := True;
end record;
pragma Pack (Rec);
procedure Proc;
end Opt11;
|
2,753 | ada | 5 | docandrew/troodon | include/xcb_damage.ads | <gh_stars>1-10
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with xcb;
with bits_stdint_uintn_h;
with xproto;
with xcb_xfixes;
with System;
package xcb_damage is
XCB_DAMAGE_MAJOR_VERSION : constant := 1; -- /usr/include/xcb/damage.h:23
XCB_DAMAGE_MINOR_VERSION : constant :=... |
2,754 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-transform-offset.adb |
with Device; use Device;
with Memory.Container; use Memory.Container;
package body Memory.Transform.Offset is
function Create_Offset return Offset_Pointer is
result : constant Offset_Pointer := new Offset_Type;
begin
return result;
end Create_Offset;
function Random_Offset(next ... |
2,755 | ada | 3 | jwarwick/aoc_2020 | day15/src/day.ads | <gh_stars>1-10
-- AOC 2020, Day 15
package Day is
type Input_Array is array(Natural range <>) of Natural;
function sequence(s : in Input_Array; step : in Natural) return Natural;
end Day;
|
2,756 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL-from-glut/book/double_sprogs.adb | <filename>thirdparty/adasdl/thin/adasdl/AdaSDL-from-glut/book/double_sprogs.adb
package body Double_Sprogs is
-- ===================================================================
procedure Spin_Display is
begin
spin := spin + 2.0;
if spin > 360.0 then
spin := spin - 360.0;
end i... |
2,757 | ada | 0 | reznikmm/cvsweb2git | source/cvsweb-pushers.adb | <filename>source/cvsweb-pushers.adb
-- BSD 3-Clause License
--
-- Copyright (c) 2017, <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:
--
-- * Redistributions of source code must r... |
2,758 | ada | 3 | jwarwick/aoc_2020 | day05/src/day.adb | <reponame>jwarwick/aoc_2020
-- AoC 2020, Day 5
with Ada.Text_IO;
package body Day is
package TIO renames Ada.Text_IO;
function parse_line(line : in String) return Boarding_Pass is
curr : Boarding_Pass;
begin
declare
low : Row_Type := Row_Type'first;
high : Row_Type := Row_Type'last;
tm... |
2,759 | ada | 0 | optikos/oasis | source/oasis/program-elements-package_body_declarations.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Aspect_Specifications;
w... |
2,760 | ada | 0 | lkujaw/felix | src/nalansys.adb | <reponame>lkujaw/felix
------------------------------------------------------------------------------
-- Copyright (c) 2021, <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 w... |
2,761 | ada | 2 | AdaCore/style_checker | testsuite/tests/NA17-007__copyright/copyright-ko-7.adb | <reponame>AdaCore/style_checker
--------------------------------------------------------------
-- Copyright (C) 2000-2006, Universidad de Cantabria, SPAIN --
--------------------------------------------------------------
package Toto is
pragma Pure;
end Toto;
|
2,762 | ada | 0 | Jellix/elan520 | elan520-mmcr.ads | <reponame>Jellix/elan520<filename>elan520-mmcr.ads
------------------------------------------------------------------------
-- Copyright (C) 2004-2020 by <<EMAIL>> --
-- --
-- This work is free. You can redistribute it and/or modify it u... |
2,763 | ada | 24 | svn2github/matreshka | source/xml/dom/xml-dom-documents.ads | <filename>source/xml/dom/xml-dom-documents.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,764 | ada | 0 | Lucretia/old_nehe_ada95 | utils/mesh.ads | ---------------------------------------------------------------------------------
-- Copyright 2004-2005 © <NAME>
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
-------------------------------------------------------------------... |
2,765 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3704e.ada | <reponame>best08618/asylo<gh_stars>1-10
-- CE3704E.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... |
2,766 | ada | 10 | Ada-Audio/wavefiles | src/audio-riff-wav-formats-report.adb | <reponame>Ada-Audio/wavefiles
------------------------------------------------------------------------------
-- --
-- AUDIO / RIFF / WAV --
-- ... |
2,767 | ada | 16 | stcarrez/ada-enet | src/net-interfaces.ads | -----------------------------------------------------------------------
-- net-interfaces -- Network interface
-- Copyright (C) 2016, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
... |
2,768 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-tlist.ads | with agar.core.event;
with agar.core.event_types;
with agar.core.tail_queue;
with agar.core.timeout;
with agar.core.types;
with agar.gui.surface;
with agar.gui.widget.label;
with agar.gui.widget.menu;
with agar.gui.widget.scrollbar;
with agar.gui.window;
package agar.gui.widget.tlist is
use type c.unsigned;
type... |
2,769 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect9_pkg.ads | package Vect9_Pkg is
type Unit is array (1 .. 4) of Float;
for Unit'Alignment use 32;
pragma Machine_Attribute (Unit, "vector_type");
pragma Machine_Attribute (Unit, "may_alias");
Zero_Unit : constant Unit := (others => 0.0);
function Mul (X : in Unit; Y : in Unit) return Unit;
function "+"(Left... |
2,770 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr26.ads | <gh_stars>1-10
with Discr26_Pkg;
package Discr26 is
type T1 (D : Integer) is record
case D is
when 1 => I : Integer;
when others => null;
end case;
end record;
type My_T1 is new T1 (Discr26_Pkg.N);
procedure Proc;
end Discr26;
|
2,771 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32f103xx/svd/stm32_svd-interrupts.ads | <reponame>ekoeppen/STM32_Generic_Ada_Drivers<filename>stm32f1/stm32f103xx/svd/stm32_svd-interrupts.ads<gh_stars>1-10
-- This spec has been automatically generated from STM32F103.svd
-- Definition of the device's interrupts
package STM32_SVD.Interrupts is
----------------
-- Interrupts --
----------------
... |
2,772 | ada | 1 | Okasu/Byron | src/core/irc.ads | with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with GNAT.Sockets; use GNAT.Sockets;
package IRC is
type Mode is (Quit, Part, Privmsg, Join);
Modes : array (Mode) of Unbounded_String :=
(To_Unbounded_String ("QUIT"),
To_Unbounded_String ("PART"),
To_Unbounded_String ("PRIVMS... |
2,773 | ada | 24 | svn2github/matreshka | source/sql/oci/matreshka-internals-sql_drivers-oracle-utils.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,774 | ada | 0 | djgoku/RosettaCodeData | Task/Hello-world-Text/Ada/hello-world-text.ada | with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
Put_Line ("Goodbye, World!");
end Main;
|
2,775 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-utils-generic_alarms.ads | <filename>src/aco-utils-generic_alarms.ads
with Ada.Real_Time;
private with ACO.Utils.DS.Generic_Collection;
private with ACO.Utils.DS.Generic_Collection.Sorted;
generic
Maximum_Nof_Alarms : Positive;
package ACO.Utils.Generic_Alarms is
type Alarm_Type is abstract tagged limited null record;
type Alarm_Acc... |
2,776 | ada | 12 | jquorning/ada-asf | src/asf-contexts-facelets.ads | <reponame>jquorning/ada-asf
-----------------------------------------------------------------------
-- contexts-facelets -- Contexts for facelets
-- Copyright (C) 2009, 2010, 2011, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... |
2,777 | ada | 30 | jscparker/math_packages | linear_algebra/givens_qr_method.ads | generic
type Real is digits <>;
type Index is range <>;
type A_Matrix is array(Index, Index) of Real;
package Givens_QR_Method is
subtype C_Index is Index;
subtype R_Index is Index;
function Identity return A_Matrix;
-- Input matrix A (in Upper Hessenberg form) and also matrix Q.
--
-... |
2,778 | ada | 23 | SMerrony/dashera | Src/redirector.adb | -- Copyright (C)2021,2022 <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, merge, publish, dist... |
2,779 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-unstyp.ads | <filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-unstyp.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
2,780 | ada | 10 | Ada-Audio/wavefiles | src.prep/audio-wavefiles-generic_NUM_TYPE_wav_NUM_TYPE_2_pcm_io.adb | <reponame>Ada-Audio/wavefiles<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- ... |
2,781 | ada | 0 | mgrojo/smk | src/smk-main-analyze_cmd_line.adb | <filename>src/smk-main-analyze_cmd_line.adb
-- -----------------------------------------------------------------------------
-- smk, the smart make
-- © 2018 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apach... |
2,782 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-inputmux.ads | -- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.INPUTMUX is
pragma Preelaborate... |
2,783 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/test_call_filtering.ads | package Test_Call_Filtering is
procedure Test;
end Test_Call_Filtering;
|
2,784 | ada | 24 | svn2github/matreshka | source/league/league-string_vectors.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,785 | ada | 7 | stcarrez/mat | mat/src/memory/mat-memory-targets.adb | -----------------------------------------------------------------------
-- Memory Events - Definition and Analysis of memory events
-- Copyright (C) 2014, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
2,786 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-exptty.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
2,787 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/dynamics/contacts/impact-d2-contact-circle.ads | with impact.d2.Fixture;
package impact.d2.Contact.circle
--
--
--
is
type b2CircleContact is new b2Contact with null record;
type View is access all b2CircleContact'Class;
function to_b2CircleContact (fixtureA, fixtureB : access fixture.b2Fixture'Class) return b2CircleContact;
overriding ... |
2,788 | ada | 33 | ytomino/drake | source/textio/a-ztdeio.ads | pragma License (Unrestricted);
-- separated and auto-loaded by compiler
private generic
type Num is delta <> digits <>;
package Ada.Wide_Wide_Text_IO.Decimal_IO is
Default_Fore : Field := Num'Fore;
Default_Aft : Field := Num'Aft;
Default_Exp : Field := 0;
-- procedure Get (
-- File : File_Type; -- In... |
2,789 | ada | 4 | ytomino/gmp-ada | source/gmp-generic_f.ads | with GMP.Root_F;
generic
Precision : in GMP.Precision := Default_Precision;
package GMP.Generic_F is
pragma Preelaborate;
type MP_Float is new Root_F.MP_Float (Precision);
-- conversions
function To_MP_Float (X : Long_Float) return MP_Float;
-- function To_Long_Float (X : MP_Float) return Long_Float;
-- thi... |
2,790 | ada | 0 | Fabien-Chouteau/COBS | tests/src/testsuite-encode-multiframe_tests.ads | <gh_stars>0
private
package Testsuite.Encode.Multiframe_Tests is
procedure Add_Tests (Suite : in out AUnit.Test_Suites.Test_Suite'Class);
end Testsuite.Encode.Multiframe_Tests;
|
2,791 | ada | 1 | danva994/ASFML-1.6 | include/sf-network-packet.adb | <filename>include/sf-network-packet.adb
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the ... |
2,792 | ada | 60 | RREE/ada-util | src/sys/http/util-http.ads | -----------------------------------------------------------------------
-- util-http -- HTTP Utility Library
-- Copyright (C) 2012, 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.
--... |
2,793 | ada | 18 | jrmarino/ravenadm | src/port_specification-transform.adb | <reponame>jrmarino/ravenadm<filename>src/port_specification-transform.adb<gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Utilities;
with Ada.Characters.Latin_1;
with Ada.Directories;
with Parameters;
with Unix;
package body Port_Specificat... |
2,794 | ada | 1 | selroc/Renaissance-Ada | src/libraries/Rejuvenation_Lib/src/rejuvenation-utils.adb | <gh_stars>1-10
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Equal_Case_Insensitive;
with Langkit_Support.Text; use Langkit_Support.Text;
package body Rejuvenation.Utils is
-- Raw signature --------
function Raw_Signature
(Node ... |
2,795 | ada | 4 | faelys/gela-asis | source/asis/spec/ada-streams-stream_io.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
2,796 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-taskin.ads | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
2,797 | ada | 192 | rocher/Ada_Drivers_Library | middleware/src/BLE/bluetooth_low_energy.adb | package body Bluetooth_Low_Energy is
---------------
-- Make_UUID --
---------------
function Make_UUID (UUID : UInt16) return BLE_UUID is
begin
return (Kind => UUID_16bits,
UUID_16 => UUID);
end Make_UUID;
---------------
-- Make_UUID --
---------------
function... |
2,798 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-dorepr.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,799 | ada | 0 | JeremyGrosser/arm_cmsis_dsp | src/stddef_h.ads | <filename>src/stddef_h.ads<gh_stars>0
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
package stddef_h is
-- unsupported macro: NULL ((void *)0)
-- arg-macro: procedure offsetof (TYPE, MEMBER)
-- __builtin_offsetof (TYPE, MEMBER)
subtype ptrdif... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.