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 |
|---|---|---|---|---|---|
7,100 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/utils/bounded_stack.adb | <filename>src/ada/src/utils/bounded_stack.adb
package body Bounded_Stack with SPARK_Mode is
procedure Push (S : in out Stack; E : Element_Type) is
begin
S.Content (S.Top + 1) := E;
S.Top := S.Top + 1;
end Push;
procedure Pop (S : in out Stack; E : out Element_Type) is
begin
E := S.Con... |
7,101 | ada | 7 | stcarrez/mat | mat/src/gtk/mat-callbacks.adb | <reponame>stcarrez/mat
-----------------------------------------------------------------------
-- mat-callbacks - Callbacks for Gtk
-- 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 compliance wit... |
7,102 | ada | 3 | charlie5/aIDE | source/types/adam-a_type-access_type.ads | <filename>source/types/adam-a_type-access_type.ads
with
AdaM.Entity,
AdaM.Subprogram,
AdaM.subtype_Indication,
AdaM.a_Type,
Ada.Streams;
package AdaM.a_Type.access_type
is
type Item is new a_Type.item with private;
type View is access all Item'Class;
-- Forge
--
function ... |
7,103 | ada | 60 | RREE/ada-util | src/tests/ahven/util-xunit.ads | -----------------------------------------------------------------------
-- util-xunit - Unit tests on top of AHven
-- Copyright (C) 2011, 2018, 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 with the... |
7,104 | ada | 1 | leo-brewin/adm-bssn-numerical | bssn/code/src/metric-kasner.adb | <reponame>leo-brewin/adm-bssn-numerical
with Ada.Numerics.Generic_Elementary_Functions;
-- for reporting Ksner parameters
with Ada.Text_IO; use Ada.Text_IO;
-- for parsing of the command line arguments
with Support.RegEx; use Support.RegEx;
with Support.CmdLine; use Support.CmdLine;
with Su... |
7,105 | ada | 0 | Letractively/ada-gen | src/gnat/prj-pp.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,106 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/haswell/hw-gfx-gma-spll.adb | <reponame>fabiojna02/OpenCellular<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 Free Software Foundation; either version 2 of the License, ... |
7,107 | ada | 16 | stcarrez/ada-enet | demos/ping/ping.adb | <filename>demos/ping/ping.adb
-----------------------------------------------------------------------
-- ping -- Ping hosts application
-- 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 comp... |
7,108 | ada | 1 | skill-lang/skillAdaTestSuite | benchmark/benchmark.adb | <reponame>skill-lang/skillAdaTestSuite
with Ada.Calendar;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Indefinite_Vectors;
with Ada.Containers.Ordered_Sets;
with Ada.Directories;
with Ada.Strings.Fixed;
with Ada.Strings.Hash;
with Ada.Text_IO;
--with Benchmark_I64;
--with Benchmark_V64;
--with Bench... |
7,109 | ada | 33 | ytomino/drake | source/required/s-exnllf.ads | <filename>source/required/s-exnllf.ads
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Exn_LLF is
pragma Pure;
-- required for "**" without checking by compiler (s-exnllf.ads)
function Exn_Float (Left : Float; Right : Integer) return Float
with Import, Convent... |
7,110 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85005b.ada | -- C85005B.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... |
7,111 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/140_access_types/datastore.ads | package Datastore is
pragma Elaborate_Body;
-- Create an array of strings that can be of any length
-- (i.e. array of string pointers)
-- Create a record that contains this array
type Element_T is null record;
-- Create two access types to the element
-- An immutable access type
-- An a... |
7,112 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-geometry.adb | --------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without r... |
7,113 | ada | 4 | DNSCatcher/DNSCatcher | tests/test_packet_parser.ads | <reponame>DNSCatcher/DNSCatcher
-- Copyright 2019 <NAME> <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restriction, including without limitation the
-- rights to use... |
7,114 | ada | 0 | Lucretia/old_nehe_ada95 | utils/matrix4x4.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.
-------------------------------------------------------------------... |
7,115 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/shapes/impact-d3-shape-concave-height_field_terrain.ads | with impact.d3.Shape.concave;
with impact.d3.triangle_Callback;
package impact.d3.Shape.concave.height_field_terrain
--
-- Simulates a 2D heightfield terrain.
--
-- The caller is responsible for maintaining the heightfield array; this
-- class does not make a copy.
--
-- The heightfield can be dynamic so ... |
7,116 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-activity_final_nodes-collections.ads | <filename>source/amf/uml/amf-uml-activity_final_nodes-collections.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,117 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-stwibo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
7,118 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-sdo_sessions.adb | <gh_stars>1-10
package body ACO.SDO_Sessions is
function Create_Download
(Endpoint : Endpoint_Type;
Index : ACO.OD_Types.Entry_Index)
return SDO_Session
is
((Service => Download,
Endpoint => Endpoint,
Index => Index,
Toggle => False));
function Creat... |
7,119 | ada | 33 | ytomino/drake | source/tasking/a-interr.ads | pragma License (Unrestricted);
-- with System;
-- with System.Multiprocessors;
package Ada.Interrupts is
type Interrupt_Id is range 0 .. 2 ** 16 - 1; -- implementation-defined
type Parameterless_Handler is access protected procedure;
function Is_Reserved (Interrupt : Interrupt_Id) return Boolean;
pragma... |
7,120 | ada | 2 | mgrojo/bingada | src/q_csv.adb | <reponame>mgrojo/bingada
package body Q_CSV is
--==================================================================
function F_LINE (V_LINE : String;
V_SEPARATOR : Character := ';') return T_ROW is
(V_LENGTH => V_LINE'LENGTH,
R_STR => V_LINE,
R_FIRST => V_LINE'F... |
7,121 | ada | 80 | thindil/steamsky | src/game-saveload.adb | -- Copyright 2017-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) a... |
7,122 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74409b.ada | -- C74409B.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... |
7,123 | ada | 12 | TUM-EI-RCS/StratoX | tests/remainder/src/units.ads | package units with SPARK_Mode is
type Unit_Type is new Float with -- As tagged Type? -> Generics with Unit_Type'Class
Dimension_System =>
((Unit_Name => Meter, Unit_Symbol => 'm', Dim_Symbol => 'L'),
(Unit_Name => Kilogram, Unit_Symbol => "kg", Dim_Symbol => 'M'),
(Unit_Name => Se... |
7,124 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Dining-philosophers/Ada/dining-philosophers-2.ada | with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Dining_Philosophers is
type Philosopher is (Aristotle, Kant, Spinoza, Marx, Russel);
protected type Fork is
entry Grab;
procedure Put_Down;
private
Seized : Boolea... |
7,125 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32f103/stm32_svd-sdio.ads | <reponame>morbos/Ada_Drivers_Library
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.SDIO is
pragma Preelaborate;
---------------
-- Registers --
------------... |
7,126 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Stair-climbing-puzzle/Ada/stair-climbing-puzzle-2.ada | with Ada.Numerics.Discrete_Random;
with Ada.Text_IO;
procedure Scaffolding is
package Try is new Ada.Numerics.Discrete_Random (Boolean);
use Try;
Dice : Generator;
Level : Integer := 0;
function Step return Boolean is
begin
if Random (Dice) then
Level := Level + 1;
Ada.Text_... |
7,127 | ada | 33 | ytomino/drake | examples/eastasianwidth.adb | <gh_stars>10-100
with Ada.Strings.East_Asian_Width;
procedure eastasianwidth is
use Ada.Strings.East_Asian_Width;
subtype WWC is Wide_Wide_Character;
begin
pragma Assert (Kind (WWC'Val (0)) = Neutral);
pragma Assert (Kind ('A') = Narrow);
pragma Assert (Kind (WWC'Val (16#2500#)) = Ambiguous);
pragma Assert (Kind ... |
7,128 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbbosu__leon.adb | <filename>bb-runtimes/src/s-bbbosu__leon.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
7,129 | ada | 20 | charlie5/lace | 1-base/lace/source/events/interface/lace-subject.ads | <reponame>charlie5/lace<gh_stars>10-100
with
lace.Event,
lace.Observer;
limited
with
lace.Event.Logger;
package lace.Subject
--
-- Provides an interface for an event Subject.
--
is
pragma remote_Types;
type Item is limited interface;
type View is access all Item'Class;
type Views is arr... |
7,130 | ada | 1 | alvaromb/Compilemon | lib/ayacc/string_pkg.adb | <filename>lib/ayacc/string_pkg.adb
-- Module : string_pkg.ada
-- Component of : common_library
-- Version : 1.2
-- Date : 11/21/86 16:35:20
-- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstring_pkg.ada
-- $Source: /nosc/work/abstractions/string/RCS/string.bdy,v $
-- $Revision: 1.... |
7,131 | ada | 1 | mimo/Tracker | tracker.adb | <filename>tracker.adb
with Ada.Strings.Fixed;
package body tracker is
procedure Percentage (Object : in out Collection) is
begin
for I in Fixed_Collection'First .. Fixed_Collection'First + Object.Items_Count - 1 loop
Object.Counter (Object.Items(I).state) := Object.Counter(Object.Items(I).state) + ... |
7,132 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt23_pkg.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt23_pkg.ads
package Opt23_Pkg is
function N return Positive;
pragma Import (Ada, N);
type Path is array(1 .. N) of Long_Float;
type Path_Vector is array (Positive range <>) of Path;
type Path_Vector_P is access all Path_Vector;
type Path_Vector... |
7,133 | ada | 32 | robdaemon/AdaYaml | src/interface/yaml.ads | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Finalization;
with Text;
with Lexer;
package Yaml is
-- occurs when the lexical analysis of a YAML character streams discovers
-- ill-formed input.
Lexer_Error : exception renames Lexer... |
7,134 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/weak1.ads | package Weak1 is
Myconst : constant Integer := 1234;
pragma Export (C, Myconst, "myconst");
pragma Weak_External (Myconst);
end Weak1;
|
7,135 | ada | 2 | SMerrony/dgemua | memory_channels.ads | -- MIT License
-- 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 without restriction, including without limitation the rights
-- to use, copy, modify, merge, p... |
7,136 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a74105b.ada | -- A74105B.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... |
7,137 | ada | 52 | onox/orka | examples/src/package_9_jobs.ads | <reponame>onox/orka
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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/li... |
7,138 | ada | 9 | jhumphry/SPARK_NORX | src/tests/norx_example.adb | -- NORX_Example
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with System.Storage_Elements;
use System.Storage_Elements;
with NORX.Utils;
with NORX6441;
use NORX6441;
procedure NORX_Example is
package NORX6441_Utils is new NORX6441.Utils;
use NORX6441_Utils;... |
7,139 | ada | 24 | svn2github/matreshka | testsuite/league/TN-104/test_104.adb | <filename>testsuite/league/TN-104/test_104.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,140 | ada | 7 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-strhas.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
7,141 | ada | 0 | SKNZ/BezierToSTL | ancien_tests.adb | <filename>ancien_tests.adb
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Math; use Math;
with STL; use STL;
procedure test_unitaire is
-- Helper génération SVG
procedure Sauve_SVG(Segments : Liste_Points.Liste) is
Fichier : File_Type;
Nom_Fichier : String ... |
7,142 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/sem_dist.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,143 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca3011a4.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca3011a4.ada
-- CA3011A4M.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
-- unli... |
7,144 | ada | 34 | sergev/vak-opensource | languages/dynlink/ada-interfaces/simple/pkg.adb | <reponame>sergev/vak-opensource
with System.Machine_Code; use System.Machine_Code;
package body Pkg is
procedure func_gamma (x: in out Gamma) is
begin
asm ("# func_gamma");
x.data_gamma := 1;
end func_gamma;
procedure func_beta (x: in out Gamma) is
begin
asm ("# func_beta");
end func_beta;
procedure func_alpha (... |
7,145 | ada | 33 | ytomino/drake | source/strings/a-zchara.ads | <filename>source/strings/a-zchara.ads
pragma License (Unrestricted);
package Ada.Wide_Wide_Characters is
pragma Pure;
end Ada.Wide_Wide_Characters;
|
7,146 | ada | 6 | jquorning/ada-el | regtests/el-utils-tests.adb | -----------------------------------------------------------------------
-- el-contexts-tests - Tests the EL contexts
-- Copyright (C) 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 with the Lic... |
7,147 | ada | 1 | skill-lang/skillAdaTestSuite | test/aircraft/test_aircraft-append.adb | package body Test_Aircraft.Append is
File_Name : constant String := "tmp/test-append-aircraft.sf";
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Aircraft.Append");
Ahven.Framework.Add_Test_Routine (T, Create_Write_Read_Append_Write_Read'Access, "create, write, read, append, wr... |
7,148 | ada | 1 | MatrixMike/AdaDemo1 | greetings/greetings.adb | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
package body Greetings is
procedure Hello is
begin
Put_Line ("Hello WORLD!");
end Hello;
procedure Middle is
begin
Put_Line ("Middle goes here");
end Middle;
procedure Goodbye is
beg... |
7,149 | ada | 1 | seczoid/Amass | resources/scripts/api/ipinfo.ads | -- Copyright 2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "IPinfo"
type = "api"
function start()
setratelimit(1)
end
function check()
local c
local cfg = datasrc_config()
if cfg... |
7,150 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l5x2/stm32_svd-hash.ads | <reponame>morbos/Ada_Drivers_Library
-- This spec has been automatically generated from STM32L562.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.HASH is
pragma Preelaborate;
---------------
-- Registers --
------------... |
7,151 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_2/src/stm32-rng.ads | <filename>courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_2/src/stm32-rng.ads
-- This file provides the API for the random number generator on the STM32F4
-- (ARM Cortex M4F) microcontrollers from ST Microelectronics.
--
-- See the child packages for routines to initialze the gen... |
7,152 | ada | 0 | Letractively/ada-asf | src/asf-beans-resolvers.ads | -----------------------------------------------------------------------
-- asf-beans-resolvers -- Resolver to create and give access to managed beans
-- Copyright (C) 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except... |
7,153 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/MD5-Implementation/Ada/md5-implementation-3.ada | with Ada.Strings.Unbounded;
with Ada.Text_IO;
with MD5;
procedure Tester is
use Ada.Strings.Unbounded;
type String_Array is array (Positive range <>) of Unbounded_String;
Sources : constant String_Array :=
(To_Unbounded_String (""),
To_Unbounded_String ("a"),
To_Unbounded_String ("abc"),
... |
7,154 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/discr1.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/discr1.ads
-- { dg-do compile }
-- { dg-options "-gnatct" }
with Discr1_Pkg; use Discr1_Pkg;
package Discr1 is
procedure Proc (V : Variable_String_Array);
end Discr1;
|
7,155 | ada | 0 | Asier98/AdaCar | src/adacar-seguimiento_sensor.adb | with Ada.Real_Time; use type Ada.Real_Time.Time; use Ada;
with AdaCar.Organizador_Movimiento;
with AdaCar.Sensor_Proximidad;
package body AdaCar.Seguimiento_Sensor is
----------------------
-- Seguimiento_Task --
----------------------
task body Seguimiento_Task is
Tseg: constant Duration:= Paramet... |
7,156 | ada | 0 | ctdempsey/programming-language-inception | adalang.adb | with Ada.Text_IO; use Ada.Text_IO;
with GNAT.OS_Lib; use GNAT.OS_Lib;
procedure AdaLang is
Result : Boolean;
Arguments : Argument_List :=
( 1=> new String'("erl"),
2=> new String'("-noshell"),
3=> new String'("-run"),
4=> new String'("erlanglang"),
... |
7,157 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-tpobop.adb | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
7,158 | ada | 33 | ytomino/drake | source/strings/a-suenco.ads | pragma License (Unrestricted);
-- Ada 2012
package Ada.Strings.UTF_Encoding.Conversions is
pragma Pure;
-- Conversions between various encoding schemes
function Convert (
Item : UTF_String;
Input_Scheme : Encoding_Scheme;
Output_Scheme : Encoding_Scheme;
Output_BOM : Boolean := False... |
7,159 | ada | 7 | Fabien-Chouteau/Giza | test/src/test_graphic_bounds.ads | <gh_stars>1-10
with Basic_Test_Window; use Basic_Test_Window;
with Giza.Context; use Giza.Context;
with Giza.Events; use Giza.Events;
with Giza.Widget.Button;
use Giza.Widget;
package Test_Graphic_Bounds is
type Graphic_Bounds_Window is new Test_Window with private;
type Graphic_Boounds_Window_Ref is access all... |
7,160 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43204h.ada | -- C43204H.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... |
7,161 | ada | 8 | Lucretia/so | src/oberon-parser.ads | ------------------------------------------------------------------------------------------------------------------------
-- See COPYING for licence information.
------------------------------------------------------------------------------------------------------------------------
-- Oberon.Parser
-- This is the roo... |
7,162 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-gui-view-grid.ads | <filename>ada_gui-gnoga-gui-view-grid.ads<gh_stars>10-100
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- ... |
7,163 | ada | 0 | rachitkakkar/AnInterpreter | fizzbuzz.adb | <reponame>rachitkakkar/AnInterpreter<filename>fizzbuzz.adb<gh_stars>0
let num = 0;
if num < 100 {
reassign num = num + 1;
print_expr_ln num;
jump 10;
jump 3;
}
jump 23;
if num%15 == 0 {
print_str_ln FIZZBUZZ;
jump 3;
}
if num%3 == 0 {
print_str_ln FIZZ;
jump 3;
}
if num... |
7,164 | ada | 192 | rocher/Ada_Drivers_Library | components/src/touch_panel/ft6x06/ft6x06.ads | <reponame>rocher/Ada_Drivers_Library<gh_stars>100-1000
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
7,165 | ada | 0 | fintatarta/protypo | src/API/protypo-api-engine_values-engine_value_holders.ads | <reponame>fintatarta/protypo<gh_stars>0
with Ada.Containers.Indefinite_Holders;
package Protypo.Api.Engine_Values.Engine_Value_Holders is
new Ada.Containers.Indefinite_Holders (Engine_Value);
|
7,166 | ada | 26 | damaki/libkeccak | src/common/gimli.adb | <filename>src/common/gimli.adb
-------------------------------------------------------------------------------
-- Copyright (c) 2019, <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:... |
7,167 | ada | 1 | zrmyers/VulkanAda | test/mat/vulkan-math-mat4x4-test.adb | <gh_stars>1-10
--------------------------------------------------------------------------------
-- MIT License
--
-- 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 Sof... |
7,168 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-tkm_version.adb | with Tkmrpc.Servers.Ike;
with Tkmrpc.Response.Ike.Tkm_Version.Convert;
package body Tkmrpc.Operation_Handlers.Ike.Tkm_Version is
-------------------------------------------------------------------------
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type) is
pragma Unreferenced (Req);... |
7,169 | ada | 0 | Latence-Technologies/Kafka-Ada | src/kafka-config.ads | <reponame>Latence-Technologies/Kafka-Ada<gh_stars>0
--
-- Provides the ability to create a configuration to be used when creating a
-- Kafka handle
--
package Kafka.Config is
--
-- Creates a new kafka config object
--
-- librdkafka equivalent: rd_kafka_conf_new
--
function Create return Config_... |
7,170 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/prj-env.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/prj-env.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,171 | ada | 30 | Componolit/libsparkcrypto | src/shared/generic/lsc-internal-math_int.ads | <filename>src/shared/generic/lsc-internal-math_int.ads
with LSC.Internal.Types;
package LSC.Internal.Math_Int
with
SPARK_Mode => On
is
pragma Pure;
type Math_Int is private;
function "+" (A : Math_Int; B : Math_Int) return Math_Int
with Ghost, Import, Global => null;
function "-" (A : Math_Int; ... |
7,172 | ada | 30 | jscparker/math_packages | disorderly/disorderly-basic_rand.ads |
-------------------------------------------------------------------------------
-- package Disorderly.Basic_Rand, Linear Random Number Generator
-- Copyright (C) 1995-2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided th... |
7,173 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_call.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_call.adb
-- { dg-do compile }
with System; with Ada.Unchecked_Conversion;
procedure Test_Call is
type F_ACC is access function (Str : String) return String;
function Do_Something (V : F_Acc) return System.Address is
... |
7,174 | ada | 1 | danva994/ASFML-1.6 | tests/clock/main.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Sf.System.Clock; use Sf.System.Clock;
with Sf.System.Sleep; use Sf.System.Sleep;
with Sf.System.Types; use Sf.System.Types;
procedure Main is
My_Clock : sfClock_Ptr;
begin
My_Clock := sfClock_Create;
sfSleep ... |
7,175 | ada | 3 | daveshields/AdaEd | demos/en.ada | -- DEMONSTRATION EXAMPLE:
-- Features:
-- Enumeration types, ENUM_IO (generic package),
-- arrays, dynamic exception handling, etc.
with TEXT_IO; use TEXT_IO;
procedure en is
type COLOR is (red, yellow, green, blue);
package COLOR_IO is new ENUMERATION_IO(COLOR);
ANSWER : constant array (red .. bl... |
7,176 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr3.adb | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
with text_io;
with System;
procedure addr3 is
Type T_SAME_TYPE is new System.Address;
Type T_OTHER_TYPE is new System.Address;
I : constant integer := 0;
... |
7,177 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/adv_240_tasking_protected_objects/answers/solar_system-graphics.adb | with Ada.Real_Time; use Ada.Real_Time;
package body Solar_System.Graphics is
procedure Draw_Body (Object : Body_T; Canvas : Canvas_ID) is
Tail_Color : RGBA_T;
Dimmer : Color_Component_T := 30;
function Dim (C : Color_Component_T) return Color_Component_T is
begin
if C < Dimmer then... |
7,178 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr21.adb | <reponame>best08618/asylo
-- { dg-do run }
with Aggr21_Pkg; use Aggr21_Pkg;
procedure Aggr21 is
V : Rec;
begin
V.A := 12;
V.S (1 .. 10) := "Hello init";
V.N := 123;
Init (V);
-- Probably not reliable, but the compiler is supposed not to modify V.S
pragma Assert (V.s (1 .. 5) = "Hello");
end;
|
7,179 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/160_genericity_text/answers/main.adb | <filename>courses/fundamentals_of_ada/labs/solar_system/160_genericity_text/answers/main.adb
with Swaps; use Swaps;
with Ada.Text_IO;
with Swap_Generics;
with Sort_Generics;
procedure Main is
V1 : Integer := 42;
V2 : Integer := 43;
F1 : Float := 42.0;
F2 : Float := 43.0;
procedure Swap_Integer is new ... |
7,180 | ada | 10 | jrmarino/libsodium-ada | Binding_Sodium/sodium-functions.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Sodium.Thin_Binding;
package Sodium.Functions is
package Thin renames Sodium.Thin_Binding;
------------------
-- Data Types --
------------------
subtype Standard_Hash is String (1 .. Posi... |
7,181 | ada | 33 | ytomino/drake | examples/ucd_combiningclass.adb | <filename>examples/ucd_combiningclass.adb
-- convert UCD/extracted/DerivedCombiningClass.txt
-- bin/ucd_combiningclass $UCD/extracted/DerivedCombiningClass.txt > ../source/strings/a-uccocl.ads
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Containers.Ordered_Maps;
with Ada.Integer_Text_IO; use Ada.Integer_Text_I... |
7,182 | ada | 33 | ytomino/drake | source/directories/a-creden.adb | with System.Native_Credentials;
package body Ada.Credentials is
function User_Name return String is
begin
-- User_Name has a default parameter in Darwin, but not in Windows
return System.Native_Credentials.User_Name;
end User_Name;
end Ada.Credentials;
|
7,183 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32gd-usb-endpoint.ads | with STM32_SVD; use STM32_SVD;
with STM32_SVD.GPIO;
with STM32_SVD.USB;
with Ada.Interrupts.Names;
with System;
generic
Number : Integer;
package STM32GD.USB.Endpoint is
procedure Handle_Ctr;
end STM32GD.USB.Endpoint;
|
7,184 | ada | 0 | alire-project/resources | src/resources.ads | generic
Crate_Name : String;
-- MANDATORY: Name of the crate/project in lower case.
Resource_Dir_From_Prefix : String := "share/" & Crate_Name & "/";
-- OPTIONAL: Relative path from the prefix/installation dir to the resource
-- folder. The default value provided here should work for all cases.
M... |
7,185 | ada | 30 | jrmarino/AdaBase | src/results/adabase-results-sets.ads | <reponame>jrmarino/AdaBase
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Results.Field;
with Ada.Containers.Vectors;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Strings.Hash;
package AdaBase.Results.Sets is
package ARF renames Ada... |
7,186 | ada | 12 | TUM-EI-RCS/StratoX | tests/linkedlist/src/wrap.ads | with Ada.Containers.Formal_Doubly_Linked_Lists;
package wrap with SPARK_Mode is
type Element_Type is (ONE, TWO);
function My_Eq (Left : Element_Type; Right : Element_Type) return Boolean is (Left = Right);
package My_Lists is new Ada.Containers.Formal_Doubly_Linked_Lists (Element_Type, My_Eq);
use My_Lis... |
7,187 | ada | 32 | robdaemon/AdaYaml | test/src/utils.ads | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package Utils is
function File_Content (Path : String) return String;
end Utils;
|
7,188 | ada | 5 | onox/dcf-ada | dcf/src/dcf-zip-create.ads | -- SPDX-License-Identifier: MIT
--
-- Contributed by ITEC - NXP Semiconductors
-- June 2008
--
-- Copyright (c) 2008 - 2018 <NAME> (maintainer)
-- SWITZERLAND
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software")... |
7,189 | ada | 80 | thindil/steamsky | src/bases-trade.adb | <gh_stars>10-100
-- Copyright 2017-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (... |
7,190 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/size_attribute1_pkg1.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/size_attribute1_pkg1.adb<gh_stars>1-10
package body Size_Attribute1_Pkg1 is
type Rec is
record
F : T;
end record;
procedure Dummy is
begin
null;
end;
end Size_Attribute1_Pkg1;
|
7,191 | ada | 18 | kraileth/ravenadm | src/portscan-tests.ads | <gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Port_Specification;
package PortScan.Tests is
package PSP renames Port_Specification;
-- check-plist target verifies manifest
-- It takes into account the manifest for all subpac... |
7,192 | ada | 52 | onox/orka | orka_simd/src/x86/gnat/orka-simd-avx-doubles-arithmetic.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
-... |
7,193 | ada | 1 | charlie5/lace-alire | 4-high/gel/source/world/gel-world-client.ads | with
gel.World;
limited
with
openGL.Renderer.lean;
package gel.World.client
--
-- Provides a gel world.
--
is
type Item is limited new gel.World.item with private;
type View is access all Item'Class;
type Views is array (Positive range <>) of View;
---------
-- Forge
--
package... |
7,194 | ada | 1 | zrmyers/VulkanAda | test/vulkan-test-framework.adb | --------------------------------------------------------------------------------
-- MIT License
--
-- 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 without r... |
7,195 | ada | 3 | rogermc2/GA_Ada | ga_ref_impl/src/blade_types.adb |
package body Blade_Types is
BV_Names : Basis_Vector_Names;
-- -------------------------------------------------------------------------
function Basis_Names_C3GA return Basis_Vector_Names is
begin
return BV_Names;
end Basis_Names_C3GA;
-- ------------------------------------------... |
7,196 | ada | 1 | jweese/Ada_Vent_19 | day_01.adb | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure Day_01 is
function Fuel(Mass: Natural) return Natural is
Result: constant Integer := Mass / 3 - 2;
begin
if Result <= 0 then
return 0;
else
return Result + Fuel(Result);
end if;
end Fuel;
Total_Fuel: Natural :=... |
7,197 | ada | 0 | sebsgit/textproc | src/opencl/gpucomponentlabeling.adb | <reponame>sebsgit/textproc<gh_stars>0
with cl_objects;
with opencl; use opencl;
with Ada.Unchecked_Deallocation;
with Ada.Characters.Latin_1;
with Ada.Containers.Vectors;
with Ada.Numerics.Generic_Elementary_Functions;
with System;
with Ada.Text_IO;
package body GpuComponentLabeling is
NL: constant Character := Ad... |
7,198 | ada | 18 | kraileth/ravenadm | src/display.ads | <filename>src/display.ads
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
package Display is
subtype history_origin is String (1 .. 45);
subtype history_elapsed is String (1 .. 8);
subtype history_action is String... |
7,199 | ada | 5 | ianloic/unladen-swallow | Util/llvm/bindings/ada/bitwriter/llvm_bit_writer-binding.ads | <gh_stars>1-10
-- This file is generated by SWIG. Do *not* modify by hand.
--
with llvm;
with Interfaces.C.Strings;
package LLVM_bit_Writer.Binding is
function LLVMWriteBitcodeToFileHandle
(M : in llvm.LLVMModuleRef;
Handle : in Interfaces.C.int)
return Interfaces.C.int;
function LLVM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.