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 |
|---|---|---|---|---|---|
3,000 | ada | 1 | leo-brewin/adm-bssn-numerical | adm/code/src/admbase-time_derivs.ads | <gh_stars>1-10
package ADMBase.Time_Derivs is
procedure set_finite_diff_factors;
procedure set_time_derivatives_intr
(params : SlaveParams);
procedure set_time_derivatives_bndry_ns
(params : SlaveParams);
procedure set_time_derivatives_bndry_ew
(params : SlaveParams);
procedure set_ti... |
3,001 | ada | 20 | charlie5/lace | 2-low/collada/source/collada-library-animations.ads | package collada.Library.animations
--
-- Models a collada 'animations' library, which is a collection of animations.
--
is
type Inputs_view is access all Library.Inputs;
type int_Array_view is access all int_Array;
-----------
--- Sampler
--
type Sampler is
record
Id : Text;
... |
3,002 | ada | 0 | Fabien-Chouteau/offmt-tool | src/offmt_tool.adb |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Conversions; use Ada.Characters.Conversions;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Langkit_Support.Text;
with Libadalang.Analysis;
with Libadalang.Helpers;
with Libadalang.Unparsing;
with GNATCOLL; use GNATCOLL;
with GNATCOLL.VFS;
with GNA... |
3,003 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/test_solution.adb | package body Test_Solution is
procedure Assert( Test : Boolean ) is
begin
if not Test then
raise Assertion_Error;
end if;
end Assert;
procedure Set_Name( C : in out Solution_Case; Name : String ) is
begin
C.Name := SU.To_Unbounded_String(Name);
end Set_Name;... |
3,004 | ada | 0 | alire-project/sdlada | src/sdl-video-windows-manager.adb | <filename>src/sdl-video-windows-manager.adb
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held ... |
3,005 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_01d6.ads | <filename>source/league/ucd/matreshka-internals-unicode-ucd-core_01d6.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,006 | ada | 0 | btmalone/alog | aunit/aunit-assertions-assert_exception.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,007 | ada | 0 | Letractively/ada-util | src/util-streams-sockets.ads | <reponame>Letractively/ada-util
-----------------------------------------------------------------------
-- util-streams-sockets -- Socket streams
-- Copyright (C) 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fil... |
3,008 | ada | 33 | ytomino/drake | source/image/required/s-valllu.ads | <filename>source/image/required/s-valllu.ads
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Unsigned_Types;
package System.Val_LLU is
pragma Pure;
-- required for Modular'Value by compiler (s-valllu.ads)
function Value_Long_Long_Unsigned (Str : String)
return Un... |
3,009 | ada | 0 | Fabien-Chouteau/offmt-tool | src/offmt_lib-parser.ads | package Offmt_Lib.Parser is
function Parse (Str : String) return Trace;
end Offmt_Lib.Parser;
|
3,010 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-osprim__vxworks.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
3,011 | ada | 4 | jfuica/bingada | src/q_csv.ads | <gh_stars>1-10
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_csv.ads
--*
--* AUTHOR: <NAME>
--*
--* NOTES: This code was taken from Rosetta Code and modifyied to fix
-- BingAda needs and Style Guide.
--*
--*... |
3,012 | ada | 0 | zdimension/tdinfo302 | src/carremagique.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure carremagique is
TAILLE : constant Integer := 5;
type Tcarre is array(1..TAILLE, 1..TAILLE) of Integer;
function Est_Magique(carre : in Tcarre) return Boolean is
somme : Integer;
ref : Intege... |
3,013 | ada | 0 | fintatarta/eugen | src/Sym_Expr/regexp_readers.ads | <gh_stars>0
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Regexp_Readers is
type Regexp_Spec is
record
Regexp : Unbounded_String;
Sub_Expression_Index : Natural;
end record;
function "+" (X : String) return Unbounded_String
renames To... |
3,014 | ada | 0 | reznikmm/gela | source/oasis/program-elements-delay_statements.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Delay_Statements is
... |
3,015 | ada | 17 | jrmarino/ravensource | bucket_1C/florist/patches/patch-libsrc_posix-unsafe__process__primitives.adb | <filename>bucket_1C/florist/patches/patch-libsrc_posix-unsafe__process__primitives.adb
--- libsrc/posix-unsafe_process_primitives.adb.orig 2017-05-16 10:40:58 UTC
+++ libsrc/posix-unsafe_process_primitives.adb
@@ -40,6 +40,7 @@ with POSIX.C,
POSIX.Implementation,
System,
System.Soft_Links,
+ Syste... |
3,016 | ada | 0 | j-lawrence-b1/string-path-search | tests/data/large/files/gl-objects-buffers.adb | <gh_stars>0
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Unchecked_Conversion;
with System;
with GL.API;
with GL.Enums;
package body GL.Objects.Buffers is
use type Low_Level.Enums.Buffer_Kind;
... |
3,017 | ada | 0 | Letractively/ada-asf | src/asf-navigations-render.adb | <filename>src/asf-navigations-render.adb
-----------------------------------------------------------------------
-- asf-navigations-render -- Navigator to render a page
-- Copyright (C) 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
3,018 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/comms/uxas-comms-transport-receiver-zeromq-addr_attr_msg_receivers.ads | <reponame>VVCAS-Sean/OpenUxAS
-- see OpenUxAS\src\Communications\ZeroMqAddressedAttributedMessageReceiver.h
with UxAS.Comms.Data.Addressed.Attributed; use UxAS.Comms.Data.Addressed.Attributed;
with UxAS.Common.Sentinel_Serial_Buffers; use UxAS.Common.Sentinel_Serial_Buffers;
with Ada.Containers.Formal_Doubly_Lin... |
3,019 | ada | 0 | glencornell/ada-object-framework | examples/signals/signal_example.adb | with Aof.Core.Root_Objects;
with Aof.Core.Generic_Signals;
with Aof.Core.Signals;
with Slots;
-- In this example, we will create two signals, one with no arguments
-- and another with one argument. We use the "Connect" method to
-- connect a slot (A.K.A. callback) to a signal. We then invoke the
-- signal's "Emi... |
3,020 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/comms/uxas-comms-data.ads | -- see OpenUxAS\src\Communications\MessageAttributes.h
package UxAS.Comms.Data is
type Message_Attributes is tagged private;
type Message_Attributes_Ref is access all Message_Attributes;
type Message_Attributes_View is access constant Message_Attributes;
type Any_Message_Attributes is access Message_A... |
3,021 | ada | 24 | svn2github/matreshka | source/amf/mof/amf-generic_collections.adb | <filename>source/amf/mof/amf-generic_collections.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,022 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83027a.ada | -- C83027A.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... |
3,023 | ada | 7,053 | Elon143/Amass | resources/scripts/api/builtwith.ads | <gh_stars>1000+
-- Copyright 2017-2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "BuiltWith"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= ... |
3,024 | ada | 80 | thindil/steamsky | tests/mobs-test_data-tests.ads | <reponame>thindil/steamsky
-- 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 Mobs.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Mobs.Test_Data
... |
3,025 | ada | 22 | FardaleM/metalang | out/aaa_read.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 aaa_read is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.... |
3,026 | ada | 3 | stcarrez/ada-stemmer | samples/stemwords.adb | with Ada.Text_IO;
with Ada.Command_Line;
with Stemmer.Factory;
procedure Stemwords is
use Stemmer.Factory;
function Get_Language (Name : in String) return Language_Type;
function Is_Space (C : in Character) return Boolean;
function Is_Space (C : in Character) return Boolean is
begin
return C = '... |
3,027 | ada | 3 | stcarrez/ada-css | src/css-parser.adb | <filename>src/css-parser.adb
-----------------------------------------------------------------------
-- css -- Ada CSS Library
-- Copyright (C) 2017 <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... |
3,028 | ada | 0 | optikos/oasis | source/oasis/program-elements-entry_index_specifications.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Identifiers;
with Program.Elements.Discrete_Ranges;
... |
3,029 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 03/P03_Crea_Tarea/src/tareas.ads | package Tareas is
task type Tarea_1;
task type Tarea_2;
task type Tarea_3;
end Tareas;
|
3,030 | ada | 0 | My-Colaborations/ada-ado | src/ado-queries.adb | -----------------------------------------------------------------------
-- ado-queries -- Database Queries
-- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in com... |
3,031 | ada | 0 | SKNZ/BezierToSTL | src/test_unitaires.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Directories;
with Helper; use Helper;
with Courbes; use Courbes;
with Courbes.Droites; use Courbes.Droites;
with Courbes.Singletons; use Courbes.Singletons;
with Courbes.Bezier_Cubiques; use Courbes.Bezier_C... |
3,032 | ada | 60 | RREE/ada-util | src/sys/lzma/util-streams-buffered-lzma.adb | -----------------------------------------------------------------------
-- util-streams-buffered-lzma -- LZMA streams
-- Copyright (C) 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Li... |
3,033 | ada | 204 | spr93/whitakers-words | src/latin_utils/latin_utils-strings_package.ads | -- 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 Copyrighted
-- (c). Permission i... |
3,034 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/remote_type.adb | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-gnatws" }
package body remote_type is
procedure Append
(Container : in out List;
New_Item : in Element_Type)
is
begin
null;
end Append;
procedure Read
(S : access Root_Stream_Type'Class;
L :... |
3,035 | ada | 33 | ytomino/drake | source/strings/a-chahan.adb | <reponame>ytomino/drake
with Ada.Strings.Naked_Maps.Canonical_Composites;
with Ada.Strings.Naked_Maps.Case_Folding;
with Ada.Strings.Naked_Maps.Case_Mapping;
with Ada.Strings.Naked_Maps.General_Category;
with Ada.Strings.Naked_Maps.Set_Constants;
package body Ada.Characters.Handling is
function Overloaded_Is_Basic ... |
3,036 | ada | 0 | SSOCsoft/Log_Reporter | src/nso-helpers.adb | <filename>src/nso-helpers.adb
With
INI.Section_to_Map,
Ada.Containers,
Ada.Text_IO,
Ada.Characters.Conversions,
Ada.Characters.Latin_1,
Ada.Strings.Fixed,
Ada.Strings.Unbounded,
Gnoga.Gui.Element.Form.Fieldset;
Package Body NSO.Helpers is
Use NSO.Types;
Procedure Add_Discrete(
Form : in out Gnoga.Gu... |
3,037 | ada | 33 | ytomino/drake | examples/nop.adb | <filename>examples/nop.adb<gh_stars>10-100
procedure nop is
begin
null;
end nop;
|
3,038 | ada | 286 | auzkok/libagar | ada/gui/demo/customwidget.adb | --------------------------------------------------
-- Example of a custom Agar widget class: --
-- --
-- AG_Object(3) -> AG_Widget(3) -> CustomWidget --
--------------------------------------------------
with Ada.Text_IO;
with System.Address_To_Access_Conversions;
pac... |
3,039 | ada | 11 | reznikmm/ada_lsp | source/protocol/lsp-notification_dispatchers.adb | -- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body LSP.Notification_Dispatchers is
--------------
-- Dispatch --
--------------
not overriding procedure Dispatch
(Self ... |
3,040 | ada | 0 | thierr26/ada-apsepp | src/_for_debug_purposes/apsepp-scope_debug.ads | <filename>src/_for_debug_purposes/apsepp-scope_debug.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Finalization; use Ada.Finalization;
package Apsepp.Scope_Debug is
-- Don't evaluate the class-wide pre-conditions in... |
3,041 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/address_conversion.adb | -- { dg-do run }
-- { dg-options "-O2" }
with System.Address_To_Access_Conversions;
procedure address_conversion is
type Integer_type1 is new Integer;
type Integer_type2 is new Integer;
package AA is new System.Address_To_Access_Conversions (Integer_type1);
K1 : Integer_type1;
K2 : Integer_type2;
b... |
3,042 | ada | 0 | ytomino/gnat4drake | s-fileio.ads | pragma License (Unrestricted);
with System.File_Control_Block;
package System.File_IO is
pragma Preelaborate;
procedure Check_File_Open (File : File_Control_Block.AFCB_Ptr);
end System.File_IO;
|
3,043 | ada | 24 | svn2github/matreshka | source/sql/matreshka-internals-sql_parameter_sets.ads | <filename>source/sql/matreshka-internals-sql_parameter_sets.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,044 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 03/P03_Crea_Tarea/src/tareas.adb | <filename>Practica 03/P03_Crea_Tarea/src/tareas.adb<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
package body Tareas is
T1 : Tarea_1;
task body Tarea_1 is
begin
loop
Put_Line("Soy la tarea 1");
delay 1.0;
end loop;
end Tarea_1;
task body Tarea_2 is
begin
loop ... |
3,045 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f3/stm32f303xe/svd/stm32_svd-usb_fs.ads | <filename>stm32f3/stm32f303xe/svd/stm32_svd-usb_fs.ads
-- This spec has been automatically generated from STM32F303xE.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.USB_FS is
pragma Preelaborate;
---------------
-- Registers --
... |
3,046 | ada | 0 | yannickmoy/spat | src/spat-flow_item.ads | <gh_stars>0
------------------------------------------------------------------------------
-- 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 Hoce... |
3,047 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a49027b.ada | -- A49027B.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... |
3,048 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_01d4.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,049 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-tables-uml_types.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,050 | ada | 2 | Fabien-Chouteau/motherlode | src/main.adb | <gh_stars>1-10
-- Motherlode
-- Copyright (c) 2020 <NAME>
with Motherload;
with Title_Screen;
with Arith_64;
pragma Unreferenced (Arith_64);
procedure Main is
begin
loop
Title_Screen.Run;
Motherload.Run;
end loop;
end Main;
|
3,051 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/empty/main.adb | with STM32GD.Board;
procedure Main is
begin
STM32GD.Board.Init;
loop
null;
end loop;
end Main;
|
3,052 | ada | 33 | ytomino/drake | source/numerics/a-numsfm.ads | pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from SFMT
--
-- Copyright (c) 2006,2007 <NAME>, <NAME> and Hiroshima
-- University. All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions a... |
3,053 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | apps/rfm69_ntc_sensor/main.adb | with System.Storage_Elements; use System.Storage_Elements;
with MSP430_SVD; use MSP430_SVD;
with MSPGD.Board; use MSPGD.Board;
with MSPGD.Clock; use MSPGD.Clock;
with MSPGD.Clock.Source;
with MSPGD.GPIO; use MSPGD.GPIO;
with MSPGD.GPIO.Pin;
with Drivers.Text_IO;
with Drivers.NTC;
with Drivers.RFM69;
with Interfaces; us... |
3,054 | ada | 7 | stcarrez/mat | mat/regtests/mat-expressions-tests.adb | -----------------------------------------------------------------------
-- mat-expressions-tests -- Unit tests for MAT expressions
-- Copyright (C) 2014, 2015, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in com... |
3,055 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga.adb | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- ... |
3,056 | ada | 1 | Blady-Com/Gate3 | tutorial/src/window1_callbacks.adb | <filename>tutorial/src/window1_callbacks.adb
--
-- copyright <NAME>
-- web site :
-- https://blady.pagesperso-orange.fr/a_savoir.html#gtkada
--
with Glib; use Glib;
with Gtk.Enums; use Gtk.Enums;
with Gtk.Main;
with Ada.Long_Long_Float_Text_IO;
with Gtk.GEntry; use Gtk.GE... |
3,057 | ada | 0 | fintatarta/protypo | test/table-test/user_records.ads | <filename>test/table-test/user_records.ads
with Protypo.Api.Engine_Values.Enumerated_Records;
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
package User_Records is
type User_Field is (First_Name, Last_Name, Telephone);
package User_Record_Package is
new Protypo.Api.Engine_Values.Enumerated_Records ... |
3,058 | ada | 0 | python36/vibecrypt | byte_package.ads | <gh_stars>0
with ada.text_io;
with interfaces;
with Ada.Sequential_IO;
package byte_package is
type earth is mod 2**3;
type byte is mod 2**8;
type dword is mod 2**32;
type byte_array_8 is array (0..7) of byte;
procedure to_byte (in_dword : in dword; b1, b2, b3, b4 : out byte);
function to_dword (b1, b2, b3... |
3,059 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-isa_sign.adb | <gh_stars>0
with Tkmrpc.Servers.Ike;
with Tkmrpc.Results;
with Tkmrpc.Request.Ike.Isa_Sign.Convert;
with Tkmrpc.Response.Ike.Isa_Sign.Convert;
package body Tkmrpc.Operation_Handlers.Ike.Isa_Sign is
-------------------------------------------------------------------------
procedure Handle (Req : Request.Data_Ty... |
3,060 | ada | 7 | stcarrez/mat | mat/src/mat-interrupts.adb | -----------------------------------------------------------------------
-- mat-interrupts - SIGINT management to stop long running commands
-- Copyright (C) 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compli... |
3,061 | ada | 0 | My-Colaborations/ada-ado | src/ado-caches.adb | -----------------------------------------------------------------------
-- ado-cache -- Simple cache management
-- Copyright (C) 2017 <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.
-- Y... |
3,062 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/a-intsig.ads | <filename>tools/scitools/conf/understand/ada/ada12/a-intsig.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
3,063 | ada | 0 | likai3g/afmt | src/fmt-generic_mod_int_argument.ads | generic
type Mod_Int_Type is mod <>;
package Fmt.Generic_Mod_Int_Argument is
function To_Argument (X : Mod_Int_Type) return Argument_Type'Class
with Inline;
function "&" (Args : Arguments; X : Mod_Int_Type) return Arguments
with Inline;
private
type Digit_Style is (DS_Lowercase, DS_Uppercase);... |
3,064 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/tf_interface_1.adb | -- { dg-do compile }
package body TF_Interface_1 is
procedure Get_It (Handle : Stream_Access; It : out CF_Interface_1'class)
is
begin
CF_Interface_1'Class'Read (Handle, It);
end;
end;
|
3,065 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/source/110_advanced_proof_techniques/max.adb | <gh_stars>10-100
package body Max
with SPARK_Mode
is
function Arrays_Max (A : in Our_Array) return Index_Range is
X : Index_Range := Index_Range'First;
Y : Index_Range := Index_Range'Last;
begin
while X /= Y loop
-- Write a suitable Loop_Invariant to help prove the postcondition
... |
3,066 | ada | 0 | iyan22/AprendeAda | ejercicios3/prueba_insertar_elemento_en_pos.adb | <gh_stars>0
with Ada.Text_Io; use Ada.Text_Io;
with datos; use datos;
with escribir_lista, insertar_elemento_en_pos;
procedure prueba_insertar_elemento_en_pos is
-- este programa hace llamadas al subprograma insertar_elemento_en_pos
-- para comprobar si su funcionamiento es correcto
Lista1: Lista_Enteros;
pos,... |
3,067 | ada | 1 | Blady-Com/Gate3 | src/gate3_glib.ads | <filename>src/gate3_glib.ads
-----------------------------------------------------------------------
--
-- simple XML Parser using glib & utilities
--
-----------------------------------------------------------------------
with Glib.Xml_Int; use Glib.Xml_Int;
pragma Elaborate_All (Glib.Xml_Int);
package Gate3_Glib is... |
3,068 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/nordic/nrf52/nrf52840/svd/i-nrf52-ccm.ads | --
-- Copyright (C) 2019, AdaCore
--
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code mu... |
3,069 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization10.adb | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-options "-O3" }
-- { dg-options "-O3 -msse2" { target i?86-*-* x86_64-*-* } }
package body Loop_Optimization10 is
function F (Low, High : in Array_Real_Type) return Array_Limit_Type is
Result : Array_Limit_Type;
begin
for I in Result'Range
... |
3,070 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/rt1.adb | <reponame>best08618/asylo
-- { dg-do compile }
package body RT1 is
procedure P (S : access Root_Stream_Type'Class) is
Val : constant Ptr := Ptr'Input (S);
begin
null;
end P;
end RT1;
|
3,071 | ada | 4 | faelys/gela-asis | source/libgela/gela-hash-crc-b16.ads | <filename>source/libgela/gela-hash-crc-b16.ads
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://g... |
3,072 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-cofove.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
3,073 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/spark_xrefs.ads | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/spark_xrefs.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
--... |
3,074 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Sort-an-array-of-composite-structures/Ada/sort-an-array-of-composite-structures-3.ada | with Ada.Text_Io;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Sort_Composite is
type Composite_Record is record
Name : Unbounded_String;
Value : Unbounded_String;
end record;
type Pairs_Array is array(Positive range <>) of Composite_Record;
procedure Swap(Left, Right : in... |
3,075 | ada | 36 | rewriting/tom | src/tom/library/sl/ada/onestrategy.adb | with VisitablePackage, EnvironmentPackage, VisitFailurePackage;
use VisitablePackage, EnvironmentPackage, VisitFailurePackage;
package body OneStrategy is
----------------------------------------------------------------------------
-- Object implementation
----------------------------------------------------------... |
3,076 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/RP/svd/rp2040/rp_svd-uart0.ads | <gh_stars>1-10
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package RP_SVD.UART0 is
pragm... |
3,077 | ada | 0 | AntonioRamosNieto/TFG-STM32F429 | STM32F4/ToyOBDH/ground_station/shared/src/ttc_data-strings.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Universidad Politécnica de Madrid --
-- --
-- ... |
3,078 | ada | 0 | leomlr/sudoku_ada-jewl | src/sudoku.adb | <gh_stars>0
-- Add a John English's Window Library (JEWL).
with JEWL.IO;
with JEWL.Windows;
with Ada.Text_IO;
-- Add personal libraries.
with sudoku_9;
with sudoku_16;
Procedure sudoku Is
use JEWL.IO;
Type Command_Code is (Quit_Menu, Sudoku_9, Sudoku_16);
package My_Game_Windows is new JEWL.Wind... |
3,079 | ada | 0 | balintsoos/LearnAda | konz/konz2/swap/swap.ads | <filename>konz/konz2/swap/swap.ads
procedure swap(a: in out integer; b: in out integer); |
3,080 | ada | 80 | thindil/steamsky | tests/utils-test_data-tests.adb | <filename>tests/utils-test_data-tests.adb
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- c... |
3,081 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sem_ch7.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,082 | ada | 0 | sciencylab/lagrangian-solver | drivers/landscape.adb | with Numerics, Ada.Text_IO;
use Numerics, Ada.Text_IO;
procedure Landscape is
use Real_IO, Int_IO, Real_Functions;
α : Real := 1.0e3;
function Phi (R : in Real) return Real is
begin
return 0.5 * (1.0 + Tanh (50.0 * (R - 0.5)));
end Phi;
function PE (Q : in Real_Vector) return Real is
... |
3,083 | ada | 3 | Fabien-Chouteau/ada-lvlg | src/lv-objx-lmeter.ads | <reponame>Fabien-Chouteau/ada-lvlg
with Lv.Style;
package Lv.Objx.Lmeter is
subtype Instance is Obj_T;
-- Create a line meter objects
-- @param par pointer to an object, it will be the parent of the new line meter
-- @param copy pointer to a line meter object, if not NULL then the new object will be c... |
3,084 | ada | 0 | Fabien-Chouteau/fsmaker | src/fsmaker-commands.adb | <reponame>Fabien-Chouteau/fsmaker
with Simple_Logging; use Simple_Logging;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with CLIC.User_Input;
with CLIC.TTY;
with FSmaker.Commands.Init;
with FSmaker.Commands.Mkdir;
with FSmaker.Commands.Tree;
with FSmaker.Commands.Import;
with FSmaker.Commands.Cat;
with FSmaker.Commands.Hexdump... |
3,085 | ada | 80 | thindil/steamsky | tests/items-test_data-tests-inventory_container.ads | <reponame>thindil/steamsky<filename>tests/items-test_data-tests-inventory_container.ads
package Items.Test_Data.Tests.Inventory_Container is
end Items.Test_Data.Tests.Inventory_Container;
|
3,086 | ada | 1 | djgoku/RosettaCodeData | Task/Remove-duplicate-elements/Ada/remove-duplicate-elements-1.ada | <filename>Task/Remove-duplicate-elements/Ada/remove-duplicate-elements-1.ada
with Ada.Containers.Ordered_Sets;
with Ada.Text_IO; use Ada.Text_IO;
procedure Unique_Set is
package Int_Sets is new Ada.Containers.Ordered_Sets(Integer);
use Int_Sets;
Nums : array (Natural range <>) of Integer := (1,2,3,4,5,5,6,7,1... |
3,087 | ada | 5 | docandrew/troodon | src/render-fonts.adb | with Ada.Characters.Conversions;
with Ada.Numerics; use Ada.Numerics;
with Ada.Wide_Wide_Text_IO;
with Ada.Text_IO;
with Ada.Unchecked_Conversion;
with Interfaces;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with Fontconfig;
with Freetype;
with Freetype_Config_Integer_Types;
with FTtypes;
package ... |
3,088 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-libdou.adb | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,089 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/g-cgi.adb | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,090 | ada | 204 | spr93/whitakers-words | src/tools/oners.adb | -- 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 Copyrighted
-- (c). Permission i... |
3,091 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline2.adb | -- { dg-do compile }
-- { dg-options "-O -gnatn -Winline" }
with Inline2_Pkg; use Inline2_Pkg;
procedure Inline2 is
F : Float := Invalid_Real;
begin
if Valid_Real (F) then
F := F + 1.0;
end if;
end;
|
3,092 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/applet/demo/renderer/render_models/launch_render_models.adb | with
openGL.Model,
openGL.Visual,
openGL.Light,
openGL.Palette,
openGL.Demo;
procedure launch_render_Models
--
-- Exercise the renderer with an example of all the models.
--
is
use openGL,
openGL.Math,
openGL.linear_Algebra_3D,
openGL.Palette;
begin
Demo.print_Usa... |
3,093 | ada | 0 | fuzzysloth/ada-awa | awa/plugins/awa-mail/src/awa-mail-components-messages.adb | <gh_stars>0
-----------------------------------------------------------------------
-- awa-mail-components-messages -- Mail UI Message
-- 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 ... |
3,094 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-casi64.ads | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/s-casi64.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY COMPONENTS ... |
3,095 | ada | 33 | ytomino/drake | source/s-ucf3t1.ads | pragma License (Unrestricted);
-- implementation unit
package System.UTF_Conversions.From_32_To_16 is
pragma Pure;
pragma Suppress (All_Checks); -- for instantiation
procedure Convert is
new Convert_Procedure (
Wide_Wide_Character,
Wide_Wide_String,
Wide_Character,
... |
3,096 | ada | 0 | Vovanium/Encodings | examples/add_cr/strip_cr.adb | -- An example of using low-level convertor API (fixed string procedures)
-- Program reads standard input, adds cr before lf, then writes to standard output
with Ada.Streams;
use Ada.Streams;
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Text_IO.Text_Streams;
use Ada.Text_IO.Text_Streams;
with Ada.Unchecked_Conversion;... |
3,097 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_video_videocontext_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with System;
with glib;
with glib.Values;
with System;
-- limited -- with GStreamer.GST_Low_Level.glib_2_0_gobject_gobject_h;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstmessage_h;
limite... |
3,098 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/wisitoken-bnf.ads | <filename>.emacs.d/elpa/wisi-3.0.1/wisitoken-bnf.ads
-- Abstract :
--
-- Root package for generating a parser from a BNF source file; see [2]
--
-- The input file syntax is based on BNF syntax [1] with declarations
-- and grammar actions.
--
-- The Elisp and Ada_Emacs output languages are for use with the
-- Emac... |
3,099 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 02/P02_Ficheros/obj/b__fich_1.ads | <reponame>dpr1005/Tiempo-Real-Ejercicios
pragma Warnings (Off);
pragma Ada_95;
with System;
with System.Parameters;
with System.Secondary_Stack;
package ada_main is
gnat_argc : Integer;
gnat_argv : System.Address;
gnat_envp : System.Address;
pragma Import (C, gnat_argc);
pragma Import (C, g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.