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,300 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-lexer-re2c.ads | <filename>.emacs.d/elpa/wisi-3.1.3/wisitoken-lexer-re2c.ads
-- Abstract:
--
-- WisiToken wrapper around the re2c lexer
--
-- References:
--
-- [1] http://re2c.org/
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free ... |
4,301 | ada | 33 | ytomino/drake | source/machine-w64-mingw32/x86_64/seh/s-unwsea.ads | pragma License (Unrestricted);
-- runtime unit for Win64 SEH
with C.excpt;
with C.unwind;
with C.winnt;
package System.Unwind.Searching is
pragma Preelaborate;
function Unwind_RaiseException (
exc : access C.unwind.struct_Unwind_Exception)
return C.unwind.Unwind_Reason_Code
renames C.unwind.Un... |
4,302 | ada | 1 | GambuzX/Pixy-SIW | pixy/src/host/pantilt_in_ada/sigint_handler.ads | <gh_stars>1-10
--
-- Copyright (c) 2015, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above copyright
-- notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS ... |
4,303 | ada | 9 | alire-project/clic | example/src/clic_ex-commands-topics.ads | <gh_stars>1-10
package CLIC_Ex.Commands.Topics is
end CLIC_Ex.Commands.Topics;
|
4,304 | ada | 4 | FredPraca/distributed_cbsg | Ada/client/src/corbacbsg-cbsg.ads | pragma Style_Checks ("NM32766");
pragma Wide_Character_Encoding (Brackets);
---------------------------------------------------
-- This file has been generated automatically from
-- cbsg.idl
-- by IAC (IDL to Ada Compiler) 20.0w (rev. 90136cd4).
---------------------------------------------------
-- NOTE: If you m... |
4,305 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack9.ads | <gh_stars>1-10
package Pack9 is
type R1 is record
I : Integer;
C : Character;
end record;
type R2 is record
I1, I2 : Integer;
A : R1;
end record;
pragma Pack(R2);
type R2_Ptr is access all R2;
procedure Copy (X, Y : R2_Ptr);
end Pack9;
|
4,306 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 02/P02_Excepciones4/src/excepciones_4.adb | <reponame>dpr1005/Tiempo-Real-Ejercicios
with Ada.Text_IO; use Ada.Text_IO;
procedure Excepciones_4 is
I, J : Integer;
begin
I := 0;
while I < 50 loop
begin
J := 40 / I;
exception
when Constraint_Error =>
Put_Line("Intento de dividir por 0");
end;
Put_Line(... |
4,307 | ada | 0 | faelys/natools | src/natools-smaz_implementations-base_64_tools.ads | <filename>src/natools-smaz_implementations-base_64_tools.ads
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, <NAME> --
-- --
-- Permission to use, copy, m... |
4,308 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2008a0.ada | <gh_stars>1-10
-- CA2008A0M.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 herei... |
4,309 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-clear_association_actions.ads | <filename>source/amf/uml/amf-uml-clear_association_actions.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
4,310 | ada | 24 | svn2github/matreshka | source/league/league-json-objects.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
4,311 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-span_end.ads | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
4,312 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32wl5x_cm0/stm32_svd.ads | -- This spec has been automatically generated from STM32WL5x_CM0P.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- STM32WL5x_CM0P
package STM32_SVD is
pragma Preelaborate;
--------------------
-- Base addresses --
--------------------
ADC_B... |
4,313 | ada | 0 | VMika/Des_Ada | Des_Ada/src/p_stephandler.adb | <filename>Des_Ada/src/p_stephandler.adb<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with P_StructuralTypes;
use P_StructuralTypes;
package body P_stephandler is
function Get_NextHandler (Self : in out T_StepHandler) return Ptr_Handler is
begin
return Self.NextHandler;
end;
procedure Set_Nex... |
4,314 | ada | 0 | bkold/Terminal-Chess | Source/ncurses.ads | package NCurses is
pragma Pure;
type Color is new Natural range 0..7;
type Color_Range is new Natural range 0..1000;
type Byte is mod 2**8 with Size=>8;
COLOR_BLACK : constant Color := 0;
COLOR_RED : constant Color := 1;
COLOR_GREEN : constant Color := 2;
COLOR_YELLOW : constant Color := 3;
COLOR_BLUE : cons... |
4,315 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/adv_170_multiple_inheritance/answers/solar_system-graphics.adb | <gh_stars>10-100
package body Solar_System.Graphics is
function Get_X(Drawable : Visible_Body_Decorator_T) return Float is
begin
return Drawable.Object_Ptr.Get_X;
end Get_X;
function Get_Y(Drawable : Visible_Body_Decorator_T) return Float is
begin
return Drawable.Object_Ptr.Get_Y;
end G... |
4,316 | ada | 3 | pyjarrett/archaic_terminal | src/common/trendy_terminal-completions.adb | <reponame>pyjarrett/archaic_terminal
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License... |
4,317 | ada | 3 | jwarwick/aoc_2020 | day07/src/main.adb | -- AOC 2020, Day 7
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
bag_colors : constant Natural := valid_bag_colors;
nested : constant Natural := nested_bags;
begin
put_line("Part 1: " & Natural'Image(bag_colors));
put_line("Part 2: " & Natural'Image(nested));
end main;
|
4,318 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/nan_max.adb | -- { dg-do run }
procedure Nan_Max is
function NaN return Long_Float is
Zero : Long_Float := 0.0;
begin
return Zero / Zero;
end;
Z : Long_Float := 1.0;
N : Long_Float := NaN;
begin
if Long_Float'Max (N, Z) /= Z then
raise Program_Error;
end if;
if Long_Float'Max (Z, N) /= ... |
4,319 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-empty.ads | <filename>3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-empty.ads
with impact.d3.collision.Algorithm;
with impact.d3.Object;
with impact.d3.Dispatcher,
impact.d3.collision.manifold_Result,
impact.d3.collision.create_Func;
package impact.d3.collision.Algorithm.empty
--
-- EmptyAlg... |
4,320 | ada | 0 | faelys/natools | generated/natools-s_expressions-printers-pretty-config-commands-t.adb | -- Generated at 2014-06-02 19:12:04 +0000 by Natools.Static_Hash_Maps
-- from ../src/natools-s_expressions-printers-pretty-config-commands.sx
with Natools.S_Expressions.Printers.Pretty.Config.Main_Cmd;
with Natools.S_Expressions.Printers.Pretty.Config.Newline_Cmd;
with Natools.S_Expressions.Printers.Pretty.Config.Qu... |
4,321 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-window-context.ads | --//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2018 <NAME> (<EMAIL>)
-- 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 use of this... |
4,322 | ada | 30 | jscparker/math_packages | ordinary/predictor_2_demo_2.adb |
with Predictor_2;
with Text_IO; use Text_IO;
with Orbit_2;
procedure predictor_2_demo_2 is
type Real is digits 15;
package One_Electron_Atom is new Orbit_2 (Real);
use One_Electron_Atom;
package Orb_Integrate is new
Predictor_2 (Real, Dyn_Index, Dynamical_Variable, F, "*", "+", "-");
use Orb_... |
4,323 | ada | 18 | jquorning/ada-wiki | src/wiki-render.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- wiki-render -- Wiki renderer
-- Copyright (C) 2015, 2016, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wi... |
4,324 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/sem_ch3.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,325 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/layered_abstraction_p.ads | generic
type T is private;
Obj : T;
package Layered_Abstraction_P is
Obj2 : T := Obj;
end;
|
4,326 | ada | 24 | svn2github/matreshka | source/amf/utp/amf-internals-tables-utp_metamodel.ads | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
4,327 | ada | 12 | TUM-EI-RCS/StratoX | software/unittest/estimator/src/fakedev/hil-spi.adb | <reponame>TUM-EI-RCS/StratoX
package body HIL.SPI is
procedure configure is null;
procedure select_Chip (Device : Device_ID_Type) is null;
procedure deselect_Chip (Device : Device_ID_Type) is null;
-- with Global => (Input => (Deselect));
procedure write (Device : Device_ID_Type; Data : Data_Type) is... |
4,328 | ada | 0 | optikos/oasis | source/parser/program-parsers-on_reduce_1001.adb | <filename>source/parser/program-parsers-on_reduce_1001.adb
with Program.Parsers.Nodes;
use Program.Parsers.Nodes;
pragma Style_Checks ("N");
procedure Program.Parsers.On_Reduce_1001
(Self : access Parse_Context;
Prod : Anagram.Grammars.Production_Index;
Nodes : in out Program.Parsers.Nodes.Node_Array) is
beg... |
4,329 | ada | 1 | persan/A-gst | src/gstreamer-rtsp-connection.ads | <filename>src/gstreamer-rtsp-connection.ads<gh_stars>1-10
pragma Ada_2005;
with Glib;
with GStreamer.Rtsp.Url;
with GStreamer.Rtsp.Message;
with Ada.Finalization;
with System;
-- private with GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtspconnection_h;
package GStreamer.Rtsp.Connection is
type GstRTSPConne... |
4,330 | ada | 0 | icefoxen/lang | ada/hello3.adb |
with Hello;
procedure Hello3 is
begin
Hello;
Hello;
Hello;
end Hello3;
|
4,331 | ada | 6 | My-Colaborations/ada-servlet | src/servlet-resolvers.adb | -----------------------------------------------------------------------
-- servlet-resolvers -- Resolver to create and give access to managed beans
-- Copyright (C) 2013, 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
4,332 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sem_ch5.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/sem_ch5.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,333 | ada | 0 | BRAVO68WEB/OwO | OwO.adb | with Ada.Text_IO;
use Ada.Text_IO;
procedure OwO is
begin
Put_Line ("OwO");
end OwO;
|
4,334 | ada | 20 | charlie5/lace | 1-base/math/source/generic/pure/geometry/any_math-any_geometry-any_d3-any_modeller-any_forge.ads | generic
package any_Math.any_Geometry.any_d3.any_Modeller.any_Forge
--
-- Provides constructors for several geometry primitives.
--
is
function to_Box_Model (half_Extents : in Vector_3 := (0.5, 0.5, 0.5)) return a_Model;
function to_Capsule_Model (Length : in Real := 1.0;
... |
4,335 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/check_elaboration_code.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/check_elaboration_code.adb
-- { dg-do run }
with Bug_Elaboration_Code; use Bug_Elaboration_Code;
procedure Check_Elaboration_Code is
begin
if I /= J then
raise Program_Error;
end if;
end Check_Elaboration_Code;
|
4,336 | ada | 7 | 98devin/ada-gba-dev | demo/src/Hello.adb | <filename>demo/src/Hello.adb<gh_stars>1-10
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with GBA.Refs;
with GBA.BIOS;
with GBA.BIOS.Arm;
with GBA.BIOS.Memset;
with GBA.Display;
with GBA.Display.Tiles;
with GBA.Display.Backgrounds;
with GBA.Display.Backgrounds.Refs;
with GBA.Display.Objec... |
4,337 | ada | 2 | reznikmm/webdriver | example/test.adb | <filename>example/test.adb
with Ada.Wide_Wide_Text_IO;
with League.Strings;
with League.JSON.Arrays;
with League.JSON.Objects;
with League.JSON.Values;
with WebDriver.Drivers;
with WebDriver.Elements;
with WebDriver.Remote;
with WebDriver.Sessions;
procedure Test is
function "+"
(Text : Wide_Wide_String) ret... |
4,338 | ada | 1 | Lucretia/pc_tut | parsing.adb | <gh_stars>1-10
package body Parsing is
function Parse (Parser : in Parse_Character; Input : in String) return Result'Class is
begin
if Input = "" then
return Failure'(Message => To_Unbounded_String ("No more input"));
elsif Input (Input'First) = Parser.Match then
declare
... |
4,339 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Van-der-Corput-sequence/Ada/van-der-corput-sequence.ada | with Ada.Text_IO;
procedure Main is
package Float_IO is new Ada.Text_IO.Float_IO (Float);
function Van_Der_Corput (N : Natural; Base : Positive := 2) return Float is
Value : Natural := N;
Result : Float := 0.0;
Exponent : Positive := 1;
begin
while Value > 0 loop
Resu... |
4,340 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/constant2.adb | <gh_stars>1-10
-- { dg-do run }
-- { dg-options "-gnatVa" }
with Constant2_Pkg1; use Constant2_Pkg1;
procedure Constant2 is
begin
if Val then
raise Program_Error;
end if;
end;
|
4,341 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/models/icosahedron.adb | <gh_stars>1-10
pragma Warnings (Off);
pragma Style_Checks (Off);
with GL;
package body Icosahedron is
procedure Create (
object : in out GLOBE_3D.p_Object_3D;
scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D;
alpha : GLOBE_3D.Real;
polyball : Boolean
)
... |
4,342 | ada | 204 | spr93/whitakers-words | src/tools/slash.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
-... |
4,343 | ada | 24 | svn2github/matreshka | source/web/servlet/http/servlet-http_cookies.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
4,344 | ada | 5 | MLH/mlh-localhost-adacore | src/stack.ads | package Stack with SPARK_Mode => On is
procedure Push (V : Character)
with Pre => not Full,
Post => Size = Size'Old + 1;
procedure Pop (V : out Character)
with Pre => not Empty,
Post => Size = Size'Old - 1;
procedure Clear
with Post => Size = 0;
function Top return Character
... |
4,345 | ada | 1 | djgoku/RosettaCodeData | Task/Pangram-checker/Ada/pangram-checker.ada | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Maps; use Ada.Strings.Maps;
with Ada.Characters.Handling; use Ada.Characters.Handling;
procedure pangram is
function ispangram(txt: String) return Boolean is
lowtxt : String := To_Lower(txt);
letset,txtset : Character_Set;
begin
letset := To_Set("abcdefghijk... |
4,346 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_gears/gears.adb | -- 3-D gear wheels.
-- -----------------------------------------------------
-- A more simple version of this program was originaly
-- created in C by <NAME>.
-- -----------------------------------------------------
-- Conversion to Ada + SDL, and extensions, written by:
-- <NAME> - <NAME> - Azores - Portugal... |
4,347 | ada | 0 | sciencylab/lagrangian-solver | AD_src/forward_ad.adb | with Ada.Text_IO;
package body Forward_AD is
procedure Print (X : in AD_Type) is
use Ada.Text_IO;
begin
Put_Line (" value: " & Real'Image (X.Val));
Print (X.Grad);
New_Line;
end Print;
function Var (X : in Real;
I, N : in Nat;
Dx : in Real := 1.0) return A... |
4,348 | ada | 1 | Fabien-Chouteau/tiled-code-gen | src/tcg-tilesets.adb | <filename>src/tcg-tilesets.adb
------------------------------------------------------------------------------
-- --
-- tiled-code-gen --
-- ... |
4,349 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/ice_types.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/ice_types.ads
package ICE_Types is
type Float_View_T is private;
procedure Initialize (X : out Float_View_T);
private
type Float_View_T is new Float;
end;
|
4,350 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-io.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,351 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/private_enum.ads | <gh_stars>100-1000
package Private_Enum is
type Pet is private;
private
type Pet is (cat, dog);
end Private_Enum;
|
4,352 | ada | 0 | skill-lang/adaCommon | src/skill-field_types-builtin.ads | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ implementation of builtin field types --
-- |___/_|\_\_|_|____| by: <NAME> --
-... |
4,353 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/a-tags.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
4,354 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83f03c2.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83f03c2.ada<gh_stars>1-10
-- C83F03C2M.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 obtain... |
4,355 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-tratas-default.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
4,356 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/sal-gen_bounded_definite_vectors.ads | -- Abstract :
--
-- A simple bounded vector of definite items, in Spark.
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- This library 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... |
4,357 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/stack_check3.adb | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O -fstack-check" }
package body Stack_Check3 is
type Int_Arr is array (1 .. 34) of Integer;
type Rec (D : Boolean := False) is
record
case D is
when True => IA : Int_Arr;
when False => null;
end case;
end record;
type R... |
4,358 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/gen_disp.adb | <gh_stars>1-10
-- { dg-do compile }
with Ada.Containers.Ordered_Maps;
with Ada.Tags.Generic_Dispatching_Constructor;
package body gen_disp is
use type Ada.Tags.Tag;
function "<" (L, R : in Ada.Tags.Tag) return Boolean is
begin
return Ada.Tags.External_Tag (L) < Ada.Tags.External_Tag (R);
end ... |
4,359 | ada | 1 | greyblue9/binutils-gdb | gdb/testsuite/gdb.ada/unchecked_union/unchecked_union.adb | <filename>gdb/testsuite/gdb.ada/unchecked_union/unchecked_union.adb
-- Copyright 2019-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... |
4,360 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36202c.ada | -- C36202C.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,361 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stwima.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,362 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_11/problem_11.ads | <reponame>PyllrNL/Project_Euler_Solutions
with Test_Solution; use Test_Solution;
package Problem_11 is
type Grid is array(Natural range <>, Natural range <>) of Natural;
function Solution_1( G : Grid ) return Integer
with Pre => G'Length(1) = G'Length(2);
procedure Test_Solution_1;
function... |
4,363 | ada | 3 | albinjal/ada_basic | Lab5/date_package.adb | <filename>Lab5/date_package.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
package body Date_Package is
function "="(Date1, Date2: Date_Type)
return Boolean is
begin
if Date1.Year = Date2.Year and Date1.Month = Date2.Month and Date1.Day = Date2.Day then
return True;
... |
4,364 | ada | 0 | Letractively/ada-ado | regtests/ado-drivers-tests.adb | <gh_stars>0
-----------------------------------------------------------------------
-- ado-drivers-tests -- Unit tests for database drivers
-- Copyright (C) 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compli... |
4,365 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/a-intnam__p55.ads | <reponame>JCGobbi/Nucleo-STM32G474RE<filename>bb-runtimes/src/a-intnam__p55.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
4,366 | ada | 0 | JCGobbi/Nucleo-STM32F334R8 | SVD2ada/svd/stm32_svd-tsc.ads | pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32F3x4.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.TSC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_MCV_Field is HAL.UInt3;
subtype ... |
4,367 | ada | 1 | jhumphry/Ascon_SPARK | src/ascon.ads | -- Ascon
-- an Ada / SPARK implementation of the Ascon Authenticated Encryption Algorithm
-- created by <NAME>, <NAME>, <NAME> and
-- <NAME>
-- Copyright (c) 2016-2018, <NAME> - see LICENSE file for details
pragma Restrictions(No_Implementation_Attributes,
No_Implementation_Units,
... |
4,368 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/math/a-ngcoty.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,369 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3125a.ada | -- CC3125A.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,370 | ada | 0 | Letractively/ada-awa | awa/src/awa-modules.adb | <gh_stars>0
-----------------------------------------------------------------------
-- awa -- Ada Web Application
-- Copyright (C) 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wit... |
4,371 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/edc.adb | <filename>src/edc.adb
--===========================================================================
--
-- This application provides an embedded dashboard controller offering:
-- - UART Interface
-- - LED Area
-- - 5x7 Matrix Display with two displays as one logical unit
--
--================================... |
4,372 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | host/stm32gd-gpio.ads | <filename>host/stm32gd-gpio.ads
with STM32_SVD; use STM32_SVD;
package STM32GD.GPIO is
pragma Preelaborate;
type GPIO_Pin is
(Pin_0, Pin_1, Pin_2, Pin_3, Pin_4, Pin_5, Pin_6, Pin_7,
Pin_8, Pin_9, Pin_10, Pin_11, Pin_12, Pin_13, Pin_14, Pin_15);
type GPIO_Pins is array (Positive range <>) of... |
4,373 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/shapes/impact-d3-shape-convex-internal.ads | <reponame>charlie5/lace
with impact.d3.Shape.convex,
impact.d3.collision.Margin;
package impact.d3.Shape.convex.internal
--
-- The impact.d3.Shape.convex.internal is an internal base class, shared by most convex shape implementations.
--
-- The impact.d3.Shape.convex.internal uses a default collision margin ... |
4,374 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-ngcoar.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,375 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/prj-proc.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,376 | ada | 2 | devtomio/hello-world | ada.ada | <reponame>devtomio/hello-world
with Ada.Text_IO;
use Ada.Text_IO;
procedure Main is
begin
Put_Line ("Hello, World!");
end Main; |
4,377 | ada | 13 | Fabien-Chouteau/GESTE | examples/utils/render.adb | <reponame>Fabien-Chouteau/GESTE<filename>examples/utils/render.adb
with SDL_Display;
package body Render is
Width : constant := 320;
Height : constant := 240;
package Display is new SDL_Display
(Width => Width,
Height => Height,
Pixel_Scale => 4,
Buffer_Size => 320 * 240);
... |
4,378 | ada | 1 | Scottx86-64/dotfiles-1 | source/pkgsrc/devel/gps/patches/patch-gnatlib-gnat_src-mlib-utl.adb | <filename>source/pkgsrc/devel/gps/patches/patch-gnatlib-gnat_src-mlib-utl.adb
$NetBSD: patch-gnatlib-gnat_src-mlib-utl.adb,v 1.1 2013/07/09 10:16:02 marino Exp $
Use unique ada executable rather than generic gcc
--- gnatlib/gnat_src/mlib-utl.adb.orig 2010-02-14 02:40:00.000000000 +0100
+++ gnatlib/gnat_src/mlib-utl.a... |
4,379 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/sal-gen_unbounded_definite_stacks.ads | -- Abstract:
--
-- Stack implementation.
--
-- Copyright (C) 1998-2000, 2002-2003, 2009, 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- SAL 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 ve... |
4,380 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c47002c.ada | <reponame>best08618/asylo<gh_stars>1-10
-- C47002C.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... |
4,381 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/table.adb | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,382 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/get_targ.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,383 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-pch-transcoder.adb | --
-- Copyright (C) 2015-2016 secunet Security Networks AG
-- Copyright (C) 2016 <NAME> <<EMAIL>>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at... |
4,384 | ada | 28 | onox/json-ada | tests/src/test_parsers.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
4,385 | ada | 9 | alire-project/clic | src/clic-subcommand-instance.ads | <gh_stars>1-10
-- Instantiate this package to create a sub-command parser/executor
with CLIC.Config;
generic
Main_Command_Name : String; -- Name of the main command or program
Version : String; -- Version of the program
with procedure Set_Global_Switches
(Config : in out CLIC.Subcommand.S... |
4,386 | ada | 0 | jhumphry/Ada_BinToAsc | src/tests/bintoasc_suite-misc_tests.ads | <reponame>jhumphry/Ada_BinToAsc<filename>src/tests/bintoasc_suite-misc_tests.ads<gh_stars>0
-- BinToAsc_Suite.Misc_Tests
-- Unit tests for BinToAsc
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package BinToAsc_Suite.Misc_Tests is
... |
4,387 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/volatile7.adb | -- { dg-do compile }
-- { dg-options "-O2 -fdump-tree-optimized" }
function Volatile7 return Integer is
type Vol is new Integer;
pragma Volatile (Vol);
type R is record
X : Vol := 0;
end record;
V : R;
begin
for J in 1 .. 10 loop
V.X := V.X + 1;
end loop;
return Integer (V.X);
... |
4,388 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gst_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with System;
with glib;
with glib.Values;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gst_h is
-- GStreamer
-- * Copyright (C) 1999,2000 <NAME> <<EMAIL>>
-- * 2000 <NAM... |
4,389 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Closest-pair-problem/Ada/closest-pair-problem.ada | with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Text_IO;
procedure Closest is
package Math is new Ada.Numerics.Generic_Elementary_Functions (Float);
Dimension : constant := 2;
type Vector is array (1 .. Dimension) of Float;
type Matrix is array (Positive range <>) of Vector;
-- calculate the ... |
4,390 | ada | 7 | stcarrez/resource-embedder | regtests/are-generator-ada2012-tests.adb | <filename>regtests/are-generator-ada2012-tests.adb
-----------------------------------------------------------------------
-- are-generator-ada2012-tests -- Tests for Ada generator
-- Copyright (C) 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
4,391 | ada | 0 | bhayward93/Ada-Traffic-Light-Sim | icasrc/controller.adb | <reponame>bhayward93/Ada-Traffic-Light-Sim
with PedestrianLightSwitcher;
with EmergencyVehicleOverride;
with HWIF;use HWIF;
with HWIF_Types; use HWIF_Types;
with TrafficLightSwitcher;
with Ada.Text_IO; use Ada.Text_IO;
with Light_Rotator;
procedure Controller is
task Init;
task body Init is
task SouthSwit... |
4,392 | ada | 0 | xeenta/learning-ada | src/006/steps_6.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Steps_6 is
task Step_By_Step is
entry Step_One;
entry Step_Two;
end Step_By_Step;
task body Step_By_Step is
Waiting_Count : Natural := 1;
begin
loop
select
accept Step_One do
Put_Line ("1");
... |
4,393 | ada | 33 | ytomino/drake | source/streams/a-nateio.adb | with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with Ada.Unchecked_Deallocation;
with System.Form_Parameters;
with System.UTF_Conversions;
package body Ada.Naked_Text_IO is
use Exception_Identification.From_Here;
use type IO_Modes.File_External;
use type IO_Modes.File_External_Spec;
... |
4,394 | ada | 5 | HeisenbugLtd/flac-ada | sources/flac-reader.adb | <filename>sources/flac-reader.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... |
4,395 | ada | 1 | skill-lang/skillAdaTestSuite | test/subtypes/test_subtypes-write.ads | <reponame>skill-lang/skillAdaTestSuite<gh_stars>1-10
with Ada.Characters.Handling;
with Ada.Directories;
with Ada.Strings.Fixed;
with Ada.Tags;
with Ahven.Framework;
with Subtypes.Api;
package Test_Subtypes.Write is
package Skill renames Subtypes.Api;
use Subtypes;
use Subtypes.Api;
type Test is new Ahve... |
4,396 | ada | 60 | RREE/ada-util | src/sys/os-unix/util-systems-os.ads | <filename>src/sys/os-unix/util-systems-os.ads
-----------------------------------------------------------------------
-- util-systems-os -- Unix system operations
-- Copyright (C) 2011, 2012, 2014, 2015, 2016, 2017, 2018, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Vers... |
4,397 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/text/private/opengl-fontimpl-texture.ads | with
openGL.FontImpl,
openGL.Texture,
openGL.GlyphImpl.texture,
freetype_c.FT_GlyphSlot,
ada.Containers.Vectors;
private
with
GL;
package openGL.FontImpl.texture
--
-- Implements a texture font.
--
is
type Item is new FontImpl.item with private;
type View is access all Item'Clas... |
4,398 | ada | 0 | Letractively/ada-gen | src/gnat/erroutc.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,399 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | host/stm32gd-gpio-pin.ads | with STM32_SVD; use STM32_SVD;
generic
Pin : in GPIO_Pin;
Port : in out Natural;
Mode : in Pin_IO_Modes := Mode_In;
Pull_Resistor : in Internal_Pin_Resistors := Floating;
Alternate_Function : in GPIO_Alternate_Function := 0;
package STM32GD.GPIO.Pin is
pragma Preelaborate;
procedure Init;
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.