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 |
|---|---|---|---|---|---|
6,200 | ada | 0 | SKNZ/BezierToSTL | src/util/iterateur_mots.adb | <reponame>SKNZ/BezierToSTL<gh_stars>0
package body Iterateur_Mots is
function Initialiser(
Chaine : String;
Separateur : Character)
return Iterateur_Mot
is
begin
return (Chaine => To_Unbounded_String(Chaine),
Curseur => 1,
Separateur => Separateur);
... |
6,201 | ada | 59 | idrougge/ple | ada/task_demo.adb | <filename>ada/task_demo.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Task_Demo is
task type Worker is
entry Square(X: Integer);
entry Ping;
end Worker;
task body Worker is
Y: Integer;
begin
loop
select
accept Square(X: Integer) do Y := X; end;
Put_Line(Integer'Image(... |
6,202 | ada | 4 | DNSCatcher/DNSCatcher | src/dnscatcher/dnscatcher-types.adb | <filename>src/dnscatcher/dnscatcher-types.adb
-- 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
--... |
6,203 | ada | 0 | Holt59/Ada-SDL | include/game-gtimer.ads | --------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-GTIMER.ADS --
-- --
-- Gestion des timers --
-- ... |
6,204 | ada | 0 | NicoPy/Ada_RP2040_ELF2UF2 | rp2040_elf2uf2/src/elf.ads | <reponame>NicoPy/Ada_RP2040_ELF2UF2<filename>rp2040_elf2uf2/src/elf.ads
--
-- Copyright 2022 (C) <NAME> (aka DrPi)
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Interfaces; use Interfaces;
package Elf is
ELF_MAGIC : constant := 16#464c457f#;
EM_ARM : constant := 16#28#;
PT_LOAD : constant := 16#00... |
6,205 | ada | 0 | Fabien-Chouteau/minisamd51_bsp | src/minisamd51.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
6,206 | ada | 0 | Holt59/Ada-SDL | body/ada/game-display-font.adb | --------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-DISPLAY-FONT.ADB --
-- --
-- Gestion de l'affichage du texte --
-- ... |
6,207 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-configuration-default.adb | <reponame>charlie5/lace<gh_stars>10-100
with impact.d3.collision.convex_penetration_depth_Solver.gjk_epa,
impact.d3.collision.convex_penetration_depth_Solver.minkowski,
impact.d3.collision.Algorithm.activating.convex_convex,
impact.d3.collision.Algorithm.activating.convex_concave,
impact.d3.collisi... |
6,208 | ada | 1 | bracke/websitegenerator | src/filesystem.ads | with AAA.Strings; use AAA.Strings;
package Filesystem is
function Read_Directory (Path : String;
Recursive : Boolean) return AAA.Strings.Vector;
function Count_Files (Path : String) return Natural;
function Is_Valid_File (Name : String) return Boolean;
function Get_Executabl... |
6,209 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr20.adb | <reponame>best08618/asylo
-- { dg-do compile }
package body Aggr20 is
procedure Proc (R : out Rec3) is
begin
R := (Callback => Nil_Rec2);
end;
end Aggr20;
|
6,210 | ada | 24 | svn2github/matreshka | source/amf/ocl/amf-internals-factories-ocl_module_factory-construct_union.adb | <filename>source/amf/ocl/amf-internals-factories-ocl_module_factory-construct_union.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project ... |
6,211 | ada | 60 | RREE/ada-util | src/sys/encoders/util-encoders.adb | -----------------------------------------------------------------------
-- util-encoders -- Encode/Decode streams and strings from one format to another
-- Copyright (C) 2009, 2010, 2011, 2016, 2017, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License"... |
6,212 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/common/tkmrpc-request-ike-isa_create-convert.ads | <filename>specs/ada/common/tkmrpc-request-ike-isa_create-convert.ads
with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Ike.Isa_Create.Convert is
function To_Request is new Ada.Unchecked_Conversion (
Source => Isa_Create.Request_Type,
Target => Request.Data_Type);
function From_Request is new Ad... |
6,213 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/ali-util.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
6,214 | ada | 1 | danva994/ASFML-1.6 | include/sf-network-socketstatus.ads | -- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held liable for any damages a... |
6,215 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/elab2.adb | -- { dg-do compile }
-- { dg-options "-gnatws" }
with elab1;
procedure elab2 is
A : elab1.My_Rec;
begin
null;
end;
|
6,216 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-coprnu.ads | <reponame>best08618/asylo
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
6,217 | ada | 7 | Fabien-Chouteau/Giza | test/src/test_main_window.ads | with Giza.Window; use Giza.Window;
with Giza.Widget.Button;
with Giza.Widget.Tiles; use Giza.Widget.Tiles;
with Giza.Events; use Giza.Events;
with Giza.Types; use Giza.Types;
use Giza.Widget;
package Test_Main_Window is
subtype Parent is Giza.Window.Instance;
type Main_Window is new Parent with private;
type... |
6,218 | ada | 0 | faelys/natools | src/natools-smaz_implementations-base_64.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
6,219 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Shell-one-liner/Ada/shell-one-liner.ada | echo 'with Ada.text_IO; use Ada.text_IO; procedure X is begin Put("Hello!"); end X;' > x.adb; gnatmake x; ./x; rm x.adb x.ali x.o x
|
6,220 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/hpl/STM32/svd/stm32f40x/stm32_svd-iwdg.ads | <gh_stars>10-100
-- This spec has been automatically generated from STM32F40x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with HAL;
with System;
package STM32_SVD.IWDG is
pragma Preelaborate;
---------------
-- Registers --
---------------
-----------------
-- KR_Register --
... |
6,221 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/i-stm32-rcc.ads | <reponame>JCGobbi/Nucleo-STM32G474RE<filename>bb-runtimes/arm/stm32/stm32f0xx/stm32f0x8/svd/i-stm32-rcc.ads<gh_stars>0
--
-- Copyright (C) 2020, AdaCore
--
-- This spec has been automatically generated from STM32F0x8.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.STM32.RCC is
p... |
6,222 | ada | 1 | bracke/brackelib | src/brackelib-stacks.adb | <gh_stars>1-10
package body Brackelib.Stacks is
procedure Push (Self: in out Stack; Item : T) is
begin
Self.Container.Append (Item);
end Push;
procedure Clear (Self: in out Stack) is
begin
Self.Container.Clear;
end Clear;
function Top(Self: in Stack) return T is
begin
if Is_Empty (Self) t... |
6,223 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a95001c.ada | -- A95001C.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... |
6,224 | ada | 19 | pmderodat/ada-toml | tests/api/unset/main.adb | with Ada.Text_IO;
with TOML;
with TOML.File_IO;
procedure Main is
Value : constant TOML.TOML_Value :=
TOML.File_IO.Load_File ("example.toml").Value;
begin
Value.Unset ("array");
Ada.Text_IO.Put_Line (Value.Dump_As_String);
end Main;
|
6,225 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/rdseedintrin_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package rdseedintrin_h is
-- Copyright (C) 2012-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Publi... |
6,226 | ada | 0 | persan/dds-requestreply | src/dds-request_reply-replier-typed_replier_generic-passive_replier_generic.adb | pragma Ada_2012;
package body DDS.Request_Reply.Replier.Typed_Replier_Generic.Passive_Replier_Generic is
-------------------------
-- On_Request_Avalible --
-------------------------
procedure On_Request_Avalible
(Self : not null access Ref;
Replier : not null access Typed_Replier_Generi... |
6,227 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/enum2.adb | -- { dg-do run }
-- { dg-options "-gnat05 -O2" }
with Enum2_Pkg; use Enum2_Pkg;
procedure Enum2 is
type Enum is (A, B, C, D);
Table : array (B .. C, 1 .. 1) of F_String := (others => (others => Null_String));
begin
Table := (others => (others => Null_String));
end;
|
6,228 | ada | 60 | RREE/ada-util | regtests/util-http-clients-tests.ads | <reponame>RREE/ada-util<gh_stars>10-100
-----------------------------------------------------------------------
-- util-http-clients-tests -- Unit tests for HTTP client
-- Copyright (C) 2012, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
6,229 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_ai254.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_ai254.adb
-- { dg-do compile }
procedure test_ai254 is
function Func
(Obj : not null access protected function (X : Float) return Float)
return not null access protected function (X : Float) return Float is
begin
return null;
end;
b... |
6,230 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.1.1/wisitoken_grammar_main.adb | <gh_stars>0
-- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LALR Ada re2c wisitoken_grammar.wy
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- Author: <NAME> <<EMAIL>>
--
-- This file is part of GNU Emacs.
--
-- GNU Emacs is free software: you can re... |
6,231 | ada | 0 | bhayward93/Ada-Traffic-Light-Sim | icasrc/tasks.ads | with HWIF; use HWIF;
package Tasks is
task ButtonPressed is
entry Pressed(this : in Direction);
end ButtonPressed;
end Tasks;
|
6,232 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/switch-m.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
6,233 | ada | 0 | faelys/natools | src/natools-smaz.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
6,234 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/sinput-c.adb | <filename>llvm-gcc-4.2-2.9/gcc/ada/sinput-c.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
6,235 | ada | 33 | persan/zeromq-Ada | eBindings/uuid/gnatcoll-uuid.adb | <filename>eBindings/uuid/gnatcoll-uuid.adb
with System;
package body gnatcoll.uuid is
use Interfaces.C;
package bits_types_h is
type uu_timer_t is new System.Address; -- types.h:161:27
end bits_types_h;
package bits_time_h is
CLOCKS_PER_SEC : constant := 1000000; -- time.h:34
CLOCK... |
6,236 | ada | 22 | Melyodas/metalang | out/test_instant.adb |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure test_instant is
type stringptr is access all char_array;
procedure PInt(i : in Integer) is
begin
String'Write (Text_Stream... |
6,237 | ada | 4 | davidkristola/vole | kv-avm-file_reader.adb | <reponame>davidkristola/vole
with Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
package body kv.avm.File_Reader is
procedure Parse_Input_File
(Self : in out Reader;
File_In : in String) is
File : Ada.Text_IO.File_Type;
Buffer : String(1..1024);
Length : Natural := 0;... |
6,238 | ada | 0 | hannesb0/rtpl18 | src/test01/src/mytasks.adb | <filename>src/test01/src/mytasks.adb
-- Task 2 of RTPL WS17/18
-- Team members: <NAME>. and <NAME>.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
package body myTasks with SPARK_Mode is
-- Procedure for option 5
procedure opt5 is
task1 : myAmount;
begin
Put ("Add (a) or Remove ... |
6,239 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-supc.ads | pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.SUPC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Interrupt Enable Clear
type SUPC_INTE... |
6,240 | ada | 0 | persan/dds-requestreply | examples/hello_world_request_reply/src/primes-primenumberreplier.ads | <gh_stars>0
with Primes.PrimeNumberRequest_DataReader;
with Primes.PrimeNumberReply_DataWriter;
with DDS.Request_Reply.Replier.Typed_Replier_Generic;
package Primes.PrimeNumberReplier is new DDS.Request_Reply.Replier.Typed_Replier_Generic
(Request_DataReader => Primes.PrimeNumberRequest_DataReader,
Reply_DataWrite... |
6,241 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-comms-lmcp_object_message_sender_pipes.adb | <gh_stars>0
-- see OpenUxAS\src\Communications\LmcpObjectMessageSenderPipe.cpp
with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
with UxAS.Common.String_Constant.Lmcp_Network_Socket_Address;
use UxAS.Common.String_Constant.Lmcp_Network_Socket_Address;
with UxAS.Common.String_Constant.Content_Type;
with UxAS.Co... |
6,242 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cb/cb4004a.ada | -- CB4004A.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... |
6,243 | ada | 0 | iyan22/AprendeAda | ejercicios1/prueba_divisores.adb | <gh_stars>0
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with divisores;
procedure prueba_divisores is
n1, divisor:integer:=0;
begin
-- caso de prueba 1:
n1:=4;
put("El resultado deberia de s... |
6,244 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/generic_dispatch_p.ads | <reponame>best08618/asylo
with Ada.Tags.Generic_Dispatching_Constructor;
package generic_dispatch_p is
type Iface is interface;
function Constructor (I : not null access Integer) return Iface is abstract;
function Dispatching_Constructor
is new Ada.Tags.Generic_Dispatching_Constructor
(T ... |
6,245 | ada | 0 | optikos/oasis | source/parser/program-parsers-data.ads | <filename>source/parser/program-parsers-data.ads
with Anagram.Grammars;
with Anagram.Grammars.LR_Parsers;
package Program.Parsers.Data is
pragma Preelaborate;
procedure Next_Action
(State : Anagram.Grammars.LR_Parsers.State_Index;
Token : Anagram.Grammars.Terminal_Count;
Value : out Anagram.Gra... |
6,246 | ada | 7 | TUDSSL/TICS | msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/opt56.adb | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O3" }
package body Opt56 is
function F (Values : Vector) return Boolean is
Result : Boolean := True;
begin
for I in Values'Range loop
Result := Result and Values (I) >= 0.0;
end loop;
return Result;
end;
end Opt56;
|
6,247 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-strops.ads | <filename>tools-src/gnu/gcc/gcc/ada/s-strops.ads
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- ... |
6,248 | ada | 0 | oysteinlondal/Inverted-Pendulum | task_implementations.adb | <reponame>oysteinlondal/Inverted-Pendulum
package body Task_Implementations is
task body Gyroscope_Reader is
-- Timing Constraints
Next_Period : Ada.Real_Time.Time;
Start_Point : Ada.Real_Time.Time;
Offset : constant Ada.Real_Time.Time_... |
6,249 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l4x1/stm32_svd-dbgmcu.ads | -- This spec has been automatically generated from STM32L4x1.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DBGMCU is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IDCODE_DEV_ID_Field... |
6,250 | ada | 2 | thorstel/Advent-of-Code-2018 | day04/day04.adb | with Ada.Assertions; use Ada.Assertions;
with Ada.Containers.Ordered_Maps; use Ada.Containers;
with Ada.Text_IO; use Ada.Text_IO;
with Input; use Input;
procedure Day04 is
type Hour is array (Natural range 0 .. 59) of Natural;
package Time_Maps is new Ordered_... |
6,251 | ada | 0 | thierr26/ada-apsepp | src/_test/harness/apsepp_test.adb | <filename>src/_test/harness/apsepp_test.adb<gh_stars>0
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
-- with GNAT.Exception_Traces; -- For debugging.
with Apsepp_Test_Harness;
procedure Apsepp_Test is
-- use GNAT.Exception_Traces; -- For debugging.
begin
-- Trace_On... |
6,252 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/div_no_warning.adb | -- { dg-do compile }
procedure div_no_warning is
Flag : constant Boolean := False;
Var : Boolean := True;
function F return Boolean is
begin
return Var;
end F;
Int : Integer := 0;
begin
if Flag and then F then
Int := Int / 0;
end if;
end div_no_warning;
|
6,253 | ada | 33 | ytomino/drake | source/containers/a-cgarty.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- extended unit
generic
type Index_Type is range <>;
type Element_Type is private;
type Array_Type is array (Index_Type range <>) of Element_Type;
-- diff (Array_Access)
-- diff (Free)
package Ada.Containers.Generic_Array_Types is
-- Ada.Containers.Vector... |
6,254 | ada | 7 | stcarrez/resource-embedder | src/are-installer-bundles.ads | <reponame>stcarrez/resource-embedder
-----------------------------------------------------------------------
-- are-installer-bundles -- Merge bundles for distribution artifact
-- Copyright (C) 2013, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
6,255 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/utils/bounded_dynamic_arrays.ads | generic
type Component is private;
type List_Index is range <>;
type List is array (List_Index range <>) of Component;
Default_Value : Component;
with function "=" (Left, Right : List) return Boolean is <>;
package Bounded_Dynamic_Arrays is
pragma Pure;
Maximum_Length : constant List_Index := List... |
6,256 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada/mojang-api/src/client/com-github-asyncmc-mojang-api-ada-model-clients.adb | -- Mojang API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-generator.tech
-- Do not edit the class manuall... |
6,257 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/exp_aggr.adb | <filename>llvm-gcc-4.2-2.9/gcc/ada/exp_aggr.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
6,258 | ada | 1 | ShiroixD/pag_zad_2 | thirdparty/glut/progs/ada/texgen_procs.adb | --
-- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc.
-- ALL RIGHTS RESERVED
-- Permission to use, copy, modify, and distribute this software for
-- any purpose and without fee is hereby granted, provided that the above
-- copyright notice appear in all copies and that both the copyright notice
-- and th... |
6,259 | ada | 0 | Jellix/elan520 | elan520-basic_types.ads | ------------------------------------------------------------------------
-- Copyright (C) 2004-2020 by <<EMAIL>> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- the terms of the Do What The Fuck Y... |
6,260 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/errout.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
6,261 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/oconst6.ads | <gh_stars>1-10
-- { dg-do compile }
-- { dg-final { scan-assembler-not "elabs" } }
package OCONST6 is
type Sequence is array (1 .. 1) of Natural;
type Message is record
Data : Sequence;
end record;
for Message'Alignment use 1;
pragma PACK (Message);
ACK : Message := (Data => (others => 1));... |
6,262 | ada | 0 | Hamster-Furtif/JeremyPlusPlus | src/debug.adb | with ada.text_io, ada.Float_Text_IO, ada.Integer_Text_IO, utils, ada.Strings.Unbounded, montecarlo, botIO, opstrat, Mastermind;
use ada.text_io, ada.Float_Text_IO, ada.Integer_Text_IO, utils, ada.Strings.Unbounded, montecarlo, botIO, opstrat, Mastermind;
with read_preflop; use read_preflop;
with Ada.Numerics;
with Ada.... |
6,263 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Digital-root/Ada/digital-root-3.ada | with Generic_Root, Ada.Text_IO; use Generic_Root;
procedure Digital_Root is
procedure Compute is new Compute_Root("+");
-- "+" for additive digital roots
package TIO renames Ada.Text_IO;
procedure Print_Roots(Inputs: Number_Array; Base: Base_Type) is
package NIO is new TIO.Integer_IO(Number);
... |
6,264 | ada | 0 | kenjiuno/D3MkEntityTree | zlib/contrib/ada/zlib.ads | <reponame>kenjiuno/D3MkEntityTree<gh_stars>0
------------------------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-... |
6,265 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3401a.ada | <reponame>best08618/asylo
-- CE3401A.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... |
6,266 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-osprim__solaris.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-osprim__solaris.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS ... |
6,267 | ada | 0 | balintsoos/LearnAda | bead/bead2/4/Garden_Pkg.adb | <filename>bead/bead2/4/Garden_Pkg.adb<gh_stars>0
with Ada.Integer_Text_IO, tools;
use Ada.Integer_Text_IO, tools;
package body Garden_Pkg is
package Position_Generator is new Random_Generator(Position);
subtype Chance is Positive range 1 .. 10;
package Chance_Generator is new Random_Generator(Chance);
functi... |
6,268 | ada | 26 | damaki/libkeccak | src/generic/keccak-parallel_keccak_1600.ads | -------------------------------------------------------------------------------
-- 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:
-- * Redistributions of s... |
6,269 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/execute.ads | --===========================================================================
--
-- This is the root package for the different execution possibilities
-- for the different areas available on the dashboard.
--
--===========================================================================
--
-- Copyright 2021 (C) <NAME... |
6,270 | ada | 4 | carter-e-veldhuizen/RACK | ada/examples/regression/regression.ads | <filename>ada/examples/regression/regression.ads
with Regression_Library;
package Regression is
function "&" (Left, Right : String) return String;
package Outer is
function OuterFun (Input : Boolean) return Boolean;
procedure OuterProc (Input : in Boolean);
package Nested is
... |
6,271 | ada | 2 | thindil/tashy2 | tests/tk-menu-menu_options_test_data-menu_options_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 Tk.Menu.Menu_Options_Test_Data.Menu_Options_Tests is
type Test_Menu_Options is new GNATtest_Generated.GNATtest_Standard.T... |
6,272 | ada | 0 | mstewartgallus/linted | src/ada-libc/src/libc-errno-gnu.ads | -- Copyright 2015 <NAME>
--
-- 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 agreed to in writi... |
6,273 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const4.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const4.adb
-- { dg-do compile }
package body Deferred_Const4 is
function F return My_Q.T is
R : My_Q.T;
begin
R := My_Q.Null_T;
return R;
end;
end Deferred_Const4;
|
6,274 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/pr1/exemple_alea.adb | <filename>1A/S5/PIM/tps/pr1/exemple_alea.adb<gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Alea;
-- Procédure qui illustre l'utilisation du paquetage Alea.
procedure Exemple_Alea is
package Mon_Alea is
new Alea (5, 15); -- générateur de nombre... |
6,275 | ada | 2 | thindil/tashy2 | src/tk/tk-ttkframe.ads | <filename>src/tk/tk-ttkframe.ads
-- Copyright (c) 2021 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless r... |
6,276 | ada | 7,053 | Elon143/Amass | resources/scripts/api/spyse.ads | <gh_stars>1000+
-- Copyright 2020-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 = "Spyse"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datas... |
6,277 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/e/ee3402b.ada | -- EE3402B.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... |
6,278 | ada | 0 | jquorning/CELLE | source/parsers.ads | <gh_stars>0
--
-- 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.
--
-------------------------------... |
6,279 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/nodes.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- <NAME> A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
6,280 | ada | 0 | ray2501/ada-adapcre | examples/test_2.adb | <gh_stars>0
--
-- Basic test : compiling a pattern and finding the first match if any
-- Syntax : test_2 pattern subject
--
with Ada.Text_IO; use Ada.Text_IO;
with AdaPcre; use AdaPcre;
with Ada.Command_Line; use Ada.Command_Line;
procedure Test_2 is
Regexp : Pcre_Type;
Extra ... |
6,281 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada83/unchecked_conversion.ads | --******************************************************************************
--
-- function UNCHECKED_CONVERSION
--
--******************************************************************************
generic
type SOURCE is limited private;
type TARGET is limited private;
function UNCHECKED_CONVERSION(S : SOURCE... |
6,282 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sort1.adb | with GNAT.Heap_Sort_G;
function sort1 (S : String) return String is
Result : String (1 .. S'Length) := S;
Temp : Character;
procedure Move (From : Natural; To : Natural) is
begin
if From = 0 then Result (To) := Temp;
elsif To = 0 then Temp := Result (From);
else Result (To) := Result (Fr... |
6,283 | ada | 22 | FardaleM/metalang | out/testing_count.adb |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure testing_count is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Str... |
6,284 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/basic_subprogram_calls-f_internal.adb | separate(Basic_Subprogram_Calls)
function F_Internal return Integer is
begin
return F10;
end F_Internal;
|
6,285 | ada | 4 | faelys/gela-asis | source/asis/xasis/xasis-classes.adb | ------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
6,286 | ada | 1 | io7m/coreland-openal-ada | openal-load.adb | <filename>openal-load.adb
with Ada.Unchecked_Conversion;
with Interfaces.C;
with System;
package body OpenAL.Load is
package C renames Interfaces.C;
function Load_Subprogram (Name : in String) return Subprogram_Access_Type is
pragma Assert (Subprogram_Access_Type'Size = System.Address'Size);
function Get... |
6,287 | ada | 0 | strenkml/EE368 | memsim-master/src/memory.adb | <filename>memsim-master/src/memory.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1;
with Ada.Unchecked_Deallocation;
with Device; use Device;
with Memory.Container; use Memory.Container;
with Memory.Split; use Memory.Split;
with Memory.Transform; use Memory.Transform;
package bod... |
6,288 | ada | 1 | leo-brewin/adm-bssn-numerical | support/support-cmdline.ads | <gh_stars>1-10
package Support.Cmdline is
procedure get_command_arg
(the_arg_string : out String; -- the unprocessed argument i.e., -xfoo in -xfoo
which_arg : Integer); -- which argument
function get_command_arg
(which_arg : Integer; -- which argument
default ... |
6,289 | ada | 33 | ytomino/drake | source/s-stobar.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- implementation unit
with System.Storage_Elements;
package System.Storage_Barriers is
pragma Pure;
-- synchronization modes
ATOMIC_RELAXED : constant := 0;
ATOMIC_CONSUME : constant := 1;
ATOMIC_ACQUIRE : constant := 2;
ATOMIC_RELEASE : constant :=... |
6,290 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/address_conv.adb | -- { dg-do compile }
with System.Storage_Elements; use System.Storage_Elements;
procedure Address_Conv is
subtype My_Address is System.Address;
type Rec is record
A : My_Address;
end record;
Addr : constant My_Address := To_Address (16#FACEFACE#);
R : constant Rec := (A => Addr);
begin
null;
end... |
6,291 | ada | 7 | stcarrez/resource-embedder | regtests/files/test-ada-3/src/test3.adb | with Resource.Web;
with Resource.Config;
with Ada.Command_Line;
with Ada.Text_IO;
procedure Test3 is
use Resource;
C : Content_Access := Web.Get_Content ("main.html");
begin
if C = null then
Ada.Text_IO.Put_Line ("FAIL: No content 'main.html'");
Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.F... |
6,292 | ada | 7 | Fabien-Chouteau/coffee-clock | src/GUI/clock_widget.ads | <filename>src/GUI/clock_widget.ads<gh_stars>1-10
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- ... |
6,293 | ada | 0 | timmyjose-projects/arithmetic-expression-evaluator-in-ada | src/eval_main.adb | with Ada.Text_IO;
with Ada.Float_Text_IO;
with Eval;
with My_Custom_Int;
procedure Eval_Main is
package Eval_Integer is new Eval (T => Integer, Image => Integer'Image,
"=" => "=", "+" => "+", "-" => "-", "*" => "*", "/" => "/");
package Eval_Float is new Eval (T => Float, Image => Float'Image,
"=" ... |
6,294 | ada | 0 | JeremyGrosser/the_grid | src/graphics.ads | --
-- Copyright (C) 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Picosystem.Screen;
package Graphics is
subtype Row is Integer range 1 .. Picosystem.Screen.Height;
subtype Column is Integer range 1 .. Picosystem.Screen.Width;
type Frame_Number is mod 2 ** 32 - 1;
subtype... |
6,295 | ada | 0 | Robert-Tice/AdaFractalLib | src/image_types.ads | <gh_stars>0
generic
type Pixel is private;
with procedure Color_Pixel (Z_Escape : Boolean;
Iter_Escape : Natural;
Px : out Pixel);
Max_Iterations : Natural;
package Image_Types is
subtype ImgWidth is Positive range 1 .. 1920;
subt... |
6,296 | ada | 0 | Letractively/ada-awa | awa/src/awa-users-servlets.adb | <gh_stars>0
-----------------------------------------------------------------------
-- awa-users-servlets -- OpenID verification servlet for user authentication
-- Copyright (C) 2011, 2012, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
6,297 | ada | 15 | mgrojo/adalib | ada-direct_io.ads | <filename>ada-direct_io.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 Intermet... |
6,298 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95022b.ada | -- C95022B.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... |
6,299 | ada | 0 | reznikmm/gela | source/parser/program-nodes-proxy_calls.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2020-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Element_Visitors;
with Program.Elements.Call_Statements;
with Program.Elements.Expressions;
with Pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.