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 |
|---|---|---|---|---|---|
9,700 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-taprop-hpux-dce.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
9,701 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/multidimensional_array.adb | <reponame>ouankou/rose
package body Multidimensional_Array is
procedure test(f: FullTime; p : PartTime; a : Afternoons) is
x : Fulltime := (others => (others => false));
y : Afternoons := ((false, false, false, false), (false, false, false, true), (false, false, true, false), (false, true, false, false)... |
9,702 | ada | 33 | ytomino/drake | source/machine-apple-darwin/s-stomap.adb | with System.Address_To_Constant_Access_Conversions;
with C.mach_o.dyld;
with C.mach_o.loader;
package body System.Storage_Map is
pragma Suppress (All_Checks);
package mach_header_const_ptr_Conv is
new Address_To_Constant_Access_Conversions (
C.mach_o.loader.struct_mach_header,
C.mach_o.lo... |
9,703 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 02/P02_Prueba_Complejos/src/Complejos.adb | <gh_stars>0
package body Complejos is
function "+" (C1,C2 : Complejo) return Complejo is
begin
return (C1.Re+C2.Re,C1.Im+C2.Im);
end "+";
function Haz_Complejo (Re,Im : Float) return Complejo is
begin
return (Re,Im);
end Haz_Complejo;
function Imag (C : Complejo) return Float is
be... |
9,704 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming3.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming3.adb
-- { dg-do run }
with Renaming4; use Renaming4;
procedure Renaming3 is
type A is array(1..16) of Integer;
Filler : A := (others => 0);
begin
if B(1) /= 1 then
raise Program_Error;
end if;
end;
|
9,705 | ada | 52 | onox/orka | orka_egl/src/egl-loading.ads | <reponame>onox/orka<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://w... |
9,706 | ada | 2 | onox/opus-ada | test/unit/src/test_decoders.adb | <filename>test/unit/src/test_decoders.adb
-- Copyright (c) 2014 onox <<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 SOFT... |
9,707 | ada | 5 | docandrew/troodon | include/freetype.ads | <filename>include/freetype.ads
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with ftimage;
with fttypes;
with System;
with ftsystem;
with Interfaces.C.Strings;
with freetype_config_integer_types;
package freetype is
-- arg-macro: procedure FT_ENC_TAG (value, a, b, c, d)
-- ... |
9,708 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23.adb
-- { dg-do link }
with Array23_Pkg1;
with Array23_Pkg2;
procedure Array23 is
A : Array23_Pkg1.Arr;
begin
A(Array23_Pkg2.One)(1) := 0;
end;
|
9,709 | ada | 0 | Letractively/ada-util | samples/gperfhash.adb | -----------------------------------------------------------------------
-- gperfhash -- Perfect hash Ada generator
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
9,710 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/g-mbflra.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
9,711 | ada | 0 | My-Colaborations/ada-util | src/sys/http/aws/aws-client-ext.adb | ------------------------------------------------------------------------------
-- Ada Web Server --
-- --
-- Copyright (C) 2005-2018, 2020, AdaCore -... |
9,712 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l151/stm32_svd-pwr.ads | -- This spec has been automatically generated from STM32L151.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_PLS_Field is HAL.UI... |
9,713 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | SVD2ada/svd/stm32_svd-nvic.ads | <reponame>JCGobbi/Nucleo-STM32G474RE
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.NVIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- IP... |
9,714 | ada | 0 | btmalone/alog | aunit/aunit-assertions.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
9,715 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-strings.adb | <filename>orka/src/orka/implementation/orka-strings.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... |
9,716 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/nucleo_l031k6/stm32gd-board.ads | with STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.USART;
with STM32GD.USART.Peripheral;
with STM32GD.SPI;
with STM32GD.SPI.Peripheral;
with STM32GD.I2C;
with STM32GD.I2C.Peripheral;
with STM32GD.RTC;
with STM32GD.Clock;
with STM32GD.Clock.Tree;
with Drivers.Text_IO;
package STM32GD.Board is
package CLOCKS ... |
9,717 | ada | 11 | charlie5/aShell | test/pipeline_error/test_pipeline_error.adb | <filename>test/pipeline_error/test_pipeline_error.adb
with
Shell.Commands,
Ada.Text_IO;
procedure Test_Pipeline_Error
is
use Ada.Text_IO;
begin
Put_Line ("Begin 'Pipeline_Error' test.");
New_Line (2);
Put_Line ("Test 1 =>");
declare
use Shell,
Shell.Commands,
Shell.... |
9,718 | ada | 0 | Latence-Technologies/Kafka-Ada | src/kafka.adb | <gh_stars>0
with System.Address_To_Access_Conversions;
package body Kafka is
Error_Buffer_Size : constant size_t := 512;
function Version return String is
begin
return Interfaces.C.Strings.Value(rd_kafka_version_str);
end;
function Get_Error_Name(Error_Code: Kafka_Response_Error_Type) ret... |
9,719 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3402c.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3402c.ada
-- CE3402C.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
-- unlimi... |
9,720 | ada | 0 | faicaltoubali/ENSEEIHT | Projects/Arbre_Genealogique/livrables/arbre_genealogique.adb | <reponame>faicaltoubali/ENSEEIHT
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
package body arbre_genealogique is
procedure Creer_Minimal ( Abr : out T_Abr_Genea ; Racine : Integer ; Registre : out T_Registre_Genea; Nom : in unbounded_string ; Prenom : in unbounded_string ; Jour : Integer ; Mois : T... |
9,721 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_pbutils_pbutils_h.ads | <filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_pbutils_pbutils_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_pbutils_pbutils_h is
-- GStreamer base utils library
-- * Copyright (C) 200... |
9,722 | ada | 1 | Fabien-Chouteau/sdlada | src/sdl-video-palettes.adb | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the... |
9,723 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-valuef.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
9,724 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sem_elim.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,725 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt25.adb | -- { dg-do compile }
-- { dg-options "-O" }
with Opt25_Pkg1;
with Opt25_Pkg2;
procedure Opt25 (B1, B2 : in out Boolean) is
package Local_Pack_Instance is new Opt25_Pkg1 (Boolean, True);
package Local_Stack is new Opt25_Pkg2 (Integer, 0);
S : Local_Stack.Stack := Local_Stack.Default_Stack;
begin
Local_... |
9,726 | ada | 0 | bracke/Meaning | source/RASCAL-ToolboxWritableField.ads | <reponame>bracke/Meaning
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
9,727 | ada | 0 | impedimentToProgress/UCI-BlueChip | snapgear_linux/user/ncurses/ncurses-5.6/Ada95/samples/ncurses2-acs_display.adb | <filename>snapgear_linux/user/ncurses/ncurses-5.6/Ada95/samples/ncurses2-acs_display.adb
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples ... |
9,728 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45264a.ada | -- C45264A.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... |
9,729 | ada | 8 | mhatzl/spark_unbound | src/spark_unbound.ads | with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers;
--- @summary
--- The `Spark_Unbound` package contains various unbound generic data structures.
--- All data structures are formally proven by Spark and `Storage_Error` for heap allocation is handled internally.
---
--- @description
... |
9,730 | ada | 9 | stcarrez/ada-search | src/search-indexers-databases.adb | <filename>src/search-indexers-databases.adb
-----------------------------------------------------------------------
-- search-indexers -- Search engine indexer
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
9,731 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-parint.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
9,732 | ada | 1 | Hathoute/ENSEEIHT | PIM/Projet/src/lc.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body LC is
procedure Free is
new Ada.Unchecked_Deallocation (Object => T_Cellule, Name => T_LC);
procedure Initialiser(Sda: out T_LC) is
begin
Sda := null;
end Initialiser;
function Est_Vide (Sda : T_LC) return Boolean... |
9,733 | ada | 1 | Fabien-Chouteau/littlefs-ada | tests/src/ram_bd.adb | with Littlefs; use Littlefs;
with System.Storage_Elements; use System.Storage_Elements;
with Interfaces.C; use Interfaces.C;
with Interfaces; use Interfaces;
with System;
package body RAM_BD is
function Read (C : access constant LFS_Config;
Block : LFS_Block;
Off : LF... |
9,734 | ada | 0 | bkold/Terminal-Chess | Source/ncurses.adb | package body NCurses is
procedure Start_Color_Init is
begin
Start_Color;
Init_Color_Pair(1, COLOR_WHITE, COLOR_BLACK);
Init_Color_Pair(2, COLOR_BLACK, COLOR_WHITE);
Init_Color_Pair(3, COLOR_RED, COLOR_BLACK);
Setup;
end Start_Color_Init;
procedure Pretty_Print_Window (Item : in String) is
begin
Prin... |
9,735 | ada | 0 | Letractively/ada-util | src/util-encoders-sha1.ads | <gh_stars>0
-----------------------------------------------------------------------
-- util-encoders-sha1 -- Compute SHA-1 hash
-- Copyright (C) 2011 <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 th... |
9,736 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP6_Modules/dates.ads | -- Spécification d'un module Dates très simplifié.
--
-- Attention : Bien gérer les dates est compliqué. Les dates et opérations
-- associées sont disponibles dans les bibliothèques des langages de
-- programmation. Par exemple dans le paquetage Ada.Calendar pour Ada.
package Dates is
type T_Mois is (JANVIER, FEV... |
9,737 | ada | 4 | FredPraca/distributed_cbsg | Ada/server/src/corbacbsg-cbsg-impl.adb | pragma Style_Checks ("NM32766");
---------------------------------------------------
-- This file has been generated automatically from
-- cbsg.idl
-- by IAC (IDL to Ada Compiler) 19.0w (rev. e4bac8d9).
with CorbaCBSG.CBSG.Skel;
pragma Unreferenced (CorbaCBSG.CBSG.Skel);
with Corporate_Bullshit;
with Ada.Calenda... |
9,738 | ada | 0 | optikos/oasis | source/oasis/program-elements-variants.ads | <filename>source/oasis/program-elements-variants.ads<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Definitions;
with Program.Lexical_E... |
9,739 | ada | 18 | jquorning/ada-wiki | src/wiki-filters-html.adb | <reponame>jquorning/ada-wiki<filename>src/wiki-filters-html.adb<gh_stars>10-100
-----------------------------------------------------------------------
-- wiki-filters-html -- Wiki HTML filters
-- Copyright (C) 2015, 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2... |
9,740 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/matrix_area_word.ads | <reponame>hgrodriguez/embedded-dashboard-console<gh_stars>0
--===========================================================================
--
-- This package defines the two 5x7 matrix elements used for the WORD
-- sized display capability
--
--==========================================================================... |
9,741 | ada | 0 | notdb/LC-Practice | 136/ada/increment.ads | <reponame>notdb/LC-Practice<gh_stars>0
function Increment (I : Integer) return Integer;
-- We declare (but don't define) a function with one
-- parameter, returning an integer value |
9,742 | ada | 1 | ytomino/vampire | source/tabula-casts-cast_io.adb | <filename>source/tabula-casts-cast_io.adb
-- The Village of Vampire by YT, このソースコードはNYSLです
package body Tabula.Casts.Cast_IO is
procedure IO_Partial (
Serializer : not null access Serialization.Serializer;
Item : in out Person'Class)
is
use Serialization;
use Person_Sex_IO;
begin
IO (Serializer, "name", ... |
9,743 | ada | 0 | faelys/natools | tests/natools-s_expressions-conditionals-strings-tests.adb | <gh_stars>0
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --... |
9,744 | ada | 1 | io7m/coreland-opengl-ada | opengl-vertex.ads | with OpenGL.Thin;
with OpenGL.Types;
package OpenGL.Vertex is
type Primitive_Type_t is
(Points,
Line_Strip,
Line_Loop,
Lines,
Triangle_Strip,
Triangle_Fan,
Triangles,
Quad_Strip,
Quads,
Polygon);
--
-- Immediate mode. Begin/End.
--
-- proc_map : glBegin
p... |
9,745 | ada | 12 | jquorning/ada-asf | src/asf-utils.ads | <reponame>jquorning/ada-asf<gh_stars>10-100
-----------------------------------------------------------------------
-- asf-utils -- Various utility operations for ASF
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
9,746 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32l0/stm32gd-i2c-peripheral.adb | <filename>stm32l0/stm32gd-i2c-peripheral.adb
with Utils;
package body STM32GD.I2C.Peripheral is
Default_Timeout : constant Natural := 10000;
Count_Down : Natural;
procedure Start (Duration : Natural := Default_Timeout) is
begin
Count_Down := Duration;
end Start;
function Timed_Out return Boo... |
9,747 | ada | 0 | reznikmm/markdown | sources/md/markdown-blockquotes.adb | <filename>sources/md/markdown-blockquotes.adb
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Regexps;
with League.Strings;
with Markdown.Visitors;
package body Markdown.Blockquotes is
Prefix : cons... |
9,748 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/sinfo.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
9,749 | ada | 5 | reznikmm/increment | testsuite/tests-commands.ads | <reponame>reznikmm/increment<filename>testsuite/tests-commands.ads
-- Copyright (c) 2015-2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Vectors;
with League.Strings;
with XML.Templates.Streams;... |
9,750 | ada | 32 | robdaemon/AdaYaml | dropin/src/lexer-source-c_handler.ads | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with System;
with Yaml.C;
package Lexer.Source.C_Handler is
type Instance is new Source.Instance with private;
overriding procedure Read_Data (S : in out Instance; Buffer : out String;
... |
9,751 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-astaco.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
9,752 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-ostimer.ads | <reponame>morbos/Ada_Drivers_Library<gh_stars>1-10
-- 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;
... |
9,753 | ada | 15 | jquorning/dynamo | src/gen-model-tables.ads | -----------------------------------------------------------------------
-- gen-model-tables -- Database table model representation
-- Copyright (C) 2009 - 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
9,754 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-mastop.ads | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,755 | ada | 2 | jorge-real/TTS | examples/logging_support.ads | <filename>examples/logging_support.ads
package Logging_Support is
------------------------------------------------------------------------
-- | Package Giving Operations Useful for logging tasks activity
-- | WITH-ed by the body of a package to provide an easy way to
-- | trace events related to task activatio... |
9,756 | ada | 20 | charlie5/lace | 1-base/lace/source/events/utility/lace-event-logger-text.adb | with
lace.Event.utility,
system.RPC,
ada.unchecked_Conversion;
package body lace.Event.Logger.text
is
use lace.Event.utility,
ada.Text_IO;
-- Forge
--
function to_Logger (Name : in String) return Item
is
begin
return Self : Item
do
create (Self.File, out_F... |
9,757 | ada | 0 | ebolar/Unbounded | src/lambda.adb | <filename>src/lambda.adb
-- Lambda Calculus interpreter
-- ---------------------------
-- Parses and reduces Lamdba Calculus statements.
--
-- Source:
-- lambda - [This file] definitions and helper functions
-- lambda_REPL - REPL and command line parsers
-- lambda_parser - parse tree generator
-- lambda_red... |
9,758 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37211d.ada | -- C37211D.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... |
9,759 | ada | 80 | thindil/steamsky | tests/bases-ship-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 Bases.Ship.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Bases.Ship.Test_Data
.Test with
... |
9,760 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-api-uniforms-doubles.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
-... |
9,761 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45504d.ada | <reponame>best08618/asylo
-- C45504D.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 contai... |
9,762 | ada | 0 | Statkus/json-ada | src/json-streams.ads | -- 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
--
-- Unless required by applicable law or ... |
9,763 | ada | 0 | JeremyGrosser/synack_misc | src/lfsr.ads | --
-- Copyright (C) 2022 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Galois Linear Feedback Shift Register
-- https://en.wikipedia.org/wiki/Linear-feedback_shift_register#Galois_LFSRs
generic
type Random_Type is mod <>;
Taps : Random_Type;
package LFSR is
State : Random_Type := Ran... |
9,764 | ada | 0 | fintatarta/protypo | src/lib/Readable_Sequences/readable_sequences-string_sequences.ads | with Ada.Containers.Vectors;
with Readable_Sequences.Generic_Sequences;
package Readable_Sequences.String_Sequences is
package Basic_String_Sequences is
new Generic_Sequences (Element_Type => Character,
Element_Array => String);
type Sequence (<>) is
new Basic_String_Seque... |
9,765 | ada | 0 | hergin/ada2fuml | test-resources/Class2.ads | <gh_stars>0
with Class1; use Class1;
package Class2 is
type Class1Array is array (Natural range <>) of Class1.Class1;
Min : constant := 1;
type Class2(Max : Natural := 1) is record
Class1List : Class1Array (Min .. Max);
end record;
function Initialize(Max : Natural) return Class2;
end C... |
9,766 | ada | 4 | carter-e-veldhuizen/RACK | ada/examples/regression-callstmt/auxiliary.ads | <reponame>carter-e-veldhuizen/RACK<filename>ada/examples/regression-callstmt/auxiliary.ads<gh_stars>1-10
PACKAGE aux IS
PROCEDURE start;
END aux;
|
9,767 | ada | 30 | jscparker/math_packages | ordinary/pc_1_interface.ads | <gh_stars>10-100
-- PACKAGE pc_1_interface
--
-- The 17th order coefficients are almost always the best choice.
--
-- The Predictor-Corrector method uses least-squares to fit a 17th
-- order polynomial to the 33 previous values of F in dY/dt = F(t,Y).
-- The least-squares-fit polynomial is used to predict the next
-... |
9,768 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-system-thread.ads | --//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <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... |
9,769 | ada | 12 | TUM-EI-RCS/StratoX | software/unittest/estimator/src/simulation.ads | with CSV;
with Ada.Text_IO; use Ada.Text_IO;
package Simulation is
package CSV_here is new CSV (filename => "../rawdata.csv");
have_data : Boolean := False;
csv_file : File_Type;
Finished : Boolean := False;
procedure init;
procedure update;
procedure close;
end Simulation;
|
9,770 | ada | 34 | sergev/vak-opensource | languages/dynlink/ada-interfaces/simple/pkg.ads | package Pkg is
type Alpha is abstract tagged record
data_alpha : Integer;
end record;
procedure func_alpha (x: in out Alpha) is abstract;
type Beta is interface;
procedure func_beta (x: in out Beta) is abstract;
type Gamma is new Alpha and Beta with record
data_gamma : Integer;
end record;
procedure func_alpha (x:... |
9,771 | ada | 0 | e3l6/SSMDev | sunangle.adb | -------------------------------------------------------------------------------
-- SUNANGLE
--
-- Copyright © 2016 <NAME>
--
-- This code is available under the "MIT License".
-- Please see the file COPYING in this distribution for license terms.
--
-- Purpose:
-- This package computes the the sun angle (azimuth and ... |
9,772 | ada | 13 | Fabien-Chouteau/GESTE | tests/src/collision_sprite.adb | with GESTE;
with GESTE.Sprite;
with GESTE.Tile_Bank;
with Ada.Text_IO;
with Console_Char_Screen;
procedure Collision_Sprite is
use type GESTE.Pix_Point;
package Console_Screen is new Console_Char_Screen
(Width => 10,
Height => 5,
Buffer_Size => 256,
Init_Char => ' ');
P... |
9,773 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/client/tkmrpc-clients-ees.adb | <reponame>DrenfongWong/tkm-rpc<gh_stars>0
with Tkmrpc.Transport.Client;
with Tkmrpc.Request.Ees.Esa_Acquire.Convert;
with Tkmrpc.Request.Ees.Esa_Expire.Convert;
with Tkmrpc.Response.Ees.Esa_Acquire.Convert;
with Tkmrpc.Response.Ees.Esa_Expire.Convert;
package body Tkmrpc.Clients.Ees is
----------------------------... |
9,774 | ada | 24 | svn2github/matreshka | tools/configure/configure.adb | <filename>tools/configure/configure.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
9,775 | ada | 12 | TUM-EI-RCS/StratoX | prototyping/adaracer/src/config/config.ads | <gh_stars>10-100
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Software Configuration
--
-- Authors: <NAME> (<EMAIL>)
--
-- Description:
-- Configuration of the Software, adjust these parameters to your needs
package Config... |
9,776 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto1_pkg.adb | package body Lto1_Pkg is
procedure Initialize (Radar : in Radar_T) is
Antenna1 : Antenna_Type_T;
Antenna2 : Antenna_Type_T;
begin
case Radar.Sensor_Type is
when radpr | radssr =>
Antenna1 := Radar.Sensor_Type;
Antenna2 := Radar.Sensor_Type;
when radcmb =>
Antenna1 :=... |
9,777 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/root-level_1-level_2.ads | package Root.Level_1.Level_2 is
type Level_2_Type (First : Natural;
Second : Natural) is new
Level_1.Level_1_Type (First => First, Second => Second) with null record;
end Root.Level_1.Level_2;
|
9,778 | ada | 0 | corentingay/ada_epita | project/src/word_operations_hpp.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package word_operations_hpp is
-- * File : word_operations.hpp
-- *
-- * File created by : <NAME>
-- * File was created at : 06/12/2017
--
subtype uint16_t is unsigned_short; -- ./word_oper... |
9,779 | ada | 1 | mapcode-foundation/mapcode-ada | src/mapcode_utils-str_tools.adb | <filename>src/mapcode_utils-str_tools.adb
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compli... |
9,780 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2a31c.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2a31c.ada
-- CD2A31C.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
-- unlimi... |
9,781 | ada | 0 | M1nified/Ada-Samples | qsort.adb | with Ada.Text_Io;
use Ada.Text_Io;
package body Qsort is
task body SortTask is
List : vector_ptr;
Kids : array(1..2) of Sort_access;
HalfIndex : Integer;
HalfIndex2 : Integer;
LLeft : vector_ptr;
LRight : vector_ptr;
begin
accept PortIn(ValIn : in vector_ptr) do
List := ValIn;
Put_Line(Integer... |
9,782 | ada | 6 | jquorning/ada-el | src/el-utils.adb | <reponame>jquorning/ada-el
-----------------------------------------------------------------------
-- el-utils -- Utilities around EL
-- Copyright (C) 2011, 2012, 2017, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fil... |
9,783 | ada | 76 | yannickmoy/SPARKNaCl | src/sparknacl-mac.adb | <filename>src/sparknacl-mac.adb
package body SPARKNaCl.MAC
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
subtype Index_17 is I32 range 0 .. 16;
subtype Poly_1305_F is U32_Seq (Index_17);
MinusP : constant Poly_1305_F :=
(5, 0, 0, 0, 0, 0, 0, 0, 0... |
9,784 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0019.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
9,785 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP1_Algorithmique/table_7.adb | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Afficher la table de multiplication de 7
procedure Table_7 is
begin
for J in 1 .. 9 loop
Put(J, 1);
Put(" x 7 = ");
Put(7*J, 1);
New_Line;
end loop;
end Table_7;
|
9,786 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-sfp-stm32g474/gnarl/s-bbthqu.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
9,787 | ada | 1 | TNO/Rejuvenation-Ada | src/rejuvenation-parameters.ads | package Rejuvenation.Parameters is
function Param_Expressions
(Nm : Libadalang.Analysis.Name) return Param_Actual_Array with
Pre => not Nm.Is_Null and then Nm.P_Is_Call;
-- Returns the list of Param Expressions of a function call
-- including the default expressions for unspecified paramete... |
9,788 | ada | 2 | thindil/tashy2 | tests/tk-labelframe-label_frame_create_options_test_data-label_frame_create_options_tests.ads | <gh_stars>1-10
-- 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 Tk.Labelframe.Label_Frame_Create_Options_Test_Data
.Label_Frame_Create_Options_Tests
is
type Test_Label_... |
9,789 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/dispatch2_p.adb | <reponame>best08618/asylo
--
package body dispatch2_p is
function Impl_Of (Self : access Object) return Object_Ptr is
begin
return Object_Ptr (Self);
end Impl_Of;
end;
|
9,790 | ada | 15 | mgrojo/adalib | system.ads | <filename>system.ads
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, I... |
9,791 | ada | 6 | jonashaggstrom/ada-canopen | tests/aco-drivers-dummy.ads | <gh_stars>1-10
private with ADA.Containers.Vectors;
package ACO.Drivers.Dummy is
type Dummy_Driver is new Driver with private;
overriding
procedure Receive_Message_Blocking
(This : in out Dummy_Driver;
Msg : out ACO.Messages.Message);
overriding
procedure Send_Message
(This : in ... |
9,792 | ada | 0 | csb6/libtcod-ada | src/generated/txtfield_h.ads | <filename>src/generated/txtfield_h.ads
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with color_h;
with console_types_h;
with Interfaces.C.Extensions;
with console_h;
package txtfield_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jic... |
9,793 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/class_wide2.ads | <reponame>best08618/asylo
package Class_Wide2 is
type Root_1 (V : Integer) is tagged record
null;
end record;
type Child is new Root_1 (1) with null record;
type Class_Acc is access all Child'Class;
type Grand_Child is new Child with record
null;
end record;
procedure Initialize;
... |
9,794 | ada | 11 | psyomn/ash | src/file_utils.adb | -- Copyright 2019 <NAME> (psyomn)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... |
9,795 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-nc_create.ads | with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Operation_Handlers.Ike.Nc_Create is
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type);
-- Handler for the nc_create operation.
end Tkmrpc.Operation_Handlers.Ike.Nc_Create;
|
9,796 | ada | 13 | annexi-strayline/AURA | child_processes-platform.adb | <filename>child_processes-platform.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STR... |
9,797 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/monitor/common/elf32.ads | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
9,798 | ada | 65 | PThierry/ewok-kernel | src/arch/socs/stm32f439/soc-usart-interfaces.ads | <gh_stars>10-100
package soc.usart.interfaces
with spark_mode => off
is
procedure configure
(usart_id : in unsigned_8;
baudrate : in unsigned_32;
data_len : in t_data_len;
parity : in t_parity;
stop : in t_stop_bits;
success : out boolean);
procedure transmit
... |
9,799 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Loops-Foreach/Ada/loops-foreach-1.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure For_Each is
A : array (1..5) of Integer := (-1, 0, 1, 2, 3);
begin
for Num in A'Range loop
Put( A (Num) );
end loop;
end For_Each;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.