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 |
|---|---|---|---|---|---|
900 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaGL/GL_w32/gl_h.ads | <reponame>Lucretia/old_nehe_ada95
-- Generated from GL/gl.h
-- Date: Wed Sep 22 12:47:08 1999
--
with Interfaces.C;
with Interfaces.C.Extensions;
package gl_h is
-- $Id: gl_h.ads,v 1.1.1.1 2002/08/30 01:09:56 afvargas Exp $
--
-- Mesa 3-D graphics library
-- Version: 3.0
-- Copyright (C) 1995-19... |
901 | ada | 0 | persan/dds-requestreply | tests/simple/src/dds-request_reply-tests-simple-requester.ads | <filename>tests/simple/src/dds-request_reply-tests-simple-requester.ads
with DDS.Request_Reply.Requester.Typed_Requester_Generic;
with Dds.Builtin_String_DataReader;
with Dds.Builtin_String_DataWriter;
package DDS.Request_Reply.Tests.Simple.Requester is new
DDS.Request_Reply.Requester.Typed_Requester_Generic
(Req... |
902 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Queue-Definition/Ada/queue-definition-7.ada | <gh_stars>1-10
generic
type Element_Type is private;
package Synchronous_Fifo is
protected type Fifo is
entry Push(Item : Element_Type);
entry Pop(Item : out Element_Type);
private
Value : Element_Type;
Is_New : Boolean := False;
end Fifo;
end Synchronous_Fifo;
|
903 | ada | 0 | My-Colaborations/ada-servlet | samples/upload_servlet.ads | -----------------------------------------------------------------------
-- upload_servlet -- Servlet example to upload files on the server
-- Copyright (C) 2012, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in c... |
904 | ada | 0 | yannickmoy/spat | src/spat-flow_item.adb | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the... |
905 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/entry_queues2.adb | <reponame>best08618/asylo
-- { dg-do compile }
procedure Entry_Queues2 is
F1 : Integer := 17;
generic
type T is limited private;
procedure Check;
procedure Check is
begin
declare
type Poe is new T;
begin
declare
type Arr is array (1... |
906 | ada | 12 | jquorning/ada-asf | src/asf-components-html-links.ads | <reponame>jquorning/ada-asf<gh_stars>10-100
-----------------------------------------------------------------------
-- html-links -- ASF HTML Links Components
-- Copyright (C) 2009, 2010, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
907 | ada | 33 | ytomino/drake | source/hash/a-swuwha.ads | <gh_stars>10-100
pragma License (Unrestricted);
with Ada.Strings.Generic_Unbounded.Generic_Hash;
with Ada.Strings.Wide_Hash;
function Ada.Strings.Wide_Unbounded.Wide_Hash is
new Unbounded_Wide_Strings.Generic_Hash (Wide_Hash);
pragma Preelaborate (Ada.Strings.Wide_Unbounded.Wide_Hash);
|
908 | ada | 1 | leo-brewin/adm-bssn-numerical | bssn/code/src/bssnbase-adm_bssn.adb | <reponame>leo-brewin/adm-bssn-numerical
package body BSSNBase.ADM_BSSN is
----------------------------------------------------------------------------
-- from BSSN to ADM
function adm_gab (gBar : MetricPointArray;
phi : Real)
return MetricPointArray
is
b... |
909 | ada | 0 | Letractively/ada-asf | src/asf-contexts-flash.adb | <gh_stars>0
-----------------------------------------------------------------------
-- contexts-facelets-flash -- Flash context
-- Copyright (C) 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 th... |
910 | ada | 4 | faelys/gela-asis | source/asis/spec/system-address_to_access_conversions.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
911 | ada | 0 | AntonMeep/pbkdf2 | src/pbkdf2_generic.adb | <filename>src/pbkdf2_generic.adb
pragma Ada_2012;
with Interfaces;
with System;
package body PBKDF2_Generic is
function PBKDF2
(Password : String; Salt : String; Iterations : Positive;
Derived_Key_Length : Index) return Element_Array
is
Password_Buffer : Element_Array
(Index ... |
912 | ada | 0 | MorganPeterson/avi-editor | src/editor_package.ads | <reponame>MorganPeterson/avi-editor
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Buffer_Package; use Buffer_Package;
with Utilities_Package; use Utilities_Package;
package Editor_Package is
type KEYSTROKE is record
O : ERR_TYPE;
C : Character;
end record;
type Editor is record
... |
913 | ada | 1 | mosteo/ada-toml | src/toml.adb | with Ada.Containers.Generic_Array_Sort;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded.Hash;
with Ada.Unchecked_Deallocation;
with TOML.Generic_Dump;
with TOML.Generic_Parse;
package body TOML is
use Ada.Strings.Unbounded;
procedure Dump_To_String is new TOML.Generic_... |
914 | ada | 0 | sciencylab/lagrangian-solver | drivers/henon_heiles.adb | <reponame>sciencylab/lagrangian-solver
with Numerics, Ada.Text_IO, Chebyshev, Dense_AD, Dense_AD.Integrator;
use Numerics, Ada.Text_IO, Chebyshev;
procedure Henon_Heiles is
use Int_IO, Real_IO, Real_Functions;
N : constant Nat := 2;
K : constant Nat := 13;
package AD_Package is new Dense_AD (2 * N);
... |
915 | ada | 4 | jerry-sky/academic-notebook | electives/pw/lab/lista-2/ada/node.adb |
package body Node is
procedure SleepForSomeTime (maxSleep: Natural; intervals: Natural := 1) is
gen: RAF.Generator;
fraction: Float;
begin
RAF.Reset(gen);
fraction := 1.0 / Float(maxSleep);
delay Duration(fraction * RAF.Random(gen) * Float(intervals));
end SleepForSomeTi... |
916 | ada | 0 | Fabien-Chouteau/offmt-tool | src/offmt_lib-decoding.ads | package Offmt_Lib.Decoding is
procedure Decode (Map_Filename : String);
-- Decode from stdin
end Offmt_Lib.Decoding;
|
917 | ada | 7 | Fabien-Chouteau/Giza | src/giza-widget-tabs.adb | ------------------------------------------------------------------------------
-- --
-- Giza --
-- --
-- ... |
918 | ada | 204 | spr93/whitakers-words | src/support_utils/support_utils-line_stuff.ads | <reponame>spr93/whitakers-words
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is ... |
919 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-low_level-enums.ads | <filename>src/gl/implementation/gl-low_level-enums.ads
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
package GL.Low_Level.Enums is
pragma Preelaborate;
-- Unlike GL.Enums, this package is not private and hosts enum types that may
-- be needed b... |
920 | ada | 33 | ytomino/drake | source/containers/a-cosede.ads | pragma License (Unrestricted);
-- implementation unit
generic
package Ada.Containers.Ordered_Sets.Debug is
pragma Preelaborate;
procedure Dump (Source : Set; Message : String := "");
function Valid (Source : Set) return Boolean;
end Ada.Containers.Ordered_Sets.Debug;
|
921 | ada | 60 | RREE/ada-util | src/sys/serialize/util-beans-objects-readers.ads | -----------------------------------------------------------------------
-- util-beans-objects-readers -- Datasets
-- 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 in compliance with the License.
-- ... |
922 | ada | 4 | ytomino/gmp-ada | source/mpc-root_c.adb | with MPFR.Root_FR.Inside;
with System;
with C.mpfr;
with C.string;
package body MPC.Root_C is
use type C.signed_int;
procedure memcpy (dst, src : System.Address; n : C.size_t)
with Import, Convention => Intrinsic, External_Name => "__builtin_memcpy";
-- implementation
function Re (X : MP_Complex) return MPF... |
923 | ada | 0 | hergin/ada2fuml | test-resources/ExamplesFromRoy/gm_text_types.1.ads |
package Gm_Text_Types is
-- This type defines the text block name length.
subtype Name_Length_Type is Positive range 1 .. 25;
-- This type defines a text block name associated with a text block.
subtype Name_Type is String (Name_Length_Type);
Default_Name : constant Name_Type := Name_Type'(others => 'a');... |
924 | ada | 20 | charlie5/lace | 1-base/lace/source/environ/lace-environ.ads | with
posix.Permissions,
ada.Streams;
package lace.Environ
--
-- Models an operating system environment.
--
is
use posix.Permissions;
function to_octal_Mode (Permissions : in Permission_Set) return String;
subtype Data is ada.Streams.Stream_Element_Array;
Error : exception;
end lace.Environ;
|
925 | ada | 0 | annexi-strayline/ASAP-Simple_HTTP | simple_http-http_message_processor.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Simple HTTP --
-- ... |
926 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstobject_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
-- with GStreamer.GST_Low_Level.glib_2_0_gobject_gobject_h;
-- limited -- with GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h;
with GLIB; -- with GStreamer.GST_Low_Leve... |
927 | ada | 0 | skill-lang/adaCommon | src/skill-field_types-builtin.adb | <reponame>skill-lang/adaCommon
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ implementation of builtin field types --
-- |___/_|\_\_|_|____| by: <NAME> ... |
928 | ada | 0 | fintatarta/protypo | src/API/protypo-api-engine_values-range_iterators.adb | <reponame>fintatarta/protypo
pragma Ada_2012;
package body Protypo.Api.Engine_Values.Range_Iterators is
-----------
-- Reset --
-----------
procedure Reset (Iter : in out Range_Iterator) is
begin
Iter.Current := Iter.Start;
end Reset;
----------
-- Next --
----------
procedure Ne... |
929 | ada | 33 | ytomino/drake | source/hash/a-stboha.ads | <gh_stars>10-100
pragma License (Unrestricted);
with Ada.Containers;
generic
with package Bounded is new Generic_Bounded_Length (<>);
function Ada.Strings.Bounded.Hash (Key : Bounded.Bounded_String)
return Containers.Hash_Type;
pragma Preelaborate (Ada.Strings.Bounded.Hash);
|
930 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-umldi-uml_compartmentable_shapes.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
931 | ada | 12 | TUM-EI-RCS/StratoX | prototyping/pixracer/src/lib/mystrings.adb | <reponame>TUM-EI-RCS/StratoX
-- Project: Strato
-- System: Stratosphere Balloon Flight Controller
-- Author: <NAME> (<EMAIL>)
-- @summary String functions
package body MyStrings with SPARK_Mode is
procedure StrCpySpace (outstring : out String; instring : String) is
begin
if instring'Length >= outstri... |
932 | ada | 0 | MicroJoe/cellular | main.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Cellular; use Cellular;
procedure Main is
Width, Number : Natural;
begin
if Argument_Count < 2 then
Put("usage: cellular <width> <lines>");
return;
end if;
Width := Natural'Value(Argument(1));
... |
933 | ada | 2 | rocher/TTS-Runtime-Ravenscar | examples/tts_example_a.adb | with Ada.Real_Time; use Ada.Real_Time;
with Logging_Support;
with Ada.Text_IO; use Ada.Text_IO;
with System; use System;
with Epoch_Support; use Epoch_Support;
with XAda.Dispatching.TTS;
with TT_Utilities;
with TT_Patterns;
package body TTS_Example_A is
Number_Of_Work_Ids : constant := 6;
Number_Of_Sync_Ids :... |
934 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/integer_value.ads | -- { dg-do compile }
package Integer_Value is
X : constant Integer :=
Integer'Integer_Value (12.8); -- { dg-error "fixed-point type" "" }
end Integer_Value;
|
935 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-groups-windows-double.adb | <reponame>micahwelf/FLTK-Ada
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Widgets.Groups.Windows.Double is
procedure double_window_set_draw_hook
(W, D : in System.Address);
pragma Import (C, double_window_set_draw_hook, "double_window_set_draw_hook");
... |
936 | ada | 13 | annexi-strayline/AURA | build.ads | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
937 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-server-connection.ads | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G A... |
938 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-adc.ads | <reponame>Fabien-Chouteau/samd51-hal<filename>src/svd/sam_svd-adc.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.ADC is
pragma Preelaborate;
---------------
-- Registers -... |
939 | ada | 0 | jquorning/CELLE | source/builds.ads | --
-- 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.
--
with Sessions;
with States;
with Symbols;
... |
940 | ada | 33 | ytomino/drake | source/a-rewist.ads | pragma License (Unrestricted);
-- extended unit
package Ada.References.Wide_Strings is
-- Returning access values to sliced Wide_String from functions.
pragma Pure;
type Constant_Reference_Type (
Element : not null access constant Wide_String) is null record
with Implicit_Dereference => Element;... |
941 | ada | 0 | usainzg/EHU | PMOO/ADA/LAB2/PARTE_2/es_primo.adb | <gh_stars>0
with Suma_Divisores_Propios;
function Es_Primo(N: Integer) return Boolean is
begin
if Suma_Divisores_Propios(N) = 1 then
return True;
end if;
return False;
end Es_Primo; |
942 | ada | 24 | svn2github/matreshka | source/web/spikedog/api/spikedog-http_sessions.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
943 | ada | 0 | xuedong/mini-ada | tests/typing/bad/testfile-left_value-1.adb | <reponame>xuedong/mini-ada<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type R is record A, B: Character; end record;
X: R;
function F return R is
begin
return X;
end;
begin
F.A := '1';
end Test;
|
944 | ada | 0 | sourceryinstitute/rose-sourcery-institute | src/frontend/Experimental_Ada_ROSE_Connection/dot_asis/dot_asis_library/source/asis_tool_2-tool.ads | <reponame>sourceryinstitute/rose-sourcery-institute<filename>src/frontend/Experimental_Ada_ROSE_Connection/dot_asis/dot_asis_library/source/asis_tool_2-tool.ads
-- This is the main Asis_Tool_2 class.
private with Asis_Tool_2.Context;
private with Dot;
with A_Nodes;
with a_nodes_h;
package Asis_Tool_2.Tool is
type... |
945 | ada | 0 | jquorning/CELLE | source/action_tables.ads | <reponame>jquorning/CELLE<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.
--
------... |
946 | ada | 0 | persan/AUnit-addons | src/framework/aunit-assertions-typed.ads | with AUnit.Assertions.Generic_Helpers;
package AUnit.Assertions.Typed is
procedure Assert is new Generic_Helpers.Assert_Integer_Image
(Num => Short_Short_Integer);
procedure Assert is new Generic_Helpers.Assert_Integer_Image
(Num => Short_Integer);
procedure Assert is new Generic_Helpers.Assert_I... |
947 | ada | 1 | alvaromb/Compilemon | src/semantica-declsc3a.adb | package body Semantica.Declsc3a is
-- Taula Procediments
procedure Nouproc
(Tp : in out T_Procs;
Idp : out Num_Proc) is
begin
Posa(Tp, Info_Proc_Nul, Idp);
end Nouproc;
function Consulta
(Tp : in T_Procs;
Idp : in Num_Proc) return Info_Proc is
begin
return Tp.Tp(... |
948 | ada | 30 | jrmarino/AdaBase | src/loggers/adabase-logger-base-screen.adb | <gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Text_IO.Unbounded_IO;
package body AdaBase.Logger.Base.Screen is
package TIO renames Ada.Text_IO;
package UIO renames Ada.Text_IO.Unbounded_IO;
overriding
procedure react... |
949 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-fallback_render.adb | -- Generated at 2017-04-01 17:51:32 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-fallback_render-maps.sx
with Natools.Static_Maps.Web.Fallback_Render.Commands;
package body Natools.Static_Maps.Web.Fallback_Render is
function To_Command (Key : String) return Command is
N : constant Natural
... |
950 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 2A/S7/SysConc/TP/TP6/b__lr-main.adb | pragma Ada_95;
pragma Warnings (Off);
pragma Source_File_Name (ada_main, Spec_File_Name => "b__lr-main.ads");
pragma Source_File_Name (ada_main, Body_File_Name => "b__lr-main.adb");
pragma Suppress (Overflow_Check);
with System.Restrictions;
with Ada.Exceptions;
package body ada_main is
E013 : Short_Integer; prag... |
951 | ada | 1 | jam3st/edk2 | HdGfxLib/libhwbase/common/hw-config.ads | <gh_stars>1-10
--
-- 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.
--
-- Th... |
952 | ada | 0 | xeenta/learning-ada | src/004/loopinv.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Loopinv is
A : array (1 .. 20) of Integer;
package IO is new Integer_IO (Integer);
begin
-- let's fill the array with data
for I in A'Range loop
A (I) := (if I mod 2 = 0 then I-1 else I);
IO.Put (A (I));
end loop;
New_Line (2);
for I... |
953 | ada | 0 | ytomino/xml-ada | examples/test_reader.adb | <filename>examples/test_reader.adb
-- reader1.c
--
-- section: xmlReader
-- synopsis: Parse an XML file with an xmlReader
-- purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file
-- and dump the informations about the nodes found in the process.
-- (Note that the XMLReader functions ... |
954 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/i-cstrea.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
955 | ada | 81 | My-Colaborations/ada-awa | awa/src/awa-commands-info.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- akt-commands-info -- Info command to describe the current configuration
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... |
956 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-pch-sideband.adb | <reponame>fabiojna02/OpenCellular
--
-- 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 opti... |
957 | ada | 0 | oysteinlondal/Inverted-Pendulum | angle.adb | package body Angle is
function Find_Angle (X_Coordinate, Y_Coordinate : Float) return Float is
begin
if Y_Coordinate = 0.0 then
return Arctan(X_Coordinate/0.0000001); -- Might use exception instead later
end if;
return Arctan(X_Coordinate/Y_Coordinate);
end Find_Ang... |
958 | ada | 15 | mgrojo/adalib | ada-strings.ads | <gh_stars>10-100
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
959 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-ngelfu.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
960 | ada | 0 | reznikmm/gela | source/resolver/program-type_resolvers.adb | -- SPDX-FileCopyrightText: 2020-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Constraints;
with Program.Elements.Defining_Names;
with Program.Elements.Discrete_Ranges;
with Program.Elements.Di... |
961 | ada | 0 | Letractively/ada-security | samples/auth_demo.adb | -----------------------------------------------------------------------
-- auth_cb -- Authentication callback examples
-- 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 in compliance with the License... |
962 | ada | 1 | persan/spawn-manager | src/spawn_manager-server.ads | private package Spawn_Manager.Server is
function Spawn (Request : Spawn_Request) return Spawn_Response;
end Spawn_Manager.Server;
|
963 | ada | 0 | fintatarta/eugen | src/Sym_Expr/test/test.ads | <filename>src/Sym_Expr/test/test.ads
----------------------------------------------------------------------------
-- Symbolic Expressions (symexpr)
--
-- Copyright (C) 2012, <NAME>
--
-- This file is part of symexpr.
--
-- symexpr is free software: you can redistribute it and/or modif... |
964 | ada | 3 | Fabien-Chouteau/AGATE | src/timers/agate-timer__systick.adb | <reponame>Fabien-Chouteau/AGATE
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2020, <NAME> --
-- ... |
965 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | src/inverter_adc.ads | <filename>src/inverter_adc.ads
with HAL; use HAL;
with STM32.GPIO; use STM32.GPIO;
with STM32.ADC; use STM32.ADC;
with STM_Board; use STM_Board;
package Inverter_ADC is
-- Performs analog to digital conversions in a timed manner.
-- The timer starts ADC conversions and, at the end of conversi... |
966 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-pooglo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
967 | ada | 3 | JackShen1/parallel-programming | PP-Semaphores/src/lab1.adb | <reponame>JackShen1/parallel-programming
------------------------------------------------------
--| Semaphores |
------------------------------------------------------
--| Author | Jack (Yevhenii) Shendrikov |
--| Group | IO-82 |
--| ... |
968 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Parametrized-SQL-statement/Ada/parametrized-sql-statement.ada | <gh_stars>1-10
-- Version for sqlite
with GNATCOLL.SQL_Impl; use GNATCOLL.SQL_Impl;
with GNATCOLL.SQL.Exec; use GNATCOLL.SQL.Exec;
with GNATCOLL.SQL.Sqlite; use GNATCOLL.SQL;
procedure Prepared_Query is
DB_Descr : Database_Description;
Conn : Database_Connection;
Query : Prepared_Statement;
--s... |
969 | ada | 22 | FardaleM/metalang | out/prologin_template_charmatrix.adb | <reponame>FardaleM/metalang<gh_stars>10-100
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 prologin_template_charmatrix is
type stringptr is access all char_array;
procedu... |
970 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-dp_info.adb | <filename>firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-dp_info.adb
--
-- Copyright (C) 2015-2017 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 ... |
971 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/main.adb | <reponame>TNO/Dependency_Graph_Extractor-Ada
with Ada.Containers.Vectors;
with Ada.Exceptions;
with Ada.Strings;
with Ada.Strings.Fixed;
with Ada.Text_IO;
with Rejuvenation.Factory;
with Rejuvenation.Finder;
with Rejuvenation.Navigation;
with Libadalang.Analysis;
with Libadalang.Common;
with Langkit_Support.Slocs;
with... |
972 | ada | 1 | annexi-strayline/ASAP-JSON | json-unbounded_codecs-node_hash_maps-indexing_strategies.adb | <filename>json-unbounded_codecs-node_hash_maps-indexing_strategies.adb
------------------------------------------------------------------------------
-- --
-- JSON Parser/Constructor --
-- ... |
973 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp7/vecteurs_creux.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Unchecked_Deallocation;
package body Vecteurs_Creux is
procedure Free is
new Ada.Unchecked_Deallocation (T_Cellule, T_Vecteur_Creux);
p... |
974 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3605a.ada | -- CC3605A.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... |
975 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-bitops.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
976 | ada | 0 | vdh-anssi/ewok-kernel | src/syscalls/ewok-syscalls-log.adb | <reponame>vdh-anssi/ewok-kernel
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - Arnauld Michelizza
-- - <NAME>
-- - <NAME>
-- - <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 o... |
977 | ada | 0 | reznikmm/gela | source/units/program-units.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Units is
-----------------
-- Compilation --
-----------------
overriding function Compilation
(Self : access Unit)
return Pr... |
978 | ada | 5 | JeremyGrosser/notcursesada | src/notcurses-strings.adb | with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
with Interfaces.C.Strings;
with Notcurses_Thin;
package body Notcurses.Strings is
function Width
(Str : Wide_Wide_String)
return Natural
is
use Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
use Interfaces.C.Strings;
Chars : constant cha... |
979 | ada | 0 | annexi-strayline/ASAP-UUIDs | uuids.ads | <filename>uuids.ads
------------------------------------------------------------------------------
-- --
-- Common UUID Handling Package --
-- - RFC 4122 Implementation - ... |
980 | ada | 0 | Letractively/ada-gen | src/gnat/csets.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
981 | ada | 0 | persan/a-cups | src/gen/cups-netdb_h.ads | <gh_stars>0
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with System;
with CUPS.bits_types_h;
limited with CUPS.bits_netdb_h;
with CUPS.stdint_h;
with CUPS.bits_sockaddr_h;
with CUPS.unistd_h;
limited with CUPS.bits_socket_h;
limited with CUPS.bits_siginf... |
982 | ada | 6 | jonashaggstrom/ada-canopen | tests/generic_table_test.ads | with AUnit;
with AUnit.Simple_Test_Cases;
package Generic_Table_Test is
type Test is new AUnit.Simple_Test_Cases.Test_Case with null record;
function Name (T : Test) return AUnit.Message_String;
procedure Run_Test (T : in out Test);
end Generic_Table_Test;
|
983 | ada | 30 | jscparker/math_packages | polynomial/spline/tridiag_tst_1.adb | <reponame>jscparker/math_packages
with Tridiagonal_LU;
With Text_IO; use Text_IO;
procedure tridiag_tst_1 is
type Real is digits 15;
package rio is new Text_IO.Float_IO(Real);
use rio;
Type Index is range 1..40;
Package Tri is new Tridiagonal_LU (Real, Index);
use Tri;
SolutionVector : Co... |
984 | ada | 0 | bracke/Meaning | source/Controller_MainWindow.ads | with RASCAL.ToolboxQuit; use RASCAL.ToolboxQuit;
with RASCAL.Toolbox; use RASCAL.Toolbox;
with RASCAL.OS; use RASCAL.OS;
package Controller_MainWindow is
type TEL_OpenWindow_Type is new Toolbox_UserEventListener(16#14#,-1,-1) with null record;
type TEL_OKButto... |
985 | ada | 26 | damaki/libkeccak | tests/kat/xof_runner.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:
-- * Redistributions of source... |
986 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-tpinop.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
987 | ada | 52 | onox/orka | orka/src/gl/interface/gl-objects-vertex_arrays.ads | -- 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... |
988 | ada | 2 | thindil/tashy2 | src/tk/tk-ttkwidget.adb | <reponame>thindil/tashy2
-- 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 required ... |
989 | ada | 0 | e3l6/SSMDev | demo/adainclude/s-bbthqu.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
990 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-object_declarations.adb | <gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Object_Declarations is
function Create
(Names : not null Program.Elements.Defining_Identifiers
... |
991 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/opengl-renderer.adb | <filename>3-mid/opengl/source/opengl-renderer.adb
with
GL,
GL.Binding,
openGL.Tasks,
interfaces.C;
package body openGL.Renderer
is
use GL,
interfaces.C;
procedure Background_is (Self : in out Item; Now : in openGL.Color;
Opacity... |
992 | ada | 0 | optikos/oasis | source/nodes/program-nodes-loop_parameter_specifications.adb | <reponame>optikos/oasis<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Loop_Parameter_Specifications is
function Create
(Name : not null Progra... |
993 | ada | 0 | My-Colaborations/ada-util | src/sys/streams/util-streams.adb | <filename>src/sys/streams/util-streams.adb
-----------------------------------------------------------------------
-- util-streams -- Stream utilities
-- Copyright (C) 2010, 2011, 2016, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
994 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Numeric-error-propagation/Ada/numeric-error-propagation-3.ada | <filename>Task/Numeric-error-propagation/Ada/numeric-error-propagation-3.ada
with Approximation, Ada.Numerics.Elementary_Functions;
procedure Test_Approximations is
package A is new Approximation(Float,
Ada.Numerics.Elementary_Functions.Sqrt,
Ada.N... |
995 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/tkmrpc-contexts-cc.ads | <filename>specs/ada/server/tkmrpc-contexts-cc.ads
with Tkmrpc.Types;
package Tkmrpc.Contexts.cc
is
type cc_State_Type is
(clean,
-- Initial clean state.
invalid,
-- Error state.
stale,
-- CC context is stale.
linked,
-- CC is linked.
checked
... |
996 | ada | 52 | onox/orka | orka_simd/src/x86/gnat/orka-simd-sse4_1-singles-swizzle.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
-... |
997 | ada | 3 | rogermc2/GA_Ada | ga_lib/src/ga_draw.ads |
-- Based on libgasandbox.draw.h
with GL.Objects.Programs;
with C3GA;
with Multivector_Analyze;
with Palet;
package GA_Draw is
type Method_Type is (Draw_Method_Undefined, Draw_Bivector_Circle,
Draw_Bivector_Parallelogram,
Draw_Bivector_Parallelogram_No_Vectors,... |
998 | ada | 0 | Letractively/ada-ado | regtests/mysql/ado-schemas-mysql-tests.adb | -----------------------------------------------------------------------
-- schemas Tests -- Test loading of database schema for MySQL
-- Copyright (C) 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
999 | ada | 0 | strenkml/EE368 | memsim-master/src/test-prefetch.ads |
package Test.Prefetch is
procedure Run_Tests;
end Test.Prefetch;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.