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,000 | ada | 26 | damaki/libkeccak | tests/kat/test_vectors.adb | <gh_stars>10-100
-------------------------------------------------------------------------------
-- 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:
-- * Redistri... |
4,001 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo-builders.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,002 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/release_unc_maxalign.adb | -- { dg-do run }
with Ada.Unchecked_Deallocation;
procedure Release_UNC_Maxalign is
type List is array (Natural range <>) of Integer;
for List'Alignment use Standard'Maximum_Alignment;
type List_Access is access all List;
procedure Release is new Ada.Unchecked_Deallocation
(Object => List, Name =>... |
4,003 | ada | 0 | fintatarta/eugen | src/project_processor.ads | <reponame>fintatarta/eugen<gh_stars>0
with Ada.Strings.Fixed;
package Project_Processor is
-- The result of function 'Image associated to discrete types has
-- a space at the beginning. That space is quite annoying and needs
-- to be trimmed. This function is here so that everyone can use it
function Ch... |
4,004 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/a-ststio.ads | <reponame>brucegua/moocos
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
4,005 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/answers/110_advanced_proof_techniques/max.ads | <filename>courses/spark_for_ada_programmers/labs/answers/110_advanced_proof_techniques/max.ads
package Max
with SPARK_Mode
is
Min_Table_Size : constant := 1;
Max_Table_Size : constant := 100;
Min_Content : constant := -200;
Max_Content : constant := 200;
type Index_Range is range Min_Table_Si... |
4,006 | ada | 1 | jquorning/WeDo | source/symbols.adb | <filename>source/symbols.adb<gh_stars>1-10
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
... |
4,007 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Permutations/Ada/permutations-2.ada | package body Generic_Perm is
procedure Set_To_First(P: out Permutation; Is_Last: out Boolean) is
begin
for I in P'Range loop
P (I) := I;
end loop;
Is_Last := P'Length = 1;
-- if P has a single element, the fist permutation is the last one
end Set_To_First;
procedure Go_To_Next(P... |
4,008 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/globe_3d-math.ads | package GLOBE_3D.Math is
-------------
-- Vectors --
-------------
function "*" (l : Real; v : Vector_3D) return Vector_3D;
pragma Inline ("*");
function "*" (v : Vector_3D; l : Real) return Vector_3D;
pragma Inline ("*");
function "+" (a, b : Vector_3D) return Vector_3D;
pragma Inlin... |
4,009 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming10.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming10.ads
package Renaming10 is
type Rec is record
Position : Natural;
end record;
function F (Input : Rec) return Natural;
end Renaming10;
|
4,010 | ada | 1 | annexi-strayline/ASAP-Unicode | unicode-utf8_stream_decoder.ads | ------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- UTF-8 Stream Decoder --
-- ... |
4,011 | ada | 3 | Heziode/aoc-ada-2021 | 18/1/src/main.adb | with Ada.Containers.Vectors,
Ada.Containers.Doubly_Linked_Lists,
Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
Opening_Bracket : constant := -2;
Closi... |
4,012 | ada | 0 | damaki/EVB1000 | src/stm32-rtc.ads | <filename>src/stm32-rtc.ads
-- This spec has been automatically generated from STM32F105xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
package STM32.RTC is
pragma Preelaborate;
---------------
-- Registers --
---------------
------------------
-- CRH_Register --
... |
4,013 | ada | 0 | optikos/oasis | examples/dump_tree/dump_tree.adb | <filename>examples/dump_tree/dump_tree.adb<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Characters.Conversions;
with Ada.Command_Line;
with Ada.Wide_Wide_Text_IO;
with Program... |
4,014 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Pascals-triangle/Ada/pascals-triangle-1.ada | <filename>Task/Pascals-triangle/Ada/pascals-triangle-1.ada
package Pascal is
type Row is array (Natural range <>) of Natural;
function Length(R: Row) return Positive;
function First_Row(Max_Length: Positive) return Row;
function Next_Row(R: Row) return Row;
end Pascal;
|
4,015 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-graphics-circleshape.ads | <gh_stars>0
--//////////////////////////////////////////////////////////
-- 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... |
4,016 | ada | 192 | rocher/Ada_Drivers_Library | components/src/io_expander/AdaFruit_Trellis/adafruit-trellis.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
4,017 | ada | 0 | JeremyGrosser/arm_cmsis_dsp | src/arm_math_memory_h.ads | <gh_stars>0
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with arm_math_types_h;
with System;
package arm_math_memory_h is
function read_q15x2 (pQ15 : access arm_math_types_h.q15_t) return arm_math_types_h.q31_t -- ../CMSIS_5/CMSIS/DSP/Include/arm_math_me... |
4,018 | ada | 60 | Letractively/ada-util | src/util-texts-formats.ads | <gh_stars>10-100
-----------------------------------------------------------------------
-- Util-texts-formats -- Text Format ala Java MessageFormat
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
4,019 | ada | 6 | My-Colaborations/ada-servlet | src/servlet-streams.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- Servlet.Streams -- Print streams for servlets
-- Copyright (C) 2010, 2011, 2012, 2013, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
4,020 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-connectable_elements.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
4,021 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-n_row.adb | separate (Numerics.Sparse_Matrices)
function N_Row (Mat : in Sparse_Matrix) return Pos is
begin
return Mat.N_Row;
end N_Row;
|
4,022 | ada | 12 | TUM-EI-RCS/StratoX | software/lib/generic_pid_controller.adb |
package body Generic_PID_Controller with SPARK_Mode => On is
procedure initialize( Pid : out Pid_Object;
Kp : PID_Coefficient_Type;
Ki : PID_Coefficient_Type;
Kd : PID_Coefficient_Type;
I_Limit_Low : PID_Dat... |
4,023 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/slice7_pkg.ads | with System.Storage_Elements; use System.Storage_Elements;
package Slice7_Pkg is
procedure Put (The_Object : in Storage_Array);
end Slice7_Pkg;
|
4,024 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-power_and_clocks_ironlake.adb | --
-- Copyright (C) 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, or
-- (at your option) any later version.
--
-- This ... |
4,025 | ada | 0 | patrickf2000/ada-asm | src/parser.adb | <filename>src/parser.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Vectors;
with Utils; use Utils;
package body Parser is
-- The parse procedure
procedure Parse_Input(Input : String; All_Parts : in out Parts_... |
4,026 | ada | 1 | Fabien-Chouteau/lvgl-ada-examples | src/disaply_simulator.ads | <filename>src/disaply_simulator.ads
with LV_Conf;
with SDL_Display;
package Disaply_Simulator is new SDL_Display (LV_Conf.LV_HOR_RES,
LV_Conf.LV_VER_RES);
|
4,027 | ada | 0 | optikos/oasis | source/oasis/program-elements-while_loop_statements.ads | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Expressi... |
4,028 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/g-io.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,029 | ada | 6 | osannolik/ada-canopen | examples/linux/src/aco-drivers-socket.ads | private with SocketCAN; -- Requires GNAT...
package ACO.Drivers.Socket is
type CAN_Driver is new Driver with private;
CAN_If_Name : constant String := "vcan0";
overriding
procedure Receive_Message_Blocking
(This : in out CAN_Driver;
Msg : out ACO.Messages.Message);
overriding
pro... |
4,030 | ada | 24 | svn2github/matreshka | source/amf/dd/amf-internals-tables-dg_metamodel-objects.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
4,031 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbcaco.ads | <filename>bb-runtimes/src/s-bbcaco.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
4,032 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array11.adb | -- { dg-do compile }
procedure Array11 is
type Rec is null record;
type Ptr is access all Rec;
type Arr1 is array (1..8) of aliased Rec; -- { dg-warning "padded" }
type Arr2 is array (Long_Integer) of aliased Rec; -- { dg-warning "padded" }
A1 : Arr1;
A2 : Arr2; -- { dg-warning "Storage_Error" }
begin
... |
4,033 | ada | 0 | reznikmm/slimp | source/slim-players-displays.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Messages.grfe;
package body Slim.Players.Displays is
-----------
-- Clear --
-----------
procedure Clear (Self : in out Displa... |
4,034 | ada | 3 | rogermc2/GA_Ada | ga_lib/src/gl_util.adb | <gh_stars>1-10
with Interfaces;
with Ada.Text_IO; use Ada.Text_IO;
with GL;
with GL.Window;
with Utilities;
with Blade;
with Blade_Types;
with E3GA;
with E3GA_Utilities;
package body GL_Util is
-- ------------------------------------------------------------------
-- function From_GL (V3 : GL.Types.... |
4,035 | ada | 0 | fintatarta/protypo | test/examples/Project/labels.ads | <gh_stars>0
with Ada.Strings.Bounded;
package Labels is
Max_Label_Length : constant := 128;
package Bounded_Labels is
new Ada.Strings.Bounded.Generic_Bounded_Length (Max_Label_Length);
subtype Label_Type is Bounded_Labels.Bounded_String;
function "+" (X : String) return Label_Type
is (Bounde... |
4,036 | ada | 0 | jquorning/CELLE | source/sessions.adb | <filename>source/sessions.adb
--
--
--
package body Sessions is
procedure Append_State_To_Sorted (State : in States.State_Access);
Sorted_Vector : State_Vectors.Vector := State_Vectors.Empty_Vector;
procedure Append_State_To_Sorted (State : in States.State_Access)
is
begin
Sorted_Vector.Append (... |
4,037 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating.adb |
package body impact.d3.collision.Algorithm.activating
is
procedure define (Self : in out Item; ci : in AlgorithmConstructionInfo;
colObj0, colObj1 : access impact.d3.Object.item'Class)
is
pragma Unreferenced (colObj0, colObj1);
us... |
4,038 | ada | 32 | robdaemon/AdaYaml | src/implementation/yaml-dom-loading.adb | <reponame>robdaemon/AdaYaml
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Vectors;
with Yaml.Dom.Node;
with Yaml.Dom.Mapping_Data;
with Yaml.Dom.Sequence_Data;
with Yaml.Parser.Stream;
pa... |
4,039 | ada | 1 | LagOussama/enseeiht | 2IMA/SystemesConcurrents/tp6/lr-synchro-basique.adb | <reponame>LagOussama/enseeiht
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions;
-- Lecteurs concurrents, approche automate. Pas de politique d'accès.
package body LR.Synchro.Basique is
function Nom_Strategie return String is
begin
return "Automate, lecteurs concurrents, sans politique d'accès";
... |
4,040 | ada | 33 | ytomino/drake | source/image/required/s-wwdwch.ads | <filename>source/image/required/s-wwdwch.ads
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Wid_WChar;
package System.Wwd_WChar is
pragma Pure;
-- required for Wide_Character'Wide_Width by compiler (s-wwwdwch.ads)
function Wide_Width_Wide_Character (Lo, Hi : Wide_Char... |
4,041 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l151/stm32_svd-adc.ads | <gh_stars>1-10
-- 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.ADC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- status regi... |
4,042 | ada | 4 | sparre/ALSA-binding | src/sound.ads | <reponame>sparre/ALSA-binding<filename>src/sound.ads
-- The Beer-Ware License (revision 42)
--
-- <NAME> <<EMAIL>> wrote this. As long as you
-- retain this notice you can do whatever you want with this stuff. If we meet
-- some day, and you think this stuff is worth it, you can buy me a beer in
-- return.
--
-- ... |
4,043 | ada | 0 | zdimension/tdinfo302 | src/param_out.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure param_out is
procedure test_2 (nb : in out Integer) is
begin
nb := 789;
end test_2;
ma_var : Integer := 123;
begin
Put_Line("avant : " & Integer'Image(ma_var));
test_2(ma_var);
Put_Line("après : " & Integer'Image(ma_var));
end param_... |
4,044 | ada | 1 | faelys/lithium3 | src/natools-web-simple_pages-markdown_pages.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
4,045 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testtypes.adb | <gh_stars>0
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as publi... |
4,046 | ada | 12 | TUM-EI-RCS/StratoX | software/config/config-software.ads | -- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Software Configuration
-- Authors: <NAME> (<EMAIL>)
--
with Units;
with Logger;
-- @summary Configuration of the Software, adjust these parameters to your needs
package Config.... |
4,047 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/haswell/hw-gfx-gma-plls-wrpll.adb | <gh_stars>1-10
--
-- Copyright (C) 2015 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, or
-- (at your option) any later versi... |
4,048 | ada | 2 | zenharris/ada-bbs | src/irc-commands.adb | <filename>src/irc-commands.adb
-- (The MIT License)
--Copyright (c) 2012 <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 rig... |
4,049 | ada | 32 | robdaemon/AdaYaml | test/src/yaml-dom-dumping-test.adb | <filename>test/src/yaml-dom-dumping-test.adb
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with AUnit.Assertions; use AUnit.Assertions;
package body Yaml.Dom.Dumping.Test is
use type Text.Reference;
procedure Register_Tests (T : in out TC) is
... |
4,050 | ada | 0 | Fabien-Chouteau/libriscv | examples/embedded_simulator/src/libriscv-examples.adb | <reponame>Fabien-Chouteau/libriscv
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, <NAME> --
-- ... |
4,051 | ada | 1 | stcarrez/babel | src/babel-strategies.adb | -----------------------------------------------------------------------
-- babel-strategies -- Strategies to backup files
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compli... |
4,052 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-textio__sam4s.adb | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,053 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-connectors-edp.ads | <reponame>fabiojna02/OpenCellular
--
-- 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, or
-- (at your... |
4,054 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32001b.ada | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32001b.ada
-- C32001B.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. Governmen... |
4,055 | ada | 12 | jquorning/ada-asf | src/asf-events-modules.ads | <filename>src/asf-events-modules.ads
-----------------------------------------------------------------------
-- asf-events -- ASF Events
-- Copyright (C) 2009, 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except ... |
4,056 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/monitor/armv7a/trap_handler.adb | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
4,057 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-sets.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,058 | ada | 76 | rod-chapman/SPARKNaCl | src/sparknacl-debug.ads | <reponame>rod-chapman/SPARKNaCl
package SPARKNaCl.Debug
with SPARK_Mode => On
is
-- as per Boolean'Image (B) but does not violate the
-- No_Enumeration_Maps restriction
function Img (B : in Boolean) return String is
(if B then "TRUE" else "FALSE");
procedure DH (S : in String; D : in Byte_Seq);
... |
4,059 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/exp_vfpt.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,060 | ada | 0 | zyron92/banana_tree_generator | svg_helpers.ads | with Parseur, Ada.Text_Io, Ada.Integer_Text_Io;
use Parseur, Ada.Text_Io, Ada.Integer_Text_Io;
package Svg_Helpers is
type RGB is record
R,G,B : Natural;
end record;
procedure Header(Width, Height: in Float; Fichier: in File_type);
procedure Footer(Fichier: in File_Type);
--Translation d... |
4,061 | ada | 286 | auzkok/libagar | ada/original_2008/ada-demos/keyevent.adb | with agar.core.event;
with agar.core;
with agar.gui.widget.button;
with agar.gui.widget;
with agar.gui.window;
with agar.gui;
with demo;
with keyevent_callbacks;
procedure keyevent is
package gui_button renames agar.gui.widget.button;
package gui_event renames agar.core.event;
package gui_widget renames agar.gu... |
4,062 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35801d.ada | <gh_stars>1-10
-- C35801D.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.... |
4,063 | ada | 0 | reznikmm/gela | source/resolver/program-cross_reference_updaters.ads | <reponame>reznikmm/gela<filename>source/resolver/program-cross_reference_updaters.ads<gh_stars>0
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Defining_Names;
with Program.Elements;
package Prog... |
4,064 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-toggles.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0... |
4,065 | ada | 7 | kimtg/euler-ada | euler15.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Euler15 is
function To_Integer(C : Character) return Integer is (Character'Pos(C) - Character'Pos('0'));
function To_String(I : Integer) return String is
S : String := Integer'Image(I);
begin
if... |
4,066 | ada | 0 | TNO/Dependency_Graph_Extractor-Ada | src/command_line.adb | with GNAT.Command_Line; use GNAT.Command_Line;
with GNAT.Strings; use GNAT.Strings;
package body Command_Line is
function Parse_Command_Line
(Input_Files : out Input_File_Vectors.Vector;
Recurse_Projects : out Boolean;
Directory_Prefix : out S_U.Unbounded_String;
Output_File :... |
4,067 | ada | 1 | Hathoute/ENSEEIHT | PIM/TD4_Constructeurs_de_Types/tableau_io_3.adb | <filename>PIM/TD4_Constructeurs_de_Types/tableau_io_3.adb
-- Score PIXAL le 07/10/2020 à 17:34 : 100%
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Lire et écrire un tableau d'entiers.
procedure Tableau_IO is
Capacite: constant Integer := 10; -- Cette taille est ... |
4,068 | ada | 32 | robdaemon/AdaYaml | Parser_Tools/src/implementation/text-builder.adb | <reponame>robdaemon/AdaYaml
-- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package body Text.Builder is
H_Size : constant System.Storage_Elements.Storage_Offset :=
System.Storage_Elements.Storage_Offset (Header_Size);
procedure Init (Obj... |
4,069 | ada | 0 | Fabien-Chouteau/fsmaker | src/fsmaker-sink.ads | with System;
package FSmaker.Sink is
type Instance
is interface;
subtype Class is Instance'Class;
type Acc is access all Instance;
type Acc_Any is access all Class;
function Write (This : in out Instance;
Addr : System.Address;
Len : Natural)
... |
4,070 | ada | 9 | 98devin/ada-wfc | src/wfc.ads |
generic
type Element_Type is private;
-- The type of picture elements within the input.
type Element_Matrix is
array (Natural range <>, Natural range <>) of Element_Type;
-- The array type we'll take as input and provide as output.
-- We treat these as a toroidal surface which infinitely tiles.
with ... |
4,071 | ada | 25 | thierr26/ada-keystore | tools/akt-commands-password.ads | <filename>tools/akt-commands-password.ads
-----------------------------------------------------------------------
-- akt-commands-password -- Add/Change/Remove the wallet password
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
4,072 | ada | 0 | sourceryinstitute/rose-sourcery-institute | src/frontend/Experimental_Ada_ROSE_Connection/dot_asis/test_units/ordinary_type_declaration.ads | <reponame>sourceryinstitute/rose-sourcery-institute<gh_stars>0
package Ordinary_Type_Declaration is
type Ordinary_Type is range 1..10;
end Ordinary_Type_Declaration;
|
4,073 | ada | 0 | reznikmm/gela | source/oasis/program-elements-requeue_statements.ads | <filename>source/oasis/program-elements-requeue_statements.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package... |
4,074 | ada | 3 | FROL256/ada-ray-tracer | lights.adb | with Interfaces;
with Ada.Numerics.Float_Random;
with Ada.Numerics.Generic_Elementary_Functions;
with Vector_Math;
use Interfaces;
use Vector_Math;
package body Lights is
package Float_Functions is new Ada.Numerics.Generic_Elementary_Functions(float);
use Float_Functions;
function GetIntensity(l : LightRef)... |
4,075 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Loops-Break/Ada/loops-break.ada | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Numerics.Discrete_Random;
procedure Test_Loop_Break is
type Value_Type is range 0..19;
package Random_Values is new Ada.Numerics.Discrete_Random (Value_Type);
use Random_Values;
Dice : Generator;
A, B : Value_Type;
begin
loop
A := Random (Dice);
... |
4,076 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/test_operator_attribute.adb | package body Test_Operator_Attribute is
type Rec is
record
I : Integer := 0;
end record;
function Sum(L, R : Rec) return Integer is
(R.I + L.I);
function "+"(L, R : Rec) return Integer is
(R.I + L.I);
procedure Test is
Foo : access function(L, R : Rec) return Integer :=... |
4,077 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/g-decstr.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
4,078 | ada | 192 | rocher/Ada_Drivers_Library | hal/src/hal-framebuffer.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
4,079 | ada | 0 | Letractively/ada-util | src/os-win32/util-systems-os.ads | -----------------------------------------------------------------------
-- util-system-os -- Windows system operations
-- 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... |
4,080 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-taprob.ads | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
4,081 | ada | 0 | balintsoos/LearnAda | gyak/gyak1-2/b__powerof.ads | pragma Ada_95;
with System;
package ada_main is
pragma Warnings (Off);
gnat_argc : Integer;
gnat_argv : System.Address;
gnat_envp : System.Address;
pragma Import (C, gnat_argc);
pragma Import (C, gnat_argv);
pragma Import (C, gnat_envp);
gnat_exit_status : Integer;
pragma Imp... |
4,082 | ada | 81 | fuzzysloth/ada-awa | awa/src/awa-modules-beans.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- awa-modules-beans -- Module beans factory
-- Copyright (C) 2009, 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
4,083 | ada | 15 | My-Colaborations/dynamo | src/gnat/uintp.adb | <filename>src/gnat/uintp.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,084 | ada | 24 | svn2github/matreshka | source/league/matreshka-cldr-collation_data.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
4,085 | ada | 0 | jhumphry/Ada_BinToAsc | src/tests/bintoasc_suite-base85_tests.adb | <reponame>jhumphry/Ada_BinToAsc<filename>src/tests/bintoasc_suite-base85_tests.adb<gh_stars>0
-- BinToAsc_Suite.Base85_Tests
-- Unit tests for BinToAsc
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
with AUnit.Assertions;
with System.Storage_Elements;
with Ada.Assertions;
with Storage_Array_To_Hex_Str... |
4,086 | ada | 3 | albinjal/ada_basic | private/test.adb | <gh_stars>1-10
with Ada.Text_Io; use Ada.Text_Io;
procedure Test is
begin
Put_Line("Lul");
end Test;
|
4,087 | ada | 12 | TUM-EI-RCS/StratoX | software/modules/sensors/imu.adb |
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
with MPU6000.Driver; use MPU6000;
package body IMU with
SPARK_Mode,
Refined_State => (State => (G_state))
is
----------------
-- TYPES
----------------
type Kalman_Type is record
... |
4,088 | ada | 1 | jam3st/edk2 | HdGfxLib/libhwbase/common/hw-pci-dev.ads | <reponame>jam3st/edk2
--
-- Copyright (C) 2017 <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 your option) any later version.
-... |
4,089 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp8generique/test_abr.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with ABR;
procedure Test_ABR is
package ABR_String_Integer is
new ABR (T_Cle => Character, T_Donnee => Integer, "<" => "<");
use ABR_String_Integer;
procedure Afficher (C : in Character) is
begin
Put ("'" & C & "... |
4,090 | ada | 10 | Robert-Tice/AdaRoombot | src/algorithm.ads | with Types; use Types;
with Communication; use Communication;
package Algorithm is
type Algorithm_Type is
(Pong);
Safety_Exception : exception;
Default_Velocity : Velocity := 320;
type Abstract_Algorithm is abstract tagged record
null;
end record;
type A... |
4,091 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-init.adb | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-init.adb<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
... |
4,092 | ada | 4 | davidkristola/vole | kv-avm-vole_tree.ads | with Ada.Strings.Unbounded;
limited with kv.avm.Tree_Visitors;
limited with kv.avm.Symbol_Tables;
with kv.avm.Instructions;
with kv.avm.Registers; use kv.avm.Registers;
package kv.avm.vole_tree is
Parsing_Error : exception;
Missing_Parent_Error : exception;
Association_Error : exception;
Unresolveable_Na... |
4,093 | ada | 4 | davidkristola/vole | kv-avm-frames.ads | <filename>kv-avm-frames.ads
with Ada.Finalization;
with Interfaces;
with kv.avm.references; use kv.avm.references;
with kv.avm.Instructions;
with kv.avm.Registers;
with kv.avm.Memories;
with kv.avm.Actor_References;
with kv.avm.Actor_References.Sets;
with kv.avm.Tuples;
package kv.avm.Frames is
Program_Counter_Er... |
4,094 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/get_spark_xrefs.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,095 | ada | 2 | persan/gprTools | tests/src/p2/p2.ads | <filename>tests/src/p2/p2.ads
package p2 is
end p2;
|
4,096 | ada | 1 | jhumphry/Reqrep_Task_Pools | simple_example.adb | <reponame>jhumphry/Reqrep_Task_Pools
-- simple_example.adb
-- A simple example of using the Reqrep_Task_Pool
-- Copyright (c) 2015, <NAME>
--
-- 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 th... |
4,097 | ada | 0 | hgrodriguez/rp2040_playground | uart_master_slave/src/pico_interrupt_main.adb | --------------------------------------------------------------------------
-- Copyright 2022 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.GPIO;
with HAL.UART;
with Cortex_M.NVIC;
with RP2040_SVD.Interrupts;
with RP.Device;
with RP.Clock;
with RP.GPIO;
with RP.Timer;
with RP.UART;
with Pico;
... |
4,098 | ada | 2 | thorstel/Advent-of-Code-2018 | day15/day15.adb | <reponame>thorstel/Advent-of-Code-2018<gh_stars>1-10
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Containers.Unbounded_Synchronized_Queues;
with Ada.Containers.Vectors;
procedure Day15 is
... |
4,099 | ada | 32 | persan/AdaYaml | src/implementation/yaml-transformation.adb | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
package body Yaml.Transformation is
procedure Adjust (Object : in out Reference) is
begin
Increase_Refcount (Object.Data);
end Adjust;
procedure Finalize... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.